TL;DR
Existing prototype-based heterogeneous federated learning methods mistakenly force diverse client models to align their features to a rigid, shared coordinate space, crushing model individuality. This paper introduces FedSAF, a framework that shifts the focus from absolute coordinate matching to preserving inter-class relational geometry, allowing heterogeneous models to collaborate effectively while optimizing within their own unique feature spaces.
What Problem Does This Paper Address?
Federated Learning (FL) typically assumes that all participating devices (clients) train the exact same model architecture. In real-world scenarios, however, clients often have different hardware constraints (cross-device FL) or proprietary designs (cross-silo FL), leading to Heterogeneous Federated Learning (HtFL) where both data distributions and model architectures vary.
To avoid the massive communication overhead of sharing full model weights or using public proxy datasets for knowledge distillation, "prototype-based" HtFL has emerged. In this setup, clients only exchange class-level feature centers (prototypes).
The catch? Existing methods use standard coordinate alignment (like MSE or cosine similarity) to force local features to match global prototypes element-wise. The authors discover that this rigidly forces all models into a single global feature subspace. While this works fine when everyone shares the same architecture, it severely suppresses the learning capacity of diverse architectures that naturally prefer their own distinct feature spaces.
Methods
The authors propose FedSAF (Federated Structural Alignment Framework), which decouples semantic structure transfer from rigid feature-basis enforcement. Instead of matching absolute coordinates, it matches relational geometry—how classes relate to one another.
They introduce two concrete structural alignment losses:
- Gram-Cosine Structural Alignment (GCSA): Measures similarity via cosine similarity between centered Gram matrices, making it invariant to translation, rotation, and scaling.
- RDM-Cosine Structural Alignment (RCSA): Uses a Representational Dissimilarity Matrix (RDM) based on pairwise distances, making it invariant to orthogonal transformations.
FedSAF applies this structural guidance at two levels during local training:
- Prototype-level: Aligns the relational structure of local batch prototypes with global prototypes to transfer inter-class relations.
- Instance-level: Steers individual sample features toward a geometry compatible with the global prototype structure, leaving the client model free to choose its own internal coordinates.
Datasets
The framework was evaluated across multiple modalities and non-IID (heterogeneous) scenarios:
- Vision (Image Classification): CIFAR-10, CIFAR-100, and Tiny-ImageNet (evaluated under Dirichlet label shift); PACS and DomainNet (evaluated under feature/domain shift).
- Text (Text Classification): AG NEWS (label shift), Amazon Review (feature shift across product categories), and Shakespeare (real-world non-IID with natural user partitions).
Key Insights and Ideas
- Coordinate alignment is too restrictive for HtFL: Singular Value Decomposition (SVD) analysis reveals that heterogeneous models naturally exhibit a much higher "effective dimensionality" in their feature spaces compared to homogeneous ones. Forcing them to match a single global coordinate basis suppresses their natural representational power.
- Decoupling "What" from "Where": Coordinate alignment implicitly tries to do two things at once: align inter-class semantics (the "what") and enforce a shared feature basis (the "where"). FedSAF isolates the semantic structure, letting each client model decide where and how to represent it internally.
- Preserving Model Individuality: t-SNE visualizations show that under coordinate alignment, prototypes from different clients are forced to cluster tightly together by class. Under FedSAF, prototypes cluster by client while beautifully maintaining consistent relative structures between classes.
Key Results
- Consistent Performance Gains: FedSAF consistently outperforms standard coordinate alignment (MSE, Cosine) and state-of-the-art HtFL methods. On CIFAR-10/100, it beats standard prototype baselines by up to 3.52%.
- Plug-and-Play Compatibility: When used as a drop-in replacement for local alignment losses in other advanced prototype methods (like FedTGP or AlignFed), GCSA boosts their accuracy by up to 4.42%.
- High Efficiency: It maintains the lightweight communication profile of prototype-based methods (requiring only ~1.69 MB of data transfer) while matching or beating much heavier, communication-intensive knowledge distillation methods.
Limitations and Future Work
- Extreme Label Imbalance: The advantage of structural alignment is slightly less pronounced under extreme label heterogeneity (e.g., Dirichlet $\alpha = 0.1$). This happens because limited class coverage per client restricts the expressiveness of the local inter-class relational structure.
- Future Directions: While the authors note that FedSAF is fully compatible with uniformity constraints (like those found in contrastive learning), explicitly exploring the integration of uniformity regularization alongside structural loss remains an open path for future refinement.
Summary updated