cs.LGNov 13, 2026

LEAP-LLM: Preserving lead-time structure for question-conditioned ECG interpretation

Authors: Aakash Agarwal, Yidan Shen, Xin Fu, Renjie Hu

Organizations: University of Houston

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.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Foundation Model for Cardiac Time Series via Masked Latent Attention

    Mar 27, 2026Moritz Vandenhirtz, Samuel Ruipérez-Campillo, Simon Böhi +6Electrocardiogram Representation LearningElectrocardiogram Foundation Models

  2. ELF: A Family of Encoder-Free ECG-Language Models

    Jan 5, 2026William Han, Tony Chen, Chaojing Duan +6HealthcareElectrocardiography

  3. ECGJev: Question-Conditioned Option Scoring for 12-Lead ECG Interpretation

    Nov 1, 2026Zhuoyuan Li, Xidong Wu, Hanyu Cui +4Electrocardiogram InterpretationElectrocardiogram Classification