Federated learning with heterogeneous data and models based on global decision boundary distillation

Kejun Zhang, Jun Wang, Wenbin Wang, Taiheng Zeng, Pengcheng Li, Xunxi Wang, Tingrui ZhangJournal of King Saud University - Computer and Information Sciences 2025

Abstract

Data heterogeneity and performance disparities among heterogeneous models are critical challenges in federated learning with heterogeneous data and models, which limit its practical applicability and degrade local model performance. To address these challenges, we propose Federated Learning with Heterogeneous Data and Models Based on Global Decision Boundary Distillation (Fed-GDBD). For data heterogeneity, Fed-GDBD employs local prototype clustering to effectively capture and condense private data distribution information, and incorporates irrelevant-class knowledge distillation during local supervised learning to explicitly model the posterior relationships among classes, thereby mitigating knowledge forgetting in local domains. To address model performance disparities, Fed-GDBD innovatively incorporates global decision boundary distillation. By maintaining an updated global decision boundary learner on the server, the approach optimizes local models from a global decision boundary perspective, reducing the impact of conflicting information. We provide a theoretical analysis of the convergence rate of Fed-GDBD under non-convex objectives. Extensive experiments on four datasets demonstrate that Fed-GDBD outperforms state-of-the-art federated learning methods across various statistical heterogeneity settings and better adaptability to challenging scenarios.

Introduction

Federated Learning (FL) was designed to train AI models across decentralized devices without sharing private data. However, real-world deployment faces two major roadblocks: data heterogeneity (non-IID data) and model heterogeneity. Data heterogeneity causes "client drift," where local models become too specialized in their own narrow data slices, forgetting the global context. Model heterogeneity occurs when devices have different hardware capabilities, requiring different architectures (e.g., a massive ResNet on a server vs. a tiny MobileNet on a smartphone), which makes standard weight-averaging techniques like FedAvg impossible to implement.

A new approach, Fed-GDBD, proposes to harmonize these mismatched models using a server-side "global teacher" and multi-prototype clustering, allowing diverse models to learn from a shared global decision boundary.

The Fed-GDBD Framework

Fed-GDBD moves away from traditional weight sharing. Instead, it utilizes a communication-efficient prototype-based approach. By sharing low-dimensional feature representations rather than full model parameters, the system remains privacy-preserving and highly efficient.

Overview of the Fed-GDBD architecture, illustrating the interaction between the server-side global learner and heterogeneous clients.

As illustrated in Figure 1, the framework relies on three core technical pillars:

1. Local Multi-Prototype Clustering

Instead of representing a class with a single average vector, clients use K-means++ to generate multiple "prototypes" per class. This captures the nuances of the local data distribution much more effectively than a single mean, providing a richer representation of the local domain to the server.

2. Global Decision Boundary Distillation (GDBD)

The server collects these prototypes and trains a lightweight Global Decision Boundary Learner ($g$). This model acts as a "universal referee" that understands the boundaries between all classes across all clients. The server then sends this learner back to clients to guide their local optimization.

Visualization of decision boundary alignment. The global learner helps reconcile disparate local boundaries (dashed lines) into a more accurate global consensus (solid line).

Figure 4 demonstrates the intuition behind GDBD: by providing a global perspective, the server-side learner helps local models resolve conflicting information and align their decision boundaries with the global truth.

3. Irrelevant-Class Knowledge Distillation (IKD)

To prevent "knowledge forgetting" during local training, Fed-GDBD uses a decoupled distillation loss. IKD specifically focuses on the relationships between classes other than the current target class. This helps the model remember how different categories relate to one another even when the local dataset is highly imbalanced.

Experimental Results

The researchers evaluated Fed-GDBD on four image classification benchmarks: CIFAR-10, CIFAR-100, Tiny-ImageNet, and Flowers102. They tested these under various degrees of data imbalance using Dirichlet distributions.

  • Superior Accuracy: Fed-GDBD outperformed state-of-the-art baselines like FedProto and FedGH. For example, on CIFAR-100, it achieved 45.09% accuracy, a significant jump over FedProto’s 35.38%.
  • Robustness: As data became more heterogeneous, the performance gap between Fed-GDBD and other methods widened, proving its resilience to extreme data skew.
  • Efficiency: While parameter-based FL for a ResNet18 might require 40MB per round, Fed-GDBD's prototype-based approach requires only about 186 KB per round, making it ideal for low-bandwidth edge devices.

Conclusion

Fed-GDBD represents a significant step forward in making Federated Learning practical for diverse, real-world hardware ecosystems. By leveraging prototypes as a "universal language" and maintaining a global decision boundary, it successfully bridges the gap between heterogeneous models and data. Future research will focus on extending this boundary distillation to text and speech modalities and scaling the system for even larger decentralized networks.

Summary updated

BibTeX
@article{zhang2025federated,
  author = {Kejun Zhang and Jun Wang and Wenbin Wang and Taiheng Zeng and Pengcheng Li and Xunxi Wang and Tingrui Zhang},
  title = {{Federated learning with heterogeneous data and models based on global decision boundary distillation}},
  journal = {Journal of King Saud University - Computer and Information Sciences},
  year = {2025},
  doi = {10.1007/s44443-025-00097-0},
}
Figure