Manuscript Offprint

arXiv:2610.08668

Semantic Behavioral Watermarking: Paraphrase-Robust and Forgery-Resistant Provenance for LLM Agents

Suxin Ji, Hungtao Wan, Shaoxuan Chen, An Zhang

ABSTRACT

Behavioral watermarking embeds an owner identifier in an LLM agent's high-level action choices, giving provenance without touching output tokens. Prior agent watermarks bind the signal to raw strings and break in two ways. Agent-Mark's own robustness test paraphrases the observation alone and bit-recovery falls to 16.8%; its released script holds the per-step key fixed, so that experiment measures distribution drift, not the key desynchronization its context-hash design separately admits. All three prior schemes also bind the watermark to the exact action symbol, so renaming a tool desynchronizes decoding even when the observation is untouched — the axis we measure and close. And every prior agent watermark studies only removal: none asks whether an adversary can forge a trajectory that verifies as someone else's, a question answered affirmatively for text watermarks (Jovanović et al., 2024). We present Semantic Behavioral Watermarking (SBW): watermarking over semantic action clusters under history conditioning, with the public-cluster bin replaced by keyed collision-resistant binning whose fresh-bucket assignment is provably unpredictable in the random-oracle model. Across five agent models (3B–14B, four vendors) and three encoders the ordering holds on both benchmarks: on ToolBench (600 trajectories per model) detection under rewriting is 0.49–0.66 for cluster-level versus 0.05–0.17 for exact-symbol at a permutation-calibrated 1% FPR, at 72–83% choice agreement against 22–27% for logit biasing; on ALFWorld (100 episodes per model) it is 0.92–0.97 versus 0.00–0.01. Keyed binning takes adaptive forgery from 100% to the false-positive floor at the primary operating point (bge, r=64). We also mark the boundary that guarantee does not cover: when the adversary copies the victim's own steps, shuffled splicing is neutralized (0.000 on Qwen2.5-3B) but chained replay remains at 0.76–0.98 across the five models, reported as open. Paraphrase robustness costs about half of the per-step watermark capacity. Code is available at https://anonymous.4open.science/r/SBW-Agent-Watermark.

1 INTRODUCTION

LLM agents that plan and call tools are increasingly deployed as commercial assets; owners need to prove that a given trajectory was produced by their agent (provenance) and to deter unauthorized reuse (IP protection). Token-level text watermarks do not apply: the ownership signal lives in the agent's discrete behavior — which tool or subgoal it selects — not in surface tokens. A recent line of behavioral watermarks embeds the signal there: Agent Guide (Huang et al., 2025) biases behavior probabilities; AgentMark (Huang et al., 2026) embeds multi-bit identifiers via distribution-preserving conditional sampling; SeqWM (An et al., 2026) conditions the green/red split on the recent action history for position-agnostic, deletion-robust verification. Two gaps remain. (G1) Paraphrase fragility. All three key the watermark on the exact action symbol. A semantics-preserving rewrite changes that symbol and desynchronizes decoding, and SeqWM's history windows hash exact strings. That binding to raw strings is demonstrably fragile: AgentMark's own robustness test paraphrases the observation block — its released script preserves the action list verbatim and teacher-forces the same per-step key for both runs — and bit-recovery falls to 16.8% at a mean

Figure

Figure 1: The two attack directions, and which one prior work leaves open. Left — removal: the adversary wants the owner's mark to stop being detectable. Every prior agent watermark studies only this side and keys on the exact action symbol, so renaming a tool desynchronizes decoding; watermarking the semantic cluster under history conditioning is what lifts detection under rewriting from 0.05–0.17 to 0.49–0.66 across five models. Right — forgery: the adversary wants its trajectory to verify as the owner's. We split this side explicitly: against fresh actions keyed binning drives forgery from 100% to 21% at the default r=8 and to 1.2% at r=64 — the false-positive floor (provable for fresh buckets, Thm. G.1), but when the adversary copies the victim's steps nothing must be predicted and the key does not help — shuffled splicing is neutralized (0.000, measured on Qwen2.5-3B) while chained replay stays at 0.76–0.98 across the five models (Table 3), which we report as an open boundary rather than close.

KL of 3.23, i.e. the measured failure is drift in the elicited distribution. Its per-step key is separately a hash of the preceding context, so key desynchronization is a second exposure that this experiment does not measure. Action renaming is the orthogonal axis, the one an exact-symbol design leaves exposed, and the one we measure directly (EXACT 0.05–0.17 under rewriting, §6.1). (G2) Forgery. Every agent watermark to date studies only removal robustness. But behavioral watermarks that use a public semantic encoder introduce a new attack surface: an adversary who observes a few watermarked trajectories can estimate the green/red structure and forge a trajectory that verifies as another owner — enabling framing or repudiation. We address both with Semantic Behavioral Watermarking (SBW), sketched in Fig. 1: (1) cluster-level history-conditioned watermarking (§4.1) — a SeqWM-style scheme over semantic-cluster symbols, so both the current symbol and the history window survive rewriting; (2) keyed collision-resistant binning (§4.2) — bin(a) = H(sk, quantize( Rsk⋅E(a)R_{sk} \cdot E(a))), provably unpredictable on fresh buckets (Thm. G.1) and reducing real forgery from 100% to ~21%; (3) a synchronization-stability and elicited-capacity theory (§5) with proven directional margins; (4) a real-data evaluation (§6; Fig. 2) with multi-seed, FPR-calibrated detection, matched-null controls, an adversarial verification, and native head-to-heads against both a released implementation (AgentMark) and a from-paper reimplementation (AGEN-TWM). To our knowledge this is the first behavioral watermark for agents that is both paraphrase-robust and forgery-resistant. Beyond (1)–(4) it contributes a previously-unstudied forgery attack on semantic behavioral watermarks, a provable fresh-bucket guarantee with a precisely characterized residual, and a quantified boundary for the copy-style attacks that guarantee does not cover.

References (29)