On the robustness of medical term representations in locally deployable language models

Read full text
Authors: Stephen Duncan Auger, Neil S N Graham, Gregory Scott
Cited by: 2
References: 10

Abstract

Structured Abstract Background Hosting large language models (LLMs) on-premises can secure patient data but requires compact architectures to function on standard hardware. The impact of such constraints on the robustness of their representations for medical terminology is important for clinical AI safety but poorly understood. The statistical nature of LLM training inherently limits the representation of terms with low societal prominence or lexical frequency, and high ambiguity. Methods We assessed 15 open-weights LLMs (4B–120B) for their representational robustness of 250 neurological terms. Neurology was chosen for its strict hierarchical and anatomical terminology. A term’s representation was deemed robust only if the model correctly navigated four tests, verifying valid links against distractors and reverse associations. We examined associations between representational robustness and model size, medical fine-tuning, and five terminological subdomains (localisation, clinical features, investigations, diagnoses, and treatments). We assessed term difficulty using the semantic complexity index (SCI), a novel composite integrating societal prominence, lexical frequency, and ambiguity. Results Representational robustness followed a log-linear scaling law relative to model size (r=0.736, p=0.002). Medical fine-tuning yielded no benefit for 4B models, but significantly improved larger 27B model performance, with rate of robust representations rising from 38.2% to 62.6% (p

Fields of Study & Subjects

Artificial Intelligence in Healthcare and Education Machine Learning in Healthcare Biomedical Text Mining and Ontologies

Publication details

Journal / source
medRxiv
Publisher
openRxiv
Publication date
26 February 2026
Document type
Preprint