Zeitunks-LM
The Zeitunks-LM is a language model pretrained on historical German newspapers. Technically the model itself is a bi-directional KronLSTM model - a linear attention architecture based on the Kronecker Delta Rule.
The Zeitunks-LM uses the same pretraining dataset as the Zeitungs-LM, but was trained on 50% fewer tokens than the attention-based Zeitungs-LM model.
Model Summary
The architecture behind the Zeitunks-LM is BiXl-Kron, an attention-free, Transformer-free bidirectional encoder for historical German newspaper texts. Every layer consists of a forward and backward KronLSTM block. The forward and backward block is then fused per position by a sigmoid gate. KronLSTM was introduced in the "Kronecker Delta Rule for Long Context Linear Attention" paper from Anamaria-Roberta Hartl, Levente Zólyomi, Michael List, Günter Klambauer, Sebastian Böck and Sepp Hochreiter. The model then has a looped depth, as 8 distinct layers are applied twice with the shared weights, so it has an effective depth of 16.
The Zeitunks-LM was pretrained with whole-word masked language modelling, with 30% masking of the words and loss on the masked positions.
It was trained on 69.9G subtokens for 2,125,000 steps with a batch size of 64.
In total the model has 96.9M parameters, a hidden size of 512, 4 heads with a head dimension of 128 and a 64K word-piece vocabulary (it re-used the vocabulary from the Zeitungs-LM).
BiXl and BiXl-Kron
As mentioned earlier, the architecture behind the Zeitunks-LM is named BiXl-Kron. But where does this name come from?
BiXL stands for Bidirectional xLSTM, Looped and references the three things that define that encoder family:
- Bi: every layer reads the sequence in both directions and fuses the two readins with a gate.
- X: the blocks are xLSTM-style recurrent blocks (matrix memory, no attention). Here we are using the KronLSTM variant.
- L: looped depth, the 8 layers are applied twice with shared weiuhts.
BiXl-Kron uses the same encoder as BiXL, but every layer is built from KronLSTM blocks. These blocks update their memory with the Kronecker delta rule. The plain BiXL is built from mLSTM blocks with two sLSTM layers for state tracking. The KronLSTM block replaces both, so the BiXl-Kron has one block type everywhere.
An overview of BiXl-Kron can be seen here:
Datasets
Version 1 of the Zeitunks-LM was pretrained on the following publicly available datasets:
In total, the pretraining corpus has a size of 133GB.
Benchmarks (Named Entity Recognition)
We compare our Zeitunks-LM directly to the Zeitungs-LM on various downstream tasks from the Zeitungs-LM repository, which is focussed on Named Entity Recognition.
Additionally, we use two additional datasets (ONB and LFT) from the "A Named Entity Recognition Shootout for German" paper.
The following datasets are used:
Results
Results are reported as (dev) / test: span-level micro F1-score, mean ± standard deviation over 10 seeds, with the development score in brackets.
| Dataset | Zeitunks-LM | Zeitungs-LM |
|---|---|---|
| HIPE-2020 (de) | (82.63 ± 0.50) / 78.71 ± 0.74 | (80.96 ± 0.70) / 78.92 ± 0.61 |
| ZEFYS 2025 | (88.17 ± 0.39) / 87.01 ± 0.49 | (87.41 ± 0.32) / 86.45 ± 0.45 |
| HisGermaNER | (81.58 ± 1.22) / 85.73 ± 1.17 | (81.66 ± 0.75) / 85.49 ± 1.13 |
| NewsEye (de) | (41.21 ± 2.88) / 45.42 ± 4.29 | (42.72 ± 1.03) / 45.85 ± 3.41 |
| AjMC (de) | (89.57 ± 0.72) / 91.85 ± 1.05 | (89.53 ± 0.64) / 91.56 ± 1.07 |
| LFT | (79.86 ± 0.52) / 79.90 ± 0.36 | (78.66 ± 0.76) / 79.83 ± 1.10 |
| ONB | (88.90 ± 0.78) / 86.94 ± 1.14 | (88.54 ± 0.47) / 85.85 ± 0.72 |
| Mean | (78.85) / 79.37 | (78.50) / 79.14 |
Some notes:
- Both models are fine-tuned with the same code and the same hyper-parameter search: 8 learning rates (5e-6, 1e-5, 2e-5, 3e-5, 5e-5, 1e-4, 2e-4 and 4e-4), each with 10 seeds, batch size 16 and 10 epochs.
- For each dataset the learning rate with the best mean development score over the 10 seeds is selected. The test score of exactly these 10 runs is reported.
- Fine-tuning is fully reproducible: a run that is repeated on the same machine gives identical predictions.
- The Zeitunks-LM needs a smaller fine-tuning learning rate (1e-5 to 3e-5) than the Zeitungs-LM (5e-5 to 1e-4). At 1e-4 it loses several points.
- NewsEye: 5 of 12 development documents and 5 of 13 test documents of the HIPE-2022 release contain no annotations. Predictions in these documents count as errors, so the scores are low and noisy for both models. Without NewsEye the mean over the remaining six datasets is (85.12) / 85.02 for the Zeitunks-LM and (84.46) / 84.68 for the Zeitungs-LM.
- The differences between the two models are small: on the mean over the six datasets the test difference is about two standard errors.
Fine-tuned NER models
For each dataset one fine-tuned model is available (the seed with the best development score at the selected learning rate):
- HIPE-2020 (de):
stefan-it/zeitunks-lm-v1-ner-hipe2020-de - ZEFYS 2025:
stefan-it/zeitunks-lm-v1-ner-zefys2025 - HisGermaNER:
stefan-it/zeitunks-lm-v1-ner-hisgermaner - NewsEye (de):
stefan-it/zeitunks-lm-v1-ner-newseye-de - AjMC (de):
stefan-it/zeitunks-lm-v1-ner-ajmc-de - LFT:
stefan-it/zeitunks-lm-v1-ner-lft - ONB:
stefan-it/zeitunks-lm-v1-ner-onb
Usage
from transformers import AutoModel, AutoTokenizer
tok = AutoTokenizer.from_pretrained("stefan-it/zeitunks-lm-v1")
model = AutoModel.from_pretrained("stefan-it/zeitunks-lm-v1", trust_remote_code=True)
The following dependencies need to be installed:
pip install torch transformers 'flash-linear-attention @ git+https://github.com/NX-AI/KronLSTM.git@3d800c9a153a88ee9624fe6acf7f39a58017a17e'
Some notes:
flash-linear-attentionis the NX-AI fork with the KronLSTM kernels (import namefla), pinned to the commit the model was trained with- Nothing compiles at load time: Triton kernels on CUDA, reference op on CPU
- Remote code:
modeling_bixl.pyandbixl_model.pyship with the weights - Output:
last_hidden_stateof shape(batch, length, 512); the MLM head is not included
Limitations
Of course, every model has its own limitations. So do the Zeitunks-LM:
- Pretrained on German historical newspaper OCR (19th and early 20th century), it is not evaluated on modern text or other languages.
- Sequence length 512 in pretraining: longer inputs are untested.
- Needs the pinned fork of
flash-linear-attentionand the CPU path is slow
AI Provenance
This repository follows the AI Provenance convention. The current state:
| Part | Authored | AI-Reviewed | Human-Reviewed |
|---|---|---|---|
Model code (modeling_bixl.py, bixl_model.py) |
AI (Claude) | not yet | not yet |
| Model card (this README) | human, with minor AI edits | - | yes |
| Overview figure | AI (generated from a script) | - | yes |
Some notes:
- The model code, as well as the pretraining and fine-tuning code behind this model, was written by an AI coding agent under human direction. Each code file carries its own provenance header.
- A dedicated review of the model code is planned, both by a separate AI review agent and by a human. This section will be updated once the reviews are done.
- The model card is written by a human. An AI agent added the evaluation results (table and notes in the Results section) and the list of fine-tuned NER models.
- The model weights are the result of the pretraining run and are not affected by this.
References
Here are some references that are really worth reading, to understand the underlying architecture:
- Fast weights: "Learning to Control Fast-Weight Memories: An Alternative to Dynamic Recurrent Networks"
- KronLSTM: "Kronecker Delta Rule for Long Context Linear Attention"
- xLSTM: "xLSTM: Extended Long Short-Term Memory"
- xLSTM 7B: "xLSTM 7B: A Recurrent LLM for Fast and Efficient Inference"
Changelog
- 26.11.2026: Evaluation results added (full hyper-parameter search with 10 seeds), fine-tuned NER models replaced.
- 23.11.2026: Initial version of repo.
Acknowledgements
Made from Bavarian Oberland with ❤️ and 🥨.
- Downloads last month
- 98

