Skip to main content
QUICK REVIEW

[Paper Review] Secure Aggregation for Buffered Asynchronous Federated Learning

Jinhyun So, Ramy E. Ali|arXiv (Cornell University)|Oct 5, 2021
Privacy-Preserving Technologies in DataComputer Science26 references14 citations
TL;DR

This paper proposes BASecAgg, a TEE-free buffered asynchronous federated learning protocol that enables secure aggregation without relying on trusted execution environments. By designing round-robust masks that cancel across different training rounds, BASecAgg achieves convergence performance nearly identical to FedBuff—its TEE-dependent counterpart—while enabling arbitrary buffer sizes and preserving user privacy through quantization-based obfuscation in a finite field.

ABSTRACT

Federated learning (FL) typically relies on synchronous training, which is slow due to stragglers. While asynchronous training handles stragglers efficiently, it does not ensure privacy due to the incompatibility with the secure aggregation protocols. A buffered asynchronous training protocol known as FedBuff has been proposed recently which bridges the gap between synchronous and asynchronous training to mitigate stragglers and to also ensure privacy simultaneously. FedBuff allows the users to send their updates asynchronously while ensuring privacy by storing the updates in a trusted execution environment (TEE) enabled private buffer. TEEs, however, have limited memory which limits the buffer size. Motivated by this limitation, we develop a buffered asynchronous secure aggregation (BASecAgg) protocol that does not rely on TEEs. The conventional secure aggregation protocols cannot be applied in the buffered asynchronous setting since the buffer may have local models corresponding to different rounds and hence the masks that the users use to protect their models may not cancel out. BASecAgg addresses this challenge by carefully designing the masks such that they cancel out even if they correspond to different rounds. Our convergence analysis and experiments show that BASecAgg almost has the same convergence guarantees as FedBuff without relying on TEEs.

Motivation & Objective

  • Address the limitation of TEE-dependent secure aggregation in buffered asynchronous FL, where limited memory constrains buffer size.
  • Overcome the incompatibility of conventional secure aggregation protocols with asynchronous updates due to mismatched round masks.
  • Design a secure aggregation protocol that maintains privacy without relying on trusted hardware, enabling scalable and efficient asynchronous FL.
  • Ensure convergence guarantees under quantization and staleness, which are critical for practical deployment in real-world FL systems.
  • Demonstrate that the proposed protocol achieves performance comparable to FedBuff despite eliminating TEEs and introducing quantization noise.

Proposed method

  • Adapt the LightSecAgg protocol to the buffered asynchronous FL setting by redefining mask design to ensure cancellation across different training rounds.
  • Introduce a finite-field transformation of local model updates using quantization to protect privacy, with values mapped to a prime field $ q = 2^{32} - 5 $.
  • Design a quantized staleness compensation function $ s_{ ext{quant}}( au) $ that mirrors the behavior of the real-valued staleness function in FedBuff, preserving convergence.
  • Apply stochastic rounding and modulo operations to map real-valued gradients into the finite field, minimizing quantization error through optimal parameter tuning.
  • Use a one-shot mask reconstruction mechanism to efficiently compute the aggregate without reconstructing individual dropped-user masks, improving scalability.
  • Integrate a weighting function based on staleness (constant or polynomial $ (1+ au)^{-eta} $) to mitigate the impact of delayed updates in asynchronous settings.

Experimental results

Research questions

  • RQ1Can secure aggregation be achieved in a buffered asynchronous FL setting without relying on trusted execution environments (TEEs) or trusted third parties?
  • RQ2How can masks be designed to cancel out across different training rounds in an asynchronous buffer, enabling secure aggregation despite round mismatch?
  • RQ3What is the impact of quantization on convergence in buffered asynchronous FL, and can it be mitigated to preserve model accuracy?
  • RQ4How does the convergence performance of the proposed TEE-free protocol compare to FedBuff, the state-of-the-art TEE-based solution?
  • RQ5What is the optimal quantization level that balances rounding and wrap-around errors in finite-field operations?

Key findings

  • BASecAgg achieves convergence performance nearly identical to FedBuff on both MNIST and CIFAR-10 datasets, with only negligible degradation due to quantization noise.
  • The convergence rate of BASecAgg matches that of FedBuff up to an additional variance term $ \frac{d}{4c_l^2} $, which is negligible for large $ c_l $, as confirmed in experiments.
  • With $ c_l = 2^{16} $, BASecAgg achieves optimal performance, balancing rounding and wrap-around quantization errors, as shown by auto-tuning analysis.
  • The protocol maintains robustness under varying staleness levels, with the polynomial weighting function $ s_\alpha(\tau) = (1+\tau)^{-\alpha} $ effectively mitigating delay effects.
  • Experiments confirm that BASecAgg performs comparably to FedBuff even with quantization, demonstrating that privacy-preserving finite-field operations do not significantly degrade model accuracy.
  • The protocol enables arbitrary buffer sizes, overcoming the TEE memory limitation that restricts FedBuff’s scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.