TL;DR
This paper introduces a comprehensive framework developed by Adobe and UC Berkeley to monitor, benchmark, and continuously improve compound enterprise AI assistants. By combining a tiered error-severity taxonomy, coreset-based active sampling for human annotation, and shared holdout datasets, the framework systematically reduces critical errors while optimizing engineering workflows across multiple development teams.
What Problem Does This Paper Address?
Deploying AI assistants in enterprise environments (like the Adobe Experience Platform) comes with incredibly high stakes. Unlike creative applications where a "hallucination" might be viewed as a spark of imagination, an incorrect answer in a business context can lead to flawed decision-making, wasted operational effort, and an immediate erosion of user trust.
Furthermore, modern enterprise assistants are rarely single models; they are compound AI systems composed of multiple specialized agents handling unstructured text, structured databases, and API actions. Managing these systems introduces three core challenges:
- The Annotation Bottleneck: As production traffic scales, manually reviewing every single interaction becomes logistically and financially impossible.
- Subjectivity in Evaluation: Defining what constitutes a "bad" response is highly subjective, making it difficult to scale human evaluation beyond a small group of experts.
- Multi-Team Regressions: When different teams independently update separate components of the assistant, they risk introducing downstream regressions if they lack a unified, proactive evaluation benchmark.
Methods
The authors address these challenges through a three-pronged framework:
1. Hierarchical Error Severity Taxonomy
Rather than treating all errors equally, the authors introduce a DevOps-inspired tiered classification system:
- Severity-0 (Sev-0): The most dangerous error. The answer is wrong, but it looks correct, meaning the user cannot discern the inaccuracy.
- Severity-1 (Sev-1): The answer is clearly wrong or incoherent, and the user cannot recover (e.g., a system error).
- Severity-2 (Sev-2): The answer is wrong, but the user can successfully recover by rephrasing the query.
To scale this evaluation to non-expert annotators, they decompose these subjective categories into a structured, objective decision tree.
2. Efficient Subsampling via Coresets
To combat the annotation bottleneck, the authors reject uniform random sampling. Instead, they build coresets—subsets of data that mathematically approximate the properties of the full dataset. They use dense embeddings (LLm2vec on top of Llama 3 8B Instruct) to capture query-answer features and apply the Greedy Iterative Geodesic Ascent (GIGA) algorithm to select the most informative interactions for human review.
3. Proactive Evaluation and Shared Holdouts
To prevent multi-team regressions, the framework establishes shared evaluation datasets that are refreshed quarterly. Production data is sampled, annotated, and split into a Development Set (used by teams during regular iteration) and a strict Holdout Set (untouched during development, used purely for final pre-launch validation).
Datasets
The framework was deployed and evaluated using real-world production traffic from the Adobe Experience Platform (AEP) AI Assistant, which became generally available in June 2024. The datasets consist of historical, anonymized user queries and agent responses spanning both conceptual question-answering (over public documentation) and operational data querying (over structured data stores).
Key Insights and Ideas
- UX Can Fix ML Failures: One of the most profound insights is that system reliability isn't just about upgrading the underlying LLM. Improving explainability, user interface steps, or giving users better paths to clear up ambiguity can turn an unrecoverable error (Sev-1) into a recoverable one (Sev-2), drastically improving the user experience.
- Objective Decomposition Scales Better: You cannot scale an annotation program by asking non-experts "Is this answer high quality?" However, you can scale it by asking a sequence of simpler, binary questions like "Did the model invent a feature?" or "Are the UI steps wrong?"
- Smart Sampling Saves Real Money: Randomly sampling logs for evaluation is highly inefficient. By leveraging the geometric properties of data embeddings via coresets, teams can get an equally accurate picture of system performance with a fraction of the manual labor.
Key Results
- Annotation Reduction: The coreset-based sampling strategy using the GIGA algorithm achieved a 20% to 30% reduction in the number of samples required to reach the same root mean squared error (RMSE) as uniform random sampling. The authors note that this reduction translates directly to saving roughly a full day's worth of work for a trained expert annotator per evaluation batch.
- Production Target: The framework successfully aligned engineering and research teams around a singular, clear objective: driving insidious Sev-0 errors down below a strict 5% threshold.
Limitations and Future Work
While highly effective, the authors acknowledge a few limitations and areas for development:
- Linearity Assumption: The coreset selection method assumes a linear relationship between the dense feature embeddings and the error severity space. While empirically successful, this assumption might be overly restrictive for highly complex, non-linear interaction patterns.
- Moving Beyond Single Turns: The current framework primarily focuses on evaluating individual query-response pairs. The authors plan to expand the paradigm to capture multi-turn conversational nuances, including dialogue consistency, tone/style appropriateness, and the assistant's active ability to perform disambiguation when a user provides an ambiguous prompt.
Summary updated