Retrieval-augmented language models answer well when the relevant document comes first or last and poorly when it sits in the middle. Some fine-tuning recipes lift the middle by lowering the start. We show how training contexts teach positional bias. With a uniform answer slot and shuffled distractors, the optimal reader ignores position. Building on this result, Exchangeable Self-Distillation (ExSD) trains a small adapter on shuffled contexts to reproduce the model's answer when it reads the answer document alone. It needs no gold answers and only a few thousand examples. On six models from 1.5B to 32B parameters, ExSD raises both average and worst-position accuracy against the frozen model, including on a held-out test split. In controlled LoRA comparisons, it significantly improves both criteria over Pos2Distill. Against CORD, mean differences are not significant, while worst-position accuracy improves significantly in the 20- and 30-document settings. ExSD also matches or beats gold-answer fine-tuning, changes behavior on other tasks far less, and transfers to unseen tasks. Head probes show greater reliance on content over position.
Figures & tables
Figure 2: Exchangeable Self-Distillation. (1) A ranked retriever puts the hardest distractors first. A document’s slot then predicts how answer-like it is, so position itself becomes evidence ( Prop. 2 ). ExSD places the answer document at a uniformly random slot and shuffles the distractors, so every slot looks alike ( Prop. 1 ). (2) The target is the frozen model’s own answer when it reads the answer document alone. (3) A LoRA adapter learns to give that answer from the full exchangeable context.
Position of the answer document
Model
1
5
10
15
20
Mean
Worst
SD
Development split (452 questions)
Frozen, LITM
62.8
53.3
52.2
51.3
63.5
56.6
51.3
5.4
ExSD
58.4
61.5
64.6
68.1
73.9
65.3
58.4
5.4
Δ
− 4.4 ∗
+8.2 ∗
+12.4 ∗
+16.8 ∗
+10.4 ∗
+8.7 ∗
+7.1 ∗
0.0
Frozen, short
59.1
48.7
48.0
46.5
62.4
52.9
46.5
6.5
Table 1: Vicuna-7B on MDQA with 20 documents , Qwen2.5-32B judge. Every pair shares its prompt, either LITM’s QA prompt or a short-answer prompt. Worst is the lowest of the five positions, and SD is the spread across positions. Positive changes are blue and negative changes are red. For SD, a negative change means a flatter curve. An asterisk marks a significant change (95% paired bootstrap), and intervals are in Tab. S2 .
Figure 3: ExSD wins all 12 prompt-matched comparisons on both criteria. (a) Accuracy gain over the frozen model under the same prompt at each relative position of the answer document. We use the Qwen2.5-32B judge and 452 development questions, except for the test rows (735) and for Vicuna-7B with 10 documents (274). Rows with 10 and 30 documents use positions 1/3/5/7/10 and 1/8/15/23/30. (b) Gain in mean accuracy and in worst-position accuracy, with 95% paired bootstrap intervals. Every interval excludes zero.
Figure 4: What the training contexts reveal about position is what the reader learns. Vicuna-7B is fine-tuned on the same questions and targets, and only the arrangement of the training contexts changes (MDQA-20, lenient). (a) Retrieval-ordered distractors and a late-only answer slot tilt the curve toward the end. Reversing the order tilts it back. (b) First-minus-last accuracy follows the ordering predicted by Prop. 2 , for self-distilled and for gold-answer targets.
Ms-PoE protocol
MDQA-20, 32B judge
Method
MDQA-10
KV-50
First
Mid.
Last
Mean
Worst
Frozen
60.9
77.0
62.8
52.3
63.5
56.6
51.3
Ms-PoE [ 40 ]
61.3
80.2
–
–
–
–
–
Controlled LoRA fine-tuning
SFT, retrieval order
65.0
84.0
53.3
65.4
67.5
63.4
53.3
Attention sup. [ 23 ]
65.5
89.2
46.7
66.6
70.6
63.4
46.7
Table 2: Baselines on Vicuna-7B. Left: Ms-PoE protocol (500 items each, lenient). Right: development split (452 questions); Mid. averages positions 5, 10 and 15. SFT and attention supervision use gold answers. Pos2Distill-R1 and CORD are controlled LoRA reimplementations (Supp. B.1 ); Pos2Distill samples one position per question. “No filter” uses 2,287 random questions. Bold marks column maxima, not significance; paired intervals are in Tabs. S2 and S4 .
Figure 5: Exchangeable data lifts the middle without giving up the start. First-position accuracy against mean accuracy at positions 5, 10 and 15 (Vicuna-7B, 32B judge). Arrows start at the frozen model with the same prompt. Training on retrieval-ordered contexts or adding attention supervision buys the middle with the first position. Every exchangeable recipe (blue) lands in the shaded corner.
Figure 6: Where the fix lives. (a) Retrieval heads are the 20 heads of the frozen model that attend most to the answer document. Probed under one prompt, they become less positional and more content-driven after ExSD (lower position-to-content ratio). (b) Gain in the log-odds that these heads attend to the answer document rather than a distractor. (c) Change in mean accuracy when parts of the recipe are removed or changed (lenient, development split).
Figure 7: Self-distilled targets match or beat gold answers, with or without the correctness filter. The contexts, questions and adapter are the same, and only the target differs. We use the 32B judge, the LITM prompt for Vicuna-7B and the short prompt for Qwen2.5-7B.
Figure 8: ExSD preserves the model, while gold answers rewrite it. Change of each LongBench category against the frozen model. Gold-answer fine-tuning shrinks answers to about two words. This lifts short-answer F1 but costs Vicuna-7B summarization and Qwen2.5-7B single-document QA and code. ExSD stays within 1.7 points per category on Vicuna-7B and costs Qwen2.5-7B a third as much on average.
Benchmark
Model
Frozen
ExSD
Δ
Position-sensitive retrieval and QA
KV retrieval, 50 pairs †
Vicuna 7B
77.0
88.8
+11.8 ∗
SynthWiki, 20 docs
Vicuna 7B
92.2
95.6
+3.4 ∗
MDQA, 30 docs
Qwen 1.5B
34.2
41.2
+7.0 ∗
TriviaQA, 20 passages
Vicuna 7B
69.8
73.1
+3.4 ∗
TriviaQA, 20 passages
Qwen 1.5B
57.9
62.3
+4.4 ∗
Table 3: Generalization. † Task never seen in training. KV retrieval is scored by exact match, QA by lenient accuracy and the other suites by their official metrics. In TriviaQA, the answer passage takes five positions among 19 hard negatives. Vicuna is compared under the LITM prompt and Qwen under the short prompt. Qwen means Qwen2.5-Instruct. Positive changes are blue and negative changes are red, and an asterisk marks a significant change. Per-task results are in Supp. I .
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
Item
Setting
Adapter
LoRA, rank 16, α=32 , on Wq,Wk,Wv,Wo of every layer (16.8M parameters for Vicuna-7B, 0.25%)
Optimization
AdamW, learning rate 2×10−4 , no weight decay, 20 warm-up steps, cosine decay to 10%, gradient clipping at 1.0
Batch and length
8 sequences per step by gradient accumulation, one epoch (285 steps for 2,287 examples), bf16, gradient checkpointing
Training contexts
20 documents (the DPR positive passage and 19 BM25 negatives), answer slot uniform, negatives shuffled
Oracle targets
greedy first line of the frozen model given the question and the answer document alone
Correctness filter
Optional. By default an example is kept if its target contains a gold answer (2,287 of 3,000 questions for Vicuna-7B, 2,300 for Qwen2.5-7B). The unfiltered variant takes the same number of random questions (24% and 23% wrong targets)
Appendix
Table S1: ExSD training settings. Qwen2.5 models use their chat template and adapt all 28, 28, 48 and 64 layers. Baseline-specific contexts, targets and losses are described below.
Figure S1 : Lenient accuracy on the test split after cutting each output to its first k words. Two-word outputs (SFT, attention supervision) are unaffected, while sentence-long outputs gain with k .
Comparison (Qwen2.5-32B judge)
n
Δ mean
Δ worst position
Δ SD (lower is flatter)
Δ first
Δ last
ExSD − frozen model under the same prompt
Vicuna-7B, LITM prompt, 20 docs, dev
452
+8.7 [+5.8, +11.7]
+7.1 [+3.1, +11.7]
0.0 [-1.9, +1.8]
− 4.4 [-8.6, -0.2]
+10.4 [+6.6, +14.2]
Vicuna-7B, LITM prompt, 20 docs, test
735
+8.7 [+6.4, +10.9]
+8.4 [+5.0, +11.8]
− 0.8 [-2.2, +0.6]
− 2.9 [-6.1, +0.3]
+7.8 [+4.9, +10.6]
Vicuna-7B, short prompt, 10 docs
274
+8.0 [+4.4, +11.7]
+10.6 [+5.5, +15.0]
− 4.3 [-6.1, -2.0]
− 2.9 [-7.7, +1.8]
+8.0 [+2.9, +13.1]
Vicuna-7B, short prompt, 20 docs, dev
452
+9.2 [+6.2, +12.1]
+11.1 [+6.9, +15.5]
− 3.7 [-5.5, -1.8]
− 1.5 [-6.0, +3.1]
+3.1 [-0.7, +6.6]
Vicuna-7B, short prompt, 20 docs, test
735
+10.1 [+7.9, +12.4]
+11.3 [+8.2, +14.6]
− 1.9 [-3.4, -0.5]
− 1.0 [-4.1, +2.2]
+4.8 [+1.8, +7.8]
Appendix
Table S2 : Frozen-model and gold-answer comparisons on the main criterion , with 95% bootstrap intervals over questions. Positive changes are blue and negative changes are red. A change is significant when its interval excludes zero. For the spread, a negative change means a flatter curve. Vicuna-7B and Vicuna-7B-16K use the stated prompt, and Qwen2.5 always uses the short-answer prompt. “Short prompt” rows are ExSD-short.
Answer position, in the order stated in each block
Table S3: Position curves for the closest distillation baselines , Qwen2.5-32B judge. Vicuna uses the LITM prompt and Qwen uses the short-answer prompt. All adapters train on 20 documents. Pos2Distill-R1 uses m=1 sampled position per question unless stated otherwise; the m=4 control uses a smaller question set ( Sec. B.1 ). Bold denotes the highest mean and worst-position point estimates within each block, not statistical significance.
Setting
Comparator
n
Δ mean
Δ worst position
Δ SD
Vicuna, 20 docs, dev
Pos2Distill-R1
452
+7.9 ∗ [+5.1, +10.8]
+5.8 ∗ [+1.8, +10.2]
+1.3 [-0.4, +2.9]
Vicuna, 20 docs, dev
CORD
452
+0.9 [-2.3, +4.0]
+5.5 ∗ [+0.9, +10.2]
-1.3 [-3.0, +0.5]
Vicuna, 20 docs, dev
Pos2Distill-R1 ( m=4 )
452
+8.1 ∗ [+5.3, +10.9]
+5.1 ∗ [+1.5, +9.7]
+1.3 [-0.4, +2.9]
Vicuna, 20 docs, test
Pos2Distill-R1
735
+7.5 ∗ [+5.4, +9.6]
+5.6 ∗ [+2.6, +9.1]
+0.3 [-1.2, +1.7]
Vicuna, 20 docs, test
CORD
735
-0.2 [-2.6, +2.3]
+7.6 ∗ [+3.9, +11.2]
-3.8 ∗ [-5.2, -2.3]
Qwen, 10 docs
Pos2Distill-R1
452
+8.0 ∗ [+5.4, +10.6]
+8.0 ∗ [+4.2, +11.7]
-0.9 [-2.4, +0.6]
Appendix
Table S4 : ExSD minus the closest distillation baselines , in percentage points, with 95% paired bootstrap intervals over questions (4,000 resamples). All models are 7B; Qwen rows use the development split. An asterisk marks significance. For SD, a negative change means a flatter curve. The lower mean bound for Qwen at 10 documents versus CORD is shown to two decimal places because rounding it to one gives −0.0 ; the interval includes zero.
Figure S2 : The residual tilt of Vicuna-7B is a distance decay of the base model. Development and test splits are pooled (1,187 questions, 32B judge). (a) First-minus-last accuracy in the shortest, middle and longest third of the prompts. Every variant, frozen included, loses the first position as the prompt grows. The frozen models start above zero (primacy), and the trained ones do not. (b) Accuracy against the number of tokens between the answer document and the question. The frozen model is U-shaped, and ExSD decays monotonically. (c) ExSD curves. The tilt appears with 20 documents in Vicuna-7B. It disappears with 10 documents, in the 16K-window variant at 20 documents and in Qwen2.5-7B.
Development split (452 questions)
Test split (735)
Model
Positions
1
5
10
15
20
Mean
Worst
SD
Mean
Worst
SD
KV-50
Compression at inference ( C=0.75 ), weights unchanged
Frozen, short prompt
unchanged
59.1
48.7
48.0
46.5
62.4
52.9
46.5
6.5
48.2
41.8
5.2
–
uniform
67.9
50.4
47.3
46.9
58.2
54.2
46.9
8.0
50.5
44.2
6.9
–
Frozen, LITM prompt
unchanged
62.8
53.3
52.2
51.3
63.5
56.6
51.3
5.4
52.0
46.7
4.9
78.1
uniform
–
–
–
–
–
–
–
–
52.6
46.1
7.0
67.5
Appendix
Table S5 : Compressing rotary distance on Vicuna-7B (MDQA-20, Qwen2.5-32B judge). Uniform compression sets the rotary step inside the document block to C , and text after the block keeps its distance from the block’s end. Per-document compression keeps step 1 inside each document and pulls the document starts together by C . The question then follows the highest position. KV-50 has 200 rows at positions 1/15/30/40/50 under the LITM prompt and is scored by exact value. Compression lifts the first slot of every model and leaves the middle in place. Retrained under per-document compression, ExSD keeps exact copying. A dash marks a run we did not do.
Figure S3 : Test split (735 questions, read once, Qwen2.5-32B judge). (a) Each trained model against the frozen model under its prompt. The U is gone in both pairs. (b) Recipes trained on the same data. Retrieval-ordered SFT and attention supervision lose the first position, while the exchangeable recipes keep it.
Comparison (test, 32B judge; 14B)
Δ mean
Δ first
Δ last
ExSD − frozen, LITM prompt
+8.7 ∗ ( +8.7 )
− 2.9 ( − 0.4 )
+7.8 ∗ ( +6.7 )
ExSD-short − frozen, short prompt
+10.1 ∗ ( +8.8 )
− 1.0 ( − 2.2 )
+4.8 ∗ ( +3.5 )
ExSD − gold-answer SFT, exch.
+2.0 ( +0.6 )
− 0.7 ( − 1.5 )
+6.5 ∗ ( +4.5 )
ExSD − attention supervision
+0.4 ( − 0.5 )
+11.7 ∗ ( +11.7 )
− 1.8 ( − 2.7 )
Appendix
Table S6 : Test-split comparisons under the 32B judge, with the 14B judge in parentheses. Positive changes are blue and negative changes are red. An asterisk marks a change that is significant under the 32B judge.
Model, documents
Frozen
Gold SFT
ExSD, no filter
ExSD
Vicuna-7B, 20 (dev)
56.6 / 51.3
64.6 / 62.2
64.6 / 60.4
65.3 / 58.4
Qwen2.5-7B, 10
64.1 / 61.5
70.7 / 67.5
71.7 / 70.4
74.0 / 70.8
Qwen2.5-7B, 20
61.5 / 58.8
67.1 / 64.2
70.2 / 68.1
70.9 / 69.5
Qwen2.5-7B, 30
59.0 / 53.8
65.7 / 61.7
67.7 / 65.3
70.4 / 68.8
Appendix
Table S7 : Mean / worst-position accuracy for the four targets of Fig. 7 (32B judge).
ExSD without the correctness filter (32B judge)
n
Δ mean
Δ worst position
Δ SD
Δ first
Δ last
Vicuna-7B − frozen, LITM prompt
452
+8.0 ∗ [+5.0, +10.8]
+9.1 ∗ [+4.4, +13.1]
− 1.2 [-3.0, +0.7]
− 2.4 [-6.6, +1.8]
+8.0 ∗ [+4.4, +11.7]
Vicuna-7B − filtered ExSD
452
− 0.7 [-2.3, +0.9]
+2.0 [-1.8, +4.4]
− 1.2 [-2.4, +0.1]
+2.0 [-1.1, +5.3]
− 2.4 ∗ [-4.9, -0.2]
Vicuna-7B − gold-answer SFT
452
0.0 [-3.3, +3.3]
− 1.8 [-6.2, +2.2]
+2.1 ∗ [+0.4, +3.6]
− 1.8 [-6.6, +2.9]
+6.2 ∗ [+2.2, +10.2]
Qwen2.5-7B, 10 / 20 / 30 docs − frozen
452
+7.6 ∗ / +8.6 ∗ / +8.7 ∗
+8.8 ∗ / +9.3 ∗ / +11.5 ∗
− 0.7 / − 0.5 / − 2.3 ∗
+6.9 ∗ / +7.7 ∗ / +6.2 ∗
+5.5 ∗ / +6.2 ∗ / +2.2
Qwen2.5-7B, 10 / 20 / 30 docs − filtered ExSD
452
− 2.3 ∗ / − 0.8 / − 2.7 ∗
− 0.4 / − 1.3 / − 3.5 ∗
− 0.1 / +1.1 / +1.3 ∗
− 0.2 / +1.3 / 0.0
0.0 / − 1.5 / − 3.5 ∗
Qwen2.5-7B, 10 / 20 / 30 docs − gold-answer SFT
452
+1.0 / +3.1 ∗ / +2.1
+2.9 / +4.0 / +3.5
− 0.2 / +0.7 / +0.7
+2.4 / +4.9 ∗ / +4.9 ∗
+3.3 / +4.4 ∗ / +3.5
Appendix
Table S8 : ExSD without gold answers. The unfiltered recipe trains on as many random questions as the filtered one, wrong self-distilled targets included (24% for Vicuna-7B, 23% for Qwen2.5-7B). Qwen2.5-7B entries list 10 / 20 / 30 documents. Positive changes are blue and negative changes are red. An asterisk marks a significant change. For SD, a negative change means a flatter curve.
NarQA
Qasper
MFQA
Hotpot
2Wiki
MuSiQ
GovRep
QMSum
MNews
TREC
TQA
SAMSum
PCount
PRetr
LCC
RepoB
Avg
Vicuna-7B, frozen
15.1
23.3
38.1
22.7
16.9
6.5
27.5
21.1
26.8
66.0
83.2
41.4
0.5
7.0
58.7
47.8
31.40
Vicuna, ExSD
15.5
25.5
39.7
21.5
18.9
7.4
26.9
21.7
26.5
67.5
79.3
40.9
2.0
8.0
56.0
47.0
31.51
Vicuna, gold SFT
16.4
24.1
31.9
33.4
29.5
9.5
23.4
14.9
23.8
58.5
87.1
37.7
0.5
5.5
59.0
53.7
31.81
Qwen2.5-7B, frozen
29.0
44.2
52.8
58.2
46.4
30.2
31.8
23.8
24.0
72.0
89.5
45.7
8.5
100.0
60.2
67.1
48.96
Qwen, ExSD
26.4
45.7
50.7
59.1
47.0
31.7
30.4
23.4
24.4
68.5
82.8
45.9
0.5
97.0
62.3
63.4
47.45
Qwen, gold SFT
23.5
29.3
42.1
60.2
45.6
29.2
32.0
18.5
25.7
68.5
90.7
47.8
1.5
98.5
47.0
52.8
44.54
Appendix
Table S9 : LongBench v1 , 16 English tasks with 3,750 items and official metrics. Qwen2.5-7B uses its chat template, with inputs truncated to 31.5K tokens. Category means are plotted in Fig. 8 . Against the frozen model, the average changes by +0.1 [-0.5, +0.7] for ExSD and +0.4 [-0.5, +1.3] for gold-answer SFT on Vicuna-7B. On Qwen2.5-7B it changes by −1.5 [-2.3, -0.8] and −4.4 [-5.4, -3.4] .
Figure S4 : TriviaQA with 20 passages. The answer passage takes five positions among 19 BM25 negatives that hold no answer (500 questions, lenient). Vicuna-7B is compared under the LITM prompt and Qwen2.5 under the short prompt. The U disappears on every model.
Frozen
ExSD
Model
mean / worst
mean / worst
Δ mean
TriviaQA, 500 questions
Vicuna-7B
69.8 / 67.2
73.1 / 70.0
+3.4 [+1.1, +5.6]
Qwen2.5-1.5B
57.9 / 54.6
62.3 / 60.2
+4.4 [+1.8, +6.9]
Qwen2.5-7B
70.5 / 68.6
76.6 / 75.6
+6.1 [+3.8, +8.5]
Qwen2.5-14B
77.3 / 75.8
82.4 / 81.0
+5.1 [+3.3, +7.0]
Appendix
Table S10 : Open-domain QA over hard negatives (TriviaQA 500 and WebQuestions 271 questions, 20 passages, lenient). Positive changes are blue and negative changes are red. A change is significant when its interval excludes zero.
Long-context models often use answer-bearing evidence less effectively when it appears away from a prompt boundary. We compare this position bias across Transformer, state-space, and hybrid Mamba architectures by moving one gold document through a fixed set of nine distractors. The evaluated Transformers show a beginning advantage that the evaluated state-space models lack, while both families favor evidence near the end. A matched pure-versus-hybrid Mamba comparison points in the same direction but remains statistically uncertain. The family difference appears among models that can answer the task. Transformer primacy reappears on synthetic retrieval, where state-space ceiling prevents a family comparison. A corpus swap within one state-space architecture changes overall accuracy without a detectable change in curve shape. Prompt changes can create or nearly remove a beginning advantage. Position remains decodable across architectures even when response curves differ, and attention concentration near initial tokens covaries with beginning sensitivity in the tested Transformer family. These exploratory results show that effective context use depends on the evaluated architecture family, capability, task, and prompt, without isolating the sequence mixer as the sole cause.
Aman Behera, Namit Solanki, Mehul Anand
IIT Roorkee · AISSMS IOIT, Pune · Independent Researcher
Large language models (LLMs) increasingly operate in settings that require reliable long-context understanding, such as retrieval-augmented generation and multi-document reasoning. A common strategy is to fine-tune pretrained short-context models at the target sequence length. However, we find that standard long-context adaptation can remain brittle: model accuracy depends strongly on the absolute placement of relevant evidence, exhibiting high positional variance even when controlling for task format and difficulty. We propose RoPE-Perturbed Self-Distillation, a training regularizer that improves positional robustness. The core idea is to form alternative "views" of the same training sequence by perturbing its RoPE indices -- effectively moving parts of the context to different positions -- and to train the model to produce consistent predictions across views via self-distillation. This encourages reliance on semantic signals instead of brittle position dependencies. Experiments on long-context adaptation of Llama-3-8B and Qwen-3-4B demonstrate consistent gains on long-context benchmarks, including up to 12.04% improvement on RULER-64K for Llama-3-8B and 2.71% on RULER-256K for Qwen-3-4B after SFT, alongside improved length extrapolation beyond the training context window.
Zichong Li, Chen Liang, Liliang Ren +3
Work is done during internship at Microsoft. · Georgia Institute of Technology · Microsoft.
We study training LLM judges from natural language feedback, especially for subjective tasks where the verdict depends strongly on which evaluation criteria the judge invokes and how it weighs them. The dominant approach, outcome-supervised RL (e.g., GRPO), credits every token in the rollout with a single scalar determined only by the accuracy of the final verdict, providing no separate credit at the criterion-choice tokens and ignoring the rich language feedback (e.g., preference rationales) that naturally accompanies preference labels. Self-Distillation (SD) is one natural way to use this language feedback: the same model, conditioned on this feedback, acts as a teacher providing dense, position-level supervision. However, not all positions carry equally useful signal. Using the per-position entropy shift between teacher and student, we identify two regimes: context sharpening, where the teacher concentrates probability on a particular feedback-aligned criterion expression, and context spreading, where the teacher distributes probability across multiple feedback-aligned alternatives. We interpret these patterns as follows: sharpening encourages memorization of a particular criterion expression, whereas spreading promotes semantic understanding by preserving these alternatives. Motivated by this asymmetry, we introduce position masking based on the entropy shift that retains the lower tail of the entropy-shift distribution. Experiments show that masking higher-entropy-shift positions improves out-of-distribution generalization over naive SD. The resulting self-distilled judges outperform judges trained with outcome-supervised RL by 2-9 percentage points on the evaluated subjective subcategories, while remaining competitive on objective ones.
Ilgee Hong, Changlong Yu, Zhenghao Xu +5
Georgia Institute of Technology · Amazon · UC San Diego