Abstract

Large language model (LLM) agents that reason over clinical records must track changes in a patient's state while preserving the history needed to understand them. Simply accumulating memories leaves it unclear which information still applies, whereas overwriting earlier memories can erase evidence needed to reconstruct treatment history and clinical trajectories. We introduce STAM, a state-transition-aware memory framework that records state changes as new clinical entries arrive. STAM combines semantic retrieval with typed clinical relations to identify affected memories, maintaining current information in Active and superseded or resolved information in History. At read time, a query-dependent gate selectively serves historical memory. Across four longitudinal clinical benchmarks, we evaluate STAM with downstream question answering, direct state-maintenance diagnostics, and comparisons at approximately matched context lengths.

Keywords

Subject

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Haghifam, M., Rajabi, Z., Sun, Y., & Morato, C. (2026). Personalized State-Transition-Aware Memory for Clinical Agents. https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents

MLA 9

Haghifam, Maryam, et al. "Personalized State-Transition-Aware Memory for Clinical Agents." https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents.

Chicago (author–date)

Haghifam, Maryam, Zahra Rajabi, Yizhou Sun, and Carlos Morato. 2026. "Personalized State-Transition-Aware Memory for Clinical Agents." https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents.

Harvard

Haghifam, M., Rajabi, Z., Sun, Y. and Morato, C. (2026) 'Personalized State-Transition-Aware Memory for Clinical Agents', Available at: https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents.

Vancouver

Haghifam M, Rajabi Z, Sun Y, Morato C. Personalized State-Transition-Aware Memory for Clinical Agents. https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents

IEEE

M. Haghifam, Z. Rajabi, Y. Sun, and C. Morato, "Personalized State-Transition-Aware Memory for Clinical Agents," https://omanscience.com/en/articles/personalized-state-transition-aware-memory-for-clinical-agents.