arXiv:2610.01076cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01076

GLoC-EHR: Evidence-Cited Clinical Reasoning over Global Context and Local EHR Events

Chaiho Shin, Kwangsoo Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Structured electronic health records (EHRs) contain a patient's clinical trajectory as a sequence of clinical codes. Answering clinical questions from such records requires both the context of the whole trajectory and the specific events that support the answer. We introduce GLoC-EHR, a multimodal language model that reads a contextual encoding of the record through a fixed-size global memory of the trajectory and a local memory of selected events. The model learns to generate hospital-course summaries from the global memory and descriptions of masked concepts from the local memory, aligning both with clinical text. It is then trained to cite evidence before answering, through rationale fine-tuning followed by group relative policy optimization (GRPO) with rewards for correct answers and record-supported evidence. On three MIMIC-IV outcome tasks, GLoC-EHR attains the highest macro AUROC among the compared models when it answers directly, whereas zero-shot LLMs reading the serialized record fall far behind. With evidence-cited reasoning, it stays close to its direct multi-task counterpart in macro AUROC, and the evidence terms of the objective reduce unsupported evidence at a similar macro AUROC. The local memory adds distinct supported findings, particularly under strict matching, without a detectable change in macro AUROC. Without retraining, GLoC-EHR transfers to EHRSHOT on par with EHR-BERT and answers two unseen laboratory questions better than zero-shot prompting of its own backbone.

1 INTRODUCTION

Electronic health records (EHRs) capture diagnoses, medication orders, procedures, and measurements over time, providing a rich longitudinal account of a patient's health and care. These records offer both a broader view of the patient's clinical trajectory and specific observations relevant to a clinical question. However, clinically relevant information can be dispersed across lengthy, heterogeneous patient records, making it challenging for clinicians to identify and synthesize information needed to guide patient care (Reichert et al., 2010).

To harness longitudinal EHR data for clinical prediction, EHR-based models have been developed for a wide range of clinical outcome-prediction tasks (Choi et al., 2016; Li et al., 2020b; Rasmy et al., 2021). In particular, pretrained EHR encoders learn contextual representations of medical codes from patient histories. BEHRT adapts masked language modeling to diagnosis sequences with age and visit information (Li et al., 2020b); Med-BERT learns transferable diagnosis representations through large-scale pretraining (Rasmy et al., 2021); and CEHR-BERT incorporates temporal information across multiple structured domains (Pang et al., 2021). These models provide a reusable foundation for prediction and can reduce the need for labeled data. However, their usual downstream interface is a task-specific predictive head: adapting to a new outcome generally requires fitting a new head or fine-tuning the model with corresponding labels (Rasmy et al., 2021; Wornow et al., 2023). Thus, transfer remains dependent on task-specific supervision, even when the underlying representation is reused. Moreover, an outcome score alone does not express the recorded findings that support a

†^{\dagger}Corresponding author.

clinical inference. Extending these representations to natural-language reasoning therefore requires connecting the encoded record, the clinical question, and the evidence supporting an answer.

One approach to connecting structured EHRs with language models, which encode substantial clinical knowledge (Singhal et al., 2023; Jiang et al., 2023), is to serialize medical codes into textual descriptions that the models can embed or reason over (Hegselmann et al., 2023; Ben Shoham & Rappoport, 2024; Zhu et al., 2024; Hegselmann et al., 2026; Lin et al., 2025; Liao et al., 2025). Serialization retains an explicit account of the selected events at a growing context cost (Wornow et al., 2025). In our downstream cohorts, serializing even the 24-hour observation window yields an average of 4.7k tokens (90th percentile: 14k), increasing to 12.8k (48k) for the full index admission. Other approaches use intermediate textual summaries (Gao et al., 2026) or fuse language-model embeddings of domain-specific pseudo-notes (Lee et al., 2025). Such compression may omit details needed to substantiate a clinical inference. A distinct approach, Llemr, aligns individually encoded clinical events with a generative language model (Wu et al., 2024), reducing the input length relative to textual serialization. However, the resulting input still scales with the number of events.

Connecting structured EHRs with language models makes clinical information available for reasoning, but does not by itself ensure that the generated reasoning is supported by the patient’s record. Recent work, including EHRMIND (Lin et al., 2025) and EHR-R1 (Liao et al., 2025), develops EHR-based reasoning through reinforcement learning with rewards for final-answer correctness, which do not explicitly distinguish supported from unsupported findings.

We therefore introduce GLoC-EHR, an EHR-text multimodal large language model that combines a global-local interface with evidence-aware reward training. A contextual EHR encoder reaches the language model through two routes: a global route, whose compact memory summarizes the observed trajectory, and a local route, whose memory retains selected individual events. Trajectory alignment, which generates the hospital-course summary of an admission, aligns the global route with clinical text, and concept alignment, which recovers descriptions of masked concepts, aligns the local route. Beyond answer correctness, an evidence-matching reward credits findings supported by the patient's record rather than concepts merely associated with the task. We study how the local route and this reward shape the generated reasoning on clinical outcome tasks, with direct prediction as a reference for the information in the representation. Our contributions are threefold:

• A global–local interface whose two routes are aligned with clinical text, giving a language model trajectory context and access to individual events; answering directly, GLoC-EHR attains the highest macro AUROC over three MIMIC-IV tasks (Section 4.2).

• An evidence-aware objective that combines this reward with a sufficiency loss on the cited findings; it reduces unsupported evidence with no detectable change in macro AUROC, which stays close to that of direct prediction (Sections 4.2–4.4).

• An evaluation of cited evidence under stricter matching and cited-slot masking, showing that the local route shapes which findings are cited, with no detectable effect on the answer; without retraining, GLoC-EHR also matches EHR-BERT on EHRSHOT and outperforms its zero-shot backbone on unseen laboratory questions (Sections 4.3 and 4.5).

References (1)