HeartLLM: Discretized ECG Tokenization for LLM-Based Diagnostic Reasoning
On the map: LLM reasoning → Clinical and biomedical applications
Abstract (arXiv)
Electrocardiography (ECG) plays a central role in cardiovascular diagnostics, yet existing automated approaches often struggle to generalize across clinical tasks and offer limited support for open-ended reasoning. We present HeartLLM, a novel framework that integrates time-series (TS) and language modeling by enabling large language models (LLMs) to process 12-lead ECG signals for clinical text generation tasks. Our approach discretizes continuous ECG embeddings into quantized codes using a lead-wise encoder and quantization module. These quantized codes are then mapped to an extended ECG vocabulary to form ECG tokens, enabling the model to process both ECG and natural language inputs within a unified framework. To bridge the modality gap, we pretrain the model on an autoregressive ECG token forecasting task, allowing the LLM to capture temporal dynamics through its inherent language modeling capability. Finally, we perform instruction tuning on both ECG question answering and diagnostic report generation. Without modifying the core model, HeartLLM achieves strong performance across tasks while maintaining generalization to out-of-distribution settings. Extensive experiments demonstrate the effectiveness of each component and highlight the potential of integrating discretized ECG tokens into LLMs for medical reasoning.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Clinical and biomedical applications, one of 17 directions in LLM reasoning. Builds on 2 of its 42 references that are in the map. First posted on arXiv 21 Aug 2025.
Builds on
2 of 42 references.
References · 2
- 2023Visual Instruction Tuningcited by 7,869
- 2013Estimating or Propagating Gradients Through Stochastic Neuronscited by 55
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026ECG-LLM: Foundation Model for ECG-Based Cardiac Reasoning
- 2025ECG-LLM -- training and evaluation of domain-specific large language models for electrocardiography
- 2026ECGQuest: Benchmarking and Fine-Tuning Language Models for Electrocardiography
- 2026ECG-Reasoning-Benchmark: A Benchmark for Evaluating Clinical Reasoning Capabilities in ECG Interpretation
- 2026CARE-ECG: Causal Agent-based Reasoning for Explainable and Counterfactual ECG Interpretation
- 2025ECG-aBcDe: Overcoming Model Dependence, Encoding ECG into a Universal Language for Any LLM
- 2024Electrocardiogram Report Generation and Question Answering via Retrieval-Augmented Self-Supervised Modeling
- 2026ECG Foundation Models and Medical LLMs for Agentic Cardiovascular Intelligence at the Edge: A Review and Outlook