FedOC: Optimizing Global Prototypes with Orthogonality Constraints for Enhancing Embeddings Separation in Heterogeneous Federated Learning

Fucheng Guo, Zeyu Luan, Qing Li, Dan Zhao, Yong Jiang · DOI

Abstract

Heterogeneous Federated Learning (HtFL) faces significant challenges due to statistical and model heterogeneity among participating clients. Existing prototype-based methods often struggle with overlapping class boundaries in high-dimensional feature spaces because they rely on Euclidean distance metrics that suffer from the "curse of dimensionality." This paper introduces FedORGP (Federated Orthogonality Regularization on Global Prototypes), a framework that utilizes trainable global prototypes and orthogonality constraints to improve feature separation. By focusing on angular similarity rather than distance, FedORGP achieves up to a 10% accuracy boost and superior robustness across diverse hardware and data distributions.

Introduction

Federated Learning (FL) enables multiple clients to train a shared model without exchanging raw data, preserving privacy. However, real-world deployments encounter two major hurdles: statistical heterogeneity (non-IID data distributions across users) and model heterogeneity (varying hardware capabilities requiring different model architectures). While Heterogeneous Federated Learning (HtFL) attempts to bridge these gaps using class prototypes, current approaches often fail to create distinct feature representations, leading to poor classification performance in complex scenarios.

The Problem with Distance-Based Prototypes

Many HtFL methods rely on simple averaging to create global prototypes or use Euclidean distance to align local features. In high-dimensional spaces, Euclidean distance becomes an unreliable metric, often resulting in blurry class boundaries. Furthermore, simple averaging can inadvertently leak information about local data distributions. FedORGP addresses these issues by shifting the focus from spatial distance to angular separation.

Methods: Orthogonality Regularization

The core innovation of FedORGP is the use of Orthogonality Regularization (OR) on trainable global prototypes. Instead of calculating a static average, the server employs a small transformation network to generate ideal prototypes for each class.

Conceptual illustration of orthogonality constraints enhancing intra-class clustering and inter-class separation

As shown in the figure above, the server trains these prototypes using a loss function that maximizes cosine similarity for intra-class clustering and minimizes it for inter-class separation. By forcing class prototypes to be directionally independent (orthogonal), the framework structures the feature space to align perfectly with the angular nature of standard Cross-Entropy (CE) loss. Clients then use a regularization term to pull their local embeddings toward these globally-defined, orthogonal prototypes.

Experimental Setup and Results

The framework was rigorously tested on standard benchmarks including CIFAR-10, CIFAR-100, Flowers102, and TinyImagenet. To simulate real-world hardware diversity, researchers utilized Heterogeneous Model Groups (HMG) ranging from lightweight 4-layer CNNs to complex architectures like ResNet-152.

FedORGP consistently outperformed major baselines such as FedProto, FedGen, and FedTGP. Key findings include:

  • Accuracy Improvement: A 10.12% boost in high-heterogeneity scenarios.
  • Computational Efficiency: While competitors like FedTGP require up to 100 epochs of server-side training, FedORGP achieves superior results in just one epoch.
  • Robustness: Performance remained stable even as the architectural gap between client models increased.

Visual Proof of Separation

The effectiveness of the orthogonality constraint is most evident in t-SNE visualizations of the feature space.

t-SNE visualization comparing FedProto, FedTGP, and FedORGP

Compared to the overlapping clusters in FedProto (a) and the loosely grouped clusters in FedTGP (b), FedORGP (c) produces much tighter, more distinct clusters with clear boundaries, validating the theoretical benefits of angular separation.

Conclusion

FedORGP provides a robust solution to the "heterogeneity headache" in federated learning. By leveraging the geometric properties of high-dimensional spaces and enforcing orthogonality among global prototypes, it ensures that feature embeddings remain separable regardless of the underlying model architecture or data distribution. Future work will explore the application of these principles to Natural Language Processing and time-series data.

Summary updated

BibTeX
@misc{guo2025fedoc,
  author = {Fucheng Guo and Zeyu Luan and Qing Li and Dan Zhao and Yong Jiang},
  title = {{FedOC: Optimizing Global Prototypes with Orthogonality Constraints for Enhancing Embeddings Separation in Heterogeneous Federated Learning}},
  year = {2025},
  eprint = {2502.16119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.16119},
}
Figure