Trust-based Consensus in Multi-Agent Reinforcement Learning Systems

Ho Long Fung, Victor-Alexandru Darvariu, Stephen Hailes, Mirco Musolesi · DOI

TL;DR

This paper tackles the challenge of achieving consensus in multi-agent systems where some agents might be unreliable or faulty. They introduce Reinforcement Learning-based Trusted Consensus (RLTC), a novel decentralized trust mechanism that allows agents to learn which of their neighbors to trust, significantly improving consensus success rates even with a substantial fraction of unreliable agents.

What Problem Does This Paper Address?

In cooperative multi-agent systems (MAS), especially those using multi-agent reinforcement learning (MARL), a critical yet often overlooked issue is the presence of unreliable agents. These agents might deviate from expected behavior due to various reasons like node failures, transmission errors, or simply providing incorrect information. This unreliability can severely hinder the system's ability to achieve its goals. A fundamental cooperative task susceptible to this problem is consensus, where agents need to agree on a common value. In decentralized systems, detecting and handling these unreliable agents is difficult because there's no central authority to aggregate information. This paper focuses on how to enable agents to reach consensus reliably in the presence of such faulty or untrustworthy peers.

Methods

The core of the paper's contribution is the Reinforcement Learning-based Trusted Consensus (RLTC) mechanism. This is a decentralized trust mechanism where each agent learns to dynamically decide which of its neighbors to communicate with.

Here's how it works:

  • Consensus Protocol: Agents interact in lock-step rounds. They broadcast their current value to neighbors. Upon receiving messages, each agent updates its local value by randomly selecting from its own value and the received values from trusted neighbors.
  • Trust Mechanism: Each agent maintains a binary trust score for each neighbor. If an agent trusts a neighbor, it includes their messages in its update. If it distrusts a neighbor (trust score is 0), it ignores their messages.
  • Learning Trust: The trust mechanism is learned using a multi-agent decentralized Markov Decision Process (MDP). Each agent uses independent Q-learning to update its trust scores. The state for an agent is its current trust array (mapping neighbors to trust scores), and its actions involve toggling the trust score for a specific neighbor or doing nothing. The reward is positive if the agent achieves local consensus (agrees with its trusted neighbors on the true value) and negative otherwise.
  • Failure Models: The paper considers two types of unreliable agent behavior:
  • Fixed failure model: The agent always sends an incorrect value (0).
  • Random failure model: The agent sends 0 or 1 uniformly at random.

The RLTC approach is compared against two baselines: "Trust All" (where agents always trust all neighbors) and "Oracle" (where reliable agents have perfect prior knowledge of which neighbors are reliable).

Datasets

The paper does not use pre-existing datasets. Instead, it defines a simulated environment based on a 2D square lattice communication network. Experiments are conducted on this simulated environment with varying numbers of agents (9 and 16) and different configurations of reliable and unreliable agents.

Key Insights and Ideas

  • Unreliability is a Major Bottleneck: Even a moderate fraction of unreliable agents can drastically reduce the success rate of consensus in decentralized MARL systems, as shown by the poor performance of the "Trust All" baseline.
  • Decentralized Trust is Key: The RLTC mechanism demonstrates that agents can learn to effectively filter out unreliable sources without central coordination, leading to significantly improved consensus.
  • Adaptability Across Failure Types: The RLTC approach is shown to be effective for both fixed and random failure models, highlighting its robustness.
  • Emergent Asymmetric Trust: The learned trust mechanism often results in asymmetric trust relationships (agent A trusts B, but B doesn't trust A), which is a natural consequence of decentralized learning and local optimization. This is an interesting emergent property.
  • Scalability: The proposed mechanism maintains performance as the number of agents increases, suggesting practical applicability in larger systems.

Key Results

  • Success Rate Improvement: RLTC consistently achieves higher consensus success rates compared to the "Trust All" baseline across various fractions of reliable agents ($f$) and noise levels ($1-p$). For instance, in Figure 7 (top), with $f=0.25$ and $1-p=0.3$, RLTC achieves a success rate of around 0.6, while "Trust All" is close to 0.
  • Performance vs. Oracle: While RLTC doesn't reach the performance of the "Oracle" baseline (which has perfect information), it significantly closes the gap, showing the effectiveness of learned trust.
  • Fixed vs. Random Failures: The success rates are generally higher in the random failure model because unreliable agents sometimes output the correct value. However, RLTC still shows a significant improvement over "Trust All" in this scenario as well.
  • Trust Metrics: The "Trust Rate" and "Mutual Trust" metrics for RLTC are generally lower than 1, indicating that agents don't blindly trust everyone, which is a desired outcome. "Trust Accuracy" shows how well the learned trust aligns with the true reliability of neighbors, and while it can be lower than the Oracle, it's a key indicator of the learned strategy.

Limitations and Future Work

  • Trust Accuracy: The paper notes that the trust accuracy for RLTC agents can be relatively low, meaning they don't always perfectly identify reliable neighbors. This is attributed to the decentralized nature of learning, making it hard to coordinate trust between pairs of agents.
  • Asymmetric Trust: While emergent, the low mutual trust and lack of reciprocation present a challenge for decentralized coordination. Future work could explore mechanisms to encourage more reciprocal trust.
  • Generalization to Other Tasks: The current work focuses on consensus. Extending the RLTC mechanism to other cooperative MARL tasks where unreliability is a concern would be a valuable next step.
  • More Complex Failure Models: Investigating more sophisticated failure models beyond fixed and random behavior could further test the robustness of the RLTC approach.
  • Interpretability: While the trust scores are interpretable, further analysis into why agents learn specific trust patterns could provide deeper insights.

Summary updated

BibTeX
@misc{fung2022trust,
  author = {Ho Long Fung and Victor-Alexandru Darvariu and Stephen Hailes and Mirco Musolesi},
  title = {{Trust-based Consensus in Multi-Agent Reinforcement Learning Systems}},
  year = {2022},
  eprint = {2205.12880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12880},
}
Figure