Sequential Behavioral Watermarking for LLM Agents

summary

Video file (mp4)

The gist

The gist The SeqWM framework proposes a sequential behavioral watermarking system that embeds signals into history-conditioned transition patterns and verifies trajectories position-agnostically

In short

SeqWM is a behavioral watermarking system for LLM agents that embeds signals into how agents transition between actions, not just individual tokens. It uses history-conditioned encoding and sliding-window detection to verify trajectories position-agnostically. This makes the detection robust against trajectory corruption like deletions, ensuring reliable provenance tracking while keeping agent utility high.

Key concepts

History-Conditioned Multi-Channel Encoding
This method embeds the watermark signal into the probability distribution of an agent's next action, conditioned on a recent history window. Instead of altering the overall likelihood of an action occurring, it modifies how likely that specific action is given what happened immediately before. This makes the watermark resilient because adversaries matching only general action frequencies cannot remove it without also breaking these specific transition patterns.
Sliding-Window Detection
The detector examines every small segment (substring) of the observed agent sequence, checking if the next step matches what the encoder would have produced at that point. This approach ignores absolute step numbers and looks for local behavioral consistency across all possible starting positions. This makes it robust against deletions because even if a part is missing, other overlapping segments provide enough evidence to maintain detection.
Random-Key Calibration
This component creates a reliable baseline by testing the observed sequence against many incorrect, random keys. By seeing how often the sequence scores high under wrong keys versus correct ones, the system builds an empirical null distribution. This allows for a statistically sound decision on whether the observed behavior is truly watermarked or just random noise.

Terminology used across episodes

This episode discusses

The paper

Sequential Behavioral Watermarking for LLM Agents · Read on arXiv

Hyeseon An, Shinwoo Park, Dongsu Kim, Yo-Sub Han

Yonsei University

LLM-based agents act through sequences of executable decisions, but their trajectories provide little evidence of which agent or policy produced them, making provenance, ownership, and unauthorized reuse difficult to establish from observed behavior alone. This motivates watermarking signals embedded directly into agent behavior rather than only into generated text, since text watermarking cannot capture the action-level decisions that define agent execution. Recent agent watermarking methods address this gap by moving the watermark from generated text to behavioral choices. However, by treating each action step as an independent trial, they overlook trajectory structure and become fragile when trajectories are perturbed, truncated, or observed without reliable alignment. We propose SeqWM, a sequential behavioral watermarking framework that embeds signals into history-conditioned transition patterns and verifies trajectories position-agnostically against random-key baselines. Experiments across diverse agent benchmarks and LLM backbones show that SeqWM consistently achieves reliable detection while preserving agent utility, and remains robust under trajectory corruption where round-indexed behavioral watermarks collapse.

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: I'm Nadia.

Elias: And I'm Elias, here with Priya.

Nadia: We're looking at the paper: "Sequential Behavioral Watermarking for LLM Agents".

Elias: The gist The SeqWM framework proposes a sequential behavioral watermarking system that embeds signals into history-conditioned transition patterns and verifies trajectories position-agnostically against random-key baselines,

Nadia: First, who's behind it and why it matters.

Title and authors: Nadia: So, this paper, "Sequential Behavioral Watermarking for LLM Agents," it’s tackling the problem that when an AI agent makes decisions—a sequence of actions—we have no good way to prove which agent or policy actually made those choices. It’s about tracking provenance in behavior rather than just looking at the text it spits out.

Elias: Exactly. The core idea here is moving the watermark from the generated text itself to the actual behavioral choices, because token-level watermarking gets diluted before it even affects which action gets taken, according to page two of this paper > Why token-level watermarking does not transfer <ref:2605.11036#pg3>.

Nadia: Right. And they say that treating every action step as a totally independent trial misses the structure of the trajectory itself, making those methods fragile when you actually mess with the path, like deleting some steps or just observing it without perfect alignment.

Priya: I'm thinking about what this means for data integrity. If you delete a part of an agent's execution history, we need to know if the detection still holds up, and this paper seems to be addressing that by making the signal dependent on local transitions.

Elias: That’s the key. They propose SeqWM as a sequential behavioral watermarking framework that embeds signals into history-conditioned transition patterns, meaning the watermark is carried by how one action follows another, not just the action itself > Sequential Behavioral Watermarking for LLM Agents Hyeseon An, Shinwoo Park, Dongsu Kim, and Yo-Sub Han*, Department of Computer Science Yonsei University Seoul, South Korea hsan, pshkhh, 123mki, emmous @yonsei <ref:2605.11036#pg1,Sequential Behavioral Watermarking for LLM Agents Hyeseon An, Shinwoo Park, Dongsu Kim>.ac.kr Abstract LLM-based agents act through sequences of executable decisions, but their trajectories provide little evidence of which agent or policy produced them, making provenance, ownership and unauthorized reuse difficult to establish from observed behavior alone. This motivates watermarking signals embedded directly into agent behavior rather than only into generated text, since text watermarking cannot capture the action-level decisions that define agent execution. Recent agent watermarking methods address this gap by moving the watermark from generated text to behavioral choices. However, by treating each action step as an independent trial, they overlook trajectory structure and become fragile when trajectories are perturbed, truncated, or observed without reliable alignment. We propose SeqWM, a sequential behavioral watermarking framework that embeds signals into history-conditioned transition patterns and verifies trajectories position-agnostically against random

Nadia: The actual mechanism they use is history conditioning. They condition the guided subset on a window of recent actions—a window of size w —so the embedding depends on what happened right before, not just some absolute round index. That should make it much more robust to local changes.

Title and authors: Elias: Right, and they introduce multi-channel redundancy by appending a channel index to that seed, which makes the distribution calculation based on a sum score of these channels > B(j)g,t = GK ct j for j = one <ref:2605.11036#pg3>..., m P wm t(b) = one/Zt Pt(b) exp γ · st(b)/m <ref:2605.11036#pg3>. That’s how they build that redundancy into the model's probability distribution.

Priya: From a measurement standpoint, I’m interested in how this structure handles the noise. They are using an exponential tilt based on a sum score st(b) calculated across all those channels, which seems like it gathers evidence from multiple perspectives simultaneously > P wm t(b) = one/Zt Pt(b) exp γ · st(b)/m <ref:2605.11036#pg3>. Does this multi-channel approach really provide more reliable detection than just one channel?

Nadia: It does. And the second part of their framework is the sliding-window detector, which is smart because it ignores absolute step indices entirely > S(K,:T′) by examining every length-(w + one) substring of the observed sequence and checking if the next action matches the guided subset that the encoder would have used at some step where that window appeared <ref:2605.11036#pg3>.

Elias: That sliding window approach is interesting because it exploits an asymmetry between how they encode and how they decode, meaning even though you treat every substring as independent evidence, they aggregate them without following the exact chain of events > S(K,:T′) by examining every length-(w + one) substring of the observed sequence and checking if the next action matches the guided subset that the encoder would have used at some step where that window appeared <ref:2605.11036#pg3>.

Priya: So, if you delete some actions, this detector isn't just looking at one long sequence; it’s looking at many local snippets simultaneously, which should make it resilient to those local deletions we talked about earlier.

Nadia: It really does. And they back up the whole thing with random-key calibration, where they build an empirical null distribution by testing the score under multiple wrong keys K r that aren't the actual key > Kr not equal to K This allows them to get a statistical p-value, p = one + sum over r of (Sr >= Strue) / (M + one), to declare if the sequence is watermarked <ref:2605.11036#pg3>.

Elias: That random-key calibration step is crucial because it avoids relying on a closed-form null distribution, which can be tricky to prove when you’re dealing with these kinds of complex behavioral patterns > p = one + sum over r of (Sr >= Strue) / (M + one) <ref:2605.11036#pg3>. It makes the test distribution-free, which is good for robustness.

Title and authors: Priya: So what does this mean for the practical application? If we're looking at commercial agent platforms, how does this move us beyond just checking if a specific final action stream is present?

Nadia: Well, the paper’s results show that SeqWM consistently achieves reliable detection while preserving agent utility across diverse benchmarks and LLM backbones > Experiments across diverse agent benchmarks and LLM backbones show that SeqWM consistently achieves reliable detection while preserving agent utility Table two shows that SeqWM is the only method that reliably rejects the null across all settings, with high p-values for unwatermarked sequences <ref:2605.11036#pg3>.

Elias: And a key finding they highlight is that strong sequence-level detection emerges even when the per-step hit rates are only moderately elevated > A notable pattern is that strong sequence-level detection emerges even when the per-step hit rates are only moderately elevated, indicating that sequential dependence itself can serve as a robust substrate for behavioral watermarking.

Priya: So what’s the final word on this paper? What does it really change for us who are dealing with agent security and provenance?

Nadia: It means we no longer have to worry about fragile round alignment, which was a big problem before, and now we can treat trajectory corruption as a local source of evidence loss rather than a global detector failure > This design makes trajectory corruption a local source of evidence loss rather than a global detector failure.

Elias: And because the history-conditioned seeding localizes the effect of deletion, combined with that multi-channel redundancy, it preserves enough contextual transition information even when parts of the sequence are gone. It suggests sequential structure is a powerful carrier for provenance signals > SeqWM remains robust under moderate deletion across all three domains, suggesting that history-conditioned seeding localizes the effect of deletion, while multi-channel redundancy preserves enough evidence from the surviving contextual transitions.

Priya: I just see it as a significant step in making behavioral watermarking practical for agents because it handles the real-world mess of truncated or edited trajectories without losing its statistical validity > Extending this perspective to stronger adaptive attacks, substitutions, and semantic paraphrase-style trajectory edits is an important direction for future work.

Nadia: So that’s the gist of "Sequential Behavioral Watermarking for LLM Agents." It shifts the focus to conditioning transitions instead of just token probabilities, and it uses sliding windows to verify position-agnostically against random keys.

Elias: A solid framework because it addresses the practical gap between how agents generate decisions and how we observe those decisions > We’ll be looking at other papers that try to tackle these kinds of behavioral verification challenges next.

The paper's summary: Nadia: So, basically this paper is proposing a way to put watermarks directly into how an AI agent acts—its sequence of decisions—instead of just marking the text it spits out > It moves the focus from token probabilities to those conditional transitions between actions.

Elias: Right, so instead of looking at individual words or tokens, they’re embedding signals into the "history-conditioned transition patterns," meaning how one action follows another is what carries the watermark > That makes it less susceptible to just matching some basic output statistics.

Priya: I’m wondering if this actually works when we look at agents that are supposed to be smart, like those using tools or planning, because if the watermarking is only on the sequence of actions, does that still prove what happened in between?

Nadia: That’s where they get specific about making it robust; they condition that guided subset on a recent window of actions—say, the last w steps > This means the watermark depends on what happened right before, not just some arbitrary round index.

Elias: And to make sure it doesn't break easily when someone deletes stuff, they add multi-channel redundancy by appending a channel index to that seed > They’re using multiple channels to build a sum score for the distribution tilt, which should give them more evidence from different angles.

Priya: If we think about an attacker trying to tamper with the agent's history—say, deleting three steps in the middle—how does this sliding-window detection handle that?

Nadia: The detector doesn’t care about absolute step numbers at all; it looks at every length w substring in the observed sequence > It checks if the next action matches what the encoder would have used when that window appeared somewhere.

Elias: That means they exploit an asymmetry: the encoder chains things together, but the detector treats every local chunk as independent evidence > The bound they get there is that each deleted position appears in at most w plus one contextual transitions.

Priya: So, if I’m just listening to the show, what does this actually change for me regarding how I judge if an agent's behavior is genuine or manipulated?

Nadia: It means we can treat trajectory corruption as a local source of evidence loss instead of it being a total failure of the detector > The history conditioning and sliding window approach localize that effect.

Elias: And they validate the whole thing using random-key calibration, which lets them build an empirical null distribution from the observed sequence itself > This avoids relying on some big asymptotic theory and makes the test distribution-free.

Priya: So, what’s the real value here? If I only listen to this show, what should I remember about this paper?

Nadia: Remember that sequential structure isn't just noise in agent watermarking; it’s a powerful carrier for provenance signals > It suggests that the way an AI makes decisions is a much richer place to hide evidence than just looking at the final output.

Elias: And they’re pointing toward future work by suggesting extending this idea to stronger attacks, like semantic paraphrasing or trajectory edits, which seems like a logical next step > They think this sequential approach can handle more sophisticated ways of messing with an agent's path.

The paper's improvements: Tom: So, we’re looking at how this paper suggests they can actually make the system better than what they first proposed > They aren't just doing one thing; they’re layering improvements on top of that sequential behavioral watermarking idea.

Nadia: Right, before it gets to the improvements, let me recap the main takeaway: it uses history-conditioned transitions and sliding windows for position-agnostic detection.

Elias: Exactly, so the paper is adding features to that core structure > They’re focused on how to make this sequential carrier of provenance even tougher against different kinds of attacks.

Priya: What kind of improvements are we talking about here? Are they trying to handle more complex manipulation than just simple deletions?

Nadia: Well, they introduce the idea that you can condition the guided subset not just on a short window, but on a broader context > They’re making the signal depend on a larger history.

Elias: That conditioning method itself is improved because it’s designed to be more resilient when an adversary only matches first-order behavior > An attacker matching just the marginal distribution won't be able to remove the watermark if you condition it this way.

Priya: And how does that affect measurement? If the context window gets bigger, does that mean the detection becomes slower or less precise in terms of what it actually captures?

Nadia: It trades off some things, but they argue that a larger context provides better signal strength > The idea is you get stronger evidence from more steps.

Elias: They also strengthen the redundancy aspect by sticking with those multi-channel encoding ideas, ensuring that even if one channel gets corrupted, others still provide data > That keeps the integrity high.

Priya: So, what’s the practical implication for me? If this makes it stronger against deletion, does that mean we can trust these results more when auditing agent behavior?

Nadia: It means that when an attacker deletes actions, you have a better chance of still getting a valid detection score > The paper shows it's robust under moderate deletion rates across different domains.

Elias: They also emphasize the power of the random-key calibration procedure, showing it’s valid even in finite samples without needing those asymptotic limits > That makes the statistical guarantee more solid for real-world testing.

Priya: It sounds like they’re focusing on making it practical for real agents, not just theoretical models > They are tackling the actual mess of truncated or edited trajectories.

Nadia: Exactly, and looking ahead, they suggest that this sequential structure is a powerful carrier for provenance signals > They're hinting that we should look at how this idea applies to even more advanced manipulations like semantic paraphrasing next.

Conclusion: Tom: So, to wrap up, we’ve seen how SeqWM uses history-conditioned transitions and sliding windows to verify trajectories position-agnostically > It essentially makes agents' behavioral patterns traceable even when parts of the execution history are missing.

Nadia: Right, it means we can treat trajectory corruption as a local source of evidence loss instead of a total detector failure > That’s the big practical shift for security auditing.

Elias: And they back that up with random-key calibration, which provides a distribution-free way to test the watermark's reliability > It gives us confidence in the detection score without needing some complex asymptotic math.

Priya: I just want to make sure we’re not over-relying on these numbers; what does this actually mean for privacy if an agent's behavior is being checked like this?

Nadia: It changes how we assess agent trustworthiness because it allows us to audit the actual decision process, not just the final output > We can see *how* it reached a conclusion.

Elias: And for cryptographers, the random-key calibration procedure is interesting because it sidesteps relying on a closed-form null distribution > It shows that robustness can be achieved through empirical testing of wrong keys.

Priya: So, the data shows that even when per-step hit rates are moderate, this sequential dependence is enough to flag manipulation > That’s a strong result for me; it implies the structure itself carries the signal.

Nadia: It really does, and it suggests that sequential structure isn't just noise in agent watermarking; it’s a powerful carrier for provenance signals > That’s what I take away from looking at this paper.

Elias: The limitation they flag is that this method focuses on behavioral decisions, so we haven't directly tackled semantic paraphrase-style trajectory edits yet > They acknowledge that stronger attacks are still coming.

Priya: So, the next frontier seems to be adapting this sequential idea to those more complex edits and paraphrasing attacks > That’s where the next piece of research will likely land.

More episodes

← Home