LoRo-Mark: provably lossless and robust agent watermarkingLoRo-Mark:Provably Lossless and Robust Agent Watermarking
The authors propose the LoRo-Mark agent watermark: a MAC-authenticated forensic branch plus redundant behavior encoding; the authors claim zero performance loss on normal tasks and recoverable ownership under sequence modification.
The attacker repackages the protected agent via API as their own service (agent repackaging), and may modify the behavior sequences, action trajectories, etc. displayed on the front end, but retains the underlying LLM, orchestration policy, toolset and actual execution process; the attacker may know the watermarking mechanism and interact through public interfaces, but does not hold the owner's key. The defender has only black-box access to the repackaged service, and the goal is to recover ownership information from execution trajectories that may be partially modified or truncated.
- An agent's orchestration logic and tool-use policy are valuable intellectual property; an attacker can repackage a protected agent as their own service via an API and modify the displayed behavior sequence, and the owner has only black-box access, requiring a lossless and robust watermark to verify ownership.
- Proposes LoRo-Mark: the watermark is isolated in a MAC-authenticated forensic branch, and ordinary requests take the original execution path; within the forensic branch, the copyright information is interleaved and repeatedly encoded, then mapped to the behavior sequence via a pseudorandom permutation, and decoded by majority vote at verification time.
- On 100 tasks in each of the three domains of XLAM-FUNCTION-CALLING-60K, the four utility metrics of LoRo-Mark are exactly the same as those of the unwatermarked agent (Table 1); 10,000 normal requests produced zero false activations; with r=3, retaining about 34.6% of the prefix suffices for 100% recovery (Figure 3(b)).
- The paper does not specifically discuss limitations. The experiments are based on the single dataset XLAM-FUNCTION-CALLING-60K, the ReAct framework, and three 4B–8B backbone models; robustness was tested only for two modifications, random behavior substitution and prefix truncation; utility evaluation used 100 tasks per domain, reviewed by DeepSeek-V3, and the paper does not report human evaluation.
- Evaluated models
- Qwen3-4BQwen3-8BMinistral-8B-Instruct-2410
- Benchmarks
- XLAM-FUNCTION-CALLING-60K
- Metrics
- TPRFPRPass Rate (PR)Response Score (RS)Trajectory Score (TS)Success Rate (SR)
The paper proposes an agent watermarking mechanism, LoRo-Mark, for black-box attribution verification after an agent is repackaged as someone else's service, and claims it is provably lossless and robust. The threat it targets is an adversary connecting a protected agent to its own application via API and passing it off as its own identity, and possibly modifying part of the execution to conceal the source. To achieve losslessness, the method isolates the watermark in a cryptographically authenticated forensic branch that is not activated during normal execution and is triggered only by requests authorized by the owner; the authors claim to formally guarantee no performance impact by reducing unauthorized branch activation to standard MAC security. To achieve robustness, attribution information is redundantly distributed across the forensic behavior sequence and remains recoverable under partial behavior replacement and sequence truncation. The authors claim experiments on multiple LLM agents show zero performance degradation on normal tasks and reliable attribution verification after the sequence is modified.
Paper analysis
What problem does this paper attempt to solve?
Addressing the problem of how to verify ownership losslessly and robustly under black-box conditions when an agent is repackaged for infringement.
Core problem: after an agent is "repackaged" (agent repackaging) and infringed, the owner has only black-box access—how to verify ownership without harming normal functionality.
- Problem scenario: the authors state that the value of LLM agents often lies in system-level capabilities such as orchestration logic and tool-use policies, which constitute intellectual property; an attacker can integrate the protected agent into their own application via API, offer it externally under their own service identity, and modify the front-end-displayed thought process, behavior sequences, action trajectories and observations to conceal the source (Figure 1).
- Shortcomings of existing methods: the authors state that existing agent watermarking encodes ownership signals into behavior choices or execution trajectories, which interferes with the agent's normal decisions, makes it difficult to strictly preserve functionality, and the evidence is easily destroyed after downstream behavior modifications.
- Core observation: the key to provable losslessness is not reducing watermark perturbation, but ensuring that ordinary requests always follow an execution path untouched by the watermark and suppressing the probability of unauthorized activation of the watermark branch to cryptographically negligible levels; the key to robustness is making ownership evidence independent of any single behavior.
- Proposed in the paper: LoRo-Mark—uses a MAC-authenticated forensic branch to isolate watermarking functionality, redundantly distributes copyright information across the forensic behavior sequence, and provides a losslessness reduction proof and recovery guarantees under substitution/truncation.
- Threat model:
- Attacker goal: repackage the protected agent as their own service and conceal the source.
- Attacker knowledge: may know the watermarking mechanism and interact through public interfaces, but does not hold the owner's key.
- Attacker capability: retains the underlying LLM, orchestration policy, toolset and actual execution process, and modifies only the externally presented behavior sequences, trajectories, etc.
- Victim system and defender: an LLM agent deployed as a service; the defender has only black-box access, and the goal is to recover ownership information from execution trajectories that may be partially modified or truncated.
What related research exists?
Related work falls into two categories: agent watermarking (behavior/trajectory/memory layers) and cryptographic undetectable backdoors; this paper draws on the latter's key-controlled idea.
Agent watermarking (behavior layer)
- AgentGuide (Huang et al., 2025)—targets high-level planning behaviors rather than surface tokens, uses a pseudorandom green list to bias the behavior distribution, and performs single-bit presence detection with a z-statistic aggregated over multiple rounds.
- AgentMark (Huang et al., 2026)—encodes multi-bit identifiers through distribution-preserving conditional sampling, preserves marginal behavior distributions, and is compatible with black-box agent APIs.
Agent watermarking (trajectory layer and memory layer)
- SeqWM (An et al., 2026)—each step's embedding depends on historical state transitions; ACTHOOK (Meng et al., 2026)—injects decoy actions activated by predefined trigger keys; AGENTWM (Wang et al., 2026)—discovers pools of semantically equivalent tool execution paths and biases toward a user-specific subset, verified with Jensen–Shannon divergence.
- MEMMARK (Zhang et al., 2026)—embeds signals into latent memory state transitions, enabling source attribution from the final memory snapshot even when intermediate trajectories are unavailable.
Cryptographic undetectable backdoors
- Goldwasser et al. (2022)—a malicious trainer can implant an undetectable backdoor in a classifier: a signature verification circuit runs in parallel with the base model and activates only for validly signed inputs; a keyless observer cannot distinguish the backdoored model from a clean model. The authors state that they draw on its idea of "key-driven behavioral asymmetry," but the agent setting involves multi-step reasoning, tool calls and planning-layer semantics, so the classifier-level construction cannot be directly reused.
Baselines and benchmark
- The comparison baselines are AGENTWM and AgentMark; the experimental benchmark is XLAM-FUNCTION-CALLING-60K (Liu et al., 2024b), containing 60,000 function-calling trajectories and covering 3,673 tools and 21 domains.
Positioning of this paper: the authors state that existing methods embed signals into behavior choices or trajectories and interfere with normal decisions; LoRo-Mark instead isolates the watermark into an authenticated forensic branch, separating ownership verification from normal execution by design.
How does the paper address this problem?
LoRo-Mark uses a MAC-authenticated forensic branch to guarantee provable losslessness, and interleaved repeated encoding plus pseudorandom behavior mapping to guarantee robust recovery.
Overall idea: put all watermarking functionality into a forensic branch that only the key-holding owner can activate, while ordinary requests follow the original execution path; within the branch, copyright information is redundantly encoded and distributed across the forensic behavior sequence. The framework is named LoRo-Mark.
Threat model and formalization
- The protected agent is modeled as A = (M, Π, T); at step t, a high-level behavior b_t is selected from the candidate behavior set B_t and instantiated as action a_t, and execution produces behavior sequence τ_b and action trajectory τ_a.
- Repackaging is treated as a service-level transformation R: A → A′: the execution flow, decision logic, toolset and actual trajectories are unchanged, and only the external presentation is modified.
- The defender uses key k to construct a forensic request x*, extracts message ĉ from the returned observable trajectory τ′ using Ext_k, and accepts the ownership claim if and only if Ver_k(ĉ, c) = 1.
Forensic branch (source of losslessness)
- Key generation: at deployment, a master key k_master is sampled, and domain-separated PRF derivation yields k_det (authenticating forensic requests), k_emb (encoding authentication information into task parameters), and k_prv (behavior watermark).
- Trigger task generation: for a legitimate task body T_body, compute σ = MAC(kdet, Tbody), then use k_emb to encode σ into semantically legitimate parameter slots P (such as budget, date, quantity), obtaining T* = T_body ⊕ P; when parameter capacity is insufficient, the tag may be truncated to ℓ bits.
- Forensic detection: in the agent harness, before LLM execution, the expected tag is compared with the tag decoded from P, and only if they are equal does execution enter the forensic branch; the activation probability for unauthorized requests does not exceed the MAC's ε_MAC(λ) (Equation 3).
Redundant behavior watermark (source of robustness)
- Redundant encoding: the copyright message c has length n = 8|c| bits; the entire message is interleaved and repeated r times to obtain M (Equation 4), and the r copies of the same bit are spread at positions n apart, which the authors state can resist local corruption and truncation.
- Behavior embedding: k_step = MAC(k_prv, σ) and observation o_t generate a pseudorandom permutation π_t over the candidate behavior set; each step embeds qt = ⌊ log2 |Bt| ⌋ bits, and behavior b_t = π_t[j_t] is selected according to the integer index in M.
- Verification: reconstruct π_t, map observed behaviors back to bits, perform majority-vote decoding over the surviving copies of each copyright bit, and accept only if ĉ = c_claimed.
Theoretical guarantees
- Losslessness (Theorem 1): if the MAC is EUF-CMA secure, then LoRo-Mark is (ε_MAC, t, q, λ)-lossless—the advantage of a keyless distinguisher in distinguishing the watermarked API from the original API does not exceed ε_MAC(λ).
- Robustness (Appendix B.3): under prefix truncation, when the retained proportion α ≥ ⌈n/β⌉/S ≈ 1/r, the recovery probability is 1 (Proposition 3); under random substitution proportion ρ, the success probability is at least 1 − n·p_bit(ρ) (Proposition 4).
- Unforgeability (Appendix B.2): in a fresh context, the probability that a one-time attacker who does not know k_prv forges a passing verification does not exceed 2⁻ⁿ + ε_KDF + ε_PRF.
What experiments did the paper conduct?
On the three XLAM domains, LoRo-Mark's utility is exactly the same as unwatermarked, with zero false activations on 10,000 normal requests, and TPR under substitution/truncation is better than the baselines.
Experimental Setup
- Backbone models tested: Qwen3-4B by default, additionally Qwen3-8B and Ministral-8B-Instruct-2410; the agent framework is ReAct, and tools are executed via a function-calling interface.
- Dataset: XLAM-FUNCTION-CALLING-60K (60,000 trajectories, 3,673 tools, 21 domains); utility evaluation selects the Data, Business and Social domains, sampling 100 tasks per domain.
- Baselines: AGENTWM (Wang et al., 2026), AgentMark (Huang et al., 2026), and the unwatermarked agent.
- Metrics: Watermark verification reports TPR and FPR; utility reports Pass Rate (PR), Response Score (RS), Trajectory Score (TS), Success Rate (SR), where RS and TS are normalized from 1–5 scores.
- Judging method: DeepSeek-V3 serves as judge to evaluate final responses and execution trajectories; the paper does not report human evaluation or scoring consistency.
- Watermark configuration: HMAC-SHA256; default copyright message 104 bits, repetition factor r = 3; the false-activation experiment uses 10,000 random normal tasks.
Main Results
Table 1: Utility of the three methods on three domains (Qwen3-4B + ReAct, 100 tasks per domain, DeepSeek-V3 judging)
Swipe horizontally to read the table
Method Domain PR↑ RS↑ TS↑ SR↑ Unwatermarked Data 0.6200 0.6175 0.8850 0.9900 AGENTWM Data 0.5500 0.5700 0.8375 0.8800 AgentMark Data 0.5600 0.5975 0.8675 0.9600 LoRo-Mark Data 0.6200 0.6175 0.8850 0.9900 LoRo-Mark Business 0.6000 0.6025 0.8825 0.9900 LoRo-Mark Social 0.7100 0.6375 0.8825 0.9800 (According to Table 1; baseline numbers for the Business and Social domains are omitted, with trends consistent with the Data domain)
- Zero loss: LoRo-Mark is exactly the same as the unwatermarked agent on all four metrics across the three domains, ΔPR = ΔRS = ΔTS = ΔSR = 0; AGENTWM and AgentMark show decreases on every metric (e.g., AgentMark's PR on the Business domain drops by 16.67%).
- False activation: None of the 10,000 random normal requests was accepted by forensic detection, FPR = 0.00% (Section 5.2).
- Authors' interpretation: The authors state that this empirically confirms that ordinary requests remain on the untouched execution path, consistent with the losslessness guarantee in Section 4.
Robustness: Behavior Substitution and Sequence Truncation
- Behavior substitution: Behavior with random substitution ratio ρ. The authors state that in Figure 3(a), LoRo-Mark's TPR remains consistently higher than AGENTWM and AgentMark at each substitution ratio (the specific values in the figure are unreadable in the text conversion). Table 2 (|B| = 64, |c| = 13 bytes): at r = 3, TPR is 100.00% at ρ = 0.05, 33.60% at ρ = 0.20, and 0.00% at ρ = 0.50; at r = 7, TPR is 91.25% at ρ = 0.20 and 0.60% at ρ = 0.50.
- Sequence truncation: Only the prefix is retained. Figure 3(b): at r = 3, retaining about 34.6% of the steps achieves 100% TPR, and shorter prefixes are insufficient for complete recovery; this threshold is consistent with the theoretical value 18/52 ≈ 34.6% in Remark 1 of Appendix B.3.
- Authors' interpretation: The authors state that the redundant behavior watermark preserves ownership evidence under partial modification and truncation.
Other Ablations and Analysis
- Repetition factor r (Table 2, |B| = 64, |c| = 13 bytes): r ∈ {3, 5, 7}, with 52, 87 and 122 steps respectively; at the same ρ, larger r gives higher TPR, and the default r = 3 balances robustness and verification overhead.
- Parameter capacity and MAC length (Section 5.4): 12 configurations (capacity_bits ∈ {14, 64, 96} × mac_bits ∈ {32, 64, 96, 128}); measured FPR matches the theoretical bound 2^(−min(capacity_bits, mac_bits)); at 14-bit capacity the FPR is 5.0×10⁻⁵, and configurations with effective bits ≥ 32 show zero false activations in 10,000 trials.
- Backbone model consistency: The authors state that results on Qwen3-8B and Ministral-8B-Instruct-2410 are "highly consistent", because both forensic detection and behavior embedding are in the harness and do not depend on the backbone model; the paper does not give specific numbers for these models.
- Negative results: At r = 3, TPR drops to 0.00% under substitution with ρ ≥ 0.50 (Table 2); when the retained truncation ratio is below about 34.6%, complete recovery is impossible (Figure 3(b)).
What are some points that can be further explored?
The paper does not specifically discuss limitations; the experiments are limited to a single dataset, the ReAct framework, three 4B–8B backbones and two types of sequence modification.
Limitations and Future Directions Noted by the Authors
- The paper does not specifically discuss limitations: the main text and appendix contain no Limitations or Future Work section, and the Conclusion only summarizes the design principle ("ownership verification can be separated from normal execution by design"), without listing shortcomings or future work.
Scope of Experimental Coverage
- Dataset: All experiments are conducted on XLAM-FUNCTION-CALLING-60K; utility evaluation uses only three of its domains, Data, Business and Social, with 100 tasks per domain (Section 5.1).
- Models tested: Three backbones, Qwen3-4B (default), Qwen3-8B and Ministral-8B-Instruct-2410, with the ReAct framework; the results for Qwen3-8B and Ministral are only described in text as "highly consistent", and the paper does not report their specific numbers (Section 5.1).
- Robustness evaluation: Covers only two types of modification, random behavior substitution (substituted behaviors uniformly sampled) and prefix truncation (Section 5.3, Appendix B.3); the threat model has the attacker retain the actual execution process and modify only the display layer, and does not evaluate the case where the attacker alters the real execution.
- Judging method: Utility scores are judged by DeepSeek-V3 as judge; the paper does not report human evaluation, judge consistency or number of repetitions.
- Parameter configuration: Default 104-bit copyright message, r = 3, HMAC-SHA256; ablations cover r ∈ {3, 5, 7} (|B| = 64, |c| = 13 bytes) and 12 capacity/MAC length combinations, with 10,000 false-activation trials (Section 5.4).
Summarize the main content of the paper
LoRo-Mark isolates the agent watermark into a MAC-authenticated forensic branch; the authors claim it achieves zero utility loss and reliable ownership recovery under sequence modification.
An agent watermarking paper that performs black-box ownership verification for the "agent repackaging" infringement scenario.
- Problem: An attacker wraps a protected agent as their own service via an API and modifies the displayed behavior sequence; the authors state that existing watermarks interfere with normal decisions and that evidence is easily destroyed by behavior modification, so losslessness and robustness must be satisfied simultaneously.
- Method: LoRo-Mark places the watermark into a forensic branch—ordinary requests take the original path, and only requests carrying a valid MAC tag activate the branch; within the branch, a 104-bit copyright message is interleaved and repeated r times, mapped to the behavior sequence via a pseudorandom permutation, and decoded by majority vote at verification time. Losslessness is reduced to the EUF-CMA security of the MAC (Theorem 1), and recovery bounds under truncation and substitution are given (Appendix B.3).
- Utility: On the Data/Business/Social three domains of XLAM-FUNCTION-CALLING-60K (100 tasks per domain, Qwen3-4B + ReAct, DeepSeek-V3 judging), PR/RS/TS/SR are exactly the same as the unwatermarked agent, whereas both AGENTWM and AgentMark show decreases (Table 1).
- False activation: The FPR on 10,000 normal requests is 0.00% (Section 5.2).
- Robustness: At r = 3, retaining about 34.6% of the prefix yields 100% TPR (Figure 3(b)); at substitution ratio ρ = 0.20, TPR is 33.60% for r = 3 and 91.25% for r = 7, and at ρ = 0.50, r = 3 drops to 0.00% (Table 2).
- Authors' conclusion: The authors state that the results give a design principle—ownership verification can be separated from normal execution by design; the paper does not discuss limitations, and the experiments are limited to a single dataset, the ReAct framework and two types of sequence modification.