Abstract
Federated Learning (FL) is a promising paradigm for privacy-preserving machine learning in IoT. However, the inherent hardware heterogeneity of IoT devices—ranging from powerful edge gateways to resource-constrained sensors—often leads to suboptimal performance or training failures when using standard "one-size-fits-all" models. This paper introduces FedX, a novel FL framework that adaptively decomposes a global model into nested sub-networks and applies device-specific quantization. By balancing model size and bit-precision, FedX achieves up to a 12% accuracy boost and significant training speedups compared to state-of-the-art methods.
Introduction: The Challenge of Heterogeneity
In typical IoT ecosystems, devices possess vastly different computational, memory, and energy resources. Standard FL approaches typically deploy a uniform model across all participants. If the model is sized for high-end devices, low-end devices may fail to participate due to memory overflows or excessive battery drain. Conversely, a model small enough for the weakest devices limits the potential utility of more capable hardware. While quantization and pruning are common solutions, they often introduce significant on-device overhead or degrade accuracy. FedX addresses this by tailoring models to individual device capabilities without compromising the collaborative learning process.
Methodology: Adaptive Decomposition and Quantization
The FedX framework is built upon three core components designed to optimize the trade-off between resource usage and model performance.
1. Adaptive Model Decomposition
FedX maintains a global model that can be decomposed into "nested" sub-networks. A smaller sub-network is a literal subset of the parameters of a larger one. This nesting ensures that updates from smaller devices directly contribute to the shared knowledge base of larger models, facilitating seamless aggregation.
2. Size-vs-Precision Trade-off
FedX employs a strategic heuristic for model distribution:
- Resource-constrained devices receive smaller sub-networks but utilize higher bit-precision (more quantized bits) to preserve model utility.
- Powerful devices receive larger sub-networks but can utilize lower bit-precision to manage communication and memory overhead.
3. Server-Side Optimization
To minimize the computational burden on IoT devices, quantization is performed at the server before model distribution. Upon receiving local updates, the server performs model aggregation followed by a fine-tuning step. This step uses a public proxy dataset and a regularization term to align disparate local updates into a cohesive global model, effectively acting as a form of knowledge distillation.
Experimental Evaluation
FedX was evaluated across four diverse benchmarks: Tiny-ImageNet, CIFAR-10, FEMNIST (handwritten characters), and HAR (Human Activity Recognition). These datasets cover both image and sensor data in IID and non-IID settings. Real-world hardware tests were conducted using Nvidia Jetson Nano, Raspberry Pi 5, and Qualcomm QCS605 AI Kit.
Key Results and Insights
FedX demonstrates superior performance across multiple dimensions:
- Accuracy: FedX outperformed state-of-the-art adaptive quantization methods like DAdaQuant and AdaGQ by 1.90% to 12.28%.
- Efficiency: The framework achieved an 8.43× faster quantization time, 1.5× faster on-device computation, and a 1.36× improvement in total end-to-end training time.
- Convergence: Empirical results show that FedX reaches target accuracy in significantly fewer rounds than standard FedAvg, supported by theoretical convergence guarantees.
The "nesting" approach is critical; it allows heterogeneous architectures to share the same weight space, simplifying aggregation. Furthermore, the counter-intuitive decision to provide higher precision to smaller models prevents the "utility collapse" often seen in aggressive compression.
Conclusion and Future Directions
FedX effectively bridges the gap between high-performance FL and the realities of IoT hardware heterogeneity. While the requirement for a public proxy dataset for fine-tuning may be a limitation in some niche domains, the framework's efficiency and accuracy gains are substantial. Future work may involve automating device threshold selection using reinforcement learning to adapt dynamically to fluctuating network and resource conditions.
Summary updated