Skip to content

DecoTrace: Reducing Topological Traces in LLM Multi-Agent SystemsDecoTrace: Reducing Topology Traces in LLM Multi-Agent Systems

Junhui Chen, Yu Zhang, Lantian Li, Dong Wang
School of Artificial Intelligence, Beijing University of Posts and Telecommunications; Center for Speech and Language Technologies, BNRist, Tsinghua University
arXiv: 其他 AI 安全论文arXiv:2612.01744Originally published Indexed by this site · 17 hr agoDefenses

Quick read

Defenses

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

The authors propose the training-free protocol DecoTrace, which reduces multi-agent topology leakage through anonymous state merging and out-of-order release; CIA's AUC drops by 11.8–31.4 percentage points.

Threat modelThe defense targets fixed single-round DAGs and a trusted runtime. The attacker knows the protocol and the number of workers but not the adjacency matrix, trusted routing metadata, or the private release permutation; the attacker observes public responses or the model-visible context of a compromised worker and cannot access runtime internals. Traffic metadata and runtime compromise are excluded.

Questions
Normal communication in multi-agent systems exposes source, path, and execution order, enabling attackers to infer the communication topology. The authors treat topology as a system design asset and aim to reduce these cues without changing the collaboration graph.
Methods
DecoTrace has each worker generate local work, successor state, and a final contribution in a single call; at runtime it anonymously merges and replaces propagation states, removes sender boundaries, and then randomly permutes the contributions before handing them to Decision.
Experiments and results
The authors evaluate CIA and WebWeaver on four benchmarks, multiple models, and topologies. The authors report CIA AUC drops of 11.8–31.4 percentage points, WebWeaver local source F1 drops of 10.3–51.0 percentage points, and task performance generally maintained.
Limitations and future work
The authors note that the evaluation is limited to fixed single-round DAGs and a trusted runtime, and does not cover attackers trained against the protected inputs. CIA compares different observation channels; WebWeaver uses frozen predictors and whole-package single-source decoding. Token overhead varies with task and adapter.
Experimental setupDeepSeek-V4-Flash、GPT-5.6-Luna et al. · GSM8K、MMLU et al. · directed-edge AUC、ACC et al.
AI summaryResearchers propose DecoTrace, a training-free protocol that, without modifying the multi-agent collaboration graph, weakens provenance, path, and order information in execution traces, reducing the risk of inferring the hidden communication topology from the system's public replies. The method has each worker produce, in a single model call, role-specific local work, successor state, and final contribution; incoming states are merged without sender labels, states are passed by replacement rather than appending, and the presentation order of final contributions is randomly shuffled. Evaluated across models and topologies on MMLU, GSM8K, SVAMP, and HumanEval: against the CIA attack, inference AUC drops by 11.8–31.4 percentage points; against WebWeaver, which observes messages received by a compromised worker, local provenance recovery F1 drops by 10.3–51.0 percentage points and global graph recovery F1 drops by 2.2–17.9 percentage points; a task-adapted variant maintains distributed question-answering performance on HotpotQA.

Researchers propose DecoTrace, a training-free protocol that, without modifying the multi-agent collaboration graph, weakens provenance, path, and order information in execution traces, reducing the risk of inferring the hidden communication topology from the system's public replies. The method has each worker produce, in a single model call, role-specific local work, successor state, and final contribution; incoming states are merged without sender labels, states are passed by replacement rather than appending, and the presentation order of final contributions is randomly shuffled. Evaluated across models and topologies on MMLU, GSM8K, SVAMP, and HumanEval: against the CIA attack, inference AUC drops by 11.8–31.4 percentage points; against WebWeaver, which observes messages received by a compromised worker, local provenance recovery F1 drops by 10.3–51.0 percentage points and global graph recovery F1 drops by 2.2–17.9 percentage points; a task-adapted variant maintains distributed question-answering performance on HotpotQA.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Reduce the source, path, and order cues exposed by normal communication without changing the multi-agent collaboration graph.

    The core problem is: execution traces of LLM multi-agent systems leak the hidden communication topology, and hiding only the adjacency matrix does not prevent inference during execution.

    • Problem setting and importance: Workers collaborate through intermediate results, and the communication graph encodes task decomposition and routing decisions. The authors consider it to embody system design investment and to be a valuable system asset; CIA, WebWeaver, and MASLeak have already inferred structure from public responses, compromised workers, or public interfaces.
    • Gaps in existing defenses: The authors classify topology evidence into three types—source, path, and order—arising respectively from sender characteristics and message boundaries, cumulative history, and execution-related release positions. Existing agent security research mainly addresses malicious content, compromised components, and adversarial propagation, while structural cues in legitimate messages still need to be controlled.
    • Core observation and hypothesis: It is possible to change the representation, propagation, and release of intermediate information while preserving worker dependencies. It is necessary to distinguish task information needed for downstream collaboration from cues that can be used to locate sources, reconstruct paths, or recover order.
    • Proposed approach: The authors propose a training-free protocol, DecoTrace, which splits worker output into local work, successor state, and contributions, adopts anonymous non-cumulative state propagation and out-of-order contribution release, and is evaluated with CIA, WebWeaver, and task benchmarks.
    • Threat model:
      • Attacker goal: Recover communication edges, direct senders, and the full graph from public system responses or the visible context of a compromised worker.
      • Knowledge and capabilities: Knows the protocol and the number of workers, but not the adjacency matrix, trusted routing metadata, or the private release permutation; cannot access trusted runtime internals.
      • Victim system and boundaries: Fixed single-round DAG; assumes a trusted runtime, excludes traffic metadata such as transmission timing, packet size, and retry telemetry, while text length and content remain visible.
  2. What related research exists?

    Related work spans topology design, topology inference, and communication representation; this paper focuses on the information exposed when a given graph is executed.

    Communication topology design

    • Multi-agent collaboration frameworks: CAMEL, MetaGPT, ChatDev, AutoGen, AgentVerse, and others support role collaboration and intermediate result exchange; work on debate, consensus, theory-of-mind, and social information protocols studies how interaction modes affect collective reasoning.
    • Workflows and graph search: GPTSwarm, G-Designer, AFlow, AGP, ARG-Designer, and others select or optimize communication dependencies; MultiAgentBench and others compare star, chain, tree, and general graph coordination. The authors treat topology as a determinant of performance, cost, and information flow, but study the exposure when a given graph is executed.

    Topology inference and agent security

    • Graph structure attacks: GraphMI, LinkTeller, and He et al. (2021) study recovering private edges from graph neural network behavior; CIA, WebWeaver, and MASLeak extend structure inference to LLM multi-agent systems.
    • Execution integrity and security: InjecAgent, AgentDojo, AgentPoison, BadAgent, ASB, and others study prompt injection, unsafe tools, memory or knowledge base poisoning, backdoors, and adversarial propagation; Cut the Crap and G-Safeguard involve message pruning and topology-guided repair. The authors distinguish these threats from structural leakage caused by legitimate communication.

    Communication representation

    • Learning and set aggregation: Sukhbaatar et al. (2016), Foerster et al. (2016), TarMAC, and Singh et al. (2019) study communication content, objects, and timing; Deep Sets, Set Transformer, and Janossy pooling study permutation-invariant aggregation.
    • LLM message representation: Chen et al. (2024c) explore structured message formats as an alternative to natural language. DecoTrace uses deterministic text merging and does not introduce learned semantic aggregation.

    Attack baselines and evaluation environments: Directly reuses CIA and WebWeaver; task data are GSM8K, MMLU, HumanEval, and SVAMP, with an additional HotpotQA utility study, and graph environments include G-Designer, AGP, ARG-Designer, and fixed star.

    The authors position this paper as a complement to topology selection methods: rather than modifying the graph, it controls communication content, source boundaries, and release order.

  3. How does the paper address this problem?

    DecoTrace splits a single worker call into three types of output and separately controls state propagation and contribution release.

    DecoTrace preserves the original worker graph and Decision edges, and only splits task information, anonymously merges states, and shuffles contribution order at the communication interface; no training or additional semantic model stage is required.

    System and attack setting

    • The system is written as S=(P,G), where P is the worker profiles and G is a directed acyclic worker graph; in single-round execution, a worker generates its response after its direct predecessors finish.
    • The protocol may change input payloads, boundaries, source packaging, and order, but must keep the worker set, communication edges, and Decision edges unchanged. In the main experiments, every worker has a native Decision edge.
    • Public black-box observation uses the final response; a compromised worker observes its profile, visible inputs, and outputs. The supplementary CIA setting directly provides anonymous, independently shuffled contributions, which the authors explicitly state goes beyond the public interface and does not constitute an information upper bound.

    Single call and output partitioning

    • Each worker generates (Wi,Si,Ci) in a single call: Wi is the role-native work kept locally, Si is the successor state propagated along the original edges, and Ci is a one-sentence contribution for Decision.
    • Si carries the facts, intermediate results, constraints, corrections, and open questions needed for subsequent computation; Ci omits detailed derivations and full deliverables. The runtime parses the three-part output, and on failure retries with a bound according to the experimental rules and fails closed.
    • For exact objects such as code, a deterministic adapter extracts the complete object from Wi and places it into Si as an atomic block; a new complete object replaces the inherited block, otherwise the existing valid block is kept. Appendix A gives the full output contract.

    Anonymous, non-cumulative state propagation

    • Multi-predecessor states are normalized with Unicode NFKC, newlines, and trailing whitespace, and split on blank lines; exact object blocks are kept intact. Blocks with identical normalized bytes across predecessors are removed, then sorted by SHA-256 digest and concatenated.
    • The merge does not preserve sender packaging, predecessor slots, or arrival order, nor does it rewrite text, resolve semantic conflicts, or guarantee removal of stylistic cues; conflicting task claims are left as unlabeled content for successors to handle.
    • Propagation uses replacement rather than appending: the runtime forwards the newly parsed Si without attaching the entry package or local work, so no cumulative transcript or path-history fields are maintained.

    Release decoupled from execution order

    • Ci is not propagated among workers but buffered until all workers finish; the runtime samples uniformly from all permutations, and the permutation is independent of the graph, content, and completion order.
    • Non-terminal Decision edges carry Ci, and terminal edges carry Si and Ci; terminal states are first anonymously merged, then handed to the original Decision together with contributions arranged in the sampled order. Each payload still uses an existing edge.
    • The authors note that random release only removes the direct link between list position and completion order; contribution semantics may still retain some order cues.

    Attack adaptation and task evaluation

    • CIA uses five attack trials per question, teacher top-3, 50 epochs, and an edge threshold of 0.5; native execution allows up to ten generation attempts to obtain five valid representations. Recovery metrics are computed only on same-question units where both conditions are scorable.
    • WebWeaver freezes the sender predictor, graph prior, and completion model; the protected inbox is decoded as a whole, without providing the given predecessor count or source labels. DDPM uses 100 diffusion steps, 100 epochs, 16 completion samples, and an edge threshold of 0.5.
    • Task utility uses each dataset's native evaluator; HotpotQA additionally uses a task adapter that anonymously concatenates states and provides the terminal state and all contributions to Decision, so it is not an isolated evaluation of the original protocol's state channel.
  4. What experiments did the paper conduct?

    Topology recovery decreases under both attacks, but observation channel, coverage, and adapted decoding limit the scope of the conclusions.

    Experimental Setup

    • Models tested: CIA uses DeepSeek-V4-Flash and GPT-5.6-Luna; WebWeaver additionally tests Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and GLM-4-9B-Chat, and also includes DeepSeek-V4-Flash.
    • Data and scale: Each main attack configuration takes 100 distinct questions from GSM8K, MMLU, HumanEval, or SVAMP; HotpotQA is also 100 questions, containing 80 bridge and 20 comparison. Component ablations use a fixed 20-question panel.
    • Topologies: CIA tests G-Designer, AGP, and ARG-Designer; WebWeaver tests G-Designer, AGP, and fixed star. ARG-Designer is not used for WebWeaver because it lacks the stable sender label space needed to fit the predictor.
    • Metrics and determination: CIA reports directed-edge AUC, ACC, and F1; WebWeaver reports full-graph P/R/F1/MRR and local-source P/R/F1. Task utility uses native evaluators, with answer-token F1 for HotpotQA; the paper does not use an LLM judge to determine task answers.
    • Pairing and aggregation: CIA aggregates over question–topology units that both sides can score; unscorable units remain in the coverage denominator but are not assigned an attack score; WebWeaver first averages per question, then macro-averages over the 12 topology–dataset configurations.
    • Repetitions and predictors: CIA runs five trials per question; WebWeaver's G-Designer and AGP sender predictors are each fit per dataset using 20 disjoint shadow questions, and star reuses the G-Designer predictor.

    Main Results

    According to Table 1 and Table 2; values are aggregated over questions commonly scorable across the four datasets or over the 12 configurations, Native→DecoTrace.

    Swipe horizontally to read the table

    Attack/ModelConditionAUCFull-graph F1Local-source F1
    CIA / DeepSeek-V4-FlashG-Designer0.870→0.624Not reportedNot reported
    CIA / DeepSeek-V4-FlashAGP0.795→0.655Not reportedNot reported
    CIA / DeepSeek-V4-FlashARG-Designer0.848→0.665Not reportedNot reported
    CIA / GPT-5.6-LunaG-Designer0.878→0.601Not reportedNot reported
    CIA / GPT-5.6-LunaAGP0.784→0.622Not reportedNot reported
    CIA / GPT-5.6-LunaARG-Designer0.840→0.635Not reportedNot reported
    WebWeaver / four models row by row12-configuration macro-averageNot reportedSee row belowSee row below
    • WebWeaver full table: DeepSeek full-graph F1 is 0.623→0.537 and local F1 is 0.738→0.400; Qwen is 0.642→0.550 and 0.836→0.410; Llama is 0.636→0.545 and 0.815→0.419; GLM is 0.643→0.556 and 0.839→0.428 (Table 2).
    • Authors' interpretation: CIA's AUC and F1 decrease in all 24 configurations, and both types of WebWeaver F1 decrease in all 48 configurations; local-source F1 overall drops from 0.807 to 0.414. The authors consider the smaller full-graph decrease consistent with structural priors also participating in reconstruction.
    • Observation-condition exception: CIA compares native public extraction with direct exposure of protected contributions, which are not the same observation channel; commonly scorable units cover 69.0% for DeepSeek and 77.9% for Luna (Appendix B.2).

    Task Utility and HotpotQA

    • Four-benchmark accuracy: In Table 10, DeepSeek is 0.958→0.940, Luna is 0.927→0.913, Qwen is 0.842→0.845, Llama is 0.750→0.764, and GLM is 0.773→0.793; Luna uses the CIA panel and counts failures as errors, while the others use the WebWeaver panel.
    • Range of change and exceptions: The authors report that average accuracy rises for three of the four WebWeaver models, with changes from −1.8 to +2.1 percentage points; DeepSeek's Star–HumanEval drops by seven percentage points. Figure 3 can only be confirmed from the text to show macro-averages by model and benchmark; the specific point values are not legible.
    • HotpotQA: Table 5's macro F1 is DeepSeek 0.610→0.658 and Luna 0.579→0.610; five of the six model–workflow settings improve, with the exception being Luna aggregation tree at 0.619→0.614. This result pertains to the task-adapted workflow.

    Components, Reranking, and Prior Audit

    • CIA component ablation: On the fixed 20 questions, restoring the true execution order brings DeepSeek/Luna AUC to 0.865/0.853, an increase of 0.242/0.257 relative to the full protocol; restoring cumulative state gives 0.638/0.624, an increase of only 0.015/0.028 (Table 3). The authors therefore consider order the stronger cue in these ablations.
    • Semantic reranking: After MiniLM reranking, AUC is 0.668/0.627, and after LLM reranking it is 0.693/0.687, both below the true-order oracle's 0.865/0.853 (Table 12). The proportions of exact execution-permutation recovery by the LLM are 2.5% and 1.6%, respectively.
    • Prior-only: On the auxiliary 20 questions and 48 configurations, full-graph F1 is 0.641 for native messages, 0.548 for the DecoTrace package, and 0.409 for graph prior only (Table 8). The authors state that structural knowledge can recover part of the graph without execution messages, but both message conditions still provide additional information.

    Other Ablations and Analyses

    • WebWeaver de-anonymized merging: Llama local F1 0.415→0.491, Qwen 0.416→0.489, task accuracy unchanged (Table 9).
    • Removing state abstraction: Llama local F1 rises to 0.520, Qwen drops to 0.400; utility decreases for both (Table 9).
    • Removing Decision contributions: Accuracy is unchanged for three of the five models, Llama drops 1.4 percentage points, and GLM rises 0.4 percentage points (Table 11).
    • Token overhead: In 400 paired AGP trials, prompt tokens increase by 11.3%, completion tokens decrease by 17.8%, and total tokens increase by 6.6% (Appendix B.3).
    • HotpotQA tokens: The total for paired scorable workflow units is 1.84 times native (DeepSeek) and 1.88 times native (Luna).
  5. What are some points that can be further explored?

    The authors explicitly limit the scope to fixed single-round DAGs, a trusted runtime, and current attack adaptations, and list the attack surfaces not evaluated.

    Limitations and future directions noted by the authors

    • System scope: Evaluation covers fixed, single-round DAGs and assumes a trusted runtime; dynamic graphs remain outside the evaluation scope (Limitations).
    • CIA comparison condition: Recovery scores are conditioned on jointly scorable representations and compare native public extraction with protected contribution exposure; the authors also state that this setting does not provide a formal information upper bound (Limitations, Section 3.2).
    • WebWeaver adaptation: Uses a frozen sender predictor and a decoder adapted to fused states; attackers trained on protected inputs or performing joint sender-set recovery may recover more structure (Limitations).
    • Whole-package decoding constraint: The implementation treats each non-empty merged inbox as one visible unit, and the selected set is a singleton; attackers that split visible text or specifically train multi-source recovery are outside the evaluation setting (Appendix B.2).
    • Other attack surfaces: Repeated-query side information, joint semantic attacks, traffic metadata, and runtime compromise are all outside the evaluation scope (Limitations).
    • Residual cues: The authors note that semantic and stylistic cues may remain, and contribution semantics may also expose part of the order; these are cues not eliminated by the current mechanism (Sections 4.3, 4.4).

    Experimental coverage

    • Models and tasks: The main experiments cover five models in total; CIA covers two of them, WebWeaver covers four, and DeepSeek enters both evaluations (Section 5.2).
    • Configuration scale: Each main configuration has 100 questions; CIA aggregates 24 model–topology–dataset configurations, WebWeaver aggregates 48, and the component and prior audits use a fixed 20-question panel.
    • Attack implementation: WebWeaver's predictor, graph prior, and completion model are frozen across conditions; the sender predictor is fitted on 20 shadow questions disjoint from the target panel (Section 5.1, Appendix B.6).
    • Utility and cost: HotpotQA uses a dedicated adapter and cannot isolate the effects retained by the original protocol's state channel; token data come from 400 paired AGP trials and paired scorable HotpotQA units, respectively (Sections 5.3, Appendix B.3/B.7).
    • Statistical reporting: The authors describe the results as descriptive summaries over fixed panels; the paper does not report statistical significance tests or confidence intervals (Section 5.3, Appendix B.6).
  6. Summarize the main content of the paper

    DecoTrace reduces topology recovery through communication interface control while preserving the original graph, and reports task utility and token cost.

    DecoTrace is a training-free communication defense for LLM multi-agent systems, focusing on topology information exposed by legitimate execution messages rather than on tampering with graph structure.

    • Problem to solve: Public responses or the context of a compromised worker may leak the sender, propagation path, and execution order. The authors treat the communication graph as a system asset, with the goal of weakening these cues while preserving collaboration dependencies and task information.
    • Method highlights: A worker generates local work, successor state, and a brief contribution in a single call; at runtime, predecessor states are merged anonymously and deterministically in a permutation-invariant way, replacing the old package with the new state without appending history, and contributions are randomly permuted after all workers finish. Exact task objects are preserved by a deterministic adapter.
    • CIA results: Across two models, three topology types, and four benchmarks, the authors report AUC drops of 11.8–31.4 percentage points; this comparison directly provides anonymous contributions to the protected condition and assigns attack scores only to jointly scorable units.
    • WebWeaver results: Local source F1 across four models drops overall from 0.807 to 0.414; per-configuration drops are 10.3–51.0 percentage points, and full-graph F1 drops are 2.2–17.9 percentage points. Evaluation uses a frozen predictor and whole-package single-source decoding.
    • Utility and cost: In Table 10, average accuracy rises for three WebWeaver models and falls for DeepSeek; five of six settings in the HotpotQA adaptation study show higher answer F1. Total tokens in the paired AGP trials increase by 6.6%, and HotpotQA uses 1.84/1.88 times the native usage.
    • Authors' conclusion: The authors consider communication content and release order to be actionable control points for topology protection; they also explicitly limit the conclusion to fixed single-round DAGs, trusted runtimes, and the current attack adaptations, and note that semantic reordering and graph priors can still recover part of the structure.

Research lineage

3 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Read originalarxiv.org