Constructing classification trees using column generation

Murat Firat, Guillaume Crognier, Adriana F. Gabor, Yingqian Zhang, Cor A. J. HurkensarXiv 2018

Abstract

This paper explores the use of Column Generation (CG) techniques in constructing univariate binary decision trees for classification tasks. We propose a novel Integer Linear Programming (ILP) formulation, based on root-to-leaf paths in decision trees. The model is solved via a Column Generation based heuristic. To speed up the heuristic, we use a restricted instance data by considering a subset of decision splits, sampled from the solutions of the well-known CART algorithm. Extensive numerical experiments show that our approach is competitive with the state-of-the-art ILP-based algorithms. In particular, the proposed approach is capable of handling big data sets with tens of thousands of data rows. Moreover, for large data sets, it finds solutions competitive to CART.

Introduction

Decision trees are a cornerstone of interpretable machine learning. Traditionally, these trees are constructed using greedy algorithms like CART or ID3, which make locally optimal splits at each node. While efficient, these heuristics do not guarantee global optimality, often leading to sub-optimal classification accuracy or unnecessarily complex trees.

Recent research has pivoted toward Integer Linear Programming (ILP) to find truly optimal decision trees. However, these methods face a significant "scalability wall," typically struggling with datasets exceeding 5,000 to 10,000 rows. This paper introduces a novel math-heuristic that leverages Column Generation (CG) to bridge the gap between mathematical rigor and large-scale data applicability.

The Path-Based Formulation

The core innovation of this research is a shift in perspective: instead of modeling individual node splits, the problem is reformulated around decision paths. A decision path represents the complete sequence of splits from the root node to a specific leaf.

Notation for the sets, parameters, and decision variables used in the path-based ILP model.

By defining the problem in terms of paths, the authors create a mathematically "stronger" formulation. In small-scale tests, the linear relaxation of this model resulted in an integer solution 78% of the time for depth-3 trees, allowing solvers to find optimal answers much faster than traditional node-based models.

Methodology: Column Generation and Threshold Sampling

Because the number of possible decision paths grows exponentially with tree depth and feature variety, it is impossible to include all paths in a single model. The authors employ two primary strategies to manage this complexity:

  1. Column Generation (CG): This technique starts with a "Master Problem" containing a small subset of paths. A "Pricing Subproblem" then iteratively identifies and adds new, promising paths (columns) that could improve the overall accuracy.
  2. Threshold Sampling (Math-Heuristic): To further accelerate the process, the authors do not consider every possible value in the dataset as a potential split point. Instead, they run the CART algorithm multiple times on random subsets of the data and "sample" the most frequent split points. This focuses the ILP solver on the most promising candidates, transforming the approach into a highly efficient math-heuristic.

Experimental Evaluation

The approach was evaluated using 20 datasets from the UCI Machine Learning Repository, ranging from small instances (e.g., Iris, Wine) to large datasets with over 78,000 rows (e.g., Statlog shuttle, Hand-posture).

Key Results

  • Accuracy Improvements: On small datasets, the proposed Column Generation Heuristic (CGH) improved accuracy over CART by an average of 0.9% to 2.7% depending on tree depth.
  • Competitive Performance: CGH achieved 2.4% higher accuracy on average compared to Optimal Classification Trees (OCT), often completing the search in under 10 minutes.
  • Scalability to Big Data: Unlike previous ILP methods that often time out on large datasets, CGH remained functional and competitive as row counts climbed into the tens of thousands, consistently outperforming CART's solutions.

Conclusion and Future Work

By combining the global perspective of optimization with the efficiency of heuristics, this research demonstrates that optimization-based learning is viable for large-scale industrial applications. While the current sampling method means the algorithm is a "math-heuristic" rather than a guaranteed global optimizer, it provides a significant performance boost over traditional methods. Future work will focus on developing efficient branching rules and mathematical "cuts" to move closer to a full Branch-and-Price algorithm that can solve these models to absolute optimality even faster.

Summary updated

BibTeX
@misc{firat2018constructing,
  author = {Murat Firat and Guillaume Crognier and Adriana F. Gabor and Yingqian Zhang and Cor A. J. Hurkens},
  title = {{Constructing classification trees using column generation}},
  year = {2018},
  eprint = {1810.06684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.06684},
}
Figure