potentialpaper

The Second Layer of Linear Self-Attention Implements a Context-Adaptive Update

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:47 UTC · 46f066c07f39 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "f56l1eROcB"
- }
- ],
- "title": "The Second Layer of Linear Self-Attention Implements a Context-Adaptive Update",
- "authors": [],
- "abstract": "Recent work interprets transformer depth as iterations of an optimisation algorithm. We demonstrate that context-adaptive computation first occurs at layer two in linear self-attention. We prove that one-layer models cannot implement context-adaptive updates, that two-layer models can, and that, for every finite depth, there are task distributions where context-adaptive updates achieve strictly lower risk than any composition of the same number of fixed optimisation steps. These results identify the first layer where linear self-attention can condition its update rule on the observed context rather than only the training distribution. Depth therefore enables more than additional iterations of a fixed optimisation algorithm. We introduce a framework for measuring update behaviour in trained transformers by comparison with reference optimisation algorithms. The framework is validated on models with known mechanisms and applied across a range of transformer architectures and in-context learning tasks. One-layer models match the best single fixed optimisation step. Two-layer models show a context-adaptive correction, which disappears when the second layer is ablated. Our framework identifies the known two-layer induction transition from the update kernel in associative recall and extends to in-context classification and softmax attention.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "da526a24-0879-40b0-b530-709d25cea14c"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "The Second Layer of Linear Self-Attention Implements a Context-Adaptive Update",
+ "authors": [],
+ "abstract": "Recent work interprets transformer depth as iterations of an optimisation algorithm. We demonstrate that context-adaptive computation first occurs at layer two in linear self-attention. We prove that one-layer models cannot implement context-adaptive updates, that two-layer models can, and that, for every finite depth, there are task distributions where context-adaptive updates achieve strictly lower risk than any composition of the same number of fixed optimisation steps. These results identify the first layer where linear self-attention can condition its update rule on the observed context rather than only the training distribution. Depth therefore enables more than additional iterations of a fixed optimisation algorithm. We introduce a framework for measuring update behaviour in trained transformers by comparison with reference optimisation algorithms. The framework is validated on models with known mechanisms and applied across a range of transformer architectures and in-context learning tasks. One-layer models match the best single fixed optimisation step. Two-layer models show a context-adaptive correction, which disappears when the second layer is ablated. Our framework identifies the known two-layer induction transition from the update kernel in associative recall and extends to in-context classification and softmax attention.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}