On Dynamic Resource Allocation for Blockchain Assisted Federated Learning over Wireless Channels

Hv Poor, Xiumei Deng, Jun Li, Long Shi, Zhe Wang, Jessie Hui Wang, Taotao Wang

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across distributed devices while keeping data localized. However, traditional FL relies on a central server for model aggregation, creating a "single point of failure" and a potential bottleneck for security and scalability. While integrating blockchain technology (Blockchain-assisted FL or BFL) offers a decentralized alternative, most existing solutions depend on third-party blockchain networks. This dependency introduces risks such as collusion among external miners and "pooling attacks."

Furthermore, the dual burden of model training and blockchain consensus (like Proof-of-Work) is extremely resource-intensive, particularly in wireless environments where devices face limited battery life and fluctuating channel conditions. This paper addresses these challenges by proposing a fully decentralized BFL framework that eliminates third-party dependencies and introduces a dynamic resource allocation strategy.

Comparison of features between the proposed work and existing literature.

The Proposed BFL Framework

The core innovation of this work is an "all-in-one" client architecture where participants alternate between two roles: Trainers and Miners. Trainers perform local model updates on their datasets, while Miners verify these updates and aggregate them into the blockchain. By internalizing the mining process, the framework ensures that those with a vested interest in the model's integrity are the ones securing the network, effectively mitigating the risks associated with external third-party miners.

As illustrated in the workflow below, the process is divided into four distinct steps per communication round, spanning from initial scheduling to final block verification and model updates.

The four-step workflow of the proposed decentralized BFL framework, integrating training and mining.

The DRACS Algorithm

To manage the complex trade-offs between energy consumption and training speed, the authors developed the Dynamic Resource Allocation and Client Scheduling (DRACS) algorithm. The objective is to maximize the Long-Term Time Average (LTA) training data size processed by the network while adhering to strict energy constraints for each client.

DRACS leverages several mathematical frameworks to achieve real-time optimization:

  • Lyapunov Optimization: This technique converts long-term energy constraints into a "virtual queue" stability problem. It allows the system to make optimal scheduling and resource decisions in each round without requiring perfect knowledge of future channel states.
  • The $V$ Control Parameter: A crucial feature of the algorithm is the control parameter $V$, which acts as a performance-energy "knob." Increasing $V$ pushes the system to process more data (improving accuracy), while decreasing $V$ prioritizes battery preservation. This provides a provable trade-off between system utility and energy stability.
  • Channel-Aware Scheduling: To prevent slow wireless links from stalling the blockchain, DRACS intelligently selects clients with favorable channel conditions, ensuring efficient transmission of model parameters.

Experimental Results

The framework was evaluated using four standard datasets: ADULT and IPUMS-BR for tabular classification, and MNIST and Fashion-MNIST for image recognition. The researchers utilized Squared-SVM for tabular data and Convolutional Neural Networks (CNNs) for image tasks.

Key findings include:

  • High Accuracy: On the MNIST dataset, DRACS achieved approximately 90% accuracy, significantly outperforming baseline strategies such as "Select All" (73%) and simple channel-state-based scheduling (82%).
  • Energy Stability: The algorithm successfully maintained client energy consumption within predefined limits (e.g., 200mW to 600mW) after a short stabilization period, demonstrating its viability for battery-constrained IoT devices.
  • Resource Specialization: The system naturally learned to assign tasks based on client capabilities. Clients with high power but small datasets often focused on mining to support the network, while those with large datasets prioritized training.

Conclusion and Future Directions

This research demonstrates that a fully decentralized, energy-efficient BFL framework is feasible even over unpredictable wireless channels. By integrating training and mining and employing the DRACS algorithm, the system achieves high accuracy and stability without relying on external infrastructure.

Future work will focus on transitioning from energy-intensive Proof-of-Work (PoW) to more lightweight consensus mechanisms like Proof-of-Stake (PoS). Additionally, the authors aim to extend the theoretical convergence analysis to non-convex loss functions and improve the algorithm's scalability for networks involving thousands of participating devices.

Summary updated

Abstract

The blockchain technology has been extensively studied to enable distributed and tamper-proof data processing in federated learning (FL). Most existing blockchain assisted FL (BFL) frameworks have employed a third-party blockchain network to decentralize the model aggregation process. However, the decentralized model aggregation is vulnerable to pooling and collusion attacks from the third-party blockchain network. Driven by this issue, we propose a novel BFL framework that features the integration of training and mining at the client side. In our framework, the client first transmits its trained model to other clients, performs global aggregation upon receiving others' models, and competes to mine a block for aggregated model verification without the intervention of any third-party blockchain network. Considering the model transmission over time-varying wireless channels, we propose a dynamic training client scheduling to meet stringent latency requirement in FL, where clients with qualified channel conditions are scheduled to train their models in each communication round. Furthermore, we formulate a joint optimization problem of the training client scheduling and dynamic resource allocation (i.e., the transmit and computation power at the client side) under the constraint of long-term time-average (LTA) energy consumption. The objective of this optimization problem is to maximize the LTA training data size and thereby optimize the learning performance of FL. To this end, we obtain the closed-form solution by using the Lyapunov optimization method. Our experimental results show that the optimal solution can outperform baseline schemes in terms of learning accuracy and convergence time.
BibTeX
@inproceedings{poor2021dynamic,
  author = {HV Poor and Xiumei Deng and Jun Li and Long Shi and Zhe Wang and Jessie Hui Wang and Taotao Wang},
  title = {{On Dynamic Resource Allocation for Blockchain Assisted Federated Learning over Wireless Channels}},
  booktitle = {Ithings/greencom/cpscom/smartdata/cybermatics},
  year = {2021},
  doi = {10.1109/ithings-greencom-cpscom-smartdata-cybermatics53846.2021.00057},
}

Loading related content...

Figure