Abstract
Standard Federated Learning (FL) typically requires all participating agents to share a uniform model architecture to facilitate parameter averaging. This requirement poses a significant barrier to entry for heterogeneous hardware environments. This paper investigates model-agnostic FL through the lens of Knowledge Distillation (KD). By introducing a theoretical framework based on Federated Kernel Ridge Regression, the authors identify why traditional KD-based approaches often fail—specifically due to an "information leak" modeled as alternating projections. We propose and evaluate stable alternatives, including Averaged KD (AvgKD) and Ensembled KD (EKD), which enable collaboration across diverse architectures such as Neural Networks and Random Forests.
Introduction
Federated Learning (FL) has emerged as a powerful paradigm for privacy-preserving machine learning, allowing multiple parties to collaboratively train models without sharing raw data. However, the reliance of dominant algorithms like FedAvg on weight averaging necessitates identical model architectures across all participants. In practice, this is highly restrictive, as different agents may have vastly different computational resources.
Knowledge Distillation (KD) offers a potential solution by allowing models to learn from each other's outputs rather than internal parameters. Despite its promise, KD-based federated protocols frequently underperform. This research aims to diagnose these failures and provide theoretically grounded, robust alternatives.
Methodology
The authors analyze three primary protocols within a novel theoretical framework called Federated Kernel Ridge Regression:
- Alternating KD (AKD): Agents sequentially act as teacher and student. The paper demonstrates that this process is equivalent to alternating projections between convex sets.
- Averaged KD (AvgKD): To prevent the information loss seen in AKD, this method averages teacher predictions with the agent's own ground-truth labels, effectively re-injecting original data information at each round.
- Ensembled KD (EKD): This approach constructs an ensemble from models across various training rounds, theoretically capable of recovering the optimal centralized model performance.
Theoretical Insights: The Projection Trap
A core contribution of this work is the identification of the "Projection Trap." When agents possess heterogeneous data distributions (non-IID data), the process of distilling knowledge from one another can be viewed as a series of projections onto different subspaces.
As illustrated in the figure above, if Agent A and Agent B have non-overlapping data (e.g., different classes), Agent A's predictions on Agent B's classes are essentially noise. Successive rounds of distillation cause the models to "forget" their local knowledge, eventually converging toward a zero-prediction state. This highlights that data heterogeneity, rather than model heterogeneity, is the primary driver of performance degradation in KD-based FL.
Experimental Evaluation
The proposed methods were validated using synthetic linear regression tasks and standard benchmarks including MNIST and CIFAR-10. Crucially, the experiments involved collaboration between fundamentally different architectures, such as Convolutional Neural Networks (CNNs), Multi-Layer Perceptrons (MLPs), and Random Forests (RF).
Key Results
The experimental results strongly support the theoretical findings:
- AKD Failure: As predicted, AKD performance often collapsed as communication rounds progressed.
- AvgKD Robustness: AvgKD remained stable and consistently outperformed local training. In highly heterogeneous settings, it even surpassed the performance of FedAvg.
- EKD Optimality: EKD successfully matched centralized model performance in synthetic environments, validating its theoretical optimality.
The figure above demonstrates the training loss trajectories. While AKD loss tends to increase or remain high due to information loss, AvgKD maintains stability, and EKD converges toward the centralized baseline.
Conclusion and Future Work
This work provides a rigorous theoretical foundation for model-agnostic Federated Learning. By viewing neural networks as functions rather than parameter sets, the authors demonstrate that stable collaboration is possible even with diverse architectures. While EKD is theoretically optimal, its computational cost remains a challenge. Future research will focus on mitigating the effects of data heterogeneity more efficiently, building upon the stable framework provided by AvgKD.
Summary updated