An Adversary-Resistant Multi-Agent LLM System via Credibility Scoring

Sana Ebrahimi, Mohsen Dehghankar, Abolfazl AsudeharXiv 2025 · DOI

Abstract

Multi-agent systems (MAS) for Large Language Models (LLMs) have demonstrated significant potential in complex reasoning and coding tasks. However, these systems remain vulnerable to adversarial or low-performing agents that can derail group consensus. This paper introduces a robust framework that utilizes dynamic Credibility Scoring (CrS) to maintain system integrity. By modeling collaborative query-answering as an iterative game and weighting agent contributions based on historical reliability, the proposed system achieves high performance even when malicious agents constitute a majority of the group. Evaluation across five benchmarks shows accuracy improvements of up to 30 percentage points over traditional coordination methods.

Introduction

Multi-agent systems leverage the collective intelligence of multiple LLMs to solve tasks that a single model might struggle with. Despite their promise, these systems are notoriously fragile; a single adversarial agent or a minority of low-performing models can introduce hallucinations or lead the group toward incorrect conclusions. Most existing defense mechanisms assume an "honest majority"—the belief that more than 50% of agents will act in good faith.

This research addresses the challenge of building a system that remains robust when the reliability of individual agents is unknown and when "bad actors" may outnumber "good" ones. We propose a framework that treats the system's operation as an iterative cooperative game, where trust is earned and quantified through a dynamic scoring mechanism.

The Credibility Scoring Framework

The core of the proposed system is the Credibility Score (CrS), a value in the range $[0, 1]$ assigned to each agent representing its long-term reliability. The framework operates through four primary components:

  1. Contribution Scoring (CSc): For each query, the system quantifies the actual influence of an agent on the final output. This is achieved through two methods: Shapley Values, a game-theoretic approach to distribute credit fairly, or an LLM-as-Judge (e.g., GPT-4o mini) that analyzes dialogue logs to assess impact.
  2. CrS-Aware Aggregation: Rather than relying on simple majority voting, the system employs Centroid-based aggregation. This method finds the weighted center of all agent responses within a high-dimensional embedding space, selecting the answer closest to this center based on the agents' current CrS.
  3. Reward-Based Updates: After each round, the system receives a reward ($r \in [-1, 1]$) based on the quality of the final output. This reward is distributed to agents proportional to their CSc, which in turn updates their long-term CrS.
  4. Dynamic Learning: These scores are learned "on the fly," allowing the system to identify and down-weight unreliable agents over time without prior knowledge of their intent.

Experimental Evaluation

The framework was evaluated using several backbone models (Llama 3.2, Mistral, Qwen 2.5) across five diverse benchmarks:

  • MMLU-MS: High School Math and Statistics.
  • GSM8K & MATH: Multi-step math word problems and competition-level mathematics.
  • HumanEval: Code completion tasks.
  • Research Questions: Non-factoid, search-style questions requiring contextual judgment.

Key Results

The implementation of CrS led to significant performance gains, with accuracy increases ranging from 6 to 30 percentage points compared to naive coordination strategies. On the ResearchQA dataset using Llama 3.2, a CrS-ordered chain architecture reached 84% accuracy, a stark contrast to the 52% accuracy achieved by standard stochastic architectures.

Discussion and Insights

Resilience in Adversary-Majority Settings

A primary finding of this study is the system's ability to tolerate extreme adversarial conditions. In tests where 3 out of 5 agents were programmed to be adversarial, the CrS system successfully identified the two "faithful" agents over several queries. By down-weighting the bad actors, the faithful agents eventually dominated the output, maintaining near-constant accuracy even as the number of adversaries increased.

The Role of Communication Topology

The structure of agent interaction significantly impacts robustness. The authors tested various topologies and found that a "CrS-ordered Chain"—where the most credible agents speak first—effectively limits the ability of adversaries to corrupt the conversation. This structure leverages the social dynamics of the agents, allowing faithful agents to "persuade" or correct others before a consensus is reached.

Criticality of the Judge

The integrity of the trust loop is heavily dependent on the quality of the "Judge" LLM. If a weak model is used to assign rewards, the resulting credibility scores become noisy. In coding benchmarks (HumanEval), even capable models like GPT-4o mini struggled to accurately reward code, which occasionally led to distorted credibility scores and performance degradation below single-agent baselines.

Limitations and Future Work

While effective, the framework faces challenges regarding computational overhead, particularly the $2^N$ complexity of calculating exact Shapley values. Furthermore, the study primarily utilized "synthetic" adversaries; real-world deceptive agents fine-tuned for manipulation may present more complex detection challenges. Future research will focus on developing "self-calibrating" judges and more cost-effective approximations for contribution scoring to reduce latency and API costs.

Conclusion

By shifting from static aggregation to a dynamic, game-theoretic credibility model, multi-agent LLM systems can achieve unprecedented levels of robustness. This framework provides a path toward deploying collaborative AI in environments where agent reliability cannot be guaranteed, ensuring that the "wisdom of the crowd" is not silenced by a vocal, adversarial majority.

Summary updated

BibTeX
@misc{ebrahimi2025adversary,
  author = {Sana Ebrahimi and Mohsen Dehghankar and Abolfazl Asudeh},
  title = {{An Adversary-Resistant Multi-Agent LLM System via Credibility Scoring}},
  year = {2025},
  eprint = {2505.24239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.24239},
}
Figure