Introduction
This paper introduces Locally Constant Networks (LCNs), a novel class of neural models mathematically equivalent to oblique decision trees but trainable via standard gradient descent. By leveraging the property that the gradients of ReLU networks are piece-wise constant, the authors demonstrate that a network with only $M$ neurons can implicitly represent a complex tree with $2^M$ leaves. This approach provides a massive boost in parameter efficiency and introduces a powerful regularization effect.
The Challenge of Oblique Decision Trees
Decision trees are widely favored for their interpretability and strong performance on tabular and chemical data. However, standard trees (like CART) rely on "axis-aligned" splits, evaluating only one feature at a time (e.g., "Is weight > 10?"). Oblique decision trees offer greater expressive power by using linear combinations of features for splits (e.g., "Is $0.5 \times \text{weight} + 0.2 \times \text{height} > 5$?"); however, they are notoriously difficult to train because the underlying optimization problem is combinatorial and non-differentiable.
While deep learning provides flexible, differentiable optimization, neural networks are continuous functions, whereas trees are piece-wise constant. This research bridges that gap, creating a differentiable "neural" version of oblique decision trees that inherits the structural benefits of trees and the optimizability of deep learning.
Methodology: Locally Constant Networks
The core method exploits a simple property of Rectified Linear Unit (ReLU) networks: they are piece-wise linear. Consequently, the derivative of a piece-wise linear function yields a piece-wise constant function.
- Locally Constant Networks (LCN): Instead of using the direct output of a ReLU network, the model utilizes the activation pattern (the binary indicators of which neurons are active) or the Jacobian (the gradients of the neurons with respect to the input) as its representation.
- Softplus Annealing: Because the gradients of ReLUs are step functions and thus non-differentiable, the authors employ a "Softplus" function during training. This function is gradually annealed to approximate a ReLU, allowing the model to begin as a smooth, differentiable function and converge into a crisp, piece-wise constant decision tree.
- Efficient Computation: Calculating the gradients for every single neuron is computationally expensive. To address this, the authors developed a dynamic programming algorithm that computes all necessary gradient information in a single forward pass with $\Theta(M^2)$ complexity.
- Ensembling (ELCN): To scale capacity for complex tasks, they propose an additive ensemble of these networks, conceptually similar to Random Forests or Gradient Boosted Trees.
Key Insights
- Exponential Parameter Efficiency: In a traditional oblique tree, every node requires its own independent set of weights. In an LCN, parameters are shared across the entire tree structure. As illustrated above, a network with $M$ neurons can represent a tree with $2^M$ leaves using only $M$ sets of weights. This "dimension reduction" acts as a robust built-in regularizer.
- Differentiable Tree Induction: By utilizing the Jacobian of a neural network, the discrete "routing" logic of a decision tree is effectively transformed into a differentiable process optimized via backpropagation.
- Learning from "Unobserved" Paths: In classic decision trees, if no training data traverses a specific branch, that branch fails to learn. Because LCNs share parameters across all branches, even "unobserved" paths in the tree receive updates during training, significantly improving generalization on rare edge cases.
Evaluation and Results
The models were rigorously evaluated on the MoleculeNet benchmark, a standard for molecular property prediction, which is traditionally dominated by tree-based methods:
- Classification: Bace, HIV, SIDER, and Tox21 (predicting toxicity or biological activity).
- Regression: PDBbind (predicting binding affinity).
Key Findings: * State-of-the-Art for Oblique Trees: LCNs consistently outperformed existing specialized algorithms for training oblique decision trees (such as TAO or HHCART) by a significant margin. * Competitive with Ensembles: The ensemble variant (ELCN) proved competitive with—and occasionally outperformed—industry standards like Random Forest and XGBoost/GBDT. * Robustness to Depth: Unlike standard trees that are prone to overfitting as depth increases, LCNs demonstrated improved accuracy with increased depth (up to a certain point), likely due to the strong regularization inherent in their parameter-sharing architecture.
Limitations and Future Directions
- Interpretability Trade-off: While LCNs are theoretically equivalent to oblique trees, the high degree of parameter sharing can make the resulting tree more difficult for humans to interpret compared to a standard, sparse decision tree.
- Architectural Constraints: The current research focuses on a specific "dense" architecture to establish theoretical equivalence. How different neural architectures (like ResNets) might translate into tree structures remains an open question.
- Scaling Challenges: Although the dynamic programming algorithm improves efficiency, scaling these models to extremely high-dimensional data or massive ensembles still presents a computational hurdle when compared to highly optimized implementations like XGBoost.
Summary updated