Towards Efficient Secure Aggregation in FL: Partial Vector Freezing for Cost Compression

Siqing Zhang, Yong Liao, Pengyuan Zhou · OpenReview

TL;DR

This paper introduces "Partial Vector Freezing" (PVF), a novel technique to drastically reduce the computational and communication overhead of secure aggregation in federated learning. By "freezing" most of a user's data update vector through linear transformations, PVF allows secure aggregation protocols to process only a small fraction of the data, achieving significant speedups and communication reductions without compromising privacy.

What Problem Does This Paper Address?

Federated Learning (FL) allows training machine learning models on decentralized data without sharing raw user data. However, a critical step, secure aggregation (SA), where the central server combines user updates, is computationally expensive. Existing Secure Aggregation Protocols (SAPs) often involve complex cryptographic operations on every element of user update vectors (e.g., gradients), leading to exorbitant computation and communication costs. This bottleneck severely limits the applicability of FL, especially for large models like LLMs with billions of parameters. The paper aims to tackle this by reducing the computational burden of SAPs without sacrificing privacy or introducing extra communication.

Methods

The core innovation is Partial Vector Freezing (PVF). Here's how it works:

  1. Setup: Public parameters, including an invertible matrix A and its inverse A⁻¹, are generated.
  2. Freezing: Each user transforms their original update vector x into two parts:
  3. Frozen Vector (y): A significant portion of x is transformed using a sub-matrix of A (specifically, Ăx). This part is designed such that Ăx alone doesn't reveal much about x.
  4. Key Vector (k): The remaining part of x is used to derive a "key vector" k.
  5. Secure Aggregation (SAP): Standard SAPs are then applied only to the much smaller Key Vectors (k). The Frozen Vectors (y) are also sent to the server.
  6. Thawing: After the SAP completes and the server aggregates the Key Vectors (and receives the Frozen Vectors), it uses the public parameters (A⁻¹) to reconstruct the sum of the entire original update vectors from the aggregated Key Vectors and the received Frozen Vectors.

This process effectively "freezes" most of the data, reducing the amount that needs to be processed by the computationally intensive SAP. The paper also introduces Disrupting Variables Extension (DVE) to add noise and further obscure any potential linear relationships that might be revealed by the frozen vectors, enhancing privacy. Several optional extensions are also proposed for improved security and verification.

Datasets

The paper evaluates its method on standard datasets for machine learning tasks, including:

  • MNIST: Used for image classification experiments.
  • MovieLens (ML-1M): Used for movie recommendation tasks.

The authors do not introduce new datasets but rather use these standard benchmarks to demonstrate the effectiveness of their approach in practical FL scenarios.

Key Insights and Ideas

  • Focus on the Bottleneck: The paper correctly identifies that the per-entry processing in SAPs is the primary computational bottleneck, not necessarily the SAP protocol itself. PVF targets this by reducing the number of entries that undergo this expensive processing.
  • Linear Transformations for Compression: Using linear algebra (matrices and vectors) provides a computationally cheap way to "compress" the data for aggregation while retaining the ability to reconstruct the full sum later.
  • Decoupling PVF from SAP: PVF is designed as a portable module that can be integrated with various existing SAPs without altering their core mechanisms, enhancing its practical applicability.
  • Privacy through Underdetermined Systems: The privacy of the frozen vectors relies on the hardness of solving underdetermined systems of linear equations, a well-established cryptographic primitive.
  • Trade-offs with Extensions: While extensions like DVE, RVE, and UCE enhance security and verification, they do introduce some additional computational and communication overhead, though generally less than the gains from PVF itself.

Key Results

  • Significant Speedup: Integrating PVF with various SAPs achieved speedups ranging from 70x to 99.5x for a compression factor of λ=100. In some cases, acceleration approached 1000x.
  • Communication Reduction: PVF led to communication improvements of up to 32.3x for HE-based SAPs.
  • LLM Feasibility: The method makes training LLMs in FL more feasible by drastically reducing the computational cost, which is currently prohibitive for models with billions of parameters.
  • Minimal Overhead for Extensions: Optional extensions like DVE had a negligible impact on model performance. RVE and UCE added O(m) communication and computation complexity, but the overall gains from PVF still significantly outweighed these additions.

Limitations and Future Work

  • Padding Overhead: PVF requires padding the original vector to a multiple of λ, which introduces a small, though generally negligible, overhead. The paper proposes a method to avoid padding by extracting the first λ entries and appending the rest to the key vector.
  • Interaction Overhead: While PVF reduces computation, some SAPs still have inherent interaction-related overhead (e.g., key agreements, secret sharing) that limits the maximum achievable speedup.
  • Extension Overhead: The proposed extensions (RVE, UCE) introduce additional communication and computation costs, which the authors suggest mitigating in future work.
  • Active Adversary Model: While PVF is designed to be secure in semi-honest and active adversary settings, the paper acknowledges that the active adversary model still presents challenges, particularly regarding ensuring the correctness of aggregation results when the server can arbitrarily modify them.
  • Future Work: The authors suggest exploring ways to mitigate the overhead introduced by extensions and further investigate PVF's applicability in asynchronous FL settings.

Summary updated

BibTeX
@misc{zhang2023towards,
  author = {Siqing Zhang and Yong Liao and Pengyuan Zhou},
  title = {{Towards Efficient Secure Aggregation in FL: Partial Vector Freezing for Cost Compression}},
  year = {2023},
  eprint = {2312.04920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.04920},
}
Figure