LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification

Kiana Taktehrani, Maryam Hosseini, Amir Keynia, Aram Montazami, Arash MohammadiarXiv 2026

Imagine your heart is a complex orchestra. To understand its performance, doctors use an Electrocardiogram (ECG), which places 12 different "microphones" (leads) around your chest. Each lead hears the music from a slightly different angle. For years, AI has tried to "listen" to these recordings to spot trouble, but most models are like specialized critics—they only know how to listen for one specific instrument or one specific genre.

The authors of LAF-ECG (Lead-Aware Foundation Fusion for ECG) have a different idea. They’ve built a system that combines two of the most powerful "brains" in modern AI: Large Language Models (LLMs), which are masters of semantic reasoning, and Time-Series Foundation Models (TSFMs), which are experts at spotting patterns in data over time.

TL;DR

LAF-ECG fuses the temporal precision of time-series models with the semantic reasoning of Large Language Models to decode the heart's electrical signals. By treating the 12 leads of an ECG as distinct but related "voices" and looking at them through multiple temporal resolutions, it achieves state-of-the-art classification without needing massive, task-specific retraining.

What Problem Does This Paper Address?

The current state of AI in cardiology is a bit fragmented. We have "foundation models"—huge neural networks trained on massive amounts of data—that are incredibly versatile. Some are trained on text (LLMs like Llama), and others are trained on general time-series data (like MOMENT).

However, applying these to ECGs is tricky for two main reasons:

  1. Mismatched Spaces: How do you combine a model that thinks in "words" with one that thinks in "waveforms"?
  2. The 12-Lead Puzzle: An ECG isn't just one line of data; it’s 12. Most models either flatten these leads into a single mess or treat them as entirely independent, losing the crucial spatial relationship between them.

The researchers wanted to find a way to let these two types of models "talk" to each other while respecting the unique, multi-lead structure of the human heart.

Methods

The LAF-ECG architecture is a dual-pathway framework. Think of it as a translator working alongside a master watchmaker.

Figure 1: Overview of the proposed LAF-ECG architecture, including the MedTsLLM reprogramming branch, lead-aware temporal foundation pathway, multi-resolution temporal context, and adaptive residual token fusion.
  • The Reprogramming Branch (The Translator): This path uses a technique called MedTsLLM. It takes patches of the ECG and "reprograms" them into the vocabulary space of an LLM (specifically Llama-2-7B). It’s essentially teaching the LLM to read heartbeats as if they were a foreign language.
  • The Temporal Branch (The Watchmaker): This path uses MOMENT-1-base, a model specifically designed to understand the "ticks and tocks" of time-series data.
  • The Secret Sauce - LTFM & MRTC:
    • The Lead-Aware Temporal Foundation Module (LTFM) is the star here. Instead of just averaging the 12 leads, it uses attention mechanisms to figure out which lead is most important at any given millisecond.
  • The Multi-Resolution Temporal Context (MRTC) looks at the signal at different scales—both the whole picture and smaller, overlapping windows—to ensure no subtle rhythm is missed.
  • Adaptive Fusion (ARTF): Finally, a gating mechanism decides how to blend the "language" view and the "temporal" view for the final classification.

Datasets

The model was put to the test on two heavy-hitting benchmarks:

  • PTB-XL: A massive dataset of 12-lead recordings categorized into five major superclasses (like Normal, Myocardial Infarction, etc.).
  • Chapman–Shaoxing: A dataset focused on rhythm classification, where the model had to distinguish between eight different types of heart rhythms.

Key Insights and Ideas

  • Leads are not created equal: The "Lead-Aware" component was vital. By allowing the model to focus on specific leads for specific patterns, it mirrored how human cardiologists actually read strips.
  • Resolution is key: The authors found that looking at the signal through multiple "windows" (MRTC) provided a global context that single-scale models lacked.
  • Cross-Branch Alignment: One of the cleverest tricks was forcing the two branches to "agree." By using a specific loss function (SCA), they ensured that the LLM path and the Temporal path were seeing the same underlying physiological reality, even if they were describing it differently.

Key Results

LAF-ECG didn't just work; it set new records.

  • On PTB-XL, it achieved 71.10% accuracy and a 62.43% macro-F1 score, significantly outperforming the previous best-in-class model, MedTsLLM.
  • On Chapman–Shaoxing, it reached an impressive 89.73% accuracy.
  • Ablation studies (where they turned off parts of the model to see what happened) proved that the "Lead-Aware" and "Multi-Resolution" features were the primary drivers of this success. Removing the high-res context caused the biggest performance drop.

Limitations and Future Work

While powerful, LAF-ECG is a "heavy" model. It contains roughly 6.77 billion parameters. Even though only a small fraction (0.77%) are actually being trained (the rest are "frozen" pretrained weights), it still requires significant hardware—the researchers used an NVIDIA H100 80GB GPU.

The authors note that while the throughput is decent (about 53-57 ECGs per second), they haven't yet optimized it for real-time use on low-power medical devices. Future work might involve shrinking the model or exploring how different types of text prompts (like patient metadata) could further sharpen the model's diagnostic "eyes."

Summary updated

Abstract

Automated electrocardiogram (ECG) interpretation has advanced substantially with deep learning, yet many methods remain task-specific and label-dependent. Large language models (LLMs) and time-series foundation models (TSFMs) offer complementary pretrained representations, but integrating them is challenging because of mismatched feature spaces and the lead- and scale-dependent structure of ECG signals. We propose LAF-ECG (Lead-Aware Foundation Fusion for ECG), a dual-foundation framework that extends MedTsLLM with a lead-aware interface to a frozen TSFM backbone while retaining its reprogramming pathway. The proposed framework captures multi-resolution temporal context, fuses temporal and language-aligned ECG representations through adaptive residual integration, and employs branch-specific supervision with cross-branch alignment. LAF-ECG achieves 71.10% accuracy and 62.43% macro-F1 on PTB-XL, and 89.73% accuracy and 65.94% macro-F1 on Chapman-Shaoxing, outperforming MedTsLLM on both datasets. These results highlight the value of preserving lead-specific temporal structure when combining temporal and language foundation representations for ECG classification. The code is publicly available at https://github.com/kkianamm/LAF-ECG.
BibTeX
@misc{taktehrani2026laf,
  author = {Kiana Taktehrani and Maryam Hosseini and Amir Keynia and Aram Montazami and Arash Mohammadi},
  title = {{LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification}},
  year = {2026},
  eprint = {2611.29721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29721},
}
Figure