TL;DR
This paper tackles the challenge of evaluating and continuously improving enterprise-grade generative AI assistants, which are complex, multi-component systems. They introduce a novel framework that prioritizes human-centered evaluation, a severity-based error taxonomy, and a holistic approach to identify and address issues across the entire system, not just individual models.
What Problem Does This Paper Address?
Developing and maintaining effective enterprise AI assistants is a significant challenge. These assistants are not monolithic; they are intricate pipelines of multiple machine learning models and components. Evaluating their performance and driving improvements is difficult because:
- Lagging Metrics: Traditional metrics like user satisfaction and retention are "lag measures" that only become available after deployment, making it hard to guide immediate improvements.
- Data Quality & Representativeness: Obtaining high-quality, representative data for evaluation at scale is a hurdle.
- System Dynamics: The components of an AI assistant, the underlying models, and the user's needs and questions are constantly evolving.
- Human-Centered Design: The assistant's success hinges on both its technical capabilities and how effectively its user interface (UI) surfaces these capabilities.
- Privacy & Security: Enterprise assistants handle sensitive data, requiring careful consideration of privacy and security during evaluation.
Existing evaluation methods like explicit feedback (e.g., thumbs up/down), implicit feedback (user actions), and benchmark datasets have limitations. Explicit feedback is often sparse and unrepresentative, while implicit feedback can be noisy and not directly indicative of user goals. Off-the-shelf benchmarks are rarely domain-specific enough for enterprise assistants.
Methods
The authors propose a comprehensive framework for evaluation and continual improvement, built on several key design decisions:
- Prioritize Directly Impacted Metrics: Focus on "correctness" metrics that are responsive to production changes, assuming these will lead to positive downstream outcomes.
- Align Metrics with User Experience: Recognize that not all errors have equal impact. The framework aims to capture the nuance of user experience, distinguishing between minor inconveniences and critical failures.
- Human Evaluation Over Automated: While automated evaluation is efficient, human judgment is deemed more reliable for reflecting true user outcomes. High-quality human judgments are used to validate automated metrics.
- Efficient Allocation of Human Evaluators: Employ a tiered approach: non-experts handle large-scale annotation of masked production data, while domain experts conduct detailed error analysis.
- Collect End-to-End and Component-wise Metrics: Assess both the overall system performance and the quality of individual components.
- System-Wide Improvements: Consider all parts of the system—ML models, UI/UX, and data—as potential areas for improvement.
A core element is a Severity-based Error Taxonomy:
- Severity 0 (Sev-0): Convincing but incorrect answers (e.g., hallucinations). Erodes trust.
- Severity 1 (Sev-1): Wrong answers that users cannot recover from, leading to frustration.
- Severity 2 (Sev-2): Wrong answers that users can recover from (e.g., by rephrasing), causing annoyance but not complete abandonment.
The framework involves an Annotation Tool and an Error Analysis environment. Non-experts annotate masked production data, and domain experts analyze samples to identify error patterns and propose improvements. This leads to actionable insights for prompt engineering, model training, synthetic data generation, and data index optimization.
Datasets
The paper does not explicitly mention specific public datasets used for training or evaluation. Instead, it focuses on using masked production data from their enterprise AI assistant for evaluation and analysis. They also discuss the creation of new golden-labeled data for model improvements based on human annotations.
Key Insights and Ideas
- The "Convincing but Wrong" Problem (Sev-0): This is a critical new class of error introduced by generative AI, distinct from traditional search engine errors. It's particularly damaging to enterprise AI as it erodes user trust.
- Human-Centered Design is Paramount: The UI plays a crucial role in how users perceive and interact with the AI. A well-designed UI can mitigate errors and improve the overall experience, even if the underlying model isn't perfect.
- Decomposed Systems Offer More Levers: Building an assistant from multiple orchestrating models, rather than a single monolithic one, provides more "levers of improvement" (prompts, models, data indexes, UX) for addressing issues.
- Iterative Development is Key: The framework evolved organically. Using simple tools like spreadsheets initially allowed for learning and adaptation before building complex, specialized tools.
- Error Severity is a Powerful Organizing Principle: Connecting user tolerance for different error types to a severity framework helps prioritize improvement efforts effectively.
Key Results
The paper presents preliminary results through examples, highlighting the framework's impact:
- Error Dashboard: A dashboard visualizes component-wise and end-to-end errors by severity and over time, aiding stakeholders in tracking progress.
- Out-of-Scope Classifier: Introducing an out-of-scope text classifier reduced Sev-0 errors by 14.3% (from 21.6% to 6.2% in Sprint 2).
- UI Override for Out-of-Scope: When the new classifier led to in-scope questions being misclassified as out-of-scope, a UI override mechanism was implemented. This converted potential Sev-1 errors (refusal to answer) into Sev-2 errors (user can recover), demonstrating the value of human-centered design.
- Focus on Explainability: The team is exploring explainability techniques to help users understand and trust the AI, aiming to move Sev-0 errors to Sev-1/Sev-2 buckets.
Limitations and Future Work
Limitations: * The paper acknowledges that the Assistant is still under active development, implying that the current results are preliminary. * While they prioritize human evaluation, the paper doesn't detail the scale or cost of this human evaluation process.
Future Work: * Human-in-the-Loop/LLM-in-the-Loop Automation: Scale evaluation and error analysis processes. * Proactive User Studies: Extend the framework beyond retrospective analysis to evaluate in-development functionalities. * Personalization: Develop metrics and datasets to cater to different user personas and technical levels. * Deeper ML-UX Interplay: Explore how the interaction between ML and UX components can lead to more explainable and accurate assistants. * Causal Impact Assessment: Conduct A/B tests to assess the causal impact of the AI assistant on user engagement and productivity in the workplace.
Summary updated