Threshold Degree and the Head Complexity of Single-Layer Attention
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:12 UTC · 36337a8d22fa ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "ksnAea2ccn"- }- ],- "title": "Threshold Degree and the Head Complexity of Single-Layer Attention",- "authors": [],- "abstract": "A single layer of multi-head attention produces a vector representation from which a downstream predictor computes an output. We ask how many heads the layer needs when the predictor is a polynomial threshold function of degree $D$. For a symmetric Boolean function $f$ of threshold degree $T$, we prove that $H$ heads and a degree-$D$ readout compute $f$ if and only if $DH \\ge T$. The lower bound allows arbitrary joint embeddings of token symbol and position, with unbounded embedding dimension and bit precision; the upper bound uses embeddings that depend on the token symbol alone, with value vectors of dimension at most $\\min\\lbrace D,\\ O(\\log H)\\rbrace$. The characterization is therefore insensitive to the embedding class. We then extend it beyond symmetric functions. If $f(x) = F(\\lvert x_S\\rvert)$ for a designated subset $S \\subseteq [n]$, the same characterization holds, with an upper bound that uses an additive embedding of symbol and position; such $f$ is asymmetric whenever $S$ is a proper subset of $[n]$, and no symbol-only embedding computes it at any $H$ or $D$. Taking $F$ to be parity gives a strict hierarchy in the head count at every fixed readout degree and input length: parity on $m$ coordinates requires exactly $\\lceil m/D\\rceil$ heads. Finally, we show that threshold degree does not govern the general case: at most $2^{O(H n^{2})}$ functions are realizable with $H$ heads and a linear readout, and we exhibit a family of threshold degree $T$ in which almost every member requires $\\Omega(n^{T-2})$ heads. Experiments on symmetric Boolean targets study the roles of $D$, $H$, and value-dimension in trained attention layers.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "9862514e-4c11-4831-9c03-f59013288dfb"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Threshold Degree and the Head Complexity of Single-Layer Attention",+ "authors": [],+ "abstract": "A single layer of multi-head attention produces a vector representation from which a downstream predictor computes an output. We ask how many heads the layer needs when the predictor is a polynomial threshold function of degree $D$. For a symmetric Boolean function $f$ of threshold degree $T$, we prove that $H$ heads and a degree-$D$ readout compute $f$ if and only if $DH \\ge T$. The lower bound allows arbitrary joint embeddings of token symbol and position, with unbounded embedding dimension and bit precision; the upper bound uses embeddings that depend on the token symbol alone, with value vectors of dimension at most $\\min\\lbrace D,\\ O(\\log H)\\rbrace$. The characterization is therefore insensitive to the embedding class. We then extend it beyond symmetric functions. If $f(x) = F(\\lvert x_S\\rvert)$ for a designated subset $S \\subseteq [n]$, the same characterization holds, with an upper bound that uses an additive embedding of symbol and position; such $f$ is asymmetric whenever $S$ is a proper subset of $[n]$, and no symbol-only embedding computes it at any $H$ or $D$. Taking $F$ to be parity gives a strict hierarchy in the head count at every fixed readout degree and input length: parity on $m$ coordinates requires exactly $\\lceil m/D\\rceil$ heads. Finally, we show that threshold degree does not govern the general case: at most $2^{O(H n^{2})}$ functions are realizable with $H$ heads and a linear readout, and we exhibit a family of threshold degree $T$ in which almost every member requires $\\Omega(n^{T-2})$ heads. Experiments on symmetric Boolean targets study the roles of $D$, $H$, and value-dimension in trained attention layers.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}