Walking a Tightrope -- Evaluating Large Language Models in High-Risk Domains

Chia-Chien Hung, Wiem Ben Rim, Lindsay Frost, Lars Bruckner, Carolin LawrencearXiv 2023

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.

Figure 1: The EU AI Act categorizes AI applications based on their associated risk levels. Although the Act is not yet finalized, it is expected that LLMs will fall into the high-risk category in specific domains, such as medical and legal.1

The authors address two critical questions:

  1. How well do instruction-tuned LLMs generalize to these high-risk domains?
  2. 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.

Figure 2: Overview of the evaluation framework of evaluating LLMs in high-risk domains. We evaluate how well LLMs with and without instruction-tuning perform in high-risk domains: legal and medical. The quality of the outputs is assessed using existing metrics to measure factuality and safety.
  • 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.
The generalization taxonomy used to categorize the study's approach.

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.

Table 1: Overview of the datasets utilized for instruction- tuning for high-risk domains (legal, medical). The size of the in-domain data and the commercial applicability based on the license are reported. †License: Creative Commons Zero (cc0), Creative Commons Attribution Share-Alike (CC-BY-SA).

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.
The proposed Human-AI Collaboration framework to ensure safe deployment.

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

BibTeX
@misc{hung2023walking,
  author = {Chia-Chien Hung and Wiem Ben Rim and Lindsay Frost and Lars Bruckner and Carolin Lawrence},
  title = {{Walking a Tightrope -- Evaluating Large Language Models in High-Risk Domains}},
  year = {2023},
  eprint = {2311.14966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.14966},
}
Figure