NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Interpretable Rules for Scalable Data Representation and Classification

Zhuo Wang, Wei Zhang, Ning Liu, Jianyong Wang

TL;DR

The Rule-based Representation Learner (RRL) is a novel classifier that bridges the gap between the high interpretability of discrete "if-then" rules and the powerful optimization of deep learning. By using a technique called Gradient Grafting, the authors successfully train non-differentiable, discrete rule sets using gradient descent, achieving accuracy comparable to complex ensemble models like XGBoost while remaining fully transparent to human users.

What Problem Does This Paper Address?

In machine learning, there is a classic tug-of-war between interpretability and scalability.

Traditional rule-based models (like decision trees) are easy for humans to understand because they provide clear logic for their decisions. However, they are notoriously difficult to optimize on large datasets because their parameters are discrete and non-differentiable. To compensate, researchers often turn to "soft" or "fuzzy" rules or massive ensembles (like Random Forests), but these methods sacrifice the very transparency that made rule-based models attractive in the first place.

The authors aim to solve this by creating a model that is:

  1. Discrete: Uses "hard" rules (True/False) that are easy to read.
  2. Scalable: Can be trained efficiently on large-scale datasets using GPUs.
  3. End-to-End: Handles continuous features and rule learning in a single, unified optimization process.

Methods

The authors introduce the Rule-based Representation Learner (RRL), which is structured like a neural network but functions as a logical rule builder.

  • Hierarchical Structure: The model consists of a Binarization Layer (to turn continuous numbers into binary bins), multiple Logical Layers (composed of conjunction and disjunction units to build complex rules), and a final Linear Layer (to weight the importance of each rule for classification).
  • Gradient Grafting: This is the paper's "secret sauce." Since discrete rules aren't differentiable, you can't normally use gradient descent. The authors "graft" the gradients from a continuous, differentiable version of the model (the "rootstock") onto the discrete model (the "scion"). This allows the discrete model to learn directly from gradient information.
  • Novel Logical Activation Functions (LAF): To make the model run fast on GPUs, the authors redesigned logical operations (AND/OR) to be "decoupled." This allows them to use standard matrix multiplications—the bread and butter of modern AI hardware—while avoiding the "vanishing gradient" problem that plagues deep logical networks.

Datasets

The authors evaluated RRL on a diverse set of 14 public datasets:

  • 10 Small Datasets: Including adni (Alzheimer's prediction), adult (income prediction), banknote, chess, and wine.
  • 4 Large Datasets: activity (smartphone sensor data), dota2 (game results), facebook (page-page network), and fashion (Fashion-MNIST image classification).

These datasets cover a mix of continuous, discrete, and mixed feature types, ranging from 178 to over 100,000 instances.

Key Insights and Ideas

  • The "Aha" Moment for Training: The authors realized that while discrete models have no useful gradient at specific points, a continuous "shadow" model can provide a trajectory for optimization. Gradient Grafting ensures the discrete model stays "on track" during training.
  • GPU-Friendly Logic: By mathematically reformulating logical AND/OR operations into a form that supports matrix multiplication, the authors moved rule-based learning from slow, CPU-bound heuristic searches to high-performance GPU computing.
  • Complexity vs. Accuracy Trade-off: RRL allows practitioners to explicitly tune the model's complexity (number of rules and their length) using L2 regularization. You can choose to have a slightly less accurate model that is incredibly simple to read, or a more complex one that rivals state-of-the-art black boxes.

Key Results

  • Superior Performance: RRL significantly outperformed other interpretable models (like C4.5, CART, and Bayesian Rule Lists) on 9 out of 14 datasets.
  • Rivaling the "Black Boxes": In many cases, RRL achieved F1 scores comparable to XGBoost and LightGBM, despite those models using hundreds of trees while RRL used a sparse set of human-readable rules.
  • Scalability: On the facebook dataset (with 4,714 features), RRL was actually faster than XGBoost in both training and inference.
  • Transparency in Action: In a case study on Alzheimer’s data (adni), RRL produced a small set of rules (e.g., "If brain protein AV45 > 1.222 AND Entorhinal volume ≤ 3874, then AD risk is high") that matched clinical knowledge.

Limitations and Future Work

  • Discretization Flexibility: RRL relies on binarizing continuous features into bins. While effective, this is less flexible than the raw continuous processing of standard Deep Neural Networks.
  • Computational Overhead: While scalable, RRL is slightly slower than some simpler neural architectures (like PLNN) because it requires more complex exponential and division operations to maintain its logical structure.
  • Structured Data Focus: Currently, RRL is designed for tabular/structured data. While the authors showed a case study on images (fashion), the model treats pixels as independent features, losing the spatial context that Convolutional Neural Networks (CNNs) capture. The authors suggest extending RRL to unstructured data in future work.

Code Availability: The authors have open-sourced their implementation at github.com/12wang3/rrl.

Summary updated

BibTeX
@article{wang2024learning,
  author = {Zhuo Wang and Wei Zhang and Ning Liu and Jianyong Wang},
  title = {{Learning Interpretable Rules for Scalable Data Representation and Classification}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=CO0u-Y5kFbc},
}
Figure