When Rare Facts Look Like Noise: Testing Whether Context Filtering Erases Population-Specific Medical Knowledge

Large language models are increasingly asked to reason over long, messy clinical contexts — a patient's multi-page record, retrieved guidelines, lab notes — and two failure modes are now well documented separately. First, irrelevant context makes models hallucinate: they force answers, misread narrative details as clinical requirements, and bury numerical reasoning, a problem studied as "contextual distraction" Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding; Aligning Extraction and Generation for Robust Retrieval-Augmented Generation; Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering. Second, clinical rules and genetic risk models are not portable across populations: tag SNPs decouple from causal variants across ancestries, allele frequencies diverge, and demographic shifts break predictive models, as established in the trans-ancestry genetics literature African Ancestry Anthropometry Genetics Consortium; Improving genetic risk prediction across diverse population by disentangling ancestry representations; A Causal Framework for Mitigating Data Shifts in Healthcare. This proposal is about the dangerous point where these two failures meet.

The core worry is simple to state. To fight distraction, the field is converging on context filtering — compression, banded retrieval, extract-then-generate training — that discards text deemed irrelevant by similarity or frequency signals. But the facts that make a clinical decision correct for a minority patient are precisely the rare, low-frequency, long-tail facts: a pharmacogenomic variant discussed in only one paper, an ancestry-specific allele frequency below 5%, a deprecated race-adjusted formula. To a similarity-based filter, these look like noise. If the filter removes them, the model does not abstain; it hallucinates the majority-population default — the European-derived formula, the standard dosage, the average allele frequency — and produces a fluent, confident, plausible answer that is wrong for this patient. No current evaluation metric would catch it, because lexical and semantic metrics score such an answer as nearly correct.

Core Claim

I claim three things, each currently untested. First, contextual noise and context filtering interact asymmetrically with population-specific medical knowledge: as noise grows and filtering tightens, models increasingly apply majority-population clinical rules to patients whose ancestry, genetics, or demographics require a different rule — a failure mode I will call majority-default hallucination. Second, this failure is invisible to existing hallucination safeguards and evaluation metrics: semantic-equivalence detectors built on ROUGE or natural-language inference treat "standard dosage" and "50% dose reduction for this metabolizer status" as related, and step-wise clinical metrics have no step that verifies whether a rule applies to this patient at all. Third, the fix is not more context or less filtering but targeted protection: spans carrying population modifiers (star alleles, rsIDs, ancestry terms, race-free equation revisions) must be exempt from compression and must be resolved by an explicit applicability check before any calculation runs.

The closest existing work is From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations, which evaluates medical calculations through a four-step pipeline (Formula Selection, Value Extraction, Calculation, Final Answer) and builds MedRaC, an agent that retrieves canonical formulas and executes them in Python. It is the strongest prior intersection of domain-specific metrics, noise, and hallucination, and I build directly on its step-wise scoring. But it never varies the patient's population, never injects controlled noise, and its error taxonomy treats demographic adjustment as one error among many rather than a verification step. Everything in this proposal — the demographic perturbation axis, the graded noise axis, the applicability step, the protected-span mechanism — is absent from it and from the other intersection papers, which handle noise only on open-domain QA Aligning Extraction and Generation for Robust Retrieval-Augmented Generation or population shift only on tabular SNP data Improving genetic risk prediction across diverse population by disentangling ancestry representations.

Research Program

The program has three parts: a benchmark, a metric, and a mechanism.

The benchmark, which I will call PopCalc-Noise, extends MedCalc-Bench MedCalc-Bench: Evaluating Large Language Models for Medical Calculations — 55 calculation tasks over 1,047 clinical instances derived from open patient records — along two orthogonal axes. The population axis rewrites patient profiles so that the correct answer depends on a population-specific modifier: an ancestry-dependent allele frequency or LD structure drawn from the genetics literature African Ancestry Anthropometry Genetics Consortium; Performance of genetic risk factors in prediction of trichloroethylene induced hypersensitivity syndrome, a pharmacogenomic metabolizer status affecting dose, or a guideline whose parameterization differs by cohort. Crucially, every instance is paired with a majority-population twin: the identical note with the modifier removed or replaced by the majority value, whose correct answer differs. This pairing lets us measure, per model and per condition, the rate at which errors take the specific form of applying the majority rule to the minority patient. The noise axis injects graded distraction into the context window in the styles already validated in the literature: irrelevant retrieved chunks at increasing ratios, as in Ext2Gen's mixtures of up to 25 noise chunks Aligning Extraction and Generation for Robust Retrieval-Augmented Generation; decoy guidelines for the wrong population, which are fluent, topically on-target, and semantically similar to the correct one — the hardest and most clinically realistic noise; and prompt bloat in the style that caused a 28% drop in completion steps on agentic bioinformatics tasks BioAgent Bench: An AI Agent Evaluation Suite for Bioinformatics.

The metric extends the four-step pipeline of From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations with a fifth, preceding step: Applicability Verification — did the model establish, before selecting a formula or rule, that the rule is valid for this patient's population, ancestry, or genotype? The step-wise score then reports two headline numbers: the step-wise accuracy across all five steps, and the population robustness gap, the difference in full-pipeline accuracy between majority twins and minority-modified instances. The gap is the diagnostic quantity: a model can look healthy on aggregate while silently failing only its minority patients. This design follows the lesson of the radiology metrics literature, where BLEU-style scores rewarded fluent hallucinated reports and only structured entity-relation scoring (RadGraph F1, and the composite RadCliQ with Kendall-tau b = 0.522 against radiologist error counts) exposed the failures Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation — and where state-of-the-art generative models turned out to be only 5.5% better than a random retrieval baseline once measured properly.

The mechanism, modifier-protected retrieval, is the intervention. A lightweight recognizer — reusing the relation-extraction machinery of PGxMine, which normalized rsIDs and star alleles in pharmacogenomic text at scale PGxMine: Text mining for curation of PharmGKB — tags spans containing population modifiers. Any downstream compression, retrieval band, or extract-then-generate filter must retain them regardless of similarity score; and before calculation, the model is forced through an explicit applicability resolution step in the style of MedRaC's tool-grounded execution, but where the tool verifies rule-population applicability rather than arithmetic. The design is honest about the tension that motivates it: PGxMine found that 75.6% of unique pharmacogenomic associations appear in only a single paper, and the African-ancestry fine-mapping work found causal variants at minor allele frequency below 5% African Ancestry Anthropometry Genetics Consortium — exactly the statistical profile that similarity- and frequency-based filters treat as noise.

Proposed Experiments

Experiment one measures the dose-response curve. On PopCalc-Noise, I run GPT-4o and Llama-3.1-8B-Instruct under increasing noise ratios (0, 5, 10, 25 irrelevant or decoy chunks, plus lost-in-the-middle reordering), scoring with the five-step metric. The hypothesis is that the population robustness gap widens with noise faster than aggregate accuracy falls — that noise does not degrade all patients equally but preferentially erases minority-relevant reasoning. The prediction is grounded in what From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations already showed: GPT-4o's accuracy dropped from 62.7% to 43.6% when final-answer tolerance scoring was replaced by step-wise scoring, so there is headroom of roughly 19 points of hidden intermediate failure in which demographic adjustment errors can concentrate. MedCalc-Bench: Evaluating Large Language Models for Medical Calculations reports GPT-4 at 50.9% in one-shot chain-of-thought and only 20.8% in zero-shot direct prompting, confirming the task family is hard enough to expose failure structure.

Experiment two is the compression test, and it is the decisive one for the core claim. I run a similarity-banded retriever in the style of LDAR Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding and an extract-then-generate filter in the style of Ext2Gen over the noisy contexts, and measure how often the population modifier survives into the model's input. The hypothesis is that decoy majority-population guidelines, being more similar to the query and more frequent in the corpus, are retained while the single-paper, low-frequency minority modifier is filtered out, raising the majority-default hallucination rate. Note that this experiment uses these methods as stress tests, not as straw men: LDAR was evaluated on general knowledge benchmarks (LaRA, HELMET, Ada-LEval) where no fact has minority-population importance, and Ext2Gen on open-domain QA — neither was ever asked to preserve long-tail demographic facts, which is precisely the untested question. The same run then activates modifier-protected retrieval and asks how much of the induced gap it recovers at what token cost.

Experiment three asks whether existing hallucination safeguards would have caught any of this. I run TRAC-style conformal prediction TRAC: Trustworthy Retrieval Augmented Chatbot on the decoy-noise subset. TRAC's coverage guarantees are defined over semantic-equivalence sets built from ROUGE and NLI, and the file itself flags that such equivalence is insensitive to clinical negation and subtle numerical alteration; my prediction is that majority-default answers sit comfortably inside conformal prediction sets, so abstention machinery provides no protection here. As a second safeguard check, I probe consistency in the spirit of cross-examination work on fabricated statements Ayush Agrawal et al., and against the backdrop that guideline-consistency evaluation already found huge reliability variance across models and prompts (Fleiss Kappa from −0.002 to 0.984) Prompt engineering in consistency and reliability with the evidence-based guideline for LLMs, I expect self-consistency probing to be equally uninformative about applicability errors, because the model is consistently and confidently wrong in the same majority-default direction.

Experiment four validates the benchmark itself: a clinician or trained annotator study on a stratified sample, checking that (a) majority-default errors are judged as clinically serious, not as paraphrase-level differences, and (b) inter-annotator agreement on the applicability step is acceptable — the radiology-metric work cautions that expert disagreement is real and must be reported rather than assumed away Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation.

Baselines

The naive reference point is the do-nothing setting: the unmodified model reading the full noisy context with standard prompting, scored by final-answer tolerance at ±5%, exactly as MedCalc-Bench originally scored it. On that yardstick MedCalc-Bench: Evaluating Large Language Models for Medical Calculations reports GPT-4 at 50.9% in one-shot chain-of-thought — but the same task family under step-wise scoring drops GPT-4o from 62.7% to 43.6% From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations, so the naive score overstates correctness by roughly 19 points and cannot see applicability errors at all. Beating this baseline is necessary but says little.

The strongest existing competitor is MedRaC itself From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations, the agent that retrieves canonical formulas and executes calculations in Python, which lifted Phi-4-mini from 16.35% to 53.19% and cut arithmetic errors by 83%. It will be run on PopCalc-Noise verbatim — same retrieval corpus, same tool execution, same compute and tuning budget as my modifier-protected variant, differing only in the protected-span tagging and the applicability-resolution step. The fair comparison is therefore an ablation of my proposal against its closest ancestor: MedRaC plus a majority-twin-only corpus would be the exact system prior work implies. Beating MedRaC means closing the population robustness gap it leaves open — reducing majority-default hallucination rate on minority-modified instances by a margin well outside the seed-variance interval, at no more than its token cost — not merely matching its aggregate accuracy, since MedRaC may already score well on majority twins while failing silently on the modified ones. For the retrieval side, the strongest competitor is a similarity-banded retriever in the LDAR style, which outperformed full 128k-context baselines using 25%–63% of the tokens Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding; beating it means achieving its token efficiency while retaining minority-modifier recall, measured directly as modifier survival rate into the model input.

The key-ingredient ablation isolates the two components of my mechanism separately: protected spans without the applicability step (does retention alone help, or does the model still ignore retained modifiers?), and the applicability step without span protection (does forced verification help when the filter has already deleted the fact it should verify?). The core claim predicts both ablations underperform the combination, and the second ablation is where I expect the honest failure mode: if the model cannot verify what it never saw, the mechanism lives or dies on retention.

Why not just…?

Why not just use a frontier model with a full context window? The material directly contradicts the assumption that capacity solves distraction. Long-context performance follows an inverted-U curve, with accuracy falling past a threshold as context grows Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding; frontier models' step-wise clinical accuracy collapses once evaluation looks past the final answer From Scores to Steps: Diagnosing and Improving LLM Performance in Evidence-Based Medical Calculations; and even the best agents on BioAgent Bench suffered a 28% drop in completed steps under prompt bloat, with some tasks failing outright BioAgent Bench: An AI Agent Evaluation Suite for Bioinformatics. Experiment one includes the full-context frontier setting as an explicit condition, so if a frontier model at 128k tokens holds the population robustness gap flat under maximal noise, the proposal's premise is falsified by its own experiment — and I would report that.

Why not just fine-tune a medical LLM on genomic and pharmacogenomic literature? The file gives three reasons to doubt this. Medical-domain pre-training did not translate into extraction or arithmetic precision — domain models like MEDITRON-70B struggled in zero-shot calculation settings where general models did better MedCalc-Bench: Evaluating Large Language Models for Medical Calculations. Fine-tuned GPT-3.5 variants failed to consistently beat prompting baselines and sometimes degraded Prompt engineering in consistency and reliability with the evidence-based guideline for LLMs. And supervised readers overfit their training distributions and collapse under shift Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering. More fundamentally, fine-tuning encodes population facts into weights but cannot fix the retrieval problem — if the filter deletes the modifier from the context, parametric knowledge of rare variants is exactly what the model was shown to override in distraction studies. A small fine-tuning arm in experiment two will test this directly rather than argue it.

Why not just use conformal prediction or abstention to guarantee correctness? This is the most serious alternative, and I treat it as such rather than dismissing it. TRAC does provide distribution-free coverage guarantees for RAG outputs TRAC: Trustworthy Retrieval Augmented Chatbot, but its guarantee is only as strong as its semantic-equivalence definition, which is built on ROUGE and NLI — the same family of metrics shown to miss single-word negations that flip diagnostic truth Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation. A majority-default answer is a near-paraphrase of the minority-correct answer, so it will land inside the prediction set. Experiment three is designed to settle this empirically: if conformal sets on PopCalc-Noise do in fact reject majority-default answers at the nominal rate, abstention plus a wider set is a cheaper solution than protected retrieval, and the proposal should yield to it. What abstention still cannot do is tell you why the answer is uncertain or fix the input that caused it, which is where the protected-span mechanism retains value even in that outcome.

Why not just evaluate with ROUGE/BLEU plus a domain metric like RadGraph F1? These metrics address hallucination in generated reports, and RadGraph F1 is a genuine improvement over lexical scoring Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation. But they are output-similarity metrics against a reference; they cannot represent the population axis at all, because the majority-default answer and the minority-correct answer differ by a modifier that is exactly the kind of entity-level nuance graph parsers misalign in complex contexts — a limitation the file itself flags. The step-wise applicability metric is designed for decisions where there is no reference report, only a reference rule-population pairing, which no metric in the file covers.

Decisive Checks and Closing

The proposal succeeds if three results hold: the population robustness gap widens with noise on PopCalc-Noise; similarity-based filtering measurably deletes minority modifiers while retaining majority decoys, with a quantified majority-default hallucination rate attributable to that deletion; and modifier-protected retrieval with the applicability step recovers most of the gap at token cost comparable to banded retrieval. It fails informatively if the gap never widens under noise (distraction and population sensitivity are then independent problems, and the intersection is not worth this mechanism), or if filtering retains rare modifiers as well as it retains frequent ones (the long-tail tension is then weaker in practice than the singleton statistics of PGxMine: Text mining for curation of PharmGKB suggest). Either outcome is publishable as a measurement, because the population axis is absent from every noise-robustness study in the file and the noise axis is absent from every population-generalizability study — the survey literature on hallucination Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Models categorizes fact-conflicting and input-conflicting errors but has no category for population-conflicting ones, and filling that category with a benchmark, a metric, and a mechanism is what this proposal does. No reported result found on Lacuna for any method's accuracy on ancestry-conditioned clinical calculation under injected noise — which is the point.