TL;DR
This paper introduces BioLORD-2023, a novel biomedical language model that significantly improves semantic understanding of clinical text by integrating large language models (LLMs) with biomedical knowledge graphs. This new model achieves state-of-the-art performance on various clinical NLP tasks and offers a multilingual version to benefit a wider range of languages.
What Problem Does This Paper Address?
The field of clinical and biomedical natural language processing (NLP) faces a challenge in effectively combining the vast, structured knowledge from biomedical knowledge graphs (BKGs) with the impressive generalization capabilities of modern large language models (LLMs). While BKGs offer reliable, explainable insights, they often lack comprehensive definitions for many concepts. LLMs, on the other hand, excel at understanding and generating human-like text but can sometimes "hallucinate" or produce factually incorrect information, especially in specialized domains like medicine. Bridging this gap is crucial for applications like clinical decision support, patient diagnosis, and drug discovery. Existing models often struggle to balance domain-specific knowledge with general language understanding, leading to performance degradation in one or the other.
Methods
BioLORD-2023 employs a novel three-phase training strategy:
- Contrastive Phase: This phase leverages the "Learning of Ontological Representations through Definitions and textual representations" (LORD) strategy. It uses LLMs to generate definitions for biomedical concepts, enriching the training data. These LLM-generated definitions, along with existing BKG information (from UMLS and SNOMED-CT), are used to train the model to understand the semantic relationship between concept names and their definitions. An improved initialization strategy, adapting a base model to semantic textual similarity (STS) tasks, is also incorporated.
- Self-Distillation Phase: To address the performance degradation in general language understanding observed in previous models, a supervised self-distillation technique is introduced. This phase distills the knowledge acquired during the contrastive phase into a base model without the contrastive objective. It uses concept embeddings generated by the contrastive model as targets for a standard mean-squared-error loss, aiming to preserve existing knowledge while incorporating new biomedical insights. Principal Component Analysis (PCA) is used to reduce the embedding dimensionality for faster training.
- Weight-Averaging Phase: Inspired by the "model soups" approach, this phase involves averaging the weights of multiple models trained with different random seeds. This technique has been shown to improve accuracy and robustness without increasing inference time, making it particularly beneficial for retrieval-augmented generation (RAG) pipelines.
Additionally, a Cross-Lingual Distillation technique is used to create a multilingual version of BioLORD-2023 (BioLORD-2023-M). This involves distilling the knowledge from the English model into a multilingual language model (paraphrase-multilingual-mpnet-base-v2) using aligned corpora from SNOMED-CT.
Datasets
- Training Data:
- Unified Medical Language System (UMLS) knowledge graph.
- Systematized Nomenclature of Medicine - Clinical Terms (SNOMED-CT) ontology.
- LLM-generated definitions for approximately 400,000 biomedical concepts from the Automatic Glossary of Clinical Terminology (AGCT), generated using GPT-3.5 and SNOMED-CT.
- Aligned corpora for cross-lingual distillation, including languages like English, Spanish, French, German, Dutch, Danish, and Swedish.
- Evaluation Datasets:
- Clinical Semantic Textual Similarity (STS): MedSTS, MedNLI-S, BIOSSES, SICK, STS-Benchmark.
- Biomedical Concept Representation (BCR): EHR-RelB, UMNSRS-Similarity, UMNSRS-Relatedness, MayoSRS.
- Biomedical Named Entity Linking (NEL): TwiMed-Twitter, SMM4H, PsyTar, CADEC, TwiMed-PubMed.
- Multilingual NEL (XL-BEL): Specifically for German, Spanish, and English.
Key Insights and Ideas
- LLMs as Definition Generators: LLMs can effectively generate high-quality, fluent definitions for biomedical concepts, significantly augmenting the limited human-written definitions available in BKGs. This is crucial as only a small percentage of clinical concepts have readily available definitions.
- Balancing Domain Specialization and Generalization: The self-distillation phase is a key innovation for mitigating the performance degradation in general language understanding that often accompanies domain-specific fine-tuning. This "self-distillation" approach allows the model to retain its broader linguistic capabilities.
- Model Soups for Robustness: Averaging model weights (model soups) proves to be an effective strategy for enhancing robustness and performance without incurring additional computational costs during inference, which is critical for real-time applications.
- Cross-Lingual Distillation for Accessibility: The multilingual version of BioLORD-2023-M demonstrates that effective cross-lingual knowledge transfer is possible, making advanced biomedical NLP capabilities accessible to a wider range of languages, even with limited non-English training data.
Key Results
- State-of-the-Art Performance: BioLORD-2023 achieves state-of-the-art results across multiple benchmarks for clinical STS, BCR, and NEL tasks.
- For STS, it shows improvements such as MedSTS (86.3 to 88.3) and BIOSSES (84.0 to 86.1).
- For BCR, it demonstrates substantial gains, with EHR-Rel-B improving from 57.5 to 63.6.
- For NEL, it achieves an average score of 59.2, outperforming previous models.
- Improved Generalization: BioLORD-2023 maintains high performance on general-purpose STS tasks (e.g., STS-Benchmark from 86.5 to 87.8), indicating a successful trade-off between specialization and generalization.
- Multilingual Capabilities: BioLORD-2023-M shows comparable or superior performance to multilingual SapBERT on BCR and NEL tasks, and significantly outperforms it on English STS tasks, making it a strong choice for multilingual biomedical applications.
Limitations and Future Work
- Knowledge Graph Limitations: The model's knowledge is inherently limited by the information contained within the knowledge graphs used for prompting. This can be an issue for entities with sparse information, such as organisms and species, or for very recent discoveries not yet incorporated into BKGs.
- Future Directions:
- Integrating Recent Literature: Future versions could combine BKG information with recent biomedical literature to prompt LLMs, leading to more precise definitions for rare or specific concepts and incorporating the latest knowledge.
- Leveraging Larger STS Models: Exploring the application of the self-distillation phase to larger, potentially open-sourced STS models could further enhance capabilities.
- Document Retrieval Grounding: Investigating the impact of grounding document retrieval on generated definitions is a promising area for future study.
Summary updated