Stale-Document Poisoning: When Outdated Retrieval Overrides Correct Model Answers
Organizations: University of Southern Denmark
Abstract
Retrieval-augmented generation (RAG) is often used to address outdated knowledge by providing external evidence. But retrieval helps only when that evidence is still valid. We identify a temporal alignment failure, stale-document poisoning, in which outdated evidence makes a model wrong despite answering correctly without retrieval. We construct a benchmark of 317 verified knowledge reversals across medicine, law, software, and platform policy, grounded in dated official sources. Across 12 models, recent medical reversals are harder than long-established ones. More importantly, outdated retrieval flips 30% of Llama and 37% of Qwen answers even without instructions to trust the document; explicit follow instructions raise these rates to 66% and 75%. Across four open models and four domains, poisoning ranges from 17-91%, while matched up-to-date evidence is followed in 97-100% of trials. To isolate temporal applicability, we keep the historical evidence unchanged across 50 reversals and vary only the evaluation date. A clear pattern emerges: dates alone produce only modest adaptation, but when models are explicitly told when the old evidence stops applying, the larger models switch to the appropriate answer almost perfectly. Causal interventions confirm that this validity information directly shapes the final decision. The same internal components also support broader comparison tasks, suggesting that temporal applicability can recruit a general reasoning mechanism used for other comparisons. Finally, a fixed recency-aware hybrid re-ranker reduces poisoning by 4.6-10.0 points when dates are accurate, with gains that depend on reliable temporal metadata. Reliable RAG therefore requires selective trust: models must determine not only what retrieved evidence says, but whether it still applies.
Figures & tables
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Recorded revision |
|---|---|
| Llama-3.1-8B-Instruct | d10aef7999a2 |
| Llama-3.1-70B-Instruct | d50656ee28e2 |
| Qwen2.5-7B-Instruct | a09a35458c70 |
| Qwen2.5-72B-Instruct | 495f39366efe |
| MedGemma-4B-IT | 290cda5eeccb |
| MedGemma-27B-Text-IT | 5b667cf2ddcf |
| Scope | Accuracy | Accuracy 95% CI | Macro-F1 | Macro-F1 95% CI | F1 tim | F1 sup | F1 unc | |
|---|---|---|---|---|---|---|---|---|
| Overall | 200 | 0.925 | [0.889, 0.959] | 0.894 | [0.836, 0.941] | 0.945 | 0.957 | 0.780 |
| Medicine | 50 | 0.960 | [0.904, 1.000] | 0.948 | [0.840, 1.000] | 0.960 | 0.974 | 0.909 |
| Law | 50 | 0.960 | [0.900, 1.000] | 0.917 | [0.788, 1.000] | 0.952 | 1.000 | 0.800 |
| Code | 50 | 0.940 | [0.875, 1.000] | 0.939 | [0.849, 1.000] | 0.947 | 1.000 | 0.870 |
| Policy | 50 | 0.840 | [0.745, 0.935] | 0.768 | [0.589, 0.898] | 0.923 | 0.848 | 0.533 |
| Automatic-judge label | |||
| Human reference label | Superseded | Unclear | Timely |
| Superseded | 67 | 4 | 1 |
| Unclear | 0 | 23 | 8 |
| Timely | 1 | 1 | 95 |
| Model | Settled | Recent (95% CI) | Gap | Fisher |
|---|---|---|---|---|
| Qwen2.5-7B | 0.97 | 0.61 [0.50,0.70] | +0.36 | 0.0000*** |
| Llama-3.1-8B | 1.00 | 0.64 [0.54,0.74] | +0.36 | 0.0000*** |
| Qwen2.5-72B | 0.97 | 0.70 [0.60,0.79] | +0.27 | 0.0011** |
| Llama-3.1-70B | 1.00 | 0.74 [0.63,0.82] | +0.26 | 0.0004*** |
| GPT-4o | 1.00 | 0.76 [0.66,0.84] | +0.24 | 0.0008*** |
| MedGemma-27B | 1.00 | 0.76 [0.66,0.84] | +0.24 | 0.0008*** |
| Model | Medicine | Law | Software/API | Platform policy |
|---|---|---|---|---|
| Qwen2.5-7B | 0.765 (39/51) | 0.618 (34/55) | 0.354 (17/48) | 0.541 (20/37) |
| Qwen2.5-72B | 0.855 (47/55) | 0.611 (33/54) | 0.250 (12/48) | 0.410 (16/39) |
| Llama-3.1-8B | 0.661 (37/56) | 0.200 (12/60) | 0.289 (11/38) | 0.417 (20/48) |
| Llama-3.1-70B | 0.906 (58/64) | 0.347 (26/75) | 0.167 (7/42) | 0.412 (21/51) |
| Model | Timely | Error recovery |
|---|---|---|
| Qwen-7B | 86/87 | 35/36 |
| Qwen-14B | 87/87 | 34/34 |
| Qwen-32B | 87/87 | 28/28 |
| Qwen-72B | 87/87 | 32/32 |
| Llama-8B | 86/87 | 32/33 |
| Llama-70B | 87/87 | 23/23 |
| Model | Date only | Prose boundary | Table boundary |
|---|---|---|---|
| Qwen-7B | |||
| Llama-8B | |||
| Qwen-72B | |||
| Llama-70B |
| Model/layer | Attention shift [95% CI] | MLP shift [95% CI] | Full residual trace |
|---|---|---|---|
| Llama-70B L31 | |||
| Llama-70B L39 | |||
| Qwen-72B L55 | |||
| Qwen-72B L59 |
| Model/layer | Temporal applicability | Date comparison | Numeric threshold |
|---|---|---|---|
| Qwen-72B L55 | (7.7%) | (6.2%) | (1.3%) |
| Qwen-72B L57 | (7.5%) | (3.8%) | (.5%) |
| Llama-70B L31 | (12.8%) | (7.6%) | (4.2%) |
| Llama-70B L35 | (14.8%) | (7.8%) | (5.4%) |
| Llama-70B L39 | (38.7%) | (36.4%) | (34.9%) |
| Model | Domain | Organic | Document only | Consider | Instructed | Exact | |
|---|---|---|---|---|---|---|---|
| Qwen-7B | Medicine | 50 | .360 | .600 | .680 | .760 | .0215 |
| Qwen-7B | Law | 55 | .436 | .473 | .600 | .618 | .1153 |
| Qwen-7B | Software/API | 48 | .292 | .271 | .250 | .354 | .3438 |
| Qwen-7B | Policy | 37 | .405 | .432 | .595 | .541 | .3438 |
| Llama-8B | Medicine | 53 | .302 | .340 | .453 | .660 | |
| Llama-8B | Law | 60 | .167 | .167 | .233 | .200 | .5000 |
| Llama-8B | Qwen-7B | |
|---|---|---|
| Items/observations | ||
| Strongest/neutral OR | ||
| Late-layer shift OR | ||
| Overall instruction |
| Condition | Qwen-7B | Llama-8B |
|---|---|---|
| Neutral header, no directive | .373 | .302 |
| “Most current,” no directive | .608 | .340 |
| Neutral header, follow directive | .745 | .660 |
| “Most current,” follow directive | .765 | .660 |
| Model | Document | C | S | U |
|---|---|---|---|---|
| Qwen-7B | Up-to-date | 86 | 0 | 1 |
| Outdated | 10 | 1 | 76 | |
| Llama-8B | Up-to-date | 48 | 39 | 0 |
| Outdated | 0 | 87 | 0 |
| Domain | Model | Correct dates | Dates absent |
|---|---|---|---|
| Law | Qwen-7B | ||
| Law | GPT-4o | ||
| Medicine | Qwen-7B | ||
| Medicine | GPT-4o |
| Component | Final setting | Values tried or selection rule |
|---|---|---|
| Behavioral generation | Temperature 0 for hosted models; greedy decoding for open-weight models; output limits 220 and 200 tokens, respectively | Fixed settings; no decoding sweep |
| Automatic judge | GPT-4o; three labels; option order set by stable item–condition hash; four-token output limit | Fixed protocol; no judge prompt selected on the evaluation outcomes |
| Decision-token probe | Last prompt token; standardized logistic regression, ; five-fold cross-validation; layer | Layer-sweep analysis evaluates all decoder layers; maximum cross-validated AUROC identifies the descriptive best layer |
| Surface baseline | TF–IDF, 1–2 grams, at most 4,000 features; logistic regression, | Fixed matched baseline |
| Steering intervention | Layer ; 50/50 train–held-out split; held-out cap 14; 20 random directions | , with as a positive control; all values reported |
| Causal patching | Decision-token residual; early, late, all-layer, and random late-layer controls | Early/late split fixed at ; every planned band reported |
RAG Poisoning Attacks
Retrieval-augmented generation (RAG) poisoning attacks manipulate retrieved knowledge to steer, degrade, or disrupt model outputs.
See all 70 papers