Abstract
Federated Learning (FL) typically relies on a centralized server-worker architecture, which introduces single points of failure and communication bottlenecks. We present DeFTA (Decentralized Federated Trusted Averaging), a peer-to-peer (P2P) framework that eliminates the central server. By integrating network topology into aggregation weights and employing a decentralized trust system based on "selfish" local evaluation, DeFTA achieves performance parity with centralized FedAvg. Notably, the system maintains robustness even when up to 66% of network participants are malicious.
Introduction
Standard Federated Learning, exemplified by the FedAvg algorithm, is built on a hub-and-spoke model. While effective, this architecture is vulnerable: if the central server fails, is compromised, or becomes congested, the entire training process halts. Transitioning to a decentralized P2P network introduces two primary challenges: aggregation bias, where well-connected nodes disproportionately influence the global model, and security, as the lack of a central authority makes the system susceptible to poisoning attacks.
DeFTA addresses these hurdles by redesigning the aggregation mathematics and introducing a localized trust mechanism that allows workers to autonomously isolate bad actors.
Methods
DeFTA introduces three core innovations to enable robust decentralized learning:
1. Topology-Aware Aggregation
In a P2P network, simple averaging based on data size leads to bias because some nodes act as hubs. DeFTA's aggregation formula incorporates a worker's outdegree (the number of peers it broadcasts to). By normalizing dataset size by the outdegree, DeFTA ensures the decentralized model converges to the same global optimum as a centralized system.
2. Decentralized Trust System (DTS)
Rather than requiring expensive global consensus or Byzantine-resilient protocols, DeFTA utilizes a "selfish" trust model. Each worker evaluates incoming models from its peers against its local validation set. If a peer's model increases local training loss, its trust score is reduced. Over time, malicious or low-quality nodes are effectively pruned from the local network.
3. Asynchronous Operation (AsyncDeFTA)
To handle real-world variability in device connectivity and compute power, the authors developed an asynchronous variant. AsyncDeFTA treats the network as a series of overlapping sub-FL systems, allowing workers to contribute without a global synchronized clock, significantly improving scalability.
Experimental Evaluation
The framework was tested across six diverse datasets, including Computer Vision (MNIST, FMNIST, EMNIST, CIFAR-10, CIFAR-100) and Natural Language Processing (Wikitext-2). To simulate realistic "data islands," all datasets were partitioned into non-i.i.d. (not identically and independently distributed) subsets.
Key Results
- Performance Parity: DeFTA achieved accuracy within ~0.5% of centralized FedAvg on MNIST and FMNIST, remaining highly competitive even on complex tasks like CIFAR-100.
- Extreme Robustness: In simulations with 60 workers, DeFTA successfully converged even when 40 workers (66%) were malicious and sending poisoned data. Standard decentralized methods typically fail with even a single malicious actor.
- Convergence Efficiency: Theoretical and empirical analysis confirmed that DeFTA matches the convergence rate of centralized FedAvg, ensuring no significant time penalty for decentralization.
Discussion and Future Work
While DeFTA is a robust "plug-and-play" replacement for FedAvg, challenges remain in cases of extreme data heterogeneity. If a worker's local data is too unique, the DTS might mistakenly categorize them as malicious. Future research will focus on more sophisticated peer-selection strategies to group workers with similar data distributions. Additionally, while AsyncDeFTA performs well empirically, a rigorous theoretical convergence analysis for the asynchronous P2P topology remains an open area for investigation.
Summary updated