cs.CLNov 5, 2026

MedGraph: Maintaining Patient State with Graph Memory for Long-Term Medical Dialogue

Authors: Donghua Zhang, Zizheng Wang, Ze Dong, Yiding Feng, Siyu Qian

Organizations: University of Michigan · Georgetown University · Johns Hopkins University · Harvard University

Abstract

LLM-based medical assistants that follow a patient across visits need a memory that keeps the patient's clinical state correct as it changes. We examine the errors of five memory systems on longitudinal medical dialogue and find three recurring causes: the retrieved evidence gives an outdated state, includes another person's health facts, or lacks a safety fact the answer depends on. We present MedGraph, a graph memory built for these three cases. Construction extracts dated facts from each session, attributes each fact to the person it describes, and links medication, diagnosis, and measurement records into chains that keep earlier states. Retrieval ranks the patient's chains as units, reads each chain at the time the question asks about, and adds the original dialogue text; a patient profile lists every recorded safety fact with every question. On MedMemoryBench, MedGraph has the highest overall accuracy with both a GPT and a Qwen backbone, 10.5 and 10.4 points above the strongest of five baselines, with efficient memory construction and answering in the GPT setting.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs

    Jun 9, 2026Keer Lu, Liwei Chen, Guoqing Jiang +3Conversational MemoryPersistent Memory for Language Models

  2. GSEM: Graph-based Self-Evolving Memory for Experience Augmented Clinical Reasoning

    Mar 23, 2026Xiao Han, Yuzheng Fan, Sendong Zhao +2Memory-Augmented Language Model AgentsGraph-Based Agent Memory