A WebAssembly-Enabled Federated Learning Deployment Framework for Fog Computing Environments
Abstract
Federated learning (FL) in fog computing (FC) environments for 6G networks offers significant benefits across a wide range of domains by leveraging data locality to preserve the privacy of sensitive information, while also reducing communication costs and relieving server load. However, deploying FL tasks on fog nodes with heterogeneous hardware configurations, distinct operating systems, and diverse instruction set architectures remains a major challenge, especially given 6G's stringent latency requirements and tight integration with real-time applications. WebAssembly (Wasm) is a portable bytecode format that is secure through sandboxing and capability-based security, delivers near-native performance, has a compact footprint, and runs across platforms without recompilation, providing a potential means to overcome these limitations in 6G-enabled fog computing. In this study, we present a Wasm-integrated federated learning deployment framework for fog computing in 6G networks. To evaluate practical feasibility and performance, we conducted experimental evaluations on a heterogeneous set of devices. The analysis indicates that the Wasm-based framework reduces memory and CPU utilization while maintaining high accuracy, aligning with the performance requirements of 6G.