Scalable Bayesian Rule Lists

Hongyu Yang, Cynthia Rudin, Margo Seltzer

TL;DR

Scalable Bayesian Rule Lists (SBRL) is a new algorithm for building interpretable probabilistic classifiers that is two orders of magnitude faster than previous Bayesian methods. By combining bit-vector logic, computational reuse, and tight theoretical bounds, SBRL provides a globally optimized alternative to greedy decision trees, offering a superior balance of accuracy and sparsity.

What Problem Does This Paper Address?

In many high-stakes domains like medicine or industry, "black box" machine learning models are insufficient because humans need to understand why a prediction was made. Decision trees (like CART or C4.5) are the traditional solution, but they suffer from a fundamental flaw: they are built using greedy, top-down splitting. If the algorithm makes a mistake at the top of the tree, it is stuck with it, often leading to overly complex, uninterpretable models or a significant loss in accuracy.

Bayesian Rule Lists (BRL) were proposed to solve this by globally optimizing a sequence of IF-THEN rules. However, the original BRL implementation was computationally expensive, making it impractical for large-scale datasets. The authors of this paper set out to make BRL scalable without sacrificing its principled probabilistic foundation.

Methods

The authors introduce Scalable Bayesian Rule Lists (SBRL), which optimizes the posterior of a Bayesian hierarchical model. The key innovations that drive its speed include:

  • Bit-Vector Representation: Instead of slow set operations to determine which data points are "captured" by a rule, SBRL converts these to logical operations on bit vectors. This leverages hardware-level support and fits efficiently into CPU caches.
  • Computational Reuse: During the Markov Chain Monte Carlo (MCMC) search process, the algorithm only re-evaluates the parts of a rule list that change. If a rule at position $k$ is modified, the results for rules $1$ through $k-1$ are reused.
  • Analytical Bounds for Pruning: The authors prove two major theorems. Theorem 1 provides an upper bound on the number of rules in an optimal list, narrowing the search space. Theorem 2 (the Prefix Bound) identifies specific rule sequences that can never lead to an optimal solution, allowing the algorithm to prune large branches of the search space instantly.
  • High-Performance Implementation: The core logic was moved from Python to C, utilizing the GMP library for fast multi-precision integer arithmetic.

Datasets

The algorithm was evaluated on several well-known benchmarks from the UCI repository and other sources:

  • Tic-Tac-Toe: Predicting the winner based on board state.
  • Adult: Predicting whether an individual earns over $50k/year.
  • Mushroom: Classifying mushrooms as edible or poisonous.
  • Nursery: Predicting nursery school application categories.
  • Telco Customer Churn: Predicting customer attrition.
  • Titanic: Predicting survivor status.
  • USCensus1990: A large-scale test with 1 million data points.

Key Insights and Ideas

  • Global vs. Greedy: The paper demonstrates that you don't have to settle for the local optima of greedy decision trees. By using smart pruning and efficient data structures, global optimization becomes computationally feasible.
  • The Power of Pruning: The "Prefix Bound" is a standout contribution. It allows the MCMC chains to "fail fast," throwing out bad starting points before wasting time exploring their descendants.
  • Interpretable Sparsity: SBRL often finds models that are both more accurate and significantly shorter (sparser) than those produced by CART or C4.5. A clear example is the Mushroom dataset model, which achieves near-perfect accuracy with just a few rules.
Figure 1: A sample rule list for the mushroom dataset, showing the high interpretability of the model.

Key Results

  • 100x Speedup: The final C implementation with bit-vector reuse is over two orders of magnitude faster than the original Python implementation.
Figure 3: Boxplots showing the log10 runtime reduction across different implementation stages.
  • Superior Accuracy-Sparsity Frontier: In head-to-head comparisons, SBRL consistently produced models that were more accurate for a given level of complexity (number of rules/leaves) than heavily tuned decision trees.
  • Scalability: The algorithm successfully handled the USCensus1990 dataset with 1 million observations, producing a competitive model in roughly 45 minutes—a task that would have been impossible for previous BRL iterations.
  • Competitive with Black Boxes: On the Adult dataset, the sparse, human-readable SBRL model performed only slightly worse than uninterpretable methods like Random Forests and SVMs.
Figure 2: A rule list for the Adult dataset, illustrating how complex demographic data is distilled into readable logic.

Limitations and Future Work

While SBRL is a massive leap forward, the authors note that proving absolute optimality for probabilistic models remains more difficult than for non-probabilistic ones. Additionally, while SBRL is fast, it is still an MCMC-based method, meaning it may still be slower than simple greedy heuristics on extremely high-dimensional datasets.

Future work could involve extending these techniques to more complex structures like "Falling Rule Lists" (where probabilities must decrease monotonically) or mixed logical/linear models.

Summary updated

BibTeX
@inproceedings{yang2017scalable,
  author = {Hongyu Yang and Cynthia Rudin and Margo Seltzer},
  title = {{Scalable Bayesian Rule Lists}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=SyZ2ms-dbS},
}
Figure