Towards Data Science

CBAM Paper Walkthrough: The Double-Attention Mechanism

arXiv AI
Sep 10

Do New Attention Mechanisms Actually Fix Attention Sinks at Million-Token Context?

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.

By Sara Rizwan, Samaanah Abdus Salam
arXiv Machine Learning
Oct 7

PHBA: Prefix-State Hybrid Block Attention

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.

By Ruijie Li, Jiaxi Hu, Shiyu Wang, Yuxuan Liang
arXiv AI
Aug 11

Linearized 2-Simplicial Attention

arXiv:2608. 09307v1 Announce Type: new Abstract: We present a linearized form of 2-simplicial attention by rewriting the trilinear score as an inner product between a composite query and a key, so that the sum over one token axis takes the same form as ordinary softmax attention.

By Aritra Das, Dhruman Gupta, Debayan Gupta
arXiv Machine Learning
5d ago

Geometric state space, memory representation and architectures

The paper presents a geometric framework for deriving attention architectures, where a sequence is treated as a memory and an attention pairing maps this memory to transformations on token states. By varying the representation of this action, the framework recovers known models such as softmax attention, linear attention, and Intention, and also proposes new architectures through alterations in query-key geometry, value functions, or memory space. Experiments on ImageNet-1K demonstrate these ideas via geometric CAFormer variants, a ViT with query-dependent values, and a linear ViT with an expanded memory representation.

By Shang Xu
arXiv AI
Jun 10

Blurry Window Attention

arXiv:2606. 09862v1 Announce Type: cross Abstract: The Softmax Attention operation in Transformer language models has a quadratic complexity in the sequence length and a growing state size in the form of KV cache, which becomes a bottleneck in long context scenarios.

By Axel Laborieux, Christos Sourmpis, Juan Gabriel Kostelec, Qinghai Guo