NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient evaluation and error pattern discovery for blackbox AI systems

Maxim Rabinovich, Harvineet Singh, Aman SinhaNeurIPS 2026

TL;DR

Evaluating frontier AI systems is brutally expensive, and randomly sampling inputs to test is a terrible way to hunt down rare, critical bugs. By using cheap "surrogate" signals—like a smaller model's outputs—to guide which inputs we actually test on the heavy-duty system, we can estimate overall error rates with much higher precision. Even better, this targeted sampling acts like a magnet for failure modes, giving engineers a rich catalog of actual bugs to fix without blowing their compute budget.

What Problem Does This Paper Address?

Imagine deploying an LLM in medicine, law, or automated software engineering. You face two intertwined headaches: you need to evaluate the system to know its overall error rate, and you need to improve it by diagnosing what it gets wrong. Because running frontier models (and paying human experts to grade them) is expensive, you only have budget to probe a tiny fraction of your data.

Figure 1: Contrary to a desired automated recursive feedback loop, real-world deployments of AI systems, especially in regulated industries, require humans in the loop to triage, categorize, and prioritize errors. Our approach aims to jointly optimize and automate (1) and (2) under limited resource constraints for evaluation.

If you pick test examples uniformly at random (standard Monte Carlo), and your model is 95% accurate, 95% of your evaluation budget goes toward watching the model succeed. Existing methods to make evaluation cheaper usually require pre-existing calibration datasets, well-behaved input embeddings, or fixed benchmarks. This paper tackles the messy reality where you have none of those—just a black-box system, raw inputs, a tight budget, and a cheap, rough proxy for when the system might fail.

Methods

The authors reframe both evaluation and bug-hunting as an importance sampling problem. Instead of sampling inputs uniformly, they sample each input with a probability proportional to how "risky" it looks according to a cheap surrogate (like a weaker LLM from the same family, or a simple heuristic).

To keep the math honest—since intentionally oversampling hard problems would otherwise make the model look worse than it is—they weight the results using standard statistical tools like the Horvitz-Thompson (HT) estimator, post-stratification, and Prediction-Powered Inference (PPI) (a modern control-variate technique).

What’s new here is deriving an optimal, calibration-free Poisson sampling distribution via convex optimization that requires zero embeddings or held-out training data. Furthermore, they extend this setup to error pattern discovery: by building a candidate taxonomy of errors from the cheap surrogate's failures across the whole dataset (warm-start) or running an LLM analyzer on the sampled failures (cold-start), they can estimate the exact share of total loss caused by specific bug types.

Datasets

The authors evaluate their approach across three distinct domains (no new public benchmarks are introduced):

  • Medical Guideline Parsing: A proprietary dataset of noisy, unstructured clinical guidelines parsed into logical structures.
  • MMLU-Pro: A standard, challenging multiple-choice question-answering benchmark across subjects like Math, Physics, and Law.
  • TerminalBench 2.0: An agentic coding benchmark where AI agents execute tasks inside command-line interfaces, including an experiment where the authors inject synthetic network-masking "poisons" into a subset of tasks.

Key Insights and Ideas

  • The Operational Rule of Thumb: How much speedup can a surrogate actually buy you? The authors prove that your maximum variance-reduction gain is bounded by the inverse of the smallest fraction of data the surrogate can isolate as containing nearly all the errors. If a surrogate flags 5% of inputs, your ceiling is a 20x gain—if it captures >99.9% of errors. If it only captures 95% of errors, the gain drops to ~5x. Selectivity sets the ceiling; calibration determines how close you get.
  • Sampling vs. Estimation is a False Choice: Modern methods like PPI reduce variance by tweaking the estimator on uniformly sampled data. While Uniform + PPI gets good error-rate estimates, it still only surfaces a tiny handful of actual errors. Pairing importance sampling with PPI gives you both low-variance estimates and 2x to 3.5x more actual failures to inspect.
  • Cached Scores are Free Real Estate: Running a surrogate on the whole dataset costs money. When paying from scratch, only very cheap, highly informative surrogates beat uniform sampling on net dollar cost. However, in leaderboards or iterative company workflows where a previous generation model has already been run, reusing those cached scores makes importance sampling cost-effective almost universally (32 out of 35 tested agent pairs).

Key Results

Variance reduction and failure discovery curves on medical guideline parsing.

Variance reduction and failure discovery curves on medical guideline parsing.
  • Medical Parsing: Using a simple non-LLM diff heuristic or GPT-5.4 Nano to guide evaluation of a GPT-5.4 Mini parser cuts estimator variance by 1.5x to 2.4x while surfacing severe failures at a much steeper rate than random sampling.
  • MMLU-Pro: Using one-step-weaker surrogates (e.g., Claude Sonnet 4.6 $\rightarrow$ Opus 4.6) yields up to 1.8x aggregate variance reduction, jumping to 2.4x on low-error subjects like Math (5.1% error rate). For error pattern discovery, it delivers 2x–4x sample efficiency in recall, and 4x–10x variance reduction when estimating the prevalence of specific reasoning errors.
  • Agentic Coding & Poisoning: On TerminalBench 2.0, same-family surrogates yield ~1.7x–1.8x variance reduction on multi-trial failure metrics. When network connectivity was secretly broken on just 5 out of 89 tasks, importance sampling recovered the "Network & Remote Access" failure mode over half the time in fewer than 30 samples, handily beating Monte Carlo.

Limitations and Future Work

  • The "Rare Error" Squeeze: As frontier AI systems get better and errors grow rarer, a fixed-quality surrogate loses discriminative power, requiring larger budgets or much sharper surrogates to maintain precision.
  • Separability Required for Ranking: On TerminalBench categories, importance sampling didn't improve the ranking of error categories because the true failure rates across categories were too close together relative to estimation noise.
  • Future Directions: The authors leave closing the full automated optimization loop (feeding discovered error patterns directly into prompt/code mutators like GEPA or MIPROv2) to future work, alongside extracting richer correctness signals from reasoning traces and using adaptive sampling when even the surrogate is too expensive to run everywhere.

Summary updated

BibTeX
@inproceedings{rabinovich2026efficient,
  author = {Maxim Rabinovich and Harvineet Singh and Aman Sinha},
  title = {{Efficient evaluation and error pattern discovery for blackbox AI systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nH1NodvfBz},
}
Figure