Skip to main content
QUICK REVIEW

[Paper Review] Mixed Federated Learning: Joint Decentralized and Centralized Learning

Sean Augenstein, Andrew Hard|arXiv (Cornell University)|May 26, 2022
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

This paper introduces Mixed Federated Learning, a novel framework that jointly optimizes decentralized (federated) and centralized (datacenter) losses while preserving client data privacy. By incorporating a server-side loss term and proposing three algorithms—Parallel Training, 1-way Gradient Transfer, and 2-way Gradient Transfer—it reduces communication and computation by over 90% and matches oracle-level accuracy in distribution-matching scenarios.

ABSTRACT

Federated learning (FL) enables learning from decentralized privacy-sensitive data, with computations on raw data confined to take place at edge clients. This paper introduces mixed FL, which incorporates an additional loss term calculated at the coordinating server (while maintaining FL's private data restrictions). There are numerous benefits. For example, additional datacenter data can be leveraged to jointly learn from centralized (datacenter) and decentralized (federated) training data and better match an expected inference data distribution. Mixed FL also enables offloading some intensive computations (e.g., embedding regularization) to the server, greatly reducing communication and client computation load. For these and other mixed FL use cases, we present three algorithms: PARALLEL TRAINING, 1-WAY GRADIENT TRANSFER, and 2-WAY GRADIENT TRANSFER. We state convergence bounds for each, and give intuition on which are suited to particular mixed FL problems. Finally we perform extensive experiments on three tasks, demonstrating that mixed FL can blend training data to achieve an oracle's accuracy on an inference distribution, and can reduce communication and computation overhead by over 90%. Our experiments confirm theoretical predictions of how algorithms perform under different mixed FL problem settings.

Motivation & Objective

  • Address persistent distribution shift in federated learning by combining decentralized client data with centralized datacenter data.
  • Reduce client-side computation and communication overhead in representation learning tasks, especially those requiring large-scale negative sampling or embedding regularization.
  • Maintain data privacy by ensuring raw client data never leaves devices, while still enabling joint optimization with server-side objectives.
  • Provide theoretically grounded, privacy-preserving algorithms for mixed FL that converge under general, non-convex, and strongly convex settings.
  • Enable practical deployment of mixed FL in real-world applications such as mobile keyboard prediction, facial attribute classification, and recommendation systems.

Proposed method

  • Propose three algorithms: Parallel Training (PT), 1-way Gradient Transfer (1-w GT), and 2-way Gradient Transfer (2-w GT), all preserving data privacy by keeping client data on-device.
  • Introduce a mixed loss function $ f(\bm{x}) = f_{\textrm{f}}(\bm{x}) + f_{\textrm{c}}(\bm{x}) $, where $ f_{\textrm{f}} $ is the federated loss and $ f_{\textrm{c}} $ is a centralized loss computed at the server.
  • In 1-w GT, gradients from the centralized loss are sent from the server to clients to improve client model updates, while in 2-w GT, both client and server gradients are exchanged.
  • Use a 'meta-FL' perspective to analyze PT and 2-w GT, treating $ f_{\textrm{f}} $ and $ f_{\textrm{c}} $ as meta-clients, enabling convergence bounds under smoothness and bounded variance assumptions.
  • Derive novel convergence proofs for 1-w GT in non-convex settings using recursive bounds and stochastic gradient variance control.
  • Apply a meta-optimization view to bound client drift and ensure convergence, with theoretical guarantees under standard assumptions (Lipschitz smoothness, bounded gradients).

Experimental results

Research questions

  • RQ1Can joint training with centralized and decentralized data improve model generalization when the inference distribution differs from the training distribution?
  • RQ2To what extent can server-side computation of regularization terms reduce client-side communication and computation costs in representation learning?
  • RQ3How do different mixed FL algorithms (PT, 1-w GT, 2-w GT) compare in convergence rate and robustness under varying data and system conditions?
  • RQ4Can theoretical convergence bounds for mixed FL be established in non-convex settings, and do they align with empirical performance?
  • RQ5Can mixed FL achieve performance comparable to an 'oracle' model trained on the full inference distribution, even when data is split across clients and datacenter?

Key findings

  • Mixed FL reduces communication overhead by 93.9% and client computation by 99.9% in a user-embedding-based movie recommendation task, with no degradation in model quality.
  • On facial attribute classification and language modeling, mixed FL achieves accuracy matching that of an oracle model trained on the full inference distribution.
  • Theoretical convergence bounds for all three algorithms hold in strongly convex, general convex, and non-convex settings, with explicit dependence on data variance and step size.
  • The 1-w GT algorithm achieves a convergence rate of $ \mathcal{O}\left(\frac{\left(\sigma^{2}+KS\sigma_{\textrm{c}}^{2}\right)\beta F}{KS\epsilon^{2}} + \frac{\beta F}{\epsilon}\right) $, confirming sub-linear convergence.
  • Experiments confirm theoretical predictions: performance aligns with convergence bounds across different mixed FL problem settings.
  • The proposed algorithms effectively mitigate distribution shift by blending data from diverse sources, including low-end devices and rare safety-critical events.

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.