Systems that map patient language ("can't catch my breath") to standard medical codes ("dyspnea") are tested for robustness the way one tests a lock against a fixed set of picks. A list of perturbed mentions is built once, run through the model, and the accuracy drop is reported. Real pressure on these systems looks different. People evading content moderation, and slang that drifts in response to what gets flagged, behave like an adaptive adversary: an opponent who watches the system's actual past outputs and rewords the next input to get past it. Online learning theory has a sharp result here. Methods that work when the input sequence is fixed in advance (an oblivious adversary) can fail badly once the opponent reacts to the learner's realized choices. In that setting, any learner whose choices are predictable is exploitable.
We propose to bring that distinction into medical concept normalization and to build a defense that follows from it. The defense keeps a small pool of normalizers built on deliberately different word-embedding geometries: consumer-health embeddings, formal biomedical embeddings, ontology-pretrained encoders, and a lexical retriever. For each incoming mention it picks one normalizer at random, using private random choices that the adversary never sees, and it reweights the pool from occasional audited labels. The central claim is that this kind of embedding diversity buys robustness only against adaptive attackers, and only if the choice is randomized per query. A deterministic system gains nothing from the same diversity, whether it is one model, an averaged ensemble, or a model retrained on its own errors. How much robustness diversity buys can be measured directly as the value of a small matrix game, defined below.
Core Claim
Our main empirical hypothesis is that deterministic defenses which look robust under today's static attacks will degrade further once the attacker can query them adaptively. The static attacks we have in mind are the sibling-concatenation (LSEC) and embedding-ranking attacks of Evaluating the Robustness of Biomedical Concept Normalization. A per-query randomized pool over diverse geometries should degrade much less. The theory for this comes from two results. The first, Online learning over a finite action set with limited switching, shows that against an adaptive adversary, guarantees stated in expectation fail because the adversary attacks the realized action. It also shows that a learner unable to switch actions often enough cannot be competitive at all. The second, Online Prediction in Sub-linear Space, shows that beating an adaptive adversary requires memory linear in the number of options tracked. Together they dictate two design choices. Randomization must happen per query rather than per deployment cycle. And online learning should run over a handful of normalizers, never over the tens of thousands of target concepts.
The quantity that decides whether this works is easy to state. Let $R$ be the attacker's allowed perturbations: ontology-sibling concatenation, lay-term substitution, word-level edits, and typos, under a query budget. Let $M(\delta, i) \in \{0,1\}$ indicate whether perturbation $\delta$ fools normalizer $i$ on a given mention. Suppose the attacker sees past outputs but not the learner's random choices. Then the best success rate it can force against a pool that serves normalizer $i$ with probability $p_i$ is the game value
$$v = \min_{p} \max_{\delta \in R} \sum_{i} p_i \, M(\delta, i).$$
If perturbations transfer across embedding geometries, so that whatever fools one normalizer fools all, then $v$ equals the single-model failure rate and randomization is useless. If geometries disagree about which perturbations work, $v$ falls well below it. This makes the proposal falsifiable from its first experiment.
Research Program
The pool is built from components the literature already supplies, each playing a distinct geometric role. The consumer-dialect member follows Medical concept normalization in social media posts with recurrent neural networks. That paper combined attention-based recurrent networks with consumer-review embeddings (HealthVec) and literature embeddings (PubMedVec), and found the consumer embeddings better at colloquial phrasing. The ontology member follows Generalizing over Long Tail Concepts for Medical Term Normalization. That work pretrains encoders (PubMedBERT, CODER) on ontology term pairs before fine-tuning, which rescues concepts never seen in training. A text-to-text member follows Exploring a Unified Sequence-To-Sequence Transformer for Medical Product Safety Monitoring in Social Media, whose T5 model with task prefixes transferred across datasets better than BERT classifiers. A lexical BM25 retriever over ontology synonyms rounds out the pool, playing the coarse first-stage role it plays in Semantic Ranking for Automated Adversarial Technique Annotation in Security Text.
These papers supply the members. None of them considers an opponent, and we change none of their training. The open problem they leave, that formal and consumer embeddings each fail where the other succeeds, becomes the asset our method relies on.
The learner is an exponential-weights rule over the pool, run with partial feedback. Only a fraction $q$ of served mentions receive an audited gold code, mimicking a pharmacovigilance reviewer. Weights are updated with importance-weighted, implicitly-explored loss estimates, which give high-probability rather than expected regret bounds. The file stresses that this distinction matters against adaptive opponents. Because the pool has a small number $K$ of members, memory is trivial, and the standard high-probability regret relative to the best fixed member scales as roughly $\sqrt{TK\log K/q}$ over $T$ mentions. This bound is only bookkeeping. The substantive question is how close the learner's attacked error comes to $v$, and how far $v$ sits below each member's attacked error.
The attacker is a query-based, black-box adaptive search. It observes the system's past outputs for its own probes and then picks the next perturbation from $R$. The Online Prediction in Sub-linear Space paper lists exactly this intermediate regime, an adversary who sees past choices but not internal state, as unaddressed. We run it at several query budgets and compare against its oblivious counterpart, which commits to the same perturbation set without seeing any outputs.
Baselines
The naive reference point is the strongest single normalizer, deployed unchanged: ontology-pretrained then fine-tuned PubMedBERT (OP+FT). On SMM4H unseen concepts, Generalizing over Long Tail Concepts for Medical Term Normalization reports this approach raising accuracy from 0% under plain fine-tuning to 40%. As a calibration anchor for attack strength, Evaluating the Robustness of Biomedical Concept Normalization reports PubMedBERT F1 on NCBI disease falling from 0.853 to 0.580 under the static LSEC attack, and BioBERT from 0.859 to 0.582. Our reimplemented attack must reproduce a drop of that size before any adaptive result is trusted. For clean-data reference points on CADEC, Medical concept normalization in social media posts with recurrent neural networks reports 85.71% accuracy on the standard split and 70.05% on the disjoint-mention DisEntFolds split. No reported number was found on Lacuna for any concept normalizer under an adaptive, query-based attack.
The strongest competitor is the same OP+FT PubMedBERT with adversarial training. We fine-tune it on perturbations sampled from the same class $R$, with the same perturbation generator, data, GPU hours, and hyperparameter search budget that the pool members receive in total. This baseline matters because it is what a practitioner would actually do, and it may close most of the gap on its own.
Two further deterministic baselines each isolate one ingredient. The first is a static score-averaging ensemble of exactly our pool members. It has the same diversity but no randomness, so the attacker faces one combined target. The second is a retrain-on-audited-errors loop that updates a single model every $B$ mentions, which is the natural "online" deployment without hidden randomization.
The key ablation replaces our diverse pool with a same-geometry pool of $K$ PubMedBERT OP+FT models differing only in random seed. This separates the contribution of embedding diversity from that of randomization alone.
To count as a win, the randomized diverse pool must beat adversarially trained OP+FT on accuracy under adaptive attack at every query budget, by a margin larger than seed-to-seed variation across five runs. It must also stay within two points of that baseline's clean accuracy on CADEC, SMM4H, NCBI, and BC5CDR.
Why not just…?
Why not just adversarially train one strong model? This is the real threat to the proposal, and we treat it as such. The robustness study found that superficial invariance coexisted with collapse under structured sibling attacks (Evaluating the Robustness of Biomedical Concept Normalization). That suggests training on one perturbation family does not cover another, and an adaptive attacker can search for the uncovered family. Still, this is only suggestive. The adversarially trained baseline above, attacked by the same adaptive search after training, settles it. If it matches the pool, the proposal reduces to a recommendation for adversarial training, and we would report that. We also test the combination, a pool of adversarially trained diverse members, since the two ideas are not exclusive.
Why not just average the diverse models into one ensemble? Averaging keeps the diversity but makes the system deterministic. The limited-switching result (Online learning over a finite action set with limited switching) says adaptive opponents exploit any action they can predict. The static-ensemble baseline tests whether that carries over to text: the attacker needs only one perturbation that drags the averaged score, while against the randomized pool it must fool most members at once. The game value $v$ computed from the fooling matrix predicts which effect dominates before we run the full stream.
Why not just run standard online learning over the concepts themselves, or ask an LLM zero-shot? Exponential weights over tens of thousands of codes is ruled out on two counts: it needs linear memory in the number of options against adaptive opponents (Online Prediction in Sub-linear Space), and it throws away the embedding structure that handles unseen concepts. Zero-shot large models were roughly half as accurate as a specialized ranking pipeline on ontology mapping in Semantic Ranking for Automated Adversarial Technique Annotation in Security Text. They also add no hidden randomness. We include an LLM as an optional pool member only if its clean accuracy is competitive.
Proposed Experiments
The first and decisive experiment measures transfer. For each mention in CADEC (standard and DisEntFolds), the SMM4H normalization split, NCBI disease, and BC5CDR, we run the adaptive attacker against each member separately and record the full fooling matrix $M$. We then solve the small linear program for $v$, separately for the diverse pool and for the same-geometry seed pool. If $v$ for the diverse pool is not clearly below the best member's attacked error, the hypothesis fails at this point. The consumer-versus-formal dialect split documented with HealthVec and PubMedVec is our reason to expect a gap.
The second experiment runs the full stream. Mentions arrive in sequence, audit rates $q$ range from 5% to 50%, and the adaptive attacker competes with each defense. We report attacked accuracy@1 over time, the gap to $v$, high-probability regret against the best fixed member, and the attacker's success rate as a function of query budget.
The third experiment is the oblivious-versus-adaptive contrast. Every defense faces both the oblivious and the adaptive version of the same attacker. The quantity of interest is how much each defense loses when the attacker is allowed to adapt. We predict this loss is large for all deterministic baselines and small for the randomized pool.
The fourth experiment tests the switching prediction from theory. We restrict the pool to re-drawing its member only every $B$ mentions, for $B$ from 1 to 1,000. The limited-switching result predicts that attacked accuracy degrades toward the single-model level as $B$ grows. Observing that curve would show that the defense works through hidden per-query randomness and not through diversity alone.
Finally, we split results on CADEC and SMM4H into concepts seen and unseen during fine-tuning, following the long-tail protocol, to check that robustness gains do not come at the expense of rare concepts.
References
- Evaluating the Robustness of Biomedical Concept Normalization
- Online Learning over a Finite Action Set with Limited Switching
- Online Prediction in Sub-linear Space
- Medical concept normalization in social media posts with recurrent neural networks
- Generalizing over Long Tail Concepts for Medical Term Normalization
- Exploring a Unified Sequence-To-Sequence Transformer for Medical Product Safety Monitoring in Social Media
- Semantic Ranking for Automated Adversarial Technique Annotation in Security Text