Depth-Staggered Fibonacci Spacing for Sparse Attention: Static Schedules Beat Learned Dilation and Extrapolate Where Dense Attention Fails

arXiv cs.CL Papers

Summary

This paper studies sparse self-attention with Fibonacci-spaced offsets and per-layer scaling, finding that static layer-wise schedules outperform learned or fixed ones, and that sparse variants robustly extrapolate to 4x training length while dense attention collapses.

arXiv:2606.28560v1 Announce Type: new Abstract: We study sparse self-attention in which each query attends to a dense local window plus a set of Fibonacci-spaced offsets, with a per-layer scalar alpha that compresses or expands the spacing. Across 21 language models trained under one matched recipe (60M parameters, 512 hidden, 16 layers, 426M tokens), we compare four ways of setting alpha across depth: fixed, per-layer learned, a static linear stagger, and a coprime (anti-gridding) reassignment of that stagger, together with a reach-matched power-of-2 control. Three results stand out. First, a static per-layer stagger improves perplexity over both fixed and learned alpha, and the gain is base-agnostic: applying the same stagger to a power-of-2 base lifts it above fixed Fibonacci and to parity with learned Fibonacci attention. Second, learning per layer is inert: it does not beat the static schedule and costs roughly five times the inference latency. Third, and most consequential, all sparse variants extrapolate to four times their training length with little or no degradation, whereas a recipe-matched dense baseline collapses (perplexity rises by 201% at 4x length); we attribute this to fixed-offset attention only ever querying relative positions seen during training. We also report two honest negatives: at training length the best sparse model has about 26% higher perplexity than the dense baseline, and the staggering gain is uniform across context positions rather than concentrated at long range.
Original Article
View Cached Full Text

Cached at: 06/30/26, 05:27 AM

# Static Schedules Beat Learned Dilation and Extrapolate Where Dense Attention FailsCode, the paper source, and the experiment database are available at https://github.com/ccapps42/scaled-fibonacci-attention.
Source: [https://arxiv.org/html/2606.28560](https://arxiv.org/html/2606.28560)
###### Abstract

We study sparse self\-attention in which each query attends to a dense local window plus a set of Fibonacci\-spaced offsets, with a per\-layer scalarα\\alphathat compresses or expands the spacing\. Across 21 language models trained under one matched recipe \(60M parameters, 512 hidden, 16 layers, 426M tokens\), we compare four ways of settingα\\alphaacross depth: fixed, per\-layer learned, a static linear stagger, and a coprime \(anti\-gridding\) reassignment of that stagger, together with a reach\-matched power\-of\-2 control\. Three results stand out\. First, a static per\-layer stagger improves perplexity over both fixed and learnedα\\alpha, and the gain is base\-agnostic: applying the same stagger to a power\-of\-2 base lifts it above fixed Fibonacci and to parity with learned Fibonacci attention\. Second, learningα\\alphaper layer is inert: it does not beat the static schedule and costs roughly five times the inference latency\. Third, and most consequential, all sparse variants extrapolate to four times their training length with little or no degradation, whereas a recipe\-matched dense baseline collapses \(perplexity rises by 201% at 4×\\timeslength\); we attribute this to fixed\-offset attention only ever querying relative positions seen during training\. We also report two honest negatives: at training length the best sparse model has about 26% higher perplexity than the dense baseline, and the staggering gain is uniform across context positions rather than concentrated at long range\.

## 1Introduction

Sparse attention reduces the quadratic cost of self\-attention by restricting each query to a subset of keys\. A recurring design question is*which*subset, and in particular how the chosen offsets should vary with depth\. Many schemes fix one pattern and rely on composition through the stack to widen the receptive field; others vary the pattern across heads\. Comparatively little is known about varying a single spacing parameter*per layer*in a controlled language\-modeling setting\.

We take the offsets to follow a Fibonacci sequence \(denser at short range, geometrically sparser at long range\) and attach a per\-layer scalarα\\alphathat scales every offset,dk=α​fkd\_\{k\}=\\alpha f\_\{k\}\. The original motivation was a “spring”: let each layer*learn*its ownα\\alphaso that depth\-appropriate spacing emerges during training\. That hypothesis is not supported by our data\. The learned scalar barely moves from its initialization and yields no advantage over a fixed schedule\. What does help is settingα\\alpha*statically*but differently per layer, a fixed stagger across depth that we imposed rather than learned\. This paper reports the full arc, including the negative result on learning, because the static schedule that wins is simpler than the mechanism we set out to study\.

Our contributions are:

- •A controlled comparison of four per\-layerα\\alphaschedules \(fixed, learned, static linear stagger, coprime stagger\) and a reach\-matched power\-of\-2 control, all sharing one attention implementation and one training recipe, over 21 trained models and a window sweepW∈\{6,8,10,12\}W\\in\\\{6,8,10,12\\\}\(Section[4](https://arxiv.org/html/2606.28560#S4)\)\.
- •Evidence that a static per\-layer stagger is the dominant lever: it beats both fixed and learnedα\\alpha, and it is*base\-agnostic*: staggering a power\-of\-2 base raises it above fixed Fibonacci and to parity with learned Fibonacci attention\. The Fibonacci base then adds a separable gain on top \(Section[4\.2](https://arxiv.org/html/2606.28560#S4.SS2)\)\.
- •A length\-extrapolation result: structured sparse attention is robust out to 4×\\timestraining length while a recipe\-matched dense baseline collapses, with a mechanism \(no out\-of\-distribution relative positions\) that also explains the ordering among sparse variants \(Section[4\.5](https://arxiv.org/html/2606.28560#S4.SS5)\)\.
- •Two honest negatives that bound the claims: a training\-length quality gap to dense, and a position\-resolved analysis showing the staggering gain is uniform rather than long\-range\-specific \(Section[4\.6](https://arxiv.org/html/2606.28560#S4.SS6)\)\.

## 2Method

#### Attended set\.

For a query at positionii, the attended key set is the union of a dense local window and a set of scaled Fibonacci offsets\. The window covers distances\{0,1,…,W\}\\\{0,1,\\dots,W\\\}\(self\-position included, so no query has an empty key set\)\. The sparse offsets use the base sequence

fib=\[1,2,3,5,8,13,21,34,55,89,144,233,377,610,987\],K=15,\\mathrm\{fib\}=\[1,2,3,5,8,13,21,34,55,89,144,233,377,610,987\],\\qquad K=15,with each rung scaled to a target distancedk=α​fkd\_\{k\}=\\alpha f\_\{k\}and gathered at the key/value rowsi−dki\-d\_\{k\}\. Becausedkd\_\{k\}is continuous, we gather by linear interpolation between the floor and floor\-plus\-one positions, which keeps a nonzero gradient toα\\alphaeven when every rung coincides with an integer position\. Rotary position embeddings are applied at true positions before gathering\. Offsets are shared across all queries, so this is a set of shifted gathers rather than per\-position index lists\.

#### The per\-layer scalar\.

We writeα=0\.5\+sigmoid​\(θ\)∈\[0\.5,1\.5\]\\alpha=0\.5\+\\mathrm\{sigmoid\}\(\\theta\)\\in\[0\.5,1\.5\], withθ\\thetathe only added parameter\. The base sequence already spans the context atα=1\\alpha=1\(f15=987≈1024f\_\{15\}=987\\approx 1024\), so the useful dynamic range is compression \(α<1\\alpha<1\) plus a small margin above 1\. We study four ways of settingθ\\thetaacross theL=16L=16layers:

- •Fixed:αℓ=1\\alpha\_\{\\ell\}=1for all layers\.
- •Learned:θℓ\\theta\_\{\\ell\}is a free parameter per layer, initialized toα=1\\alpha=1\.
- •Staggered \(linear\):αℓ=0\.5\+ℓ/\(L−1\)\\alpha\_\{\\ell\}=0\.5\+\\ell/\(L\-1\), a fixed ramp from0\.50\.5at layer0to1\.51\.5at layerL−1L\-1\.
- •Staggered \(coprime / HDC\):the same multiset ofα\\alphavalues, reassigned to layers by a coprime strideℓ↦\(S​ℓmodL\)\\ell\\mapsto\(S\\ell\\bmod L\)withS=7S=7, so adjacent layers receive maximally different spacing\. This ports the anti\-gridding idea from dilated convolutions\(Wang et al\.,[2018](https://arxiv.org/html/2606.28560#bib.bib17)\)to per\-layer attention spacing\.

#### Control base\.

As a control we replace the Fibonacci base with a reach\-matched power\-of\-2 base \(log\-sparse\)\. It reaches the same maximum distance with fewer rungs, isolating the effect of spacing*density*at equal reach rather than rung count\.

#### Implementation note\.

A hard boolean attention mask carries no gradient toα\\alpha, so the learned variant uses the interpolated gather\. Fixed and staggered variants have integer offsets and could use a fused boolean\-mask path, but we report them through the same gather module to remove any numerical\-path confound; for the length\-extrapolation study the integer\-offset variants additionally run through a fused boolean\-mask attention at evaluation time, which is numerically identical and faster\. All variants share projections, GQA shapes, and RoPE with the dense baseline; the only added parameters are theθ\\thetascalars\.

## 3Experimental Setup

#### Model and training\.

All models use the same architecture:dmodel=512d\_\{\\text\{model\}\}=512, 16 layers, 8 attention heads, 2 key/value heads \(GQA\), head dimension 64, vocabulary 32,768, sequence length 1024, SwiGLU feed\-forward with ratio8/38/3, RMSNorm, RoPE \(θrope=104\\theta\_\{\\text\{rope\}\}=10^\{4\}\), tied embeddings, no dropout\. Training is identical across runs: 13,000 steps at an effective batch of 32,768 tokens \(426M tokens total\), AdamW \(β=0\.9,0\.95\\beta=0\.9,0\.95, weight decay0\.10\.1\), learning rate3×10−43\\times 10^\{\-4\}with 300 warmup steps and cosine decay, gradient clip1\.01\.0, bf16 autocast, seed 42\. The dense baseline \(denoteddense\) shares this recipe exactly; the only difference is its attention mechanism \(verified by a field\-by\-field config comparison\)\. Total non\-embedding parameters are 44\.1M \(60\.9M including the tied embedding\)\.

#### Data and evaluation\.

Models train on a fixed token mixture, in approximate token proportions35%35\\%FineWeb\-Edu\(Penedo et al\.,[2024](https://arxiv.org/html/2606.28560#bib.bib10)\),22%22\\%Wikipedia\(Wikimedia Foundation,[2023](https://arxiv.org/html/2606.28560#bib.bib18)\),20%20\\%TinyStories\(Eldan and Li,[2023](https://arxiv.org/html/2606.28560#bib.bib5)\), and23%23\\%mathematics \(the MATH dataset\(Hendrycks et al\.,[2021](https://arxiv.org/html/2606.28560#bib.bib6)\)and OpenMathInstruct\-2\(Toshniwal et al\.,[2024](https://arxiv.org/html/2606.28560#bib.bib15)\)\)\. We evaluate by token\-level perplexity on four held\-out sets: FineWeb\-Edu, Wikipedia, TinyStories, and a math set held out from OpenMathInstruct\-2 \(problem–solution pairs, a disjoint shard from the training math\)\. We additionally log a battery of auxiliary evaluations \(two synthetic multi\-hop reasoning tasks, RULER variable tracking\(Hsieh et al\.,[2024](https://arxiv.org/html/2606.28560#bib.bib7)\)and LEGO\(Zhang et al\.,[2022](https://arxiv.org/html/2606.28560#bib.bib21)\), plus a set of cheap probes carried over from the training harness\) and an analytic FLOPs/throughput breakdown\. At this scale the battery is uniformly capacity\-limited \(Section[4\.6](https://arxiv.org/html/2606.28560#S4.SS6)\)\. The sparse models add only theθ\\thetascalars over dense, so the comparison todenseis essentially parameter\-matched\.

#### Run matrix\.

We sweep the local windowW∈\{6,8,10,12\}W\\in\\\{6,8,10,12\\\}for each of: fixed Fibonacci, learned Fibonacci, linear\-staggered Fibonacci, coprime\-staggered \(HDC\) Fibonacci, and linear\-staggered power\-of\-2\. The plain power\-of\-2 control \(fixed,α=1\\alpha=1\) is run atW=8W=8\. This yields 21 trained models\. Throughput note: the learned variant runs through the unfused interpolated gather and is roughly5×5\\timesslower at inference than the fused integer\-offset variants at identical FLOPs; we treat efficiency as context, not as a selection criterion, since at this shape the attention term is a minority of per\-layer compute\.

## 4Results

### 4\.1Perplexity: staggering is the dominant lever

Table[1](https://arxiv.org/html/2606.28560#S4.T1)reports held\-out perplexity for the full matrix\. Within the Fibonacci base, the ordering is consistent across every window and dataset:

staggered≈coprime\>learned\>fixed,\\text\{staggered\}\\approx\\text\{coprime\}\\;\>\\;\\text\{learned\}\\;\>\\;\\text\{fixed\},and the best model overall is the linear stagger atW=12W=12\(FineWeb 42\.02, Wikipedia 37\.59\)\. The coprime reassignment ties the linear stagger to within seed\-scale differences at every window, so the*cascade order*of the per\-layer spacings does not matter; only the multiset of spacings does\. The plain power\-of\-2 control is the weakest model in the matrix\.

Table 1:Held\-out perplexity for all 21 models \(lower is better\)\. Within the Fibonacci base, staggered≈\\approxcoprime\>\>learned\>\>fixed at every window\. The best model is the linear stagger atW=12W\{=\}12\.
### 4\.2The staggering gain is base\-agnostic, and the base adds to it

Staggering the power\-of\-2 base lifts it substantially: atW=8W=8, plain log\-sparse improves from 44\.78 to 43\.60 FineWeb perplexity once the same linearα\\alpharamp is applied\. The cleanest statement of the effect uses the three\-seed means atW=12W\{=\}12\(Table[5](https://arxiv.org/html/2606.28560#S4.T5)\):*power\-of\-2 staggered \(42\.8442\.84\) beats fixed Fibonacci \(43\.1843\.18\) and matches learned Fibonacci \(42\.8542\.85\)*\. A worse base, merely staggered, equals or outperforms the better base whether it is fixed or learned\. So per\-layer spacing diversity dominates the base choice, and learningα\\alphabuys nothing that staggering does not\. \(A single seed had suggested power\-of\-2 staggered edged ahead of learned Fibonacci by0\.160\.16; across three seeds that gap vanishes to0\.010\.01, within the seed\-noise band of Table[5](https://arxiv.org/html/2606.28560#S4.T5), so we report it as a match\.\)

The Fibonacci base nonetheless contributes a separable gain\. At matched staggering, Fibonacci beats power\-of\-2 at every window \(FineWeb: 42\.93 vs\. 44\.11 atW=6W\{=\}6down to 42\.02 vs\. 42\.69 atW=12W\{=\}12\)\. The two factors \(staggering and base density\) are additive rather than redundant\.

#### Why staggering widens coverage\.

At fixedα=1\\alpha=1every layer attends the same offsets, so the set of distinct distances reachable anywhere in the stack equals one layer’s offsets \(about 19 distinct distances beyond the window at sequence length 1024\)\. A linearα\\alpharamp gives each layer a different scaled copy of the same rungs, raising the union of reachable distances by roughly4×4\\times\(to about 75\) at the same per\-layer sparsity and the same attention FLOPs\.

This count of distinct distances still understates the receptive field, because the rungs are not point samples\. The dense local window of widthWWacts as a smoothing kernel at every layer: within a few layers each token’s representation already aggregates its±W\\pm Wneighbors, and the blur compounds with depth\. A rung read at distancedk=α​fkd\_\{k\}=\\alpha f\_\{k\}therefore returns a soft band of half\-width on the order ofWWcentered ondkd\_\{k\}, not a single position\. Consecutive Fibonacci rungs are separated byfk\+1−fk=fk−1f\_\{k\+1\}\-f\_\{k\}=f\_\{k\-1\}, so whenever that spacing falls below about2​W2Wthe bands of neighboring rungs overlap and the apparent gap between them is not a real hole\. This is automatic at short range, where the rungs are dense \(1,2,3,5,8,…1,2,3,5,8,\\dots\); the spacing only exceeds2​W2Wfar out \(for example610→987610\\to 987\), where the precise offset matters least\. Staggering reinforces the effect: because each layer scales the same nominal rung to a different absolute distance, the union over layers places several bands in an interval that any single layer would leave empty, and multi\-hop composition adds the sumsda\+dbd\_\{a\}\+d\_\{b\}of rungs used in successive layers\. The distinct\-distance count is thus a conservative lower bound on coverage\.

This argument explains why the scheme has no functional gaps, not where its measured advantage comes from\. The position\-resolved analysis in Section[4\.6](https://arxiv.org/html/2606.28560#S4.SS6)shows the staggering gain is uniform across context positions rather than concentrated at long range, so the widened receptive field is better read as evidence that staggering sacrifices no coverage than as the source of the perplexity improvement\.

### 4\.3Learning the scalar is inert

The learned schedule improves over fixed \(Table[1](https://arxiv.org/html/2606.28560#S4.T1)\) but never reaches the static stagger, and it does so at roughly5×5\\timesthe inference latency because the non\-integer offsets require the unfused gather\. The learnedα\\alphavalues stay close to their initialization, which a controlled retrieval probe \(Section[4\.4](https://arxiv.org/html/2606.28560#S4.SS4)\) confirms directly\. The mechanism we set out to study, a trainable spring, is therefore dominated by a fixed schedule we imposed by hand\. We read this as evidence that the benefit is structural \(diverse per\-layer spacing\) rather than something gradient descent needs to discover\.

### 4\.4Mechanistic probe: the scalar does not move

To test the inertness directly, away from language modeling, we use a controlled retrieval task\. Each sequence plants a key–value pair at a chosen offsetddfrom the query, with distractor pairs elsewhere so the model must perform genuine distance\-dependent retrieval rather than copy the only value present\. A marked variant asks a single model to serve two distances at once \(d∈\{200,350\}d\\in\\\{200,350\\\}\), so the per\-layer scalars would have to specialize to cover both\. We train small models at depths22,44, and88with the spacing scalar free to learn, under two initializations: uniform \(α=1\\alpha=1in every layer\) and the staggered ramp\. Table[2](https://arxiv.org/html/2606.28560#S4.T2)reports the learned scalars and the retrieval accuracy\.

Two results follow\. First, the free scalar barely moves from its initialization at any depth: the uniform start stays within0\.050\.05ofα=1\\alpha=1, and the staggered start stays spread across roughly\[0\.55,1\.45\]\[0\.55,1\.45\]\. Gradient descent does not relocate the scalars even on a task that would directly reward it, which confirms the language\-model observation of Section[4\.3](https://arxiv.org/html/2606.28560#S4.SS3)in a setting where the useful spacing is unambiguous\. Second, the initialization decides whether the model retrieves at all: with the uniform start it retrieves nothing at depth44and beyond \(0\.000\.00at both distances\), while the staggered start restores retrieval at depths 2 and 4\.

We take this as direct support for two claims of this paper: the per\-layer scalar is inert under learning, and the static staggered*structure*, not adaptation, is what carries the benefit\. The probe does not support a stronger union\-coverage claim\. Even when it retrieves, the staggered model tends to specialize to one distance \(high at200200, near zero at350350\), and at depth88the task is unsolved\. This synthetic task isolates the inertness cleanly but demands more of coverage than language modeling does; the coverage argument therefore rests on the distinct\-distance count of Section[4\.2](https://arxiv.org/html/2606.28560#S4.SS2), not on this probe\.

Table 2:Controlled retrieval probe \(marked two\-distance copy,d∈\{200,350\}d\\in\\\{200,350\\\}\), mean over two seeds\. A spacing scalar left free to learn stays near its initialization at every depth\. The uniform start collapses to no retrieval at depth≥4\\geq 4; the staggered start restores it at depths 2 and 4, though it specializes to one distance and the task is unsolved at depth 8\.
### 4\.5Length extrapolation: sparse is robust, dense collapses

All models train at sequence length 1024\. We rebuild each model at evaluation lengths 2048 and 4096 \(RoPE and the offset set extend naturally; no length\-dependent parameters exist\) and measure perplexity\. Table[3](https://arxiv.org/html/2606.28560#S4.T3)shows the result\. The structured sparse models are flat to slightly improving out to 4×\\timeslength\. The dense baseline, best at training length, degrades catastrophically: FineWeb perplexity rises from 33\.37 to 100\.36, a 201% increase, and is already behind the sparse models by 2048\.

Table 3:FineWeb\-Edu perplexity as a function of evaluation length for models trained at length 1024\. Dense is best at 1024 but collapses past it; structured sparse attention is robust to 4×\\times\.#### Mechanism\.

Fixed\-offset sparse attention only ever queries a bounded set of relative positions, nearly all of which appear during training\. RoPE rotation angles for those offsets are therefore in\-distribution at any sequence length\. Dense attention, by contrast, attends every relative position, including distances between 1024 and 4096 whose rotary angles were never trained; vanilla RoPE without scaling does not extrapolate to them, and perplexity blows up\. The same mechanism explains the ordering among sparse variants\. Plain power\-of\-2 degrades more \(\+11\.3%\+11\.3\\%\) because its reach\-matched base introduces new large rungs \(1024, 2048\) at long evaluation length that were never trained; the Fibonacci base, with a fixed 15\-rung set, introduces no such new offsets\. The coprime variant degrades mildly \(\+2\.8%\+2\.8\\%\), making the linear stagger the more length\-robust of the two\. The practical reading: at training length sparse attention pays a quality cost, but it extrapolates at near\-zero cost to lengths where dense attention is unusable\.

### 4\.6Honest negatives

#### Training\-length gap to dense\.

At length 1024 the dense baseline reaches 33\.37 FineWeb perplexity versus 42\.02 for the best sparse model, about 26% better\. Every sparse variant in the matrix is well above dense at training length\. At this scale, sparse attention is a substantial quality sacrifice in\-distribution; its value here is length generalization, not in\-distribution quality\.

#### The gain is not long\-range\-specific\.

We resolve loss by token position within the 1024 window \(Table[4](https://arxiv.org/html/2606.28560#S4.T4)\)\. If the staggering advantage came from wider long\-range coverage, the gap to fixed attention should grow at later positions, where more distant context is available to reach\. It does not: the staggered\-minus\-fixed gap on FineWeb is roughly flat at\+0\.035\+0\.035nats across all but the first position bin\. The perplexity improvement is a uniform, broadly distributed gain in modeling quality, not a long\-range\-reaching effect\. The effective\-receptive\-field argument explains*why*sparse attention works at all; it does not explain*where*the staggering gain comes from, which appears to be general per\-layer representational diversity\.

Table 4:Position\-resolved FineWeb NLL \(nats\), early context \(b0\) to late context \(b7\)\. The staggering advantage is flat across position bins, not growing at long range\.
#### Auxiliary evaluations are capacity\-limited\.

Beyond perplexity we logged a battery of auxiliary evaluations for every model, including the dense baseline: two synthetic multi\-hop reasoning tasks \(RULER variable tracking and LEGO\) and a set of cheap probes carried over from the training harness \(LAMBADA, associative recall, factual cloze, BLiMP, and an in\-context\-learning score\)\. At 60M parameters nearly all of these are at chance or at the floor and do not separate the attention patterns\. LEGO holds its50%50\\%chance rate for every model \(0\.470\.47–0\.510\.51across all runs\); RULER variable tracking is near chance at about11%11\\%\(0\.100\.10–0\.130\.13\); associative recall is zero for every model; LAMBADA top\-1 accuracy is22–5%5\\%and factual cloze below2%2\\%; the in\-context\-learning score is too variable across runs to interpret\. The one exception is BLiMP, on which every model scores about89%89\\%\(well above its50%50\\%chance\), but the spread across configurations is under five points and the task probes grammatical acceptability rather than long\-range spacing, so it does not discriminate either\. We report the full battery for completeness and rest the quality claims on perplexity and the extrapolation result\.

### 4\.7Robustness to seed

The full matrix uses a single seed\. To bound the seed noise and re\-test the smallest margins, we retrained the fiveW=12W\{=\}12configurations at additional seeds—three seeds each for the four integer\-offset \(bool\-mask\) configs, two for the learned config, which is far costlier to train\. Table[5](https://arxiv.org/html/2606.28560#S4.T5)reports the per\-config mean and standard deviation\. The seed noise is small on FineWeb \(per\-config std0\.060\.06–0\.180\.18, pooled≈0\.13\\approx 0\.13\), so the three headline margins clear it comfortably: staggered beats fixed by1\.101\.10\(∼8​σ\\sim 8\\sigma\), beats learned by0\.770\.77\(∼6​σ\\sim 6\\sigma\), and beats power\-of\-2 staggered by0\.760\.76\(∼5​σ\\sim 5\\sigma\)\. The two near\-ties are confirmed as ties: staggered versus coprime is0\.100\.10, smaller than either config’s std and with overlapping seed ranges; power\-of\-2 staggered versus learned Fibonacci is0\.010\.01\.

Table 5:Seed replication atW=12W\{=\}12\(FineWeb\-Edu perplexity\)\. Four integer\-offset configs at three seeds, the learned config at two\. Per\-config std is0\.060\.06–0\.180\.18; the three headline margins exceed it by55–8×8\\times, while staggered\-vs\-coprime and pow2\-staggered\-vs\-learned are within it \(ties\)\.

## 5Related Work

#### Fixed and per\-head sparse patterns\.

Strided and log\-sparse patterns\(Child et al\.,[2019](https://arxiv.org/html/2606.28560#bib.bib3)\), local\-plus\-global windows\(Beltagy et al\.,[2020](https://arxiv.org/html/2606.28560#bib.bib1); Zaheer et al\.,[2020](https://arxiv.org/html/2606.28560#bib.bib20)\), and geometric dilation mixed within layers\(Ding et al\.,[2023](https://arxiv.org/html/2606.28560#bib.bib4)\)widen the receptive field through composition or across heads\. PowerAttention\(Chen et al\.,[2025](https://arxiv.org/html/2606.28560#bib.bib2)\)frames coverage through the stack explicitly but uses the same pattern in every layer\. Fibottention\(Rahimian et al\.,[2024](https://arxiv.org/html/2606.28560#bib.bib12)\)uses Fibonacci/Wythoff dilation that differs across heads and is deterministic and non\-adaptive\. Our staggering differs by varying a single spacing scalar*per layer*and by isolating that choice in a matched language\-modeling comparison\.

#### Per\-layer spacing schedules\.

WaveNet\(van den Oord et al\.,[2016](https://arxiv.org/html/2606.28560#bib.bib16)\)stacks per\-layer increasing dilation for an exponential receptive field at constant parameters; the gridding analysis ofWang et al\. \([2018](https://arxiv.org/html/2606.28560#bib.bib17)\)shows that common\-factor dilation rates leave periodic gaps and that coprime rates avoid them\. Our coprime variant ports that fix to attention; we find it does not improve language\-modeling perplexity over a plain linear ramp at this scale, and is slightly less robust under length extrapolation\. DilateFormer\(Jiao et al\.,[2023](https://arxiv.org/html/2606.28560#bib.bib8)\)varies dilation per head rather than per layer\. Closest to our setting, MSWA\(Xu et al\.,[2025](https://arxiv.org/html/2606.28560#bib.bib19)\)staggers the*local window size*across both heads and layers, widening it from shallow to deep layers for broader receptive field through the stack\. The distinction is the quantity being staggered: MSWA varies the contiguous window*width*, whereas we hold the local window fixed and stagger the*sparse Fibonacci dilation spacing*: the offsets at which each layer samples beyond the window\.

#### Learned spacing\.

Adaptive attention span\(Sukhbaatar et al\.,[2019](https://arxiv.org/html/2606.28560#bib.bib14)\)learns a per\-head/per\-layer scalar controlling a contiguous attention reach via a soft\-mask cutoff; that parameter trains cleanly\. Dilated convolution with learnable spacings\(Khalfaoui\-Hassani et al\.,[2023](https://arxiv.org/html/2606.28560#bib.bib9)\)learns spacing in convolutions\. In contrast to the span\-cutoff case, our learned multiplicative dilation scalar is inert \(it does not move appreciably and does not beat a fixed schedule\), which we attribute to a flat loss landscape in the dilation multiplier\.

#### Length extrapolation\.

ALiBi\(Press et al\.,[2021](https://arxiv.org/html/2606.28560#bib.bib11)\)biases attention by distance to extrapolate, and RoPE\(Su et al\.,[2021](https://arxiv.org/html/2606.28560#bib.bib13)\)is the position scheme we use\. Our extrapolation result is not a new positional method but an observation: fixed\-offset sparsity confines attention to trained relative positions, so it inherits robust extrapolation from RoPE at no extra cost, while dense attention with the same RoPE does not\.

## 6Discussion and Limitations

The headline practical finding is a trade: structured sparse attention costs in\-distribution quality at training length but extrapolates to several times that length where a recipe\-matched dense model with the same positional scheme fails\. The within\-sparse design lessons are that a static per\-layer stagger beats both a fixed schedule and a learned one, that the effect is base\-agnostic, and that the Fibonacci base adds a separable gain\.

Several limitations bound these claims\. The full matrix uses a single seed; we replicated the fiveW=12W\{=\}12configurations at two to three seeds \(Section[4\.7](https://arxiv.org/html/2606.28560#S4.SS7)\) and find the three headline margins exceed the seed noise by55–8×8\\times, while the two near\-ties are within it\. The remaining windows \(W=6,8,10W\{=\}6,8,10\) are still single\-seed, and the consistency of the learned\-versus\-staggered and staggering\-versus\-fixed gaps across windows and datasets is supporting rather than independent evidence at those windows\. The scale is 60M parameters, where the reasoning tasks are at chance and the absolute perplexities are high; whether the extrapolation advantage and the staggering gain persist at larger scale is open\. The extrapolation result is specific to vanilla RoPE without scaling; length extrapolation methods built for dense attention would narrow or close the dense collapse, and the fair comparison at that point is an open question\. Finally, the staggering schedule \(a linear ramp over\[0\.5,1\.5\]\[0\.5,1\.5\]\) was fixed by design and only lightly varied \(the coprime reassignment\); the optimal per\-layer schedule is not characterized here\.

## 7Conclusion

Across 21 matched language models, a static per\-layer spacing stagger is the most effective way to set sparse\-attention offsets we tested: it beats a fixed schedule, beats a learned per\-layer scalar, and the gain transfers to a different offset base\. The mechanism we originally set out to study, a learned spring, is inert\. The result with the widest implication is that fixed\-offset sparse attention extrapolates to 4×\\timestraining length at near\-zero cost while dense attention under the same positional scheme collapses, because sparsity confines attention to relative positions seen during training\. We report alongside these the honest negatives that bound them: a training\-length quality gap to dense and a position\-resolved analysis showing the staggering gain is broad rather than long\-range\-specific\.

## Use of Generative AI

The author used a generative AI language model \(Anthropic’s Claude\) to assist with drafting and editing the manuscript and with writing the training, evaluation, and analysis scripts\. All AI\-assisted output, including every claim, numerical result, and reference, was reviewed and verified by the author, who takes full responsibility for the content of this paper\.

## References

- Beltagy et al\. \(2020\)Iz Beltagy, Matthew E Peters, and Arman Cohan\.Longformer: The long\-document transformer\.*arXiv preprint arXiv:2004\.05150*, 2020\.
- Chen et al\. \(2025\)Lida Chen, Dong Xu, Chenxin An, Xintao Wang, Yikai Zhang, Jiangjie Chen, Zujie Liang, Feng Wei, Jiaqing Liang, Yanghua Xiao, and Wei Wang\.Powerattention: Exponentially scaling of receptive fields for effective sparse attention\.*arXiv preprint arXiv:2503\.03588*, 2025\.
- Child et al\. \(2019\)Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever\.Generating long sequences with sparse transformers\.*arXiv preprint arXiv:1904\.10509*, 2019\.
- Ding et al\. \(2023\)Jiayu Ding, Shuming Ma, Li Dong, Xingxing Zhang, Shaohan Huang, Wenhui Wang, Nanning Zheng, and Furu Wei\.Longnet: Scaling transformers to 1,000,000,000 tokens\.*arXiv preprint arXiv:2307\.02486*, 2023\.
- Eldan and Li \(2023\)Ronen Eldan and Yuanzhi Li\.TinyStories: How small can language models be and still speak coherent English?*arXiv preprint arXiv:2305\.07759*, 2023\.
- Hendrycks et al\. \(2021\)Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt\.Measuring mathematical problem solving with the MATH dataset\.*arXiv preprint arXiv:2103\.03874*, 2021\.
- Hsieh et al\. \(2024\)Cheng\-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg\.Ruler: What’s the real context size of your long\-context language models?In*Conference on Language Modeling \(COLM\)*, 2024\.
- Jiao et al\. \(2023\)Jiayu Jiao, Yu\-Ming Tang, Kun\-Yu Lin, Yipeng Gao, Jinhua Ma, Yaowei Wang, and Wei\-Shi Zheng\.Dilateformer: Multi\-scale dilated transformer for visual recognition\.*arXiv preprint arXiv:2302\.01791*, 2023\.
- Khalfaoui\-Hassani et al\. \(2023\)Ismail Khalfaoui\-Hassani, Thomas Pellegrini, and Timothée Masquelier\.Dilated convolution with learnable spacings\.In*International Conference on Learning Representations \(ICLR\)*, 2023\.arXiv:2112\.03740\.
- Penedo et al\. \(2024\)Guilherme Penedo, Hynek Kydlíček, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf\.The FineWeb datasets: Decanting the web for the finest text data at scale\.*arXiv preprint arXiv:2406\.17557*, 2024\.
- Press et al\. \(2021\)Ofir Press, Noah A Smith, and Mike Lewis\.Train short, test long: Attention with linear biases enables input length extrapolation\.*arXiv preprint arXiv:2108\.12409*, 2021\.
- Rahimian et al\. \(2024\)Ali K\. Rahimian, Manish K\. Govind, Subhajit Maity, Dominick Reilly, Christian Kümmerle, Srijan Das, and Aritra Dutta\.Fibottention: Inceptive visual representation learning with diverse attention across heads\.*arXiv preprint arXiv:2406\.19391*, 2024\.
- Su et al\. \(2021\)Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu\.Roformer: Enhanced transformer with rotary position embedding\.*arXiv preprint arXiv:2104\.09864*, 2021\.
- Sukhbaatar et al\. \(2019\)Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, and Armand Joulin\.Adaptive attention span in transformers\.In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*, 2019\.
- Toshniwal et al\. \(2024\)Shubham Toshniwal, Wei Du, Ivan Moshkov, Branislav Kisacanin, Alexan Ayrapetyan, and Igor Gitman\.OpenMathInstruct\-2: Accelerating AI for math with massive open\-source instruction data\.*arXiv preprint arXiv:2410\.01560*, 2024\.
- van den Oord et al\. \(2016\)Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu\.Wavenet: A generative model for raw audio\.*arXiv preprint arXiv:1609\.03499*, 2016\.
- Wang et al\. \(2018\)Panqu Wang, Pengfei Chen, Ye Yuan, Ding Liu, Zehua Huang, Xiaodi Hou, and Garrison Cottrell\.Understanding convolution for semantic segmentation\.In*IEEE Winter Conference on Applications of Computer Vision \(WACV\)*, 2018\.
- Wikimedia Foundation \(2023\)Wikimedia Foundation\.Wikimedia downloads: English Wikipedia\.[https://dumps\.wikimedia\.org](https://dumps.wikimedia.org/), 2023\.Accessed via the Hugging Facewikimedia/wikipediadataset\.
- Xu et al\. \(2025\)Yixing Xu, Shivank Nag, Dong Li, Lu Tian, and Emad Barsoum\.Mswa: Refining local attention with multi\-scale window attention\.*arXiv preprint arXiv:2501\.01039*, 2025\.
- Zaheer et al\. \(2020\)Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed\.Big bird: Transformers for longer sequences\.*Advances in Neural Information Processing Systems*, 2020\.
- Zhang et al\. \(2022\)Yi Zhang, Arturs Backurs, Sébastien Bubeck, Ronen Eldan, Suriya Gunasekar, and Tal Wagner\.Unveiling transformers with lego: A synthetic reasoning task\.*arXiv preprint arXiv:2206\.04301*, 2022\.

Similar Articles

ConSA: Controllable Sparsity in Hybrid Attention via Learnable Allocation

arXiv cs.CL

ConSA is a framework that learns optimal assignment between full attention and sliding-window attention under a user-specified sparsity target, using L0 regularization and augmented Lagrangian constraint. It demonstrates consistent gains over rule-based baselines on LLMs at 0.6B and 1.7B scales.