[Paper Review] Almanac: Retrieval-Augmented Language Models for Clinical Medicine
Almanac augments a large language model with retrieval from medical sources to answer clinical questions, improving factuality and safety over baselines while enabling source-backed responses.
Large-language models have recently demonstrated impressive zero-shot capabilities in a variety of natural language tasks such as summarization, dialogue generation, and question-answering. Despite many promising applications in clinical medicine, adoption of these models in real-world settings has been largely limited by their tendency to generate incorrect and sometimes even toxic statements. In this study, we develop Almanac, a large language model framework augmented with retrieval capabilities for medical guideline and treatment recommendations. Performance on a novel dataset of clinical scenarios (n = 130) evaluated by a panel of 5 board-certified and resident physicians demonstrates significant increases in factuality (mean of 18% at p-value < 0.05) across all specialties, with improvements in completeness and safety. Our results demonstrate the potential for large language models to be effective tools in the clinical decision-making process, while also emphasizing the importance of careful testing and deployment to mitigate their shortcomings.
Motivation & Objective
- Address the challenge of factuality, completeness, and safety in medical LLMs within clinical workflows.
- Evaluate Almanac’s ability to ground answers with retrieved sources and in-text citations.
- Assess performance across multiple specialties using a physician-led evaluation rubric.
Proposed method
- Use a vector database to semantically store medical content and perform approximate nearest-neighbor retrieval (HNSW) with a 1,536-dim embedding from text-embedding-ada-002.
- Retrieve and chunk articles into 1,000-token segments, score documents against the query, and feed top matches to a finetuned LLM (text-davinci-003) for answer generation with citations.
- Employ a retrieval-augmented generation pipeline that combines in-context prompts and chain-of-thought reasoning while abstaining when information is insufficient.
- Evaluate factuality, completeness, and safety using a panel of board-certified physicians on the ClinicalQA dataset (n=130) and adversarial prompts.
- Provide a novel ClinicalQA benchmark spanning cardiothoracic surgery, cardiology, neurology, infectious diseases, and pediatrics to reflect real-world clinical questions.
Experimental results
Research questions
- RQ1Does Almanac improve factuality of clinical answers relative to non-retrieval baselines?
- RQ2Does Almanac achieve higher safety and completeness in open-ended clinical queries?
- RQ3Can retrieval-grounded LLMs provide reliable, source-cited guidance across multiple medical specialties?
Key findings
- Almanac yields an average factuality improvement of 18 percentage points over ChatGPT across specialties (p < 0.05).
- The largest factuality gap is in Cardiology (Almanac 91% vs ChatGPT 69%).
- Almanac correctly handles clinical calculations using a built-in calculator, answering all calculation vignettes; ChatGPT errs on all 5 without calculators.
- Against adversarial prompts, Almanac shows strong safety performance (95% vs 0% for ChatGPT; prompts can cause abstention when thresholds are not met).
- Physicians still preferred ChatGPT outputs 57% of the time, highlighting user-experience considerations despite grounded safety advantages.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.