ReLMem: Learning Recurrent Memory for Longitudinal EHR Modeling
Not on the map. Why?
Abstract (arXiv)
Longitudinal electronic health record (EHR) modeling requires integrating new visits with an expanding patient history. Yet the continual accumulation of clinical information imposes increasing computational and memory costs on large language models (LLMs) when they process and retain complete patient histories. A practical alternative is visit-wise recurrent compression, which incorporates each incoming visit into a compact, continually updated patient memory. However, under a fixed memory budget, successive updates must integrate new information without progressively losing critical historical evidence needed to subsequent tasks. To address this challenge, we introduce Recurrent Longitudinal Memory (ReLMem), a framework that learns to maintain fixed-capacity patient memory for efficient downstream prediction with a frozen LLM. ReLMem equips this LLM with lightweight compression adapters to recurrently update the memory from its previous state and each incoming visit, without rereading earlier records. Specifically, we develop a multi-granularity optimization strategy to preserve task-relevant information throughout recurrent updates and support downstream prediction from the final memory. The intermediate supervision aligns attention outputs from compressed memory and the full history under identical queries, while prediction supervision minimizes cross-entropy with ground truth answers conditioned on the final memory. On EHR-based medication prediction, ReLMem approaches the F1 scores of full-history baseline while reducing average retained historical storage by 97.1%. Under the same memory budget, it improves macro- and micro-F1 over the strongest compressed-memory baseline by 4.66 and 4.75 percentage points, respectively. These results highlight the value of learning recurrent patient memory for efficient longitudinal EHR modeling.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 29 of its 45 references that are in the map. First posted on arXiv 29 Sep 2026.
Builds on
29 of 45 references.
References · 29
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2020Med-BERT: pre-trained contextualized embeddings on large-scale structured electronic health records for disease predictioncited by 368
- 2023Adapting Language Models to Compress Contextscited by 350
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
17 more
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2022GatorTron: A Large Clinical Language Model to Unlock Patient Information from Unstructured Electronic Health Recordscited by 238
- 2015Doctor AI: Predicting Clinical Events via Recurrent Neural Networkscited by 205
- 2022Recurrent Memory Transformercited by 197
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 101
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 89
- 2018GAMENet: Graph Augmented MEmory Networks for Recommending Medication Combinationcited by 79
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 75
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2023Recursively Summarizing Enables Long-Term Dialogue Memory in Large Language Modelscited by 62
- 2021SafeDrug: Dual Molecular Graph Encoders for Recommending Effective and Safe Drug Combinationscited by 51
- 2023Compressed Context Memory For Online Language Model Interactioncited by 42
- 2026Fast KV Compaction via Attention Matchingcited by 28
- 2025EHR-R1: A Reasoning-Enhanced Foundational Language Model for Electronic Health Record Analysiscited by 17
- 2026A multimodal and temporal foundation model for virtual patient representations at healthcare system scalecited by 7
- 2024Large Language Models for Medical Forecasting -- Foresight 2cited by 5
Built on by
Not cited yet.