FedLog: Personalized Federated Classification with Less Communication and More Flexibility

Haolin Yu, Guojun Zhang, Pascal PoupartarXiv 2024

Abstract

Federated representation learning (FRL) aims to learn personalized federated models with effective feature extraction from local data. FRL algorithms that share the majority of the model parameters face significant challenges with huge communication overhead. This overhead stems from the millions of neural network parameters and slow aggregation progress of the averaging heuristic. To reduce the overhead, we propose to share sufficient data summaries instead of raw model parameters. The data summaries encode minimal sufficient statistics of an exponential family, and Bayesian inference is utilized for global aggregation. It helps to reduce message sizes and communication frequency. To further ensure formal privacy guarantee, we extend it with differential privacy framework. Empirical results demonstrate high learning accuracy with low communication overhead of our method.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while keeping data localized. However, standard FL approaches often encounter two primary obstacles: communication bottlenecks and client heterogeneity. In Federated Representation Learning (FRL), models are typically partitioned into a feature extractor (the "body") and a classifier (the "head"). While many methods share the body parameters to leverage collective knowledge, the massive size of modern neural network bodies—often containing millions of weights—makes frequent synchronization prohibitively expensive.

Furthermore, traditional FL assumes a rigid homogeneity where all clients must utilize identical model architectures. This requirement is impractical in real-world scenarios where devices range from low-power sensors to high-performance servers. Existing "head-sharing" methods attempt to address this but frequently rely on simple weight averaging (FedAvg), which struggles to converge in non-i.i.d. settings where data distributions vary significantly across clients.

The FedLog Framework

To overcome these limitations, we introduce FedLog (Federated Bayesian Logistic Regression). FedLog shifts the focus from sharing model weights to sharing compact data summaries.

Methodology

  1. Local Body, Global Head: Clients maintain their feature extractors locally, ensuring that the most parameter-heavy part of the model never leaves the device. Only the classification head is treated as a global component.
  2. Sufficient Statistics: By assuming that features extracted by local bodies follow an exponential family distribution, we utilize the concept of sufficient statistics. These are compact summaries that encapsulate all necessary information for parameter inference, regardless of the raw data size.
  3. Bayesian Aggregation: Instead of the heuristic averaging of weights, FedLog employs Bayesian inference. Clients transmit the sum of their local sufficient statistics to a central server, which then performs Maximum A Posteriori (MAP) estimation to update the global head. This approach is statistically more robust and leads to faster convergence.
Visualization of FedLog's global classification head on a synthetic 2D dataset, showing effective separation.
  1. FedLog-C and Privacy: We propose a variant, FedLog-C, which incorporates an auxiliary contrastive loss to encourage the formation of tighter, more separable feature clusters. Additionally, we integrate a Gaussian noise mechanism to provide formal (ε, δ)-Differential Privacy (DP) guarantees.

Experimental Evaluation

We evaluated FedLog against several benchmarks, including MNIST (with a 5% training subset), CIFAR-10, CIFAR-100, and CelebA. We also utilized a synthetic 2D dataset to visualize the learning of universal representation spaces across heterogeneous local architectures.

Key Results

FedLog demonstrates remarkable communication efficiency. Compared to standard FedAvg, it achieved communication cost reductions of 99.91% on MNIST, 99.71% on CIFAR-10, and 96.56% on CIFAR-100. Despite this drastic reduction in data transfer, the model maintained or even improved upon baseline accuracy levels. For instance, on the challenging CIFAR-100 dataset, FedLog-C reached 56.78% accuracy, far surpassing FedAvg's 13.34%.

FedLog (orange) consistently achieves higher and more stable testing accuracy over local iterations compared to the LG-FedAvg baseline (blue).

Discussion and Insights

  • Architecture Agnosticism: Because the server only processes the output statistics of the feature extractors, FedLog allows for complete hardware flexibility. Clients can use different architectures (e.g., MLP vs. ResNet) tailored to their specific hardware constraints.
  • Robustness to Heterogeneity: In scenarios where clients possessed varying network sizes, FedLog converged more rapidly and achieved higher final accuracy than LG-FedAvg.
  • Privacy by Design: The non-invertible nature of the summed statistics, combined with the fact that model bodies are never shared, makes FedLog inherently resistant to gradient-based reconstruction attacks.

Conclusion

FedLog represents a significant step forward in making federated representation learning both efficient and flexible. By leveraging Bayesian inference and sufficient statistics, it slashes communication overhead while supporting heterogeneous client architectures. Future work will focus on extending this framework to regression tasks and exploring more complex prior distributions to further enhance performance and generalizability.

Summary updated

BibTeX
@misc{yu2024fedlog,
  author = {Haolin Yu and Guojun Zhang and Pascal Poupart},
  title = {{FedLog: Personalized Federated Classification with Less Communication and More Flexibility}},
  year = {2024},
  eprint = {2407.08337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.08337},
}
Figure