PackVFL:面向纵向联邦学习的高效同态加密打包方法
PackVFL: Efficient HE Packing for Vertical Federated Learning
AI总结:
PackVFL 提出基于打包同态加密的高效纵向联邦学习框架,通过系统探索矩阵乘法设计空间并设计混合 MatMult 方法及自适应应用策略,实现高达 51.52 倍的端到端加速。
摘要:
作为安全分布式机器学习的重要工具,基于同态加密(HE)的纵向联邦学习(VFL)由于数据膨胀和耗时操作而面临严重的效率问题。针对这一核心问题,我们提出 PackVFL,一个基于打包同态加密(PackedHE)的高效 VFL 框架,以加速现有的基于 HE 的 VFL 算法。PackVFL 将多个明文打包进一个密文,并支持单指令多数据(SIMD)风格的并行化。我们专注于设计高性能的矩阵乘法(MatMult)方法,因为它在基于 HE 的 VFL 中占据了绝大部分密文计算时间。此外,为 PackedHE 设计 MatMult 方法也具有挑战性,因为打包方式上的细微差异就可能显著影响其计算和通信开销。如果没有领域特定的设计,直接应用最先进的(SOTA)MatMult 方法很难达到最优效果。因此,我们进行了三方面的设计:1)我们系统地探索了当前 MatMult 的设计空间,并量化了现有方法的复杂度以提供指导;2)我们根据 VFL 的独特特征提出了一种混合 MatMult 方法;3)我们将该混合方法自适应地应用于具有代表性的 VFL 算法中,利用其独特的算法特性进一步提升效率。随着 VFL 的批量大小、特征维度和模型规模扩展到较大规模,PackVFL 持续提供增强的性能。实验表明,PackVFL 将现有 VFL 算法推向了新的高度,实现了高达 51.52 倍的端到端加速。与直接应用 SOTA MatMult 方法相比,这相当于额外获得了 34.51 倍的显著加速。
英文摘要:
As an essential tool of secure distributed machine learning, vertical federated learning (VFL) based on homomorphic encryption (HE) suffers from severe efficiency problems due to data inflation and time-consuming operations. To this core, we propose PackVFL, an efficient VFL framework based on packed HE (PackedHE), to accelerate the existing HE-based VFL algorithms. PackVFL packs multiple cleartexts into one ciphertext and supports single-instruction-multiple-data (SIMD)-style parallelism. We focus on designing a high-performant matrix multiplication (MatMult) method since it takes up most of the ciphertext computation time in HE-based VFL. Besides, devising the MatMult method is also challenging for PackedHE because a slight difference in the packing way could predominantly affect its computation and communication costs. Without domain-specific design, directly applying SOTA MatMult methods is hard to achieve optimal. Therefore, we make a three-fold design: 1) we systematically explore the current design space of MatMult and quantify the complexity of existing approaches to provide guidance; 2) we propose a hybrid MatMult method according to the unique characteristics of VFL; 3) we adaptively apply our hybrid method in representative VFL algorithms, leveraging distinctive algorithmic properties to further improve efficiency. As the batch size, feature dimension and model size of VFL scale up to large sizes, PackVFL consistently delivers enhanced performance. Empirically, PackVFL propels existing VFL algorithms to new heights, achieving up to a 51.52X end-to-end speedup. This represents a substantial 34.51X greater speedup compared to the direct application of SOTA MatMult methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。