← Latest papers
🤖 machine learning

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

This paper introduces TRACE, a novel two-channel robust attribution watermark for LLM-agent trajectories that ensures distortion-free action choices and unbreakable provenance tracking by superposing a content-keyed selection channel and a position-keyed tally channel, thereby surviving adversarial deletion and rewriting attempts by resellers.

Original authors: Zheng Gao, Xiaoyu Li, Xiaoyan Feng, Jiaojiao Jiang, Yang Song, Yulei Sui, Zhenchang Xing, Liming Zhu

Published 2026-07-10
📖 6 min read🧠 Deep dive

Original authors: Zheng Gao, Xiaoyu Li, Xiaoyan Feng, Jiaojiao Jiang, Yang Song, Yulei Sui, Zhenchang Xing, Liming Zhu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you've built a super-smart robot assistant that can book flights, order pizza, and fix your Wi-Fi. You sell this robot to a middleman (a "reseller") who then rents it out to customers. The problem? The middleman might try to sneak in a cheaper robot, claim they built it themselves, or just mess with the logs to hide their tracks.

Usually, to prove who made a robot's decisions, we look at its "diary"—a log of every tool it used and every action it took. But if the middleman owns the diary, they can erase the pages or rewrite the story to make it look like they did the work. Existing watermarks are like invisible ink written on the diary pages; if the middleman rewrites the text, the ink vanishes.

Enter TRACE, a new kind of digital fingerprint designed to survive even when the diary owner tries to scrub it clean. TRACE doesn't just write on the pages; it changes the story in two clever, invisible ways that are impossible to undo without destroying the diary itself.

The Two-Channel Magic Trick

TRACE uses two different "channels" to hide its proof, like a spy using two different codes that protect each other.

1. The "Choice" Channel (The Invisible Hand)
Imagine the robot has to pick a door to walk through. There are five doors, but only one leads to the treasure. A normal robot picks a door based on its own logic. TRACE's "Choice" channel acts like a magical, invisible hand that gently nudges the robot to pick a specific door without changing its odds of success.

  • How it works: It uses a secret key based on the story so far (the content) to decide which door to pick.
  • The Superpower: If the middleman deletes a page from the diary (a "deletion attack"), the story jumps, but the invisible hand just recalibrates for the next page. It's like a GPS that re-routes instantly if you miss a turn. The proof survives because it's tied to the content of the choices, not the page number.
  • The Catch: If the middleman rewrites the story (changing "Door A" to "The Blue Door"), this channel breaks. The invisible hand was looking for "Door A," and now it's confused.

2. The "Count" Channel (The Skeleton Key)
Now, imagine the robot's diary is organized into groups: one decision, followed by a few observations. TRACE's "Count" channel doesn't care about the words; it cares about the structure. It secretly adds a "ghost record" (a redundant note) to some groups, making them have two notes instead of one.

  • How it works: It uses a secret key based on the position of the group (the skeleton of the diary). It decides: "Group 1 gets a ghost note, Group 2 doesn't."
  • The Superpower: If the middleman rewrites the text (changing "Door A" to "The Blue Door"), the number of notes in the group stays the same. The structure is untouched. This channel is unbreakable against rewriting because the middleman can't change the number of notes without breaking the diary's format.
  • The Catch: If the middleman deletes pages, the counts change, and this channel gets confused.

The "Double-Blind" Defense

Here is the genius part: The middleman can't win.

  • If they try to delete pages to hide the "Choice" channel, the "Count" channel (which relies on structure) stays perfect.
  • If they try to rewrite the text to hide the "Count" channel, the "Choice" channel (which relies on content) stays perfect.
  • To erase both, the middleman would have to delete 70% of the diary and rewrite almost everything else. But if they do that, the diary is so broken it's useless. They've destroyed the product they were trying to sell!

What the Numbers Say

The researchers tested this on two real-world robot challenges: ToolBench (short tasks, about 1.4 decision steps per task) and ALFWorld (long tasks, about 23 to 25 decision steps).

  • No Damage to the Robot: TRACE is "distortion-free." The robot succeeds at its tasks just as often as a robot without the watermark. In fact, on ALFWorld, the unwatermarked robot succeeded 82.4% of the time, and TRACE succeeded 83.6% of the time. Other watermarks that tried to force choices actually dropped success rates by 8.1 points!
  • The Detection Score: On long tasks (ALFWorld), the "Choice" channel reached a detection score of z = 100. That is an incredibly strong signal. Even if the middleman deleted 70% of the steps, the score stayed above the detection line.
  • The Rewrite Test: When a super-smart AI (the "LLM rewriter") tried to rewrite the diary to hide the watermark, the "Count" channel stayed exactly the same. Its score didn't budge. Meanwhile, the old watermarks (like the "Red-Green" method) dropped to near zero.
  • The Cost of Cheating: To silence both channels at once, the attacker would have to corrupt a constant fraction of the actions. The paper proves mathematically that you can't just "edit" your way out of this; you have to break the service.

What TRACE Rules Out

The paper is very clear about what this doesn't do:

  • It is not a magic shield against a middleman who simply swaps the robot for a completely different model. If they stop using your robot entirely, there's no watermark to find.
  • It is not a fix for short tasks if you only have one example. On ToolBench (short tasks), you need to pool about 10 trajectories together to get a strong signal because there isn't enough "decision entropy" (randomness) in a single short task.
  • It does not rely on the middleman being honest. The system is designed specifically for the scenario where the person holding the evidence is the enemy.

The Bottom Line

TRACE is the first system that can prove a robot's actions belong to its creator, even if the person selling the robot has full access to the logs and tries to delete or rewrite them. It works by splitting the proof into two parts: one that survives deletions and one that survives rewrites. The math shows that to defeat it, an attacker would have to destroy the very service they are trying to sell. It's a robust, distortion-free way to keep the truth in the diary, no matter who holds the pen.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →