Make Position Uninformative: Exchangeable Self-Distillation Flattens the Lost-in-the-Middle Curve

Qingsen Ma, Dianyun Wang, Jiahong Liu, Irwin KingarXiv 2026

It’s late, you’ve been wrestling with RAG (Retrieval-Augmented Generation) pipelines all day, and you’re seeing that dreaded U-shaped curve again. Your model is a champ at the first document and the last one, but if the answer is buried in document #10 of 20, it might as well not be there at all. This is the "Lost-in-the-Middle" (LITM) problem, and it’s been a thorn in the side of long-context LLMs for a while.

A new paper from researchers at The Chinese University of Hong Kong and BUPT offers a surprisingly elegant fix: Exchangeable Self-Distillation (ExSD).

TL;DR

LLMs struggle to find information in the middle of long contexts because they've "learned" to be lazy from biased training data. ExSD fixes this by training a tiny adapter on shuffled documents using the model's own "clean" answers as a target, effectively teaching it that position is irrelevant and content is king.

What Problem Does This Paper Address?

The "Lost-in-the-Middle" phenomenon isn't just a quirk; it’s a failure of the model to treat all input positions equally. Most models are trained on data where the most relevant information is at the top (like search results). This teaches the model a "positional prior"—a bias to trust the beginning of the text more than the middle.

Existing fixes often involve expensive fine-tuning on massive "gold" datasets or complex attention-weight hacking. The authors argue that we don't need more data; we just need to change how the model perceives the data it already has.

Methods

The core idea is Exchangeable Self-Distillation (ExSD). It’s a three-step recipe that doesn't require a single human-labeled "gold" answer:

  1. Build Exchangeable Contexts: Take a question and a stack of documents. Instead of ranking them by relevance, put the answer document in a random slot and shuffle all the "distractor" documents. This makes the position of the answer document completely uninformative.
  2. Oracle-Context Targets: Here’s the clever bit. You ask the frozen base model to answer the question given only the answer document. This "clean" response becomes your training target. It preserves the model's natural style and knowledge while removing the noise of distractors.
  3. Fine-tune with LoRA: You train a small LoRA adapter to make the model produce that same "clean" answer even when it's looking at the full, noisy, shuffled context.
The ExSD training pipeline: shuffling contexts and distilling from an 'oracle' view.

Datasets

  • Training: The authors used about 2,300 examples from the Natural Questions (NQ) training split.
  • Evaluation:
  • MDQA (Multi-document QA): Testing across 10, 20, and 30 documents.
  • KV (Key-Value) Retrieval: A "needle-in-a-haystack" style task.
  • General Benchmarks: LongBench, ZeroSCROLLS, and MMLU to ensure the model doesn't lose its general intelligence.

Key Insights and Ideas

  • Position is a Shortcut: The paper proves (mathematically and empirically) that if distractors are ordered by "hardness," the model learns to discount early slots. Shuffling distractors forces the model to actually read the content.
  • Distillation > Gold Answers: Using the model's own answers as targets is better than using human "gold" answers. It prevents the model from having to learn a new output format (like "be more concise"), allowing the training budget to be spent entirely on improving reading comprehension.
  • Where the Magic Happens: Probing the model revealed that the fix primarily lives in the value and output projections of the lower and middle layers. The model isn't changing how it "looks" at things (attention weights); it's changing what it "writes down" for later layers to read.

Key Results

The results are striking. ExSD doesn't just lift the middle of the curve; it flattens it.

  • Flattening the U: On Vicuna-7B, average accuracy rose by 9.2%, and the performance gap between the "best" and "worst" positions was drastically reduced.
  • Zero-Shot Transfer: Even though it was trained on QA, the ExSD adapter improved performance on Key-Value retrieval by 11.8%—a task it had never seen before.
  • Preserving General Ability: Unlike standard fine-tuning, ExSD had almost zero negative impact on general benchmarks like MMLU. It fixes the reading behavior without breaking the brain.
Figure 1. ExSD removes the lost-in-the-middle U-curve. Accuracy as the answer document moves through the context, for the frozen model (gray) and after Exchangeable Self-Distillation (blue, with the gain shaded). Each panel compares models under the same prompt. A single LoRA adapter trained on 2.3k examples of 20-document QA lifts every middle position on Vicuna-7B and on Qwen2.5 from 7B to 32B. It extends to 30 documents and transfers to key-value retrieval, a task never seen in training. The answer document takes positions 1, 5, 10, 15 and 20 among 20 documents and 1, 5, 10, 15, 20, 25 and 30 among 30, as in LITM. The KV panel uses the positions of the Ms-PoE protocol. MDQA panels are scored by a Qwen2.5-32B judge.

Limitations and Future Work

While ExSD is a powerhouse for flattening the curve, it’s not a total cure for all positional quirks.

  • Base Model "Tilt": Some models (like Vicuna) have a built-in "recency bias" due to their rotary position embeddings. ExSD flattens the U, but a slight upward tilt toward the very end of the context can remain.
  • Extractive Focus: The method was primarily tested on tasks where the answer is explicitly contained within one document. How it handles complex multi-hop reasoning across many documents is still an open question.

In short, if you're building a RAG system and tired of your model "zoning out" in the middle of your context window, ExSD is a lightweight, data-efficient way to wake it up.

Summary updated

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.
BibTeX
@misc{ma2026make,
  author = {Qingsen Ma and Dianyun Wang and Jiahong Liu and Irwin King},
  title = {{Make Position Uninformative: Exchangeable Self-Distillation Flattens the Lost-in-the-Middle Curve}},
  year = {2026},
  eprint = {2611.28638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28638},
}
Figure