Editor’s introduction
The study introduces BRIE, a living benchmark generated from longitudinal EHR notes and validated by nineteen clinicians. It produces question-answer pairs reflecting real-world clinical decision-making, with each question grounded in actual patient admissions. The framework enables continuous updates, avoiding the obsolescence common in static benchmarks. Researchers compared performance across nine large language models and five inference strategies, finding that state-of-the-art systems often miss key clinical details, especially when synthesizing information across multiple encounters. The evaluation includes both fact entailment and pairwise comparison to assess response quality, with alignment to human judgment verified. A key limitation is that the benchmark relies on clinician validation of generated content, which may not capture all nuances of complex clinical reasoning.
Abstract
Large language models (LLMs) are rapidly transforming clinical workflows throughout hospitals. At a growing number of institutions, clinicians can now send requests about specific patient medical records to secure LLM deployments embedded within electronic health record (EHR) systems. These systems augment the chart review process by enabling clinicians to interact with patient records through a unified chat interface, shifting away from traditional search workflows. Through these interactions, clinicians may ask questions about a patient’s medical history, locate records from prior encounters, and generate summaries. Such use cases require models to navigate and synthesize information spread across long and complex patient records.
Monitoring these LLM deployments requires evaluation frameworks that can characterize model performance, identify failure modes, and reflect clinically realistic settings. However, new methodological advancements are introduced faster than traditional benchmarks can be created. As a result, despite growing interest in deployment, robust evaluation of clinical information retrieval remains an open challenge. Reasoning across hundreds of clinical notes poses distinctive challenges for LLMs. Relevant information is often dispersed across multiple encounters, while clinical observations are frequently duplicated through copy-forward documentation. Further, notes may interleave findings from the current and past encounters, making it difficult to understanding when observations happened. Models must extract meaningful signal from this noise, which can result in misinterpreting the record and missing important information. Such errors can propagate into model responses and ultimately affect clinical care. As these LLM systems become increasingly embedded in clinical workflows, healthcare organizations must continuously evaluate their reliability.
Recent work has enabled retrieval evaluation by creating benchmarks that include questions and answers based on individual patient notes. Often times, clinicians are asked to author these question and answers directly to ensure clinical utility; however, the scale is limited by available annotations resources. Synthetic generation with LLMs enables a way to augment this process, where clinicians focus on validation rather than authoring from scratch. Despite this progress, existing benchmarks do not fully capture breadth of information retrieval questions that are necessary to evaluate deployed chart review systems. More fundamentally, these benchmarks are treated as static artifacts that gradually lose effectiveness as their contents are absorbed into training corpora, documentation practices change overtime, and utilization evolves, such that measured performance may increasingly reflect memorization rather than robust clinical reasoning. Combined with the substantial clinician effort required to construct them, this makes existing paradigms insufficient for the robust evaluation of large language model deployments in chart review.
Rather than asking clinicians to dedicate time to manually update the benchmark, we develop a scalable LLM-based generator to produce question–answer pairs from real, de-identified patient records. These pairs are structured along evaluation axes spanning reasoning, topics, and time to enable evaluation on specific clinical retrieval challenges. Nineteen physicians who regularly use these clinical LLM tools perform a one-time validation of the generator, supporting a “living” benchmark paradigm. After this initial validation, the generator can be rerun on new patient data to produce scalable, continuously updated benchmark datasets.
We leverage the scalable generator to create the Benchmark for Retrieving Information in EHRs (BRIE), a dataset containing over five hundred clinical information retrieval questions with verified answers and de-identified clinical notes. BRIE enables both the evaluation and continuous monitoring of deployed clinical retrieval systems. Using BRIE, we identify failure modes across nine state-of-the-art models and five inference configurations, including retrieval-augmented generation (RAG) and agentic approaches. We find that while hallucinations are rare, models frequently omit relevant facts, particularly when the answer is dispersed across multiple parts of the clinical record.
A scalable framework for generating clinical retrieval benchmarks
We focus evaluation on a common chart review task in which a clinician must quickly understand a patient’s medical history when admitting a patient to the hospital (Figure a). We formalize this task as answering a clinical question for a specific patient at a specific point in time, using all information available in the medical record up to that point—here, when the admission History & Physical (H&P) note was written. The output is a free-text response supported by evidence from the patient’s prior clinical documentation (Figure a). To enable evaluation at scale, clinicians verify the question–answer pairs automatically generated from de-identified clinical notes (Figure b). To ensure that these pairs reflect questions a clinician might ask when admitting a patient, we ground their generation in the patient’s History & Physical (H&P) note, which captures the clinical information considered relevant at admission (Figure d).
Generation proceeds in two stages (Figure d). First, an LLM extracts and de-duplicates candidate facts from all clinical notes documented before the H&P, removing redundancy introduced by copied or imported text. Next, the extracted facts and the H&P note are provided jointly to an LLM (Gemini Pro 2.5) in a single prompt to generate question–answer pairs, where answers are directly linked to a subset of patient facts. The H&P provides encounter-specific clinical context, while the extracted facts define the permissible evidence for each answer. Consequently, every answer must be supported exclusively by the extracted facts and not by the H&P itself, ensuring that the questions evaluate retrieval from the prior medical record rather than information explicitly summarized in the H&P.
To systematically identify where existing retrieval approaches succeed and fail, we organize question-answer generation around an evaluation-oriented taxonomy whose axes correspond to distinct retrieval challenges (Figure e). Each question is generated conditioned on two axes: Reasoning, which distinguishes questions answerable from a single source (single-hop) from those that require combining evidence across multiple sources (multi-hop), and Topics, the clinical concept(s) targeted by the question (Figure e). A third axis, Temporality, captures where the supporting evidence resides in the longitudinal record and is determined after question generation (see Online Methods Section ).
Using the generator, we produced 675 chart-review questions from 63,878 de-identified clinical notes spanning a representative sample of 68 patients at Stanford Health Care (median 400 notes per patient, range 102–9,319; Supplementary Figure and Supplementary Table ).
Performance declines substantially for multi-hop and longitudinal retrieval
Reasoning complexity had the largest effect on fact recall (Figure a,d). Across all models and inference strategies, multi-hop questions consistently yielded lower fact recall than single-hop questions. These questions require synthesizing across multiple encounters and subsequently may cause the model to omit clinically relevant details. In one example, the question asked about prior rashes and treatments in an allogenic stem cell transplant patient presenting with worsening facial rash concerning for disseminated varicella zoster. Recent inference by GPT-5.4, Claude Opus 4.7, and Gemini Pro 2.5 omitted key information about the effectiveness of prior treatments, including improvement with clotrimazole and metronidazole. All three models also omitted the dose-dependent relationship between ponatinib and the patient’s chronic rash, while GPT-5.4 omitted the ponatinib association entirely. These omissions obscured clinically relevant distinctions between the patient’s chronic and acute symptoms.
Multi-hop questions require reasoning about which information is relevant for the clinical context. Notably, alternative retrieval approaches exacerbated rather than reduced omission. The average decrease in fact recall (multi-hop minus single-hop) was –0.20 for Agentic, –0.14 for BM25, and –0.13 for Dense retrieval, compared with –0.12 for Recent and –0.10 for Recent-180K (Supplementary Figures -). Thus, although retrieval reduced inference cost and performed well overall, existing retrieval strategies did not consistently surface all evidence required for questions requiring reasoning across multiple encounters.
Fact recall also varied by clinical topic (Figure b,e). Under Recent inference, recall was lower for questions about comorbidities (mean recall, 0.68; 95% CI: 0.67-0.69) and disease progression (mean recall, 0.67; 95% CI: 0.66-0.68) than for questions about imaging (0.76; 0.75–0.77) and diagnostic testing (0.76; 0.74–0.77) (Supplementary Figures -). Because comorbidities and disease progression may be documented across multiple encounters and summarized in many notes, models may struggle to distinguish and identify separate events. For example, when asked to characterize the pancreatitis history of a patient presenting with epigastric discomfort, Recent inference with Gemini-Pro 2.5 identified prior alcohol-associated episodes in December 2020 and May 2022 but omitted more recent admissions in June and August 2022 during which lipase levels were normal. By recalling only the confirmed episodes, the response could mislead the differential diagnosis. This pattern persists when the analysis is restricted to multi-hop questions, suggesting that trends in recall across topics is distinct from those in complex reasoning (Supplementary Figure ).
Finally, fact recall declined when supporting evidence occurred farther back in the patient record (Figure c,f). While most relevant facts are documented in the most recent 180,000 tokens, 63 questions require surfacing information beyond this cutoff(Supplementary Figure ). In many cases, these facts may not be accessible with Recent inference because the information falls out of context. For example, when asked about the management plan for the patient’s initial onset atrial fibrillation, Recent inference with GPT 5.4 was unable to identify the relevant historical note because it fell outside the context window. When the earliest supporting fact appeared more than 180K tokens before the query, fact recall fell by an average of -0.16 and -0.25 for Recent and Recent-180K across models, respectively, but no significant drop in performance was observed for the other inference methods (Supplementary Figures -).
Together, these findings show that retrieval failures are concentrated rather than uniform. Current systems struggle most when answers require integrating evidence across encounters, tracking clinical concepts that evolve over time, or recovering facts from distant portions of the record. These limitations persist across models and inference strategies.
Discussion
We present a scalable framework for building a living benchmark for information retrieval from longitudinal clinical notes. Rather than relying on clinicians to manually author benchmarks, our framework automatically generates chart-review questions grounded in real inpatient admissions, capturing the information needs that arise during routine clinical practice. To establish the validity of this approach, nineteen clinicians evaluated the generated questions and reference answers, judging them to be high quality and representative of real-world chart review. This single upfront annotation cost establishes the validity of the generator, enabling it to be rerun on newly collected clinical records to continuously refresh and expand the benchmark without requiring additional clinician annotation.
Using these validated annotations, we construct the Benchmark for Retrieving Information in EHRs (BRIE), which we release with verified reference answers, supporting evidence, and de-identified longitudinal clinical notes. BRIE consists of longitudinal records from medically complex patients, representing some of the most challenging information retrieval settings in clinical practice. We envision this resource serving as a foundation for developing and evaluating retrieval methods, while also supporting a broad range of clinical natural language processing research.
Using BRIE, we evaluated state-of-the-art retrieval across nine models and five inference configurations. Prior work has focused largely on model hallucinations as these errors can propagate into clinical practice and compromise care. We find that although model responses can be verbose, they contain few hallucinations. Instead, state-of-the-art retrieval frequently fails to include clinically relevant information. These omission errors are increasingly recognized as a key limitation of clinical AI systems. Importantly, omissions pose a distinct challenge in clinical practice because they are difficult to detect. A response may appear plausible and accurate while silently excluding critical information that would only become apparent through a careful review of the patient chart. As a result, omission errors may be more dangerous than hallucinations, making them a critical target for future retrieval methods.
These failures were not uniform across retrieval settings. Performance declined substantially when questions required synthesizing information across multiple encounters, tracking a condition over time, or recovering evidence buried deep in the record. The concentration of these failures in specific retrieval settings has implications for how clinical LLMs should be validated. Strong aggregate performance should not be interpreted as evidence that a system can reliably support “EHR retrieval” as a broad capability. Instead, evaluations should establish which retrieval settings a system can reliably support, distinguishing, for example, single-encounter retrieval from multi-encounter synthesis and longitudinal tracking of clinical conditions.
Many clinical systems rely on long-context inference, where recent notes are concatenated and provided to the model (e.g., Recent, Recent 180K). Although straightforward to implement, this strategy can be computationally expensive for longitudinal records. Retrieval methods can reduce context length and inference cost, but their cost–performance tradeoffs in realistic clinical settings remain unclear. We found that Dense retrieval achieved performance comparable to long-context inference at substantially lower cost, suggesting that improving retrieval may provide greater practical benefit than simply expanding context windows.
Benchmark Generator
We developed a scalable framework to generate realistic questions that clinicians might ask when deciding to admit a patient. Using the index H&P note for encounter-specific context, the pipeline jointly generates question–answer pairs grounded in facts extracted from the preceding notes. Specifically, generation is broken down in three stages. First, clinical notes preceding the reference H&P are transformed into a de-duplicated patient timeline of timestamped atomic facts. Second, the patient timeline and reference H&P are provided to an LLM to generate clinically relevant question–answer pairs. Third, the supporting facts are mapped back to their occurrences in the clinical record to characterize the temporal retrieval demands of each question. The resulting entries contain a naturally phrased clinical question, a reference answer, supporting facts, and metadata pertaining to the question’s reasoning, clinical topic, and temporality. The following sections describe each stage in detail. All generative tasks used a PHI-compliant instance of Gemini-Pro 2.5 Chat, which achieved stellar performance on the LMArena long-query and overall text leader boards at the time of development.
Fact Extraction. Longitudinal clinical notes served as the source for question generation. Raw clinical notes are flawed documents, containing remnants of formatting, duplicated information due to copy-forward, clinical shorthand, and temporal ambiguity from interleaved information recorded in other visits. This “note bloat” from text adds little new information and can impede LLM reasoning by reducing the amount of information that fits within the model context.
To reduce note bloat before question generation, we transformed the longitudinal record into a patient timeline of timestamped atomic claims. Atomic claims are logical propositions that cannot be further decomposed (e.g. “Patient was diagnosed with Type 2 Diabetes (2021-09-13)”). Prior work has demonstrated that LLMs excel at extracting atomic claims from clinical notes, which in turn can be interpreted as patient facts. Representing the record as facts removes much of the formatting, shorthand, and repeated text present in the original notes while providing a structured representation for downstream question generation.
Facts and their associated timestamps were extracted from clinical notes preceding the most recent H&P note, which served as the index note. Supplementary Figure presents the prompt used for fact extraction. During fact extraction, timestamps were normalized by interpreting relative temporal expressions with respect to the source note date (e.g., “last week” was assigned a date one week before the note date). The resulting fact list was then de-duplicated to remove redundant entries referring to the same event. Supplementary Figure presents the prompt used for de-duplication. This process reduced the mean token count to approximately one-third of that of the raw notes, as shown in Supplementary Table which compares token counts before and after processing.
To keep extracted fact lists within the model’s output token limit, clinical notes were processed in chunks of 20,000 characters. After fact extraction, the facts from all notes were merged in chronological order based on note sequence. Even after de-duplicating facts across notes, four patients still had facts that exceeded the Gemini 2.5 Pro context window. In these cases, we filtered out facts that were from inpatient encounters but not in the discharge summary.


