potentialpaper

Softmax Attention as a Covariance Readout: A Unified View of In-Context Learning and Repetition

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:55 UTC · 66887ffabf7b ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "LNYisvkft6"
- }
- ],
- "title": "Softmax Attention as a Covariance Readout: A Unified View of In-Context Learning and Repetition",
- "authors": [],
- "abstract": "Large language models (LLMs) exhibit two seemingly unrelated behaviors: in-context learning (ICL) and repetitive generation. In both cases, the model appears to summarize the context into a population-level statistic to guide subsequent generation while discarding token-level detail. We investigate whether this \"summarization and forgetting\" can be derived from the attention mechanism itself. For stationary inputs with elliptical marginals, the softmax attention outputs converge almost surely to $V\\mu +\\gamma V\\Sigma K^\\top Qx$ in the long-context regime, where $\\mu$ and $\\Sigma$ denote the input mean and covariance, respectively, and $\\gamma$ is a scalar. Beyond the mean contribution, this limit provides a readout of the input’s second-order statistics. Its dependence on the current input token alone leads to two consequences. (i) For in-context linear regression tasks, a residual softmax attention layer can emulate one gradient-descent step. (ii) When propagated across multiple transformer layers, this readout drives the terminal hidden state toward a deterministic function of the current token. Autoregressive generation thus reduces asymptotically to a first-order Markov chain, whose periodic orbits provide a structural explanation for repetitive generation. These two phenomena emerge as facets of a common covariance-readout principle.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "4b785caf-2eba-45a8-aea4-0ef885e8806e"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Softmax Attention as a Covariance Readout: A Unified View of In-Context Learning and Repetition",
+ "authors": [],
+ "abstract": "Large language models (LLMs) exhibit two seemingly unrelated behaviors: in-context learning (ICL) and repetitive generation. In both cases, the model appears to summarize the context into a population-level statistic to guide subsequent generation while discarding token-level detail. We investigate whether this \"summarization and forgetting\" can be derived from the attention mechanism itself. For stationary inputs with elliptical marginals, the softmax attention outputs converge almost surely to $V\\mu +\\gamma V\\Sigma K^\\top Qx$ in the long-context regime, where $\\mu$ and $\\Sigma$ denote the input mean and covariance, respectively, and $\\gamma$ is a scalar. Beyond the mean contribution, this limit provides a readout of the input’s second-order statistics. Its dependence on the current input token alone leads to two consequences. (i) For in-context linear regression tasks, a residual softmax attention layer can emulate one gradient-descent step. (ii) When propagated across multiple transformer layers, this readout drives the terminal hidden state toward a deterministic function of the current token. Autoregressive generation thus reduces asymptotically to a first-order Markov chain, whose periodic orbits provide a structural explanation for repetitive generation. These two phenomena emerge as facets of a common covariance-readout principle.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}