arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.04261cs.CRcs.AIcs.LG
收藏

基于垂直联邦XGBoost的高效批量同态加密

Efficient Batch Homomorphic Encryption for Vertically Federated XGBoost

Beihang University(北京航空航天大学);JD Technology Group(京东科技集团);Zhejiang University(浙江大学)

Wuxing Xu, Hao Fan, Kaixin Li, Kai Yang

摘要:

越来越多的组织和机构致力于使用外部数据来提高AI服务的性能。为了解决数据隐私和安全问题,联邦学习越来越受到学术界和工业界的关注,以便在多个孤立的数据提供者之间安全地构建AI模型。本文研究了在实际应用中广泛使用的XGBoost模型在垂直联邦学习环境下的适应效率问题。最先进的垂直联邦XGBoost框架需要大量的加密操作和密文传输,这使得模型训练的效率远远低于本地训练XGBoost模型。为了弥补这一差距,我们提出了一种新的批处理同态加密方法,将加密相关的计算和传输成本降低了近一半。这是通过将一阶导数和二阶导数编码为单个数字来实现的,用于加密、密文传输和同态加法运算。多个一阶导数和二阶导数的和可以从编码值的和同时解码。我们受到BatchCrypt在水平联邦学习工作中的批处理思想的启发,设计了一种新的批处理方法来解决允许很少数量的负数的限制。所提出的批处理方法的编码过程包括移位、截断、量化和重采样四个步骤,而解码过程包括反量化和移位。通过理论分析和大量的数值实验证明了我们的方法的优点。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑