Fantastic Adaptive Taxonomies and How to Use Them

Mert Cemri, Andrei Cojocaru, Melissa Pan, Shu Liu, Shubham Agarwal, Alexander Krentsel, Jay Tang, Kannan Ramchandran, Joseph E. Gonzalez, Matei Zaharia, Alex Dimakis, Ion StoicaarXiv 2026

TL;DR

AdaMAST introduces a fully automated pipeline that converts an LLM agent's messy execution traces into a structured, compact failure taxonomy. By organizing failures along three fixed axes (system-level, role-specific, and domain-specific), it creates a persistent, reusable vocabulary that significantly improves agent optimization, runtime self-repair, and trajectory selection while slashing context costs.

What Problem Does This Paper Address?

When LLM agents fail, they leave behind long, complex execution traces. Currently, developers and optimization algorithms handle this feedback in one of two deeply flawed ways:

  1. Scalar scores (like pass/fail metrics or verifier ratings), which tell you that a trajectory failed, but completely lose the context of why.
  2. Free-text critiques, which explain the why but are generated from scratch for every single run and immediately discarded.

This means agent systems constantly re-diagnose the exact same recurring bugs (e.g., a tool call retried incorrectly or a verifier rubber-stamping a bad answer) without accumulating a stable, shared vocabulary of errors. Furthermore, pre-authored, fixed failure checklists can't adapt to the unique roles of a specific multi-agent architecture or the niche constraints of a specialized domain.

Methods

The authors introduce AdaMAST (Adaptive Multi-Agent System Failure Taxonomies), a framework that automatically induces a target-specific failure taxonomy directly from an agent's historical traces without any human annotation.

The taxonomy organizes discovered failure modes into three fixed axes to ensure they map directly to actionable intervention points:

  • System-level (Axis A): Failures in the harness or orchestration surrounding the agents.
  • Role-specific (Axis B): Failures tied to the specific behavioral roles discovered in the architecture.
  • Domain-specific (Axis C): Failures requiring specialized task or domain knowledge.
Figure 1: Three adaptive failure axes. The axes of intervention are fixed; the concrete code names, definitions, role labels, and evidence patterns are induced from the target system’s traces. Shown: representative codes from the OlympiadBench evolution run, with verbatim evidence excerpts from the run’s judge outputs in quoted italics (Appendix G.2); unquoted lines under C-codes are induced code descriptions (Table 6).

The AdaMAST pipeline operates in four distinct phases:

  1. Analysis: Extracts domain context, agent roles, and behavioral signals from a trace sample.
  2. Curation: Proposes candidate failure codes separately for each axis.
  3. Consolidation: Deduplicates codes across axes, fixes naming violations, and ensures coverage.
  4. Inter-Annotator Agreement Gate: A panel of independent LLM annotators labels held-out traces using a multi-round deliberation protocol. The taxonomy is only deployed if the agreement reaches a high reliability threshold (Cohen’s $\kappa \ge 0.75$).
Figure 2: AdaMAST pipeline. ANALYSIS, CURATION, and CONSOLIDATION produce a draft taxon- omy through an eight-step induction pipeline (Appendix B.1). INTER-ANNOTATOR AGREEMENT gates deployment: four independent LLM annotators label stratified held-out traces under a five-phase deliberation protocol, over up to five rounds of five traces each; the taxonomy is accepted once mean pairwise area-level agreement reaches κ ≥0.75 with a coverage floor of 0.70, and a failed round triggers merge/add/relabel edits and re-runs (Appendix B.2).

Crucially, AdaMAST features online refinement, meaning the taxonomy dynamically updates (merging, adding, or retiring codes) as the agent system evolves during optimization.

Datasets

The framework was evaluated across a diverse suite of benchmarks spanning multiple capabilities:

  • Agent-System Search: Frontier-CS (competitive programming), OlympiadBench (olympiad-level math/science), MMLU-Pro (STEM QA), TheoremQA (math), and DROP (discrete reasoning).
  • Runtime Monitoring: SWE-bench Verified Mini (software engineering) and OfficeQA Pro (document-grounded quantitative reasoning).
  • Trajectory Selection: Terminal-Bench 2.0 (harnessing command-line interface agents).
  • Human Validation: TRAIL (a dataset of GAIA-derived traces annotated by human software engineering experts).

Key Insights and Ideas

  • Taxonomies must be adaptive, not fixed: General, hand-crafted failure checklists fail because they cannot anticipate domain-specific edge cases. Taxonomies induced by AdaMAST for different domains shared codes at a mean pairwise Jaccard overlap of only 0.14—proving that a system's failure vocabulary must be learned from its own unique experiences.
  • Massive compression with zero loss in distinction: Coding raw traces into structured taxonomies compresses the failure surface by $\sim$18×. When used to predict future run success, the taxonomy performs on par with or better than reading the verbatim trace pool while consuming up to 95× fewer context tokens.
  • LLMs can build better vocabularies than humans: Under a matched annotation panel on the TRAIL dataset, AdaMAST’s automatically induced vocabulary aligned significantly better with expert human judgments ($\kappa = 0.682$) than the benchmark's own hand-crafted reference vocabulary ($\kappa = 0.516$).

Key Results

The authors demonstrated that a single induced taxonomy can be consumed unchanged by three entirely different downstream procedures to yield major performance gains:

  • Optimizing Agent Architectures: Integrating taxonomy-coded diagnoses into an evolutionary search loop (AdaEvolve) beat standard free-form reflection across all 5 reasoning benchmarks, yielding improvements of +3.5 to +7.5 percentage points.
Figure 3: Search gains across benchmarks. Post-search accuracy of AdaMAST and the LLM Reflection baseline in Table 1, across competitive programming, mathematical reasoning, STEM QA, and discrete reasoning. AdaMAST improves on all five benchmarks, by +3.5 to +7.5 pp.
  • Runtime Self-Repair: When deployed as a runtime skill at checkpoint intervals, taxonomy feedback helped agents catch and fix their own errors mid-trajectory. It raised SWE-agent’s resolution rate on SWE-bench Verified Mini from 60% (using free-text reflection) to 70%, and boosted Claude Code from 64.0% to 70.7%.
  • Trajectory Selection: AdaMAST-Judge converted induced failure codes into verification criteria to rank completed trajectories, improving best-of-5 selection accuracy on Terminal-Bench 2.0 by 8–15 points over Pass@1.

Limitations and Future Work

  • Substrate Sensitivity: In trajectory selection, AdaMAST relies on a learned feature selector and heuristic verifiers. Performance gains are heavily tied to the quality of this surrounding selection substrate rather than the vocabulary alone.
  • Prompting Bias during Audits: Forcing an LLM to explicitly audit a run code-by-code can sometimes introduce a negative bias, causing it to over-diagnose failures even on successful runs. Passive in-context provision of the taxonomy currently yields better results.
  • Future Directions: While this work focuses on optimization without changing model weights (prompts, workflows, and routing), a compelling next step is exploring how these structured, adaptive failure vocabularies can be used to guide actual model fine-tuning and weight updates.

Summary updated

BibTeX
@misc{cemri2026fantastic,
  author = {Mert Cemri and Andrei Cojocaru and Melissa Pan and Shu Liu and Shubham Agarwal and Alexander Krentsel and Jay Tang and Kannan Ramchandran and Joseph E. Gonzalez and Matei Zaharia and Alex Dimakis and Ion Stoica},
  title = {{Fantastic Adaptive Taxonomies and How to Use Them}},
  year = {2026},
  eprint = {2607.16387},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.16387},
}
Figure