Make Position Uninformative: Exchangeable Self-Distillation Flattens the Lost-in-the-Middle Curve
Organizations: The Chinese University of Hong Kong · Beijing University of Posts and Telecommunications
Abstract
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
| 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 |
| 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 |
| 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 ∗ |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Item | Setting |
| Adapter | LoRA, rank 16, , on of every layer (16.8M parameters for Vicuna-7B, 0.25%) |
| Optimization | AdamW, learning rate , 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) |
| Comparison (Qwen2.5-32B judge) | 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] |
| Answer position, in the order stated in each block | ||||||||
| Method | First | Second | Third | Fourth | Last | Mean | Worst | SD |
| Vicuna-7B, 20 documents, development; ; positions 1/5/10/15/20 | ||||||||
| Frozen | 62.8 | 53.3 | 52.2 | 51.3 | 63.5 | 56.6 | 51.3 | 5.4 |
| Pos2Distill-R1 | 60.4 | 54.2 | 56.0 | 52.7 | 63.7 | 57.4 | 52.7 | 4.1 |
| Pos2Distill-R1 ( ) | 60.0 | 53.5 | 55.5 | 53.3 | 63.7 | 57.2 | 53.3 | 4.0 |
| CORD | 52.9 | 61.1 | 68.6 | 69.9 | 69.7 | 64.4 | 52.9 | 6.6 |
| Setting | Comparator | 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 ( ) | 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] |
| 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 ( ), 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 | |
| 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 ) |
| 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 |
| ExSD without the correctness filter (32B judge) | 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 |
| 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 |
| 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] |