TL;DR
Large Language Models (LLMs) are increasingly used to turn messy radiology reports into structured data, but they aren't perfect. This paper demonstrates that while LLM uncertainty metrics can effectively flag extraction failures (when the model misreads a report), they do not help identify clinical discordance (when two medical tests genuinely disagree). Distinguishing between these two types of "error" is essential for ensuring the quality of LLM-derived clinical datasets.
What Problem Does This Paper Address?
When an LLM-extracted data point doesn't match a clinical reference standard, researchers face a "failure attribution" problem. Is the discrepancy because the LLM failed to accurately capture what was written in the report (an extraction failure)? Or is it because the report itself describes a finding that differs from a more invasive, "gold-standard" test (clinical discordance)?
In the context of coronary artery disease (CAD), doctors often use Coronary CT Angiography (CCTA) as a "gatekeeper" for Invasive Coronary Angiography (ICA). These tests don't always agree. If we use an LLM to build a research database from these reports, we need to know if a mismatch is a "reading error" by the AI or a "biological reality" of the tests. This paper investigates whether the LLM’s own "uncertainty" can help us tell the difference.
Methods
The researchers used Llama-3.3-70B-Instruct to extract stenosis (arterial narrowing) severity from CCTA and ICA reports. To measure the model's "doubt," they evaluated ten different uncertainty metrics, eventually settling on Stenosis Margin—the gap between the probabilities of the top two predicted tokens at the model's least confident point.
They compared the LLM's output against two benchmarks:
- Expert Annotations: Human radiologists re-read CCTA reports to check if the LLM extracted the information correctly.
- Clinical Reference: The results of subsequent invasive ICA procedures to see if the CCTA findings (as read by the LLM) matched the "ground truth" of the patient's condition.
The team used Generalized Estimating Equations (GEE) to analyze the data, which allowed them to account for the fact that one patient might have multiple coronary vessels reported.
Datasets
The study utilized a retrospective cohort from a single institution:
- Total Cohort: 1,045 patients with CCTA reports.
- Extraction Failure Set: 253 patients (1,077 vessels) with expert human annotations.
- Clinical Discordance Set: 729 patients (1,641 vessels) who had an ICA within 90 days of their CCTA.
The researchers also compared Llama 3.3 against other models like MedGemma 27B and Qwen 3.5 9B to ensure their findings weren't model-specific.
Key Insights and Ideas
- Uncertainty is Task-Specific: The most important "aha moment" is that LLM uncertainty is a signal of linguistic or interpretive difficulty, not clinical complexity. It tells you the model is struggling to parse the text, not that the patient's case is medically ambiguous.
- The "Reading" vs. "Reality" Gap: There was almost no overlap between extraction errors and clinical discordance. In fact, 90% of the vessels where the CCTA and ICA disagreed were extracted perfectly by the LLM.
- Predictors of Failure: Extraction failures were more common in longer report sections and in cases with high calcium scores (which make CT images harder for humans to read and describe). Clinical discordance, however, did not follow these patterns.
Key Results
- Catching Extraction Errors: LLM uncertainty was a powerful predictor of extraction failure. Adding the "Stenosis Margin" metric to a baseline model improved the Area Under the Curve (AUC) from 0.81 to 0.86 ($P=0.001$). The adjusted odds ratio for failure was 4.15 per standard deviation of uncertainty.
- Predicting Clinical Discordance: Uncertainty was essentially useless here. It provided no incremental discrimination beyond the extracted stenosis severity itself (a negligible AUC increase of +0.01, $P=0.245$).
- Model Performance: Llama 3.3 70B achieved a quadratic weighted kappa of 0.974 against expert annotations, significantly outperforming traditional regex-based extraction methods.
Limitations and Future Work
The authors acknowledge several limitations:
- Single Institution: The data comes from one hospital system, which might have specific reporting styles.
- Token Access: The "Stenosis Margin" metric requires access to log-probabilities, which many commercial LLM APIs (like GPT-4) do not currently provide to users.
- Few-Shot Only: The models were used "out of the box" with few-shot prompting. Future work could explore whether fine-tuning on medical data changes how uncertainty behaves.
Ultimately, this research suggests that while we can trust LLM uncertainty to flag when the AI is "confused" by a report, we still need robust clinical validation to handle the inherent disagreements between different medical tests.
Summary updated