AFL: A Single-Round Analytic Approach for Federated Learning with Pre-trained Models

Run He, Kai Tong, Di Fang, Han Sun, Haoran Li +3 more
5/25/2024
cs.LG

Official code: ZHUANGHP/Analytic-federated-learning (72 stars, last commit 2025-03-27).

Abstract

In this paper, we introduce analytic federated learning (AFL), a new training paradigm that brings analytical (i.e., closed-form) solutions to the federated learning (FL) with pre-trained models. Our AFL draws inspiration from analytic learning -- a gradient-free technique that trains neural networks with analytical solutions in one epoch. In the local client training stage, the AFL facilitates a one-epoch training, eliminating the necessity for multi-epoch updates. In the aggregation stage, we derive an absolute aggregation (AA) law. This AA law allows a single-round aggregation, reducing heavy communication overhead and achieving fast convergence by removing the need for multiple aggregation rounds. More importantly, the AFL exhibits a property that $\textit{invariance to data partitioning}$, meaning that regardless of how the full dataset is distributed among clients, the aggregated result remains identical. This could spawn various potentials, such as data heterogeneity invariance and client-number invariance. We conduct experiments across various FL settings including extremely non-IID ones, and scenarios with a large number of clients (e.g., $\ge 1000$). In all these settings, our AFL constantly performs competitively while existing FL techniques encounter various obstacles. Our codes are available at https://github.com/ZHUANGHP/Analytic-federated-learning.

View on arXivView PDF

Code Implementations(1)

This repo will be continually updating analytic federated learning methods.

722Shell, PythonMay 21, 20241 years ago

Similar Papers

Cite this paper

@article{he2024afl,
  title  = {AFL: A Single-Round Analytic Approach for Federated Learning with Pre-trained Models},
  author = {Run He and Kai Tong and Di Fang and Han Sun and Haoran Li and Tianyi Chen and Ziqian Zeng and Huiping Zhuang},
  year   = {2024},
  eprint = {2405.16240},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16240v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.16240.svg)](https://codeofpaper.com/paper/2405.16240)

Discussion