MIRA: Mitigating Pole Geometry Bias in Recurrent Language Models
Organizations: University of Galway · Research Ireland – D-REAL · Université Laval (IID) · Canada–CIFAR AI Chair ·
Abstract
We show that the Transformer's recurrent successors --- such as selective state-space models (SSMs), Receptance Weighted Key Value (RWKV), and Retentive Network (RetNet) --- can be characterized as infinite-impulse-response (IIR) systems. The zero--pole geometries of these IIR systems characterize the temporal modes they can represent. However, to trade parallelism, the algebraic structures of the parameterizations of these recurrent systems often give rise to poles constrained to the real axis, thereby inducing an architectural bias in their recurrent dynamics. To unify these recurrent architectures and eliminate their pole geometry bias, inspired by the lattice--ladder realization of general IIR systems, we present Mira (Modal IIR Recurrent Architecture), a unified family of linear-time recurrent architectures for building large language models (LLMs) with a highly parallel algebraic structure. Each Mira block realizes a higher-order IIR system that represents temporal modes from token streams through a lattice--ladder structure, followed by a feed-forward network (FFN). This realization enables the model to represent the temporal modes associated with both real and complex-conjugate poles. We pretrain Mira-S, a 12-layer small-scale LLM with 0.14B parameters composed entirely of Mira blocks. Throughout the pretraining, Mira-S achieves lower perplexity than strong recurrent baselines, exhibits stronger context-window generalization beyond the training length, and attains higher throughput with a dedicated CUDA kernel.
Figures & tables
| Method | Zeroes | Poles | ||
|---|---|---|---|---|
| SDPA ( Vaswani et al., 2017 ) | Complex | – | ||
| Selective SSM (Mamba-1, S6) ( Gu and Dao, 2024 ) | Complex | Real | ||
| RWKV (v4–v6) ( Peng et al., 2023 ) | – | Real | ||
| RetNet (v1) ( Sun et al., 2023 ) | – | Real | ||
| HGRN2 (v2) ( Qin et al., 2024 ) | – | Real | ||
| Hyena (v1) ( Poli et al., 2023 ) | Complex | – |
| Model | Size (M) | State (‰) | FineWeb-Edu | WikiText-103 | HellaSwag | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 512 | 32K | 512 | 32K | 512 | 32K | |||||||||||||||
| Loss | PPL | Acc (%) | Loss | PPL | Acc (%) | Loss | PPL | Acc (%) | Loss | PPL | Acc (%) | Loss | PPL | Acc (%) | Loss | PPL | Acc (%) | |||
| Transformer (MHA) | 142.52 | 0.000 | 3.400 | 29.96 | 35.31 | 7.317 | 4.58 | 3.468 | 32.08 | 36.01 | 7.136 | 6.25 | 3.434 | 31.00 | 38.39 | 7.134 | 1.43 | |||
| RWKV-6 | 144.64 | 4.418 | 3.465 | 31.97 | 34.52 | 3.752 | 42.59 | 20.18 | 3.525 | 33.94 | 35.10 | 3.764 | 43.12 | 21.77 | 3.523 | 33.88 | 35.47 | 3.814 | 45.34 | 19.21 |
| RWKV-7 | 142.66 | 3.634 | 3.485 | 32.63 | 34.26 | 3.423 | 30.65 | 34.47 | 3.587 | 36.12 | 34.58 | 3.519 | 33.75 | 34.16 | 3.644 | 38.23 | 35.11 | 3.544 | 34.59 | 34.94 |
| Mamba-1 | 148.73 | 2.107 | 3.582 | 35.93 | 33.70 | 50.092 | 1.31 | 3.566 | 35.36 | 34.62 | 52.096 | 1.02 | 3.680 | 39.63 | 34.05 | 46.162 | 1.02 | |||
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| (‰) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 768 | 1536 | 48 | 16 | 3072 | 2 | 4.119 M | 8.843 M | 49.152 K | 5.56 |
| 768 | 1536 | 48 | 16 | 3072 | 4 | 4.572 M | 9.296 M | 98.304 K | 10.57 |
| 768 | 1536 | 48 | 16 | 3072 | 8 | 5.478 M | 10.202 M | 196.608 K | 19.27 |
| 768 | 1536 | 96 | 16 | 3072 | 2 | 4.674 M | 9.398 M | 49.152 K | 5.23 |
| 768 | 1536 | 96 | 16 | 3072 | 4 | 5.571 M | 10.295 M | 98.304 K | 9.55 |
| 768 | 1536 | 96 | 16 | 3072 | 8 | 7.365 M | 12.089 M | 196.608 K | 16.26 |
| Model | Configuration | Parameter size | State size | State-to-parameter ratio |
|---|---|---|---|---|
| Mira-S | Width 768; FFN width 3072; lattice order 2; lattice width 1536; write bottleneck 48; memory dimension 16 | 144,715,392 | 589,824 | 0.004076 |
| Transformer | Width 912; FFN width 2587; 12 attention heads; head dimension 76; RoPE | 142,516,452 | 11,206,656 | 0.078634 |
| RWKV-6 | Width 832; FFN width 2836; 13 heads; head dimension 64 | 144,637,296 | 638,976 | 0.004418 |
| RWKV-7 | Width 720; FFN width 3277; 12 heads; head dimension 60 | 142,664,124 | 518,400 | 0.003634 |
| Mamba-1 | Width 816; FFN width 2891; inner width 1632; state dimension 16; convolution width 4; time-step rank 51 | 148,731,108 | 313,344 | 0.002107 |
| Mamba-2 | Width 816; FFN width 2891; inner width 1632; state dimension 128; 12 heads; head dimension 136; convolution width 4; one group | 148,413,972 | 2,506,752 | 0.016890 |