[Paper Review] Efficient Batch Homomorphic Encryption for Vertically Federated XGBoost
This paper proposes an efficient batch homomorphic encryption method for vertically federated XGBoost that encodes first- and second-order gradients into a single value, reducing homomorphic encryption and ciphertext transmission costs by nearly half. The method achieves up to 50% faster tree building and over 30% total runtime reduction compared to SecureBoost, with negligible accuracy loss measured by AUC and KS scores.
More and more orgainizations and institutions make efforts on using external data to improve the performance of AI services. To address the data privacy and security concerns, federated learning has attracted increasing attention from both academia and industry to securely construct AI models across multiple isolated data providers. In this paper, we studied the efficiency problem of adapting widely used XGBoost model in real-world applications to vertical federated learning setting. State-of-the-art vertical federated XGBoost frameworks requires large number of encryption operations and ciphertext transmissions, which makes the model training much less efficient than training XGBoost models locally. To bridge this gap, we proposed a novel batch homomorphic encryption method to cut the cost of encryption-related computation and transmission in nearly half. This is achieved by encoding the first-order derivative and the second-order derivative into a single number for encryption, ciphertext transmission, and homomorphic addition operations. The sum of multiple first-order derivatives and second-order derivatives can be simultaneously decoded from the sum of encoded values. We are motivated by the batch idea in the work of BatchCrypt for horizontal federated learning, and design a novel batch method to address the limitations of allowing quite few number of negative numbers. The encode procedure of the proposed batch method consists of four steps, including shifting, truncating, quantizing and batching, while the decoding procedure consists of de-quantization and shifting back. The advantages of our method are demonstrated through theoretical analysis and extensive numerical experiments.
Motivation & Objective
- Address the high computational and communication overhead of homomorphic encryption in vertical federated XGBoost training.
- Reduce the number of encryption operations and ciphertext transmissions required in secure gradient aggregation.
- Enable efficient, privacy-preserving XGBoost training across institutions with vertically partitioned data.
- Overcome limitations of prior batching methods that struggle with negative numbers in gradient encoding.
- Maintain model accuracy comparable to state-of-the-art methods like SecureBoost while significantly improving efficiency.
Proposed method
- Encode first-order derivative $g_i$ and second-order derivative $h_i$ into a single number using a four-step process: shifting, truncating, quantizing, and batching.
- Perform homomorphic encryption and addition on the encoded single value, enabling simultaneous computation of aggregated $g$ and $h$.
- Decode the sum of encoded values via de-quantization and shifting back to recover individual $g$ and $h$ values.
- Introduce a quantization parameter $\alpha_{\sf{max}}$ and scaling factor $r$ to control precision and prevent overflow during encoding.
- Design the batching scheme to handle negative numbers safely, avoiding overflow issues common in prior methods like BatchCrypt.
- Use Paillier homomorphic encryption for secure, additive operations on the encoded gradients during model training.
Experimental results
Research questions
- RQ1Can batching first- and second-order gradients reduce the number of homomorphic encryption operations and ciphertext transmissions in vertical federated XGBoost?
- RQ2How can batching be designed to handle negative values without overflow, unlike existing methods?
- RQ3What is the impact of quantization parameters on precision loss and numerical stability in gradient encoding?
- RQ4How does the proposed method compare to SecureBoost in terms of training efficiency and model accuracy?
- RQ5Does the batching method maintain model performance (measured by AUC and KS) despite encoding-induced quantization?
Key findings
- The proposed method reduces the total runtime of vertical federated XGBoost training by over 30% on large datasets, with up to 50% reduction in tree-building time compared to SecureBoost.
- For a dataset of 91,500 samples, the total runtime is reduced to 75% of SecureBoost’s time, improving with larger problem sizes.
- The method maintains comparable model accuracy, with AUC and KS values differing by less than 0.005 across all evaluated datasets and configurations.
- The efficiency gain increases with the number of boosting rounds, reaching up to 50% faster per-tree training at 90 trees.
- The method achieves near-optimal performance with proper selection of $\alpha_{\sf{max}}$ and $r$, minimizing overflow and preserving precision.
- Theoretical analysis confirms that the method avoids overflow issues from negative number addition, a key limitation of prior batching techniques.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.