Introduction
Clinical Trial Reports (CTRs) are essential for evidence-based medicine, yet their complexity and volume pose significant challenges for manual analysis. The NLI4CT (Natural Language Inference for Clinical Trial Data) task addresses this by requiring models to determine if a clinical hypothesis is supported by ("entailment") or contradicted by ("contradiction") evidence within a CTR. This paper explores the performance of various Large Language Models (LLMs) on this task, focusing on two key dimensions: faithfulness to evidence and consistency across semantically equivalent inputs.
Methodology
The researchers investigated two primary approaches: advanced prompting strategies for pre-trained models and a novel parameter-efficient fine-tuning (PEFT) technique.
Prompting Strategies
The team evaluated several prompting configurations on models such as LLaMA2 and Mistral:
- Zero-shot: Direct querying of the model.
- In-Context Learning (ICL): Including one or two task-specific examples in the prompt.
- Chain-of-Thought (CoT): Implementing "Let's think step by step" prompts to elicit logical reasoning.
- ICL + CoT: A hybrid approach using examples with explicit reasoning steps generated by ChatGPT.
Novel PEFT: Adapter Merging
A key contribution of this work is a method for merging Low-Rank Adaptation (LoRA) adapters. The researchers trained two distinct adapters for the MistralLite-7B model:
- Language Modeling (LM) Loss: Aimed at enhancing domain-specific knowledge.
- Triplet Loss: A supervised objective designed to map "entailment" hypotheses closer to the evidence and "contradiction" hypotheses further away in the embedding space.
By averaging the weights of these two adapters, the team sought to combine general clinical knowledge with high discriminative power.
Data and Evaluation
The study utilized the NLI4CT dataset, which comprises 1,700 training, 200 development, and 5,500 test samples. The data includes sections on eligibility criteria, interventions, results, and adverse events, featuring both "Single" trial evidence and "Comparison" samples requiring cross-trial reasoning.
Key Insights
- GPT-4 as a Strong Baseline: GPT-4 demonstrated exceptional out-of-the-box performance, co-leading the leaderboard with an average score of 0.8328 without any task-specific fine-tuning.
- Necessity of Fine-tuning for Smaller Models: For models in the 7B-13B parameter range, fine-tuning proved essential. Without it, these models struggled to follow the complex instructions inherent in the NLI4CT task.
- Benefits of Adapter Merging: The merged adapter approach provided a substantial performance boost, increasing the F1 score by +0.0346 and consistency by +0.152 over a standard LM-only adapter.
- CoT Trade-offs: While CoT prompting improved faithfulness and logical consistency, it occasionally resulted in a slight decrease in raw F1 scores, highlighting a tension between accuracy and explainability.
Results
GPT-4 achieved the highest overall average score of 0.8328, ranking joint-first in the competition and showing particular strength in faithfulness (0.9479). The team's best fine-tuned model, MistralLite-7B (Merged), reached an average score of 0.7862, ranking joint-fourth. This demonstrates that sophisticated fine-tuning can make smaller, open-source models highly competitive with much larger proprietary systems.
Conclusion and Future Work
The findings suggest that while GPT-4 remains the state-of-the-art for clinical NLI, targeted fine-tuning and adapter merging can significantly bridge the gap for smaller models. Future research could explore applying these strategies to larger open-source models or fine-tuning GPT-4 itself. The observed trade-offs between consistency and faithfulness also indicate that balancing multiple training objectives remains a critical area for further investigation.
Summary updated