Implicit Model Specialization through DAG-based Decentralized Federated Learning

Jossekin Beilharz, Bjarne Pfitzner, Robert Schmid, Paul Geppert, Bert Arnrich, Andreas Polze

Abstract

Standard Federated Learning (FL) often struggles with non-IID data distributions, where a single global model fails to cater to diverse user needs. This paper introduces a fully decentralized FL framework that replaces central servers with a Directed Acyclic Graph (DAG) of model updates. By employing an "accuracy-aware" selection process, clients naturally cluster together to create specialized models. This approach not only improves performance on specific data distributions but also enhances robustness against malicious poisoning attacks without requiring a central coordinator.

The Challenge of Non-IID Data in Federated Learning

Federated Learning (FL) typically relies on a central server to aggregate model updates from various clients into a single "global" model. While this preserves data privacy, it faces significant hurdles when data is non-IID (non-independent and identically distributed). For instance, a language model trained on both English and German users might become mediocre at both languages rather than excelling at one.

Existing solutions for personalization often still require a central coordinator or utilize linear blockchains, which can struggle with scalability and asynchronicity. The authors address a three-fold challenge: building a system that is fully decentralized, scales efficiently, and allows models to specialize for different user groups without pre-defining those groups.

Methods: The Specializing DAG

The proposed solution is the Specializing DAG. Instead of a single chain of blocks, every model update is a node in a graph. To contribute a new update, a client must "approve" two previous updates by drawing edges to them.

Overview of the Specializing DAG architecture and the four-step model update process.

The core mechanism is the Accuracy-Aware Tip Selection:

  1. Biased Random Walk: When a client prepares to train, they perform a random walk through the DAG from the genesis toward the latest updates ("tips").
  2. Local Evaluation: At each step, the client evaluates available next nodes (models) using their own local data.
  3. The Bias: The walk is biased toward models performing better on the client's data, controlled by a parameter $\alpha$. A higher $\alpha$ makes selection more "greedy" for accuracy, while a lower $\alpha$ encourages exploration.
  4. Merge and Train: The client selects two high-performing tips, averages them, trains the result on local data, and publishes the new model to the DAG.

This process creates a feedback loop where clients with similar data naturally approve each other's models, leading to the emergence of specialized clusters within the graph structure.

Key Insights and Ideas

  • Implicit Specialization: The system does not require pre-defined clusters. The DAG structure and biased random walk act as a self-organizing mechanism where similarity in data leads to structural clusters in the graph.
  • Robustness as a Side Effect: The accuracy-aware selection serves as a filter. If an attacker submits a "poisoned" model, honest clients will find it performs poorly on their data and simply walk around it, effectively quarantining malicious updates.
  • Asynchronous Scalability: Unlike blockchains requiring a global "winning" chain, the DAG allows multiple clients to work simultaneously. The random walk duration is negligible compared to training time, facilitating high scalability.

Key Results

The researchers evaluated their approach on several datasets, including FMNIST-Clustered, CIFAR-100, and the "Poets" dataset (English vs. German text).

Impact of the selection bias parameter $\alpha$ on model accuracy over training rounds. Higher $\alpha$ values lead to faster convergence by prioritizing specialized accuracy.
  • Superior Accuracy: On the FMNIST-Clustered task, the Specializing DAG reached high accuracy significantly faster than standard Federated Averaging (FedAvg) because it avoided the "one-size-fits-all" trap.
  • Competitive Performance: The system outperformed FedProx in both average accuracy and loss, proving that decentralization does not necessitate a performance penalty.
  • Resilience to Attacks: In a "flipped-label" attack scenario with 20% malicious clients, the network remained unaffected. The biased random walk naturally isolated the malicious nodes.
  • Emergent Modularity: Using community detection algorithms, the authors confirmed that the graph's mathematical modularity increases over time, validating the formation of stable, specialized communities.

Limitations and Future Work

While promising, the approach faces a personalization-privacy tradeoff; highly specialized models might inadvertently reveal characteristics of a client's local data. Additionally, the random walk requires evaluating multiple candidate models, increasing local computational overhead. Future research may explore training only specific model layers (e.g., final classification layers) to better balance generalization and specialization.

Summary updated

BibTeX
@inproceedings{beilharz2021implicit,
  author = {Jossekin Beilharz and Bjarne Pfitzner and Robert Schmid and Paul Geppert and Bert Arnrich and Andreas Polze},
  title = {{Implicit Model Specialization through DAG-based Decentralized Federated Learning}},
  booktitle = {Middleware},
  year = {2021},
  doi = {10.1145/3464298.3493403},
}

Loading related content...

Figure