Language models answer well when given only the relevant facts, then fail when the same facts arrive buried among irrelevant or misleading passages. Breaking Focus reports GPT-4o-mini falling from 85.7% to 22.0% on CommonsenseQA under generated distractors, and shows that the models still know the answers once the distractors are removed. A natural fix is context distillation: a teacher model sees the clean context, a student sees the noisy one, and the student is trained to match the teacher's next-token probabilities. This proposal argues that when the teacher is larger than the student, plain context distillation spends most of its training signal on the wrong tokens. On those tokens the student fails because it is small, not because it is distracted. The fix is to distill hardest on the tokens whose prediction the noise itself changes, measured cheaply by running the student twice, once with clean context and once with noisy context.
The core idea in two sentences: the gap between a noisy-context student and a clean-context teacher splits into a "distraction" part (the student with clean context would have been right) and a "capacity" part (the student is wrong even with clean context). We weight the distillation loss per token by the distraction part only, so the student learns to ignore noise rather than straining to memorize what it cannot represent.
Core Claim
Let $q$ be a question, $c$ the clean supporting context, $n$ added distractor text, $y_{<t}$ the response prefix, $p_T$ the teacher, and $p_S$ the student. The per-token weight is the student's own sensitivity to the noise:
$$w_t = \frac{H\big(p_S(\cdot \mid c, q, y_{<t}),\; p_S(\cdot \mid c \oplus n, q, y_{<t})\big)}{\frac{1}{|y|}\sum_{s} H(\cdot)_s} ,$$
where $H$ is the Hellinger distance between two next-token distributions, $c \oplus n$ is the clean context with distractors interleaved, and the denominator normalizes weights to mean one over the response. The training loss is then
$$\mathcal{L} = \sum_t \max(w_t, \epsilon)\; D\big(p_T(\cdot \mid c, q, y_{<t}) \,\|\, p_S(\cdot \mid c \oplus n, q, y_{<t})\big),$$
with $D$ a divergence (forward or reverse KL, matching the baseline we compare against) and $\epsilon$ a small floor so no token is ignored entirely. Responses $y$ are sampled from the student under the noisy context (on-policy). This choice matters for reasoning models: Thinking in a Crowd shows they write long rationalizations of misleading snippets, and the clean-context teacher should grade exactly those self-generated rationalizations.
The weight costs one extra student forward pass with the clean context. The clean context is needed only at training time. At test time the student sees raw noisy input with no special prompt.
The falsifiable prediction concerns an asymmetry. When teacher and student are the same model, the student at initialization is the noisy-context teacher, so uniform distillation already concentrates its gradient on noise-sensitive tokens and our weighting should add almost nothing. As the size gap grows, the capacity part of the gap should dominate uniform and difficulty-based weighting, and our weighting should help more. If that asymmetry does not appear, the claim is wrong.
Relation to Prior Work
Three works supply the method. Knowledge Injection via Prompt Distillation trains a student to match a teacher that holds privileged context in its prompt, and reports a 10x data-efficiency advantage over supervised fine-tuning. Its privileged information is knowledge the student lacks entirely. Ours is the absence of noise, and it does no token weighting. SDPRO alternates discrete prompt optimization with on-policy divergence minimization, so that an unprompted student internalizes a prompted teacher (66.0% on HotpotQA for the student). It weights tokens uniformly and does not study distractor noise. Token Weighting for Long-Range Language Modeling scores tokens by how much a long versus short context changes their log-probability. Our weight is the same contrast-of-contexts idea, applied to clean versus noisy context and moved from pretraining into distillation.
One work is the direct competitor. AdaKD focuses distillation on tokens with the largest teacher–student Hellinger gap and shows that gradients from already-mastered tokens can work against the training goal. Its signal is the total gap, which mixes capacity and distraction. It was evaluated only on clean instruction data. We keep its lesson that uniform weighting wastes signal, but argue that its difficulty measure points at the wrong tokens under noise.
Several works motivate or constrain the design. Breaking Focus and Thinking in a Crowd establish that the failure is about using context, not missing knowledge, and that thinking modes can make it worse. Breaking Focus also finds that a hand-written "ignore irrelevant information" prompt fails while preference training on distracted versus clean pairs helps. This rules out a pure prompting solution and sets preference training as a baseline. Ext2Gen trains models with preference optimization to extract evidence before answering, and outperforms separate upstream compressors. That result argues against an upstream-filter alternative.
Hand-written prompts play a supporting role here. DAS adds a manual "return unanswerable" escape instruction and a query-likelihood rescoring step. We use such manual prompts as baselines. As an option, we also place them in the teacher's privileged view, so the student internalizes them without paying their context cost at inference.
Research Program
We first build a paired clean/noisy corpus from sources that come with known clean context. The first is HotpotQA's distractor setting (HotpotQA), where supporting facts are labeled. The second is SciAux (billhdzhao/SciAux), with clean, irrelevant, and misleading snippets. The third is the Ext2Gen noisy-RAG data, with up to 25 distractor chunks.
We use one model family so tokenizers match: a Qwen3-8B teacher and students at roughly 0.6B, 1.7B, 4B and 8B (the last is self-distillation). Students are trained with LoRA adapters under identical token budgets for every objective.
The analysis component decomposes the noisy student–teacher gap per token into distraction and capacity parts. It then reports what fraction of AdaKD's top-$r\%$ tokens fall into each part, and how that fraction changes with student size. As an independent check that high-weight tokens really are distractor-driven, we use the attention-times-value-norm attribution of Kim et al.. This lets us test whether high-$w_t$ tokens send disproportionate information flow from distractor spans, compared with matched random tokens.
Baselines
The naive reference is the base student reading the noisy context with a plain task prompt. The second is the same student with manual robustness prompting: the "ignore irrelevant information" instruction that Breaking Focus found ineffective, and the DAS-style unanswerable escape. Both are tuned on the same small validation split.
The third is supervised fine-tuning on noisy-context inputs with gold answers, matched in examples and steps. This tests whether a teacher is needed at all.
The fourth is preference optimization on distracted-versus-clean pairs, following Breaking Focus and Ext2Gen. On the Ext2Gen data the strongest reported number is Ext2Gen-R2 lifting Llama3.1-8b-instruct from an average score of 0.473 to 0.557 (Ext2Gen). We will run Ext2Gen-style training on our students with the same data and budget rather than compare across model families. No reported result was found on Lacuna for Breaking Focus's preference-trained recovery numbers, so we rerun that recipe ourselves.
The fifth is uniform context distillation: our loss with $w_t = 1$. The sixth is AdaKD applied to the same noisy-context setup, with its top-$r\%$ Hellinger focusing and temperature scaling and $r$ tuned on validation. AdaKD reports +1.27 to +1.60 ROUGE-L over uniform distillation on clean instruction suites. It is the strongest token-weighting competitor because it is the only method that already rejects uniform weighting.
Two ablations isolate the key ingredient. The first is random weighting with the same sparsity profile as ours. The second is a self-target variant that replaces the large teacher with the student's own clean-context distribution, which tests whether the big teacher contributes beyond denoising.
Beating the field means two things on the 0.6B and 1.7B students. Noisy-context accuracy must exceed both uniform distillation and AdaKD, with the margin outside the seed-to-seed spread across three seeds. Clean-context accuracy must not drop below the uniform baseline.
Why not just…?
Why not just prompt the model to ignore irrelevant text? Breaking Focus tested this directly and found it ineffective, with average drops above 45% persisting. Thinking in a Crowd shows that structured reasoning prompts can deepen rationalization. We include these prompts as baselines, but the prior evidence makes them a floor, not a threat.
Why not just filter or rerank the context upstream? Ext2Gen reports that in-generation evidence extraction beats separate compressors such as Recomp, CompAct and EXIT. Separate filters also lose information and add latency. Filtering also fails on SciAux's misleading snippets, which are topically relevant and so survive relevance filters. We report a reranker-plus-student pipeline on HotpotQA only as a sanity point.
Why not just use uniform context distillation, since its gradient already concentrates where the noise matters? This is the real threat. For self-distillation we expect it to be right, and we say so in the core claim. The 8B-to-8B arm is designed to confirm that uniform matches weighted there. The proposal survives only if the gap opens as the student shrinks. The student-size sweep settles this. If the curves stay flat, the weighting is not worth its extra forward pass, and we will report that.
Why not just use AdaKD's difficulty weighting? At initialization in self-distillation, AdaKD's score and ours coincide. In the cross-model case, our decomposition predicts that AdaKD's hardest tokens are dominated by capacity failures, such as facts the small student cannot recall. The token-share analysis measures this directly. If AdaKD's top tokens turn out to be mostly distraction tokens, our method reduces to AdaKD and the claim fails.
Why not just do preference optimization on clean versus distracted pairs? Preference training works (Breaking Focus, Ext2Gen), but it supplies one sequence-level signal per pair. Distillation supplies a full distribution at every token, which Prompt Distillation found far more data-efficient than hard targets. We test this by training both at 1k, 4k and 16k examples. If preference training matches us at small data, the distillation framing loses its main argument.
Proposed Experiments
The primary evaluation reports accuracy or exact match under noise on several test sets. These are HotpotQA distractor, SciAux under irrelevant and two-misleading-snippet conditions, and Ext2Gen's noisy-RAG set. Each is paired with clean-context accuracy, and the robustness gap is the difference between the two. On SciAux the reference point is Qwen3-8B's 96.22% clean versus 77.03% with two misleading snippets in thinking mode (Thinking in a Crowd). Our 8B self-distilled student should close much of that gap, and the small students are where the method must separate from uniform distillation.
For reasoning-mode students we also track thinking length under misleading context. A drop toward clean-context length would indicate the rationalization trap is being unlearned rather than masked.
Generalization is the decisive test against overfitting to one distractor style. We train only on HotpotQA and SciAux distractors, then test on the adaptive tree-search distractors of Breaking Focus over CommonsenseQA, MMLU and MATH-500, which the student never saw. This setting uses a distractor generator that by the file's account induced a 52% drop versus 15.2% for an older method. General capability is checked on MMLU, because Token Weighting for Long-Range Language Modeling found that sparse weighting can erode short-context performance.
Three outcomes would decide the question. The method is supported if three things hold: the advantage of distraction weighting over both uniform and AdaKD widens monotonically as the student shrinks while vanishing at 8B-to-8B; high-weight tokens show elevated attribution flow from distractor spans; and gains hold on the unseen tree-search distractors. It is refuted if uniform distillation matches it at every size, or if gains appear only on the training distractor types.
References
- Breaking Focus: Contextual Distraction Curse in Large Language Models
- Thinking in a Crowd: How Auxiliary Information Shapes LLM Reasoning
- Knowledge Injection via Prompt Distillation
- On-Policy Self-Distillation via Prompt Optimization
- Token Weighting for Long-Range Language Modeling
- LLM-Oriented Token-Adaptive Knowledge Distillation
- Aligning Extraction and Generation for Robust Retrieval-Augmented Generation
- Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering
- Improving Transformer-based Program Repair Model through False Behavior Diagnosis