Papers › Addressing Tokenization Inconsistency in Steganography and Watermarking Based on Large...

Addressing Tokenization Inconsistency in Steganography and Watermarking Based on Large Language Models

28 Aug 2025EMNLParXiv:2508.20718added by Syntology

Ruiyi Yan, Yugo Murawaki

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Large language models have significantly enhanced the capacities and efficiency of text generation. On the one hand, they have improved the quality of text-based steganography. On the other hand, they have also underscored the importance of watermarking as a safeguard against malicious misuse. In this study, we focus on tokenization inconsistency (TI) between Alice and Bob in steganography and watermarking, where TI can undermine robustness. Our investigation reveals that the problematic tokens responsible for TI exhibit two key characteristics: infrequency and temporariness. Based on these findings, we propose two tailored solutions for TI elimination: a stepwise verification method for steganography and a post-hoc rollback method for watermarking. Experiments show that (1) compared to traditional disambiguation methods in steganography, directly addressing TI leads to improvements in fluency, imperceptibility, and anti-steganalysis capacity; (2) for watermarking, addressing TI enhances detectability and robustness against attacks.

PaperPDFCode 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="2508.20718")

Code

Syntology Ran 0 of 28 code samples harvested from 1 repository linked to this paper; 28 have no recorded run.

By repository: found in paper text by Syntology: 28 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ryehr/Consistency found in paper text by SyntologyMIT report

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

28 samples harvested; 0 ran; 0 honoured the contract we drafted; 28 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.

28unverified

Licence: 0 of the 28 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 ryehr/Consistency. “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.

Attack ryehr/Consistency/legacy/Attack_watermark.py found in paper text by Syntology unverified MIT (permissive) · 4641dca1ac6eb907 · report
BFS_Forest ryehr/Consistency/legacy/Steganography_AC.py found in paper text by Syntology unverified MIT (permissive) · 387c8b512864a0af · report
auroc ryehr/Consistency/src/tokenization_consistency/metrics.py found in paper text by Syntology unverified MIT (permissive) · b4056ca2c7273447 · report
bits_to_int ryehr/Consistency/src/tokenization_consistency/coding.py found in paper text by Syntology unverified MIT (permissive) · 3dbcb9239a7c5714 · report
build_pool ryehr/Consistency/src/tokenization_consistency/pools.py found in paper text by Syntology unverified MIT (permissive) · 095cfc085919059d · report
build_scheme ryehr/Consistency/src/tokenization_consistency/watermark.py found in paper text by Syntology unverified MIT (permissive) · eb377f276544ba23 · report
connected_components ryehr/Consistency/src/tokenization_consistency/pools.py found in paper text by Syntology unverified MIT (permissive) · 1e9caf3fe5683350 · report
detect_logits ryehr/Consistency/legacy/Attack_watermark.py found in paper text by Syntology unverified MIT (permissive) · f17126ea771603c1 · report
detect_sample ryehr/Consistency/legacy/Attack_watermark.py found in paper text by Syntology unverified MIT (permissive) · 60c2a54ff9a5f505 · report
detokenize ryehr/Consistency/src/tokenization_consistency/tokenization.py found in paper text by Syntology unverified MIT (permissive) · 3e44617c05f9e47c · report
extract ryehr/Consistency/src/tokenization_consistency/steganography.py found in paper text by Syntology unverified MIT (permissive) · 8d89fac0921013bf · report
find_MWIS ryehr/Consistency/legacy/Steganography_AC.py found in paper text by Syntology unverified MIT (permissive) · 3ffd6721b8bfdc72 · report
find_connected_components ryehr/Consistency/legacy/Steganography_AC.py found in paper text by Syntology unverified MIT (permissive) · 732a129f77e46327 · report
generate ryehr/Consistency/src/tokenization_consistency/watermark.py found in paper text by Syntology unverified MIT (permissive) · 4abde2ebde77264f · report
int_to_bits ryehr/Consistency/src/tokenization_consistency/coding.py found in paper text by Syntology unverified MIT (permissive) · 5ffb963b558d4020 · report
investigate_sample ryehr/Consistency/src/tokenization_consistency/investigation.py found in paper text by Syntology unverified MIT (permissive) · 977a377dfb7a62eb · report
is_consistent ryehr/Consistency/src/tokenization_consistency/tokenization.py found in paper text by Syntology unverified MIT (permissive) · 6b381d638094c710 · report
load_model_and_tokenizer ryehr/Consistency/src/tokenization_consistency/models.py found in paper text by Syntology unverified MIT (permissive) · e037ac1be5c9f57f · report
maximum_weight_independent_set ryehr/Consistency/src/tokenization_consistency/pools.py found in paper text by Syntology unverified MIT (permissive) · 6ee52ae650174e0a · report
mean ryehr/Consistency/src/tokenization_consistency/metrics.py found in paper text by Syntology unverified MIT (permissive) · 4ef553fc5d98847b · report
perplexity ryehr/Consistency/src/tokenization_consistency/metrics.py found in paper text by Syntology unverified MIT (permissive) · 7052cf29d24fe56c · report
random_replacement_attack ryehr/Consistency/src/tokenization_consistency/attacks.py found in paper text by Syntology unverified MIT (permissive) · 3a5b6ac4ead1ed5d · report
recovery_distribution ryehr/Consistency/src/tokenization_consistency/investigation.py found in paper text by Syntology unverified MIT (permissive) · a90482521c45be59 · report
retokenize ryehr/Consistency/src/tokenization_consistency/tokenization.py found in paper text by Syntology unverified MIT (permissive) · 5b46c539ade01f31 · report
score_tokens ryehr/Consistency/src/tokenization_consistency/watermark.py found in paper text by Syntology unverified MIT (permissive) · f1eb7814aeb2ccd0 · report
summarize ryehr/Consistency/src/tokenization_consistency/investigation.py found in paper text by Syntology unverified MIT (permissive) · b4e26afc7a14e237 · report
usable_vocab_size ryehr/Consistency/src/tokenization_consistency/models.py found in paper text by Syntology unverified MIT (permissive) · 9c8e4cc94318e9f1 · report
write_run_metadata ryehr/Consistency/src/tokenization_consistency/io_utils.py found in paper text by Syntology unverified MIT (permissive) · 7082b6ec7f7b94ef · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2508.20718, was issued in August 2025, after that date, so the archive has no leaderboard rows for it.

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