NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Teaching Models When Context Matters: Human-Audited Minimal Pairs for Distraction Robustness

Language models are easily thrown off by irrelevant text in their prompt. A single off-topic sentence added to a grade-school math problem can collapse accuracy, and reasoning models given misleading snippets will write longer chains of thought to justify them. The standard fix is to generate many "distracted" training examples automatically and train the model to ignore the extra text. This fix has two hidden failure modes. First, an automatically generated "distractor" sometimes is not irrelevant at all: it quietly changes the problem, so the training label is wrong. Second, a model rewarded only for ignoring extra text can learn to ignore context in general, which is harmful when the context is the reason the answer should change.

We propose training on minimal pairs. Each pair consists of two nearly identical added sentences: one that leaves the answer unchanged, and a small edit of it that does change the answer. Humans do one narrow job that machines do poorly. They audit whether the "irrelevant" member truly leaves the answer unchanged and whether the "relevant" member changes it in the stated way. The claim is that robustness to distraction is a discrimination skill, not an ignoring skill. A model trained on audited pairs should resist distractors as well as current methods while keeping its ability to use context that actually matters, which current methods do not measure.

Where this sits in prior work

Three lines of work synthesize noisy training data to robustify models, and all of them assume the noise is cleanly irrelevant. Making Retrieval-Augmented Language Models Robust to Irrelevant Context fine-tunes on about 1,000 automatically built Self-Ask examples that mix gold and noisy retrieved passages. Aligning Extraction and Generation for Robust Retrieval-Augmented Generation builds preference pairs from rollouts over contexts padded with up to 25 irrelevant chunks, scored by automatic metrics. Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search searches for the single sentence that most confuses a given model and then applies preference training (Direct Preference Optimization, DPO: training a model to prefer a chosen response over a rejected one). It reports average accuracy drops of over 45% from the attack and DPO gains of nearly 50% on perturbed inputs for some smaller models. That paper is the closest existing work and our strongest baseline. It states openly that nobody verified whether the generated distractors remain non-informative.

These three papers supply our generation method and motivate the gap. Our proposal differs from them in two ways. We add a contrastive twin whose correct answer differs, so the training signal says "read this and decide" rather than "skip this." We also add targeted human verification of the invariance property that defines a distractor.

On the human side, author-reviewer pipelines show that editing model drafts is much cheaper than writing from scratch: roughly 13 times more efficient in Building a Role Specified Open-Domain Dialogue System Leveraging Large-Scale Language Models. BrokenMath: A Benchmark for Sycophancy in Theorem Proving with LLMs is the nearest precedent for auditing perturbations. An IMO medalist checked that model-perturbed theorems were genuinely false rather than nonsense. BrokenMath used this audit only to build an evaluation set, and it reports that fine-tuning on non-sycophantic data helped only modestly. We take its review method, apply it to training data, and change what is being reviewed.

One result constrains the design. Thinking in a Crowd: How Auxiliary Information Shapes LLM Reasoning shows that thinking mode in Qwen3-8B falls from 96.22% clean to 77.03% with two misleading snippets. Any fix must therefore be evaluated on reasoning models with thinking enabled, not only on standard instruction-tuned models.

Core Claim

Training against distraction with automatically generated, unaudited distractors has two costs, and both are mostly invisible on current benchmarks, which score only distractor-resistance. The first is a nonzero rate of answer-altering "distractors," which become corrupted labels. The second is over-ignoring, which shows up as lost accuracy when added context is helpful or answer-changing. Human-audited minimal pairs should remove both costs at a human budget far below authoring.

The auditing is deliberately narrow. Program execution can verify arithmetic answer changes, much as ToolQA: A Dataset for LLM Question Answering with External Tools generates ground truths by running code. What programs cannot decide is the semantic question of whether a sentence such as "Tom's sister also bought three apples" is irrelevant or a new constraint. Humans review only that judgment, and only on items where an ensemble of model judges disagrees or is unsure.

Research Program

Building candidate distractors. We draw seed problems from the GSM8K training split, excluding the 100 base problems behind GSM-IC, and from the ScienceQA training split, excluding SciAux test questions. For each seed, we run Adaptive-Distraction-style error-guided search against the model being trained to find a strong distracting sentence. A generator then proposes a minimal edit of that sentence, changing as few words as possible so that it now bears on the answer. For GSM, the new answer is computed by executing a program written for the modified problem. For ScienceQA, the new answer is proposed by the generator and checked by reviewers.

Auditing the pairs. Three model judges label each member: does the irrelevant sentence leave the answer unchanged, and does the relevant twin yield the stated new answer. Every disputed item goes to a trained annotator, plus a random 10% of undisputed items for calibration. Reviewers accept, reject, or lightly edit. We log time per item so that cost can be compared against automated scaling.

Training. We train Qwen3-8B, with thinking both on and off, and Llama-3.1-8B, using the same DPO recipe as Adaptive Distraction. For the irrelevant member, the chosen response solves the original problem and the rejected response is the model's own distracted rollout. For the relevant twin, the chosen response uses the new information and the rejected response ignores it. The rejected response for the twin is the piece that directly penalizes over-ignoring.

Pilot measurement before any training. Annotators label 500 raw outputs of the automated search for whether they actually alter the answer, and we measure judge-human agreement. This is the first decisive check. If fewer than about 3% of distractors are invalid and the judges agree with humans on more than 95% of items, the human role collapses to calibration. The project then becomes "LLM-judged minimal pairs," and the contrastive twin is the only remaining claim.

Baselines

The naive reference is the untrained model under each test condition. We also include the same model with the instruction from Large Language Models Can Be Easily Distracted by Irrelevant Context, "Feel free to ignore irrelevant information given in the questions." That paper reports this instruction raises code-davinci-002 micro-accuracy on GSM-IC from 72.4% to 77.8%. We expect the instruction to raise distractor-resistance and possibly lower uptake of relevant context, so it doubles as a probe for over-ignoring.

The strongest competitor is Adaptive Distraction's DPO on automatically searched, unaudited distractors, the method of Adaptive Distraction. It is strongest because it already targets model-specific distractors and already reports large gains: nearly 50% on perturbed inputs in some smaller models. We reimplement it on our seeds with the same base models and the same DPO hyperparameter sweep. We test two data budgets. The first uses the same number of training pairs as our method. The second is cost-matched, giving the baseline as many additional automated examples as our human review time would have bought at the generator's compute price. Beating it means matching its accuracy under distraction within one point while improving relevant-twin accuracy by a margin that holds across three seeds. If it wins on cost-matched data, our method has failed.

For retrieval-style contexts, we compare against the SA-RetRobust recipe from Making Retrieval-Augmented Language Models Robust to Irrelevant Context at its reported scale of about 1,000 examples. This comparison is secondary.

Three ablations isolate the two ingredients. The first uses audited irrelevant members with no twin, isolating the contrastive twin. The second uses full pairs verified only by the model-judge ensemble with no humans, isolating human auditing. The third uses unverified pairs, isolating verification of any kind.

Why not just…?

Why not just let an LLM judge verify the distractors? This is the most serious threat, and the design treats it as a hypothesis rather than dismissing it. The judge-only ablation and the pilot agreement study settle it directly. Our prior that humans add value rests on the observation, raised in BrokenMath, that reviewers and models both miss plausible-but-wrong perturbations, and that models agree with their own prior errors. Judges built from the same model family as the generator may share its blind spots about what counts as "irrelevant." If judge-only pairs match human-audited pairs downstream, we report that and recommend the cheaper pipeline.

Why not just prompt the model to ignore irrelevant text? Adaptive Distraction reports that prompting gives almost no defense against searched distractors. BrokenMath's "be critical" prompt cut DeepSeek's sycophancy by 34% but left most of it in place. Prompting is run as a baseline anyway, and the relevant-twin test will show whether it buys resistance at the price of ignoring context.

Why not just keep scaling the existing automated DPO data? If label corruption is rare and over-ignoring does not occur, more automated data should win, and the cost-matched baseline is built to test exactly that. Our expectation is that additional data drawn from the same unaudited distribution cannot teach the model to pick up answer-changing context, because none of that data contains such context.

Why not sample many answers and vote? On GSM-IC, majority voting over 20 samples recovers the correct answer in 99.7% of cases, according to Large Language Models Can Be Easily Distracted by Irrelevant Context. The cost is twenty times the inference compute. Thinking in a Crowd also shows misleading context lengthens each reasoning trace. We report 20-sample voting as an upper reference with its token cost, not as a competitor at equal compute.

Proposed Experiments

Evaluation covers three regimes.

The first is resistance to distraction. We use GSM-IC micro and macro accuracy; the source paper reports macro accuracy often below 30%. We also run held-out Adaptive Distraction attacks searched freshly against each trained model on MMLU, CommonsenseQA and MATH-500, and SciAux's irrelevant and misleading snippet conditions. The comparison point is Qwen3-8B with thinking on and two misleading snippets, at 77.03% against a 96.22% clean baseline.

The second is use of context, which current benchmarks do not measure. We use SciAux's helpful-snippet condition; no reported per-condition helpful-snippet number found on Lacuna, beyond the note that thinking adds roughly 10–13% on clean inputs. We also use a held-out test set of human-audited answer-changing twins built from GSM8K and ScienceQA test seeds, disjoint from the training data. The headline metric is pair accuracy: the fraction of pairs where the model answers both members correctly. This metric rewards discrimination rather than blanket ignoring.

The third is transfer to misleading premises. We evaluate on BrokenMath sycophancy rates, where GPT-5 is sycophantic 29% of the time and DeepSeek-V3.1 70.2%, which tests whether discriminating context generalizes to rejecting false premises. For the thinking-mode models we also report reasoning-trace length under misleading context, since a reduced rationalization trap should appear as shorter traces.

Four results would decide the project. The pilot measures the invalid-distractor rate and judge-human agreement. The comparison of the Adaptive Distraction baseline against our method on relevant-twin accuracy shows whether over-ignoring exists and whether the twin fixes it. The judge-only ablation shows whether humans earn their cost. The cost-matched comparison shows whether the whole pipeline beats simply buying more automated data.