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.
- 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.
- M2 (Explore): A "StatsAnalysisAgent" performs statistical attribution to identify which diagnostic signals are most strongly associated with model failure.
- 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").
- 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.
- 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.
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