potentialpaper

Implicit Bias of Optimizers Guides Length Generalization in Forgetting Attention

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:18 UTC · d94590e103c4 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "k7U6i2lQY9"
- }
- ],
- "title": "Implicit Bias of Optimizers Guides Length Generalization in Forgetting Attention",
- "authors": [],
- "abstract": "Autoregressive language models such as transformers process variable-length\ninputs, yet whether a model trained on bounded-length inputs stays accurate on\nmuch longer ones (or length generalize), is known to depend\nheavily on design choices. We approach it from the optimization perspective, through\na task in which a sequence of key-value pairs may reassign a key and a query\nasks for its key's latest value. Repeated keys force the model to discount\nolder records by their distance from the query, yet a recency bias alone\ncannot tell a stale record from a correct value that merely sits far back\nbehind newer records of other keys. We analyze this tension in a two-layer\nattention model with fixed attention masks and value projections, which learns\nkey-value binding, query-key matching, a forget gate, and a linear decoder\nfrom binary answer labels. Our main result separates gradient descent (GD)\nfrom Adam on this model under suitable per-parameter-group learning rates.\nFrom a shared orthogonal initialization of the query and key embeddings with\nzero initial content logits, GD with a single $1/t$ schedule succeeds whenever\nthe target sits at most two records further back than any training target, and\nat each greater distance it fails on a fixed sequence. Adam, with its\n stabilizer $\\epsilon$ set to zero on the scalar parameters and positive on the\nembedding matrices, instead guarantees a retrieval distance proportional to\nits cumulative learning rate, which diverges. Both guarantees hold for an\narbitrary prefix of earlier records. Adam's guarantee extends to independent\nGaussian initialization. SGD inherits GD's cutoff with increasing batch\nsizes and exact averages over all key pairs. Controlled experiments compare\nfinite retrieval ranges and isolate the role of the scalar stabilizer\n$\\epsilon$.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "5af019b0-f84b-4f4c-9060-4cbfb223776d"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Implicit Bias of Optimizers Guides Length Generalization in Forgetting Attention",
+ "authors": [],
+ "abstract": "Autoregressive language models such as transformers process variable-length\ninputs, yet whether a model trained on bounded-length inputs stays accurate on\nmuch longer ones (or length generalize), is known to depend\nheavily on design choices. We approach it from the optimization perspective, through\na task in which a sequence of key-value pairs may reassign a key and a query\nasks for its key's latest value. Repeated keys force the model to discount\nolder records by their distance from the query, yet a recency bias alone\ncannot tell a stale record from a correct value that merely sits far back\nbehind newer records of other keys. We analyze this tension in a two-layer\nattention model with fixed attention masks and value projections, which learns\nkey-value binding, query-key matching, a forget gate, and a linear decoder\nfrom binary answer labels. Our main result separates gradient descent (GD)\nfrom Adam on this model under suitable per-parameter-group learning rates.\nFrom a shared orthogonal initialization of the query and key embeddings with\nzero initial content logits, GD with a single $1/t$ schedule succeeds whenever\nthe target sits at most two records further back than any training target, and\nat each greater distance it fails on a fixed sequence. Adam, with its\n stabilizer $\\epsilon$ set to zero on the scalar parameters and positive on the\nembedding matrices, instead guarantees a retrieval distance proportional to\nits cumulative learning rate, which diverges. Both guarantees hold for an\narbitrary prefix of earlier records. Adam's guarantee extends to independent\nGaussian initialization. SGD inherits GD's cutoff with increasing batch\nsizes and exact averages over all key pairs. Controlled experiments compare\nfinite retrieval ranges and isolate the role of the scalar stabilizer\n$\\epsilon$.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}