cs.LGNov 23, 2026

HEART: Hierarchical Expert Adaptive Refinement Transformer for ECG Representation Learning

Authors: Junho Song, Jong-Hwan Jang, Joon-Myoung Kwon, Yong-Yeon Jo

Organizations: MedicalAI Co., Ltd., Seoul, Korea

Abstract

Learning robust representations from electrocardiograms (ECGs) is challenging because repeated cardiac cycles coexist with subtle and sparse diagnostic cues in local morphology and rhythm-level context. Existing ECG foundation models commonly rely on Transformerbased patch encoders with uniformly shared dense refinement pathways, limiting adaptive processing across heterogeneous ECG tokens. We propose HEART (Hierarchical Expert Adaptive Refinement Transformer), an ECG foundation model that introduces stage-specific conditional expert refinement during self-supervised pre-training. HEART places a local-level MoE over patch-level representations before temporal contextualization and a global-level MoE over context-integrated token representations after self-attention. Token-level Top-1 routing allows different patches or contextual tokens within the same ECG to follow different expert pathways. On public ECG benchmarks, HEART achieves strong performance under both linear probing and fine-tuning, with particularly large frozen-encoder gains on PTB-XL Form and Rhythm (+6.76 AUROC points each over the strongest protocol-reproduced baseline). Routing analyses provide qualitative evidence of complementary local and global expert specialization. We release our code and pretrained models at https://anonymous.4open.science/r/HEART-5E9F.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ECG-MoE: Mixture-of-Expert Electrocardiogram Foundation Model

    Mar 4, 2026Yuhao Xu, Xiaoda Wang, Yi Wu +3Electrocardiogram Foundation ModelsElectrocardiography

  2. On the role of the tokenizer in ECG transformer models

    Sep 14, 2026Jiawei Li, Fabio Bonassi, Johan Sundström +2Electrocardiogram ClassificationTime Series Transformers

  3. 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