Loom Attention rewires Transformer circuits per token, matching 3x-compute baselines

Da Xiao · hf · 2026-11-25

Researchers from Beijing University of Posts and Telecommunications and Caiyun-AI propose Loom Attention, letting a Transformer dynamically rewire its circuits at every token by interweaving a head's vertical attention over earlier heads' outputs (to form query/key/value) with 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 acts as a second residual stream.

The resulting dual-stream LoomFormer splits control and content between vector and matrix streams. Results:

Code: github.com/Caiyun-AI/LoomFormer

Original post →

More from Research

Research channel →