Skip to main content
QUICK REVIEW

[Paper Review] BAFFLE: A Baseline of Backpropagation-Free Federated Learning

Haozhe Feng, Tianyu Pang|arXiv (Cornell University)|Jan 28, 2023
Privacy-Preserving Technologies in DataComputer Science6 citations
TL;DR

BAFFLE proposes a backpropagation-free federated learning framework that replaces gradient computation with multiple forward passes using random perturbations to estimate gradients. It achieves acceptable model accuracy with significantly reduced memory and computational overhead, enabling deployment on resource-constrained edge devices and trusted execution environments.

ABSTRACT

Federated learning (FL) is a general principle for decentralized clients to train a server model collectively without sharing local data. FL is a promising framework with practical applications, but its standard training paradigm requires the clients to backpropagate through the model to compute gradients. Since these clients are typically edge devices and not fully trusted, executing backpropagation on them incurs computational and storage overhead as well as white-box vulnerability. In light of this, we develop backpropagation-free federated learning, dubbed BAFFLE, in which backpropagation is replaced by multiple forward processes to estimate gradients. BAFFLE is 1) memory-efficient and easily fits uploading bandwidth; 2) compatible with inference-only hardware optimization and model quantization or pruning; and 3) well-suited to trusted execution environments, because the clients in BAFFLE only execute forward propagation and return a set of scalars to the server. Empirically we use BAFFLE to train deep models from scratch or to finetune pretrained models, achieving acceptable results. Code is available in https://github.com/FengHZ/BAFFLE.

Motivation & Objective

  • Address the computational and memory overhead of backpropagation on resource-constrained edge devices in federated learning.
  • Mitigate white-box vulnerabilities in federated learning by eliminating the need to expose model parameters to clients.
  • Enable compatibility with inference-only hardware, model quantization, pruning, and trusted execution environments (TEEs).
  • Explore the feasibility of zero-order optimization in federated learning to reduce reliance on gradient computation.

Proposed method

  • Replace backpropagation with multiple forward passes on perturbed model weights to estimate gradients using finite difference approximation.
  • Each client perturbs the global model parameters $ K $ times using random noise vectors $ m{ u}_k $, computed from a shared random seed.
  • Clients compute loss differences $ riangle ilde{ heta} = ilde{ heta}(oldsymbol{W} + m{ u}_k) - ilde{ heta}(oldsymbol{W} - m{ u}_k) $ via forward inference on their local data.
  • The server aggregates these scalar loss differences using secure aggregation to estimate the full gradient vector.
  • Adjust $ K $ to control communication bandwidth, as each loss difference is a single floating-point number.
  • Leverage layer-wise computation slicing and kernel-wise optimization to minimize static and dynamic memory usage on edge devices.

Experimental results

Research questions

  • RQ1Can federated learning be effectively trained without backpropagation by relying solely on forward passes and gradient estimation via finite differences?
  • RQ2To what extent does BAFFLE reduce memory and computational overhead compared to standard backpropagation-based FL on edge devices?
  • RQ3How well does BAFFLE perform in terms of model accuracy and convergence when training from scratch or fine-tuning pre-trained models?
  • RQ4Can BAFFLE be securely integrated into trusted execution environments (TEEs) due to its minimal memory footprint and lack of model parameter exposure?
  • RQ5What is the information leakage risk from the scalar loss differences $ riangle ilde{ heta} $, and how does it compare to standard inference-based attacks?

Key findings

  • BAFFLE achieves suboptimal but acceptable performance on MNIST, CIFAR-10/100, and OfficeHome datasets, with accuracy within 3%–5% of standard FL when fine-tuning ImageNet-pretrained MobileNet.
  • The method reduces memory usage to 5%–10% of standard backpropagation by slicing the computation graph into per-layer inference, and down to ~1% (e.g., 64MB for MobileNet) with kernel-wise optimization.
  • BAFFLE is compatible with TEEs due to its low memory footprint—achieving ~64MB memory usage, which fits within typical TEE limits (e.g., 90MB on Intel SGX).
  • Empirical results show that loss differences $ riangle ilde{ heta} $ from real data and random noise are indistinguishable, suggesting resistance to membership and model inversion attacks.
  • With proper training strategies like transfer learning, $ K $ can be reduced to 20 on the OfficeHome dataset, reducing the computation cost to approximately $ rac{K}{5} $ times that of BP-based FL.
  • The method demonstrates that zero-order optimization via forward passes is viable for federated learning, especially in scenarios where edge devices lack support for backpropagation.

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.