Core Concepts
PackVFL, an efficient vertical federated learning framework based on packed homomorphic encryption, accelerates existing homomorphic encryption-based vertical federated learning algorithms by designing a high-performant matrix multiplication method tailored for the vertical federated learning scenario.
Abstract
The paper proposes PackVFL, an efficient vertical federated learning (VFL) framework based on packed homomorphic encryption (PackedHE), to accelerate existing homomorphic encryption (HE)-based VFL algorithms. The key focus is on designing a high-performant matrix multiplication (MatMult) method, as it dominates the ciphertext computation time in HE-based VFL.
The authors first provide a systematic exploration of the design space for PackedHE MatMult methods, dividing them into slot packing and coefficient packing approaches. They then summarize three key characteristics of VFL's MatMult operation and design a hybrid MatMult method accordingly:
Geo-Distributed Operand: The two operands are owned by geo-distributed parties in VFL. The authors choose the diagonal method as the basic component to reduce communication complexity.
Wide-Range Operand Size: VFL often has varying batch sizes or feature dimensions, leading to varying operand sizes of MatMult. The authors design input packing and partitioning techniques to handle small and large operands efficiently.
Passive Decryption: The resulting ciphertexts of MatMult are transmitted to the party owning the secret key for pure decryption without extra operations. The authors design a lazy rotate-and-sum mechanism to eliminate the remaining time-consuming ciphertext operations.
Furthermore, the authors adaptively apply the proposed MatMult method to three representative HE-based VFL algorithms (VFL-LinR, CAESAR, VFL-NN) by leveraging their distinctive algorithmic properties to further improve efficiency. This includes mechanisms like multiplication level reduction, cleartext inverse rotate-and-sum, and transposed matrices' diagonal conversion.
Empirically, PackVFL achieves up to a 51.52x end-to-end speedup over existing HE-based VFL algorithms, representing a substantial 34.51x greater speedup compared to the direct application of state-of-the-art MatMult methods.
Stats
MatMult gradually occupies up to 99.23% of the cryptographic computation time in the VFL-LinR algorithm.
PackVFL achieves up to a 51.52x end-to-end speedup over existing HE-based VFL algorithms.
PackVFL achieves a 34.51x greater speedup compared to the direct application of state-of-the-art MatMult methods.
Quotes
"PackVFL stands as one of the pioneering works to demonstrate the superiority of PackedHE over Paillier for VFL."
"Our proposed MatMult method exhibits potential advantages over state-of-the-art slot packing approaches, not only in VFL but also in other related domains such as secure model inference."