Large language models (LLMs) excel at understanding text, but they often stumble when linking biomedical terms to their standard codes, such as those in the Human Phenotype Ontology (HPO). This mistake can jeopardize critical applications, from precision medicine to clinical decision support. Researchers found that a model’s “prior knowledge,” acquired during pre‑training, is the key factor in predicting whether fine‑tuning will boost accuracy.
Three ways to gauge this knowledge: (1) latent probabilistic knowledge, revealed by stochastic prompting; (2) partial sub‑token knowledge, the ability to generate correct fragments of an identifier; (3) term familiarity, estimated from how often the term appears in biomedical literature. Results show that terms with intermediate knowledge—the “reactive middle zone”—show the most variation after fine‑tuning: some improve dramatically, others worsen. When partial sub‑token knowledge is weak or medium, or latent probabilistic knowledge is unknown or weak, fine‑tuning yields the biggest gains. In short, the success of knowledge injection hinges on how much the model already knows about term‑identifier pairs before being fine‑tuned.
