TL;DR
This paper evaluates how instruction-tuned Large Language Models (LLMs) perform in high-stakes legal and medical domains, focusing on factual accuracy and safety. The authors find that while domain-specific instruction tuning helps, current models and automated metrics are still dangerously inadequate for high-risk applications, often masking significant errors behind high scores.
What Problem Does This Paper Address?
LLMs are notorious for "hallucinations"—generating plausible but factually incorrect information. While this might be a minor nuisance in creative writing, it is potentially catastrophic in high-risk domains like law or medicine.
The upcoming EU AI Act (illustrated in Figure 1) categorizes AI applications by risk level, with medical and legal systems expected to fall under the "High Risk" category, requiring strict obligations for testing and risk mitigation.
The authors address two critical questions:
- How well do instruction-tuned LLMs generalize to these high-risk domains?
- Are our current evaluation metrics actually capable of measuring performance in these sensitive contexts?
Methods
The researchers developed an evaluation framework (Figure 2) to test both out-of-the-box and domain-adapted LLMs.
- Models: They compared open-source models (GPT4ALL-J 6B and GPT4ALL-MPT 7B) against the proprietary GPT-3.5-turbo.
- Domain Adaptation: They used QLoRA (4-bit quantization) to efficiently fine-tune the open-source models on domain-specific instructions.
- Evaluation Metrics:
- Factuality: Measured via QAFactEval (fine-grained overlap with ground truth) and UniEval (coherence, consistency, fluency, relevance).
- Safety: Measured via Detoxify and SafetyKit to detect offensive or inappropriate content.
- Taxonomy: The study is grounded in a generalization taxonomy (Table 3) that tracks how models handle shifts in domain and task.
Datasets
The study utilized a mix of human-annotated datasets for both instruction tuning and evaluation across legal and medical domains.
- Legal: BillSum (summarization), CaseHold (multiple-choice QA), LawStackExchange (QA), and LegalAdviceReddit.
- Medical: PubMedQA (reasoning QA), RCTSum (summarization), MedQA (QA), HealthCareMagic, and iCliniq.
A detailed breakdown of the training datasets and their licenses can be found in Table 1.
Key Insights and Ideas
- The "Yes, No, Maybe" Trap: Automated metrics can be easily "gamed." For example, a model that responded with "(Yes, No, Maybe)" to a prompt received a high factuality score because the correct answer was technically contained within that string, even though the response was useless.
- Safety Scores are Deceptive: Models frequently achieved safety scores above 0.94. However, qualitative manual analysis revealed that 8 out of 10 medical answers were problematic, including one that suggested treating a dog bite by just cleaning the wound rather than seeking a necessary injection.
- Tuning is a Double-Edged Sword: While instruction tuning generally improved performance, it was inconsistent. A model might improve significantly on one task (like CaseHold) while simultaneously regressing on another in the same domain (like LawStackExchange).
- Human-Centricity is Non-Negotiable: Because absolute quality assurance is currently impossible, the authors argue for a "Human-AI Collaboration" framework (Figure 3). This involves ensuring AI outputs are supported by human-understandable evidence and verified by human experts before final use.
Key Results
- Factuality Gap: Most models failed to reach a 90% factuality score across the board. GPT-3.5-turbo generally led, but instruction-tuned smaller models occasionally outperformed it in specific summarization tasks (e.g., GPT4ALL-MPT tuned on RCTSum).
- Safety Mismatch: There is a clear disconnect between what current metrics consider "safe" (usually lack of toxicity) and what is actually safe in a professional context (accurate advice).
- Efficiency: The study demonstrated that smaller models (6B-7B parameters) can be adapted to high-risk domains with relatively low computational budgets (5-6 GPU hours) using QLoRA, though they still lag behind larger proprietary models.
Limitations and Future Work
- Language Bias: The study was limited to English-language datasets.
- Metric Fragility: The authors acknowledge that automatic metrics require their own separate benchmarking, as they currently fail to capture domain nuances.
- Expert Involvement: Future work must involve legal and medical professionals in the evaluation loop to create more dependable test sets.
- Retrieval-Augmented Generation (RAG): The authors suggest that integrating retrieval steps to provide source-backed evidence is a promising path toward raising factuality to acceptable levels for high-risk deployment.
Summary updated