Federated style aware transformer aggregation of representations

Mincheol Jeon, Eui-nam HuharXiv 2025 · DOI

Introduction

Standard Federated Learning (FL) aims to train a single global model across many decentralized clients. However, real-world data is rarely Identically and Independently Distributed (IID). Clients often have different "styles"—variations in lighting, sensor noise, or backgrounds—even when looking at the same "content" (e.g., the same object category). FedSTAR (Federated Style-Aware Transformer Aggregation of Representations) is a new framework for personalized federated learning that disentangles "content" (shared semantics) from "style" (client-specific variations). By using a Transformer-based attention mechanism to aggregate these cleaned-up representations, it achieves superior personalization and faster convergence in heterogeneous environments without increasing communication overhead.

Problem Statement

Existing prototype-based FL methods, such as FedProto, attempt to address data heterogeneity by sharing class-level mean vectors (prototypes). However, these methods suffer from two major flaws: entanglement and naïve aggregation. They often mix task-relevant content with client-specific style, leading to "noisy" global prototypes that fail to serve individual clients effectively. Furthermore, they typically rely on simple averaging at the server, which assumes all clients are equally informative—a premise that fails when data is imbalanced or highly divergent.

Methodology

FedSTAR introduces a four-part architecture to handle these challenges:

  • Content-Style Decomposition: Locally, each client decomposes its feature vectors. It projects the representation onto a global content manifold and treats the residual (the part that doesn't fit the global average) as a "style vector."
  • StyleFiLM Personalization: To adapt to local conditions, the model uses a StyleFiLM (Feature-wise Linear Modulation) module. This lightweight layer uses the local style vector to re-scale and shift features, allowing the model to be style-aware without changing the core architecture.
  • Transformer-Based Aggregation: Instead of simple averaging, the server uses a Transformer encoder. It takes client identities, class embeddings, and content prototypes as inputs. The attention mechanism allows the server to dynamically weigh which clients provide the most reliable or relevant content for a specific class.
  • Prototype Pull Loss: A specific loss function ensures that local representations stay close to their personalized prototypes, improving the discriminative power of the embedding space.

Crucially, FedSTAR only communicates compact prototypes and style vectors rather than full model parameters, making it highly communication-efficient.

Experimental Evaluation

The authors evaluated FedSTAR on four diverse computer vision benchmarks, partitioned across 100 clients using a Dirichlet distribution ($\alpha=0.1$) to simulate extreme non-IID conditions: CIFAR-100, DomainNet, Fashion-MNIST, and Office-31.

Results and Discussion

FedSTAR consistently outperformed state-of-the-art baselines across all metrics. On CIFAR-100, FedSTAR achieved 29.17% accuracy, significantly higher than FedProto's 24.41%. On Fashion-MNIST, it reached 89.37%. Beyond final accuracy, FedSTAR demonstrated superior convergence speed, reaching 95% of its maximum accuracy much faster than competitors (e.g., 55 rounds on Fashion-MNIST vs. 105+ rounds for others).

Comparison of training and testing metrics between the proposed FedSTAR variant and the FedProto baseline across 200 rounds.

As shown in the figure above, the proposed method (represented by the blue line) consistently maintains higher accuracy and F-scores while achieving a lower Brier Score compared to FedProto. This indicates not only better classification performance but also improved calibration and confidence in the model's predictions. UMAP visualizations further confirmed that FedSTAR produces much tighter, more distinct class clusters with minimal overlap compared to traditional methods.

Conclusion

FedSTAR addresses the challenges of non-IID data in federated learning by effectively disentangling content from style and utilizing an adaptive Transformer-based aggregation strategy. While currently focused on vision tasks, future work could explore expanding this content-style disentanglement to other modalities like vision-language models or time-series data, as well as incorporating uncertainty-aware aggregation to further improve robustness.

Summary updated

BibTeX
@misc{jeon2025federated,
  author = {Mincheol Jeon and Eui-nam Huh},
  title = {{Federated style aware transformer aggregation of representations}},
  year = {2025},
  eprint = {2511.18841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.18841},
}
Figure