Skip to content

SkillMarker: A KGW-Based Watermarking Method for Ownership Verification of Agent SkillsSkillMarker: A KGW-Based Watermarking Method for Agent Skill Ownership Verification

Hugging Face Daily Papers· arXiv:2610.15725· Alan Tang, Lifeng Wang, Gang Wu, Tao Zhang, Yantao Jia, Xiaofeng ZhuHuawei Technologies Co., Ltd.; Harbin Institute of Technology, ShenzhenIndexed by this site · 2026-10-15· Originally publishedTools

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

SkillMarker uses KGW to rewrite skill text for ownership verification and leak tracing; the authors report a performance change of −2.01% to +0.93% across the four datasets.

Threat modelSkills are distributed in plaintext and can be copied, redistributed, or incorporated into other skills. Before release, developers embed a watermark using a secret key k; detection only requires a tokenizer and watermark configuration, without model inference, and can inspect suspicious text containing only fragments, or trace the source version with different keys.

Questions
Agent skills are distributed in plaintext, making them easy to copy, redistribute, or merge into other skills; ownership verification and leak tracing are still immature. Instructions are compact and require accurate facts and procedures, leaving little room for rewriting.
Methods
SkillMarker is based on KGW: code, delimiters, and literals are not changed; only editable segments are rewritten. Fidelity prompts constrain facts and procedures, beam search explores candidates under logit bias, and selection prioritizes green-list token rate with lower perplexity as the tiebreaker.
Experiments and results
Across the four datasets, the pass-rate change of watermarked skills relative to original skills is −2.01% to +0.93%. Window detection detects all copies of 1536 contiguous tokens; full-text detection is 55.6% in the longer background. With 1 or 3 background skills, multi-scale detection rates are 72.2% and 77.8%.
Limitations and future work
The paper does not have a dedicated limitations section. The conclusion states that false positives in the control increase, and detection requires calibration. Experiments include downstream performance on four datasets, copy-paste, skill merging, and five component ablations; merged detector parameters are selected on the same batch of samples, with no held-out test set.
Experimental setupDeepSeek-V4-Flash · agent-skills、awesome-skills et al. · 检查通过率、平均总token et al.
Evaluated models
DeepSeek-V4-Flash
Benchmarks
agent-skillsawesome-skillsmarketingskillsskill-use-bench
Metrics
检查通过率平均总token任务时间中位数检测率定位精确率定位召回率假阳性率z
AI summarySkillMarker is a KGW-based watermarking method for ownership verification and leak tracing in agent skill distribution. It combines quality-constrained rewriting with signal-oriented candidate search: the former distinguishes core knowledge from flexibly expressible content to maintain instruction fidelity, while the latter searches for stronger watermark signals under fidelity constraints. The team also open-sourced a toolkit integrating watermark embedding, quality auditing, and detection.

SkillMarker is a KGW-based watermarking method for ownership verification and leak tracing in agent skill distribution. It combines quality-constrained rewriting with signal-oriented candidate search: the former distinguishes core knowledge from flexibly expressible content to maintain instruction fidelity, while the latter searches for stronger watermark signals under fidelity constraints. The team also open-sourced a toolkit integrating watermark embedding, quality auditing, and detection.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to embed watermarks in skill text to verify ownership and trace leaks without compromising functionality.

    Can a watermark be embedded without harming skill functionality, to support ownership verification and leak tracing.

    • Scenario: Agent skills encode domain experience as reusable instructions and resources, loaded on demand without modifying model weights. The authors believe plaintext distribution makes them easy to copy, redistribute, or merge into other skills, while ownership verification and leak tracing still lack usable mechanisms.
    • Existing shortcomings: Instructions are structured and compact, with high requirements for factual and procedural accuracy; small changes to resource references, judgment conditions, or necessary actions can alter agent behavior. The authors state that weak logit bias may produce only little watermark signal, while stronger bias may change critical instructions.
    • Core observation: Rewritable positions are few, and accuracy constraints further limit alternative phrasings. The authors divide the difficulty into functionality preservation (C1) and strong signal embedding under limited rewriting freedom (C2).
    • Proposed method: Propose SkillMarker, which performs quality-constrained rewriting and signal-oriented candidate search on top of KGW (Kirchenbauer et al., 2023), and provides a toolkit for embedding, quality auditing, and detection.
    • Threat model:
      • Goal: Embed a watermark associated with key k before publication; later test whether suspicious text carries this signal, including fragments, full copies, or content merged into other skills. Different keys are used to help identify source versions.
      • Knowledge: Embedding uses a language model that can read output logits; detection only needs a tokenizer and watermark configuration, without model inference, and may lack positions of protected content.
      • Victim system: Agent skills distributed as Markdown bodies; suspicious text may be mixed with unrelated content.
      • Terminology: The paper does not use white-box, black-box, gray-box, or no-box to describe the copying party.
  2. What related research exists?

    Related work is divided into generation-time watermarking, post-hoc watermarking, and steganography; the authors emphasize pre-distribution embedding and instruction fidelity.
    • Generation-time watermarking: KGW and Unigram-Watermark (Kirchenbauer et al., 2023; Zhao et al., 2024) use context-dependent or fixed vocabulary partitions to bias token selection. SynthID-Text, SemStamp, textGrain (Dathathri et al., 2024; Hou et al., 2024; Li et al., 2026b) use tournament sampling, sentence-level rejection sampling, and optimal transport, respectively. SWEET, STONE protect low-entropy positions or syntactic code tokens, and AgentMark watermarks planning decisions (Kim et al., 2026; Lee et al., 2024; Huang et al., 2026). The paper notes that generation-time watermarking is typically deployed at the model provider to attribute generated outputs.
    • Post-hoc watermarking and provenance: PostMark, REMARK-LLM, SrcMarker (Chang et al., 2024; Zhang et al., 2024; Yang et al., 2024) insert semantically selected words, encode binary signatures, and perform semantics-preserving code transformations, respectively. RedAct uses selective rewriting and behavioral signals to watermark published agent trajectories, and SkillTrace audits skill reuse from expression, implementation, and runtime traces (Xu et al., 2026; Chen et al., 2026). The paper notes that semantic preservation on general text or published trajectories does not by itself establish skill instruction fidelity.
    • Text steganography: Neural Linguistic Steganography (Ziegler et al., 2019) uses arithmetic coding to hide recoverable messages; zero-width characters can provide invisible encoding but must survive redistribution. ICW (Liu et al., 2026) induces patterns in subsequent model outputs through instructions. The paper notes that the steganography goal is hidden message recovery, and covertness can be broken by steganalysis of fine-tuned LLMs (Bai et al., 2024; Tang et al., 2024); this goal by itself does not establish attribution of copied or merged instructions under strict functional constraints.
    • Experimental controls: The experiments do not use the above watermarking methods as numerical baselines. Controls are three settings: no skill, original skill, and watermarked skill; datasets are agent-skills, awesome-skills, marketingskills, skill-use-bench. Kirchenbauer et al. (2024)'s study on copy-paste reliability is used by the authors to explain why copy-paste and skill merging are tested.

    The authors position SkillMarker as a tool for skill developers to embed watermarks before distribution, independent of the model that later executes the skill, providing a signal for attribution after reuse under fidelity constraints.

  3. How does the paper address this problem?

    First lock the protected content, then rewrite in editable fragments according to the green-list rate and perplexity.

    SkillMarker applies KGW's green-list bias to skill rewriting: first separate protected content from editable segments, then select phrasing among candidates that pass fidelity checks based on watermark signals, and finally reassemble protected content verbatim.

    Problem Setting

    • x is the Markdown body of the original skill, k is the key shared by embedding and detection. The goal is to watermark the skill while preserving the instructions in x and carrying a signal associated with k; detection must handle suspicious text that may only be a partial fragment.
    • The vocabulary is V, and the sequence is w1:n. At step t, the next-token distribution P_t is obtained from context. k and the previous token determine the green list G_t and its complement, the red list. γ is in (0, 1) and is the nominal green-list proportion; δ > 0 is the logit bias. E is the set of exempt tokens. Scoreable positions are I, N is its size, and G is the green-token count.
    • Embedding requires a language model that can read output logits. Detection only needs a tokenizer and watermark configuration, without model inference.

    Quality-Constrained Rewriting

    • After parsing the original text, code, structural separators, identified literals, and regions where structure fails to parse must remain unchanged; tokens crossing protection boundaries are also protected. The remaining prose is split into editable segments, and segments with original token counts below a threshold are not modified. The paper does not give this threshold. Modify one segment at a time, then rebuild in the original order.
    • Locking only literals may still change decision rules. The rewriting prompt uses explicit fidelity instructions and paired examples, requiring preservation of original language, facts, conditions, negations, numbers, and technical identifiers. Fidelity checks reject incomplete or empty candidates, unauthorized formatting or grammatical changes, and modifications to protected content. Appendix B.1 gives the full prompt.
    • An independent quality audit evaluates language, semantics, completeness, and usability without exposing watermark scores to reviewers. Downstream task performance is evaluated separately.
    • Tokens differing only by leading spaces or periods share the representative token's green-list identity; literal underscore variants still go through fidelity checks. Sample floor(γ × vocabulary size) vocabulary IDs under the key; the actual green-list size need not equal the nominal size. Format tokens plus special and reserved control tokens constitute E. Following soft KGW, the distribution for non-exempt green-list tokens is Qt(v)=(Pt(v)exp(δ 1{v∈ Gt∖ E}))/(∑u Pt(u)exp(δ 1{u∈ Gt∖ E})). Red-list tokens remain selectable; exempt tokens receive no bias and contribute no signal.

    Signal-Oriented Candidate Search

    • Fidelity constraints may encourage copying the original text, and simply increasing δ may bias toward inaccurate phrasing. Therefore, under the same constraints, beam search explores continuations of the above distribution.
    • After a candidate is spliced into adjacent text, tokenization may change. Thus, insert the candidate into the current skill and re-tokenize the fully reconstructed text. For the current segment, only count positions that fall entirely within output boundaries, are non-exempt, and have a previous token; the green list is determined by the actual previous token, even if that token is protected or exempt.
    • The green-token rate is G/N. Fluency is the conditional perplexity of candidate-generated tokens under the rewriting prompt, i.e., the exponential of the average token negative log-likelihood over P_t. Among candidates that pass checks and have N > 0, green-token rate takes priority, with lower perplexity breaking ties. If the candidate set is empty, keep the original segment and record a fallback. The authors state that this local selection does not guarantee the highest full-text green-token rate.

    Watermark Detection

    • Supports full-text and sliding-window modes; input is only suspicious text and watermark configuration. Full-text tokenizes once, rebuilds green lists using k and each observed previous token, with grouping rules identical to embedding; excludes E and the first token. When there are no protected positions, all remaining positions are scored, including content that was protected during embedding.
    • Reports G/N, and z=(G−γ N)/√(Nγ(1−γ)). Also computes the nominal upper-tail probability Pr[Binomial(N, γ) ≥ G]. Window detection scores overlapping windows on the same tokenization, retains previous tokens from the full text, and applies Bonferroni correction to the scanned windows.
    • Repeated contexts and shared green-list identities may violate the binomial null hypothesis. The authors state that these probabilities, before independent calibration, cannot be interpreted as empirical false-positive guarantees.
  4. What experiments did the paper conduct?

    The authors state that the relative change in pass rates across the four datasets is −2.01% to +0.93%, and 1536 tokens can be detected by the window.

    Experimental Setup

    • Embedding: Watermark embedding uses Qwen3-8B. Robustness experiments use a frozen English watermark version, beam width 5, γ = 0.75, δ = 8, hash key 15485863, embedding seed 123 (Appendix A.2). The paper does not write the downstream embedding's γ and δ together with this line.
    • Downstream execution and judgment: DeepSeek-V4-Flash executes via Open Code, with 1 DeepSeek-V4-Flash judgment per case; the appendix records it as DeepSeek-V4-Flash [1m], and the agent and judge are the same model. Bootstrap 10000 times, seed 20261010; the main text does not report intervals. Expected outputs and scoring materials are not available to the execution agent.
    • Datasets: Daily/general are agent-skills and awesome-skills; professional are marketingskills and skill-use-bench. The paper does not report the number of skills or cases per dataset.
    • Controls and metrics: No skill, original skill, watermarked skill. Each case has a separate directory, giving only the version needed for that setting; no-skill gives neither. Metrics are evaluation check pass rate, average total tokens (including input, cached input, and output, K=1000), and median task time.
    • Robustness: Copy-paste, and skill merging with deepseek-flash (reasoning effort high, max output 65536 tokens). The paper does not state whether deepseek-flash and DeepSeek-V4-Flash are the same model.
    • Quality score: In ablations, instruction quality is a 0–100 blind model overall score, not execution-based functional correctness. The paper does not specify the scoring model.

    Main Results

    According to Table 1, the execution model is DeepSeek-V4-Flash, and numbers are evaluation check pass rates.

    Swipe horizontally to read the table

    Settingagent-skillsawesome-skillsmarketingskillsskill-use-bench
    No skill89.83%82.93%78.10%42.66%
    Original skill97.46%92.03%94.20%59.85%
    Watermarked skill98.25%90.18%93.56%60.41%
    • Pass rate: The authors state the change of watermarked skills relative to original skills is −2.01% to +0.93%, and the gain relative to no skill is retained; this gain is recorded by the authors as 8.49–40.30% (Section 3.2).
    • Overhead: Average total tokens increase by 14.1–29.3% on the first three datasets and decrease by 3.3% on skill-use-bench. Median time increases by 14.5%, 6.0%, 16.4% on agent-skills, awesome-skills, marketingskills, and decreases by 5.3% on skill-use-bench (Figure 3, Section 3.2). Absolute values are in Table 1.
    • Author interpretation: The authors state that functional judgment is based on task performance, not time differences; time is still affected by service load, execution period, and concurrency, and average tokens are sensitive to long-tail distributions.

    Copy-Paste

    • Setup: Three sources, seeds 123, 456, 789; copy 256, 512, 1024, 1536, or 2048 tokens, insert into unwatermarked text of length 1024 or 4096 tokens, with fragment counts of 1, 2, 4, 8. Fragmentation preserves total length and order. Window 1024, stride 256, per-window p ≤ 0.01; the appendix states that nominal probabilities are used here without multiple-testing correction. Average within sources first, then equal-weight across the three sources. The paper does not name the three sources.
    • Detection: The authors state that, under both background lengths, all tested contiguous 1536-token copies are detected by window detection; full-text detection is 55.6% in the longer background (Figure 4). After splitting into 8 fragments in the 4096-token background, detection is 77.8%.
    • Localization: Localization recall for the same 1536-token passage is 98.0–99.1%, with precision 65.4–69.6% (Figure 5). The authors state that windows recover almost all copied content while also including some surrounding text; scattered reuse weakens detection. When there is no significant window, recall is 0 and precision is undefined; if any source has no valid prediction, that cell is N/A. The authors state that results support detection and localization for selected skills with stronger watermark signals.

    Skill Merging

    • Setup: One target skill plus 0, 1, or 3 background skills, with total inputs of 1, 2, 4; background seeds 123, 456, 789. Single window length 3952, stride 1027, threshold p ≤ 0.03332253; multi-scale joint is an OR of 13 component decisions. Detector parameters are selected on the same evaluation queue, with no held-out test set (Appendix A.2). The paper does not report the number of target skills or list the 13 component windows.
    • Results: With total inputs of 1, 2, 4, multi-scale detection rates are 91.7%, 72.2%, 77.8%, and single-window rates are 58.3%, 47.2%, 44.4% (Figure 6). False positives on unwatermarked controls are the same for both methods: 0.0%, 11.1%, 16.7%.
    • Author interpretation: The authors state that detection rates with background skills are lower than with a single input, consistent with unwatermarked content diluting the watermark; the multi-scale decline is not strictly monotonic, but both detectors are lower with background. The authors state that false positives rise with the number of input skills, and detection under larger background noise also requires calibration.

    Component Ablations

    • Setup: 32 skills selected from the four datasets, Qwen3-8B, 3 fixed seeds per skill per configuration; all six configurations retain mandatory literal protection. Average within skills first, then equal-weight across skills. Strength is the full-text z after saving and re-tokenizing; the authors state that average z is not a document-level detection rate (Appendix D).
    • Numbers: SkillMarker quality 70.97, average z = 3.01. Removing the fidelity constraint gives z = 3.37, quality 67.09. Removing beam search, signal-oriented selection, or logit bias gives z = 0.65, 0.69, 0.83, with quality 76.06, 75.50, 73.06. Scoring generated tokens gives quality 70.00, z = 2.98 (Figure 7, Appendix D).
    • Author interpretation: The authors state that the fidelity constraint is used to preserve instructions; the latter three components contribute watermark evidence while overall quality scores are higher. The authors state that these means are insufficient to establish substantial benefit from scoring reconstructed text, and SkillMarker is a balance rather than dominating every alternative. The curves in Figure 7 are called by the authors a visual guide anchored on SkillMarker, not evidence of achievable intermediate configurations.

    Other Ablations and Analyses

    • Case observability-and-instrumentation: protected segments are completely unchanged, with nominal p = 4.62 × 10^{-9} for the saved full text (Figure 8, Appendix C).
    • Appendix C states that original generation defects are preserved, and literal preservation and detection do not establish semantic or functional equivalence.
    • The method section's window detection mentions Bonferroni correction; the copy-paste experiment uses nominal probabilities without multiple-testing correction (Section 2.4, Appendix A.2).
    • Localization precision uses only runs with valid predictions; if a source has no valid prediction, that cell is N/A (Section 3.3.1).
  5. What are some points that can be further explored?

    The paper does not have a dedicated limitations section; the conclusion states that false positives in the control increase, and detection requires calibration.

    Limitations and future directions noted by the authors

    • The paper has no dedicated Limitations, Discussion, or Future Work section. The conclusion states that the elevated control false-positive rate highlights the need for calibration (Conclusion).
    • Appendix C states that literal preservation and detection do not establish semantic or functional equivalence.

    Experimental coverage

    • Downstream coverage includes agent-skills, awesome-skills, marketingskills, skill-use-bench, as well as no-skill, original-skill, and watermarked-skill; the embedding model is Qwen3-8B, execution and judgment are DeepSeek-V4-Flash, with 1 judgment per case (Section 3.1). The paper does not report the number of cases or skills per set.
    • The robustness embedding is an English frozen version, with beam width 5, γ = 0.75, δ = 8 (Appendix A.2). Copy-paste covers three sources, seeds 123/456/789, five copy lengths, two background lengths, and four fragment counts; the window test does not apply multiple-testing correction. The paper does not report the names of the three sources.
    • Skill merging covers total inputs 1, 2, 4, with the merging model being deepseek-flash; it also reports detection rates for single-window and 13-component OR, as well as no-watermark control false positives. Detector parameters are selected on the same evaluation queue, with no held-out test set (Appendix A.2). The paper does not report the number of target skill entries.
    • Ablation covers 32 skills, five components removed or replaced, and 3 seeds per configuration; quality scores are blind model ratings on a 0–100 scale, and the paper does not specify the scoring model (Appendix D).
    • The structured case is one skill, observability-and-instrumentation, using English prompts (Section 3.5, Appendix C).
  6. Summarize the main content of the paper

    The authors report a relative pass-rate change of −2.01% to +0.93%, and merged detection rates of 72.2–77.8%.

    SkillMarker is a KGW watermarking method for ownership verification and leak tracing of agent skills. Plaintext skills are easily copied or incorporated into other skills, but compact instructions require preserving facts, conditions, and actions, leaving few positions available for rewriting.

    The approach marks code, structural delimiters, and literals as protected and preserves them as-is, rewriting only editable fragments. A fidelity prompt and checks constrain operational requirements; beam search generates candidates under green-list bias that exempts format tokens, and after full-text re-tokenization, selection favors a higher green-token rate and lower perplexity. Detection does not run a model and can perform full-text or sliding-window tests, reporting z and the nominal binomial upper-tail probability.

    • On DeepSeek-V4-Flash, the change in check pass rate of watermarked skills relative to original skills across the four datasets is −2.01% to +0.93%; agent-skills is 97.46% and 98.25%, and skill-use-bench is 59.85% and 60.41% (Table 1, Section 3.2).
    • Window detection detects all tested consecutive 1536-token copies in both 1024- and 4096-token contexts; full-text detection for the longer context is 55.6%, and 77.8% with eight fragments (Figure 4).
    • Localization recall for the above 1536-token copies is 98.0–99.1%, with precision 65.4–69.6% (Figure 5).
    • After merging with 0, 1, and 3 background skills, multi-scale detection rates are 91.7%, 72.2%, and 77.8%; no-watermark control false positives are 0.0%, 11.1%, and 16.7% (Figure 6).
    • In the ablation, SkillMarker has an average z of 3.01 and quality 70.97; removing the fidelity constraint gives z of 3.37 and quality 67.09 (Figure 7).

    The authors state in the conclusion that fragmentation weakens detection and localization, additional background weakens detection, and elevated control false positives highlight the need for calibration; these findings support using watermarking as a direction for skill ownership verification and leak tracing.

Read originalhuggingface.co