Skip to content
NewA calmer, faster ZeroHour

Loom attention rewires Transformer circuits at every token

Original title: Rewirable Circuits in Transformers with Loom Attention

Hugging Face daily papersby Da Xiao, Qingye Meng, Shengping Li ()1 min read2
AI summary · x-ai/grok-4.7Summaries by Vani AI

On the same 300B tokens and 2% extra FLOPs, LoomPythia-2.8B matches or beats Pythia-12B in the reported shot settings.

The paper proposes loom attention, mixing a head's vertical attention over earlier head outputs with horizontal attention over tokens. A per-token matrix memory acts as a second residual stream, producing LoomFormer. Across sizes and token budgets, the authors report it matching Transformers trained with over 3x compute and residual-stream baselines trained with about 1.7-2.8x. Code is released.

Unconfirmed: Compute and downstream gains are the authors' reported comparisons, not an independent replication.

Key facts
  • Vertical attention uses normalized, gated linear attention over matrix memory.
  • LoomPythia-2.8B gained about 1.6x mHC-Pythia-2.8B's average downstream gain over Pythia-2.8B.
  • It matched Pythia-12B at 0-shot and surpassed it at 5-shot, the authors report.
  • Compared baselines include HC/mHC, MUDDFormer, and AttnRes.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

We propose loom attention, which allows 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.

Hugging Face daily papers

By Da Xiao, Qingye Meng, Shengping Li · huggingface.co

Read the full article at Hugging Face daily papers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.