# Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference

> Yggdrasil routes transitions using the token and lower-layer state, preserving parallel-scan training. It alone among evaluated parallel models solved five tracking tasks; at matched active sizes, its largest hg38 model beat Mamba-2 + PKM on bits/base and ran 3.3× faster than GRU.

- arXiv: https://arxiv.org/abs/2611.29954
- Authors: Cosmo Santoni
- Published: 2026-11-25
- Topic: Architectures
- Visual carousel: https://instaxiv.com/p/2611.29954
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can a recurrence store far more than it reads?

**3.3×** CPU speedup vs GRU, hg38 (~290k active each)

## Yggdrasil looks up each layer’s transition

![Figure 1](https://cdn.instaxiv.com/figures/2611.29954/figure1.webp)

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. (Figure 1)

## 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

**Token-only recurrence:** 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.

**Cross-layer route:** 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

| Method | S₅ / A₅ | Parity | Cycle | Mod. arith. |
| --- | --- | --- | --- | --- |
| GRU | 0.979 / 1.000 | 1.000 | 1.000 | 1.000 |
| DeltaProduct-4 | 0.935 / 1.000 | 1.000 | 0.684 | 1.000 |
| **Yggdrasil** | **1.000 / 0.980** | **1.000** | **1.000** | **0.981** |

_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

**Rotations removed:** Removing block rotations drops S₅/A₅ accuracy to 0.016/0.016, near chance (0.008/0.017).

**Contextual choice removed:** 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

**Dense recurrence:** Every dense recurrent step reads all its weights, so added capacity brings more per-token memory traffic.

**Yggdrasil, enwik8 large:** 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

![Figure 2](https://cdn.instaxiv.com/figures/2611.29954/figure2.webp)

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. (Figure 2)

## Lower bits than PKM; faster than GRU at similar size

| Method | Active parameters | Test bits/base | CPU μs/base |
| --- | --- | --- | --- |
| Mamba-2 + PKM | 285.2k | 1.598 | -- |
| GRU | 280.0k | 1.640 | 18.9 |
| **Yggdrasil (−0.031 bits/base)** | **289.1k** | **1.567** | **5.8** |

_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.

Best used when: Choose it when batch-1 CPU latency matters and RAM can accommodate a large expert bank.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.29954
- PDF: https://arxiv.org/pdf/2611.29954
- Code: https://github.com/CosmoNaught/yggdrasil

## Citation

```bibtex
@article{santoni2026yggdrasil,
  title   = {Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference},
  author  = {Santoni, Cosmo},
  journal = {arXiv preprint arXiv:2611.29954},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.29954}
}
```
