EchoMERIT: Unifying Clinical Experience, Tool Correction, and Deterministic Verification for Echocardiography Agents

Xinyue Liang, Yue Zhou, Dianye Huang, Zhongliang JiangarXiv 2026

TL;DR

Reading a heart ultrasound isn’t a fuzzy creative writing exercise—it requires measuring moving chambers across multiple angles, chaining strict medical equations, and knowing when to say "I can't tell from this scan." EchoMERIT wraps a compact 8B language model in deterministic rule-checkers, visual tool-error sensors, and read-only clinical playbooks. The result? A small, local medical AI agent that matches giant frontier models in clinical reasoning while slashing invalid tool calls to near zero.

What Problem Does This Paper Address?

Imagine asking an AI to evaluate a transthoracic echocardiogram (a standard heart ultrasound). Today's paradigms each hit a wall:

  1. Direct Video VLMs look at video frames and guess numbers end-to-end—which is unreliable and leaves zero paper trail.
  2. Open-Loop Tool Agents wisely hand off measurements to specialist cardiac vision models (like EchoNet or PanEcho). However, the LLM planner blindly trusts those frozen tools, swaps centimeters for millimeters, skips intermediate equations, or hallucinates answers when the right ultrasound view is missing.
  3. Multi-LLM Debates add massive 120B+ LLM "critics" to review the planner's work. Because an LLM critic shares the exact same stochastic blind spots as the LLM planner, it can still miss a simple unit error while burning huge amounts of compute.

Furthermore, frozen specialist tools suffer from numerical drift across hospitals. If an upstream tool mismeasures a heart wall by 15%, every downstream clinical formula inherits that error—and retraining massive medical foundation models for every clinic is prohibitively expensive.

Comparison of clinical AI paradigms, showing how EchoMERIT combines memory, calibrated visual evidence, and deterministic verification on a local 8B model to match frontier accuracy.

Methods

Instead of throwing bigger LLMs at procedural math and physics, EchoMERIT builds a closed-loop architecture around three external, plug-and-play modules—plus an optional reinforcement learning (RL) recipe:

  • Asymmetric Deterministic Verification Harness: Replaces slow LLM critics with sub-millisecond programmatic code checks. It acts asymmetrically based on clinical risk: recoverable execution slips (like forgetting an American Society of Echocardiography guideline rule or swapping cm/mm) trigger up to two targeted diagnostic retries. Unrecoverable scope violations (like asking about a pathology the scan doesn't cover) trigger an immediate, hard refusal.
  • Attribution-Conditioned Visual Error Calibration (Attr-Corr): How do you know a frozen vision tool just made a mistake without retraining it? You look at where it looked. During the tool's forward pass, Attr-Corr extracts gradient attribution maps (Grad-CAM heatmaps showing which pixels drove the prediction) and feeds them—alongside the raw prediction—into a tiny ResNet or 3D-CNN sensor. If the tool looked at the wrong anatomy, Attr-Corr predicts a residual correction and flags a risk alert in ~15–18 ms.
  • Read-Only Clinical Experience Memory: Offline-distilled, scope-partitioned guidance containing two layers: calibration priors (warning the planner when a tool's output falls into an uncertain borderline zone) and workflow playbooks (step-by-step clinical recipes). Because it is frozen and external, it prevents test-time drift across patients.
  • Verification-Guided Policy Learning: Using process signals from the deterministic harness, the authors train a local Qwen3-8B planner via supervised warm-start and Group Relative Policy Optimization (GRPO). Crucially, they introduce advantage clamping, ensuring failed rollouts never accidentally receive positive reinforcement just for failing "less badly" than their peers.

Datasets

  • ECHOTOOLBENCH (Newly Introduced): Built from PhysioNet's MIMIC-IV-Echo and EchoNet (EchoNet-Dynamic and EchoNet-LVH), strictly partitioned by patient to prevent data leakage. It evaluates 76 tasks across four scopes: Study (full multi-view exams), Single-Video (single clips), Spatial (pixel-level masks/calipers), and Text (hemodynamic math). Answers are graded using Concept-Grounded Strict Accuracy—meaning a right answer only counts if it cites the right underlying clinical evidence handles.
  • External Zero-Shot Audit: MIMICEchoQA (582 locked test patients) is used to test out-of-distribution generalization.

Key Insights and Ideas

  • Don't send a stochastic LLM to do a Python script's job: Replacing the deterministic harness with a same-backbone LLM verifier increased latency by 41% while letting nearly 10% of out-of-scope queries slip through. Code checks enforce 100% refusal in under a millisecond.
  • Saliency maps are secretly great error sensors: Researchers usually look at Grad-CAM heatmaps post-hoc to check interpretability. EchoMERIT proves they carry actionable error signals: shuffling the heatmaps collapses error-reduction down to a basic scalar baseline, proving where the encoder looked tells you how much its number drifted.
  • Priors teach accuracy; playbooks teach syntax: Ablating the memory layers reveals a clean division of labor—calibration priors drive clinical reasoning accuracy up, while workflow playbooks slash malformed tool calls by 3.5×.
  • RL sharpens discipline, not medical trivia: Verification-guided GRPO barely changes raw accuracy over supervised warm-start, but it eliminates redundant tool calls and consolidates near-flawless execution syntax.

Key Results

  • Local 8B Matches Frontier Giants: On multi-view Study blind tests, EchoMERIT lifts Qwen3-8B from 56.61% to 68.60% plug-and-play (zero weight updates), and 70.25% with training—matching frontier DeepSeek-V4.1-Flash + Ours (69.83%) and Qwen3.8-Flash + Ours (70.66%), while crushing direct video VLMs (≤31.4% lenient accuracy).
  • Execution Discipline & Safety: Invalid tool calls on Qwen3-8B plummet from 0.56 to 0.01 per query, and refusal on unsupported queries hits 100% (32/32) with <1% false abstentions.
  • Fast, Accurate Visual Calibration: On EchoNet-Dynamic, 3D-Attr lowers ejection-fraction Mean Absolute Error from 5.18 to 4.37 percentage points—achieving 5.2× greater error reduction than LoRA-tuned video VLMs while running ~200× faster (15 ms vs. ~3 seconds).
  • Unseen Task Composition: On held-out tasks never seen during training, the 8B planner jumps from 53.6% to 71.4% (Study) and 25.0% to 67.0% (Text).

Limitations and Future Work

  • Feature-Map Resolution Bottlenecks: On sub-millimeter parasternal calipers (EchoNet-LVH), coarse CNN feature grids (~0.16 cm/cell) limit Attr-Corr to matching a simple scalar corrector. Similarly, averaging across many views in full studies already smooths out single-clip noise, leaving less room for 2D calibration gains.
  • Vulnerability to Skewed External Priors: On the external MIMICEchoQA benchmark—which has heavily skewed multiple-choice distributions (picking "B" blindly scores 57.4%)—plug-and-play modules helped frontier Qwen3.8, but the post-trained 8B model and 2D calibrator lost accuracy compared to the base agent, highlighting a need for domain-adaptive calibration.
  • Retrospective Scope: Evaluations rely on retrospective, single-center cohorts and automated grading; prospective multi-center clinician adjudication remains a necessary next step.

Summary updated

BibTeX
@misc{liang2026echomerit,
  author = {Xinyue Liang and Yue Zhou and Dianye Huang and Zhongliang Jiang},
  title = {{EchoMERIT: Unifying Clinical Experience, Tool Correction, and Deterministic Verification for Echocardiography Agents}},
  year = {2026},
  eprint = {2611.37877},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37877},
}
Figure