Stale Demonstrations: Detecting Outdated Few-Shot Examples Before They Poison Answer Synthesis

Large language models are often taught a task in the prompt by showing them a few worked examples, a practice called in-context learning. For question answering, those examples are question–answer pairs. Many were written years ago, and some of their answers are no longer true: an office has changed hands, a record has been broken, a team has a new coach. The format of such an example is still perfectly good. Only its facts have expired. This note asks two questions. Do these "stale" examples quietly push a model toward outdated answers when it writes long, multi-passage responses? And can the standard tools for cleaning noisy examples detect them at all? We suspect the most popular detector, which flags examples the model finds surprising, will fail in a predictable way. A frozen model learned the old fact during pretraining, so it should find the outdated example less surprising than the corrected one.

We propose a cheap test that does not rely on how familiar an example sounds. It asks whether an example's answer is better supported by up-to-date evidence than by the model's own memory. Flagged examples are then rewritten by an LLM, not discarded. In two sentences: few-shot prompts carry an unexamined kind of noise, namely facts that were once correct, and that noise is exactly the kind surprise-based filters are built to miss. We measure the damage on real temporal QA benchmarks and test an evidence-contrast detector against the strongest existing cleaners.

Core Claim

Work on noisy demonstrations treats noise as static labeling error. On the Noise Robustness of In-Context Learning for Text Generation shows that generation tasks, unlike classification, degrade badly under noisy examples, and that adding more examples makes this worse. Its fix, Local Perplexity Ranking (LPR), flags an example when the model finds it more surprising (higher perplexity) than its semantic neighbors. That paper supplies our main competitor and the method we expect to break.

Temporal QA work studies outdated facts in model weights or retrieved passages, but treats the prompt's examples as fixed. SituatedQA finds that about 16.5% of open-domain questions have answers that change over time. Mitigating Temporal Misalignment by Discarding Outdated Facts predicts how long a fact lasts in order to decide when to distrust the model's memory. Neither asks what happens when the examples themselves have expired.

Our claim has three parts.

First, stale examples transfer outdated facts into generated answers at a measurable rate. This "staleness contagion" is worse in multi-sentence synthesis than in short answers, because the model is being shown that answering from background knowledge is acceptable.

Second, LPR's assumption is backwards for this kind of noise. Expired facts align with what the model memorized, so they should receive lower perplexity than their corrected versions, and LPR will rank them as clean.

Third, a detector that contrasts the example's answer under fresh evidence against the same answer under no evidence will separate stale from current examples where LPR cannot.

Research Program

Building stale example pools from real data. We will not inject synthetic noise. Instead we construct example pools from benchmarks that already record how answers change over time.

SituatedQA pairs each question with answers valid at different times. An answer valid in an earlier year becomes a naturally stale example, and its current answer becomes the clean counterpart. This gives matched pairs that differ only in the expired fact.

RealTime QA contributes its 2,886 "past" QA pairs. These were correct on the week they were asked, so many are stale relative to its 1,470 real-time pairs.

Temporal Wiki and Unified Clark, from Question Answering under Temporal Conflict, provide long, chronologically conflicting entity histories. These are where abstractive synthesis gets hard: the answer must fuse several passages and select the current fact.

We control the stale fraction from 0% to 80%. LPR is reported to break above roughly 60–70% noise, so this range tests both its normal regime and its failure point.

The detector. For a candidate example with question $q$, answer $a$, and a freshly retrieved evidence passage $e$, we compute the evidence-contrast score

$$s(a) = \log p_\theta(a \mid q, e) - \log p_\theta(a \mid q),$$

where $p_\theta$ is the frozen model's likelihood. A current answer should gain likelihood when fresh evidence is added. An expired answer should lose likelihood, or gain less, because the evidence contradicts what the model memorized.

The score uses the model's memory bias as a signal instead of being fooled by it. That bias is the "parametric fallback" documented in RealTime QA and the "distraction effect" in Question Answering under Temporal Conflict.

We rank which examples to check using the predicted fact durations from Mitigating Temporal Misalignment, comparing each prediction against the example's age. This mirrors the cost-saving logic of NoiseAL, where cheap small models decide which items an expensive LLM should re-examine.

The repair step. Flagged examples are rewritten by an LLM conditioned on the fresh evidence. This follows the regenerate-rather-than-discard approach of Can Large Language Models Fix Data Annotation Errors?, which regenerated corrupted Debatepedia queries and raised cross-domain ROUGE-1 on MS MARCO from 45.1 to 47.6. Rewriting matters because discarding loses useful format signal, and the VariErr NLI results warn that blunt filtering removes legitimate content. That same paper also reports that open-ended regeneration can drift in vocabulary or hallucinate, so we audit every rewrite against its evidence.

A small mechanistic probe. In-Context Learning Creates Task Vectors shows that a prompt's examples compress into a compact internal "task vector" at intermediate layers. Patching that vector into a query-only run preserves 80–90% of few-shot accuracy, though only for single-token tasks.

On short-answer SituatedQA we will extract task vectors from clean prompts and from stale prompts, then patch each into identical query runs. If the stale vector alone raises the outdated-answer rate, staleness is carried as a disposition ("answer from memory") rather than only as copied content. That result would predict that repair must change the prompt's overall character, not just individual facts.

We treat this probe as exploratory, because the task-vector paper explicitly leaves long-form generation open. We will not extend it to long-form answers.

Models. We will use open-weight models at 8B and 70B scale, since computing perplexity requires access to likelihoods. The noise-robustness paper reports that perplexity-based cleaning becomes unreliable below about 7B, so we stay above that size.

Baselines

Zero-shot answering. The naive reference point is to give the model no examples. If zero-shot synthesis matches clean few-shot synthesis, examples are irrelevant and so is their staleness. Every other condition is reported relative to this, and it uses the same retrieval and the same model.

Uncleaned few-shot. This is the do-nothing cleaning condition: few-shot prompting with the contaminated pool. It quantifies contagion directly.

LPR. The strongest existing method is LPR, run exactly as specified in its paper. We use the same neighborhood size and the same candidate pool, and give it the same budget of likelihood evaluations as our detector. Its reported strength is on synthetic noise: on Natural Questions with 60% irrelevant noise and random example selection, it raised exact match from 28.21 to 42.00. We found no reported result on Lacuna for LPR or any other cleaner on temporally outdated examples. That number is therefore our reproduction target on Natural Questions, which we will first confirm, not a figure to beat on our data. Beating LPR means higher detection average precision on stale-versus-current examples and higher downstream current-fact accuracy at matched cost, across at least the 20–60% stale range.

Fact-duration-only cleaning. The duration classifier from Mitigating Temporal Misalignment flags an example when its age exceeds the predicted lifespan. That paper reports 20.5 exact match on SituatedQA with adaptive retrieval, using retrieval on 45% of queries. This baseline isolates whether a lifespan prior alone is enough without the evidence contrast.

Knowledge Organization (KO) with uncleaned examples. The strongest synthesis-side system is KO from Question Answering under Temporal Conflict, which reports 0.76 on Unified Clark against 0.43 for standard in-context learning with Llama 3.1 70B, and 81–83% on Temporal Wiki against 78% for standard RAG. We run KO with our example pool to see whether a structured pipeline already absorbs stale examples.

Ablations. Two ablations isolate the key ingredient. In the first, the score is replaced by the evidence-conditioned likelihood alone, without subtracting the no-evidence term. This tests whether the subtraction, the part that exploits memory bias, does the work. In the second, flagged examples are discarded instead of rewritten.

Why not just…?

Why not just use zero-shot prompting and avoid the problem? This is the most serious threat. If the synthesis benchmarks do not benefit from examples, the whole issue is moot. The noise-robustness paper's finding that more noisy examples hurt more implies the examples do carry signal for generation. Still, our first experiment measures the clean-few-shot over zero-shot gap on each benchmark, and we will report honestly where it is negligible.

Why not just keep only recent examples? This requires reliable timestamps on examples, which most curated pools lack. KO depends on explicit timestamps for the same reason. Even dated examples can hold durable facts that are fine to keep, or volatile facts that expired within weeks. We include a "most recent only" condition on RealTime QA, where dates exist, to measure what it costs in example diversity.

Why not just regenerate every example with fresh retrieval? Blanket regeneration is a real competitor. It serves as our upper bound on accuracy. The argument for detection rests on cost and on regeneration drift: the Debatepedia study notes vocabulary drift and hallucination from open-ended re-annotation, and Are Large Language Models Good Data Preprocessors? shows indiscriminate LLM cleaning often yields statistically insignificant gains. If blanket regeneration wins at comparable cost and without measurable drift, we will report that selective detection is unnecessary.

Why not just add today's date to the prompt? RealTime QA reports that adding the current date degraded closed-book models. SituatedQA shows models stumble on modifiers like "as of 2021." A date-prefixed condition is still included as a cheap baseline.

Why not steer activations toward the present, as TARDIS does? TARDIS shifts hidden states along a mean-difference direction between time periods, with gains of up to 19.2%. However, it was shown only on classification, and it cannot correct a specific wrong fact sitting in the prompt. We run it as a secondary baseline on short-answer SituatedQA only.

Proposed Experiments

Contagion. The first decisive check measures how often outdated answers appear as the stale fraction rises. Outputs are judged by an entailment check against the current gold answer and against the expired answer, and compared with matched clean prompts. We do not rely on surface-overlap scores, since EX-FEVER shows ROUGE fails to track factual consistency. If contagion is near zero, the proposal stops there.

Inversion. The second check tests the core mechanistic claim. On SituatedQA's matched stale/current pairs, we test whether the model assigns lower perplexity to the expired answer, and whether LPR's detection average precision falls toward or below chance as a result.

Detector comparison. The third check compares our evidence-contrast detector with LPR, the duration-only detector, and the ablations, scoring both detection average precision and downstream current-fact accuracy.

Long-form synthesis. We then run the full detect-and-rewrite pipeline on Temporal Wiki, Unified Clark, and SUMIE. SUMIE's human evaluation found 45% redundant and 25% unsupported values in incremental summaries, so we report redundancy and unsupported-claim rates alongside accuracy. The question is whether repaired examples close part of the gap between standard in-context learning and KO without KO's structured extraction.

Cost. Every comparison is reported at matched LLM-call budgets, so that cost and accuracy are judged together.