Explore the research collection
1 entry · Follow this search
- Paper
Rewirable Circuits in Transformers with Loom Attention
Xiao, Meng, Li & Yuan (Caiyun-AI), 'Rewirable Circuits in Transformers with Loom Attention' (arXiv 2611.30634, Nov 23 2026, v2 Nov 24, CC BY 4.0; code at github.com/Caiyun-AI/LoomFormer). Loom attention lets each token dynamically rewire head circuits: a head's vertical attention over the outputs of earlier heads (which produces its query, key and value) is interwoven with its horizontal attention over tokens. Vertical attention is instantiated efficiently with normalized, gated linear attention over a per-token matrix memory that stores compressed head outputs and serves as a second residual stream - yielding LoomFormer, a dual-stream architecture that splits control (vector stream) and content (matrix stream). Across model sizes and token budgets, LoomFormer matches Transformers trained with over 3x compute and recent residual-stream baselines (HC/mHC, MUDDFormer, AttnRes) trained with ~1.7-2.8x. Headline: 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. Flags, as entered: abstract-level at cataloging, authors' own numbers; Pythia-scale evidence (2.8B, 300B tokens). Cross-references: the residual-stream expansion cluster - SimpleHC (staged slot 5, the mHC ablation), ARLoop/AttnRes (live ID 1820 and staged enrichment slot 8), Hyperloop (ID 1710, hyper-connections between loops); Loom is the matrix-memory member of that family, where the second stream is a per-token matrix rather than an expanded vector residual. For the user's stack: not a drop-in for the 3:1 SWA hybrid - it replaces the residual stream itself - but it is the strongest current evidence that the residual stream, not attention, is the bottleneck worth spending 2% extra FLOPs on, and its baselines (mHC, AttnRes) are exactly the staged alternatives it should be compared against.