News · 2026-11-25
Loom Attention adds token-dependent routing between Transformer heads
Loom Attention adds a shared matrix memory and learned ports that let Transformer heads route information differently for each token. The network’s weights and topology remain fixed; what changes with the input is the continuous path by which earlier head outputs feed later heads.
Key facts
- Who: Da Xiao and coauthors, with an official LoomFormer implementation.
- When: The paper’s second version appeared November 24, 2026.
- Anchor result: In a matched-parameter medium-scale comparison, LoomFormer’s Pile validation loss was 2.266 versus 2.443 for Transformer++.
- Primary sources: Full paper, arXiv record, and official code.
In a standard Transformer, attention allows a head to select information from earlier tokens, but the learned head-to-head pathways are largely fixed by projection matrices after training. Loom adds a second, matrix-valued memory that stores compressed outputs from earlier heads at the current token. Each head generates read and write ports from its state. A generated query port reads prior outputs; a generated key port writes its own output for later heads; and a separate output port provides a bypass. A useful analogy is a workshop where workers have fixed desks, but each item being processed can carry its own routing slips that decide which earlier workstations to consult.
The authors call the method “Rewirable Circuits in Transformers with Loom Attention.” The word “rewiring” can sound stronger than the operation. Loom does not add or delete heads, alter model weights during inference, or create an unconstrained graph. It computes continuous, input-dependent routing weights through a fixed-size memory. The capacity of that routing remains limited by the available memory slots. This differs from ordinary token attention, which chooses which tokens a head reads, and instead changes which earlier head outputs contribute to the current computation.
The paper measures these routes on Pythia, a matched mHC-Pythia model, and LoomPythia checkpoints. For LoomPythia, the token-centered routing matrix has mean effective rank 26.4, with a maximum of 41 across layers out of a possible 64. The authors report that 71% of dynamic wiring energy lies outside a rank-one component, rising to 90.7% in one layer. They also count more active head destinations in later layers than in the comparison models. These measurements suggest the routes vary and combine information in richer patterns; “active” is a definition based on a threshold, not a direct measure of useful computation.
The authors also intervene on one country-to-capital prompt. In a layer where the model processes “Germany,” they freeze the next token’s routing ports to the values from the prior token. The probability assigned to “Berlin” changes from 0.65 to 0.54; freezing the ports across all layers changes it to 0.41. This is a concrete demonstration that the dynamic routes can affect a prediction in one example. It is not a broad causal study across prompts or tasks, and does not by itself prove that a human-readable semantic circuit has been identified.
The architecture experiments report promising results. A 2.78B LoomPythia model trained on 300 billion tokens with about 2% extra FLOPs matches Pythia-12B on the paper’s ten-task zero-shot average and scores 61.6 versus 60.8 five-shot. The paper also reports lower throughput than matched Transformer systems, with added routing costs. Its equivalent-compute comparisons interpolate along baseline curves, and the larger model comparison is a single benchmark suite without reported multi-seed uncertainty.
The matched-parameter ablation is particularly useful because it separates the dynamic ports from the broader architecture. Full LoomFormer has a validation loss of 2.266 versus 2.443 for Transformer++. A version with static read and write ports retains 56% of LoomFormer’s gain, and another reduced version retains 53.6%. The authors conclude that the underlying dual-stream architecture and the token-dependent rewiring each account for a substantial share. This is stronger evidence than an isolated leaderboard number, though the paper reports one run per variant at this scale.
The official LoomFormer repository provides training code, inference code, and checkpoints under Apache-2.0. That makes the proposal inspectable, but released code is not an independent replication. The sources checked showed no outside implementation or technical review at the time.
The strongest counterargument is that visualized routes may be mistaken for explanations. The paper demonstrates that routes are dynamic and can causally alter one next-token probability; it does not establish that those routes correspond to stable, general semantic reasoning. Another practical issue is throughput: the additional mechanism slows measured execution, so quality-per-compute must justify its cost in applications.
Loom Attention is therefore best understood as both an architecture proposal and a mechanistic-analysis opportunity. It gives researchers a way to test how token-conditioned head routing affects behavior. Independent implementations, multiple seeds, task-level interventions, and careful throughput comparisons will show whether it offers general gains or a compelling but narrow mechanism.
Key questions
What does Loom Attention mean by rewiring a Transformer?
What was the main ablation result for LoomFormer?
Does Loom Attention prove that researchers can read semantic circuits?
Cite this
APA
Ground Truth. (2026, November 25). Loom Attention adds token-dependent routing between Transformer heads. Ground Truth. https://groundtruth.day/news/loom-attention-adds-token-dependent-routing-between-transformer-heads.html
BibTeX
@misc{groundtruth:loom-attention-adds-token-dependent-routing-between-transformer-heads,
title = {Loom Attention adds token-dependent routing between Transformer heads},
author = {{Ground Truth}},
year = {2026},
month = {nov},
url = {https://groundtruth.day/news/loom-attention-adds-token-dependent-routing-between-transformer-heads.html}
}
Comments are replies to this story on Bluesky — reply with any Bluesky account to join in.