TL;DR
This paper introduces a novel method to automatically generate human-readable heuristics for complex computer systems, specifically storage systems, by extracting them from Deep Reinforcement Learning (DRL) agents. This approach bridges the gap between the performance of black-box DRL models and the interpretability required for real-world system tuning, outperforming both default system settings and expert-designed heuristics.
What Problem Does This Paper Address?
Tuning computer systems, especially for performance optimization, is a complex and time-consuming task. While traditional heuristics (like FIFO or LRU) are interpretable, they often require extensive manual design and may not adapt well to dynamic workloads. Machine learning, particularly DRL, has shown promise in optimizing these systems, but its "black-box" nature makes it difficult for human experts to understand, verify, and trust the learned strategies. This lack of transparency hinders deployment in critical systems where traceability and sanity checks are paramount. This paper addresses this challenge by proposing a method to extract understandable, human-readable heuristics from DRL agents, making advanced optimization techniques more accessible and trustworthy for system administrators.
Methods
The core of the paper's contribution lies in a pipeline designed to extract interpretable heuristics from DRL policies. The process involves:
- RNN-based Reinforcement Learning: A Recurrent Neural Network (RNN) is used to model the storage system's resource allocation problem as a Markov Decision Process (MDP). This RNN-based DRL agent is trained to optimize a specific objective (minimizing makespan, i.e., completion time) by learning a policy for CPU core migration between different system levels (NORMAL, KV, RV).
- Finite State Machine (FSM) Extraction: After the DRL agent converges, a Quantized Bottleneck Network (QBN) technique is employed to extract a Finite State Machine (FSM). This involves training auto-encoders to reconstruct the agent's observations and hidden states, quantizing them into discrete representations, and then learning a transition table that forms the FSM.
- Generalization Capability Enhancement: To address the challenge of limited real-world workload data, two methods are proposed:
- Curriculum Learning: The DRL agent is first trained on a set of synthesized "easy" workload traces (generated using Vdbench based on customer business models) before being fine-tuned on a smaller set of "hard" real-world workload traces.
- Observation Classification: Unseen observations are classified based on their similarity (e.g., Euclidean distance, cosine similarity) to known observations, allowing them to trigger transitions within the extracted FSM.
- Interpretation of Extracted States: The extracted FSM states are interpreted by analyzing the "Fan-in" (observations leading to a state) and "Fan-out" (observations resulting from a state) statistics, as well as the history of observations preceding a state transition. This helps domain experts understand the semantic meaning of each state and the underlying logic of the learned heuristic.
Datasets
- Synthesized Workload Traces: 12 classes of standard workload traces were synthesized using the Vdbench tool, representing typical business models.
- Real Workload Traces: A small number of real workload traces from customers were used.
- Combined Dataset for Training: 50 workload traces were generated by sampling snippets from the synthesized workloads.
- Evaluation Dataset: The performance was evaluated on ten real workloads.
Key Insights and Ideas
- Bridging the DRL interpretability gap: The paper successfully demonstrates that complex DRL policies can be distilled into understandable FSMs, making them suitable for deployment in real-world systems where transparency is crucial.
- Curriculum learning significantly improves generalization: Training on synthesized workloads first before fine-tuning on real data leads to faster convergence and better performance, especially when real-world data is scarce. This is a practical approach for systems that cannot be easily operated in a training environment.
- Extracted FSMs capture nuanced strategies: The interpretation of FSM states reveals that the learned heuristics go beyond simple load balancing, adapting to specific workload characteristics (e.g., differentiating between read and write-heavy scenarios) to optimize performance.
- Human-readable heuristics can outperform handcrafted ones: The extracted FSMs, derived from DRL, achieved better performance than a handcrafted heuristic designed by human experts, highlighting the power of automated learning for complex system tuning.
Key Results
- The proposed curriculum learning strategy for DRL training converged faster and achieved better results (lower makespan) compared to training solely on real workload traces.
- The extracted FSM, when applied to real workloads, outperformed both the default system settings and a handcrafted heuristic.
- On average, the extracted FSM achieved an 11.5% reduction in makespan compared to the handcrafted FSM.
- The extracted FSM performed slightly worse than the original DRL model (0.88% increase in makespan on average), which is attributed to information loss during the quantization process.
Limitations and Future Work
- Information Loss in Quantization: The paper acknowledges that the extracted FSM performs slightly worse than the original DRL model due to information loss during the quantization step.
- Limited Real Workload Data: The reliance on synthesized workloads and the scarcity of real workload data are noted as challenges, though addressed by curriculum learning.
- Future Work: The authors suggest that their integrated pipeline can be applied to other computer systems and that further research could explore more sophisticated methods for heuristic extraction and interpretation to minimize information loss. They also imply that the insights gained from interpreting the FSMs can inspire domain experts to design even better handcrafted heuristics.
Summary updated