Short Synthetic Data for Long Contexts: Using Implicit Position to Cut the Distillation Tax

Teaching a language model to use long inputs, such as answering questions over twenty retrieved documents, usually means building a large synthetic corpus of long examples. A big "teacher" model writes questions and answers, distractor documents get stitched around them, the examples are checked for answerability, and the "student" is fine-tuned on sequences many thousands of tokens long. Every stage costs more as the examples get longer. The payoff is also disappointing. Understanding Synthetic Context Extension via Retrieval Heads found that the best synthetic long-context data reached only 0.49 F1 on multi-document QA, against 0.83 for real data. It traced the gap to the synthetic data switching on only a subset of the "retrieval heads" (attention heads that copy the relevant span from far back in the input) that real data switches on.

This proposal asks whether that length tax can be avoided by changing how the student represents position rather than by generating better long data. A decoder-only Transformer can infer token order without any explicit position signal, because the causal mask (each token sees only earlier tokens) leaves a countable trace of position in the hidden states. DroPE showed that deleting a pretrained model's rotary position embedding (RoPE) and briefly recalibrating it on short 2,048-token contexts lets it retrieve at twice its training length. Our hypothesis is that for a model relying only on this implicit position signal, synthetic retrieval tasks written at short length train the same length-independent retrieval circuitry that expensive long synthetic data trains in a RoPE model. If that holds, most of the long-context synthesis and training budget is unnecessary.

Core Claim

We claim that, at a matched total compute budget, a DroPE-converted model fine-tuned on short synthetic retrieval tasks will match or beat a RoPE model fine-tuned on long synthetic tasks on long-context benchmarks, while spending a small fraction of the compute. We further claim that the mechanism is visible inside the model: short synthetic data given to a DroPE model should recruit a set of retrieval heads that overlaps the heads recruited by real long data more closely than the heads recruited by long synthetic data in the RoPE model. The contribution is a controlled factorial study, with full cost accounting, of an interaction nobody has tested. DroPE never used synthetic task data. The retrieval-heads paper studied only RoPE models (Llama-3-8B-Instruct and Mistral-7B-Instruct) and never varied the position scheme.

The claim could fail in two informative ways. DroPE's recalibration alone might already produce everything the synthetic data adds, in which case the right answer to "how much synthetic data?" is "none." Alternatively, short data might fail at long lengths because implicit position degrades with distance. Chi et al. showed that the causal-mask signal is a variance that shrinks like $1/m$ at position $m$, so neighbouring distant positions become nearly indistinguishable. DroPE itself needed softmax temperature tuning to keep attention from spreading too thin at long lengths. Both outcomes are worth knowing, and the design distinguishes them.

Why the Mechanism Should Work

Three results from the implicit-position literature supply the mechanism. Haviv et al. showed that causal models without position encodings reach nearly the perplexity of encoded models (13.10 vs. 13.05 at 1.3B), because each token can in effect count how many tokens it can see. Hayakawa et al. proved that a start-of-sequence anchor plus the causal mask gives an exact relative coordinate system. Kazemnejad et al. found that models without position encodings, trained by gradient descent, drift toward relative attention patterns and extrapolate better than RoPE, ALiBi, or absolute embeddings across ten algorithmic tasks (0.69 vs. 0.55 vs. 0.22 mean reciprocal rank).

Relative, content-driven retrieval is exactly what a retrieval head does. If nothing in the model ties that head to absolute RoPE frequencies, learning it at 2k tokens should transfer to 8k. In a RoPE model, by contrast, long synthetic data has to teach retrieval at rotation angles the model has rarely seen. The retrieval-heads paper suggests this is where synthetic data falls short.

The positional-channel work motivates a second prediction and also constrains the design. Yu et al. (2024) and Yu et al. (2025) found hidden dimensions whose values rise monotonically with position, even in TinyLlama-NoPE, and showed that these channels drive "lost-in-the-middle" failures. DroPE therefore will not remove middle-position weakness for free. We measure accuracy as a function of evidence depth throughout and treat middle-position failure as a separate axis from length failure.

Research Program

We build a two-by-two design crossing position scheme (RoPE with YaRN scaling vs. DroPE) with synthetic data length (short, about 2k tokens, vs. long, about 8k tokens). The starting point is a SmolLM-class base model, for which DroPE reports LongBench results, plus a second model near 1B parameters to check that trends hold. We do not start from 7B-class models, because DroPE's recalibration costs about 0.5% of pretraining compute, and for a model pretrained on trillions of tokens that is itself a large budget. We state this scale limit openly.

Both arms use the same generator. A single open teacher writes the synthetic task families that the retrieval-heads paper studied: needle retrieval, key-value retrieval, and multi-document QA with distractors. The teacher writes each question from a seed document, and a verification pass then checks answerability. The short and long versions share seed documents and questions and differ only in how many distractors surround the evidence, so the content of the supervision is held fixed and only the length changes.

We account for cost in FLOPs, counting every stage:

$$C_{\text{total}} = C_{\text{gen}} + C_{\text{verify}} + C_{\text{train}}(L),$$

where $C_{\text{gen}}$ is the teacher's cost to write questions and answers, $C_{\text{verify}}$ is the cost of answerability checks run over the full assembled context, and $C_{\text{train}}(L)$ is the student's fine-tuning cost at sequence length $L$. The last term grows faster than linearly in $L$ because attention cost is quadratic. For the DroPE arms we also add the recalibration compute. Ignoring that term would give DroPE a free advantage.

The mechanistic analysis reuses the retrieval-heads paper's tools unchanged: per-head retrieval scores, cosine similarity of head-activation fingerprints, and "head recall" against the heads activated by fine-tuning on real long multi-document data. That paper reports head recall correlating up to 0.94 (Spearman) with downstream F1, so it can serve as a cheap predictor. We test whether it still predicts downstream F1 when the position scheme changes, which that paper could not test.

Baselines

The naive reference point is the base model with no long-context fine-tuning, extended with YaRN at inference, together with the same model after DroPE recalibration alone and no synthetic tasks. The recalibration-only model is the reference the proposal most needs to beat. It isolates whether synthetic task data adds anything beyond what DroPE already provides, and we give it extra recalibration steps equal to the synthetic fine-tuning compute so the comparison is not lost merely for lack of training.

The strongest existing method on this question is a RoPE model with YaRN fine-tuned on long synthetic data. This is the standard synthetic context-extension recipe, in the configuration the retrieval-heads paper analyzed. The most directly comparable reported figures are in the DroPE paper: 74.92% Needle-in-a-Haystack success at twice the training length for DroPE vs. 48.25% for YaRN, and a LongBench average of 13.81 for SmolLM-DroPE vs. 13.07 for YaRN. On multi-document QA, the retrieval-heads paper reports 0.49 F1 for the best synthetic data and 0.83 for real data. That paper used 7B-class models, so we re-run the recipe at our scale rather than borrowing its numbers. Every arm gets the same seed documents and the same teacher. Hyperparameter search is capped at the same number of trials per arm, including DroPE's temperature parameter and YaRN's scale factor.

The ablation that isolates the key ingredient is the other off-diagonal cell: a RoPE model fine-tuned on short synthetic data. If that cell does as well as DroPE with short data, the gain comes from short data, not from implicit position. Real long multi-document data serves as the upper bound.

Beating the long-synthetic RoPE baseline means matching or exceeding its multi-document QA F1 and its LongBench average at 2x and 4x length within seed variance, at no more than half its $C_{\text{total}}$, with no loss on short-context tasks.

Why not just…?

Why not just scale up long synthetic data? The retrieval-heads paper found that synthetic long data plateaus well below real data, and it attributes the gap to which heads get recruited rather than to data volume. DISCO found that 75,000 targeted examples beat pipelines with over a million noisier ones. Neither result is conclusive for long contexts at our scale. We therefore run the long-synthetic RoPE arm at two data sizes, which shows whether its curve is still rising at our budget.

Why not just recalibrate with DroPE and skip synthetic data entirely? This is the most serious threat, and it may simply be the right answer. DroPE alone already beats YaRN on retrieval at twice the training length. The compute-matched recalibration-only baseline settles the question directly. If it matches the short-synthetic DroPE arm on multi-document QA and not merely on needle retrieval, we report that the synthetic stage is removable. That finding would cut overhead even further than our main claim. We expect synthetic tasks to matter most on multi-hop QA, where DroPE reports no results.

Why not just fine-tune the RoPE model on short synthetic data and rely on YaRN? This is the RoPE-short cell of the factorial design, and it runs in every setting. DroPE's own evidence, that YaRN and position interpolation distort the low RoPE frequencies the model uses to tell meanings apart (position interpolation falls to 2.48 on LongBench), predicts that this cell will degrade beyond the fine-tuning length. The prediction is tested, not assumed.

Why not just fix position bias at inference with single-channel scaling? The method of Yu et al. is training-free and cheap, needing about ten minutes and 100 samples. However, it targets evidence buried in the middle, not evidence beyond the training length. We treat it as an add-on applied to every arm and report whether it closes middle-depth gaps that remain after the length gap is gone.

Proposed Experiments

The primary evaluations are Needle-in-a-Haystack and key-value retrieval at 1x, 2x, and 4x the fine-tuning length; multi-document QA F1 and MuSiQue for multi-hop reasoning; and the LongBench average. Every result is broken down by evidence depth. We also check short-context perplexity and task accuracy for regressions, and every result is reported alongside $C_{\text{total}}$ as a cost-quality curve.

The first decisive check is the factorial interaction. The claim holds only if the DroPE-short cell beats the RoPE-short cell by more than DroPE-long beats RoPE-long, and if DroPE-short matches or beats RoPE-long at no more than half its compute.

The second decisive check is mechanistic. DroPE-short should show higher head recall against the real-data head set than RoPE-long, and head recall should track multi-document QA F1 across all arms. If the F1 gains appear without the head overlap, the retrieval-head explanation does not carry over to models without explicit position encodings, and we will report that.

The third check probes the known weakness of implicit position. Holding the task fixed, we increase evaluation length to 4x and beyond. Given the $1/m$ variance shrinkage, accuracy should fall off first at positions where adjacent tokens become indistinguishable. We measure whether a small fraction of long examples, around 10% of the data, restores performance there. A positive answer would give a concrete mixing rule: generate mostly short data and add a little long data.

A secondary check asks whether adding teacher-written reasoning traces to the short tasks helps or hurts extrapolation. Kazemnejad et al. observed that redundant scratchpad formats can damage length generalization in models without position encodings. Pos2Distill instead distills reasoning traces to fix middle-position failures in RoPE models. Our setting pits these two observations against each other directly.