A Distributed Computation Model Based on Federated Learning Integrates Heterogeneous models and Consortium Blockchain for Solving Time-Varying Problems

Zhihao Hao, Guancheng Wang, Chunwei Tian, Bob ZhangarXiv 2023 · DOI

Abstract

This paper introduces the Distributed Computation Model (DCM), a framework that combines consortium blockchain with federated learning to solve complex, time-varying mathematical problems. By allowing heterogeneous neural network models to collaborate without a central server, DCM overcomes traditional "model silos" and single-point-of-failure risks. Experimental evaluations show that DCM achieves higher accuracy and stability than existing state-of-the-art distributed methods by effectively aggregating computation results across a decentralized network.

Introduction

Many real-world engineering problems—such as robotic arm movement or acoustic positioning—are "time-varying," meaning their underlying parameters change constantly. Recurrent Neural Networks (RNNs), specifically Zeroing Neural Networks (ZNNs), are highly effective at solving these dynamic equations. However, current implementations face three major hurdles: centralization risks, model silos, and security concerns. Relying on a single server creates a bottleneck, while standard Federated Learning (FL) typically requires every participant to use the exact same model architecture (homogeneity). Furthermore, ensuring that malicious nodes do not tamper with global results is critical for distributed trust.

The DCM Framework

The authors propose a two-layered architecture built on a consortium blockchain to address these issues. Unlike public blockchains, a consortium blockchain uses trusted "permissioned" nodes and general "permissionless" nodes, improving efficiency while maintaining decentralization.

The two-layered architecture of the Distributed Computation Model (DCM) integrating consortium blockchain and federated learning.

The core innovation of DCM is its support for heterogeneous integration. Instead of forcing all nodes to use the same model architecture and aggregating model weights, DCM aggregates the computation results (the update steps). This allows models with different internal structures to contribute to a single global solution. The system operates via the Distributed Hierarchical Integration (DHI) Algorithm:

  • Layer I: Permissionless nodes solve problems locally using their specific ZNN variants and send results to their assigned permissioned node.
  • Layer II: Permissioned nodes aggregate these local results, communicate with other permissioned nodes to reach a global consensus, and broadcast the refined result back to the workers.

To ensure security, the system employs the Digital Signature Algorithm (DSA) for data integrity and an enhanced Practical Byzantine Fault-Tolerant (PBFT) consensus mechanism to filter out malicious or noisy results.

Experimental Evaluation

The researchers evaluated the DCM using a complex time-varying linear equation ($P(t)X(t) = Q(t)$), where matrices $P(t)$ and $Q(t)$ were composed of various trigonometric functions to simulate a rapidly changing environment over a 30-second interval.

Comparison of DCM results against true values for variables $X_1(t)$ through $X_4(t)$ over time.

The DCM was compared against four standard Federated Learning versions of ZNN models (ZNN1-FL through ZNN4-FL). Key results include:

  • Superior Accuracy: DCM achieved an average error of $1.3835 \times 10^{-2}$, significantly lower than the next best model (ZNN1-FL at $2.0074 \times 10^{-2}$).
  • High Stability: As shown in Figure 6, the DCM's predicted values ($X_1$ through $X_4$) closely track the theoretical "true" values, demonstrating fast convergence and resilience to distributed communication noise.

Key Insights and Discussion

  • Result-Level Aggregation: By focusing on model outputs rather than internal parameters, the authors bypassed the requirement for identical model architectures, a major hurdle in traditional Federated Learning.
  • Blockchain for Coordination: The study demonstrates that blockchain's non-modifiable and traceable nature makes it an ideal ledger for coordinating distributed AI tasks where trust is low.
  • Dynamic Weighting: The DHI algorithm assigns weights based on error rates, allowing the system to prioritize more accurate models while maintaining a robust, inclusive global result.

Conclusion and Future Work

The DCM framework successfully integrates consortium blockchain and federated learning to provide a secure and flexible solution for dynamic mathematical problems. While the results are promising, future work will address potential smart contract vulnerabilities and refine weight distribution schemes. The authors also plan to apply DCM to physical systems, such as coordinating multiple robot manipulators in industrial settings.

Summary updated

Abstract

The recurrent neural network has been greatly developed for effectively solving time-varying problems corresponding to complex environments. However, limited by the way of centralized processing, the model performance is greatly affected by factors like the silos problems of the models and data in reality. Therefore, the emergence of distributed artificial intelligence such as federated learning (FL) makes it possible for the dynamic aggregation among models. However, the integration process of FL is still server-dependent, which may cause a great risk to the overall model. Also, it only allows collaboration between homogeneous models, and does not have a good solution for the interaction between heterogeneous models. Therefore, we propose a Distributed Computation Model (DCM) based on the consortium blockchain network to improve the credibility of the overall model and effective coordination among heterogeneous models. In addition, a Distributed Hierarchical Integration (DHI) algorithm is also designed for the global solution process. Within a group, permissioned nodes collect the local models' results from different permissionless nodes and then sends the aggregated results back to all the permissionless nodes to regularize the processing of the local models. After the iteration is completed, the secondary integration of the local results will be performed between permission nodes to obtain the global results. In the experiments, we verify the efficiency of DCM, where the results show that the proposed model outperforms many state-of-the-art models based on a federated learning framework.
BibTeX
@misc{hao2023distributed,
  author = {Zhihao Hao and Guancheng Wang and Chunwei Tian and Bob Zhang},
  title = {{A Distributed Computation Model Based on Federated Learning Integrates Heterogeneous models and Consortium Blockchain for Solving Time-Varying Problems}},
  year = {2023},
  eprint = {2306.16023},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.16023},
}
Figure