spot_img
HomeResearch & DevelopmentSecuring Multi-Agent Systems with LLMs: A Randomized Smoothing Approach

Securing Multi-Agent Systems with LLMs: A Randomized Smoothing Approach

TLDR: A new research paper introduces a defense framework using Randomized Smoothing to enhance the safety and robustness of LLM-driven multi-agent systems, particularly in safety-critical domains like aerospace. The method provides probabilistic guarantees against adversarial attacks and hallucinations by applying a two-stage adaptive sampling mechanism. Simulations show a 90% reduction in deviation from ideal behavior, demonstrating its effectiveness in preventing misinformation propagation and maintaining consensus performance in complex scenarios, including 3D UAV coordination.

Large Language Models (LLMs) are rapidly transforming how multi-agent systems (MAS) operate, especially in critical areas like aerospace. These systems, where multiple AI agents work together for tasks like autonomous flight coordination and cooperative decision-making, gain new capabilities from LLMs, including more adaptive decision-making and natural language interaction. However, this integration also introduces significant safety concerns, such as the propagation of false information (hallucinations) and vulnerability to malicious attacks.

Traditional safety methods for multi-agent systems, which rely on well-defined mathematical models, struggle with the unpredictable and probabilistic nature of LLMs. For instance, LLM hallucinations can spread through an agent network, reinforcing incorrect beliefs and compromising decisions. The ‘black-box’ nature of these models also makes it difficult to implement perfect safeguards, and their non-robust characteristics can lead to unexpected behaviors from minor input changes. Furthermore, LLM-driven agents can exhibit emergent behaviors, like unintended collusion, that might not align with safety requirements.

A recent research paper, Enhancing Robustness of LLM-Driven Multi-Agent Systems through Randomized Smoothing, proposes a novel defense framework to address these challenges. The core of this framework is Randomized Smoothing, a statistical technique originally used to make deep neural networks more resilient to adversarial attacks. This paper adapts the technique for the multi-agent consensus context, providing probabilistic guarantees on agent decisions even when faced with adversarial influence.

The proposed method tackles two main threats: stealthy malicious agents and LLM hallucination. Malicious agents might transmit manipulated information, while LLMs themselves can generate hallucinated outputs. Randomized Smoothing works by introducing a ‘smoothing function’ for each agent. When an agent needs information from a neighbor, it queries that neighbor multiple times with slight variations (Gaussian noise) to confirm consistency. This helps filter out potential hallucinations or malicious data. Additionally, when an agent makes its own decision, it applies another layer of smoothing by querying its own LLM function with perturbed inputs multiple times, then taking a ‘trimmed mean’ of the outputs to stabilize its decision.

To make this process computationally efficient, the framework uses an adaptive sampling strategy. Agents first take a small number of samples to estimate the variance of outputs. Based on this initial variance, they adjust the number of additional samples needed, taking fewer samples when responses are consistent and more when variability is high. This balances computational resources with the need for strong defense.

The paper also provides theoretical probabilistic safety guarantees. It shows how this local robustness at the individual agent level translates into network-wide resilience. Essentially, both malicious misinformation and LLM hallucinations are treated as forms of ‘noise.’ By aggregating multiple samples under controlled perturbations, an agent can distinguish consistent signals from outliers. This means that even if an adversary injects false information or an agent temporarily hallucinates, the smoothing procedure, with enough samples, dilutes their impact. This local stability prevents errors from spreading throughout the multi-agent system, leading to a significant attenuation of perturbations as they propagate through the network.

Numerical simulations were conducted using a ring-structured multi-agent system with 10 LLM-driven agents (using GPT-3.5-Turbo). The results clearly demonstrated the effectiveness of the defense. In scenarios with malicious agents and no defense, normal agents showed a significant average deviation from ideal behavior. With the randomized smoothing defense, this average deviation was reduced by an impressive 90.24%. The defense mechanism successfully mitigated the influence of malicious agents, leading to more stable agent trajectories and decisions that closely approximated the ideal baseline.

The framework was also validated in a more realistic three-dimensional aerospace scenario involving LLM-driven Unmanned Aerial Vehicles (UAVs) coordinating flight trajectories. Without defense, malicious UAVs caused severe formation degradation and mission failure. With the randomized smoothing defense, the UAV formation remained stable and coherent, closely resembling the baseline behavior, proving its capability in safety-critical aerospace settings.

Also Read:

Regarding real-time feasibility, the approach leverages parallel execution of LLM queries, meaning the overall runtime is primarily determined by the latency of individual LLM queries, which is acceptable for aerospace missions. The computational complexity scales linearly with the number of samples, and the adaptive sampling mechanism minimizes unnecessary queries, ensuring a balance between safety assurance and decision latency. This work offers a practical and scalable path toward the safe deployment of LLM-based multi-agent systems in high-stakes real-world environments.

Dev Sundaram
Dev Sundaramhttps://blogs.edgentiq.com
Dev Sundaram is an investigative tech journalist with a nose for exclusives and leaks. With stints in cybersecurity and enterprise AI reporting, Dev thrives on breaking big stories—product launches, funding rounds, regulatory shifts—and giving them context. He believes journalism should push the AI industry toward transparency and accountability, especially as Generative AI becomes mainstream. You can reach him out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -