Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference
Can a recurrence store far more than it reads?
Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference
Yggdrasil looks up each layer’s transition

Panel (a) shows one step; (b) unrolls the stack over time. Each routed layer uses the current token and updated state below to choose an expert transition.
A tree path chooses the step’s dynamics
- 1
Route with lower-layer context
A depth-D binary tree tests the current token and the updated state below, reaching one of 2^D experts in D comparisons.
- 2
The expert updates this layer
It supplies the transition, token and lower-layer input maps, and readout; the recurrence still uses this layer’s previous state.
- 3
Skip self-feedback, keep the scan
The router ignores this layer’s past; the recurrence still uses it. That keeps each layer affine and trainable with an associative parallel scan.
Why the route needs context
A token-only affine layer with transitions that do not increase state norm and finitely many reachable states cannot track the first symbol of a binary sequence, even with state-and-token readout.
A token layer marks first versus later; one depth-2 routed layer with block size at least 2 writes the first symbol once, then chooses identity, without consulting its own past.
Only one tested parallel model solves all five
Final-answer accuracy; train lengths 3–40, test 40–256; ≥0.90 means solved. S₅/A₅ values are paired in that order; GRU is sequential.
Rotations and routing solve different failures
Removing block rotations drops S₅/A₅ accuracy to 0.016/0.016, near chance (0.008/0.017).
Shared transitions leave modular accuracy at 0.290; token-only routing leaves 0.260, both near the 0.2 chance level.
The ablations implicate transition dynamics for groups and contextual selection for resets.
A huge bank need not mean huge per-token work
Every dense recurrent step reads all its weights, so added capacity brings more per-token memory traffic.
It stores 195.4M parameters (681.3 MB); one CPU step touches 280.7 KB, under 0.2% of stored weights. One core has 2 MB L2.
One-core trade-offs across three active sizes

Yggdrasil is lowest in float test bits/byte (enwik8), bits/base (hg38) and CPU latency at every size. Points are best of 3 seeds by validation. HyenaDNA is offline-scored; Gated DeltaNet/DeltaProduct lack public CPU timings.
Lower bits than PKM; faster than GRU at similar size
Large hg38; float test bits/base. CPU batch-1 full-output step on one core; Yggdrasil uses an accuracy-checked 8-bit kernel; PKM untimed.
A storage bill and a finite test horizon
Stored footprint
Largest files are 681.3 MB on enwik8 and 146.5 MB on hg38, versus about 1.5 MB for matched dense baselines.
Scale still open
Experiments reach 470k active parameters and 256-byte or 1,024-base windows; larger active sizes and longer contexts remain future work.
Why it matters
- Cross-layer context lets recurrent layers implement conditional resets while preserving parallel-scan training.
- Choose it when batch-1 CPU latency matters and RAM can hold a large expert bank.
- Yggdrasil: 86.0% mean accuracy on Genomic Benchmarks vs causal HyenaDNA's 85.3% at matched active size. Can it scale to longer contexts?
11 slides, 3 min
25 Nov 2026