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.
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).
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:
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:
Version 1 of the Zeitunks-LM was pretrained on the following publicly available datasets:
In total, the pretraining corpus has a size of 133GB.
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 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:
For each dataset one fine-tuned model is available (the seed with the best development score at the selected learning rate):
stefan-it/zeitunks-lm-v1-ner-hipe2020-destefan-it/zeitunks-lm-v1-ner-zefys2025stefan-it/zeitunks-lm-v1-ner-hisgermanerstefan-it/zeitunks-lm-v1-ner-newseye-destefan-it/zeitunks-lm-v1-ner-ajmc-destefan-it/zeitunks-lm-v1-ner-lftstefan-it/zeitunks-lm-v1-ner-onbfrom 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-attention is the NX-AI fork with the KronLSTM kernels (import name fla), pinned to the commit the model was trained withmodeling_bixl.py and bixl_model.py ship with the weightslast_hidden_state of shape (batch, length, 512); the MLM head is not includedOf course, every model has its own limitations. So do the Zeitunks-LM:
flash-linear-attention and the CPU path is slowThis 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:
Here are some references that are really worth reading, to understand the underlying architecture:
Made from Bavarian Oberland with ❤️ and 🥨.