Implicit model specialization through dag-based decentralized federated learning

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

TL;DR

This paper introduces a fully decentralized federated learning framework that replaces central servers with a Directed Acyclic Graph (DAG) of model updates. By using an "accuracy-aware" selection process, clients naturally cluster together to create specialized models that perform better on their specific data distributions (non-IID data) while remaining robust against malicious poisoning attacks.

What Problem Does This Paper Address?

Standard Federated Learning (FL) usually relies on a central server to aggregate model updates from many clients into a single "global" model. While this protects data privacy, it hits a major wall when data is non-IID (non-independent and identically distributed). Imagine a language model trained on both English and German users; a single global model might end up being mediocre at both rather than great at one.

Existing solutions for "personalization" often still require a central coordinator or use linear blockchains, which struggle with scalability and asynchronicity. The authors tackle a three-fold challenge: How can we build a system that is fully decentralized, scales efficiently, and allows models to specialize for different groups of users without needing to pre-define those groups?

Methods

The authors propose a 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.

The "secret sauce" is the Accuracy-Aware Tip Selection:

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

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

Datasets

The researchers evaluated their approach on three distinct setups to test different types of data heterogeneity:

  • FMNIST-Clustered: A version of Fashion MNIST where clients are synthetically grouped into three clusters based on specific categories of clothing.
  • Poets: A natural language dataset combining the works of William Shakespeare (English) and Johann Wolfgang von Goethe (German).
  • CIFAR-100: An image dataset grouped into 20 superclasses (e.g., aquatic mammals, trees, vehicles), representing a more complex, non-synthetic distribution.
  • FedProx Synthetic: A benchmark dataset used specifically to compare against state-of-the-art centralized personalized FL.

Key Insights and Ideas

  • Implicit Specialization: You don't need to tell the system who belongs in which cluster. The DAG structure and the biased random walk act as a self-organizing mechanism. Similarity in data leads to similarity in model selection, which manifests as structural clusters in the graph.
  • The "Accuracy Tip Selection" as a Filter: This mechanism serves a dual purpose. It drives personalization, but it also provides poisoning robustness. If an attacker submits a "poisoned" model (e.g., one trained on flipped labels), honest clients will find that it performs poorly on their local data and simply walk around it.
  • Asynchronous Scalability: Unlike blockchains that require a global "winning" chain, the DAG allows multiple clients to work and publish simultaneously. The random walk duration is marginal (600–1200ms) compared to model training time, making it highly scalable.

Key Results

  • Superior Accuracy on Non-IID Data: On the FMNIST-Clustered task, the Specializing DAG reached high accuracy significantly faster than standard Federated Averaging (FedAvg) because it didn't try to force a one-size-fits-all model.
  • Competitive with State-of-the-Art: The system outperformed FedProx in both average accuracy and loss, proving that a decentralized approach doesn't have to come with a performance penalty.
  • Resilience to Attacks: In a "flipped-label" attack scenario where 20% of clients were malicious, the network remained almost entirely unaffected. The biased random walk effectively "quarantined" the malicious updates into their own isolated part of the DAG.
  • Emergent Modularity: Using the Louvain algorithm for community detection, the authors proved that the graph's mathematical modularity increases over time, confirming that clients are indeed forming stable, specialized communities.

Limitations and Future Work

  • Privacy Risks: The authors acknowledge a "personalization-privacy tradeoff." If a client's model is highly specialized, it might inadvertently reveal characteristics of their local data. Small clusters are easier to de-anonymize.
  • Computational Overhead: Performing the random walk requires evaluating multiple "candidate" models locally. While the authors argue this can be hidden between training cycles, it still increases the total compute required by the client.
  • Partial Specialization: Future work could explore training only specific layers of a model (e.g., the final classification layers) while keeping the base layers general, which might balance generalization and specialization even better.

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