Parallel-trainable recurrences such as Mamba, linear attention, and DeltaNet offer constant-cost streaming inference, but they suffer from two limitations: 1) they struggle to track discrete state, and 2) they read every parameter at every step, tying model capacity directly to CPU latency. We introduce Yggdrasil, a recurrent architecture that decouples capacity from per-step compute by looking up each layer's transition in a large, tree-routed bank of recurrent experts. Each router addresses its bank using the current token and the state of the layer below. We prove that this cross-layer context is necessary—a single token-indexed layer of non-expanding transitions with finitely many reachable states cannot perform conditional resets—while avoiding feedback from the layer's own past preserves parallel-scan training. Because each step traverses one tree path and reads a single expert per layer, active weights stay within a few hundred kilobytes in CPU L2 cache while the full bank resides in RAM. Among the parallel-trainable models we evaluate, Yggdrasil is the only one to solve all five state-tracking tasks. At matched active parameter counts, it achieves the lowest test bits on enwik8 (1.540 bpb) and the human genome hg38 (1.567 bpb), while stepping 3.0× and 3.3× faster on a single CPU core (6.7μs and 5.8μs) than the fastest streaming baseline, and delivering the highest GPU throughput of all models at batch 1024. On the Genomic Benchmarks, it is the strongest causal model at matched active parameters (86.0% mean accuracy).
Introduction
Many sequence tasks must score symbols one at a time as they arrive, including base-by-base DNA modelling, byte-level compression, and on-device inference [32, 75, 24] (Gemma Team 2025). Because these workloads cannot batch over time, their cost is governed by a single step at batch size one, ideally running at constant cost per position on one CPU core [70]. Base-level genomic models like HyenaDNA model DNA causally without a tokeniser [49], but recompute their context window at every base unless distilled into a recurrence [46]. Parallel-trainable recurrences such as Mamba (Gu & Dao, 2024; Dao & Gu, 2024), linear attention [36, 58], and the DeltaNet family [73, 74, 62] do provide constant-cost streaming steps. Yet they hit two fundamental walls. First, they struggle to track discrete state, and none of the parallel-trainable baselines solves all five state-tracking tasks we evaluate (S5, A5, parity, cycle navigation, and modular arithmetic with operator precedence). The strongest, DeltaProduct-4, solves four (Table 1), whereas LSTMs and GRUs solve all five at the cost of sequential training [31, 12, 16]. Second, they are dense, reading every parameter at every step so that any added capacity directly increases per-token latency.
Model
S5
A5
Parity
Cycle
Mod. arith.
Sequential
GRU
0.979
1.000
1.000
1.000
1.000
LSTM
0.995
0.999
1.000
1.000
1.000
Parallel
Transformer
0.010
0.031
0.506
0.238
0.225
Mamba-2
0.010
0.017
0.569
0.650
0.395
Gated DeltaNet
0.018
0.999
0.999
0.615
0.826
DeltaProduct-2
0.688
0.999
1.000
0.713
1.000
DeltaProduct-4
0.935
1.000
1.000
0.684
1.000
PD-SSM
0.009
0.020
0.807
0.986
1.000
Yggdrasil
1.000
0.980
1.000
1.000
0.981
Table 1. State tracking. Final-answer accuracy on test sequences of lengths 40 to 256 after 100k training steps on lengths 3 to 40. Chance is 0.008 on S5, 0.017 on A5, 0.5 on parity and 0.2 on cycle navigation and modular arithmetic. Best of 3 seeds by validation. The search selected the size of every model per task (Section F). DeltaProduct uses 2 or 4 Householder factors per step and negative eigenvalues. Sequential models train step by step and parallel models over the whole sequence at once. Bold marks a solved task (raw accuracy ≥0.90, Delétang et al. [16]).
We introduce Yggdrasil, a recurrent architecture that breaks both walls with a single mechanism, looking up each layer’s transition in a large bank of recurrent experts rather than computing it (Figure 1). Each routed layer stores 2D experts, and a depth-D binary tree selects one in D comparisons to supply the transition, input, and readout for that step. The tree computes its address from the current token and the state of the layer below. Because this address never reads the layer’s own past, each layer remains an affine recurrence and trains as an associative parallel scan [8, 45].
Figure 1. Yggdrasil looks up each layer’s transition instead of computing it. Orange marks the token, green an expert lookup, blue the state and grey the parameters shared within a layer, and layer superscripts are dropped inside each layer. (a) One inference step. The token layer applies the transition stored for xt. In each routed layer a depth-D tree router reads ft=[e(xt);ν(ht(l−1))] and selects expert rt, which supplies the transition Art, the token input Trt[xt], the layer-input map Urtlow and the readout Prt. The readouts of all layers are summed before the softmax. (b) The stack unrolled over time, with token inputs and readouts omitted. Each router reads the layer below at the same step and never its own layer’s past, so the selected transitions change from step to step while each layer still trains as a parallel scan.
This design directly satisfies the three requirements for exact state tracking. First, transitions must be non-diagonal, since diagonal recurrences cannot track non-solvable groups like S5 and A5[47] (Shakhnarovich et al. 2026); Theorem 14 establishes the finite-state form of this limit for stacks of diagonal layers. Second, transitions need negative or complex eigenvalues, as eigenvalues restricted to [0,1] cannot track parity [26]. Third, conditional resets require transition selection that depends on more than the current token, and we prove that a single token-indexed layer of non-expanding transitions with finitely many reachable states cannot even retain the first symbol of its input (Theorem 1). Yggdrasil combines block rotations with signed decays—giving non-diagonal transitions with eigenvalues outside [0,1]—while cross-layer routing supplies the context needed for conditional resets. Every ingredient is necessary in trained models. Removing the rotations sends S5 and A5 to chance, and using a shared transition or token-only routing sends modular arithmetic to chance (Section H).
The same lookup makes Yggdrasil hardware-aware. Like Gu & Dao (2024), it is built around the memory hierarchy, but for CPU inference rather than GPU training (§ 3.3). Because each step reads only one expert per layer, its active weights fit inside the cache of a single CPU core while the full bank resides in RAM. Mixtures of experts and memory layers also decouple storage from compute ([61, 20, 41, 7, 10]), but only in layers that look up outputs. Yggdrasil moves sparse lookup into the recurrence itself; replacing its recurrent experts with output-only experts loses 0.244 bits per byte at equal storage (Section H). Prior work on input-switched affine networks, second-order RNNs, and PD-SSM also selects transitions per step ([21, 25, 50, 65]). Yggdrasil is the first to look up recurrent transitions in a large tree-routed bank using lower-layer context, preserving both parallel-scan training and a cache-sized CPU step.
Contributions.
Tree-routed recurrent experts. Yggdrasil looks up each routed layer’s transition in a bank of 2D experts, requiring O(D) routing work and cache-sized weight reads per step while preserving parallel-scan training (§ 3).
State-tracking and sparse-access theory. We prove that a single token-indexed layer of non-expanding transitions with finitely many reachable states cannot perform conditional resets. We give exact constructions tracking S5 and A5 in 8-bit integer arithmetic and every finite automaton, plus a counting separation between sparse and dense models in weights read per step (§ 4).
Accuracy. Yggdrasil is the only parallel-trainable model in Table 1 to solve all five state-tracking tasks. It achieves the lowest test bits on hg38 and enwik8 at every matched active size (Table 7 and Table 8), with its smallest models outperforming every dense baseline at roughly 10× the active parameter count. At 470k active parameters (307.3M stored), it averages 86.0% across the eight Genomic Benchmarks tasks (five splits each) under the Caduceus protocol ([27, 57]), making it the best causal model at matched active parameters.
Model
Total
Active
File (MB)
CPU μs / token ↓
GPU μs / token ↓
Test bits / byte ↓
Small, 35k active parameters
Sequential
GRU
46.5k
35.3k
0.2
10.0
40.0
2.371
Sequential
LSTM
47.0k
36.8k
0.2
11.3
44.4
2.353
Parallel
Transformer
43.2k
35.0k
0.1
64.0
193.6
2.298
Parallel
Mamba-2
42.6k
32.4k
1.0
22.9
29.3
2.436
Parallel
Mamba-2 + PKM
16.3M
34.1k
–
–
–
1.898
Parallel
Gated DeltaNet
46.9k
36.7k
–
–
101.4
2.338
Parallel
DeltaProduct-2
40.7k
34.6k
–
–
147.3
2.222
Parallel
DeltaProduct-4
45.1k
37.0k
–
–
121.2
2.287
Parallel
Yggdrasil
16.3M
35.5k
154.3
1.4
57.6
1.667
Medium, 105k active parameters
Sequential
GRU
128.9k
107.5k
0.5
12.8
60.9
2.077
Sequential
LSTM
121.2k
102.9k
0.5
13.9
52.8
2.091
Parallel
Transformer
117.4k
102.1k
0.5
91.2
236.3
2.036
Parallel
Mamba-2
120.0k
103.7k
1.0
28.3
45.7
2.039
Parallel
Mamba-2 + PKM
54.3M
101.2k
–
–
–
1.714
Parallel
Gated DeltaNet
116.8k
98.4k
–
–
132.4
2.111
Parallel
DeltaProduct-2
116.0k
103.8k
–
–
130.5
1.964
Parallel
DeltaProduct-4
121.1k
106.9k
–
–
89.5
2.038
Parallel
Yggdrasil
54.2M
101.8k
317.1
2.5
76.2
1.559
Large, 330k active parameters
Sequential
GRU
357.2k
318.4k
1.4
20.2
87.1
1.885
Sequential
LSTM
368.0k
333.3k
1.5
23.7
125.3
1.869
Parallel
Transformer
373.3k
344.7k
0.5
130.0
224.4
1.796
Parallel
Mamba-2
335.8k
303.2k
1.2
43.0
43.8
1.896
Parallel
Mamba-2 + PKM
195.7M
330.7k
–
–
–
1.673
Parallel
Gated DeltaNet
348.9k
324.4k
–
–
125.5
1.727
Parallel
DeltaProduct-2
373.6k
351.2k
–
–
179.9
1.724
Parallel
DeltaProduct-4
331.4k
311.0k
–
–
162.0
1.740
Parallel
Yggdrasil
195.4M
329.5k
681.3
6.7
80.1
1.540
Table 7. enwik8 at the three sizes. Total stored parameters, active parameters read per token, file size (MB) of the weights the timed runtime loads, microseconds per token on one CPU core and on a GPU at batch 1, and float test bits per byte on the full test split in windows of 256 bytes, best of 3 seeds by validation. Timing as in § 5 and K, shapes in Table 6, and – marks untimed entries. Bold marks the best per column within each size. [32]
Model
Total
Active
File (MB)
CPU µs / base ↓
GPU µs / base ↓
Test bits / base ↓
Small, 27k active parameters
Sequential GRU
28.7k
28.5k
0.1
9.4
46.1
1.728
LSTM
26.6k
26.5k
0.1
11.1
48.2
1.726
Parallel Transformer
27.1k
27.0k
0.2
111.7
197.3
1.753
Mamba-2
29.4k
29.1k
0.9
21.4
28.2
1.822
Mamba-2 + PKM
15.6M
23.6k
–
–
–
1.756
Gated DeltaNet
26.8k
26.7k
–
–
93.0
1.763
DeltaProduct-2
28.6k
28.5k
–
–
128.7
1.723
DeltaProduct-4
29.1k
28.9k
–
–
76.0
1.752
HyenaDNA
26.8k
26.7k
0.2
1.7
270.6
1.763
Yggdrasil
15.6M
25.2k
17.9
1.1
67.4
1.620
Medium, 90k active parameters
Sequential GRU
86.5k
86.2k
0.3
12.4
56.3
1.681
LSTM
94.4k
94.1k
0.4
13.5
65.5
1.678
Parallel Transformer
87.3k
87.1k
0.4
184.4
250.5
1.728
Mamba-2
88.3k
87.9k
0.9
27.2
46.5
1.714
Mamba-2 + PKM
52.1M
82.1k
–
–
–
1.621
Gated DeltaNet
97.2k
96.9k
–
–
135.6
1.737
DeltaProduct-2
91.9k
91.7k
–
–
171.0
1.682
DeltaProduct-4
93.0k
92.8k
–
–
117.9
1.720
HyenaDNA
92.7k
92.4k
0.4
5.0
317.3
1.694
Yggdrasil
52.0M
81.4k
48.1
1.9
79.7
1.590
Large, 290k active parameters
Sequential GRU
280.6k
280.0k
1.1
18.9
90.3
1.640
LSTM
299.5k
298.9k
1.2
22.7
91.5
1.637
Parallel Transformer
281.6k
281.1k
0.4
276.2
269.7
1.690
Mamba-2
272.3k
271.4k
1.1
41.8
44.7
1.685
Mamba-2 + PKM
188.1M
285.2k
–
–
–
1.598
Gated DeltaNet
300.7k
300.3k
–
–
126.1
1.653
DeltaProduct-2
290.8k
290.3k
–
–
90.5
1.694
DeltaProduct-4
291.2k
290.9k
–
–
162.1
1.651
HyenaDNA
297.7k
297.0k
0.5
8.3
384.0
1.655
Yggdrasil
188.0M
289.1k
146.5
5.8
102.1
1.567
Table 8. Table 8. hg38 at the three sizes. Columns as in Table 7, per base, on the full test split of 253.9M bases in windows of 1024 bases. Best of 3 seeds by validation. HyenaDNA is timed in offline scoring on the CPU and in streaming on the GPU (§ 20). Bold marks the best per column within each size. [37, 49]
Speed. Yggdrasil is the fastest model on one CPU core, with its largest models stepping 3.3× and 3.0× faster than the fastest streaming baseline, and achieves the highest GPU throughput at batch 1024 across all sizes on both datasets (Table 17). At equal stored parameters, its CPU step is 162×–13,566× faster than dense models, and at least 3,289× faster at 730M (§ 5).
Model
Batch 1, μs / token ↓ — Small
Batch 1, μs / token ↓ — Medium
Batch 1, μs / token ↓ — Large
Batch 1024, tokens / s ↑ — Small
Batch 1024, tokens / s ↑ — Medium
Batch 1024, tokens / s ↑ — Large
enwik8, 35k, 105k and 330k active parameters ([32])
Sequential
GRU
40.0
60.9
87.1
12.5M
5.84M
1.65M
LSTM
44.4
52.8
125.3
11.0M
5.83M
889k
Parallel
Transformer
193.6
236.3
224.4
1.39M
685k
398k
Mamba-2
29.3
45.7
43.8
7.77M
3.18M
1.77M
Gated DeltaNet
101.4
132.4
125.5
9.13M
5.29M
2.43M
DeltaProduct-2
147.3
130.5
179.9
3.53M
3.39M
1.98M
DeltaProduct-4
121.2
89.5
162.0
5.03M
4.16M
1.81M
Yggdrasil
57.6
76.2
80.1
15.7M
7.15M
2.59M
hg38, 27k, 90k and 290k active parameters ([37, 49])
Sequential
GRU
46.1
56.3
90.3
10.1M
6.04M
1.67M
LSTM
48.2
65.5
91.5
11.9M
5.51M
895k
Parallel
Transformer
197.3
250.5
269.7
508k
203k
109k
Mamba-2
28.2
46.5
44.7
7.32M
3.17M
1.78M
Gated DeltaNet
93.0
135.6
126.1
9.26M
5.29M
2.47M
DeltaProduct-2
128.7
171.0
90.5
3.55M
3.42M
2.59M
DeltaProduct-4
76.0
117.9
162.1
5.11M
4.23M
1.83M
HyenaDNA
270.6
317.3
384.0
30.2k
15.1k
8.70k
Yggdrasil
67.4
79.7
102.1
21.8M
8.19M
2.82M
Table 17. GPU inference. Microseconds per token at batch 1 and tokens per second at batch 1024, on one A100 under CUDA graphs, at the small, medium and large sizes. Bold marks the best per column within each dataset.
Background and related work
Linear recurrences. An affine recurrence updates a state ht∈Rn as ht=Aˉtht−1+uˉt. When the coefficients do not depend on ht−1, affine composition is associative and all states can be computed in parallel over time ([45] (Billeloch 1990)). The transition is time-invariant in S4, S4D, S5, and the LRU (Gu et al., 2022a;b; Smith et al., 2023; Orvieto et al., 2023), and input-dependent in the Mamba family ([40] (Gu & Dao 2024; Dao & Gu 2024)). Linear attention corresponds to a scalar or identity transition with a rank-one write ([36, 58]). To move beyond diagonal transitions, recent work uses delta rules, Householder products, one-hot column transitions, structured linear CDEs, and factored recurrent maps ([58, 73, 74, 62, 65, 69, 64]), while unitary RNNs constrain the dynamics to preserve norm ([2, 42]). All of these models—like RWKV-7 ([53])—read every parameter at every step. By contrast, GRUs, LSTMs, and the sLSTM of xLSTM gate on the state itself and must train sequentially, whereas xLSTM’s mLSTM gates only on the input and trains in parallel ([12, 31, 3]).
State tracking. A model tracks a task if the correct label is the unique logit maximiser at every labelled step of every valid input sequence. Its margin is the smallest gap between the correct logit and any other logit; in our constructions, this margin is positive and independent of sequence length. Group tasks require maintaining a running product, and they expose the limits of diagonal recurrences, since positive diagonal transitions cannot track parity and general diagonal transitions cannot track non-solvable groups ([47, 26, 60] (Sarroff et al. 2024)). Non-diagonal recurrences overcome this barrier ([26, 62, 65]). However, group tasks only permute states, whereas general finite automata also reset them. In a permutation–reset automaton, each input either permutes the states or resets all of them to a single state. By Krohn–Rhodes theory, every finite automaton is the image of a cascade of such automata arranged in levels, where each level reads the token and the previous states of lower levels ([39, 18, 44, 43]). The routed layers of Yggdrasil realise this cascade with one level per layer (Theorem 2). Section A discusses additional work on state tracking in linear recurrences.
Transition selection.
Sparse parameter access. Mixtures of experts, hash layers, product-key memories, memory layers, and Engram decouple stored capacity from active computation ([61, 20, 54, 41, 7, 10]). Token-indexed tables provide another form of sparse access ([55, 76, 67] (Gemma Team 2025)), while hierarchical experts, soft decision trees, and fast feedforward networks use trees for conditional computation ([35, 22, 4, 11]). All of these methods retrieve a value that enters the current step’s output; Yggdrasil instead retrieves the transition of its recurrence, a difference we compare at equal storage in Section H. Following mixture-of-experts convention, we distinguish stored parameters (the full model, determining memory footprint) from active parameters (those read per token, determining step latency and compute). Yggdrasil is built around this split, keeping active parameters in one CPU core’s cache while the stored bank resides in RAM.
Yggdrasil
Yggdrasil stacks one token layer and L routed recurrent layers, each maintaining a state ht(l)∈Rn (Figure 1). At every step, each layer applies an expert that supplies its transition, additive input, and readout. The token layer selects its expert directly from the token xt∈{1,…,V}. Each routed layer instead selects one of 2D experts from xt and the updated state ht(l−1) of the layer below.
Contextual transition lookup
Given a selected expert r=rt(l), layer l updates and reads out its state using only that expert’s parameters:
ht(l)=Arht−1(l)+Γrut(l),ot(l)=Prht(l).(1)
Here ut(l) packs the token code, a constant coordinate, and a projection of the normalised state from the layer below. Because neither the expert address nor ut(l) depends on ht−1(l), the update remains affine in the layer’s own state.
Routing. Each routed layer’s tree router reads the feature vector
ft(l)=[e(l)(xt);ν(ht(l−1))],(2)
where e(l) is a learned token embedding and ν is RMS normalisation. At each internal node η, the router branches right if wη⊤ft(l)+βη>0 and left otherwise, reaching one of 2D experts in D comparisons. The token layer has no layer below it and uses rt(0)=xt, forming an input-switched affine recurrence; a token-only tree router could always be collapsed into this direct lookup (Section C.1).
Transitions. To support exact state operations while remaining non-expanding, each transition combines coordinatewise decay with block rotations:
Ar=diag(clip(dr,−1,1))(eΩr,1⊕⋯⊕eΩr,G),(3)
with G=n/b blocks of size b and skew-symmetric generators Ωr,g=21(Sr,g−Sr,gT). Because each eΩr,g is orthogonal, ∥Ar∥2≤1, and Theorem 6 bounds state growth under bounded additive inputs. Decays in {±1} realise every orthogonal map within a block, while zero decays add signed partial permutations (Theorem 4), which are the exact operations used in our constructions (§ 4).
Inputs and outputs. The additive input sums a token term Tr[xt]=Urv(xt)+cr and a lower-layer term UrlowW(l)ν(ht(l−1)), where the shared matrix W(l) compresses the lower state to rank klow and the expert matrix Urlow expands it. For finite vocabularies, Tr[xt] can be materialised as table rows, though our runtime also supports the factored form (Section J). A shared matrix Q(l) projects each expert readout ot(l)∈RR to the C output classes. Summing all layers’ contributions with an output bias before the softmax allows each selected expert to control both its layer’s state update and its contribution to the prediction. Section C gives the full parameterisation.
Parallel evaluation and training
Because layer l’s router and additive input depend only on the token and layer l−1, they can be evaluated at every position in parallel once layer l−1 is computed. Only the affine recurrence in Equation (1) runs over time. Affine composition obeys
(A2,u2)∙(A1,u1)=(A2A1,A2u1+u2),
References
[1]Agarwal, A., Tan, Y. S., Ronen, O., Singh, C., and Yu, B. Hierarchical shrinkage: Improving the accuracy and interpretability of tree-based models. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 111–135. PMLR, 2022.arxiv.org/abs/2202.00858
[2]Arjovsky, M., Shah, A., and Bengio, Y. Unitary evolution of recurrent neural networks. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1120–1128, 2016.arxiv.org/abs/1511.06464
[3]Beck, M., Pöppel, K., Spanring, M., Auer, A., Prudnikova, O., Kopp, M., Klambauer, G., Brandstetter, J., and Hochreiter, S. xLSTM: Extended long short-term memory. In Advances in Neural Information Processing Systems, volume 37, 2024.arxiv.org/abs/2405.04517
[4]Belcak, P. and Wattenhofer, R. Fast feedforward networks. arXiv preprint arXiv:2308.14711, 2023a.arxiv.org/abs/2308.14711
[5]Belcak, P. and Wattenhofer, R. Exponentially faster language modelling. arXiv preprint arXiv:2311.10770, 2023b.arxiv.org/abs/2311.10770
[6]Bengio, Y., Léonard, N., and Courville, A. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.arxiv.org/abs/1308.3432
[7]Berges, V.-P., Oğuz, B., Haziza, D., Yih, W.-t., Zettlemoyer, L., and Ghosh, G. Memory layers at scale. arXiv preprint arXiv:2412.09764, 2024.arxiv.org/abs/2412.09764
[8]Blelloch, G. E. Prefix sums and their applications. Technical Report CMU-CS-90-190, School of Computer Science, Carnegie Mellon University, 1990.
[10]Cheng, X., Tian, R., Zeng, W., Dai, D., Chen, Q., Wang, B., Xie, Z., Huang, K., Yu, X., Deng, C., Zhou, S., Zhao, C., Hao, Z., Li, Y., Zhang, H., Zhang, Z., Wei, Y., Xu, M. Y. Zhang, H. Zhao, D., and Liang, W. Conditional memory via scalable lookup: A new axis of sparsity for large language models. arXiv preprint arXiv:2601.07372, 2026.arxiv.org/abs/2601.07372
[11]Cho, K. and Bengio, Y. Exponentially increasing the capacity-to-computation ratio for conditional computation in deep learning, 2014.arxiv.org/abs/1406.7362
[12]Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, 2014.arxiv.org/abs/1406.1078
[13]Dai, Z., Yang, Z., Yang, Y., Carbonell, J., Le, Q., and Salakhutdinov, R. Transformer-XL: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2978–2988, 2019. doi: 10.18653/v1/P19-1285.
[14]Dao, T. Flashattention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations, 2024.arxiv.org/abs/2307.08691
[16]Delétang, G., Ruoss, A., Grau-Moya, J., Genewein, T., Wenliang, L. K., Catt, E., Cundy, C., Hutter, M., Legg, S., Veness, J., and Ortega, P. A. Neural networks and the Chomsky hierarchy. In International Conference on Learning Representations, 2023.arxiv.org/abs/2207.02098
[17]Duan, Q., Huang, B., Song, Z., Lehmann, I., Gu, L., Eils, R., and Wild, B. JanusDNA: A powerful bi-directional hybrid DNA foundation model. In Advances in Neural Information Processing Systems, 2025. arXiv:2505.17257.arxiv.org/abs/2505.17257
[18]Eilenberg, S. Automata, Languages, and Machines, Volume B, volume 59 of Pure and Applied Mathematics. Academic Press, New York, 1976.
[19]Fan, T.-H., Chi, T.-C., and Rudnicky, A. Advancing regular language reasoning in linear recurrent neural networks. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pp. 45–53. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.naacl-short.4.DOI
[20]Fedus, W., Zoph, B., and Shazeer, N. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022.arxiv.org/abs/2101.03961
[21]Foerster, J. N., Gilmer, J., Sohl-Dickstein, J., Chorowski, J., and Sussillo, D. Input switched affine networks: An RNN architecture designed for interpretability. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1136–1145. PMLR, 2017.arxiv.org/abs/1611.09434
[22]Frosst, N. and Hinton, G. Distilling a neural network into a soft decision tree. In Proceedings of the First International Workshop on Comprehensibility and Explanation in AI and ML (CEX 2017), co-located with AI*IA 2017, volume 2071 of CEUR Workshop Proceedings, 2017.
[24]Gerganov, G. and llama.cpp contributors. llama.cpp: LLM inference in C/C++. https://github.com/ggml-org/llama.cpp, 2023.
[25]Giles, C. L., Miller, C. B., Chen, D., Chen, H.-H., Sun, G.-Z., and Lee, Y.-C. Learning and extracting finite state automata with second-order recurrent neural networks. Neural Computation, 4(3):393–405, 1992. doi: 10.1162/neco.1992.4.3.393.DOI
[26]Grazzi, R., Siems, J., Zela, A., Franke, J. K. H., Hutter, F., and Pontil, M. Unlocking state-tracking in linear RNNs through negative eigenvalues. In International Conference on Learning Representations, 2025.arxiv.org/abs/2411.12537
[27]Grešová, K., Martinek, V., Čechák, D., Šimeček, P., and Alexiou, P. Genomic benchmarks: A collection of datasets for genomic sequence classification. BMC Genomic Data, 24:25, 2023. doi: 10.1186/s12863-023-01123-8.DOI
[31]Hochreiter, S. and Schmidhuber, J. Long short-term memory. Neural Computation, 9(8):1735–1780, 1997.
[32]Hutter, M. The human knowledge compression contest (Hutter prize). http://prize.hutter1.net/, 2006.
[33]Irie, K., Cordós, R., and Schmidhuber, J. Practical computational power of linear transformers and their recurrent and self-referential extensions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 9455–9465. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023. emnlp-main.588.
[34]Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., and Kalenichenko, D. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2704–2713, 2018.
[35]Jordan, M. I. and Jacobs, R. A. Hierarchical mixtures of experts and the EM algorithm. Neural Computation, 6 (2):181–214, 1994.
[36]Katharopoulos, A., Vyas, A., Pappas, N., and Fleuret, F. Transformers are RNNs: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 5156–5165, 2020.
[37]Kelley, D. R., Reshef, Y. A., Bileschi, M., Belanger, D., McLean, C. Y., and Snoek, J. Sequential regulatory activity prediction across chromosomes with convolutional neural networks. Genome Research, 28(5):739–750, 2018.
[38]Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
[39]Krohn, K. and Rhodes, J. Algebraic theory of machines. I. prime decomposition theorem for finite semigroups and machines. Transactions of the American Mathematical Society, 116:450–464, 1965.
[40]Lahoti, A., Li, K. Y., Chen, B., Wang, C., Bick, A., Kolter, J. Z., Dao, T., and Gu, A. Mamba-3: Improved sequence modeling using state space principles. In International Conference on Learning Representations, 2026. arXiv:2603.15569.
[41]Lample, G., Sablayrolles, A., Ranzato, M., Denoyer, L., and Jégou, H. Large memory layers with product keys. In Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1907.05242
[42]Lezcano-Casado, M. and Martínez-Rubio, D. Cheap orthogonal constraints in neural networks: A simple parametrization of the orthogonal and unitary group. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 3794–3803, 2019.
[43]Liu, B., Ash, J. T., Goel, S., Krishnamurthy, A., and Zhang, C. Transformers learn shortcuts to automata. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.10749
[44]Maler, O. and Pnueli, A. On the cascaded decomposition of automata, its complexity and its application to logic. Unpublished manuscript, 1994. URL https://www-verimag.imag.fr/~maler/Papers/decomp.pdf.
[45]Martin, E. and Cundy, C. Parallelizing linear recurrent neural nets over sequence length. In International Conference on Learning Representations, 2018.
[46]Massaroli, S., Poli, M., Fu, D., Kumbong, H., Parnichkun, R., Romero, D., Timsalina, A., McIntyre, Q., Chen, B., Rudra, A., Zhang, C., Ré, C., Ermon, S., and Bengio, Y. Laughing hyena distillery: Extracting compact recurrences from convolutions. In Advances in Neural Information Processing Systems, volume 36, pp. 17072–17116, 2023. doi: 10.52202/075280-0747.
[47]Merrill, W., Petty, J., and Sabharwal, A. The illusion of state in state-space models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 35492–35506, 2024.
[48]Muca Cirone, N., Orvieto, A., Walker, B., Salvi, C., and Lyons, T. Theoretical foundations of deep selective state-space models. In Advances in Neural Information Processing Systems, volume 37, pp. 127226–127272, 2024. doi: 10.52202/079017-4041.
[49]Nguyen, E., Poli, M., Faizi, M., Thomas, A., Birch-Sykes, C., Wornow, M., Patel, A., Rabideau, C., Massaroli, S., Bengio, Y., Ermon, S., Baccus, S. A., and Ré, C. HyenaDNA: Long-range genomic sequence modeling at single nucleotide resolution. In Advances in Neural Information Processing Systems, volume 36, 2023.
[50]Omlin, C. W. and Giles, C. L. Constructing deterministic finite-state automata in recurrent neural networks. Journal of the ACM, 43(6):937–972, 1996. doi: 10.1145/235809.235811.
[53]Peng, B., Zhang, R., Goldstein, D., Alcaide, E., Du, X., Hou, H., Lin, J., Liu, J., Lu, J., Merrill, W., Song, G., Tan, K., Utpala, S., Wilce, N., Wind, J. S., Wu, T., Uttke, D., and Zhou-Zheng, C. RWKV-7 “Goose” with expressive dynamic state evolution. In Conference on Language Modeling (COLM), 2025.arxiv.org/abs/2503.14456
[54]Roller, S., Sukhbaatar, S., Szlam, A., and Weston, J. Hash layers for large sparse models. In Advances in Neural Information Processing Systems, volume 34, pp. 17555–17566. Curran Associates, Inc., 2021.arxiv.org/abs/2106.04426
[55]Sadhukhan, R., Cao, S., Dong, H., Zhao, C., Purpura-Pontoniere, A., Tian, Y., Liu, Z., and Chen, B. STEM: Scaling transformers with embedding modules. In International Conference on Learning Representations, 2026.arxiv.org/abs/2601.10639
[56]Sarrof, Y., Veitsman, Y., and Hahn, M. The expressive capacity of state space models: A formal language perspective. In Advances in Neural Information Processing Systems, volume 37, 2024.DOI
[57]Schiff, Y., Kao, C. H., Gokaslan, A., Dao, T., Gu, A., and Kuleshov, V. Caduceus: Bi-directional equivariant long-range DNA sequence modeling. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 43632–43648, 2024.arxiv.org/abs/2403.03234
[58]Schlag, I., Irie, K., and Schmidhuber, J. Linear transformers are secretly fast weight programmers. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 9355–9366, 2021.arxiv.org/abs/2102.11174
[59]Schmidinger, N., Schneckenreiter, L., Seidl, P., Schimunek, J., Hoedt, P.-J., Brandstetter, J., Mayr, A., Luukkonen, S., Hochreiter, S., and Klambauer, G. Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequences. arXiv preprint arXiv:2411.04165, 2024.arxiv.org/abs/2411.04165
[60]Shakerinava, M., Khavari, B., Ravanbakhsh, S., and Chandra, S. The expressive limits of diagonal SSMs for state-tracking. In International Conference on Learning Representations, 2026.arxiv.org/abs/2603.01959
[61]Shazeer, N., Mirhoseini, A., Mazziar, K., Davis, A., Le, Q., Hinton, G., and Dean, J. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations, 2017.arxiv.org/abs/1701.06538
[62]Siems, J., Carstensen, T., Zela, A., Hutter, F., Pontil, M., and Grazzi, R. DeltaProduct: Improving state-tracking in linear RNNs via Householder products. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2502.10297
[64]Sutskever, I., Martens, J., and Hinton, G. Generating text with recurrent neural networks. In Proceedings of the 28th International Conference on Machine Learning (ICML), pp. 1017–1024. ACM, 2011.
[65]Terzić, A., Menet, N., Hersche, M., Hofmann, T., and Rahimi, A. Structured sparse transition matrices to enable state tracking in state-space models. In Advances in Neural Information Processing Systems, volume 38, 2025.
[66]Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., and Lample, G. LLaMA: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.arxiv.org/abs/2302.13971
[67]Tseng, A. and De Sa, C. L³: Large lookup layers. arXiv preprint arXiv:2601.21461, 2026.
[68]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017.arxiv.org/abs/1706.03762
[69]Walker, B., Yang, L., Muca Cirone, N., Salvi, C., and Lyons, T. Structured linear CDEs: Maximally expressive and parallel-in-time sequence models. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2505.17761
[70]Williams, S., Waterman, A., and Patterson, D. Roofline: An insightful visual performance model for multicore architectures. Communications of the ACM, 52(4):65–76, 2009.DOI
[71]Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., Davison, J., Shleifer, S., von Platen, P., Ma, C., Jernite, Y., Plu, J., Xu, C., Le Scao, T., Gugger, S., Drame, M., Lhoest, Q., and Rush, A. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 38–45, 2020. doi: 10.18653/v1/2020.emnlp-demos.6.DOI
[72]Yang, S. and Zhang, Y. FLA: A Triton-based library for hardware-efficient implementations of linear attention mechanism. https://github.com/fla-org/flash-linear-attention, 2024.
[73]Yang, S., Wang, B., Zhang, Y., Shen, Y., and Kim, Y. Parallelizing linear transformers with the delta rule over sequence length. In Advances in Neural Information Processing Systems, volume 37, 2024.arxiv.org/abs/2406.06484
[74]Yang, S., Kautz, J., and Hatamizadeh, A. Gated delta networks: Improving Mamba2 with delta rule. In International Conference on Learning Representations, 2025.arxiv.org/abs/2412.06464
[75]Zhang, J., Cheng, Z., Zhao, Y., Wang, S., Zhou, D., Lu, G., and Song, L. L3TC: Leveraging RWKV for learned lossless low-complexity text compression. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 13251–13259, 2025.arxiv.org/abs/2412.16642
[76]Zhou, W., Gu, Y., Iacovides, G., Qiu, Y., Zhao, Q., and Mandic, D. Tensorizing Engram: Sharing latents across n-gram embeddings is beneficial in LLMs. arXiv preprint arXiv:2606.08347, 2026.arxiv.org/abs/2606.08347