Manuscript Offprint
arXiv:2610.06360Ontology Concept Overlap as a Training Signal: Knowledge-Grounded Reinforcement Learning for Clinical Question Answering
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Reinforcement learning post-training for language models relies on two reward designs: human preferences (RLHF, DPO) and binary verifiers (RLVR). Clinical question answering fits neither. Near-correct answers differ by a single substituted entity, and no executable check decides clinical correctness. We instantiate a soft verifier from a maintained controlled vocabulary: UMLS Concept Unique Identifier overlap (via scispaCy, set-level F1) gives a graded, externally specified reward computed without a model in the loop. We combine it inside GRPO with an entropy-normalised LLM judge, which covers the safety and evidence axes overlap cannot see, and a small consistency penalty on padding and repetition that keeps early-training samples scorable. This three-term composite improves over SFT on Phi-3-mini (3.8B) over MedQA by 2.9% on EM (0.700 vs 0.680) and 39% on Token-F1 (0.202 vs 0.145); on Llama-3.2-3B the corresponding gains are 14% on EM and 35% on Token-F1. We report Token-F1 as the primary metric because it credits partially-correct clinical content that EM discards at this open-generation scale. Main-table results are means over 3 seeds with standard deviations below 0.005. The method transfers to PubMedQA, where training on the PubMedQA train set with the same composite reward improves Token-F1 over SFT by 22% on Phi-3-mini and 17% on Llama-3.2-3B without retuning. A reward ablation on Phi-3, varying the judge-ontology split at a fixed consistency weight, attributes 3 EM points to the ontology term, the contribution that catches entity substitutions the judge cannot. Three negative findings constrain the design: DPO under random negatives underperforms SFT for strong-prior models but helps the weakest-prior one; PPO under a sparse neural reward diverges; GRPO with KL-in-loss collapses at 7B. The recipe is designed to transfer to any domain with a maintained controlled vocabulary, a generalisation we leave to future work.
CCS Concepts
• Computing methodologies → Natural language generation; Reinforcement learning; • Information systems → Question answering; • Applied computing → Health informatics.
Abhishek Jindal
Dhirubhai Ambani University
Gandhinagar, Gujarat, India
ACM Reference Format:
Aditya Tanna and Abhishek Jindal. 2026. Ontology Concept Overlap as a Training Signal: Knowledge-Grounded Reinforcement Learning for Clinical Question Answering. In Proceedings of the 35th ACM International Conference on Information and Knowledge Management (CIKM '26), November 07–11, 2026, Rome, Italy. ACM, New York, NY, USA, 5 pages. https://doi.org/10.1145/3799682.3840057
1 Introduction
Naming the right drug class but the wrong specific compound is a clinical error. Cross-entropy loss does not see the difference. It assigns the same penalty to “consider an anticoagulant” as to “warfarin” when the answer is “heparin.”
Reinforcement learning can reward correctness directly, but only when the reward signal measures correctness. The dominant designs do not fit clinical question answering. RLHF and DPO [12] rely on human-preference pairs; near-correct and correct clinical responses differ by a single substituted entity, and random-negative pairs do not capture that contrast [2]. RLVR [5, 9] replaces the reward model with a verifier, but no executable check decides whether “ceftriaxone” is the right empirical antibiotic for meningitis. Recent ontology-aware approaches [8] use UMLS knowledge graph paths as rewards for diagnostic reasoning, but require graph traversal that is brittle on noisy generations.
We propose to instantiate the verifier from a maintained ontology, scored at the concept level rather than via graph traversal. Where RLVR uses an executable check that returns a binary pass, ours is a soft verifier: it returns graded overlap against an external vocabulary, which suits a domain where correctness is a matter of degree and no exact check exists. The Unified Medical Language System (UMLS) [3] assigns Concept Unique Identifiers (CUIs) that collapse synonymous strings (“heart attack,” “myocardial infarction,” “MI”) onto one identifier and keep clinically distinct entities (“heparin,” “warfarin”) apart. CUI overlap between a generated and a reference response gives a graded, machine-checkable, externally specified reward. We compute it via scispaCy [10], pair it with an entropy-normalised LLM judge that covers safety and evidence axes overlap alone cannot capture, and run the composite reward inside GRPO [13].
Corresponding author
On Phi-3-mini (3.8B) over MedQA [6], the composite reward improves over SFT by 2.9% on EM (0.700 vs 0.680) and 39% on Token-F1 (0.202 vs 0.145); on Llama-3.2-3B the gains are 14% EM

This work is licensed under a Creative Commons Attribution 4.0 International License. CIKM '26, Rome, Italy © 2026 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-2539-5/2026/11 https://doi.org/10.1145/3799682.3840057
CIKM '26, November 07–11, 2026, Rome, Italy
Aditya Tanna and Abhishek Jindal
and 35% Token-F1, with main-table means computed over three seeds and standard deviations under 0.005. We treat Token-F1 as the primary metric: on open-ended clinical generation, EM discards a response that names the right entity inside a longer answer, whereas Token-F1 credits the overlapping clinical content (§3). The method transfers to PubMedQA [7]: under the same composite reward, GRPO improves Token-F1 over SFT by 22% on Phi-3-mini and 17% on Llama-3.2-3B without retuning the reward mixture. A reward ablation on Phi-3 attributes 3 EM points to the ontology term specifically: it catches entity substitutions (“penicillin G” for “ceftriaxone”) that the judge cannot distinguish from correct responses on fluency and evidence axes. Three negative findings constrain the design space.
Contributions. We instantiate a soft verifier from a curated ontology as a reward source for language-model RL, distinct from preference rewards, from binary RLVR checks, and from KG-path rewards [8] that require graph traversal; we run UMLS CUI overlap inside GRPO with an ablation that isolates the ontology component as responsible for entity-level corrections; we validate across model families and seeds and transfer to a second QA benchmark.
2 Method
2.1 Composite reward
For each (question q, generated response y, reference ) triple, the composite reward combines three terms:
with , , . The judge–CUI split between and is set by Spearman correlation against held-out EM (Appendix A); the small consistency weight is fixed rather than tuned. We found this mixture trained more stably than the judge–CUI pair alone: the consistency term suppresses the padding and repetition that the policy otherwise learns to exploit early in training, before the CUI signal has enough coherent generations to score.
Ontology component . scispaCy's EntityLinker extracts UMLS CUIs from both y and . With and the two CUI sets, the reward is set-level F1:
Synonymous expressions share a CUI; distinct clinical entities do not. The signal is graded in and computed without any model in the loop. Because the reward depends on naming the right entity rather than on surface fluency, we hypothesise it is harder to game by hedging or padding than a learned reward model; we leave an adversarial reward-hacking probe to future work. scispaCy's linker has precision-recall trade-offs (Appendix A); the calibration analysis shows the resulting noise is small enough that the gradient signal stays informative.
LLM-judge component . A frozen Phi-3-mini scores each response on four axes (clinical accuracy, terminology, evidence, safety) and returns a probability distribution over . We reward distributions concentrated on high scores via normalised entropy:
The judge covers safety and evidence axes that entity overlap cannot detect; its known gameability [14] means the ontology component must complement it rather than replace it.
Consistency component . A lightweight penalty on degenerate generations: it scores down responses that pad or repeat, computed from the rate of repeated n-grams in y and capped to [0, 1]. It uses no model and no reference. The term carries a small weight ( ) and does not encode clinical correctness; its job is to keep early-training samples coherent enough for the judge and CUI terms to score meaningfully, which is where the stability gain comes from.
2.2 GRPO with composite reward
We use Group Relative Policy Optimization [13] because it accepts sequence-level rewards without a value network. For prompt q with G sampled responses, group-normalised advantages are with the within-group mean. The clipped surrogate follows the standard form with , clip , samples at . PPO [11], by contrast, needs a value network to decompose one sequence-level reward into per-token advantages without per-step signal; §3.5 shows this fails for our reward, whereas GRPO's group normalisation keeps single-GPU training with episode-level rewards tractable. Figure 1 summarises the pipeline.
3 Experiments
3.1 Setup
Datasets. MedQA (USMLE 4-options) [6], 12,723 questions (10,178 train / 1,272 dev / 1,273 test). PubMedQA [7] for transfer evaluation. The 500 zero-shot outputs used for reward calibration (Appendix A) are drawn from the training split and are disjoint from the 500 held-out test questions used in all reported results; is never tuned on the evaluation set.
Models. Three families with LoRA (r=8, ): Phi-3-mini-4k [1] (3.8B), Qwen2.5-7B [16] (7B), and Llama-3.2-3B [4] (3B).
Training. Single A100 80GB, 2,000 steps, AdamW. GRPO LR (3B/3.8B), (7B). DPO , LR . SFT LR (3B/3.8B), (7B). Three seeds per (model, method): {42, 123, 456} control LoRA initialisation and the order of training examples; hyperparameters are fixed across seeds. Results are reported as mean and standard deviation.
DPO baseline construction. We sample rejected responses uniformly from MedQA's three incorrect options, the construction available from MCQ data without extra annotation. It is weakly contrastive: rejected responses are arbitrary wrong answers rather than near-miss confusables, which Azar et al. [2] predicted would degrade DPO. We keep it as a baseline because it is the off-the-shelf preference-pair construction practitioners use; §3.5 discusses the failure mode.
Multiple-choice to open-generation. We use MedQA's questions but train and evaluate on open-ended responses (the gold answer text, not the letter). This stresses entity-level evaluation: answering "B" is irrelevant; answering "ceftriaxone" or a paraphrase is what we score.
Evaluation. Greedy decoding on 500 held-out MedQA test questions and 500 PubMedQA questions. Metrics: Exact Match (EM),
Ontology Concept Overlap as a Training Signal:
Knowledge-Grounded Reinforcement Learning for Clinical Question Answering
CIKM '26, November 07–11, 2026, Rome, Italy

Figure 1: Composite-reward GRPO. The policy samples G=4 responses per question; each is scored by the frozen LLM judge, by UMLS CUI overlap against the reference, and by a consistency penalty on padding and repetition. The three terms are combined as in Eq. 1 (, , ). Group-normalised advantages update the LoRA adapter. Reference and judge remain frozen throughout training.
Table 1: MedQA test results (500 examples, greedy decoding). GRPO/SFT numbers are means over 3 seeds; standard deviations in subscript. DPO and Qwen2.5-7B SFT rows (no subscript) are single-seed runs. Bold = best per model per metric. Qwen2.5-7B GRPO collapsed across all configurations (§3.5).
| Model | Method | EM | Token F1 | SeqM |
|---|---|---|---|---|
| Phi-3-mini (3.8B) | Zero-shot | 0.560 | 0.070 | 0.132 |
| SFT | ||||
| DPO | 0.600 | 0.143 | 0.183 | |
| GRPO (ours) | ||||
| Qwen2.5-7B (7B) | Zero-shot | 0.565 | 0.126 | 0.170 |
| SFT | 0.775 | 0.134 | 0.162 | |
| DPO | 0.630 | 0.099 | 0.137 | |
| GRPO (ours) | KL-in-loss collapse, §3.5 | |||
| Llama-3.2-3B (3B) | Zero-shot | 0.405 | 0.070 | 0.122 |
| SFT | ||||
| DPO | 0.640 | 0.113 | 0.156 | |
| GRPO (ours) | ||||
Token F1, and Sequence Match (SeqM). We treat Token F1 as primary: EM scores a response zero unless it reproduces the gold answer verbatim, discarding answers that name the right entity inside a longer response. Because is not a big value, we report a paired bootstrap 95% CI (10,000 resamples) and a McNemar test on the key EM deltas alongside the cross-seed .
3.2 Main results
Table 1 reports MedQA test performance. On Phi-3-mini, the composite reward (GRPO) yields EM , Token-F1 , SeqM over 3 seeds, beating SFT on all three. The EM
Table 2: Reward component ablation on Phi-3-mini, means over 3 seeds
| Reward | EM | Token F1 | SeqM |
|---|---|---|---|
| Judge only (, ) | |||
| UMLS only (, ) | |||
| Composite (, ) |
gain is small in absolute terms (0.700 vs 0.680, +2.9%; bootstrap 95% CI [-0.03, 0.07], McNemar , n.s.); the Token-F1 gain is large (0.145 to 0.202, +39%; CI [0.03, 0.09]). The method moves correct clinical content into responses that EM still scores wrong for not matching the gold string verbatim, which is why we lead on Token-F1. The pattern reproduces on Llama-3.2-3B (+35% Token-F1, +14% EM). Cross-seed stays below 0.005 on every cell.
Qwen2.5-7B GRPO collapsed across all configurations (§3.5); SFT on Qwen2.5-7B reaches EM 0.775, higher than any GRPO result here, as supervised fine-tuning directly amplifies its strong medical priors. We therefore scope the contribution to the sizes where GRPO is stable (3B–3.8B): at 7B, plain SFT on a stronger base is the better choice on EM and the ontology reward offers no benefit it can deliver.
3.3 Reward ablation
Table 2 varies the two learned reward terms on Phi-3-mini, holding the consistency weight fixed at throughout; each row is over the same 3 seeds as the main table. Judge-only settles at EM 0.667. UMLS-only is noisier early, since CUI extraction on incoherent generations returns empty sets and gives no gradient, but it converges to 0.592. The full mixture scores highest on every metric. The judge-to-composite gap is 3 EM points, in line with the calibration result (Appendix A), where the composite tracks
CIKM '26, November 07–11, 2026, Rome, Italy
Aditya Tanna and Abhishek Jindal
EM more closely than either term on its own. We do not lean on those 3 points in isolation: at n=500 the paired test does not clear significance (McNemar p=0.18).
3.4 Transfer to PubMedQA
We train on the PubMedQA train set with the same composite reward, the same weights ( , , ), and the same prompt template as MedQA, and evaluate on 500 held-out PubMedQA test questions. Without retuning the reward mixture or the judge prompt, GRPO improves Token-F1 over SFT by 22% on Phi-3-mini (0.183 vs 0.150) and 17% on Llama-3.2-3B (0.142 vs 0.121). The transfer gain is smaller than the MedQA in-domain gain (39% / 35%) but consistently positive: the composite reward generalises beyond MedQA and is not a MedQA-specific artifact of the LLM judge prompt or the CUI overlap statistic.
3.5 Negative findings
DPO under random negatives is prior-dependent. On Phi-3-mini, DPO reaches EM 0.600 (8 below SFT); on Qwen2.5-7B, 0.630 (14 below). In both, training loss crashes toward zero near step 400 (Phi-3: 0.066; Qwen: 0.030) then recovers to a plateau, the signature of early reward hacking followed by mode collapse. The cause: rejected responses are MedQA's incorrect options sampled uniformly, so they are arbitrary wrong answers rather than near-miss confusables, and the contrast is weakly informative for a strong-prior model [2]. On Llama-3.2-3B (weakest prior), DPO at 0.640 exceeds SFT at 0.570: the value of a random negative depends on the model's baseline uncertainty.
PPO divergence under sparse neural rewards. PPO loss exceeded 28.9 by step 31 across all four configurations tried (LR , KL , max tokens ). The judge returns one scalar per sequence; PPO's value network must split it into per-token advantages with no per-step signal to fit, and the resulting baseline is miscalibrated enough to run away. We report this for our setup (single-GPU, batch size 1, sequence-level reward), not PPO in general; GRPO sidesteps it via within-group normalisation.
GRPO KL-in-loss collapse on Qwen2.5-7B. Across all configurations (LR ∈ {5×10⁻⁶, 10⁻⁶, 5×10⁻⁷}, βKL ∈ {0.01, 0.05}), Qwen2.5-7B GRPO collapses between steps 250 and 500. Tang and Munos [15] prove the KL-in-loss formulation has zero expected gradient under the off-policy updates induced by single-GPU batch-size-1 training; our 7B result is an empirical instance, while the 3B and 3.8B runs do not collapse under identical settings.
4 Discussion and limitations
The contribution is the form of the reward signal, which does not depend on the specific ontology. A reward of the form “set-level overlap of canonical identifiers extracted from generated and reference text, against a maintained vocabulary” applies wherever such a vocabulary exists. Plausible near-term targets include legal QA via statute and case-citation identifiers and scientific writing via MeSH or ChEBI terms. We have not tested any of these; the cross-domain claim is a hypothesis we have not yet evaluated. The overlap reward is graded and computable without a model in the loop; we also conjecture it is harder to game by fluency alone than a learned reward, though we have not tested this.
Comparison to KG-path rewards. Khatwani et al. [8] use UMLS knowledge graph traversal to score diagnostic reasoning. Our concept-overlap reward needs no traversal: it checks only that the right concepts appear, regardless of the path between them. This loses the reasoning-chain signal but gains robustness on the noisy generations that early-training policies produce, where graph paths are often unreachable.
What the reward does not measure. Concept overlap counts entities, not the order they appear in or the inferential structure connecting them. A response that names every right entity in nonsensical order still scores well. This is why the LLM judge stays in the composite. The general pattern is to pair an ontology signal (structured, externally specified) with a model signal (reasoning, safety, evidence) so each catches what the other misses.
Limitations. Three seeds across two model families gives a useful initial signal but falls short of a definitive variance estimate; the modest test set (n=500) is why we report bootstrap intervals rather than relying on point estimates, and the EM gains in particular are small enough that significance should be checked before they are leaned on. The reward ablation is on Phi-3-mini only; cross-model replication of the ablation is deferred. The single-GPU constraint kept us below 8B parameters; the KL-in-loss collapse at 7B is real but does not predict behavior at larger scales [15], and where SFT on a stronger base already wins (Qwen2.5-7B, EM 0.775) the method offers no advantage. The MedQA-to-PubMedQA transfer holds the language and ontology constant; cross-ontology transfer (UMLS to MeSH or ChEBI) is the natural next test.
A Reward calibration
Before training, we measured Spearman between each reward component and binary EM on 500 held-out zero-shot outputs (from the training split, disjoint from test). On Phi-3-mini, , , for the composite at the chosen judge-CUI split ( , , with fixed); the composite is strictly more predictive than either learned component alone, and the ordering holds on Qwen2.5-7B and Llama-3.2-3B. scispaCy's EntityLinker, on a labelled clinical sample, has precision 0.78 and recall 0.67; the calibration above already reflects that linker noise on model generations, which bounds the reward's validity.
GenAI Usage Disclosure
An LLM was used for light editing and revision of author-written prose (grammar, concision, and structural tightening); no section was produced wholesale by an LLM, and the authors take full responsibility for all claims and wording. No experimental results, tables, or numbers in this paper were produced by an LLM.
References
[1] Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Jianmin Bao, Harkirat Behl, Alon Benhaim, et al. 2024. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone. arXiv preprint arXiv:2404.14219 (2024).
[2] Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Rémi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. 2024. A General Theoretical Paradigm to Understand Learning from Human Preferences. In Proceedings of the
Ontology Concept Overlap as a Training Signal: Knowledge-Grounded Reinforcement Learning for Clinical Question Answering
CIKM '26, November 07–11, 2026, Rome, Italy
27th International Conference on Artificial Intelligence and Statistics (Proceedings of Machine Learning Research, Vol. 238). 4447–4455.
[3] Olivier Bodenreider. 2004. The Unified Medical Language System (UMLS): Integrating Biomedical Terminology. Nucleic Acids Research 32, suppl 1 (2004), D267–D270.
[4] Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, et al. 2024. The Llama 3 Herd of Models. arXiv preprint arXiv:2407.21783 (2024).
[5] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. 2025. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv preprint arXiv:2501.12948 (2025).
[6] Di Jin, Eileen Pan, Nassim Oufattole, Wei-Hung Weng, Hanyi Fang, and Peter Szolovits. 2021. What Disease Does This Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Exams. Applied Sciences 11, 14 (2021), 6421.
[7] Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William W. Cohen, and Xinghua Lu. 2019. PubMedQA: A Dataset for Biomedical Research Question Answering. In Proceedings of EMNLP-IJCNLP.
[8] Saksham Khatwani, He Cheng, Majid Afshar, Dmitriy Dligach, and Yanjun Gao. 2025. Brittleness and Promise: Knowledge Graph-Based Reward Modeling for Diagnostic Reasoning. arXiv:2509.18316 [cs.CL] https://arxiv.org/abs/2509.18316
[9] Nathan Lambert, Jacob Morrison, Valentina Pyatkin, Shengyi Huang, Hamish Ivison, Faeze Brahman, Lester James V. Miranda, Alisa Liu, Nouha Dziri, et al. 2024. Tülu 3: Pushing Frontiers in Open Language Model Post-Training. arXiv
preprint arXiv:2411.15124 (2024).
[10] Mark Neumann, Daniel King, Iz Beltagy, and Waleed Ammar. 2019. scispaCy: Fast and Robust Models for Biomedical Natural Language Processing. In Proceedings of the 18th BioNLP Workshop and Shared Task. 319–327. doi:10.18653/v1/W19-5034
[11] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training Language Models to Follow Instructions with Human Feedback. In Advances in Neural Information Processing Systems, Vol. 35.
[12] Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. 2023. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. In Advances in Neural Information Processing Systems, Vol. 36.
[13] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y.K. Li, Yang Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300 (2024).
[14] Prasann Singhal, Tanya Goyal, Jiacheng Xu, and Greg Durrett. 2024. A Long Way to Go: Investigating Length Correlations in RLHF. In Proceedings of the 1st Conference on Language Modeling.
[15] Yunhao Tang and Rémi Munos. 2025. On a few pitfalls in KL divergence gradient estimation for RL. arXiv preprint arXiv:2506.09477 (2025).
[16] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, et al. 2024. Qwen2.5 Technical Report. arXiv preprint arXiv:2412.15115 (2024).