2026 Volume 1 Issue 1 Article ID: oa.2026-0005
Objective: In pharmacovigilance, coding free-text descriptions using the Medical Dictionary for Regulatory Activities (MedDRA) requires both accuracy and rapid response. This study aimed to extract query candidates for MedDRA/J searches from call center transcription texts and to determine whether a lightweight model could maintain search performance while reducing inference costs.
Methods: We defined keyphrase extraction (KPE) as a retrieval task and evaluated search effectiveness at the MedDRA/J lowest level term (LLT) level using normalized discounted cumulative gain at 20 (nDCG@20) and Recall@20. A proprietary dataset of 5219 routinely coded documents was temporally split into training, development, and test sets. Four models were compared: Base (MedGemma-4B), Base Large (MedGemma-27B), parameter-efficient fine-tuning with reinforcement learning (PEFT-RL), consisting of the 4B model optimized using quantized low-rank adaptation (QLoRA) and Group Relative Policy Optimization with retrieval-aligned rewards, and Distill KPE, a 132-million-parameter Japanese encoder distilled from PEFT-RL. The noninferiority of Distill KPE relative to PEFT-RL was assessed using a hierarchical bootstrap approach with a prespecified margin based on 90% retention of the teacher model’s improvement over Base.
Results: On the test set of 848 documents, nDCG@20 was 0.209 (95% confidence interval [CI], 0.179–0.238) for Base, 0.605 (95% CI, 0.587–0.623) for Base Large, 0.693 (95% CI, 0.674–0.711) for PEFT-RL, and 0.688 (95% CI, 0.667–0.708) for Distill KPE. The difference between Distill KPE and PEFT-RL was −0.0047 (95% CI, −0.0205 to 0.0116), meeting the noninferiority criterion with a margin of 0.0483. Distill KPE achieved median inference times of 0.025 seconds per document on a graphics processing unit (GPU) and 0.060 seconds on a central processing unit (CPU).
Conclusion: Retrieval-aligned PEFT-RL improved MedDRA/J search effectiveness beyond model scaling alone. Knowledge distillation largely preserved rank-weighted retrieval performance while substantially reducing model size and inference time, although its lower Recall@20 should be considered when evaluating operational deployment.