TRACE: A Two-Channel Robust Attribution Watermark via Complementary Embeddings for LLM-Agent Trajectories

Zheng Gao, Xiaoyu Li, Xiaoyan Feng, Jiaojiao Jiang, Yang Song, Yulei Sui, Zhenchang Xing, Liming ZhuarXiv 2026

TL;DR

TRACE is a novel two-channel watermarking scheme designed to protect the intellectual property of LLM agents against malicious resellers who have full read/write access to trajectory logs. By superposing a content-keyed action selection channel with a skeleton-keyed tally channel, TRACE achieves distortion-free agent utility while remaining robust against both log deletion and text rewriting attacks.

What Problem Does This Paper Address?

LLM agents are increasingly commercialized through resellers who license a developer's agent and relay it to end-users. However, this setup introduces a major trust deficit: a shady reseller might rebrand the agent as their own or secretly substitute a cheaper, inferior model underneath to pocket the price difference.

To prove ownership in a dispute, developers rely on watermarking the agent's trajectory log—the history of tool calls, observations, and actions. The catch? Because the reseller handles metering and billing, they have full read/write access to the very logs used as evidence. They can easily launch two types of laundering attacks:

  1. Deletion attacks: Pruning steps or dropping records to sanitize the log.
  2. Rewriting attacks: Paraphrasing observations and renaming tools to rebrand the service.

This creates a fundamental dilemma for traditional watermarks. A deletion-robust watermark needs keys derived from local content so it can re-synchronize when steps are dropped, but rewriting alters content. Conversely, a rewrite-robust watermark needs keys derived from position, but deletion shifts positions. No single watermarking key can survive both.

The reseller threat model

Methods

The authors introduce TRACE, the first agent watermark that handles this adversarial environment by splitting the signal into two complementary, independent channels superposed on the same trajectory:

1. The Selection Channel (Robust to Deletion)

This channel modulates which action the agent selects. It utilizes a distortion-free exponential race sampler keyed on the immediately preceding content. Because it matches the agent's natural action distribution perfectly, it causes zero degradation to task success. If an adversary deletes a log entry, the keying context is only disrupted locally; the detector automatically re-synchronizes at the very next decision step (a "blast radius" of one).

2. The Tally Channel (Robust to Rewriting)

This channel modulates how many records a decision group contains. TRACE pseudo-randomly appends a "context-neutral redundant record"—a harmless log line that changes no state and invokes no tools—to specific decision steps. Crucially, the decision to add this record is keyed entirely on the log's skeleton (the sequence of decision and observation tags, ignoring the text content). Because rewriting text cannot change this structural skeleton, the tally channel remains completely invariant to rewriting.

Overview of the TRACE scheme

To rigorously test rewriting robustness, the authors also introduce the LLM Rewriter, an informed, plausibility-preserving attack where an LLM swaps genuine actions for plausible alternatives while leaving the log skeleton untouched.

The LLM rewriter adaptive rewriting attack

Datasets

The authors evaluated TRACE on two prominent agent benchmarks:

  • ToolBench: Evaluates real-world API tool execution. Trajectories here are short, averaging roughly 1.4 effective decision groups per task.
  • ALFWorld: Evaluates embodied household planning in interactive text environments. Trajectories here are long, spanning 23 to 25 decision steps per task.

Experiments were conducted using GPT-5.4-mini as the principal backbone and Qwen3-4B-Instruct for local ablation testing.

Key Insights and Ideas

  • Complementary Invariants: Instead of trying to build one ultra-robust key, TRACE succeeds by decomposing the defense. One channel anchors to content (surviving deletion), while the other anchors to structure (surviving rewriting).
  • The Entropy Tax: The paper mathematically proves that a distortion-free watermark's signal is paid for in decision entropy. If an agent's decision is entirely deterministic (zero entropy), no watermark signal can be safely injected.
  • Forcing Product Corruption: The authors prove a joint-erasure theorem: to successfully silence both channels at once, a reseller is forced to alter both the skeleton and a constant fraction of the content. In short, laundering the log requires the reseller to severely corrupt the very product they are trying to sell.

Key Results

  • Zero Utility Cost: TRACE tracks the unwatermarked agent's success rate within seed noise across all benchmarks. In contrast, standard biased watermarks (like Red-Green baselines) penalized success rates by up to 8.1 points on ALFWorld.
  • Uncompromising Rewrite Invariance: Under a 100% strength LLM Rewriting attack, baseline watermarks completely collapsed (True Positive Rates dropped to 0%). TRACE's tally channel remained exactly unchanged ($z = 14.34$ with zero variance), maintaining a 1.000 TPR.
  • Graceful Deletion Decay: The selection channel easily cleared detection thresholds even when 70% of the observation steps were deleted by the adversary.
  • Evidence Efficiency: On long-horizon tasks (ALFWorld), a single trajectory provides enough signal for confident attribution. On short-horizon tasks (ToolBench), pooling just 10 trajectories achieves a 100% detection rate at a strict 1% False Positive Rate.

Limitations and Future Work

  • Audit Requirements: To verify the selection channel, the auditor must have access to the environment's candidate action sets at the time of the audit.
  • Log Volume Overhead: The tally channel adds an overhead of 11 to 12 redundant log lines per task in ALFWorld. While these don't cost API calls or hurt task performance, they do increase log storage sizes.
  • Low-Entropy Constraints: For highly deterministic agents, TRACE requires pooling more trajectories together to achieve statistical significance.
  • Substitution Blindspot: If a reseller completely discards the developer's agent and runs a different model from scratch, TRACE will correctly flag that the trajectory is unwatermarked, but it cannot identify which model the reseller substituted.

Summary updated

BibTeX
@misc{gao2026trace,
  author = {Zheng Gao and Xiaoyu Li and Xiaoyan Feng and Jiaojiao Jiang and Yang Song and Yulei Sui and Zhenchang Xing and Liming Zhu},
  title = {{TRACE: A Two-Channel Robust Attribution Watermark via Complementary Embeddings for LLM-Agent Trajectories}},
  year = {2026},
  eprint = {2607.08400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08400},
}
Figure