GBM-based Bregman Proximal Algorithms for Constrained Learning

Zhenwei Lin, Qi DengarXiv 2023

Abstract

As the complexity of learning tasks surges, modern machine learning encounters a new constrained learning paradigm characterized by more intricate and data-driven function constraints. Prominent applications include Neyman-Pearson classification (NPC) and fairness classification, which entail specific risk constraints that render standard projection-based training algorithms unsuitable. Gradient boosting machines (GBMs) are among the most popular algorithms for supervised learning; however, they are generally limited to unconstrained settings. In this paper, we adapt the GBM for constrained learning tasks within the framework of Bregman proximal algorithms. We introduce a new Bregman primal-dual method with a global optimality guarantee when the learning objective and constraint functions are convex. In cases of nonconvex functions, we demonstrate how our algorithm remains effective under a Bregman proximal point framework. Distinct from existing constrained learning algorithms, ours possess a unique advantage in their ability to seamlessly integrate with publicly available GBM implementations such as XGBoost and LightGBM, exclusively relying on their public interfaces. We provide substantial experimental evidence to showcase the effectiveness of the Bregman algorithm framework. While our primary focus is on NPC and fairness ML, our framework holds significant potential for a broader range of constrained learning applications.

Introduction

Standard supervised learning is typically framed as an unconstrained optimization problem where the primary goal is to minimize an error function. However, real-world deployment often requires models to adhere to strict operational or ethical rules. For instance, in medical diagnostics—specifically Neyman-Pearson Classification (NPC)—a false negative can be significantly more costly than a false positive, necessitating a hard cap on specific error rates. Similarly, in Fair Machine Learning, models must ensure that decisions do not vary unfairly across protected demographic groups.

While deep learning architectures have established methods for handling such constraints, Gradient Boosting Machines (GBMs), which remain the state-of-the-art for tabular data, have historically been limited to unconstrained settings. Existing attempts to bridge this gap often lack theoretical convergence guarantees or require invasive modifications to the core engines of libraries like XGBoost or LightGBM. This research introduces a "plug-and-play" framework that is both mathematically rigorous and compatible with standard industry tools.

Methodology: The Bregman Proximal Framework

The core of this approach lies in leveraging the Bregman proximal point framework to handle constraints. The researchers propose two primary algorithms tailored to different constraint geometries:

  1. Accelerated Bregman Primal-dual Proximal Point (ABPP): This algorithm is designed for convex constrained problems, such as NPC. By utilizing a proximal point approach rather than standard gradient descent, ABPP can handle non-smooth functions and treat existing GBM interfaces as sub-solvers.
  2. Constraint Proximal Point Regularized (CBPR): This method addresses non-convex constraints, which are common in fairness applications. CBPR decomposes complex non-convex problems into a sequence of simpler convex sub-problems, which are subsequently solved using the ABPP method.

The Bregman Advantage

A pivotal innovation in this framework is the shift from standard Euclidean distance to Bregman divergence. Optimization typically assumes the "flat" geometry of Euclidean space; however, for ensemble models like GBMs, the authors argue that a Bregman distance—specifically one induced by the scoring matrix of the weak learners—better captures the functional changes during training. This choice allows the method to be implemented by simply customizing the objective function interface in XGBoost and LightGBM, requiring no changes to the underlying library source code.

Experimental Setup and Datasets

The framework was evaluated across four diverse real-world datasets to test its performance in NPC and Fairness tasks:

  • Credit (Kaggle): A high-stakes fraud detection dataset used for NPC, featuring 284,000 samples and high class imbalance.
  • Drybean (UCI): A multi-class NPC task involving seven different categories of beans.
  • Adult (UCI): A standard fairness benchmark predicting income levels while maintaining gender equity.
  • Compas (ProPublica): A fairness benchmark used for predicting recidivism risk while balancing outcomes across racial groups.

Key Results

The proposed models (e.g., LGBMNP, XGBFair) were compared against vanilla GBM baselines and specialized constrained classifiers.

Performance in NPC Tasks

On the Credit and Drybean datasets, the Bregman-based algorithms significantly reduced constraint violations. On the Credit dataset, the baseline model exhibited a violation score of 22.94. The proposed LGBMNP reduced this to 6.63, maintaining high accuracy while strictly adhering to the specified error bounds. Furthermore, the framework demonstrated superior scalability; while other random-forest-based constrained methods suffered from memory overflow on the 284k-sample Credit dataset, this framework handled the scale efficiently.

Performance in Fairness Tasks

In fairness benchmarks, the LGBMFair model achieved a superior balance between accuracy and equity. On the Compas dataset, it outperformed the specialized FairGBM library, achieving higher accuracy (62.96% vs 62.67%) and a lower violation score (10.09 vs 14.74). This suggests that the Bregman framework provides a more effective optimization path than existing heuristic-based fairness adjustments.

Conclusion and Future Work

This research provides a theoretically grounded yet highly practical method for bringing hard constraints to GBMs. By providing global optimality guarantees for convex cases and convergence to Fritz John (FJ) points for non-convex cases, the authors offer a level of mathematical rigor previously missing from constrained GBM literature.

While the framework is highly effective, some stability challenges remain in non-convex optimization, as seen in specific hyperparameter sensitivities on the Adult dataset. Future research will explore extending this framework to shape-restricted regression (e.g., ensuring model monotonicity) and semi-supervised learning. The ability to treat popular GBM libraries as "black box" solvers while maintaining theoretical guarantees marks a significant step forward for constrained machine learning in production environments.

Summary updated

Abstract

As the complexity of learning tasks surges, modern machine learning encounters a new constrained learning paradigm characterized by more intricate and data-driven function constraints. Prominent applications include Neyman-Pearson classification (NPC) and fairness classification, which entail specific risk constraints that render standard projection-based training algorithms unsuitable. Gradient boosting machines (GBMs) are among the most popular algorithms for supervised learning; however, they are generally limited to unconstrained settings. In this paper, we adapt the GBM for constrained learning tasks within the framework of Bregman proximal algorithms. We introduce a new Bregman primal-dual method with a global optimality guarantee when the learning objective and constraint functions are convex. In cases of nonconvex functions, we demonstrate how our algorithm remains effective under a Bregman proximal point framework. Distinct from existing constrained learning algorithms, ours possess a unique advantage in their ability to seamlessly integrate with publicly available GBM implementations such as XGBoost (Chen and Guestrin, 2016) and LightGBM (Ke et al., 2017), exclusively relying on their public interfaces. We provide substantial experimental evidence to showcase the effectiveness of the Bregman algorithm framework. While our primary focus is on NPC and fairness ML, our framework holds significant potential for a broader range of constrained learning applications. The source code is currently freely available at https://github.com/zhenweilin/ConstrainedGBM}{https://github.com/zhenweilin/ConstrainedGBM.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
COMPASLGBMFair (CBPR+LightGBM)Accuracy62.96%+0.24 vs baselinesplit: test
Source quote
L352: LGBMFair(O) │ 62.96 │ 1.27 │ 10.09 │ 1.61 │ 87.22 │ 0.21 │ 9.76 │ 0.15
COMPASLGBMFair (CBPR+LightGBM)Fairness10.09%split: test
Source quote
L352: LGBMFair(O) │ 62.96 │ 1.27 │ 10.09 │ 1.61 │ 87.22 │ 0.21 │ 9.76 │ 0.15
AdultLGBMFair (CBPR+LightGBM)Accuracy87.22%split: test
Source quote
L352: LGBMFair(O) │ 62.96 │ 1.27 │ 10.09 │ 1.61 │ 87.22 │ 0.21 │ 9.76 │ 0.15
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
COMPASLGBM(B) baseline baselineAccuracy62.72%split: test
Source quote
L351: LGBM(B) │ 62.72 │ 1.84 │ 13.71 │ 5.39 │ 86.79 │ 0.57 │ 10.06 │ 0.39
COMPASLGBM(B) baseline baselineFairness13.71%split: test
Source quote
L351: LGBM(B) │ 62.72 │ 1.84 │ 13.71 │ 5.39 │ 86.79 │ 0.57 │ 10.06 │ 0.39
BibTeX
@misc{lin2023gbm,
  author = {Zhenwei Lin and Qi Deng},
  title = {{GBM-based Bregman Proximal Algorithms for Constrained Learning}},
  year = {2023},
  eprint = {2308.10767},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.10767},
}
Figure