Decision trees are a foundational tool in machine learning, beloved for their interpretability and inference efficiency. However, they are notoriously difficult to optimize globally. This paper introduces a novel framework for learning binary decision trees as differentiable layers within neural networks. By relaxing a discrete optimization problem into a continuous one using argmin differentiation, the authors enable simultaneous, end-to-end training of tree structure, pruning, and split parameters. The result is a model that is highly accurate, scalable, and significantly faster to train than previous differentiable tree methods.
The Problem with Traditional Tree Optimization
Traditionally, researchers have used three main approaches to optimize decision trees, each with significant drawbacks:
- Greedy Optimization (e.g., CART): These methods are fast but often suboptimal because they make localized, node-by-node decisions that fail to consider the global loss.
- Probabilistic Relaxations: These approaches make trees differentiable by turning hard splits into "soft" branching probabilities. However, they lose sparsity—every input contributes to every branch—making them computationally heavy, hard to prune, and difficult to interpret.
- Mixed-Integer Programming (MIP): MIP can find globally optimal trees but is computationally prohibitive, generally failing to scale beyond a few thousand data points.
The authors seek a "best of all worlds" solution: a tree-learning method that is globally optimized via gradients, maintains sparse paths for efficiency, includes principled pruning, and scales to massive datasets.
Methods: A Bi-Level Optimization Framework
The core innovation of this paper is framing tree learning as a bi-level optimization problem solved via argmin differentiation.
- Sparse Relaxation: The authors start with an Integer Linear Program (ILP) that defines how an input traverses a tree. They apply a quadratic relaxation to this program, allowing gradients to flow through the "discrete" traversal decisions back to the continuous splitting parameters ($\theta$).
- Differentiable Pruning: Pruning is handled by a dedicated optimization variable. The authors make a clever connection: ensuring a child node is pruned if its parent is pruned is a hierarchical constraint. This can be solved as a tree-structured isotonic regression problem.
- Efficient Solvers: Instead of relying on slow, generic quadratic solvers, the authors derive a customized algorithm based on the Generalized Pool Adjacent Violators (GPAV) method. This allows the pruning step to be solved exactly in just $O(|T|)$ steps, where $|T|$ is the number of nodes.
- End-to-End Integration: The entire tree structure acts as a layer in a deep network, trainable using standard backpropagation and arbitrary loss functions.
Key Insights and Ideas
Sparsity Meets Differentiability: Unlike standard "soft" trees where an input is distributed across all leaves, the quadratic relaxation used here encourages inputs to follow specific paths while remaining differentiable. The relaxation creates a "margin" for splits, allowing gradients to inform the routing without sacrificing the sparsity of the final tree.
Pruning as Isotonic Regression: The most elegant insight is realizing that the hierarchical nature of tree pruning perfectly maps to isotonic regression. This allows for a principled, hyperparameter-controlled way to trim the tree (via a parameter $\lambda$) that is highly computationally efficient.
Key Results and Scalability
The authors evaluated their method across three distinct tasks: Tabular Regression (e.g., Million Song Dataset), Tabular Classification (e.g., Higgs boson dataset), and Hierarchical Clustering.
- Competitive Accuracy: The method consistently matches or outperforms other single-tree baselines like CART, NDF-1, and ANT across regression and classification tasks.
- Superior Speed: It is significantly faster to train than other differentiable counterparts. On the massive Higgs dataset, it trained in roughly 5 hours, whereas the ANT baseline took over 17 hours.
- Effective Pruning: The hyperparameter $\lambda$ allows users to smoothly control tree complexity. Increasing $\lambda$ prunes entire branches without significantly degrading performance.
- Scalability: By avoiding the combinatorial explosion of MIP and the dense computations of probabilistic trees, this method scales to datasets containing millions of samples—a feat previously unreachable for globally optimized trees.
Future Directions
While the paper focuses on single trees for clarity and interpretability, the framework is highly extensible. The authors suggest that future work could adapt this method to learn ensembles (forests), instance-specific tree structures (such as parse trees in NLP), or more efficient neighbor-querying structures like ball trees.
Summary updated