potentialpaper

Positions on Trees, Not Lines: Exact Length Generalization via Dyadic Attention

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:32 UTC · 5a0352a6ea08 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "zlWDTNOuFB"
- }
- ],
- "title": "Positions on Trees, Not Lines: Exact Length Generalization via Dyadic Attention",
- "authors": [],
- "abstract": "We propose dyadic attention, which represents token offsets by their scale and divisibility by powers of two.\nIts hard-routing version, the Dyadic Scan Transformer (DST), learns finite-monoid composition and computes all prefix products in $\\lceil\\log_2 n\\rceil$ iterations of a single weight-shared block.\nTrained with intermediate scan supervision on sequences of at most 64 tokens, DST solves parity and the $\\mathrm{NC}^{1}$-complete $S_5$ word problem with zero token errors on sequences of 1,048,576 tokens: a 16,384-fold length extrapolation in 20 iterations, using codebook projection for $S_5$.\nFor this projected inference mode with\na fixed sentinel, a machine-checked certificate proves correctness at arbitrary lengths while accounting for floating-point error.\nWe also pretrain matched 1.3B- and 3B-parameter dense Llama-style decoder-only LLMs from scratch, adding a learned dyadic bias alongside RoPE without degrading perplexity at the pretraining context length.\nWe derive a closed-form occupancy correction that requires no further training.\nAt 1.3B, extending the dyadic table through finetuning on contexts up to 16k tokens and applying this correction gives PG-19 perplexity of 18.4 at 65,536 tokens (21.6 for long-context-finetuned RoPE), four times the maximum finetuning length.\nA variant finetuned up to 64k tokens reaches perplexity of 20.9 at 262,144 tokens without correction.\nA separate finetune combining dyadic table extension with positional interpolation achieves 94\\% and 75\\% passkey retrieval accuracy at 8k and 16k, compared with 60\\% and 22\\% for our full-budget YaRN-finetuned baseline.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "57e58830-a7ea-4041-ad5a-6ca33c8d750f"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Positions on Trees, Not Lines: Exact Length Generalization via Dyadic Attention",
+ "authors": [],
+ "abstract": "We propose dyadic attention, which represents token offsets by their scale and divisibility by powers of two.\nIts hard-routing version, the Dyadic Scan Transformer (DST), learns finite-monoid composition and computes all prefix products in $\\lceil\\log_2 n\\rceil$ iterations of a single weight-shared block.\nTrained with intermediate scan supervision on sequences of at most 64 tokens, DST solves parity and the $\\mathrm{NC}^{1}$-complete $S_5$ word problem with zero token errors on sequences of 1,048,576 tokens: a 16,384-fold length extrapolation in 20 iterations, using codebook projection for $S_5$.\nFor this projected inference mode with\na fixed sentinel, a machine-checked certificate proves correctness at arbitrary lengths while accounting for floating-point error.\nWe also pretrain matched 1.3B- and 3B-parameter dense Llama-style decoder-only LLMs from scratch, adding a learned dyadic bias alongside RoPE without degrading perplexity at the pretraining context length.\nWe derive a closed-form occupancy correction that requires no further training.\nAt 1.3B, extending the dyadic table through finetuning on contexts up to 16k tokens and applying this correction gives PG-19 perplexity of 18.4 at 65,536 tokens (21.6 for long-context-finetuned RoPE), four times the maximum finetuning length.\nA variant finetuned up to 64k tokens reaches perplexity of 20.9 at 262,144 tokens without correction.\nA separate finetune combining dyadic table extension with positional interpolation achieves 94\\% and 75\\% passkey retrieval accuracy at 8k and 16k, compared with 60\\% and 22\\% for our full-budget YaRN-finetuned baseline.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}