NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Cosmo SantoniarXiv 2026

Imagine you’re trying to follow a complex, fast-paced detective novel. To solve the mystery, you need to remember specific clues—the color of a suspect's car, a timestamp on a receipt—while ignoring the fluff. In the world of AI, we call this "state tracking."

Modern "fast" models, like Mamba or linear attention, are like speed-readers who are great at getting the gist but often trip over these tiny, crucial details. They also have a "dense tax": to get smarter, they need more parameters, but they have to read every single one of those parameters for every single word they process. This makes them sluggish on standard CPUs.

Enter Yggdrasil, a new architecture that functions less like a speed-reader and more like a master librarian with a massive, perfectly indexed vault.

TL;DR

Yggdrasil is a recurrent neural network that decouples a model's total "knowledge" from the amount of work it does per step. By using a tree-based lookup to pick specific "recurrent experts" for each token, it solves complex logic tasks that baffle other fast models while running over 3x faster on a standard CPU.

What Problem Does This Paper Address?

The researchers identify two "fundamental walls" hitting current sequence models:

  1. The Logic Gap: While models like Mamba are mathematically elegant and fast, they struggle with "discrete state tracking." If a task requires hard logic—like modular arithmetic or navigating complex cycles—these models often fail. They are essentially too "smooth" to handle the "jagged" nature of logic.
  2. The Memory Wall: In standard models, capacity is tied to latency. If you want a bigger model, you have to read more weights from memory for every token. On a CPU, this is a disaster because moving data from slow RAM to the fast processor is the primary bottleneck.

Methods

The name Yggdrasil comes from the "World Tree" of Norse mythology, and it’s a fitting metaphor for the architecture.

Instead of calculating a mathematical transition for every step, Yggdrasil looks one up in a massive bank of "recurrent experts."

  • Tree-Routing: Each layer has a bank of $2^D$ experts. To pick the right one, the model traverses a binary tree of depth $D$.
  • Cross-Layer Context: The "secret sauce" is that the router doesn't just look at the current word; it looks at the internal state of the layer below it. The authors prove mathematically that this cross-layer communication is necessary to perform "conditional resets"—the ability to forget specific information only when a certain context is met.
  • Hardware-Aware Design: Because the model only needs to read the experts along one specific path in the tree, the "active" weights are tiny (a few hundred kilobytes). This allows them to stay entirely within the CPU’s ultra-fast L2 cache, while the rest of the massive "library" of experts sits quietly in the slower RAM.
The Yggdrasil architecture. (a) shows a single inference step where a tree router selects an expert based on the current token and the layer below. (b) shows how this unrolls over time while remaining parallel-trainable.

Datasets

The authors put Yggdrasil through a grueling gauntlet:

  • State-Tracking Suite: Five tasks designed to break recurrent models, including $S_5$ and $A_5$ group tracking, parity, and modular arithmetic.
  • Language Modeling: The enwik8 dataset (raw Wikipedia text).
  • Genomics: The hg38 human genome dataset and the Genomic Benchmarks (eight classification tasks like identifying coding vs. non-coding DNA).

Key Insights and Ideas

  • Sparsity as a Speed Boost: Usually, "sparse" models are about saving math operations (FLOPs). Here, sparsity is about saving memory bandwidth. By only touching 0.2% of its total parameters per step, Yggdrasil avoids the "dense tax."
  • The Necessity of "Non-Diagonal" Math: Most fast models use "diagonal" math because it's easy to parallelize. Yggdrasil uses "block rotations." The authors show that without these rotations, the model simply cannot solve complex group-theory logic tasks.
  • Parallel Training, Sequential Logic: Even though the model looks like a sequential lookup, it is designed to be trained using "associative parallel scans," meaning it can still take full advantage of powerful GPUs during training.

Key Results

Yggdrasil didn't just compete; it dominated in its specific niche:

  • Logic Master: It was the only parallel-trainable model tested that solved all five state-tracking tasks.
  • CPU Speed Demon: On a single CPU core, it ran 3.0x to 3.3x faster than the fastest streaming baselines (like Mamba-2).
  • Efficiency: At the same "active" parameter count, it achieved the best compression scores on both text and DNA.
  • Genomics: It became the strongest causal model on the Genomic Benchmarks, averaging 86.0% accuracy.
Accuracy vs. Inference Time on CPU. Yggdrasil (the orange stars) sits at the "Pareto frontier," meaning it offers the best trade-off between speed and accuracy, significantly outperforming GRUs, LSTMs, and Transformers.

Limitations and Future Work

While Yggdrasil is a breakthrough for CPU inference and logic, it has its trade-offs:

  • Memory Footprint: While it's fast, it's "heavy." The full bank of experts requires significantly more RAM than a dense model of the same "active" size. Its largest model takes up about 681 MB—easy for a laptop, but much larger than the 1.5 MB footprint of a tiny dense baseline.
  • Scaling: The current experiments go up to about 470k active parameters. Scaling this to "Large Language Model" sizes (billions of parameters) and integrating it with attention mechanisms remains a challenge for future research.

In short, Yggdrasil suggests that the future of fast, logical AI might not be about doing more math, but about building a better library.

Summary updated

BibTeX
@misc{santoni2026yggdrasil,
  author = {Cosmo Santoni},
  title = {{Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference}},
  year = {2026},
  eprint = {2611.29954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29954},
}
Figure