FedHide: Federated Learning by Hiding in the Neighbors

Hyunsin Park, Sungrack Yun · DOI

TL;DR

This paper introduces FedHide, a federated learning method for training embedding networks in scenarios where each client only has data from a single class. FedHide addresses the privacy risk of sharing true class prototypes by using "proxy" prototypes generated by combining a client's true prototype with its neighbors, enabling discriminative learning without compromising sensitive information.

What Problem Does This Paper Address?

Training embedding networks for tasks like identification and verification often requires large datasets. Federated learning (FL) offers a solution by training models across distributed clients without centralizing data. However, a specific challenge arises when each client only possesses data from a single class (a highly non-iid scenario). In such cases, clients need to learn embeddings that distinguish between different classes, but sharing their "class prototypes" (representations of their class) with the server or other clients can leak sensitive information. Existing FL methods either don't handle this single-class-per-client scenario well or still risk privacy breaches through prototype sharing.

Methods

The core of FedHide is a federated learning framework that uses a contrastive learning loss. This loss aims to minimize the distance between embeddings of the same class (intra-class variance) and maximize the distance between embeddings of different classes (inter-class variance).

The novelty lies in how class prototypes are handled:

  • Proxy Class Prototypes: Instead of sharing the true class prototype, each client generates a "proxy class prototype." This proxy is created by linearly combining the client's true prototype with an average of its top-K nearest neighbors. This "hiding" mechanism aims to obscure the true prototype's identity.
  • Contrastive Loss with Proxy Prototypes: The contrastive loss is then applied using these shared proxy prototypes, allowing clients to learn discriminative embeddings while protecting their true class information.
  • Privacy Control: The degree of privacy is controlled by parameters a (weight for the true prototype in the linear combination) and K (number of nearest neighbors). Smaller a and larger K increase privacy.

The paper also compares FedHide to two alternative methods:

  • FedGN: Adds random Gaussian noise to the true class prototype.
  • FedCS: Selects a proxy prototype with a predefined cosine similarity to the true prototype.

Datasets

The proposed FedHide method and its comparisons were evaluated on three benchmark datasets:

  • CIFAR-100: Used for image classification experiments.
  • VoxCeleb1: Used for speaker verification experiments.
  • VGGFace2: Used for face verification experiments.

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • "Hiding in the Neighbors" as a Privacy Mechanism: The core idea of using a linear combination with nearest neighbors to create a proxy prototype is an elegant way to obscure sensitive information while still providing a useful signal for contrastive learning.
  • Tunable Privacy-Gradient Trade-off: The parameters a and K in FedHide offer a direct way to control the balance between privacy and model performance, allowing users to choose the desired level of protection.
  • Importance of Prototype Representation: The paper highlights that in single-class-per-client FL, the class prototype is a critical piece of information that needs careful handling to prevent privacy leakage.
  • Robustness to Gradient Inversion: The experimental results suggest that FedHide's approach to proxy prototypes can also offer some resilience against gradient inversion attacks, a common privacy threat in FL.

Key Results

  • Accuracy and Privacy Balance: FedHide consistently achieves high accuracy while significantly reducing prototype leakage compared to methods like FedAwS (which has 100% leakage). For example, on CIFAR-100, FedHide achieved high accuracy (e.g., 57.5%) with prototype leakage as low as 4.3% (with specific hyperparameters).
  • Comparison to Alternatives: FedHide generally outperforms FedGN and FedCS in terms of the accuracy-leakage trade-off, offering better privacy with comparable or superior accuracy.
  • Visualizations: t-SNE visualizations show that FedHide's proxy prototypes are more grouped and "hidden" compared to the more scattered and identifiable prototypes from FedGN and FedCS, especially at higher privacy settings.
  • Reconstruction Attacks: Experiments with gradient inversion attacks show that FedHide's proxy prototypes lead to higher LPIPS scores (indicating less privacy leakage) compared to FedGN and FedCS, especially when using trained models.

Limitations and Future Work

  • Hyperparameter Search: The paper acknowledges that FedHide requires empirical hyperparameter search, particularly for determining the optimal number of nearest neighbors (K).
  • Adaptive Attackers: The authors note that the method might be vulnerable to adaptive attackers who can continuously monitor communication channels and attempt to recover true prototypes through linear inverse problems.
  • Future Work: The authors plan to explore methods for automatically determining the optimal K and investigate more robust defenses against sophisticated adaptive attackers.

Summary updated

BibTeX
@inproceedings{park2024fedhide,
  author = {Hyunsin Park and Sungrack Yun},
  title = {{FedHide: Federated Learning by Hiding in the Neighbors}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72897-6\_23},
}
Figure