Papers › Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for...

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

28 Feb 2024arXiv:2402.18059archive 2025-07-28

Mingjia Huo, Sai Ashish Somayajula, Youwei Liang, Ruisi Zhang, Farinaz Koushanfar, Pengtao Xie

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.18059")

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 11 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mignonjia/ts_watermark officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 12 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
11ran
3unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mignonjia/ts_watermark. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_entropy mignonjia/ts_watermark/utils/generation.py official repository ran no licence file found · pointer only · 6f3e19b647ed821b · report
conditional_no_check_args mignonjia/ts_watermark/utils/evaluation.py official repository ran no licence file found · pointer only · 4ea6b15c91ca13a0 · report
data_loader mignonjia/ts_watermark/utils/data_loader.py official repository ran no licence file found · pointer only · ee0a7309525621bf · report
flatten_dict mignonjia/ts_watermark/utils/submitit.py official repository ran no licence file found · pointer only · 55a42447218367a6 · report
format_names mignonjia/ts_watermark/eval/pos_tag/inference_phase2_loss_delta_analysis.py official repository ran fingerprinted no licence file found · pointer only · c34d2d98e001e81a · report
gumbel_softmax mignonjia/ts_watermark/utils/generation.py official repository ran no licence file found · pointer only · d474025fbccd785b · report
hf_read_jsonlines mignonjia/ts_watermark/utils/io.py official repository ran no licence file found · pointer only · a10c064d5a6fa969 · report
list_format_scores mignonjia/ts_watermark/eval/pos_tag/inference_phase2_loss_delta_analysis.py official repository ran no licence file found · pointer only · b5b35a58375952bb · report
rle_F_succ_T_runs mignonjia/ts_watermark/utils/hypothesis_testing.py official repository ran no licence file found · pointer only · 131fdd3faaf439a2 · report
rle_T_and_F_runs mignonjia/ts_watermark/utils/hypothesis_testing.py official repository ran no licence file found · pointer only · 728890eedd651e54 · report
rle_T_succ_F_runs mignonjia/ts_watermark/utils/hypothesis_testing.py official repository ran no licence file found · pointer only · e1ed301d401de50d · report
str2bool mignonjia/ts_watermark/utils/submitit.py official repository ran · violated contract no licence file found · pointer only · 7c508037b40522af · report
load_jsonlines mignonjia/ts_watermark/utils/io.py official repository unverified no licence file found · pointer only · 81cef8be4a138b63 · report
load_model mignonjia/ts_watermark/utils/generation.py official repository unverified no licence file found · pointer only · 8d0aa0b282b57db6 · report
resolve_globs mignonjia/ts_watermark/utils/io.py official repository unverified no licence file found · pointer only · afbb28c04b32db08 · report

Tasks

Misinformation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections