Adaptive Test Case Discovery for LLM-Assisted Decision Making in High-Stakes Domains

Anjali Parashar, Carson Sobolewski, Yingke Li, Fei Chen, Chuchu FanNeurIPS 2026

TL;DR

Before trusting an LLM to help approve bank loans, allocate disaster relief, or spot tumors, you need to know where and how it breaks—without burning through thousands of API queries. This paper frames LLM stress-testing as a sequential search game, using generative flow models to hunt down a diverse suite of failure cases on a tight budget. The result is an adaptive testing pipeline that uncovers up to twice as many critical blind spots as standard active-testing methods.

What Problem Does This Paper Address?

LLMs are increasingly wired into high-stakes decision workflows, digesting everything from credit histories to satellite imagery. Because they are black boxes, pre-deployment auditing is non-negotiable.

Right now, we mostly rely on static benchmarks—giant spreadsheets of pre-written prompts. Static benchmarks have two glaring issues: they go stale as models evolve, and they measure average performance rather than efficiently hunting down edge-case failures. Running exhaustive evaluations over complex, multimodal tasks is simply too slow and expensive. We need a sample-efficient way to automatically design test scenarios that deliberately stress-test a pipeline against specific, user-defined failure criteria—without getting stuck testing the exact same failure mode over and over.

Methods

The authors treat test-case discovery as adaptive experimental design—essentially an active learning loop that picks the next test scenario based on everything it has seen so far.

Figure 1: Adaptive Experiment Design for generating diverse and high quality candidates. Our pipeline has three main components, (a) data collection using sequential LLM queries, (b) training surrogate flow models qθ, qϕ to estimate mutual information and learn the testing objective for data acquisition objective α (Equation (1)), (c) adaptive scenario generation for finding diverse and high utility candidates by optimizing α.

At each step, an acquisition function scores candidate scenarios by balancing two goals:

  1. Quality (Exploitation): Does this scenario trigger our testing objective? Objectives are plug-and-play—e.g., deviating from ground truth, low LLM self-confidence, or triggering disagreement across different LLMs.
  2. Diversity (Exploration): Measured via Mutual Information (MI), which nudges the search toward unfamiliar territory where the system's own parameters are uncertain.

Normally, Gaussian Processes (GPs) act as the lightweight "surrogate model" in these loops, predicting how the LLM will behave before actually querying it. However, GPs choke on high-dimensional images and mixed categorical data.

What’s novel here is replacing GPs with Continuous Normalizing Flows (CNFs) trained via Flow Matching. Because single flow ensembles struggle to both predict outcomes accurately and estimate uncertainty, the authors introduce a hybrid flow surrogate:

  • A nominal flow model predicts the expected testing objective (quality).
  • A bootstrapped ensemble of flow models estimates epistemic uncertainty (diversity). By sharing a mathematical transformation across ensemble members, the authors compute Mutual Information analytically in latent space using Pairwise Distance Estimators—dodging expensive Monte Carlo sampling.

Datasets

Rather than introducing a single static benchmark, the authors evaluate their dynamic discovery loop across five diverse decision-making setups:

  • Bank Loan: 10-dimensional tabular applicant profiles (income, credit history, etc.) mapped to accept/deny decisions.
  • News (Stock Prediction): Synthetic financial news summaries generated from six categorical markers (sentiment, prior trends, conflicting signals) plus prior returns.
  • Disaster Image & Disaster Tweet: Satellite image pairs (encoded via 384-D DINOv2 embeddings) from the Disaster M3 dataset, plus text tweets (in the appendix), used to select immediate recovery actions.
  • Camelyon17: Histopathology image patches for medical tumor detection, providing hard ground-truth labels.

Key Insights and Ideas

  • Using an LLM to test an LLM is a trap: Prompting an LLM to generate tricky test cases (LLM-Batch) yielded the worst failure-discovery and diversity scores across tasks. An LLM's generated scenarios simply mirror its own blind spots.
  • LLMs falter when signals clash: Across domains, cross-model disagreement spiked when strong positive and negative cues collided—like stocks with strong prior gains paired with gloomy news, or low-income loan applicants requesting large loans despite spotless credit.
  • Exploitation without exploration collapses: Dropping the Mutual Information term slightly boosts the raw hit-rate of bad scenarios, but causes diversity to plummet—meaning you just find the exact same bug 100 times.
  • Robustness to noisy labels: Because random label corruption inflates irreducible aleatoric noise rather than the epistemic uncertainty driving exploration, the pipeline still discovers true failures effectively even when 30% of ground-truth labels are flipped.

Key Results

Across all tasks, the hybrid flow approach (Our) consistently beat random sampling, Bayesian Neural Networks (BNN), Deep Kernel GPs (Deep GP), and LLM-generated batches on balancing failure discovery with scenario coverage.

Figure 2: Baseline comparison for h3: Average Cumulative Utility (top) and Coverage (bottom). Left to right: Bank Loan, News, Disaster Image (mean ± std. computed across five seeds).
  • 2x Failure Discovery: On Camelyon17 tumor detection, the method hit a 72.4% true failure discovery rate, doubling Random Sampling (36.0%) and BNN (34.0%), while Deep GP stumbled on the high-dimensional image embeddings (30.4%).
  • Guideline Blind Spots: On Bank Loan, 83% (415/500) of discovered scenarios were cases where standard Debt-to-Income guidelines said "approve," yet GPT-5.2 rejected the applicant.
  • Model Personalities: Cross-model testing revealed distinct quirks—for example, GPT-5.4-mini was far more lenient on loans (54.2% approval on disputed cases vs. GPT-5.2's 21.2%) but noticeably more pessimistic on stock forecasts.

Limitations and Future Work

  • Compute Overhead: Training an ensemble of flow models at each iteration costs marginally more compute than a Deep GP—though unlike GPs, it actually scales to complex, high-dimensional inputs.
  • Task Complexity Scaling: Convergence slows down not just with input dimensionality, but with intrinsic task complexity (like nuanced financial news). The authors suggest pairing the method with feature-learning tools (e.g., Recursive Feature Machines) to shrink the search space.
  • Future Work: Currently, humans still inspect the discovered scenarios to diagnose why the LLM failed. Next, the authors hope to bolt on neuro-symbolic regression and hypothesis testing to automatically extract human-readable rules explaining the LLM's failure modes.

Summary updated

Abstract

Large language models (LLMs) are increasingly used for assistive decision-making in high-stakes domains, yet their outputs can be unreliable and difficult to audit. This necessitates pre-deployment testing, which can be used to identify scenarios where an LLM-assisted pipeline fails to produce satisfactory decisions. Existing testing strategies are often not sample-efficient and struggle to adapt to diverse testing objectives, application domains, and rapidly evolving models. We introduce a sample-efficient scenario design strategy for testing LLM-based decision-making pipelines. Our approach formulates testing as adaptive experimental design, using a flow-based surrogate model to sequentially acquire scenarios that balance optimization to discover challenging test cases with diverse exploration. We evaluate the method across several LLM-assisted decision-making tasks: bank loan approval, stock prediction from news articles, disaster resource allocation from tweets and images and tumor detection in histopathology images. Our approach consistently discovers challenging scenarios that satisfy the testing objective across all tasks, providing high coverage over scenario space. Results and code available at [this URL](https://mit-realm.github.io/adaptive-llm-test-discovery/).
BibTeX
@inproceedings{parashar2026adaptive,
  author = {Anjali Parashar and Carson Sobolewski and Yingke Li and Fei Chen and Chuchu Fan},
  title = {{Adaptive Test Case Discovery for LLM-Assisted Decision Making in High-Stakes Domains}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vWITPJYgBo},
}
Figure