TL;DR
By framing Large Language Model (LLM) multi-agent coordination as a classic dynamic ad-hoc networking problem, this paper introduces RAPS (Reputation-Aware Publish-Subscribe). RAPS replaces rigid, pre-wired agent workflows and fragile centralized controllers with a decentralized, intent-driven marketplace where agents dynamically subscribe to topics, adapt their roles on the fly, and autonomously isolate malicious peers using Bayesian reputation tracking.
What Problem Does This Paper Address?
Multi-agent systems (MAS) leverage the specialized capabilities of multiple LLMs to solve complex tasks. However, orchestrating how these agents interact remains a major bottleneck.
Current approaches fall into two flawed paradigms:
- Communication-Agnostic Coordination: These methods optimize a static interaction graph offline. Because the topology is fixed, the system is blind to the actual content of messages during inference and cannot handle dynamic agent memberships (adding/removing agents requires re-running expensive optimizations).
- Meta-Controlled Coordination: These methods use a centralized "meta-agent" to route messages dynamically. This creates a severe single-point-of-failure (SPoF) risk and a combinatorial bottleneck as the agent population grows.
The authors argue that an ideal multi-agent system must simultaneously achieve adaptivity (to evolving message flows), scalability (to dynamic memberships), and robustness (against malicious or hallucinating agents).
Methods
RAPS solves this by treating LLM agents as autonomous hosts in a dynamic ad-hoc network, moving from traditional host-centric routing to content-centric packet-switching. The framework consists of three layers:
1. Distributed Publish-Subscribe Substrate
Instead of hardcoding who talks to whom, RAPS functionally decouples each agent into three modules:
- Subscriber: Explicitly declares its capabilities or intents via its system prompt (e.g., "Python Expert").
- Publisher: Executes the core LLM function and broadcasts its output as a semantic publication.
- Broker: A decentralized matching component that routes publications to relevant subscribers based on semantic similarity rather than fixed addresses.
2. Reactive Subscription Overlay (Adaptivity)
To prevent static role definitions from becoming obsolete as a conversation evolves, RAPS introduces an LLM-driven prompt rewriter. Before the publication phase, active agents dynamically refine their system prompts based on the incoming message context, allowing them to specialize their roles on the fly.
3. Bayesian Reputation Overlay (Robustness)
To protect the decentralized network from adversarial attacks or severe hallucinations, each agent runs a local watchdog (an LLM auditor). The watchdog maintains pairwise probabilistic trust ratings using a conjugate Beta-Bernoulli model. Agents combine their first-hand evaluations with second-hand witness testimonies, filtering out dishonest reports via a deviation test to prevent reputation poisoning.
Datasets
The authors evaluated RAPS across five standard benchmarks spanning three distinct task categories:
- General Reasoning: MMLU
- Mathematical Problem Solving: GSM8K, SVAMP, and AQuA
- Code Generation: HumanEval (measured via Pass@1)
Key Insights and Ideas
- The Networking Isomorphism: LLM agents function exactly like network hosts, and natural language messages act as data packets. Applying decades of ad-hoc networking wisdom (like publish-subscribe protocols and decentralized trust) elegantly bypasses the limitations of current multi-agent architectures.
- Decentralizing the Routing Logic: By distributing the routing logic to local brokers, RAPS eliminates the single-point-of-failure bottleneck inherent to meta-controllers.
- Resilience to Initial Pool Quality: Thanks to the Reactive Subscription overlay, RAPS is remarkably resilient to poorly initialized agent pools. Even when given generic, "naive" agent roles, the agents autonomously specialize their prompts based on the context of the problem.
Key Results
- State-of-the-Art Performance: RAPS achieved the highest average score of 90.0% across all five benchmarks, outperforming top communication-agnostic frameworks (like AFlow and G-Designer) and meta-controlled models (like AutoAgents).
- Population Scalability: While static chains and centralized models (like Puppeteer) suffer severe accuracy degradation or latency explosions when scaling from 3 to 20 agents, RAPS demonstrated steady accuracy gains and flat runtime scaling.
- Byzantine Robustness: In stress tests where adversarial "Liar" agents were injected into the pool, RAPS maintained high accuracy (e.g., 86.3% on MMLU under high contamination), whereas baseline methods collapsed completely.
Limitations and Future Work
- Foundation Model Dependence: RAPS acts as an intelligence multiplier for information flow but cannot fix fundamental domain-knowledge deficits inherent to the underlying backbone LLMs.
- Cold Start Problem: At the very beginning of an interaction, local watchdogs operate with uninformative priors. The system remains transiently vulnerable to adversarial agents during this brief "warm-up" period before reputation scores converge.
- Future Directions: The authors suggest exploring learnable coordination protocols via multi-agent reinforcement learning, as well as porting other networking primitives like congestion control (to manage token limits) and hierarchical subnetting.
Summary updated