EvalRx: Agentic Diagnosis and Verified Repair of Foundation Models

Jiaqi Liu, Ruinan Jin, Yitong Tang, Beidi Zhao, Gexin Huang, Qiong Zhang, Xiaoxiao LiarXiv 2026 · arXiv

TL;DR

EvalRx is an open-source agentic framework that automates the diagnosis and repair of foundation models (LLMs, VLMs, and ALMs). By combining statistical rigor with a tiered "repair ladder," it identifies systematic failure modes and applies verified fixes, yielding an average performance boost of 5.8 percentage points across diverse model families and modalities.

What Problem Does This Paper Address?

In the current AI landscape, evaluation is often a "black box" process: we know that a model fails on a benchmark, but we rarely know why. Traditional error analysis is manual, expensive, and doesn't scale. While some recent approaches use LLMs to "self-correct," these often lack statistical discipline, leading to "p-hacking" where a model might appear to improve on a specific set of examples while regressing elsewhere or hallucinating the cause of its own errors.

The authors identify a structural gap: the need for a workflow that moves from raw evaluation data to actionable, statistically verified repairs without introducing unacceptable regressions.

Methods

EvalRx introduces a closed-loop, five-stage agentic process (M1–M5) designed to turn failure analysis into a reproducible engineering discipline.

The EvalRx Workflow: From Probing to Validated Fixes
  1. M1 (Probe): The system clusters model failures and routes them to specialized analyzers. These look at black-box behavior (consistency, calibration), white-box internals (attention, logits), and multimodal grounding.
  2. M2 (Explore): A "StatsAnalysisAgent" performs statistical attribution to identify which diagnostic signals are most strongly associated with model failure.
  3. M3 (Diagnose): The system formulates falsifiable hypothesis contracts. Instead of a vague explanation, it creates a testable claim (e.g., "the model fails when short acoustic events are present").
  4. M4 (Verify): These hypotheses are adjudicated on held-out data using statistical tests with multiplicity control (like Benjamini-Hochberg or e-BH) to ensure findings aren't just noise.
  5. M5 (Repair): Supported diagnoses guide a "repair ladder." Repairs start at the least invasive tier (L1: prompt changes) and escalate to more complex interventions (L2: scaffolding, L3: internal steering, L4: parametric fine-tuning) only if necessary.

Crucially, a repair is only "promoted" to the next model version if it passes a verification gate: it must show a statistically significant improvement on the target behavior without causing unacceptable regressions on other tasks.

Overview of the EvalRx stages M1 through M5

Datasets

The framework was tested across three modalities using a variety of established benchmarks:

  • LLM (Text): BBH (word sorting and causal judgment), GSM8K (math), and HotpotQA (multi-hop reasoning).
  • VLM (Vision-Language): ChartQA, Spatial457, and Chair (grounding and hallucination).
  • ALM (Audio-Language): MMAU (general audio reasoning) and AudioCaps (hallucination detection).

The evaluation spanned four major model families: Gemini, Qwen, Gemma, and Nemotron, with scales ranging from 2B to 30B parameters.

Key Insights and Ideas

  • Hypothesis Contracts as Code: One of the most powerful ideas in EvalRx is treating a diagnosis as an executable contract. By forcing the agent to specify a claim, a target slice, and a test before seeing the verification data, the authors prevent post-hoc rationalization.
  • The Repair Ladder: Not all fixes are equal. By prioritizing non-parametric fixes (L1–L3) that keep model weights frozen, EvalRx offers a more cost-effective and auditable path to improvement than jumping straight to fine-tuning.
  • Statistical Discipline: The use of e-values and multiplicity correction (e-BH) provides a rigorous framework for "auto-research," ensuring that the agent doesn't just find patterns that exist by chance in small data slices.
  • Auditable Health Cards: Every successful repair generates a "health card"—a machine-readable record of the failure mode, the hypothesis, the evidence, and the repair recipe. This turns model improvement into a transparent audit trail.

Key Results

EvalRx achieved performance gains in all 12 evaluated model family–modality combinations.

  • Quantitative Gains: Improvements ranged from +1.4 to +10.9 percentage points, with an overall average of +5.8 points.
  • Scale Agnostic: The framework worked effectively across different model sizes, from small 2B parameter models to larger 30B parameter ones.
  • Specific Wins: Notable improvements included Gemini-2.5-Flash-Lite on word sorting (+16.0 pp) and Gemma-4-E2B on ChartQA (+21.9 pp).
  • Qualitative Success: The system successfully diagnosed and fixed complex issues, such as "copy-fidelity collapse" in word sorting and calculation errors in chart reasoning.

Limitations and Future Work

  • Validation Set Power: The authors note that using small validation sets can limit the statistical power of the M4 verification stage, potentially rejecting genuine improvements because the sample size was too small to reach significance.
  • Benchmark Contamination: Like all work in this field, results can be affected by the presence of benchmark data in the models' training sets.
  • Recursive Self-Improvement: The current study focuses on a single "generation" of repair. Future work aims to explore recursive improvement, where the system iteratively audits and repairs its own promoted versions over multiple cycles.
  • Reusable Recipes: The authors envision a "recipe registry" where successful interventions for one model could be retrieved and adapted for others.

Summary updated

Abstract

Model evaluation reveals where models fail, but rarely why or whether a proposed fix genuinely works. We introduce EvalRx, an open-source agentic framework for statistically grounded model diagnosis and repair. EvalRx discovers systematic failure modes, explores candidate mechanisms, formulates falsifiable hypotheses, and verifies them by executing frozen, pre-specified tests before using supported diagnoses to guide tiered repair. Candidate repairs are validated against the unchanged model and promoted only when they improve the target behavior without unacceptable regression. Across language, vision-language, and audio-language settings spanning Gemini, Qwen, Gemma, and Nemotron, EvalRx improves performance in all 12 evaluated model family-modality combinations, with gains ranging from +1.4 to +10.9 percentage points (+5.8 points on average). These results show that model evaluation can serve not only to measure failures, but to support an auditable process for diagnosing and repairing them.
BibTeX
@misc{liu2026evalrx,
  author = {Jiaqi Liu and Ruinan Jin and Yitong Tang and Beidi Zhao and Gexin Huang and Qiong Zhang and Xiaoxiao Li},
  title = {{EvalRx: Agentic Diagnosis and Verified Repair of Foundation Models}},
  year = {2026},
  eprint = {2610.25767},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.25767},
}

Loading related content...

Figure