TL;DR
This paper introduces AutoSys, a framework designed to streamline the development and operation of learning-augmented systems. It addresses the complexities of integrating machine learning into production systems by unifying the development process, handling ad-hoc jobs, and mitigating learning-induced failures, ultimately demonstrating significant performance improvements in Web Search.
What Problem Does This Paper Address?
Modern systems are increasingly incorporating machine learning (ML) and deep learning (DL) to optimize performance and decision-making. However, integrating these ML/DL capabilities into existing production systems is challenging due to several factors:
- Complexity of ML/DL Integration: Simply implementing ML/DL algorithms isn't enough; it requires a holistic approach to system design and operation.
- Ad-hoc and Nondeterministic Jobs: ML-driven optimization tasks often generate unpredictable jobs that are difficult to provision and manage.
- Learning-Induced System Failures: The inherent uncertainty in ML models can lead to unexpected system behavior or failures, which are hard to debug with traditional methods.
- Operational Challenges: Heterogeneous decision-making, multi-dimensional evaluation metrics, and end-to-end system optimization create significant operational complexity.
- Bridging the Gap: There's a need for a unified framework that can handle these challenges, allowing engineers to leverage ML/DL effectively without being overwhelmed by the underlying complexities.
Methods
The paper proposes AutoSys, a framework designed to unify the development of learning-augmented systems. Its core principles and components include:
- Hybrid Architecture: AutoSys employs a centralized training plane for sharing data and models across different scenarios, and decentralized inference planes for system-specific interactions, allowing for customization and efficient load distribution.
- Optimization Task Formulation: System decision-making is framed as an optimization task, where the output is optimal system knob settings. This can be achieved through direct prediction from ML/DL models or indirect prediction where models predict performance metrics that a solver then uses.
- Cross-Layer Solution for Job Management: To handle ad-hoc and nondeterministic jobs, AutoSys prioritizes jobs based on their expected gains and uses containerization for flexible execution, accommodating heterogeneous resource requirements.
- Rule-Based Engine for Failure Mitigation: To address learning-induced system failures, AutoSys incorporates a human-verifiable rule-based engine that validates ML/DL actuations and checks for discrepancies between predicted and actual performance.
- Extensible Tuner Abstraction: AutoSys uses a
Tunerabstraction that is agnostic to specific candidate generation algorithms, allowing for easy integration of various ML/DL optimization techniques (e.g., TPE, SMAC, Hyperband, random search). - Framework Overview: The framework consists of a Training Plane (handling candidate generation, benchmarking, and model training) and an Inference Plane (supporting ML/DL inferencing and optimization solvers).
Datasets
The paper primarily uses production data from Microsoft's Web Search system for training and evaluation. Specific datasets and workloads mentioned include:
- Image and video domain data for optimizing the Keyword-based Selection Engine (KSE).
- Production workload traces for tuning the RocksDB key-value store.
- 14-day window of measurements from a production cluster for tuning the MLTF engine.
- A production workload containing 150K queries and 2.5M URLs for tuning the Ranking Engine (RE).
The paper does not introduce new benchmarks but rather leverages existing production systems and their associated data.
Key Insights and Ideas
- The "black box" approach to ML/DL integration is costly: Modeling an entire system as a single black box, while simplifying initial development, leads to high re-training and exploration costs due to system dynamics and the need for extensive data.
- Modularity is key to managing learning costs: Breaking down learning tasks into smaller, composable units (e.g., subsystem-specific models) can significantly reduce re-training costs and improve adaptability.
- Human expertise is a double-edged sword: While valuable for guiding optimization, human input can also introduce biases or conflicting specifications, necessitating careful validation and a mix of human-labeled and random exploration data.
- Closed-loop control interfaces are crucial: Systems need well-defined interfaces for both actuating changes and reporting measurements in a learnable format to effectively support learning-augmented systems.
- System dynamics necessitate continuous adaptation: Workload diversity and system changes require models to be continuously retrained or adapted to maintain optimal performance.
Key Results
The paper demonstrates significant performance improvements and effort reduction across various components of Web Search:
- Keyword-based Selection Engine (KSE):
- Up to 33.5% reduction in 99-percentile latency.
- Up to 11.5% reduction in CPU utilization.
- Per-search-segment granularity proved most effective for balancing trade-offs.
- Semantics-based Selection Engine (SSE):
- 20.0% reduction in average latency while maintaining relevance.
- Ranking Engine (RE):
- 3.4% improvement in NDCG@5 (relevance score).
- RocksDB key-value cluster:
- Lookup latency on-par with years of expert tuning.
- MLTF key-value cluster:
- 16.8% reduction in average 99-percentile latency.
- Tuning Effort: AutoSys significantly reduces the manual effort required for system tuning, as demonstrated by the comparison to years of expert tuning.
Limitations and Future Work
- Limitations:
- Learning Costs: Despite efforts to mitigate them, learning costs (re-training and exploration) can still be higher than expected, especially for complex systems.
- Human-in-the-Loop Pitfalls: Human expertise can inadvertently introduce biases or conflicting specifications, requiring careful management.
- Closed-Loop Interfaces: Many production systems lack the necessary well-defined control interfaces, requiring customization.
- System Measurement Quality: Imbalanced measurements and noise can affect model training and optimization.
- Future Work:
- Model Evolution: Studying how learning-augmented systems should evolve their models over time.
- End-to-End and Full-Stack Optimization: Investigating how to safely carry out full-stack system optimization in practice.
- Standardizing Modularity: Developing standardized methodologies for modularizing learning tasks.
- Automating Interface Customization: Exploring ways to automate the creation of closed-loop control interfaces.
Summary updated