Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Watermarking LLM Agent Trajectories

About

LLM agents rely heavily on high-quality trajectory data to guide their problem-solving behaviors, yet producing such data requires substantial task design, high-capacity model generation, and manual filtering. Despite the high cost of creating these datasets, existing literature has overlooked copyright protection for LLM agent trajectories. This gap leaves creators vulnerable to data theft and makes it difficult to trace misuse or enforce ownership rights. This paper introduces ActHook, the first watermarking method tailored for agent trajectory datasets. Inspired by hook mechanisms in software engineering, ActHook embeds hook actions that are activated by a secret input key and do not alter the original task outcome. Like software execution, LLM agents operate sequentially, allowing hook actions to be inserted at decision points without disrupting task flow. When the activation key is present, an LLM agent trained on watermarked trajectories can produce these hook actions at a significantly higher rate, enabling reliable black-box detection. Experiments on mathematical reasoning, web searching, and software engineering agents show that ActHook achieves an average detection AUC of 94.3 on Qwen-2.5-Coder-7B while incurring negligible performance degradation.

Wenlong Meng, Chen Gong, Terry Yue Zhuo, Fan Zhang, Kecen Li, Zheng Liu, Zhou Yang, Chengkun Wei, Wenzhi Chen• 2026

Related benchmarks

TaskDatasetResultRank
Watermark DetectionMATH
AUC (Unspecified Config)99.9
10
Watermark DetectionSimpleQA
Delta_q0.81
10
Agent Trajectory PerformanceMATH (test)
Pass@175.3
4
Agent Trajectory PerformanceSimpleQA (test)
Pass@1 Accuracy77.1
4
Agent Trajectory PerformanceSWE (test)
Pass@1 Accuracy (%)12.7
4
Watermark DetectionSWE (test)
Delta Q (Δ̂q)0.71
4
Watermark DetectionSWE-Smith
Delta_q (No Attack)0.41
2
Showing 7 of 7 rows

Other info

Follow for update