Abstract
Federated Learning (FL) typically assumes that all participating clients utilize identical model architectures. However, in heterogeneous Internet of Things (IoT) environments, hardware constraints vary significantly, making this assumption impractical. We present FedIN (Federated Intermediate Layers Learning), a novel framework designed to bridge the gap between heterogeneous models without the need for a public "bridge" dataset. By aligning intermediate layers using shared feature batches and employing a convex optimization strategy to resolve training conflicts, FedIN achieves superior accuracy and up to 2.8x faster convergence than existing state-of-the-art methods.
Introduction
Standard Federated Learning algorithms, such as FedAvg, require a rigid architectural symmetry across the network. This requirement creates a dilemma in real-world deployments: forcing a large model on resource-constrained edge sensors leads to "straggler" delays, while forcing a small model on powerful workstations wastes computational potential.
Existing solutions often rely on Knowledge Distillation (KD) to transfer knowledge between different architectures. However, KD typically requires a large, relevant public dataset to serve as a medium for alignment, which is often unavailable in privacy-sensitive or niche domains. FedIN addresses this challenge by utilizing the internal representations of the models themselves as a bridge, providing a flexible, data-free solution for heterogeneous FL.
Methodology
The FedIN framework employs a multi-stage approach to synchronize diverse models:
- Model Partitioning: Each client model is decomposed into three functional segments: an Extractor (initial layers), Intermediate Layers, and a Classifier (final layers).
- IN Training (Intermediate Layers Learning): To align internal logic without external data, clients transmit a single batch of "feature inputs" (extractor outputs) and "feature outputs" (classifier inputs) to the server. The server shuffles and redistributes these features. During "IN training," clients tune their intermediate layers to map these shared inputs to the corresponding outputs, effectively aligning their internal representations with the collective.
- Gradient Alleviation: A significant challenge in this dual-training setup is gradient divergence, where local training on private data and IN training on shared features pull the model in conflicting directions. FedIN formulates a convex optimization problem to identify an optimal gradient that minimizes the distance to the IN gradient while ensuring it does not conflict with the local training direction (maintaining a non-negative dot product).
- Layer-wise Aggregation: For models with structural similarities (e.g., varying depths of ResNets), the server performs aggregation on a per-layer basis to maximize knowledge transfer.
Experimental Setup
The framework was evaluated against standard benchmarks, including Fashion-MNIST, SVHN, and CIFAR-10. To simulate real-world "data silos," the researchers utilized both IID and non-IID settings, with the latter employing a Dirichlet distribution ($\alpha=0.5$) to create significant data heterogeneity among clients.
Results and Discussion
FedIN consistently outperformed state-of-the-art (SOTA) baselines, including FedProx, Scaffold, and MOON, across all tested metrics.
- Accuracy: On the non-IID CIFAR-10 dataset, FedIN achieved a top-1 accuracy of 75.9%, outperforming FedProx (72.0%) and FedAvg (66.2%).
- Convergence Speed: The framework demonstrated remarkable efficiency, reaching target accuracies significantly faster than competitors. On the SVHN dataset, FedIN provided a 2.8x speedup in convergence compared to the baseline.
- Resource Efficiency: Despite the additional optimization step, FedIN maintains a low memory footprint (approx. 235 MB), making it significantly more efficient than contrastive methods like MOON (approx. 705 MB).
Visual analysis using Centered Kernel Alignment (CKA) confirmed that FedIN successfully forces models to learn similar internal representations in deeper layers, even when the underlying architectures differ. This internal alignment is the key driver behind the framework's robust performance.
Conclusion
FedIN represents a significant advancement in heterogeneous Federated Learning by removing the dependency on public datasets for model alignment. While the current implementation requires some manual mapping for layer-wise aggregation, its efficiency and accuracy make it a compelling choice for diverse IoT ecosystems. Future research will focus on enhancing feature privacy against model inversion attacks and extending the framework to support extreme heterogeneity, such as mixing CNNs and Transformers within the same network.
Summary updated