SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.18059 · 2024

Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

14 of 15 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2402.18059.json · badge: /api/ran/2402.18059.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
mignonjia/ts_watermark canonical (classifier label)
classifier basis: census
14 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_entropy Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/generation.py
pointer only (licence: NONE) · get_code("6f3e19b647ed821b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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
mignonjia/ts_watermark/utils/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from zhongzecai/dualga, is 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, mignonjia/ts_watermark 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.

data_loader Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/data_loader.py
pointer only (licence: NONE) · get_code("ee0a7309525621bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

flatten_dict Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/submitit.py
pointer only (licence: NONE) · get_code("55a42447218367a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

format_names Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/eval/pos_tag/inference_phase2_loss_delta_analysis.py
pointer only (licence: NONE) · get_code("c34d2d98e001e81a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

gumbel_softmax Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/generation.py
pointer only (licence: NONE) · get_code("d474025fbccd785b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

hf_read_jsonlines Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/io.py
pointer only (licence: NONE) · get_code("a10c064d5a6fa969")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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_format_scores Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/eval/pos_tag/inference_phase2_loss_delta_analysis.py
pointer only (licence: NONE) · get_code("b5b35a58375952bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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_jsonlines Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/io.py
pointer only (licence: NONE); the stored copy get_code serves, from Kasraarabi/Hidden-in-the-Noise, is pointer only (licence: NONE) · get_code("81cef8be4a138b63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

resolve_globs Ran
ran; our contract draft was wrong, not the code
mignonjia/ts_watermark/utils/io.py
pointer only (licence: NONE); the stored copy get_code serves, from Kasraarabi/Hidden-in-the-Noise, is pointer only (licence: NONE) · get_code("afbb28c04b32db08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

rle_F_succ_T_runs Ran
ran, honoured the contract we drafted
mignonjia/ts_watermark/utils/hypothesis_testing.py
pointer only (licence: NONE) · get_code("131fdd3faaf439a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

rle_T_and_F_runs Ran
ran, honoured the contract we drafted
mignonjia/ts_watermark/utils/hypothesis_testing.py
pointer only (licence: NONE) · get_code("728890eedd651e54")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

rle_T_succ_F_runs Ran
ran, honoured the contract we drafted
mignonjia/ts_watermark/utils/hypothesis_testing.py
pointer only (licence: NONE) · get_code("e1ed301d401de50d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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.

str2bool Ran
ran, violated the contract we drafted
mignonjia/ts_watermark/utils/submitit.py
pointer only (licence: NONE) · get_code("7c508037b40522af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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_model Not yet run
unverified (harvested, no recorded run)
mignonjia/ts_watermark/utils/generation.py
pointer only (licence: NONE) · get_code("8d0aa0b282b57db6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mignonjia/ts_watermark 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 5 later) and 10 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
str2bool 175 other papers
104 dated earlier, 8 the same month, 62 later, 1 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
load_jsonlines 6 other papers
1 dated earlier, 5 later
2306.17194 (2023-06)
On the Exploitability of Instruction Tuning
2404.04956 (2024-04)
Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
2404.14055 (2024-04)
RingID: Rethinking Tree-Ring Watermarking for Enhanced Multi-Key Identification
and 3 more not named here
hf_read_jsonlines 4 other papers
4 later
2404.04956 (2024-04)
Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
2404.14055 (2024-04)
RingID: Rethinking Tree-Ring Watermarking for Enhanced Multi-Key Identification
2411.03862 (2024-11)
ROBIN: Robust and Invisible Watermarks for Diffusion Models with Adversarial Optimization
and 1 more not named here
resolve_globs 4 other papers
4 later
2404.04956 (2024-04)
Gaussian Shading: Provable Performance-Lossless Image Watermarking for Diffusion Models
2404.14055 (2024-04)
RingID: Rethinking Tree-Ring Watermarking for Enhanced Multi-Key Identification
2411.03862 (2024-11)
ROBIN: Robust and Invisible Watermarks for Diffusion Models with Adversarial Optimization
and 1 more not named here
conditional_no_check_args 1 other paper
1 later
2403.13027 (2024-03)
Towards Better Statistical Understanding of Watermarking LLMs

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-22.

Repositories linked to this paper

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

Abstract

Large language models generate high-quality responses with potential misinformation, underscoring the need for regulation by distinguishing AI-generated and human-written texts. Watermarking is pivotal in this context, which involves embedding hidden markers in texts during the LLM inference phase, which is imperceptible to humans. Achieving both the detectability of inserted watermarks and the semantic quality of generated texts is challenging. While current watermarking algorithms have made promising progress in this direction, there remains significant scope for improvement. To address these challenges, we introduce a novel multi-objective optimization (MOO) approach for watermarking that utilizes lightweight networks to generate token-specific watermarking logits and splitting ratios. By leveraging MOO to optimize for both detection and semantic objective functions, our method simultaneously achieves detectability and semantic integrity. Experimental results show that our method outperforms current watermarking techniques in enhancing the detectability of texts generated by LLMs while maintaining their semantic coherence. Our code is available at https://github.com/mignonjia/TS_watermark.

For agents

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

get_harvested_code_for_paper("2402.18059")
get_code_for_paper("2402.18059")
have("2402.18059")

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

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

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

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

Connect an agent — have() is free.