SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.14326 · 2026

ECG-Reasoning-Benchmark: A Benchmark for Evaluating Clinical Reasoning Capabilities in ECG Interpretation

Kaist, Edward Choi, Jungwoo Oh, Hangyul Yoon, Hyunseung Chung, Ki Lee, Min-Gyu Kim, Muhan Yeo, Junhee Lee, Youngchae Lee

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2603.14326.json · badge: /api/ran/2603.14326.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Jwoo5/ecg-reasoning-benchmark canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
base64_image_encoder Ran
ran; our contract draft was wrong, not the code
Jwoo5/ecg-reasoning-benchmark/ecg_reasoning_benchmark/utils.py
code served (permissive licence) · get_code("8e43b05662c26657")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import base64
import io
from PIL import Image

# Create a small test image
width, height = 4, 3
image = Image.new('RGB', (width, height), color=(255, 0, 0))

ARGS = {
    'image': image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate_results Ran
ran; our contract draft was wrong, not the code
Jwoo5/ecg-reasoning-benchmark/ecg_reasoning_benchmark/evaluation.py
code served (permissive licence) · get_code("965ab11a62addd96")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
from pathlib import Path

# Create a minimal Evaluator subclass
class MinimalEvaluator:
    def __init__(self):
        self.metrics = {
            'total': {'metric1': 0.5, 'metric2': 0.75},
            'dx1': {'metric1': 0.6, 'metric2': 0.8},
        }
        self.evaluated_results = []
    
    def init_metrics(self, name: str, reset: bool = False):
        """Initialize metrics for a given name."""
        if name not in self.metrics:
            self.metrics[name] = {}
    
    def evaluate(self, result: dict):
        """Evaluate a single result."""
        self.evaluated_results.append(result)
    
    def reduce_metrics(self, name: str) -> dict:
        """Reduce metrics for a given name."""
        return self.metrics.get(name, {})
    
    def to_csv_row(self, reduced_metrics: dict, model: str) -> dict:
        """Convert reduced metrics to a CSV row."""
        return {'model': model, **reduced_metrics}


# Create temporary directory structure with sample result files
temp_dir = tempfile.mkdtemp()
results_dir = temp_dir
model_name = "test_model"
dataset_name = "test_dataset"

# Create nested directory structure
model_dir = os.path.join(results_dir, model_name, dataset_name)
os.makedirs(model_dir, exist_ok=True)

# Create subdirectories with sample JSON files
for dx in ['dx1', 'dx2']:
    dx_dir = os.path.join(model_dir, dx)
    os.makedirs(dx_dir, exist_ok=True)
    
    # Create sample result JSON files
    for i in range(2):
        result_file = os.path.join(dx_dir, f'result_{i}.json')
        with open(result_file, 'w') as f:
            json.dump({'prediction': i, 'ground_truth': i % 2}, f)

# Instantiate the evaluator
evaluator = MinimalEvaluator()

ARGS = {
    'results_dir': results_dir,
    'model': model_name,
    'dataset': dataset_name,
    'evaluator': evaluator,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_data Ran
ran; our contract draft was wrong, not the code
Jwoo5/ecg-reasoning-benchmark/ecg_reasoning_benchmark/inference.py
code served (permissive licence) · get_code("079913ef2f262e91")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile

# Create a temporary directory and JSONL file for testing
temp_dir = tempfile.mkdtemp()
dataset_name = "test_dataset"
jsonl_path = os.path.join(temp_dir, dataset_name + ".jsonl")

# Write sample JSONL data
sample_data = [
    {"id": 1, "value": "sample1"},
    {"id": 2, "value": "sample2"},
    {"id": 3, "value": "sample3"}
]

with open(jsonl_path, 'w') as f:
    for sample in sample_data:
        f.write(json.dumps(sample) + '\n')

# Define ARGS
ARGS = {
    "dataset": dataset_name,
    "data_dir": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_letter_indexed Ran
ran; our contract draft was wrong, not the code
Jwoo5/ecg-reasoning-benchmark/ecg_reasoning_benchmark/utils.py
code served (permissive licence) · get_code("e186589d35e07f11")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - It takes a List[str] as input
# - It iterates through the list with enumerate
# - It creates formatted strings with letter prefixes (a, b, c, etc.)
# - It returns a List[str]

options = [
    "Option one",
    "Option two", 
    "Option three",
    "Option four"
]

ARGS = {
    "options": options
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_retryable_error Not yet run
unverified (harvested, no recorded run)
Jwoo5/ecg-reasoning-benchmark/ecg_reasoning_benchmark/evaluators/gemini.py
code served (permissive licence) · get_code("288aecfb4465e958")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

While Multimodal Large Language Models (MLLMs) show promising performance in automated electrocardiogram interpretation, it remains unclear whether they genuinely perform actual step-by-step reasoning or just rely on superficial visual cues. To investigate this, we introduce ECG-Reasoning-Benchmark, a novel multi-turn evaluation framework comprising over 6,400 samples to systematically assess step-by-step reasoning across 17 core ECG diagnoses. Our comprehensive evaluation of state-of-the-art models reveals a critical failure in executing multi-step logical deduction. Although models possess the medical knowledge to retrieve clinical criteria for a diagnosis, they exhibit near-zero success rates (< 6% Completion) in maintaining a complete reasoning chain, primarily failing to ground the corresponding ECG findings to the actual visual evidence in the ECG signal. These results demonstrate that current MLLMs bypass actual visual interpretation, exposing a critical flaw in existing training paradigms and underscoring the necessity for robust, reasoning-centric medical AI. The code and data are available at https://github.com/Jwoo5/ecg-reasoning-benchmark.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2603.14326")
get_code_for_paper("2603.14326")
have("2603.14326")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2603.14326.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2603.14326.svg)](https://syntology.ai/paper/2603.14326)

Connect an agent — have() is free.