Resilient Consensus via Weight Learning and Its Application in Fault-Tolerant Clock Synchronization

Jian Hou, Zhiyong Chen, ZhiyunLin, Mengfan XiangarXiv 2020

TL;DR

This paper introduces a Weight Learning Algorithm (WLA) that enables multi-agent systems to reach consensus even when some nodes are faulty or malicious. By borrowing concepts from Reinforcement Learning, the algorithm dynamically "learns" to ignore untrustworthy neighbors based on their state deviations, successfully achieving resilient clock synchronization without requiring high network connectivity or massive historical data storage.

What Problem Does This Paper Address?

In distributed systems—ranging from drone swarms to power grids—"consensus" is the goal of getting all agents to agree on a specific value (like a heading or a timestamp) through local interactions. However, real-world networks often contain faulty nodes:

  1. Persistent Faulty Nodes (PFN): Nodes that are broken or hacked, broadcasting random values constantly.
  2. Intermittent Faulty Nodes (IFN): "Sneaky" nodes that act normally most of the time but occasionally inject errors to avoid detection.

Existing solutions, like the Mean-Subsequence-Reduced (MSR) algorithm, have a major "catch": they only work if the network is highly connected (specifically, connectivity must be at least $2F+1$, where $F$ is the number of faulty nodes). Other methods require storing and analyzing massive amounts of historical data. The authors sought a way to achieve resilience that is computationally light and works on sparsely connected, or even changing (stochastic), networks.

Methods

The authors propose the Weight Learning Algorithm (WLA), which treats neighbor interactions like a reinforcement learning problem. Instead of giving every neighbor a fixed level of influence, each agent uses a three-level strategy to determine how much to trust its peers:

  • Immediate Reward ($r_{ij}$): At every step, an agent compares its state to a neighbor's state. If the values are close, the reward is high (near 1). If they are far apart, the reward drops toward 0.
  • Credibility ($Q_{ij}$): This is a running product of all past rewards. It acts as a "trust score" that integrates historical behavior into a single variable, eliminating the need to store long sequences of history.
  • Interaction Weight ($a_{ij}$): The agent normalizes these credibility scores to determine the actual influence a neighbor has on its next state.

Over time, the weights of faulty nodes naturally decay toward zero, effectively isolating them from the rest of the network. The paper provides specific versions of this algorithm for both fixed topologies (static connections) and stochastic topologies (where connections appear and disappear randomly).

Datasets

As this is a theoretical control and systems paper, the authors did not use external real-world datasets. Instead, they validated their approach using numerical simulations:

  • General Consensus Simulation: A 10-node network with a mix of PFNs and IFNs.
  • Scalability Test: A large-scale simulation involving 1,000 nodes to prove the algorithm remains efficient as the network grows.
  • Clock Synchronization Simulation: A 16-node sensor network model where nodes must synchronize their logical clocks despite hardware skews, offsets, and noise.

Key Insights and Ideas

  • Isolation via Decay: The core "aha" moment is that you don't need to explicitly "detect" a fault to fix it. By simply reducing the weight of any node that deviates from the local trend, the system self-organizes to ignore bad actors.
  • Minimal Connectivity Requirements: Unlike previous methods that require dense networks, WLA only requires that the normal nodes form a "rooted" topology (meaning there is a path from a central node to all others).
  • IFNs are Catchable: Interestingly, the authors found that Intermittent Faulty Nodes (the "sneaky" ones) are actually easier to identify over time than Persistent ones because their occasional "bad" behavior stands out sharply against their "normal" history, causing their credibility to plummet.
  • Application to Clocks: The authors successfully mapped the abstract consensus problem to the concrete problem of Clock Synchronization, showing that WLA can handle both clock "skew" (speed) and "offset" (time difference) simultaneously.

Key Results

  • Resilient Convergence: In simulations with 10 nodes (where 3 were faulty), the "disagreement metric" $V(x(k))$ dropped to near zero within 20-30 iterations, whereas standard consensus would have failed.
  • Weight Suppression: Quantitative results showed that weights for faulty nodes dropped to negligible levels (e.g., 0.007) compared to normal nodes (e.g., 0.256).
  • Clock Accuracy: In the 16-node sensor network, the logical clocks of normal nodes converged perfectly even when 25% of the network was broadcasting random time signals. Without WLA, the clocks diverged wildly (as shown in the paper's comparative figures).

Limitations and Future Work

  • Intelligent Adversaries: The authors acknowledge that their current model assumes faulty nodes act randomly. They haven't yet addressed "intelligent" faulty nodes that might strategically mimic normal behavior to stay influential before launching a coordinated attack.
  • Cooperative Faults: The paper assumes faulty nodes act independently. Future research is needed to see if WLA can withstand a group of faulty nodes that "collude" to pull the consensus toward a specific incorrect value.
  • Physical Applications: While the simulations are robust, the authors suggest moving toward specific hardware applications like beamforming technology in social or sensor networks.

Summary updated

BibTeX
@misc{hou2020resilient,
  author = {Jian Hou and Zhiyong Chen and ZhiyunLin and Mengfan Xiang},
  title = {{Resilient Consensus via Weight Learning and Its Application in Fault-Tolerant Clock Synchronization}},
  year = {2020},
  eprint = {2002.03541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03541},
}
Figure