Entity normalization maps a phrase in text, such as "NSCLC" or "malignant tumor of the lung," to a single identifier in a curated vocabulary like MeSH or UMLS. Labeled examples are scarce for rare concepts and for non-English text, so a common fix is to ask a large language model (LLM) to write extra training sentences. This proposal argues that the teacher LLM hands two hidden things to the normalizer trained on its output. First, it hands over paraphrased copies of benchmark test examples it memorized from the web, which inflate scores. Second, it hands over its own default guess about who the patient is, which can make the normalizer's choice of identifier depend on the patient's gender, race, or age even when the medical meaning is the same.
We will measure both effects on standard biomedical normalization benchmarks. We will then test a generation procedure built against them. It writes synthetic contexts only from ontology entries. It chooses demographic attributes from an explicit distribution instead of letting the teacher pick them. And it removes synthetic items that match test items at the level of the whole mention–concept–context triple, not the word level. The central question is how much of the reported gain from LLM augmentation survives once leaked test content is removed, and whether augmentation makes normalizers more sensitive to demographic cues that should not matter.
Core Claim
We claim three things. LLM-generated training data for normalization contains rephrased benchmark test material that word-overlap filters miss. Part of the measured benefit of augmentation comes from that material. And synthetic contexts generated without demographic control increase the rate at which a context-aware normalizer changes its predicted identifier when only the patient's demographic description changes.
The proposal carries a result from one domain into two others. Rethinking Benchmark and Contamination for Language Models with Rephrased Samples showed that synthetic code data leaks benchmarks: 12.8% of CodeAlpaca was rephrased HumanEval. It also showed that n-gram filters cannot see such leaks. That work covered multiple-choice questions, math, and code. Nobody has asked whether augmented normalization data leaks test mentions, or whether the leak and demographic skew arrive through the same channel.
The demographic half draws on two sources. Bias Challenges in Counterfactual Data Augmentation proves that augmenters behave as "most-likely-context guessers" and drop rarer contexts. We read a teacher asked to "write a clinical sentence mentioning X" as exactly such a guesser about the patient. Elucidating Mechanisms of Demographic Bias in LLMs for Healthcare shows that clinical terms carry internal demographic signals that shift model predictions. It studies risk and diagnosis prediction, not normalization. Our work supplies the missing test on the normalization task itself.
Research Program
The program has three parts.
Measuring what the teacher knows. For each benchmark we test whether the teacher LLM has memorized the test documents. We give it the first half of a test abstract and ask it to continue. Separately, we give it a test mention with no surrounding context and ask for the gold identifier. These two probes estimate how much test content could possibly leak.
Building a counterfactual probe set. We take test mentions whose correct identifier is fixed by non-demographic context. We attach patient descriptions that vary gender, race, and age, including intersectional combinations. The gold identifier stays the same across variants. For every normalizer, the key quantity is the demographic flip rate: the fraction of probe pairs where the predicted identifier changes when only the demographic description changes.
This design has a known limit. For genuinely ambiguous abbreviations, demographic base rates can legitimately inform the answer. We therefore exclude items where two annotators judge that demographics bear on the answer, and we report those items separately. Probe templates are known to be sensitive to wording, as noted for FairBelief - Assessing Harmful Beliefs in Language Models and Uncovering Stereotypes in Large Language Models: A Task Complexity-based Approach. To address this, we use several paraphrased templates per attribute and report variance across them.
Constructing augmentation variants. We build four sets of synthetic training data that differ in one ingredient at a time.
The first is naive generation. The teacher writes contexts for each concept, prompted with in-domain example sentences.
The second is concept-anchored generation. The teacher sees only the ontology entry, meaning the concept's names and definition.
The third adds explicit demographic sampling. Each synthetic context is assigned gender, race, and age drawn from a stated distribution that covers intersectional groups. This follows the uncovered-subgroup targeting in MedEqualizer: A Framework Investigating Bias in Synthetic Medical Data and Mitigation via Augmentation, moved from tabular records to text.
The fourth adds triple-level decontamination. We reuse the embedding-retrieval-plus-LLM-judge detector from Rethinking Benchmark and Contamination for Language Models with Rephrased Samples, which reports F1 of 0.94–1.0 for detecting rephrased samples. Unlike that detector, we apply it to the (mention, identifier, context) triple, so a synthetic item counts as a leak if it restates a test item's grounding even in different words.
Models and evaluation splits. The normalizer trained on each variant is a two-step system. It first retrieves candidates and then reranks them with a cross-encoder that reads the surrounding context, as in xMEN: A Modular Toolkit for Cross-Lingual Medical Entity Normalization. We also evaluate BERN2 as an off-the-shelf reference.
Every model is scored on three evaluation views: the standard test split, a concept-disjoint split, and a rephrased test split. The concept-disjoint split removes the train–test redundancy that An analysis of entity normalization evaluation biases in specialized domains measured at 63.3% on the NCBI Disease Corpus. The rephrased test split works like MMLU-CF, whose rephrasing lowered accuracy by about 14% on average across 40+ models. We rephrase test contexts while keeping gold identifiers fixed.
The gap between the standard and rephrased views estimates score inflation from memorized surface text. The gap between the standard and concept-disjoint views reproduces the redundancy effect. Our decontamination should move the first gap and leave the second largely unchanged. If that pattern appears, the two effects are distinct.
Datasets. Experiments run on the NCBI Disease Corpus and MedMentions in English, and on QUAERO and BRONCO150 for the cross-lingual setting. Bacteria Biotope 4 serves as a non-clinical control in which demographics should be irrelevant. There, the flip rate should stay near zero.
Baselines
No augmentation. The reference point is the same retrieve-and-rerank normalizer trained only on the benchmark's real training data, with identical architecture, compute, and hyperparameter search. On the file's numbers, xMEN reaches F1@1 of 0.788 on QUAERO MEDLINE with its reranker, against 0.662 for candidate generation alone. Its reranker raises the BRONCO150 treatments category from 0.199 to 0.530. We reproduce these numbers before adding any synthetic data. For the NCBI Disease Corpus and MedMentions, no reported result found on Lacuna for a reranked normalizer's accuracy@1, so we establish our own.
Naive LLM augmentation. This is the strongest existing competitor on raw benchmark scores. It is the practice the proposal questions, closest in spirit to the weakly supervised synthetic training in xMEN and the LLM rewriting in Gender Swapping as a Data Augmentation Technique. It receives the same number of synthetic examples per concept and the same teacher model as our variants. Our method does not need to beat it on the standard split. It beats it if it matches or exceeds naive augmentation on the concept-disjoint and rephrased splits, while showing a significantly lower demographic flip rate under a paired permutation test.
Naive augmentation plus word-overlap decontamination. This baseline adds 13-gram overlap filtering against test documents to naive augmentation. It is the filter most pipelines use today.
Ablations. We compare concept-anchored generation with and without triple-level decontamination, and with and without explicit demographic sampling. These ablations isolate which ingredient moves which gap.
Post-hoc swapping. A further ablation replaces explicit demographic sampling with post-hoc counterfactual swapping of demographic words in naive synthetic data. This is the classical fix and the main threat to the demographic half of the proposal.
Why not just…?
Why not just evaluate on a concept-disjoint split and skip decontamination? A concept-disjoint split removes redundancy between the real training and test sets, as An analysis of entity normalization evaluation biases in specialized domains recommends. It does nothing about a teacher that reproduces the test abstract's own sentences for a test concept. Worse, the purpose of augmentation is to cover exactly those unseen concepts, so the leak concentrates on the concept-disjoint split. If the teacher probes show no memorization and naive and decontaminated augmentation score identically on the concept-disjoint split, this objection wins. We would then drop the contamination claim and report that result.
Why not just run the existing LLM decontaminator on synthetic data? We do. It is a component of our method, not a rival to it. The open question is what the detector should compare. On free text, a synthetic sentence that states the same mention-to-concept pair in a new clinical scenario may not look like a rephrase of the test item, yet it still teaches the test answer. The ablation of text-level against triple-level matching settles whether that distinction matters. If text-level matching removes the same leaks, we adopt the simpler version.
Why not just swap demographic words in the synthetic data afterward? This is a real threat. Swapping is cheap and may close most of the flip-rate gap. The theory in Bias Challenges in Counterfactual Data Augmentation predicts that swapping preserves the teacher's single guessed context, meaning the setting, comorbidities, and phrasing associated with the default patient. That leaves demographic correlations elsewhere in the sentence. The Ukrainian study found that rule-based swaps break grammatical agreement in inflected languages, which is relevant for our German and French corpora. Swapping is run as a matched ablation. If it matches explicit sampling on flip rate and on accuracy for intersectional groups, we recommend swapping.
Why not just rely on the teacher's safety alignment to avoid stereotyped contexts? Uncovering Stereotypes in Large Language Models: A Task Complexity-based Approach reports that guardrails weaken as tasks grow more complex. ChatGPT's refusal rate fell from 32.8% to 29.4% across complexity levels while stereotype variance widened. Bulk data generation is a complex, low-scrutiny task. We will nonetheless measure the demographic distribution of naive synthetic contexts directly rather than assume it is skewed.
Proposed Experiments
Experiment 1: Does demographic context move normalizers at all? We run the counterfactual probe set on the no-augmentation reranker and on BERN2. A flip rate indistinguishable from the Bacteria Biotope 4 control would make the demographic half moot. That result is itself worth reporting, because it would show that dense candidate retrieval is robust where the clinical prediction models in Elucidating Mechanisms of Demographic Bias in LLMs for Healthcare are not.
Experiment 2: Leak rate and inflation. We report the fraction of naive synthetic items flagged as triple-level leaks, alongside the teacher memorization probes. We then compare accuracy@1 on the three evaluation views for each augmentation variant. The decisive pattern is a gain on the standard split that shrinks on the rephrased split for naive augmentation but not for decontaminated augmentation.
Experiment 3: Flip rate and intersectional accuracy across variants. We compare the demographic flip rate and per-group accuracy, including intersectional groups, across augmentation variants. The decisive result is that explicit demographic sampling lowers the flip rate below both the naive and swapped variants, at no cost to concept-disjoint accuracy.
Experiment 4: Cross-lingual transfer. We repeat Experiments 2 and 3 on QUAERO and BRONCO150. We test whether translation-based augmentation of the kind xMEN uses carries the same leaks and defaults into French and German.
References
- Rethinking Benchmark and Contamination for Language Models with Rephrased Samples
- Bias Challenges in Counterfactual Data Augmentation
- Elucidating Mechanisms of Demographic Bias in LLMs for Healthcare
- FairBelief - Assessing Harmful Beliefs in Language Models
- Uncovering Stereotypes in Large Language Models: A Task Complexity-based Approach
- MedEqualizer: A Framework Investigating Bias in Synthetic Medical Data and Mitigation via Augmentation
- xMEN: a modular toolkit for cross-lingual medical entity normalization
- BERN2: an advanced neural biomedical named entity recognition and normalization tool
- An analysis of entity normalization evaluation biases in specialized domains
- MMLU-CF: A Contamination-free Multi-task Language Understanding Benchmark
- Gender Swapping as a Data Augmentation Technique: Developing Gender-Balanced Datasets for Ukrainian Language Processing