Mathematics

Two-Read Linear Caches for Softmax Attention: A Shared-Atom Lower Bound and Applications

Hyunsu Kim, Yunsik Son

Key points

From the paper's conclusion
  • We prove a shared-atom lower bound of order RS−2/(1+logS) and a constructive O(RS−2) upper bound, leaving a logarithmic gap.

Abstract

We study the worst-case error of fixed linear caches for one scalar output coordinate along a fixed one-dimensional softmax-query family, with at most two stored scalar measurements read per query. For the explicit four-key curve a(x)=(1,x,x2,x3)/(1+x+x2+x3), x∈[1/2,2], and values in [−R,R]4, the model allows arbitrary linear encoders and deterministic adaptive nonlinear decoders. We prove a shared-atom lower bound of order RS−2/(1+logS) and a constructive O(RS−2) upper bound, leaving a logarithmic gap. The optimal approximation error for M=S2 independently chosen planes is Θ(M−2)=Θ(S−4); a tangent-plane construction achieving this rate stores 2M scalars rather than S, and under equal scalar budgets, both models have polynomial exponent two. The lower-bound argument combines a circle reduction, fixed contact centers, and a cross-scale coverage estimate, with self-contained rational interval certificates for its numerical constants. Classical linear interpolation gives upper bounds for many-key scalar queries and range filters, with a value-independent variance envelope for adaptive nodes. Image diagnostics separate node budgets, packed bytes, sampled error, and task effects; full post-inference timings, which include preprocessing and value restoration, show no universal cost advantage. The vector-output construction uses two reads per coordinate; higher-dimensional query projection, physical memory traffic, and randomized error are outside the theorem’s scope.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Two-Read Linear Caches for Softmax Attention: A Shared-Atom Lower Bound and Applications — Science Skim