LoomFormer matches 3×-compute transformers at 2% FLOPs cost
TL;DR
- LoomPythia-2.8B trained on 300B tokens with 2% extra FLOPs matches Pythia-12B at 0-shot and surpasses it at 5-shot, per the paper.
- The architecture adds a second residual stream carrying per-token matrix memory, letting each attention head do vertical attention over earlier heads' outputs.
- Against newer residual-stream baselines HC/mHC, MUDDFormer and AttnRes, the authors report equivalence at roughly 1.7–2.8× the compute.
A 2.8-billion parameter language model trained on 300 billion tokens with 2% extra FLOPs matches or surpasses a 12-billion parameter one on standard benchmarks. That is the central claim of LoomFormer, whose code appears on GitHub under Caiyun-AI/LoomFormer.
The paper proposes "loom attention," which lets "a Transformer to dynamically rewire its circuits at every token by interweaving a head's vertical attention over the outputs of earlier heads (to obtain its query, key and value) with its horizontal attention over tokens." Vertical attention is implemented as "normalized and gated linear attention over a per-token matrix memory," which doubles as "a second residual stream." The authors describe the full design as "a dual-stream architecture that splits control and content between the vector and matrix streams."
The headline comparison, in the authors' own numbers: "trained on the same 300B tokens with only 2% extra FLOPs, LoomPythia-2.8B achieves ~1.6x the average downstream gain of mHC-Pythia-2.8B over Pythia-2.8B, and matches (0-shot) or surpasses (5-shot) Pythia-12B." Against vanilla Transformers, the paper says LoomFormer matches models "trained with over 3x compute." Against newer residual-stream baselines HC/mHC, MUDDFormer and AttnRes, the stated ratio is roughly 1.7–2.8×.
Caveats are the ones any single-lab preprint at this scale carries. The comparison target is the Pythia family, not a current frontier system, and 2.8B parameters sits well below the size where architectural wins typically have to prove themselves again. The paper is v2 on arXiv, revised 24 November 2026.
Originally reported by paper
Read the original article →Original headline: Caiyun AI's LoomFormer Matches 3×-Compute Transformers via Dynamic Circuit Rewiring, Only 2% FLOPs Overhead