SLIM: a Scalable Light-weight Root Cause Analysis for Imbalanced Data in Microservice

Rui Ren, Jingbang Yang, Linxiao Yang, Xinyue Gu, Liang Sun

Abstract

In modern microservice architectures, identifying the root cause of failures is a critical yet challenging task due to the extreme imbalance between normal and faulty data. Existing Root Cause Analysis (RCA) methods often rely on "black-box" deep learning models that suffer from high training overhead and a lack of interpretability. This paper introduces SLIM (Scalable Light-weight Root Cause Analysis), a framework that utilizes interpretable decision rule sets to identify faults. By directly optimizing the F1 score using a novel DistortedGreedy algorithm and Minorize-Maximization (MM) approach, SLIM achieves superior accuracy while requiring only 15% of the training overhead compared to state-of-the-art methods.

Introduction

As microservice environments at companies like Netflix and Alibaba scale to include thousands of interconnected services, the complexity of maintaining system reliability grows exponentially. When new code is deployed or configurations change, they often introduce rare, "minority" faults. These faults are difficult to detect because they are buried within a massive volume of normal operational data—a classic "needle in a haystack" problem.

Traditional RCA tools face two primary hurdles. First, data imbalance causes standard machine learning models to prioritize overall accuracy, often ignoring rare fault events to minimize global error. Second, the black-box problem inherent in deep learning models prevents engineers from understanding why a service failed, which is unacceptable in high-stakes production environments where rapid remediation is required.

The SLIM Framework

SLIM departs from the trend of using heavy neural networks, instead employing Decision Rule Sets. These sets express fault logic in Disjunctive Normal Form (DNF), creating human-readable "IF-THEN" statements (e.g., IF CPU usage > 80% AND Disk Read > 180, THEN Fault). This approach ensures that the output is immediately actionable for site reliability engineers.

Technical Innovations

To make rule-based RCA viable at scale, SLIM introduces three core technical innovations:

  1. Direct F1 Score Optimization: Rather than optimizing for simple accuracy, which is misleading in imbalanced datasets, SLIM targets the F1 score—the harmonic mean of precision and recall. This ensures the model remains sensitive to rare fault occurrences.
  2. DistortedGreedy Algorithm: Optimizing the F1 score is a complex combinatorial problem. SLIM treats this as a submodular function problem and applies a "distorted greedy" search. This strategy prioritizes high-precision rules during the early stages of training to avoid false positives, gradually shifting focus toward improving recall as the model matures.
  3. Minorize-Maximization (MM): To navigate the massive search space of potential rules across thousands of metrics, SLIM uses an MM approach. By iteratively finding tight lower bounds for the objective function, SLIM generates rules with high computational efficiency.

System Pipeline

The SLIM pipeline is modular, beginning with log extraction via the Drain algorithm. Metrics are then passed through a feature binarizer to convert continuous data into discrete buckets, followed by the rule generation engine and a final voting mechanism for multi-fault localization.

Experimental Evaluation

The researchers evaluated SLIM against four distinct datasets, ranging from public benchmarks to massive real-world production data:

  • Datasets A & B: Public benchmarks featuring 18 injected fault types, such as CPU exhaustion and packet loss.
  • Dataset C: A benchmark derived from a complex train ticket booking microservice.
  • Dataset D (Company ALC): A real-world dataset from Alibaba Cloud, encompassing 35 incidents across 2,173 microservices and 12,000 distinct metrics.

Key Results

Accuracy and Robustness

SLIM demonstrated superior performance across all benchmarks. On Dataset A, SLIM achieved a Top-1 accuracy (A@1) of 0.791, significantly outperforming deep learning models like Dejavu (0.771) and Seer (0.482). On the Alibaba Cloud dataset, SLIM maintained a high A@1 of 0.851, proving its efficacy in large-scale production environments.

Efficiency and Interpretability

One of SLIM's most significant advantages is its efficiency. The training overhead is approximately 15% of current state-of-the-art methods. While deep learning models may take hours to converge on complex datasets, SLIM provides results in minutes. Furthermore, the rules generated by SLIM were found to be comparable to those written by human experts with years of experience. When used to automate the creation of a system "Knowledge Base," SLIM reduced the manual effort required by experts by 82%.

Conclusion and Future Work

SLIM provides a scalable, light-weight, and interpretable solution for RCA in imbalanced microservice data. By prioritizing precision through a distorted greedy search and optimizing for the F1 score, it bridges the gap between high-performance machine learning and the practical needs of system operators.

Currently, SLIM is optimized for binary classification tasks. Future research will focus on developing native multi-class F1-score optimization to further streamline the localization process in scenarios where multiple, overlapping failure types occur simultaneously.

Summary updated

BibTeX
@inproceedings{ren2024slim,
  author = {Rui Ren and Jingbang Yang and Linxiao Yang and Xinyue Gu and Liang Sun},
  title = {{SLIM: a Scalable Light-weight Root Cause Analysis for Imbalanced Data in Microservice}},
  booktitle = {ICSE Companion},
  year = {2024},
  doi = {10.1145/3639478.3643098},
}
Figure