Resource Optimization for Blockchain-based Federated Learning in Mobile Edge Computing

Zhilin Wang, Qin Hu, Zehui Xiong · DOI

Introduction

The rapid proliferation of Internet of Things (IoT) devices has catalyzed the development of Mobile Edge Computing (MEC), which allows resource-constrained devices to offload computationally intensive tasks to nearby edge servers. Concurrently, Blockchain-based Federated Learning (BCFL) has emerged as a robust framework for decentralized machine learning, ensuring data privacy and security without a central authority.

However, integrating these two paradigms on a single edge server introduces a significant "resource dilemma." The edge server must allocate finite resources—such as CPU cycles, bandwidth, and storage—between lower-layer mobile task offloading and upper-layer BCFL processes. This paper addresses the challenge of optimizing resource distribution to minimize total energy consumption while adhering to strict latency constraints for both systems.

System Architecture

The proposed framework considers a two-layer hierarchical system. The upper layer consists of BCFL nodes responsible for model training and blockchain consensus, while the lower layer comprises mobile devices offloading tasks to edge servers.

System architecture of the integrated BCFL and MEC system.

In this architecture, the edge server plays a dual role, acting as both an offloading host for MEC tasks and a participant in the BCFL network. The primary objective is to find an optimal balance where energy costs are minimized without violating the time-sensitivity requirements of either layer.

Methodology

The resource allocation problem is modeled as a multivariate, multi-constraint, convex optimization problem. To handle the high dimensionality and complex constraints, the authors employ the Alternating Direction Method of Multipliers (ADMM), introducing two specialized variants:

  • Modified General ADMM (MG-ADMM): Tailored for homogeneous environments where mobile devices have uniform task sizes and latency requirements. It utilizes an equal distribution strategy and incorporates specific regularization terms to ensure convergence when dealing with more than two blocks of variables.
  • Modified Consensus ADMM (MC-ADMM): Designed for heterogeneous scenarios with diverse on-demand requests, this approach decomposes the large-scale optimization into smaller, distributed sub-problems using auxiliary variables to reach a global consensus.

The use of regularization parameters ((\beta) and (\rho)) is critical for maintaining stability and ensuring convergence in these multi-variable edge environments.

Evaluation and Key Insights

The performance of MG-ADMM and MC-ADMM was evaluated through numerical simulations of a mobile edge environment featuring one edge server and ten local devices. The algorithms were benchmarked against random allocation, fixed allocation, and standard ADMM implementations.

Key Results

  • Energy Efficiency: Both proposed algorithms significantly reduced total energy costs compared to baseline strategies.
  • Convergence and Stability: Theoretical proofs and experimental results confirmed that the modified algorithms converge reliably, whereas simpler strategies often fail to reach a global minimum.
  • Latency Constraint Satisfaction: Even with a 20% increase in data sizes, the framework successfully re-allocated resources to meet all pre-defined time limits for both MEC and BCFL tasks.

Insights

A notable finding is the system's sensitivity to task size. When MEC task sizes increase, the server intelligently throttles resources allocated to the BCFL layer—while still meeting its deadline—to prevent exponential spikes in energy usage. Furthermore, the distributed MC-ADMM approach demonstrated faster convergence (under 50 iterations) compared to the centralized MG-ADMM (approximately 80 iterations), highlighting the efficiency of decentralized problem-solving in edge environments.

Conclusion and Future Work

This research provides a robust framework for balancing the competing resource demands of MEC and BCFL. While the current model treats BCFL as a single task and assumes static channel conditions, it lays the groundwork for more complex scenarios. Future work will explore the impact of high mobility and fading channels in 5G/6G environments, as well as the scalability of ADMM-based solutions for larger networks with hundreds or thousands of devices.

Summary updated

BibTeX
@article{wang2024resource,
  author = {Zhilin Wang and Qin Hu and Zehui Xiong},
  title = {{Resource Optimization for Blockchain-based Federated Learning in Mobile Edge Computing}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  doi = {10.1109/jiot.2023.3347524},
}
Figure