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
- Yunsik Son (ORCID: https://orcid.org/0000-0002-2580-4393)
- Hyun-Su Kim (ORCID: https://orcid.org/0009-0007-4113-9999)
Institutions
- Dongguk University (KR)
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