Manuscript Offprint

arXiv:2610.02979

RASPER: Reward-Aligned Summarization of Clinical Notes for EHR Outcome Prediction

Arya Hadizadeh Moghaddam, Mohsen Nayebi Kerdabadi, Chen Chen, Dongjie Wang, Zijun Yao

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

Abstract

Unstructured discharge notes in Electronic Health Records (EHRs) often carry signal complementary to structured medical codes, holding patient-specific evidence that standardized cohort-level codes alone cannot capture. However, this evidence in notes is frequently buried in lengthy, noisy text that is not intentionally written with any specific clinical prediction in mind. Summarization is an obvious mitigation, but generic summaries, tuned for fluency rather than the outcome, routinely omit decisive evidence while retaining plausible but uninformative detail. To this end, we propose RASPER, a Reward-Aligned Summarizer for Prediction in EHR, that optimizes note summarization directly against the downstream clinical task. RASPER employs a tunable LLM-based summarizer to extract task-relevant evidence from discharge notes and trains it via reinforcement learning from prediction feedback, using a reward derived from the downstream predictor's loss. To ground the summarizer, a longitudinal encoder converts structured codes into soft prompts that incorporate each patient's clinical context into note summarization. By rewarding the quality of the resulting multimodal prediction, RASPER encourages the summarizer to retain patient-specific evidence that complements, rather than duplicates, information captured by structured codes. RASPER consistently outperforms strong baselines on both readmission prediction and medication recommendation across MIMIC-III and MIMIC-IV.

1 Introduction

Electronic Health Records (EHRs) represent a patient's health trajectory with multimodal views: structured codes such as diagnoses capture standardized, cohort-level patterns across patients (Choi et al., 2016), while discharge notes record patient-specific symptom severity, treatment response, and clinician observations that codes cannot fully record (Tayefi et al., 2021).

Although discharge notes contain rich patient-specific information, they are primarily written for clinical documentation rather than predictive modeling. These raw notes are often lengthy, redundant, and sensitive to variation in documentation style (Liu et al., 2022). Directly feeding such notes into a model can therefore dilute the predictive signal and make the model sensitive to documentation artifacts rather than the underlying clinical state (H Moghaddam et al., 2026). A natural strategy is to summarize discharge notes with an LLM (Goyal et al., 2024; Gebreab et al., 2024), compressing noisy clinical narratives into a fluent, coherent summary before prediction. However, reducing note length and improving readability does not by itself ensure that the retained information is useful for a specific prediction task.

The predictive value of a note summary depends on both the downstream task and the patient-specific context. Although different clinical prediction tasks may rely on overlapping clinical information, the information that is most predictive of each task can differ (Yoon et al., 2025). Hence, a summary optimized only for generic coverage and denoising is optimized for the wrong objective (Yadav et al., 2021), since it might discard details that a specific prediction depends on while preserving plausible but uninformative clinical information. This mismatch suggests that discharge note summarization should not be treated as a separate preprocessing step, but should instead be aligned with the downstream prediction and patient-specific objective.

Existing EHR-LLM methods do not directly address this problem. Some approaches feed raw or hard-prompted notes into LLMs and inherit the noise of the original documentation (Jiang et al., 2023; Huang et al., 2019), and others rely on fixed

∗^{*}Corresponding author.

summaries or extracted textual features that are never tuned to the target outcome (H Moghaddam et al., 2026). Some structured code models discard the note modality altogether (Jiang et al., 2024; Xu et al., 2024). As a result, prior methods generally do not align the summarization process with the downstream clinical objective.

To close this gap, we propose RASPER, a Reward-Aligned Summarizer for Prediction in EHR. RASPER optimizes the summarization of notes directly against the downstream task: a tunable LLM summarizer is trained with reinforcement learning from prediction feedback (RLPF) (Wu et al., 2025), using the predictor's loss as the reward signal. A longitudinal EHR encoder maps structured codes into soft prompts that provide patient grounding. Because the reward reflects how well the note summary and the structured codes collaborate, the summarizer is encouraged to preserve note evidence that complements the structured code information and contributes to downstream prediction. The summarizer is first initialized through supervised fine-tuning on teacher-generated summaries, then optimized with this prediction-feedback objective to preserve the task-relevant evidence that improves predictive utility. Our approach makes the following contributions:

• We propose a reward-aligned note summarization framework that trains a tunable LLM summarizer directly against the downstream prediction objective, using reinforcement learning from prediction feedback rather than treating summaries as a fixed preprocessing step.

• We design an LLM-based predictor that jointly conditions on structured EHR soft prompts and generated note summaries, enabling prediction feedback to align the summarizer with both cohort-level code patterns and informative textual evidence.

• We conduct experiments on MIMIC-III and MIMIC-IV, showing consistent improvements over strong deep-learning and LLM-based baselines on two clinical prediction tasks.