Skip to content

Research: Multi-agent latent communication channels can be trained to increase harmful complianceSafety of Latent Communication in Multi-Agent Systems

Hugging Face Daily Papers· arXiv:2609.39788· Muhammad Huzaifa, Sina Mavali, Thorsten Eisenhofer·Indexed by this site · 2026-10-01· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors modify only the latent communication links across three topologies: benign training alone raises harmful compliance, reward-guided attacks raise the average score from 27.9 to 76.9, and modifying only the links suffices for repair.

Threat modelThe attacker aims to increase harmful compliance relative to a benignly trained system. The communication link parameters can be directly optimized, or harmful samples can be injected into the link training data. The underlying LLM parameters remain frozen, and the modified links are reused across queries.

Questions
If multi-agent systems use trainable channels to communicate in representation space, the channel changes the receiver's input. The authors ask: when the underlying aligned models are frozen, does training or tampering with only these channels increase the system's compliance with harmful requests?
Methods
Compares text communication with latent channels trained on benign data. Attacks fall into three categories: supervised optimization of the channel on harmful question-answer pairs, about 10% data poisoning, and using GRPO with response-level rewards to simultaneously optimize harmful compliance and benign utility. The defense changes the reward to penalize compliance and reward benign correctness, still updating only the channel.
Experiments and results
Across the three topologies, benign latent links have higher average harmful compliance than text communication. Averaged across topologies, supervised attacks raise the score from 27.9 to 75.6, 10% poisoning to 58.2, and reward-guided attacks to 76.9. After repair, the average score across the nine attack–topology groups drops from 70.3 to 4.8, and is lower than the corresponding clean links.
Limitations and future work
The authors state that future work needs to study how to remain safe and useful as the participating models, tasks, and communication mechanisms vary. The experiments cover three heterogeneous small-model topologies, four safety benchmarks, and two utility benchmarks; the harmful queries used for the defense come from AdvBench, and the paper does not report the number of repetitions.
Experimental setupLlama-3.2-3B-Instruct、Qwen2.5-3B-Instruct et al. · HarmBench、StrongREJECT et al. · ASR、StrongREJECT normalized score et al.
Evaluated models
Llama-3.2-3B-InstructQwen2.5-3B-InstructGemma-3-1B-ITLlama-3.2-1B-InstructQwen3-1.7BQwen2.5-Math-1.5B-InstructQwen3-8B
Benchmarks
HarmBenchStrongREJECTJailbreakBenchAdvBenchMATH500GPQA-Diamond
Metrics
ASRStrongREJECT normalized scoreaggregate harmful-compliance scoreMATH500 accuracyGPQA-Diamond accuracytoken usageinference time
AI summaryResearch shows that when multi-agent systems communicate latently in internal representation space, even benign training communication channels increase harmful compliance while the underlying safety-aligned agents remain unchanged. Attackers can amplify this effect by optimizing the channel on harmful question-answer pairs or by poisoning otherwise benign training data. The authors also propose a reinforcement learning attack that rewards harmful compliance while maintaining benign task performance, without requiring harmful target responses. Across three communication topologies and four safety benchmarks, the attack raises average harmful compliance scores from 27.9 with benign training channels to 76.9, and achieves higher average accuracy than direct supervised optimization on two benign utility benchmarks. Adjusting the reward toward safer behavior also repairs poisoned channels, substantially reducing harmful compliance across all evaluated attacks without updating the agents.

Research shows that when multi-agent systems communicate latently in internal representation space, even benign training communication channels increase harmful compliance while the underlying safety-aligned agents remain unchanged. Attackers can amplify this effect by optimizing the channel on harmful question-answer pairs or by poisoning otherwise benign training data. The authors also propose a reinforcement learning attack that rewards harmful compliance while maintaining benign task performance, without requiring harmful target responses. Across three communication topologies and four safety benchmarks, the attack raises average harmful compliance scores from 27.9 with benign training channels to 76.9, and achieves higher average accuracy than direct supervised optimization on two benign utility benchmarks. Adjusting the reward toward safer behavior also repairs poisoned channels, substantially reducing harmful compliance across all evaluated attacks without updating the agents.

Related events and news

2 events · 1 news mentions

News that mentions this paper

研究揭示多智能体潜在通信削弱安全对齐

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Modifying only the latent communication links between frozen agents can increase the system's harmful compliance.

    Does only training or tampering with the latent communication links between agents increase the system's harmful compliance while the underlying models remain frozen?

    • Scenario: The authors state that LLM-based multi-agent systems typically exchange intermediate results as text, and generating and reprocessing messages increases tokens, inference latency, and computational cost. Latent communication instead exchanges internal representations and uses lightweight trainable links to map the sender's representations into the receiver's input space, avoiding the need to update the underlying models.
    • Existing gaps: The authors state that LatentMAS, KVComm, RecursiveMAS, StateBridge, etc., mainly focus on the effectiveness and efficiency of latent communication. Text-based systems already have attack surfaces such as prompt injection, message tampering, and malicious agents; in latent systems, Wang et al. (2026) study interventions on hidden states and KV cache handoffs at inference time. The authors argue that link training still changes how information is passed into the receiver, thereby shaping the behavior of the composite system.
    • Core observation: The authors state that even if links are trained only on benign data and agent parameters are unchanged, harmful compliance can still rise relative to text communication. The authors suggest one possibility: benign supervision rewards task completion without a corresponding signal to maintain refusal.
    • Threat model:
      • Goal: Increase harmful compliance relative to a benignly trained system.
      • Knowledge and capability: Depending on the setting, the attacker can directly optimize the communication link parameters, or inject harmful samples into the link training data without being able to directly update the links or change the training objective.
      • Constraints: All underlying LLM parameters remain frozen; the modified links are reused across queries.
      • Victim system: A multi-agent system composed of frozen LLM agents and trainable links fθ, with topologies Two-agent, Sequential, and Mixture.
    • This paper proposes: Comparing text communication with benign latent links across three topologies; studying supervised optimization, data poisoning, and reward-guided attacks that do not require harmful target replies; then repairing by using reward guidance to update only the links.
  2. What related research exists?

    The work sits between heterogeneous latent communication and multi-agent communication attacks, focusing on learnable links on frozen models.

    Latent Communication

    • LatentMAS (Zou et al., 2026b): Shares latent working memory via KV cache.
    • KVComm (Shi et al., 2026): Selectively transmits KV pairs between agents of the same underlying model.
    • RecursiveMAS and StateBridge (Zou et al., 2026a; Peng et al., 2026): Support heterogeneous agents communicating in latent space. RecursiveMAS uses Recursive Link to learn communication mappings; StateBridge resolves computational alignment functions. The paper states that most of this work focuses on effectiveness and efficiency.

    Multi-Agent Safety

    • Text-based system attacks: Lee et al. (2025) studies prompt injection propagation among agents; He et al. (2025), Yan et al. (2026), and Abedini et al. (2026) study how message tampering and malicious agents alter collective behavior.
    • Latent-based system attacks: Wang et al. (2026) states that interventions on hidden states and KV-cache handoffs at inference time can cause task failure.
    • Single-model fine-tuning: Qi et al. (2024) states that fine-tuning can weaken safety alignment even when training data is benign. Qi et al. (2025) discusses the dependence of safe behavior on the first few generated tokens; this paper uses it to explain the initial decline in refusal.

    Baselines and Benchmarks

    • Communication baseline: Text communication under the same topology, same LLM, and roles, compared against benign latent links trained on RecursiveMAS data.
    • Attack comparisons: Clean links, approximately 10% poisoning, supervised optimization on harmful Q&A pairs, reward-guided optimization; repair starts from attacked links.
    • Benchmarks: HarmBench, StrongREJECT, AdvBench, JailbreakBench; utility uses MATH500 and GPQA-Diamond. Benign training data comes from RecursiveMAS's Sequential-Math; attack supervision comes from PKU-SafeRLHF. Optimization uses GRPO (Shao et al., 2024), and the motivation for the language consistency term comes from Guo et al. (2025).

    The authors position this paper as: studying how training and modifying these learnable communication links between frozen agents affects system safety, looking at both harmful compliance and benign utility.

  3. How does the paper address this problem?

    Freeze all LLMs and train only the channel: supervised, poisoned, or GRPO-rewarded, then defend with the reversed reward.

    The system consists of frozen agents and trainable links. Link fθ maps the sender's hidden state to soft tokens consumable by the receiver, while query q still goes directly into each agent.

    Problem setup and formalization

    • Topologies: Figure 1 gives three. Two-agent has a Planner connected to a Solver via fθ. Sequential has Planner, Refiner, Solver, with two links. Mixture has two Experts each connected via their own link to a shared Summarizer.
    • Single link: zθ(q) = fθ(hs(q)), and the receiver generates y ~ pϕr(· | q, zθ(q)). Agent parameters ϕr are frozen; only θ is trained. With multiple links, θ includes all link parameters, and zθ(q) is the latent input received by the final receiver.
    • Models and architecture: In Table 5, 2-Agent is Llama-3.2-3B-Instruct to Qwen2.5-3B-Instruct (3072→2048, 27.3M trainable parameters); Sequential is Gemma-3-1B-IT, Llama-3.2-1B-Instruct, Qwen3-1.7B (1152→2048→2048, 36.5M); Mixture uses Qwen2.5-Math-1.5B-Instruct and Qwen3-1.7B as experts and Qwen3-8B as summarizer ((1536, 2048)→4096, 111.2M). Heterogeneous links are residual projections: LN, two Linear layers with GELU, plus a residual Linear, then LN. At most 80 latent hidden states are passed per step. The receiver uses reserved latent-slots whose embeddings are replaced by the adapter output; communication slots do not generate text.

    Benign training

    • Objective: Minimize the negative log-likelihood of the reference answer on the clean set Dclean, i.e., equation (1): θ = arg min E[−log pϕr(y | q, zθ′(q))].
    • Data: Uses RecursiveMAS's Sequential-Math, recorded as 1,904 benign task supervision examples in Table 6. Each topology provides intermediate supervision according to its own communication structure.
    • Optimization: AdamW, learning rate 5×10⁻⁴, β1=0.9, β2=0.95, 10-step linear warmup, gradient norm clipping 1.0, bfloat16, gradient checkpointing; a single NVIDIA H100 per task.

    Three attacks

    • Supervised optimization: Starting from a trained link, replace Dclean with 3,000 harmful question-answer pairs from PKU-SafeRLHF, truncate target responses to 256 tokens, and train for 1,560 steps. The attacker does not need to modify the agents.
    • Data poisoning: The attacker cannot directly update the link or change the objective. By default, inject 212 harmful question-answer pairs into the 1,904 benign samples, for 2,116 total, a poisoning rate of about 10%, and train for one epoch with the original benign objective, batch size 2. Poisoned samples pair the harmful query and final harmful response with a fixed generic intermediate instruction.
    • Reward-guided (GRPO): Does not use harmful target responses. For each query, the final receiver samples a set of responses; the scalar reward is normalized using the group mean and standard deviation, gradients are backpropagated through the receiver, and agent and reward model parameters are fixed. The policy loss in Appendix B.3 uses within-group relative advantage Ai,k = (Ri,k − group mean) / (group std + 10⁻⁴), then weights the token-averaged log probabilities; samples with advantage 0 are not updated.

    Rewards and repair

    • Attack reward: On harmful queries, StrongREJECT judge Jψ(q, y)∈[0,1], plus Latin-script consistency Cscript and 0.5 times content-word overlap Coverlap, then multiplied by length gate g(y)=min(|y|/64, 1). Benign queries appear interleaved, with utility reward [3 Uψ + Cscript] g(y). Over 300 steps, a utility update occurs every three steps, i.e., 200 harmful and 100 clean steps. 2-Agent and Sequential use 2 different queries per step with K=8 each; Mixture uses 1 query with K=6 due to memory. Sampling temperature 0.9, top-p 0.95, at most 900 new tokens. The harmful query pool has 2,697 queries, keeping only queries.
    • Repair: Starting from attacked parameters, also GRPO for 300 steps, with harmful and benign updates alternating evenly. Harmful queries come from AdvBench. Safety reward is [−Ccomp − Jψ + Cscript] g(y); Ccomp=0 when a common refusal prefix is detected by regex, otherwise 1. On the benign side, task score: final answer correct is 1, wrong but with a valid boxed form is 0.3, otherwise 0, reward [3 Ctask + Cscript] g(y). Appendix B.4 states this utility signal is based on task correctness, unlike the LLM utility judge in the attack phase.

    Success determination

    • Safety: HarmBench, AdvBench, JailbreakBench use the official cais/HarmBench-Llama-2-13b-cls; ASR is the proportion of responses judged to exhibit the requested harmful behavior. StrongREJECT uses the official Gemma-2B with strongreject-15k-v1, reporting its continuous score. All four are rescaled to 0–100, then averaged into an aggregate compliance score. Only the final agent response is given to the judge.
    • Separation: PKU-derived queries have no exact overlap with the four safety benchmarks; the authors state the evaluation is held-out transfer. Default decoding temperature 0.6, top-p 0.95, at most 2,000 new tokens. Utility uses gold-standard answers; MATH500 at most 1,000 tokens, GPQA-Diamond at most 4,000.
  4. What experiments did the paper conduct?

    On three topologies, benign links already raise compliance; RL attack averages 76.9, and after repair averages 4.8.

    Experimental Setup

    • Systems: Three topologies, seven frozen models, see Table 5. Roles are unchanged across clean, attack, and repair.
    • Safety benchmarks: HarmBench 200, StrongREJECT 313, JailbreakBench 100, AdvBench 520, all with original queries. Metrics as in the previous question; the aggregate score is the average across the four benchmarks.
    • Utility and cost: Accuracy on MATH500 (500) and GPQA-Diamond (198); Table 1 additionally reports token counts and inference time (seconds).
    • Conditions: Clean is benign links; Poisoning (10%), Supervised, and RL attack correspond to the three attacks; repair is initialized from the corresponding attacked links. Text communication appears only in Table 1.
    • Training scale: Supervised 3,000 pairs, 1,560 steps; poisoning 212/2,116; RL attack 300 steps. The paper does not report the number of evaluation repetitions.

    Main Results

    Table 1 compares text and benign latent links. The main attack results are the average scores across the four benchmarks for each topology (Table 2, Table 3).

    Swipe horizontally to read the table

    TopologyText Avg.Clean10% PoisoningSupervisedRL
    2-Agent4.431.149.278.381.3
    Sequential3.231.755.967.053.6
    Mixture12.520.869.681.695.9

    The numbers come from Table 1, Table 2, and Table 3, respectively. Averaged across topologies: Clean 27.9; Poisoning 58.2; Supervised 75.6; RL 76.9.

    • Authors' interpretation: Benign links already raise harmful compliance while agent parameters are unchanged. Supervised attacks also harm utility: MATH500 drops from 67.2% to 30.7% across topologies, and GPQA-Diamond from 36.4% to 28.5%.
    • Poisoning: Average score from 27.9 to 58.2. MATH500 from 67.2% to 46.7%, GPQA-Diamond from 36.4% to 32.5%. 2-Agent's MATH500 drops only 1.4 percentage points (65.3→63.9), while Mixture drops 44.8 percentage points (76.8→32.0).
    • RL: On two topologies, average compliance is higher than supervised (2-Agent 81.3 vs. 78.3, Mixture 95.9 vs. 81.6), while Sequential is lower (53.6 vs. 67.0). Across topologies, MATH500 rises from 67.2% to 71.0%, and GPQA-Diamond drops from 36.4% to 33.6%. The authors state that Mixture simultaneously has the highest compliance score and improves on both utility benchmarks, so preserving benign performance does not rule out high harmful compliance on the same system.

    Text, Utility, and Refusal

    • Cost: In Table 1, latent communication reduces tokens and time across all three topologies. For example, 2-Agent goes from 729 tokens, 2.65 seconds to 511 tokens, 1.96 seconds; Mixture from 1123 tokens, 8.44 seconds to 532 tokens, 3.34 seconds.
    • Utility exceptions: Five of six utility comparisons rise; Mixture's MATH500 drops from 80.6% to 76.8%.
    • Refusal: Figure 2 targets the receiver. First-token refusal probability drops from 0.82 for receiver-only and 0.84 for text communication to 0.29 for the trained link. Forcing the first token to I, No, or Sorry lowers compliance scores from 31.1 to 9.6, 3.7, and 1.6; five-token refusal prefixes drop to 0. The authors consider this consistent with shallow safety alignment and argue that the decline in refusal initiation contributes to the rise in compliance.

    Single Links and Repair

    • Single links (supervised, Figure 4): For Sequential, optimizing only Refiner→Solver gives an average of 70.0, both together 67.0; Planner→Refiner gives 62.2. For Mixture, single expert links give 80.3 (Math→Sum.) and 78.6 (Gen.→Sum.), all links 81.6; Clean is 20.8. The authors state that a single link already provides considerable control over the response.
    • Repair (Table 4): The aggregate score across the nine attack–topology groups drops from 70.3 to 4.8, and each configuration and each of the four benchmarks is lower than the corresponding attacked system and also lower than the original clean links. On Mixture, the RL attack goes from 95.9 to 2.5 (Δ −93.4). After supervised and poisoning, MATH500 rises on all three topologies; on the three RL attack settings, repair instead lowers MATH500. The average MATH500 across the nine repaired groups is 67.4%, close to the clean links' 67.2%; GPQA-Diamond averages 33.6%, lower than the clean links' 36.4%.
    • Appendix examples: Appendix E gives qualitative responses for the three topologies under clean, the three attacks, and the corresponding repairs, to illustrate surface differences in refusal or compliance. Specific requests and responses are not paraphrased.

    Other Ablations and Analyses

    • Training paradigm (Table 7, same untrained initialization, harmful supervision): Average compliance: 2-Agent supervised 77.7, RL 79.6; Sequential 68.4, 59.6; Mixture 80.1, 88.5. The authors state that both paradigms can strongly shift behavior, but neither is consistently higher across all three topologies.
    • Benign-only training (Table 8): Average compliance for supervised vs. RL is 31.1 vs. 7.9 (2-Agent), 31.7 vs. 19.6 (Sequential), and 20.8 vs. 5.7 (Mixture). RL's MATH500 is 66.9, 68.7, and 79.0, respectively, all higher than supervised's 65.3, 59.5, and 76.8 in the same table. The authors argue that safety changes during benign link training are highly dependent on the optimization objective.
    • Poisoning rate (Appendix C.2, Figure 5): The paper states that low poisoning rates already raise compliance, with gains leveling off after roughly 10%–20%; at about 10%, the three topologies' average scores are approximately 49, 56, and 70. Higher rates continue to rise but hurt utility more. Figure 6 states that Sequential's MATH500 is lowest at moderate poisoning rates and recovers somewhat at higher rates; Mixture declines as the rate rises; 2-Agent changes little. The figure does not list all readings point by point, so unlabeled values are not written.
    • Utility reward (Appendix C.4, Figure 8): Without the utility reward, Mixture's average compliance is about 93.6, MATH500 about 44.0, and GPQA-Diamond about 34.8; with it, compliance is about 95.8, and the two are about 80.6 and 47.7. For 2-Agent, without it MATH500 is about 20.9 and GPQA about 30.7; with it, about 63.7 and 25.1. For Sequential, without it MATH500 is about 65.5 and compliance about 59.6; with it, MATH500 about 68.7 and compliance about 53.6. The authors state that the utility reward can be important for maintaining benign accuracy, but whether it raises compliance depends on the topology.
    • Benign training mechanism (Appendix C.5, Figure 7): The authors report that the receiver's first-token refusal probability declines with supervised steps, stabilizing after about 1,000 steps; MATH500 rises at the same time. At the 1,500-step checkpoint, the first-token refusal probabilities for 2-Agent, Sequential, and Mixture are about 0.29, 0.24, and 0.61, respectively. The authors argue that link training pushes the receiver toward task completion, thereby reducing refusal initiation; Mixture's higher residual refusal is consistent with the smaller compliance increase in Table 1.
  5. What are some points that can be further explored?

    The authors propose maintaining safety and utility as models, tasks, and communication mechanisms vary.

    Limitations and future directions noted by the authors

    • Broader challenge of composite systems: The Discussion states these findings highlight a broader challenge of maintaining safety alignment when agents are composed into larger systems (Section 6).
    • Behavior under varying conditions: The same section states that future work needs to examine how to maintain safe and useful behavior when participant models, tasks, and communication mechanisms change.
    • Double standard for repair: Section 6 states that repair may also reduce task performance, including in settings where utility remains high after attack; its success must be evaluated against both harmful compliance and benign task performance. The paper does not have a separate Limitations section, nor does it frame any experimental number as a method failure.

    Experimental coverage

    • System scope: Experiments cover three topologies and the seven frozen instruction models in Table 5; only links are updated. At most 80 latent states per step, heterogeneous links use the residual projection in Appendix A.1.
    • Data and protocols: Safety evaluation uses four benchmarks with 200, 313, 100, and 520 queries respectively; utility uses MATH500 with 500 problems and GPQA-Diamond with 198 problems. Attack queries come from PKU-SafeRLHF, with no exact overlap with the four benchmarks. Default decoding temperature 0.6, top-p 0.95. The paper does not report the number of evaluation repetitions.
    • Attack and repair budgets: Supervised attack 1,560 steps, target truncation 256 tokens; default poisoning about 10% (212/1,904), Appendix C.2 additionally sweeps poisoning ratios; RL and repair each 300 steps. Repair harmful queries come from AdvBench, its utility reward uses rule-based task scores, while the attack phase uses an LLM utility judge.
    • Comparisons: Table 1 includes text communication; Tables 7–8 compare supervised and RL under the same untrained initialization; Figure 4 optimizes each link separately. Single-link analysis was done only with supervised optimization.
    • Judge determination: HarmBench, AdvBench, JailbreakBench use HarmBench-Llama-2-13b-cls; StrongREJECT uses Gemma-2B with strongreject-15k-v1. The paper does not report agreement between judges and humans.
  6. Summarize the main content of the paper

    Latent links alone can change the safety of frozen-agent systems; rewards can both attack and repair.

    Learned latent communication links change whether a system of frozen, aligned agents complies with harmful requests.

    The authors study three topologies: two-agent, three-stage sequential collaboration, and two experts plus summarizer. Links map the sender's hidden states to soft tokens for the receiver, with all LLM parameters kept fixed.

    Benign links are trained only on math data. Relative to text communication with the same roles, the four-benchmark average harmful compliance across the three topologies rises from 4.4, 3.2, 12.5 to 31.1, 31.7, 20.8 (Table 1), while tokens and inference time drop. The receiver's first-token refusal probability drops from about 0.82–0.84 to 0.29 (Figure 2).

    Attacks modify only links or training data. Averaged across topologies, supervised optimization raises the compliance score from 27.9 to 75.6, but MATH500 drops from 67.2% to 30.7%; about 10% poisoning raises it to 58.2; GRPO without harmful target replies raises it to 76.9, with MATH500 rising to 71.0% on average across topologies. On Mixture, this attack reaches 95.9, with both utility benchmarks also higher than the clean links. On Sequential, the RL average score is 53.6, lower than supervised's 67.0. Optimizing only one link approaches or exceeds the supervised result of optimizing all links (Figure 4).

    After changing the reward to penalize compliance and reward benign correctness, the average score across the nine attack–topology groups drops from 70.3 to 4.8, lower than each clean link (Table 4). The authors argue that fixed agent parameters do not guarantee safe behavior, communication training is part of system alignment, and improvement on benign tasks by itself does not show that safety is preserved.

Related papers

Show 3 more papers
Read originalhuggingface.co