Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference
Abstract
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 and faster on a single CPU core ( and ) 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).
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL
- Comments
- 33 pages, 3 figures. Code: https://github.com/CosmoNaught/yggdrasil
Related papers
IP-GNO: An Inductive Physics-Informed Graph Neural Operator for Automated Distribution System State Estimation
Shared title terminologycs.LGSakshi Kumar, Chhavi Jhari, Ajay Singh et al.
HEART: Hierarchical Expert Adaptive Refinement Transformer for ECG Representation Learning
Shared title terminologycs.LGJunho Song, Jong-Hwan Jang, Joon-Myoung Kwon et al.
AdaptRouter: Adaptive Routing across Evolving Tasks and Models
Shared title terminologycs.LGJingpu Yang, Fengxian Ji, Tianhao Li et al.
Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them
Shared title terminologycs.LGJian Zhang
Training Dynamics of Large State-Transition Models
Shared title terminologycs.LGYee Man Choi, Fengchi Wang, Ruiquan Huang
From States to Dynamics: Detecting Rule Violations in OthelloGPT
Shared title terminologycs.LGDavid L. Cao, Sai Sumedh R. Hindupur, Demba Ba