Scaling Decentralized Learning with FLock

Zehua Cheng, Rui Sun, Jiahao Sun, Yike GuoarXiv 2025 · DOI

Abstract

FLock is a decentralized framework designed to fine-tune large-scale models, such as the 70B-parameter Qwen2.5, within trustless, multi-domain environments. By replacing traditional central aggregators with a blockchain-based incentive layer, FLock addresses the critical issues of single points of failure and scalability bottlenecks in Federated Learning (FL). Our evaluation demonstrates that FLock achieves a 68% reduction in adversarial attack success rates and fosters synergistic knowledge transfer, allowing global models to outperform domain-specific specialists.

Introduction

The current AI landscape is characterized by extreme centralization, which concentrates power and creates significant risks. While Federated Learning (FL) was introduced to preserve data privacy by keeping data on local devices, it typically relies on a central server for model aggregation. This architecture introduces two major hurdles: a single point of failure and a "scalability wall" when dealing with massive models. For instance, a full 32-bit gradient update for a 70B model requires transmitting roughly 280 GB per client iteration—a prohibitive requirement for decentralized networks. Furthermore, standard FL is vulnerable to poisoning attacks from malicious actors in open settings.

The FLock Framework

FLock fundamentally re-architects the federated learning process to eliminate the need for a central server, utilizing a decentralized ledger and smart contracts to manage model updates.

The FLock decentralized architecture, featuring Training Nodes, Validators, and a Blockchain-based incentive layer.

The system introduces several key components:

  • Decentralized Roles: The network consists of Training Nodes, which perform local fine-tuning, and Validators, who assess the quality of these updates.
  • Economic Incentives: Participants must stake tokens to ensure honest behavior. High-quality contributions are rewarded, while malicious or low-quality updates lead to "slashing" (forfeiture) of the participant's stake.
  • Stake-Weighted Consensus: Model aggregation is determined by a weighted combination of validator judgments, where influence is proportional to the validator's stake and historical performance.
  • Efficiency via PEFT: To scale to 70B-parameter models, FLock employs QLoRA (8-bit quantization) and Parameter-Efficient Fine-Tuning (PEFT), significantly reducing the communication and memory footprint.

Experimental Setup

We evaluated FLock using a diverse consortium of eight simulated "government agencies," each possessing a specialized, non-IID dataset. These domains included Legal (LegalBench), Medical (PubMedQA), Education (ARC), Environmental (NEPATEC1.0), Civic Discourse (MeetingBank), Finance (Finance Alpaca), Regulatory Compliance (Policy Bench), and Finance Compliance (EDGAR-CORPUS).

Key Results and Discussion

Scaling and Performance

FLock successfully fine-tuned Qwen2.5-72B, proving the viability of decentralized learning for state-of-the-art large models. The global model consistently surpassed the baseline Qwen2.5-72B across multiple benchmarks, with MMLU scores rising from 85.8 to over 86.6. Notably, the global model often outperformed domain-specific "specialist" models on their own test sets, suggesting a "synergistic knowledge transfer" where the model learns general reasoning capabilities that benefit all domains.

Robustness Against Poisoning

Traditional FL optimizers like FedAvg, FedAdam, and SCAFFOLD are largely defenseless against sophisticated backdoor attacks. In contrast, FLock’s reward-and-slash mechanism creates a powerful economic disincentive for attackers.

Comparison of backdoor attack success rates (ASR) across different FL algorithms. FLock maintains a near-zero ASR while standard methods saturate quickly.

As shown in the comparative analysis, while standard algorithms like FedAvg saw backdoor success rates saturate at 90% within just 40 rounds, FLock maintained a near-zero Attack Success Rate (ASR) throughout 200 rounds of training. This represents a 68% overall reduction in adversarial ASR compared to baseline models.

Conclusion

FLock demonstrates that decentralized learning can scale to the largest modern LLMs while providing superior robustness and performance. By aligning economic incentives with model quality, FLock paves the way for a more resilient and democratic AI ecosystem. Future work will focus on extending this framework to multi-modal data and further refining the incentive structures for long-term stability.

Summary updated

BibTeX
@misc{cheng2025scaling,
  author = {Zehua Cheng and Rui Sun and Jiahao Sun and Yike Guo},
  title = {{Scaling Decentralized Learning with FLock}},
  year = {2025},
  eprint = {2507.15349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.15349},
}
Figure