TL;DR
Researchers from the University of Edinburgh demonstrate that while GPT-4 remains the gold standard for clinical natural language inference (NLI), smaller open-source models can be significantly improved through a novel parameter-efficient fine-tuning (PEFT) strategy. By merging two LoRA adapters—one trained on language modeling and another on a supervised triplet loss—they achieved a substantial boost in model consistency and F1 scores, though GPT-4 still leads in overall faithfulness.
What Problem Does This Paper Address?
Extracting insights from Clinical Trial Reports (CTRs) is essential for personalized medicine, but the sheer volume of data makes manual review impossible. The Natural Language Inference for Clinical Trial Data (NLI4CT) task challenges AI systems to determine if a hypothesis is supported by ("entailment") or contradicts ("contradiction") evidence within these reports.
The stakes are high in the clinical domain. Beyond simple accuracy, models must demonstrate:
- Faithfulness: Robustness to semantic changes (e.g., if the evidence changes, the prediction should update correctly).
- Consistency: Stability against semantic-preserving alterations (e.g., rephrasing the same fact shouldn't change the model's answer).
The authors explore whether prompting strategies (like Chain-of-Thought) or specialized fine-tuning can help smaller, open-source models like Mistral and LLaMA2 close the performance gap with proprietary giants like GPT-4.
Methods
The team investigated two primary paths:
1. Prompting Strategies (No Fine-Tuning)
They tested several "in-context" methods to coax better reasoning out of base models:
- In-Context Learning (ICL): Providing 1 or 2 examples of the task. They used a BM25 retriever to find training examples most similar to the current hypothesis.
- Chain-of-Thought (CoT): Prompting the model to "think step by step."
- ICL + CoT: Combining both, using ChatGPT to generate the reasoning steps for the ICL examples.
2. Parameter-Efficient Fine-Tuning (PEFT) with Adapter Merging
The paper’s most novel contribution is a two-stage fine-tuning process using LoRA (Low-Rank Adaptation). Instead of one adapter, they trained two:
- LM Adapter ($\theta_{LM}$): Trained with a standard language modeling objective to improve domain-specific knowledge.
- Triplet Adapter ($\theta_{triplet}$): Trained using a triplet loss. This forces the model to map "entailment" hypotheses closer to the CTR evidence in vector space while pushing "contradiction" hypotheses further away.
Finally, they merged these two adapters by averaging their weights ($\theta_{merged} = \frac{1}{2}(\theta_{LM} + \theta_{triplet})$), aiming to capture the benefits of both domain knowledge and semantic discrimination.
Datasets
The study uses the NLI4CT dataset, which consists of expert-annotated hypotheses paired with CTRs. The CTRs are divided into four sections: Eligibility criteria, Intervention, Results, and Adverse events.
- Train/Dev/Test: 1,700 / 200 / 5,500 samples respectively.
- Sample Types: "Single" (evidence from one CTR) and "Comparison" (evidence requiring cross-referencing two CTRs).
Key Insights and Ideas
- The Power of Merging: Merging the triplet and LM adapters was more effective than using either alone. It specifically boosted the F1 score by +0.0346 and consistency by +0.152 for the MistralLite-7B model.
- Prompting vs. Fine-Tuning: For smaller models, prompting (especially CoT) often improved faithfulness and consistency but sometimes at the cost of raw F1 accuracy. Fine-tuning, however, provided a more balanced lift across all metrics.
- GPT-4's Inherent Superiority: Even without any fine-tuning or specialized prompting, GPT-4 outperformed all other models, particularly in faithfulness (scoring 0.9479 vs. the next best 0.6597 for zero-shot models).
- No Data Leakage: A contamination analysis (checking if GPT-4 had "memorized" the test set during its pre-training) showed very low extractable match scores (0.033), suggesting its performance is due to reasoning, not cheating.
Key Results
The competition was judged on the average of F1, Faithfulness, and Consistency.
| Model | F1 | Faithfulness | Consistency | Average |
|---|---|---|---|---|
| GPT-4 (Zero-shot) | 0.7751 | 0.9479 | 0.7754 | 0.8328 |
| MistralLite-7B + Merged PEFT | 0.7824 | 0.8391 | 0.7372 | 0.7862 |
| Mistral-7B-Instruct (2-shot CoT) | 0.5944 | 0.6065 | 0.5650 | 0.5886 |
While the merged PEFT model achieved a higher F1 than GPT-4, GPT-4's massive lead in faithfulness secured its top spot on the leaderboard.
Limitations and Future Work
- Resource Constraints: Due to costs, the authors only tested GPT-4 in a zero-shot setting. They hypothesize that applying their prompting or fine-tuning strategies to GPT-4 could yield even higher results.
- Clinical Safety: Despite the high scores, the authors warn that these models still make mistakes and should not be used in clinical settings without human supervision.
- Adapter Merging Ratios: The current study used a simple 50/50 average for merging adapters. Future work could explore weighted averaging to further optimize the balance between faithfulness and consistency.
Summary updated