Introduction
Federated Learning (FL) enables collaborative model training across distributed devices without centralizing raw data. However, practical deployments face two significant challenges: the "straggler problem" in synchronous systems and the "privacy gap" in asynchronous systems. While asynchronous FL (e.g., FedBuff) mitigates stragglers, securing it typically requires Trusted Execution Environments (TEEs), which are hardware-constrained. BASecAgg (Buffered Asynchronous Secure Aggregation) is a novel protocol that provides robust privacy for asynchronous FL without specialized hardware.
The Challenge: Stragglers and Privacy
In synchronous FL, the server must wait for the slowest device before updating the global model, leading to inefficiencies. Asynchronous FL allows the server to update as updates arrive, but standard Secure Aggregation (SecAgg) protocols fail because they require all participating users to be in the same training round to cancel out protective "masks."
The BASecAgg Protocol
BASecAgg introduces a "one-shot" mask reconstruction technique to handle staleness—updates arriving from different rounds.
One-Shot Masking
Building on LightSecAgg, users generate random masks and distribute fragments using Maximum Distance Separable (MDS) codes. This allows the server to reconstruct the aggregate mask for all users currently in the buffer simultaneously, regardless of their starting rounds.
Stochastic Quantization and Finite Fields
Secure mathematical operations require finite fields (modular arithmetic). To map continuous model weights to these fields, BASecAgg employs stochastic rounding and two’s complement representation. This ensures that negative values and decimals are handled securely without breaking the aggregation logic.
Key Insights: The "Goldilocks Zone"
A critical finding is the sensitivity of the protocol to the quantization parameter ($c_{bit}$). As seen in the figure above, if $c_{bit}$ is too low, rounding errors prevent convergence. Conversely, if $c_{bit}$ is too high, values overflow the finite field ("wrap-around"), destroying accuracy. Optimal performance is found in a middle range (e.g., 16-32 bits), where quantization noise becomes negligible.
Experimental Results
The authors evaluated BASecAgg on the MNIST (LeNet) and CIFAR-10 (CNN) datasets.
Performance Parity
Experiments demonstrate that BASecAgg achieves convergence rates and final accuracies nearly identical to the TEE-based FedBuff baseline. This confirms that the mathematical security layer does not significantly degrade model utility compared to hardware-based solutions.
Scalability and Speed
By removing hardware dependencies, BASecAgg is more scalable for large models and can be deployed on standard cloud infrastructure. It maintains the speed advantages of asynchronous training, significantly outperforming synchronous methods by eliminating wait times for stragglers.
Limitations and Future Work
While effective, BASecAgg requires careful tuning of the quantization parameter to avoid overflows. Future work may involve integrating auto-tuning algorithms. Additionally, while MDS codes provide resiliency, the communication overhead of sharing code fragments remains an area for potential optimization, especially in high-dropout scenarios.
Summary updated