NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Efficient evaluation and error pattern discovery for blackbox AI systems

Maxim Rabinovich, Harvineet Singh, Aman Sinha

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Efficient Multi-Agent Coordination · Type: new method · Keywords: black-box evaluation, importance sampling, error pattern discovery, surrogate error measures, Monte Carlo variance reduction

Areas: AI Agents › Agent Robustness › Agent Failure Attribution; Evaluation & Benchmarks › Language Model and Agent Benchmarks › System Reliability and Auditing

Summary

We derive an optimal importance sampler for error estimation using only system inputs and cheap surrogate error measures, enabling discovery and ranking of error patterns.

Explained to a 5-year-old

We have a smart computer that tries to guess answers. Sometimes we only have a cheap way to see if it's wrong. We create a special way to pick the hardest questions so we can learn what the computer gets wrong. This helps us find the mistakes that happen rarely but are important. It makes the computer better over time without needing a lot of work.

Explained to a 5-year-old, longer

A computer program can answer questions like a quiz. To know how well it works, we need to test it on many questions. Testing everything can be very slow and expensive. Sometimes we only have a simple way to guess if the answer is wrong. We invented a new method to choose the most useful questions to test. This method helps us see the mistakes that are hard to find. It also tells us how often those mistakes happen. We can use it to find hidden problems that could cause trouble. The new method works better than just picking random questions. It makes the computer more reliable without needing a lot of extra work. This helps developers improve the program faster. In the end, we can make safer and smarter AI systems.

For a technical reader

The paper addresses the challenge of evaluating black-box AI models when only inexpensive surrogate error signals are available. It formulates error estimation as a sampling problem and derives an optimal importance sampler that leverages model inputs and the surrogate signals. The sampler is theoretically analyzed, providing guarantees on variance reduction and convergence. It also extends to automatically discover and rank error patterns, enabling detection of rare failure modes. Empirical results on MMLU-Pro and TerminalBench 2.0 show consistent improvements over standard Monte Carlo evaluation.

Problem

Reliable evaluation of black-box AI systems is expensive, especially when only inexpensive surrogate signals of error are available, making it difficult to estimate overall error and uncover rare failure modes.

Method

We formulate error estimation as a sampling problem and derive an optimal importance sampler that leverages system inputs and cheap surrogate error measures. The sampler is theoretically analyzed and extended to discover and rank error patterns.

Results

The approach consistently outperforms standard Monte Carlo in estimating aggregate error, recovering failure modes, and detecting poison agent/environment injections.

Contributions

We provide an optimal importance sampler for error estimation under limited information and show how it can discover and rank error patterns, backed by theoretical analysis and empirical validation on standard benchmarks.

Limitations and assumptions

The method assumes only cheap surrogate error measures are available and does not address scenarios where no surrogate signals exist.

Practical relevance

Enables cheaper and more comprehensive evaluation of black-box AI systems, facilitating safer deployment and iterative improvement in optimization loops.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction