Individually Fair Gradient Boosting

Alexander Vargo, Fan Zhang, Mikhail Yurochkin, Yuekai Sun

Gradient boosting is the undisputed heavyweight champion of machine learning for tabular data. Whether utilizing XGBoost, LightGBM, or CatBoost, these models power critical applications ranging from credit scoring to medical diagnosis. However, their "non-smooth" nature—the fact that decision trees make sharp, discrete jumps—has made it notoriously difficult to enforce individual fairness.

In their paper, "Individually Fair Gradient Boosting," Alexander Vargo and colleagues introduce BuDRO (Boosted Distributionally Robust Optimization), a framework that brings rigorous individual fairness to the world of gradient boosting without sacrificing the high accuracy that makes these models so popular.

The Challenge of Individual Fairness in Trees

Most algorithmic fairness research focuses on group fairness (e.g., ensuring the same percentage of men and women are approved for a loan). However, individual fairness is often more intuitive: it requires that any two individuals who are "similar" for a specific task should receive similar predictions.

The standard way to enforce individual fairness is through adversarial training—finding a hypothetical data point near a user that changes the model's prediction, and penalizing that change. This works well for "smooth" models like neural networks where gradients can be calculated with respect to the input. But Gradient Boosted Decision Trees (GBDTs) are step functions; they lack useful gradients. Until now, practitioners often had to choose between the high performance of GBDTs and the ethical requirements of individual fairness.

The BuDRO Approach

To solve this, the authors introduce BuDRO, which frames fairness as a distributionally robust optimization problem. The method relies on several key innovations:

  1. Restricted Adversarial Cost: Instead of searching the entire infinite input space for "similar" people (which is computationally impossible for non-smooth trees), BuDRO restricts the search to the training set itself, augmented with "flipped" labels.
  2. Optimal Transport: The algorithm uses the Wasserstein distance to define how much a distribution can "shift" toward these similar-but-differently-treated examples.
  3. Functional Gradient Descent: Fairness requirements are treated as a robust loss function. During each boosting step, instead of just fitting the residuals of the labels, the algorithm fits "pseudo-residuals" that account for both accuracy and the potential for unfairness.
  4. Scalability via Duality: Solving the full optimization problem for every tree would normally be incredibly slow ($O(n^2)$). The authors use a stochastic dual formulation to make the computation efficient enough for large datasets.

Key Insights

  • The "Restricted Support" Trick: The most clever insight is that you don't need to differentiate through the model if you restrict your "adversary" to the training samples. This turns a hard calculus problem into a manageable linear programming problem.
  • Fairness as Reweighting: Effectively, BuDRO works by identifying "fairness-critical" samples—individuals who are very similar to others but are being treated differently—and up-weighting them during the boosting process.
  • Proxies Matter: The paper demonstrates that simply "hiding" sensitive features (like race or gender) is insufficient. GBDTs are so flexible that they easily find proxies for those features. BuDRO forces the model to ignore these proxies by penalizing the resulting inconsistency.

Key Results

The authors evaluated BuDRO on classic fairness benchmarks, including the German Credit and COMPAS datasets, demonstrating its ability to balance accuracy and fairness.

Results on the German Credit dataset showing BuDRO's balance of accuracy and fairness.

Accuracy Preservation: In the German Credit task (predicting credit risk with age as a protected attribute), BuDRO maintained a balanced accuracy (BAcc) of .715. This is nearly identical to the unfair baseline of .723, yet BuDRO significantly reduced the maximum age gap in predictions (from .310 down to .185).

Results on the COMPAS dataset comparing BuDRO against baselines across fairness metrics.

Consistency Gains: On the COMPAS dataset (predicting recidivism), BuDRO achieved high individual fairness consistency scores (.944 for S-cons and .957 for GR-cons), noticeably improving upon the vanilla GBDT baseline. While simple pre-processing methods like "Projecting" can force perfect consistency in specific metrics (achieving 1.0 on GR-cons), they do so at a much steeper cost to balanced accuracy (.787 vs BuDRO's .815). BuDRO consistently provides better fairness-accuracy trade-offs because it handles the non-linear relationships that simple projection misses.

Limitations and Future Work

While BuDRO is a significant step forward, it has limitations:

  • The Curse of Dimensionality: The "restricted support" approach relies on the training data being dense enough. If a certain type of individual is entirely missing from the training set, the model might still be unfair to them in the real world.
  • Metric Dependence: BuDRO requires a "fair metric" (a definition of who is similar to whom) as an input. The fairness of the final model is only as good as the metric provided.
  • Computational Overhead: While optimized, the algorithm is still slower than vanilla XGBoost. For example, on the Adult dataset, training took roughly 1,455 seconds compared to just 201 seconds for the baseline.

Overall, BuDRO represents a major milestone for "Fairness by Design" in the tabular data domain, proving that we don't have to abandon our most powerful models to build a more equitable algorithmic future.

Summary updated

BibTeX
@inproceedings{vargo2021individually,
  author = {Alexander Vargo and Fan Zhang and Mikhail Yurochkin and Yuekai Sun},
  title = {{Individually Fair Gradient Boosting}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=JBAa9we1AL},
}
Figure