Introduction
In high-stakes domains such as software engineering, the adoption of machine learning is often hindered by the "black box" nature of complex models. While high accuracy is desirable, domain experts frequently prioritize interpretability and the ability to influence the model's decision-making process. This paper introduces a novel rule mining system designed to keep the "human-in-the-loop" through a combination of multi-objective optimization and an "anytime" algorithmic framework. By treating classification as a set-cover problem, the system better aligns with real-world costs and the iterative nature of expert feedback.
The Set Cover Classification Paradigm
Traditional machine learning approaches often struggle with two specific issues in software engineering: the cost matrix problem and instance identity. It is rarely possible to define a static cost for false positives versus false negatives at the project's onset. Furthermore, multiple data instances—such as different code changes—often stem from a single underlying cause, like a specific bug.
The authors propose "Set Cover Classification" to address these nuances. In this paradigm, the goal is not merely to classify every instance correctly but to cover as many underlying "causes" as possible using the minimum number of flagged instances. This approach recognizes that once a cause is identified via one instance, identifying subsequent instances of the same cause provides diminishing returns.
Methodology: Interactive Rule Mining
The core of the system is a modified GRASP-PR (Greedy Randomized Adaptive Search Procedure with Path Relinking) meta-heuristic. The system is designed to be interactive and "anytime," meaning it provides immediate results that improve over time while allowing for real-time user intervention.
Rule Syntax and Agents
To ensure human-readability, the system utilizes an "Inclusions except Exclusions" rule format. For example, a rule might flag all files with more than 100 lines of code, except those located in a specific test directory. Multiple background "mining agents" search for these rules simultaneously using greedy randomized generation and local hill-climbing searches.
The Blackboard and Pareto Front
Agents contribute their findings to a shared "blackboard" that maintains a Pareto front. This front represents the best-found solutions across different trade-offs, such as rule simplicity versus coverage. By presenting a range of optimal solutions, the system allows experts to choose the "sweet spot" relevant to their specific resource constraints.
Evaluation and Industrial Application
The system was evaluated using a massive industrial dataset from a medium-sized software company, comprising over 730,000 records spanning five years of development. The task involved predicting which parts of a code change did not require review, thereby saving developer time. The dataset included 70,900 "review remarks" representing the underlying causes to be covered.
Key Insights
- Multi-Objective Flexibility: Providing a Pareto front is essential. It prevents the system from forcing a single mathematical solution on experts who may have shifting priorities regarding effort and coverage.
- Semantic Diversity: When managing the Pareto front, the system uses "semantic distance"—looking at the similarity of matched records rather than just scores. This ensures that rules covering different sets of bugs are preserved, even if their accuracy metrics are similar.
- Anytime Engagement: The "anytime" nature of the algorithm significantly increased expert engagement. Users were more likely to interact with the tool when they could see it reacting to their feedback and refining its search in real-time.
Conclusion
The proposed system demonstrates that rule mining can be both mathematically rigorous and highly interactive. By shifting to a set-cover classification model and utilizing an anytime multi-objective search, the authors provide a framework that respects the expertise of domain specialists. Future work will focus on extending the system to multi-class problems and integrating it with broader machine learning suites.
Summary updated