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

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.

Authors

Institutions

Publication Details

Journal
Mathematics
Published
2026-11-25
DOI
https://doi.org/10.3390/math14234345
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

Yunsik Son, Hyun-Su Kim
Mathematics
Neural Networks and Applications
article

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

Yunsik Son, Hyun-Su Kim
article en

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.

MathematicsVol. 14(23)
Dongguk University (KR)
Neural Networks and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon