Federated Unsupervised Visual Representation Learning via Exploiting General Content and Personal Style

Yuewei Yang, Jingwei Sun, Ang Li, Hai Li, Yiran Chen · DOI

Abstract

Discriminative unsupervised learning methods such as contrastive learning have demonstrated the ability to learn generalized visual representations on centralized data. It is nonetheless challenging to adapt such methods to a distributed system with unlabeled, private, and heterogeneous client data due to user styles and preferences. Federated learning enables multiple clients to collectively learn a global model without provoking any privacy breach between local clients. On the other hand, another direction of federated learning studies personalized methods to address the local heterogeneity. However, work on solving both generalization and personalization without labels in a decentralized setting remains unfamiliar. In this work, we propose a novel method, FedStyle, to learn a more generalized global model by infusing local style information with local content information for contrastive learning, and to learn more personalized local models by inducing local style information for downstream tasks. The style information is extracted by contrasting original local data with strongly augmented local data (Sobel filtered images). Through extensive experiments with linear evaluations in both IID and non-IID settings, we demonstrate that FedStyle outperforms both the generalization baseline methods and personalization baseline methods in a stylized decentralized setting. Through comprehensive ablations, we demonstrate our design of style infusion and stylized personalization improve performance significantly.

Introduction

Federated Learning (FL) aims to train a shared model across multiple clients without compromising data privacy. However, a significant challenge arises when dealing with unlabeled and heterogeneous data, common in real-world scenarios like mobile devices. This heterogeneity manifests not only in content (what objects are present) but also in style (lighting, camera quality, user preferences). Existing methods often struggle to balance generalization—the ability of a global model to perform across unseen styles—and personalization—the ability of a local model to excel on a specific user's unique data distribution.

Federated learning process on user-centered unlabeled data with varying styles.

The FedStyle Framework

To address these challenges, the authors propose FedStyle, a novel framework that explicitly disentangles style from content. The approach consists of three main components:

  1. Local Style Extraction: Clients identify their unique "style" by contrasting original images with Sobel-filtered versions. The Sobel filter serves as a style-neutral anchor, preserving edges while removing color and texture. This allows the model to isolate stylistic features without requiring labels.
  2. Local Style Infusion: This is the core mechanism for improving generalization. Extracted style features are infused into content features via a generator network during contrastive learning. This process acts as a latent-space data augmentation, forcing the content model to become invariant to local stylistic variations.
  3. Stylized Personalization: For downstream tasks, FedStyle combines the generalized global content features with personalized local style features, creating a representation tailored to the specific user.
The Local Style Infusion mechanism used to enhance representation robustness.

Key Insights and Ideas

  • Style as a Regularizer: By intentionally mixing style into the learning process (infusion), the authors effectively "stress-test" the content representations. This makes the resulting global model less sensitive to the specific environment of any single client.
  • The Sobel Anchor: Using a fixed mathematical transformation like the Sobel filter is a clever way to create a "ground truth" for style in an unsupervised setting. It gives all clients a common language to describe what "content" (the edges) vs. "style" (everything else) is.
  • Dual-Purpose Features: Personalization is not just about fine-tuning a global model; it's about re-introducing the local context (style) that the global model was forced to ignore during its generalization phase.

Experimental Results

FedStyle was evaluated on stylized datasets including Digit (MNIST, USPS, SVHN), Office Home, and Adaptiope. Results demonstrate that FedStyle consistently outperforms standard FL baselines (e.g., FedAvg, FedProx) and personalization methods (e.g., FedRep, APFL) in both IID and non-IID settings. Specifically, the global model shows superior generalization, while the personalized models achieve higher accuracy on local user distributions.

Limitations and Future Work

While FedStyle is powerful, it introduces additional local computational costs due to the style model and generator. Furthermore, performance is sensitive to the infusion strength parameter ($\lambda$), requiring careful tuning to avoid representation collapse. The authors suggest that more sophisticated architectures (like those used in StyleGAN) could potentially extract even richer stylistic information in future iterations.

Conclusion

FedStyle effectively bridges the gap between generalization and personalization in federated unsupervised learning by leveraging style as a first-class citizen in the representation learning process. By infusing local style into global content, it produces a robust backbone capable of adapting to diverse user environments.

Summary updated

BibTeX
@misc{yang2022federated,
  author = {Yuewei Yang and Jingwei Sun and Ang Li and Hai Li and Yiran Chen},
  title = {{Federated Unsupervised Visual Representation Learning via Exploiting General Content and Personal Style}},
  year = {2022},
  eprint = {2211.06470},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.06470},
}
Figure