Skip to main content
QUICK REVIEW

[Paper Review] Federated Learning on Heterogeneous and Long-Tailed Data via Classifier Re-Training with Federated Features

Xinyi Shang, Yang Lu|arXiv (Cornell University)|Apr 28, 2022
Privacy-Preserving Technologies in DataComputer Science11 citations
TL;DR

This paper proposes CReFF, a privacy-preserving federated learning method that re-trains the global classifier using synthetic federated features to address data heterogeneity and long-tail class imbalance. By optimizing federated features to match real data gradients, CReFF achieves performance comparable to full-data retraining without leaking local data or class distribution, outperforming state-of-the-art FL methods on CIFAR-10-LT and ImageNet-LT.

ABSTRACT

Federated learning (FL) provides a privacy-preserving solution for distributed machine learning tasks. One challenging problem that severely damages the performance of FL models is the co-occurrence of data heterogeneity and long-tail distribution, which frequently appears in real FL applications. In this paper, we reveal an intriguing fact that the biased classifier is the primary factor leading to the poor performance of the global model. Motivated by the above finding, we propose a novel and privacy-preserving FL method for heterogeneous and long-tailed data via Classifier Re-training with Federated Features (CReFF). The classifier re-trained on federated features can produce comparable performance as the one re-trained on real data in a privacy-preserving manner without information leakage of local data or class distribution. Experiments on several benchmark datasets show that the proposed CReFF is an effective solution to obtain a promising FL model under heterogeneous and long-tailed data. Comparative results with the state-of-the-art FL methods also validate the superiority of CReFF. Our code is available at https://github.com/shangxinyi/CReFF-FL.

Motivation & Objective

  • To address the joint challenge of data heterogeneity and long-tailed class distribution in federated learning, which severely degrades model performance.
  • To identify the biased classifier as the primary cause of poor global model performance in such settings.
  • To develop a privacy-preserving method that avoids exposing local data or class distribution while improving model accuracy.
  • To enable effective classifier retraining on the server using only synthetic, federated features instead of real client data.
  • To validate that classifier retraining on federated features can match the performance of retraining on real data.

Proposed method

  • The method decouples federated learning into two stages: feature extraction via FedAvg and classifier retraining on the server.
  • Federated features are synthesized on the server by optimizing them to match the gradient direction of real data features through a gradient matching loss.
  • The gradient matching loss ensures that the classifier trained on federated features follows a similar optimization path as one trained on real data.
  • Only a small number of balanced federated features per class (e.g., 1–200) are generated, minimizing communication and storage costs.
  • The approach preserves privacy because the federated features do not need to be similar to real features—only their gradients need to align.
  • The classifier is retrained on the server using these synthetic, balanced federated features, avoiding exposure of local data or class distributions.

Experimental results

Research questions

  • RQ1Why does classifier retraining on federated features achieve performance comparable to retraining on real data?
  • RQ2How does the gradient matching loss between federated and real features evolve during training?
  • RQ3To what extent do the synthetic federated features preserve privacy while enabling effective classifier retraining?
  • RQ4How many federated features per class are sufficient to achieve significant performance gains?
  • RQ5How does CReFF compare to state-of-the-art federated learning methods under extreme data heterogeneity and long-tail imbalance?

Key findings

  • On CIFAR-10-LT with IF=100 and α=0.1, CReFF achieved an 18% performance gain over FedAvg, demonstrating strong effectiveness under extreme heterogeneity and long-tail imbalance.
  • CReFF outperformed all state-of-the-art FL methods on both CIFAR-10-LT and ImageNet-LT, achieving the highest accuracy across all shot regimes (many-, medium-, and few-shot classes).
  • Even with only one federated feature per class, CReFF improved accuracy by 4.21% on CIFAR-10-LT with IF=100, showing robustness with minimal data.
  • The gradient dissimilarity between federated and real features decreased to near zero within a few training rounds, confirming effective gradient alignment.
  • Cosine dissimilarity between federated and real features remained high, confirming that the synthetic features are not reconstructible, thus preserving privacy.
  • The performance gain from CReFF was stable and scalable, with diminishing returns beyond 100–200 federated features per class.

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.