CBAM Paper Walkthrough: The Double-Attention Mechanism
Read the original on Towards Data Science →The Flow has not summarised this story yet — read it at Towards Data Science.
The Flow has not summarised this story yet — read it at Towards Data Science.
The paper investigates whether recent attention‑mechanism improvements—specifically gated attention, Kimi K3, Kimi Delta Attention, and Attention Residuals—effectively eliminate the attention‑sink problem when scaling language models to a one‑million‑token context window. Using a new diagnostic suite called SinkProbe, the authors evaluate sink mass, massive activation, position‑resolved recall, and the recency gap across four small models that vary only in token mixing and depth. Their findings show that the training objective, rather than the architecture, drives the emergence of attention sinks; gating did not replicate its previously reported benefits at the larger scale, and sink mass, activations, and positional bias behaved independently.
arXiv:2608. 13578v1 Announce Type: cross Abstract: Transformer architectures rely on dense self-attention to model long-range dependencies, but this mechanism exhibits quadratic complexity with respect to sequence length.
PHBA (Prefix-State Hybrid Block Attention) is a new hybrid architecture that replaces local sliding‑window attention with top‑k block‑sparse retrieval, pairing each retrieved block with a compact prefix state that summarizes its preceding context. The prefix states are generated by a gated linear recurrence at block boundaries and are retrieved alongside the token blocks, enabling the model to combine precise long‑range evidence with compressed historical context in a single layer. A hardware‑aware Triton implementation streams routed token blocks and prefix states without materializing large intermediate tensors, and experiments demonstrate that PHBA outperforms strong linear and hybrid baselines in long‑context and retrieval performance while maintaining efficient training and inference.
arXiv:2611.26637v1 Announce Type: cross Abstract: Recent gated linear attention models use state-independent gates, computed from token representations without directly reading the recurrent memory....
arXiv:2510. 01718v2 Announce Type: replace Abstract: Attention is a core operation in large language models (LLMs).