SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.13027 · 2024

Towards Better Statistical Understanding of Watermarking LLMs

arXiv · PDF · Open in the Atlas

Code that ran

19 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 17 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.13027.json · badge: /api/ran/2403.13027.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhongzecai/dualga canonical (classifier label)
classifier basis: census
19 ran · 4 no recorded run
FunctionStatusWhere it lives
DGt Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/DualGD_generator.py
pointer only (licence: NONE) · get_code("88258837d760b644")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

KLt Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/DualGD_generator.py
pointer only (licence: NONE) · get_code("bcc348526121329b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

add_idx Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/data_processing.py
pointer only (licence: NONE) · get_code("5213b646c1f83e4a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

additive_prf Ran
ran, violated the contract we drafted
zhongzecai/dualga/WatermarkAlgorithm/utils/alternative_prf_schemes.py
pointer only (licence: NONE); the stored copy get_code serves, from uiuc-arc/llm-code-watermark, is pointer only (licence: NONE) · get_code("3e107246e54539b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

concat_rows Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/evaluation.py
pointer only (licence: NONE) · get_code("428e9dd9cdeca201")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conditional_no_check_args Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/evaluation.py
pointer only (licence: NONE) · get_code("4ea6b15c91ca13a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

deletion_attack Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_light.py
pointer only (licence: NONE) · get_code("8880355eca496e49")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

denom_func Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/DualGD_generator.py
pointer only (licence: NONE) · get_code("a621beb4ebc978ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dict_remove Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/data_processing.py
pointer only (licence: NONE) · get_code("c88510de06c5a48b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

insertion_attack Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_light.py
pointer only (licence: NONE) · get_code("2b0288f4b606671b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_of_strings Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/DualGD_generate.py
pointer only (licence: NONE) · get_code("19ee4683eda506c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_of_strings Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/MinACF_eval.py
pointer only (licence: NONE) · get_code("571045e954da6d27")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_relative_jsonl_file_paths Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/ppl.py
pointer only (licence: NONE) · get_code("142c8b133ed9f266")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_full_results Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/MinACF_eval.py
pointer only (licence: NONE) · get_code("ee2e7209ff4d37fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

multiplicative_prf Ran
ran, violated the contract we drafted
zhongzecai/dualga/WatermarkAlgorithm/utils/alternative_prf_schemes.py
pointer only (licence: NONE); the stored copy get_code serves, from uiuc-arc/llm-code-watermark, is pointer only (licence: NONE) · get_code("ab84746bf94016d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

seeding_scheme_lookup Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/alternative_prf_schemes.py
pointer only (licence: NONE); the stored copy get_code serves, from uiuc-arc/llm-code-watermark, is pointer only (licence: NONE) · get_code("97bace61e91ab919")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

single_insertion Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_advanced.py
pointer only (licence: NONE) · get_code("f6febe281ce78bb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

substitution_attack Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_light.py
pointer only (licence: NONE) · get_code("3310b2d9bf130318")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

triple_insertion_single_len Ran
ran; our contract draft was wrong, not the code
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_advanced.py
pointer only (licence: NONE) · get_code("b9619a7b2e06f6ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gen_watermarked_n_unwatermarked Not yet run
unverified (harvested, no recorded run)
zhongzecai/dualga/WatermarkAlgorithm/utils/generating.py
pointer only (licence: NONE) · get_code("0ff1af55ee3a1d09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_dipper_paraphrases Not yet run
unverified (harvested, no recorded run)
zhongzecai/dualga/WatermarkAlgorithm/utils/attack_advanced.py
pointer only (licence: NONE) · get_code("0b925ea9412f4d08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_hf_dataset Not yet run
unverified (harvested, no recorded run)
zhongzecai/dualga/WatermarkAlgorithm/utils/data_processing.py
pointer only (licence: NONE) · get_code("86b01270fe49c4d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_tokenizer Not yet run
unverified (harvested, no recorded run)
zhongzecai/dualga/WatermarkAlgorithm/utils/evaluation.py
pointer only (licence: NONE) · get_code("ff61ef7b3942bc85")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhongzecai/dualga when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 1 later) and 16 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
list_of_strings 8 other papers
4 dated earlier, 4 later
2112.05745 (2021-12)
A Simple and Efficient Sampling-based Algorithm for General Reachability Analysis
2308.13320 (2023-08)
Fine-tuning can cripple your foundation model; preserving features may be the solution
2310.19046 (2023-10)
Large Language Models as Evolutionary Optimizers
and 5 more not named here
additive_prf 3 other papers
2 dated earlier, 1 the same month
2311.08721 (2023-11)
A Robust Semantics-based Watermark for Large Language Model against Paraphrasing
2402.14007 (2024-02)
Can Watermarks Survive Translation? On the Cross-lingual Consistency of Text Watermark for Large Language Models
2403.17983 (2024-03)
Is The Watermarking Of LLM-Generated Code Robust?
multiplicative_prf 3 other papers
2 dated earlier, 1 the same month
2311.08721 (2023-11)
A Robust Semantics-based Watermark for Large Language Model against Paraphrasing
2402.14007 (2024-02)
Can Watermarks Survive Translation? On the Cross-lingual Consistency of Text Watermark for Large Language Models
2403.17983 (2024-03)
Is The Watermarking Of LLM-Generated Code Robust?
conditional_no_check_args 1 other paper
1 dated earlier
2402.18059 (2024-02)
Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models
insertion_attack 1 other paper
1 dated earlier
2307.15593 (2023-07)
Robust Distortion-free Watermarks for Language Models
seeding_scheme_lookup 1 other paper
1 the same month
2403.17983 (2024-03)
Is The Watermarking Of LLM-Generated Code Robust?
substitution_attack 1 other paper
1 dated earlier
2307.15593 (2023-07)
Robust Distortion-free Watermarks for Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In this paper, we study the problem of watermarking large language models (LLMs). We consider the trade-off between model distortion and detection ability and formulate it as a constrained optimization problem based on the red-green list watermarking algorithm. We show that the optimal solution to the optimization problem enjoys a nice analytical property which provides a better understanding and inspires the algorithm design for the watermarking process. We develop an online dual gradient ascent watermarking algorithm in light of this optimization formulation and prove its asymptotic Pareto optimality between model distortion and detection ability. Such a result guarantees an averaged increased green list probability and henceforth detection ability explicitly (in contrast to previous results). Moreover, we provide a systematic discussion on the choice of the model distortion metrics for the watermarking problem. We justify our choice of KL divergence and present issues with the existing criteria of ``distortion-free'' and perplexity. Finally, we empirically evaluate our algorithms on extensive datasets against benchmark algorithms.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.13027")
get_code_for_paper("2403.13027")
have("2403.13027")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.13027.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.13027.svg)](https://syntology.ai/paper/2403.13027)

Connect an agent — have() is free.