Fusion of Global and Local Knowledge for Personalized Federated Learning

Tiansheng Huang, Li Shen, Yan Sun, Weiwei Lin, Dacheng Tao

Abstract

Personalized federated learning (PFL) trains customized models for clients using their heterogeneously distributed data. However, it is still inconclusive about how to design personalized models with better representation of shared global knowledge and personalized patterns. To bridge this gap, we explore personalized models with low-rank and sparse decomposition. Specifically, we employ proper regularization to extract a low-rank global knowledge representation (GKR), so as to distill global knowledge into a compact representation. Subsequently, we employ a sparse component over the obtained GKR to fuse the personalized pattern into the global knowledge. We propose a two-stage proximal-based algorithm named Federated learning with mixed Sparse and Low-Rank representation (FedSLR) to efficiently search for these mixed models. Theoretically, we show that the GKR trained by FedSLR converges sub-linearly to a stationary point. Extensive experiments demonstrate the superior empirical performance of FedSLR, which also reduces parameter counts and lowers downlink communication complexity.

Introduction

Standard Federated Learning (FL) aims to train a single global model across many clients without sharing private data. However, this "one-size-fits-all" approach often fails when data is Non-IID (not identically and independently distributed). Personalized Federated Learning (PFL) attempts to solve this by allowing each client to have a customized model. The core challenge in PFL is finding the "sweet spot": representing shared knowledge that applies to everyone (global) while efficiently capturing the unique patterns of an individual (local).

The FedSLR Framework

We introduce FedSLR (Federated learning with mixed Sparse and Low-Rank representation), which treats model weights as a combination of two distinct parts inspired by Robust PCA:

  1. Global Knowledge Representation (GKR): We use nuclear norm regularization to enforce a low-rank structure on the global model. The "core" common knowledge across clients is distilled into a compact, low-rank matrix.
  2. Sparse Personalized Component: On top of this global base, each client trains a sparse local component (using $L_1$ regularization). This component captures specific nuances of the client's local data as a sparse "patch."
The FedSLR workflow: Local fusion of fixed low-rank global knowledge with a trainable sparse component to create a personalized model.

Two-Stage Algorithm

The FedSLR algorithm operates in two primary phases:

  • Phase I (Global Training): The server and clients collaborate to find the low-rank GKR. To optimize communication, the server performs a Singular Value Decomposition (SVD) and sends only the smaller decomposed matrices (U and V) to clients.
  • Phase II (Local Fusion): Clients "freeze" the global knowledge and perform local fusion, training their sparse components to achieve peak personalized performance.
Communication-efficient GKR reconstruction and training process.

Experimental Evaluation

We evaluated FedSLR using CIFAR-10, CIFAR-100, and TinyImageNet benchmarks with highly heterogeneous data splits (using $\alpha$-Dirichlet distribution) among 100 clients.

Key Results

  • Superior Accuracy: On Non-IID CIFAR-100, FedSLR achieved 82.19% accuracy, outperforming the popular "Ditto" method by 3.52%.
  • Model Compression: The GKR model achieved its performance with 50.40% fewer parameters than a standard dense model.
  • Communication Efficiency: The method reduced downlink communication costs by approximately 38.34% per session because the server sends decomposed factors instead of full weight matrices.

Discussion and Future Work

While FedSLR significantly optimizes the downlink, the uplink (client-to-server) still involves sending full local models. Future work could apply similar sparsification to the upload phase. Additionally, while FL is inherently more private, the introduction of auxiliary variables to track local gradients suggests that integrating formal Differential Privacy would be a valuable next step to mitigate potential gradient inversion attacks.

Source Code: https://github.com/huangtiansheng/fedslr

Summary updated

Abstract

Personalized federated learning, as a variant of federated learning, trains customized models for clients using their heterogeneously distributed data. However, it is still inconclusive about how to design personalized models with better representation of shared global knowledge and personalized pattern. To bridge the gap, we in this paper explore personalized models with low-rank and sparse decomposition. Specifically, we employ proper regularization to extract a low-rank global knowledge representation (GKR), so as to distill global knowledge into a compact representation. Subsequently, we employ a sparse component over the obtained GKR to fuse the personalized pattern into the global knowledge. As a solution, we propose a two-stage proximal-based algorithm named \textbf{Fed}erated learning with mixed \textbf{S}parse and \textbf{L}ow-\textbf{R}ank representation (FedSLR) to efficiently search for the mixed models. Theoretically, under proper assumptions, we show that the GKR trained by FedSLR can at least sub-linearly converge to a stationary point of the regularized problem, and that the sparse component being fused can converge to its stationary point under proper settings. Extensive experiments also demonstrate the superior empirical performance of FedSLR. Moreover, FedSLR reduces the number of parameters, and lowers the down-link communication complexity, which are all desirable for federated learning algorithms. Source code is available in \url{https://github.com/huangtiansheng/fedslr}.
BibTeX
@article{huang2023fusion,
  author = {Tiansheng Huang and Li Shen and Yan Sun and Weiwei Lin and Dacheng Tao},
  title = {{Fusion of Global and Local Knowledge for Personalized Federated Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=NoFPufEGj_J},
}
Figure