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

Donghua Zhang, Zizheng Wang, Ze Dong, Yiding Feng, Siyu Qian
11/5/2026
cs.CLcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026medgraph,
  title  = {MedGraph: Maintaining Patient State with Graph Memory for Long-Term Medical Dialogue},
  author = {Donghua Zhang and Zizheng Wang and Ze Dong and Yiding Feng and Siyu Qian},
  year   = {2026},
  eprint = {2611.08433},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.08433v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.08433.svg)](https://codeofpaper.com/paper/2611.08433)

Discussion