Skip to content
Enrique Tomás Martínez Beltrán
HomeResearchPublicationsTopicsTeachingBlog
Contact
EN/ES
HomeResearchPublicationsTopicsTeachingBlogContact
EN/ES

Enrique Tomás Martínez Beltrán

Postdoctoral research in AI, cybersecurity and federated learning, spanning threat analysis, closed-loop cyberdefense and trustworthy decentralized learning.

  • Privacy Policy
  • Terms of Service
  • Accessibility Statement
  • Google Scholaropens in a new tab
  • ORCIDopens in a new tab
  • LinkedInopens in a new tab
  • GitHubopens in a new tab
All profiles
  • ResearchGateopens in a new tab
  • Scopusopens in a new tab
  • DBLPopens in a new tab
  • Web of Scienceopens in a new tab

Enrique Tomás Martínez Beltrán. All rights reserved.

Back to top

This site loads optional analytics from Google and external analytics providers only if you accept. You can decline and continue using the site normally.

  1. Home
  2. Research Notes on Federated Learning, Cybersecurity and Cyberdefense
  3. Designing a Decentralized Federated Learning System
Decentralized Federated LearningNetwork TopologyCommunication EfficiencyTrustworthy AI

Designing a Decentralized Federated Learning System

A practical framework for topology, representations, robustness and evaluation

Enrique Tomás Martínez Beltrán

Postdoctoral Researcher in Computer Science

August 7, 20268 min read
  • LinkedInopens in a new tab
  • Xopens in a new tab
Designing a Decentralized Federated Learning System

Designing a decentralized federated learning system starts before choosing an optimizer. The central design decision is how participants will exchange knowledge when there is no permanent aggregation point. That decision connects topology, communication, security, privacy and evaluation.

The survey work behind the doctoral thesis is useful here because it treats DFL as a system architecture rather than as a single training trick. A credible design answers five questions: who can communicate, what is exchanged, how contributions are combined, how unreliable behavior is handled and which metrics define success.

1. Start with the operating environment

List the properties that are fixed and the properties that may change:

  • device capabilities and energy limits,
  • link bandwidth, latency and availability,
  • whether participants are static or mobile,
  • the degree of statistical heterogeneity between local datasets,
  • the sensitivity of the information represented by an update,
  • the consequences of a delayed or malicious contribution.

This inventory prevents a common mistake: selecting a topology first and discovering later that it assumes links, memory or trust relationships that the environment does not provide.

2. Treat topology as a control surface

A ring is simple and inexpensive, but information may need several hops to reach the whole network. A dense mesh spreads updates quickly, at the cost of more traffic and more opportunities to receive a bad update. A random graph can offer a useful compromise, but its properties depend on connectivity and on how neighbors change over time.

Editorial diagram of peer-to-peer DFL topology and local model exchange
Editorial diagram of peer-to-peer DFL topology and local model exchange

The relevant quantity is not only the number of edges. It is how the graph shapes the mixing of local models. If WtW^tWt is a row-stochastic mixing matrix at round ttt, a simplified consensus step is:

θˉit+1=∑jWijtθjt.\bar{\theta}^{t+1}_i = \sum_j W^t_{ij}\theta^t_j.θˉit+1​=j∑​Wijt​θjt​.

The matrix can change as nodes move, fail or update their neighbor lists. In a real deployment, topology monitoring belongs in the learning loop because a connectivity change can also change the training dynamics.

3. Choose the exchanged representation deliberately

Full model parameters are expressive but expensive. Gradients can be smaller in some protocols, although they remain sensitive to optimization and privacy choices. Compact class or modality prototypes can make communication more targeted when the goal is to align representations rather than to copy an entire model.

The right representation depends on what peers need to learn from one another. A security detector may require update direction and confidence. A multimodal classifier may benefit more from a small summary of class-specific embeddings. The representation should be bounded, versioned and accompanied by enough metadata to interpret it safely.

4. Make robustness explicit

In a decentralized network, a contribution can be wrong because a client has noisy data, because its model is stale or because an adversary is manipulating it. These cases should not be treated as identical. A useful protocol records provenance and can combine several signals before deciding how much influence a contribution receives.

One conceptual influence rule is:

αit=clip⁡(λ1qit+λ2cit+λ3rit,0,1),\alpha_i^t = \operatorname{clip}\left( \lambda_1 q_i^t + \lambda_2 c_i^t + \lambda_3 r_i^t, 0, 1\right),αit​=clip(λ1​qit​+λ2​cit​+λ3​rit​,0,1),

where qitq_i^tqit​ represents model consistency, citc_i^tcit​ contextual agreement and ritr_i^trit​ recent reliability. The expression is a design pattern, not a universal formula. The important property is bounded influence and a visible reason for changing it.

5. Evaluate more than final F1

A DFL experiment should report model quality together with the conditions that produced it. Useful dimensions include:

DimensionExample question
QualityDoes the model generalize beyond the best-connected clients?
CommunicationHow many bytes move per client and per round?
ConvergenceHow quickly does the network reach a stable level?
RobustnessWhat happens when a peer is stale, noisy or adversarial?
ResourcesCan the devices sustain CPU, memory and energy demands?
TopologyDoes performance survive sparse or changing graphs?

Reporting only the best accuracy hides the engineering trade-offs. The thesis uses this broader view to connect a state-of-the-art survey with controlled studies of dynamic reliability and multimodal heterogeneity.

A compact design checklist

Before implementing, specify:

  1. the threat model and the failure modes that matter;
  2. the graph policy and how neighbors are discovered;
  3. the representation exchanged at each step;
  4. the rules for weighting, rejecting or quarantining updates;
  5. the privacy assumptions and leakage tests;
  6. the metrics, datasets and topology variations used for evaluation;
  7. the recovery path when the network cannot reach consensus.

Decentralization is valuable when it matches the environment. A topology that removes a server but silently creates a fragile chain of dependencies is not a robust design. The goal is a system whose learning, networking and security assumptions can be inspected together.

This note is an original synthesis of the DFL design principles reviewed in the doctoral thesis and its survey publication. It is not a reproduction of the source text.

Related Research

Robust Decentralized Federated Learning: Limits and Open Questions

August 13, 2026

Robust Decentralized Federated Learning: Limits and Open Questions

A measured research agenda for dynamic topologies, manipulated context, formal privacy analysis and external validity in robust DFL.

Communication Efficiency in DFL: Why Prototypes Matter

August 12, 2026

Communication Efficiency in DFL: Why Prototypes Matter

A practical analysis of payload size, round cost and the prototype communication results reported for Modalis on AVMNIST.