Coverage-Aware Test Generation for Conversational AI Agents

Mridul Katta, Darin GlattAIWILD @ ICML 2026

TL;DR

Scenario Studio (SS) introduces a coverage-aware pipeline for testing conversational AI agents, solving the problem of "intent collapse"—where synthetic data generators over-focus on common topics while ignoring niche capabilities. By modeling an agent's intent space as a graph and using a real-time feedback loop to steer generation toward uncovered areas, SS achieves a 5.5× improvement in test coverage over state-of-the-art baselines, proving that smart orchestration matters more than raw model power.

What Problem Does This Paper Address?

When developers use LLMs to generate synthetic test cases for AI agents, they often run into intent collapse. Because LLMs tend to sample from the most prominent "clusters" in documentation, a single-pass generation might produce hundreds of variations of a "book a ride" scenario while completely missing "cancel a ride" or "update account info."

The authors frame this as a distribution collapse problem. Much like the "coupon collector’s problem" in probability theory, trying to hit every possible intent by simply generating more and more random scenarios is incredibly inefficient. Without a map of what has already been tested, the LLM keeps "collecting" the same common intents, leaving the "long tail" of agent capabilities untested and vulnerable.

Methods

The authors present Scenario Studio (SS), a config-driven pipeline that treats test generation like "coverage-guided fuzzing" in traditional software engineering. It consists of three main components:

  1. PolicyGraph: An LLM-extracted behavior graph where nodes represent testable policies (e.g., "restaurant search") and edges represent dependencies. This serves as the "map" of the agent's entire capability surface.
  2. CoverageTracker: A real-time ledger that monitors which nodes in the PolicyGraph have been exercised by generated scenarios.
  3. Gap-Directed Generation: Instead of a single pass, SS runs in rounds. In each round, it identifies "gaps" (uncovered nodes) and explicitly steers the LLM backends to generate scenarios for those specific areas.

SS is designed to be pluggable, meaning it can orchestrate existing tools like DeepEval or PromptFoo as backends. It also includes a Production Style Profiler to ensure synthetic queries match the messy, abbreviated, and casual tone of real human users rather than the "perfect" prose typically produced by LLMs.

Datasets

The system was evaluated using two production agents from Uber:

  • Agent-A: A diverse, multi-capability assistant covering 7+ intent families (e.g., flights, weather, deliveries) with 127 human-curated ground-truth queries.
  • Agent-B: A narrow B2B ride-booking agent with 106 ground-truth queries.

The ground-truth sets were authored by engineers and PMs before Scenario Studio was built, ensuring no data leakage into the generation context.

Key Insights and Ideas

  • Architecture Beats Model Capability: One of the most striking findings is that SS running on a "low-tier" model (like GPT-4o-mini) outperformed premium models (like GPT-5.2) used in a standard, single-pass setup. This suggests that for complex tasks like test generation, the process of exploration is more important than the intelligence of the individual generator.
  • Intent Collapse is Structural: The authors proved that simply "scaling up" (generating more scenarios) doesn't fix intent collapse. Even when generating 250 scenarios, baseline tools still concentrated 98% of their output on a single intent family.
  • Context Compilation is Half the Battle: Simply providing a structured "context package" (domain specs, taxonomies, etc.) to existing tools like DeepEval improved their coverage from 15.7% to 50.8%, even without the steering loop.

Key Results

  • Massive Coverage Gains: On the diverse Agent-A, SS achieved 86.6% ground-truth coverage, compared to just 15.7% for DeepEval Synthesizer—a 5.5× improvement.
  • Cost Efficiency: SS reduced the "cost-per-covered-intent." While it uses more LLM calls to steer the generation, it misses so few intents that the price to achieve full coverage is actually lower ($0.023 vs $0.034 per query).
  • Adversarial Robustness: SS successfully generated adversarial scenarios across 12+ attack categories, covering 5 out of 10 OWASP LLM risk categories (the ones testable via dialogue).
  • Redundancy Reduction: A consolidation stage removed 31–37% of redundant scenarios while actually slightly improving total coverage.

Limitations and Future Work

  • DomainSpec Overhead: SS requires a DomainSpec (a YAML file describing the agent). While they provide a tool to auto-generate this from code, it still requires human review.
  • LLM-as-Judge Circularity: Both the graph extraction and the coverage evaluation rely on LLMs. While the authors used a "dual-judge" system with different model lineages to mitigate bias, they acknowledge that human validation of these semantic judgments is the next logical step.
  • Public Benchmarks: The current study uses proprietary production agents. The authors aim to evaluate SS against public conversational-agent benchmarks in the future to provide a more standardized comparison.
  • Multimodal Expansion: The team is already working on extending SS to handle text, image, and audio scenarios simultaneously.

Summary updated

BibTeX
@inproceedings{katta2026coverage,
  author = {Mridul Katta and Darin Glatt},
  title = {{Coverage-Aware Test Generation for Conversational AI Agents}},
  booktitle = {AIWILD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=WaXKc6bXS5},
}
Figure