Rewirable Circuits in Transformers with Loom Attention
Summary
The paper proposes Loom Attention, a mechanism letting Transformers dynamically rewire circuits per token by combining vertical attention over earlier head outputs with horizontal token attention, yielding the dual-stream LoomFormer architecture that matches models trained with over 3x compute while adding only ~2% FLOPs.
View Cached Full Text
Cached at: 11/25/26, 04:04 AM
Paper page - Rewirable Circuits in Transformers with Loom Attention
Source: https://huggingface.co/papers/2611.30634
Abstract
Weproposeloomattention,whichallowsaTransformertodynamicallyrewireitscircuitsateverytokenbyinterweavingahead’sverticalattentionovertheoutputsofearlierheads(toobtainitsquery,keyandvalue)withitshorizontalattentionovertokens.Weinstantiateverticalattentionefficientlywithnormalizedandgatedlinearattentionoveraper-tokenmatrixmemory,whichstoresthecompressedheadoutputsandservesasasecondresidualstream.ThisyieldsLoomFormer,adual-streamarchitecturethatsplitscontrolandcontentbetweenthevectorandmatrixstreams.Acrossmodelsizesandtrainingtokenbudgetsinlanguagemodelinganddownstreamtasks,LoomFormermatchesTransformerstrainedwithover3xcomputeandrecentresidual-streambaselines(HC/mHC,MUDDFormer,AttnRes)trainedwith~1.7-2.8x.Forexample,trainedonthesame300Btokenswithonly2%extraFLOPs,LoomPythia-2.8Bachieves~1.6xtheaveragedownstreamgainofmHC-Pythia-2.8BoverPythia-2.8B,andmatches(0-shot)orsurpasses(5-shot)Pythia-12B.Codeisavailableathttps://github.com/Caiyun-AI/LoomFormer
View arXiv pageView PDFGitHubAdd to collection
Get this paper in your agent:
hf papers read 2611\.30634
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper2
#### Caiyun-AI/LoomPythia-2.8B Text Generation• 3B• Updatedabout 21 hours ago • 10 • 1
#### Caiyun-AI/mHC-Pythia-2.8B Text Generation• 3B• Updatedabout 21 hours ago • 19
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2611.30634 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2611.30634 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
@HuggingPapers: LoomFormer: Transformers that rewire their circuits at every token Loom attention interleaves vertical attention over e…
LoomFormer introduces Loom attention, which interleaves vertical attention over earlier heads with horizontal attention over tokens, allowing the 2.8B LoomPythia model to match Pythia-12B performance on 300B tokens with only ~2% extra FLOPs.
Loopback Transformer: Towards a Unified View of Residual Looped Transformers
The paper proposes Loopback Transformer, which reinterprets residual connections as memory along network depth via a write–transport–read formulation, storing block updates with geometric forgetting and content-dependent attention. At matched tokens and depth it achieves lower validation loss and higher 13-task zero-shot accuracy than Standard Transformers at 1.4B and 3B while retaining only 68% and 75% of their parameters.
Letting each attention head choose which earlier heads it reads from, per token (LoomFormer) [R]
LoomFormer introduces 'loom attention', letting each head dynamically choose which earlier heads to read from per token via a small addressable matrix, matching Pythia-12B's 10-task average with a 2.8B model at 2-4% extra FLOPs. Code and the 2.8B weights are public alongside the arXiv paper.
@yingfan_bot: New paper on Looped Transformers! Latent reasoning is fast, but struggles to match CoT-level accuracy at scale. Can loo…
A new paper on Looped Transformers finds that a looped padded backbone provides a parallel workspace for latent reasoning, enabling supervision similar to explicit chain-of-thought (CoT) and achieving both speed and accuracy.
Mixture-of-Loops Transformer
The Mixture-of-Loops Transformer (MoLT) reuses key-value memory across loops and depths to improve the expressivity-efficiency tradeoff of looped transformers, with its U-shaped variant (U-MoLT) delivering 1.7x token efficiency over OLMo3 in 400B-token pretraining while matching non-looped inference latency.