LEAP-LLM: Preserving lead-time structure for question-conditioned ECG interpretation
Aakash Agarwal, Yidan Shen, Xin Fu, Renjie Hu
Abstract
The electrocardiogram (ECG) records cardiac electrical activity across multiple leads and is used for detecting cardiac abnormalities. Recent ECG-language models enable large language models (LLMs) to interpret cardiac signals and answer clinically relevant questions. However, existing ECG-language models typically encode the ECG independently of the clinical question, forcing the ECG representation to retain broad and potentially irrelevant signal information. Moreover, these models often aggregate information across leads which can obscure lead-specific details needed for a particular question. To tackle these limitations, we introduce LEAP-LLM, an ECG-LLM architecture for Lead-aware ECG Alignment with Prompt conditioning. LEAP-LLM uses the clinical question to guide ECG feature extraction while preserving explicit lead and temporal structure. Task-trained instruction representations distill information from the question and guide two complementary branches. The Lead branch captures question-relevant temporal patterns within each ECG lead, while the Temporal branch summarizes relevant information across leads at each temporal position. Together, they provide the LLM with compact, question-relevant ECG information while preserving lead and temporal structure. LEAP-LLM reduces modality-token count by 89.0% and prefill FLOPs by 7.2x on average relative to other ECG-LLMs baselines. Across four ECG benchmarks, LEAP-LLM achieves better performance, including a 3.4-percentage-point improvement in G12EC over the strongest prior ECG-specific method. We further show that the model adaptively emphasizes the clinically relevant anatomical lead groups for different cardiac abnormalities, with lead importance patterns consistent with established diagnostic knowledge, providing interpretable evidence that the predictions are supported by clinically meaningful ECG structure.
Create a lesson
Related papers
Preserving Pretrained CFG Structure in RL for Diffusion Models with Conditional Contrast Regularization
Shared title terminology · Yunfei Zheng, Xiaolong Wang, Dandan Zheng et al.
Time Series Structure Learning with Local Causal Parent Discovery
Shared title terminology · Jacqueline Maasch, Shu Wan, Hank Zhu et al.
Late-Time Dynamics of Flow Matching: Distance Geometry and Learning
Shared title terminology · Umberto Biccari, Junqing Huang, Kang Liu et al.
Cannot Wait to Verify: Parallel Drafting to Eliminate Verifier Idle Time in Speculative Decoding
Shared title terminology · Divya Jyoti Bajpai, Arun Verma, Manjesh Kumar Hanawal
More Bits Won't Fix It: Diagnosing and Treating an Ill-Conditioned Backward Pass (A Case Study on Gemma-4)
Shared title terminology · Jeong Hyun Lee
A Stationarity-Based Regret Framework for Time-Varying Nonconvex Composite Optimization
Shared title terminology · Nadav Hallak