Bilateral Differentially Private Vertical Federated Boosted Decision Trees

Bokang Zhang, Zhikun Zhang, Haodong Jiang, Yang Liu, Lihao Zheng, Yuxiao Zhou, Shuaiting Huang, Junfeng Wu · DOI

TL;DR

MaskedXGBoost is a new framework for Vertical Federated Learning (VFL) that allows multiple organizations to train XGBoost models on their combined data without compromising privacy. By using a clever "bilateral" differential privacy approach that hides noise in the mathematical "blind spots" (null space) of the algorithm, it achieves near-centralized accuracy while being up to 6.7x faster than traditional encryption-based methods.

What Problem Does This Paper Address?

In the world of data science, "Vertical Federated Learning" (VFL) occurs when different organizations hold different pieces of information about the same group of people. For example, a bank might have a customer's credit history, while an e-commerce company has their shopping habits. To build a better fraud detection model, they need to collaborate, but strict privacy laws and competitive interests prevent them from simply sharing raw data.

Standard tools for this, like XGBoost, usually rely on Homomorphic Encryption (HE) to keep data private during training. While secure, HE is notoriously slow and computationally "heavy," making it impractical for large-scale industrial use. On the other hand, Differential Privacy (DP)—which adds random noise to data to mask individual records—often destroys the model's accuracy (utility) because the noise interferes too much with the learning process. Furthermore, most existing VFL methods only protect the party holding the labels, leaving the other parties' features vulnerable.

Methods

The authors introduce MaskedXGBoost, which replaces heavy encryption with a specialized, "bilateral" differential privacy mechanism. The core innovation lies in how the noise is constructed:

  1. Algebra-based Noise Calibration: Instead of adding generic Gaussian noise, the authors design noise that is tailored to the specific arithmetic of XGBoost’s splitting score evaluation.
  2. The "Null Space" Trick: They decompose the noise into three parts: Active, Inactive, and Disturbing noise. Crucially, the Active and Inactive components are designed to live in the "null space" of the splitting operation. This means that when the algorithm calculates the best way to split a decision tree, these noise components mathematically cancel each other out.
  3. Bilateral Protection: The protocol ensures (ε, δ)-differential privacy for both the "Active Party" (who holds the labels) and the "Passive Party" (who holds only features).
  4. Four-Step Protocol: The process involves:
  5. Initialization: Negotiating privacy budgets.
  6. Noise Calibration: The Passive Party builds structured noise based on their feature categories.
  7. Information Noising: The Active Party uses that noise to perturb their gradients and Hessians.
  8. Joint Searching: Both parties work together to find the optimal tree splits using the "masked" data.

Datasets

The researchers evaluated MaskedXGBoost on six diverse, real-world binary classification datasets commonly used in machine learning benchmarks:

  • Credit 1 & 2: Financial datasets for credit scoring.
  • Adult: Census data used to predict income levels.
  • Higgs: Physics data for identifying signal processes.
  • Bank: Marketing data from a banking institution.
  • Nomao: A dataset for active learning and data quality.

Key Insights and Ideas

  • Noise Doesn't Have to be Destructive: The "aha moment" is that noise can be "lossless" if it is structured to disappear during the specific calculation it is protecting. By aligning noise with the null space of the splitting score function, they protect the raw data without blurring the final result.
  • Adaptive Privacy: The researchers found that the required "noise energy" can be adjusted based on the specific features being used at each step of the tree-building process. This allows the model to be more efficient with its "privacy budget."
  • Moving Beyond One-Sided Privacy: Most VFL research assumes the feature-holding party is a "helper" and doesn't need protection. This paper treats both parties as equally sensitive, which is a much more realistic assumption for cross-industry collaborations.

Key Results

  • Superior Utility: MaskedXGBoost consistently outperformed other DP-based methods (like FedXGBoost-LDP and FederBoost) in terms of AUC (Area Under Curve), staying very close to the performance of a non-private, centralized model.
  • Significant Speedup: Compared to encryption-based methods (HE-XGBoost), MaskedXGBoost was 4.82x to 6.72x faster in training time per tree.
  • Robust Security: The authors tested the model against "Label Inference" and "Attribute Inference" attacks. Even with a generous privacy budget, attackers could only achieve an accuracy of ~0.51–0.52 (barely better than a coin flip), proving the empirical strength of the DP guarantees.

Limitations and Future Work

  • Efficiency Trade-off: While much faster than encryption, MaskedXGBoost is still slightly slower than "naive" DP methods because of the overhead involved in constructing the structured noise matrices.
  • Optimization: The authors suggest that the construction of the "categorical matrix" (used to define splits) could be further optimized to reduce communication costs.
  • Industrial Scaling: The next step is implementing this in real-world industrial scenarios to see how it handles the "messiness" of production-scale data compared to clean research benchmarks.

Summary updated

Abstract

Federated learning is a distributed machine learning paradigm that enables collaborative training across multiple parties while ensuring data privacy. Gradient Boosting Decision Trees (GBDT), such as XGBoost, have gained popularity due to their high performance and strong interpretability. Therefore, there has been a growing interest in adapting XGBoost for use in federated settings via cryptographic techniques. However, it should be noted that these approaches may not always provide rigorous theoretical privacy guarantees, and they often come with a high computational cost in terms of time and space requirements. In this paper, we propose a variant of vertical federated XGBoost with bilateral differential privacy guarantee: MaskedXGBoost. We build well-calibrated noise to perturb the intermediate information to protect privacy. The noise is structured with part of its ingredients in the null space of the arithmetical operation for splitting score evaluation in XGBoost, helping us achieve consistently better utility than other perturbation methods and relatively lower overhead than encryption-based techniques. We provide theoretical utility analysis and empirically verify privacy preservation. Compared with other algorithms, our algorithm's superiority in both utility and efficiency has been validated on multiple datasets.
BibTeX
@misc{zhang2025bilateral,
  author = {Bokang Zhang and Zhikun Zhang and Haodong Jiang and Yang Liu and Lihao Zheng and Yuxiao Zhou and Shuaiting Huang and Junfeng Wu},
  title = {{Bilateral Differentially Private Vertical Federated Boosted Decision Trees}},
  year = {2025},
  eprint = {2504.21739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21739},
}
Figure