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

Scalable Rule-Based Representation Learning for Interpretable Classification

Zhuo Wang, Wei Zhang, Ning Liu, Jianyong Wang

Here is a concise, engaging summary of the paper:

Scalable Rule-Based Representation Learning for Interpretable Classification

TL;DR

The authors present the Rule-based Representation Learner (RRL), a transparent classification model that learns discrete, non-fuzzy logical rules directly via gradient descent. By introducing Gradient Grafting (a hybrid discrete-continuous optimization technique) and numerically stabilized logical activation functions, RRL scales to large datasets while achieving competitive accuracy with tree ensembles like XGBoost and Random Forest.

What Problem Does This Paper Address?

In high-stakes domains like medicine, credit scoring, and legal decision-making, practitioners require transparent, interpretable models rather than black-box deep neural networks. Traditional rule-based classifiers (e.g., decision trees, rule sets, rule lists) offer clear boolean explanations, but they rely on discrete, non-differentiable optimization (heuristic greedy splitting, MCMC, or combinatorial search). Consequently, they struggle to scale to large datasets and high-dimensional feature spaces.

Conversely, ensemble methods (Random Forest, LightGBM) or "soft/fuzzy" rule approaches restore scalability and accuracy, but completely destroy human interpretability. The paper addresses this core tension: how can we optimize transparent, discrete rule-based models efficiently at scale using modern gradient-based machinery?

Methods

RRL structures representation learning as a hierarchical network containing three distinct layer types:

  1. Binarization Layer: Automatically maps continuous numeric features into discrete boolean bins using randomly initialized bounds ($c_j > T$ or $c_j < H$) optimized end-to-end.
  2. Logical Layers (Conjunction & Disjunction): Stacks conjunction ($\land$) and disjunction ($\lor$) operations, enabling arbitrary representation in both Conjunctive Normal Form (CNF) and Disjunctive Normal Form (DNF).
  3. Continuous Relaxation: To allow gradient backpropagation, logical operations are approximated via fuzzy t-norm activations: $\text{Conj}(h, W) = \prod F_c$ and $\text{Disj}(h, W) = 1 - \prod(1 - F_d)$.
  4. Improved Logical Activation Function: Standard products suffer catastrophic vanishing gradients when chained across many features. The authors resolve this by mapping products into sum-of-logs space, wrapped in a specialized projection function $P(v) = \frac{-1}{-1 + \log(v)}$.
  5. Linear Layer: Computes the final classification decision by linearly weighting the extracted high-level rules, making rule importance immediately evident.

The Optimization: Gradient Grafting

Standard techniques like Straight-Through Estimators (STE) fail because discrete logical layers have zero or uninformative gradients at discrete operating points. The authors introduce Gradient Grafting: $$\theta^{t+1} = \theta^t - \eta \cdot \frac{\partial \mathcal{L}(\bar{Y})}{\partial \bar{Y}} \cdot \frac{\partial \hat{Y}}{\partial \theta^t}$$ - The scion (loss gradient evaluated on the discrete model's predictions $\bar{Y}$) ensures the discrete model's error is minimized directly. - The rootstock (Jacobian of the continuous model's outputs $\hat{Y}$ w.r.t continuous weights $\theta$) provides informative, smooth gradient trajectories.

Datasets

The authors evaluate RRL across 13 public tabular/classification benchmarks:

  • 9 Small Datasets: adult, bank-marketing, banknote, chess, connect-4, letRecog, magic04, tic-tac-toe, and wine.
  • 4 Large Datasets: activity (smartphones), dota2, facebook, and fashion (Fashion-MNIST, flattened).

Instance sizes range from 178 to 102,944 samples, classes from 2 to 26, and features from 4 to 4,714. No new benchmarks were introduced.

Key Insights and Ideas

  • Unified CNF and DNF Representation: Unlike prior rule-extraction networks restricted to DNF, alternating conjunction and disjunction layers allow compact representations of rules that would otherwise explode exponentially in length under pure DNF formulations.
  • Why Standard Relaxations Fail: In high dimensions, vanilla continuous fuzzy logic operators multiply hundreds of values between $[0, 1]$, collapsing all gradients to zero before training begins. The log-space projection keeps gradients alive regardless of feature dimensionality.
  • End-to-End Discretization: Instead of relying on manual, biased data binning as a pre-processing step (which ruins performance on continuous datasets like letRecog), RRL’s binarization layer lets the network choose bin boundaries dynamically during backpropagation.

Key Results

  • Competitive with Ensembles: RRL achieved an average rank of 2.77 across all 13 benchmarks—matching or beating massive ensembles like LightGBM (2.77) and Random Forest (5.38), and tying closely with XGBoost (2.69).
  • Outperforming Transparent Baselines: RRL significantly outperformed all other interpretable models (CART, C4.5, SBRL, CORELS, CRS, Logistic Regression) on 8 out of 13 datasets ($p < 0.01$, two-tailed t-test).
  • Better Pareto Frontier: Accuracy-vs-complexity curves show that for a given model budget (log of total rule edges), RRL consistently achieves higher macro-F1 than decision trees and shallow boosted trees.
  • Superior Convergence: Gradient Grafting steadily minimized discrete training loss, whereas STE, ProxQuant, and Random Binarization (RB) failed to converge or oscillated wildly.

Limitations and Future Work

  • Limited to Structured/Tabular Data: RRL requires structured feature vectors. When applied to perceptual data (e.g., images like Fashion-MNIST), 2D inputs must be flattened into 1D arrays, discarding crucial spatial relationships and geometric inductive biases.
  • Future Directions: Adapting RRL architectures to handle unstructured data (e.g., text, spatial vision features) directly without destroying structural correlations.

Summary updated

BibTeX
@inproceedings{wang2021scalable,
  author = {Zhuo Wang and Wei Zhang and Ning Liu and Jianyong Wang},
  title = {{Scalable Rule-Based Representation Learning for Interpretable Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=q_fMLfwTAJY},
}
Figure