Manuscript Offprint

arXiv:2611.02943

Exact Fusion of Softmax Attention Heads Can Require Exponentially Many Atoms

Hiroyasu Usami, Keisuke Hara, Ayato Tsuboi, Naohiko Matsuda

HIROYASU USAMI¹, KEISUKE HARA¹, AYATO TSUBOI¹, and NAOHIKO MATSUDA²

¹Department of Computer Science, Graduate School of Engineering, Chubu University, Kasugai, Aichi 487-8501, Japan

²Heat Transfer Research Department, Research & Innovation Center, Mitsubishi Heavy Industries, Ltd., Takasago, Hyogo 676-8686, Japan

Corresponding author: Hiroyasu Usami (e-mail: usami@fsc.chubu.ac.jp).

ABSTRACT Fusing independently normalized attention heads can increase the number of explicit key-value entries, or atoms, needed to preserve their output. We prove a sharp separation for Wd(q)=∑j=1dσ(qj)W_d(q) = \sum_{j=1}^d \sigma(q_j): its dd two-atom heads use 2d2d head-atom terms, whereas its minimum single-head representation has exactly 2d2^d atoms, even with arbitrary fixed replacement keys, scalar values, and positive masses. The same lower bound holds for every fixed uniform error below 1/21/2 on Rd\mathbb{R}^d, and the threshold is sharp. The proof uses exposed-key normal cones; exact equality on any nonempty open query domain inherits the bound. The resulting atom bound for a fixed head count is tight when that count divides dd. A normalized family retains its exponential exact minimum while approaching a constant on fixed-radius query balls. For pretrained-model caches, a classical affine-rank bound and a certified instance exclude exact vector preservation at a specified atom count. Learned-cache comparisons on two disjoint banks of 64 contexts show budget-dependent reversals and calibration effects.

INDEX TERMS Attention mechanisms, head fusion, key-value cache, minimum realization, softmax, exponential sums.

I. INTRODUCTION

Fusing separately normalized attention heads into a single softmax head changes the normalization structure. Within one readout, an atom is one explicit key-value entry with a fixed positive weight. In the constructed family, 12 two-atom heads use 24 head-atom terms, but any exactly equivalent single-head readout needs at least 4,096 atoms. Multiplying the head denominators produces a cache indexed by tuples of atoms. The question is whether jointly reoptimizing the replacement keys, values, and masses can reduce this product expansion.

We resolve this minimum-realization question for Wd(q)=∑j=1dσ(qj)W_d(q) = \sum_{j=1}^d \sigma(q_j). Its dd coordinate heads use two atoms each, while every single-head representation requires at least 2d2^d atoms, allowing arbitrary fixed real keys, scalar values, and positive constant masses. The obstruction is geometric: although WdW_d has only d+1d + 1 distinct scalar limits along generic rays, a convex unique-winner region cannot combine directions across a coordinate jump. This forces 2d2^d exposed-key regions.

Keys, values, and masses are query-independent; queries range over Rd\mathbb{R}^d.