Skip to main content
QUICK REVIEW

[Paper Review] Prototype Guided Federated Learning of Visual Feature Representations

Umberto Michieli, Mete Özay|arXiv (Cornell University)|May 19, 2021
Privacy-Preserving Technologies in DataComputer Science59 references25 citations
TL;DR

The paper introduces FedProto, a prototype margin–guided federated optimization method for visual feature representations, improving accuracy and convergence in heterogeneous FL settings for classification and semantic segmentation. It also analyzes feature representation properties using novel margin-based metrics and entropy analyses.

ABSTRACT

Federated Learning (FL) is a framework which enables distributed model training using a large corpus of decentralized training data. Existing methods aggregate models disregarding their internal representations, which are crucial for training models in vision tasks. System and statistical heterogeneity (e.g., highly imbalanced and non-i.i.d. data) further harm model training. To this end, we introduce a method, called FedProto, which computes client deviations using margins of prototypical representations learned on distributed data, and applies them to drive federated optimization via an attention mechanism. In addition, we propose three methods to analyse statistical properties of feature representations learned in FL, in order to elucidate the relationship between accuracy, margins and feature discrepancy of FL models. In experimental analyses, FedProto demonstrates state-of-the-art accuracy and convergence rate across image classification and semantic segmentation benchmarks by enabling maximum margin training of FL models. Moreover, FedProto reduces uncertainty of predictions of FL models compared to the baseline. To our knowledge, this is the first work evaluating FL models in dense prediction tasks, such as semantic segmentation.

Motivation & Objective

  • Motivation to improve federated learning for vision by leveraging internal representations rather than only model weights.
  • Develop a prototype-based attention mechanism to drive aggregation in heterogeneous FL with non-i.i.d. data.
  • Introduce and analyze learning dynamics of prototypical representations across clients and rounds.
  • Provide metrics and qualitative tools to study feature representations in FL tasks like segmentation.

Proposed method

  • Compute class-wise prototypical representations on each client from latent features.
  • Define Local Prototype Margin (LPM) and Aggregate Prototype Margin (APM) to measure prototype displacement.
  • Introduce Semantic PM (SPM) to compare prototype distances within and between classes.
  • Compute local and aggregate attention weights from margins via sigmoid, and perform federated aggregation using these attentions.
  • Allow partial local workload and use a novel two-clause attention for combining local and aggregate deviations during FedAvg-style updates.
  • Provide an algorithm (FedProto) that integrates prototypes and attention into the FL optimization loop.

Experimental results

Research questions

  • RQ1Can prototypical margins improve federation-aware optimization for vision models under system and statistical heterogeneity?
  • RQ2Do margin-based prototype analyses correlate with accuracy gains and convergence in FL for classification and segmentation?
  • RQ3How do local and aggregate prototype changes reflect in model performance across rounds and clients?
  • RQ4Does prototype-guided attention outperform classic FedAvg and existing attention methods in heterogeneous FL settings?
  • RQ5What are reliable metrics to analyze feature representations learned in federated vision models?

Key findings

  • FedProto achieves state-of-the-art accuracy and convergence speed on image classification benchmarks across several datasets.
  • FedProto outperforms FedAvg, FedProx, and FedAtt in classification and is shown to have lower gradient dissimilarity indicating better convergence.
  • Prototype margins (LPM and APM) together with the federated attention improve latent space organization and regularization, aligning with centralized training behavior.
  • Aggregate Mean Margin (AMM) correlates with higher accuracy, and FedProto yields larger AMM than other optimizers.
  • Federated Feature Discrepancy (FFD) analyses show FedProto features more closely resemble centralized training than FedAvg, across multiple datasets.
  • FedProto is evaluated on semantic segmentation, showing robustness to non-i.i.d. data distributions and achieving improved segmentation metrics (mIoU) over FedAvg.

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.