Abstract
Statistical heterogeneity severely limits the performance of federated learning (FL), motivating several explorations e.g., FedProx, MOON and FedDyn, to alleviate this problem. Despite effectiveness, their considered scenario generally requires samples from almost all classes during the local training of each client, although some covariate shifts may exist among clients. In fact, the natural case of partially class-disjoint data (PCDD), where each client contributes a few classes (instead of all classes) of samples, is practical yet underexplored. Specifically, the unique collapse and invasion characteristics of PCDD can induce the biased optimization direction in local training, which prevents the efficiency of federated learning. To address this dilemma, we propose a manifold reshaping approach called FedMR to calibrate the feature space of local training. Our FedMR adds two interplaying losses to the vanilla federated learning: one is the intra-class loss to decorrelate feature dimensions for anti-collapse; and the other one is the inter-class loss to guarantee the proper margin among categories in the feature expansion. We conduct extensive experiments on a range of datasets to demonstrate that our FedMR achieves much higher accuracy and better communication efficiency.
The Challenge of Partially Class-Disjoint Data (PCDD)
Standard Federated Learning (FL) research often assumes that while data distributions vary (covariate shift), every client generally sees samples from most or all classes. In reality, data is often Partially Class-Disjoint. For example, a specialized hospital in one region might only see a few specific types of thyroid disease, while a hospital elsewhere sees a different subset.
The authors identify two critical failures that occur when a model trains on such "incomplete" local data:
- Dimensional Collapse: Because the local model only needs to distinguish between a few classes, it "greedily" collapses the feature space into a narrow, low-dimensional manifold.
- Space Invasion: Without examples of the missing classes, the features of the local classes "invade" the territory that should belong to the absent categories.
When these biased local models are aggregated at the server, the resulting global model performs poorly because its internal "map" of the feature space is distorted and overlapping.
Manifold Reshaping with FedMR
To address this dilemma, the authors propose FedMR, which adds a "Manifold Reshaping" objective to the standard FedAvg framework. It consists of two interplaying losses designed to calibrate the feature space:
- Intra-Class Loss (Anti-Collapse): This loss forces the feature dimensions of each class to decorrelate. Mathematically, it minimizes the Frobenius norm of the feature covariance matrix. By discouraging dimensions from being redundant, it prevents the feature manifold from collapsing into a narrow line or plane, keeping the representation diverse.
- Inter-Class Loss (Anti-Invasion): To prevent local features from drifting into the space of missing classes, the server maintains Global Class Prototypes (the average feature vector for each class across the whole network). During local training, clients use these global prototypes as "anchors" to ensure their local features maintain a proper margin from classes they haven't even seen.
For resource-constrained environments, the authors also introduce FedMR-Lite, which uses a subset of samples to calculate these losses, significantly reducing the computational burden on clients.
Key Insights
- Geometry Matters: The paper shifts the focus from "weight divergence" (how much model parameters differ) to "feature geometry" (how the embedding space is shaped).
- The Frobenius Shortcut: The authors provide a mathematical proof showing that minimizing the Frobenius norm of a covariance matrix is equivalent to making its eigenvalues uniform. This provides a computationally efficient way to maximize the "intrinsic dimensionality" of features without expensive eigenvalue decomposition.
- Prototypes as Privacy-Preserving Anchors: Sharing class prototypes (mean vectors) is much more communication-efficient than sharing full models or gradients and is generally considered safer for privacy than sharing raw data.
Experimental Evaluation
FedMR was evaluated across several benchmarks partitioned to simulate PCDD, including Computer Vision datasets (FMNIST, SVHN, CIFAR-10, CIFAR-100) and real-world medical data (ISIC2019 skin lesion images).
- Accuracy Gains: On FMNIST with only 2 classes per client, FedMR improved accuracy by 5.89% over FedAvg. On CIFAR-100, it showed an average improvement of nearly 3% across various disjoint settings.
- Communication Efficiency: FedMR reached the target accuracy of standard FedAvg up to 2.68x faster on CIFAR-100.
- Robustness: The method remained effective even when only 50% of clients shared prototypes, proving its utility in privacy-sensitive environments.
Conclusion
FedMR addresses a common but neglected challenge in Federated Learning by explicitly reshaping the feature manifold. By mitigating dimensional collapse and space invasion through decorrelation and prototype-based anchoring, it achieves significantly higher accuracy and faster convergence than state-of-the-art methods like FedProx, MOON, and FedDyn.
Summary updated