arXiv

Don't Read Everything: A Curvature-Conditioned Query for Linear Attention

Title: Selective Reading: A Curvature-Conditioned Query for Linear Attention

Abstract

While linear attention effectively mitigates the quadratic computational burden associated with softmax attention by employing a recurrent fast-weight state, it frequently underperforms in scenarios involving in-context retrieval and extended context windows. Current solutions have primarily targeted the memory write phase, utilizing techniques such as gating, delta updates, or kernel feature maps, yet they have largely neglected the read phase. In standard linear attention, every stored key adds to the output, causing relevant information to be diluted by the vast majority of irrelevant vectors. To address this, we introduce a computationally efficient read-time query contraction inspired by the geometry of softmax. By applying a second-order Taylor expansion to the softmax log-partition at the isotropic-attention point, we derive a local quadratic model where the curvature aligns with the running covariance of the keys. This covariance can be tracked using the same recurrent or chunkwise mechanisms employed by linear-attention states. The resulting linear operator serves to contract the query along high-density memory directions prior to the state read. We term this approach Curvature-Conditioned Query (CCQ). Since CCQ alters only the read mechanism, it is fully compatible with any linear-attention backbone. When integrated with models like GLA and Gated DeltaNet, it yields enhanced perplexity, improved zero-shot downstream accuracy, better S-NIAH retrieval performance at and beyond the training context length, superior length-extrapolation perplexity (from 4K to 20K), and higher LongBench accuracy, all while incurring minimal additional cost.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...