SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.14007 · ACL · 2024

Can Watermarks Survive Translation? On the Cross-lingual Consistency of Text Watermark for Large Language Models

Rui Wang, Zhaopeng Tu, Zhiwei He, Hongkun Hao, Xing Wang, Zhuosheng Zhang, Aiwei Liu, Binglin Zhou

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 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; 4 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 8 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.14007.json · badge: /api/ran/2402.14007.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
zwhe99/x-sir canonical (classifier label)
classifier basis: census
15 ran · 1 no recorded run
FunctionStatusWhere it lives
abs_value_penalty Ran
ran, honoured the contract we drafted
zwhe99/x-sir/src_watermark/xsir/train_watermark_model.py
pointer only (licence: NONE); the stored copy get_code serves, from thu-bpm/robust_watermark, is pointer only (licence: NONE) · get_code("bfd0c083d141f8bc")
How it ran

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

api_endpoint_from_url Ran
ran; our contract draft was wrong, not the code
zwhe99/x-sir/attack/call_openai.py
pointer only (licence: NONE) · get_code("4d9eaca9e25c5a7a")
How it ran

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

cosine_similarity Ran
ran, honoured the contract we drafted
zwhe99/x-sir/src_watermark/xsir/train_watermark_model.py
pointer only (licence: NONE); the stored copy get_code serves, from thu-bpm/robust_watermark, is pointer only (licence: NONE) · get_code("2a673044a613aa62")
How it ran

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

cosine_similarity_matrix Ran
ran; our contract draft was wrong, not the code
zwhe99/x-sir/src_watermark/xsir/analysis_transform_model.py
pointer only (licence: NONE) · get_code("dbede5fea315d93e")
How it ran

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

f1_at_fpr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zwhe99/x-sir/eval_detection.py
pointer only (licence: NONE) · get_code("6b03cbdf4ab61335")
How it ran

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

get_length Ran
ran, honoured the contract we drafted
zwhe99/x-sir/detect.py
pointer only (licence: NONE) · get_code("eb89e25daf2eed19")
How it ran

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

is_nan Ran
ran, violated the contract we drafted
zwhe99/x-sir/detect.py
pointer only (licence: NONE) · get_code("f543373009352e55")
How it ran

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

ngrams Ran
ran; our contract draft was wrong, not the code
zwhe99/x-sir/src_watermark/kgw/extended_watermark_processor.py
pointer only (licence: NONE) · get_code("173c14a0656644b7")
How it ran

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

read_jsonl Ran
ran; our contract draft was wrong, not the code
zwhe99/x-sir/utils.py
pointer only (licence: NONE) · get_code("8f17a72bd2c9a658")
How it ran

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

row_col_mean_penalty Ran
ran, honoured the contract we drafted
zwhe99/x-sir/src_watermark/xsir/train_watermark_model.py
pointer only (licence: NONE); the stored copy get_code serves, from thu-bpm/robust_watermark, is pointer only (licence: NONE) · get_code("b775e4c71d0af9d1")
How it ran

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

scale_vector_batch Ran
ran; our contract draft was wrong, not the code
zwhe99/x-sir/src_watermark/xsir/analysis_transform_model.py
pointer only (licence: NONE) · get_code("46db886107625f74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zwhe99/x-sir 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
zwhe99/x-sir/src_watermark/kgw/alternative_prf_schemes.py
pointer only (licence: NONE) · get_code("35f26650b468f7cd")
How it ran

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

tpr_at_fpr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zwhe99/x-sir/eval_detection.py
pointer only (licence: NONE) · get_code("62b1389436edf010")
How it ran

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

num_tokens_consumed_from_request Not yet run
unverified (harvested, no recorded run)
zwhe99/x-sir/attack/call_openai.py
pointer only (licence: NONE) · get_code("0bb66ead98840b56")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zwhe99/x-sir 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 3 later) and 9 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
ngrams 5 other papers
5 dated earlier
2306.04634 (2023-06)
On the Reliability of Watermarks for Large Language Models
2306.17439 (2023-06)
Provable Robust Watermarking for AI-Generated Text
2308.00113 (2023-08)
Three Bricks to Consolidate Watermarks for Large Language Models
and 2 more not named here
additive_prf 3 other papers
1 dated earlier, 2 later
2311.08721 (2023-11)
A Robust Semantics-based Watermark for Large Language Model against Paraphrasing
2403.13027 (2024-03)
Towards Better Statistical Understanding of Watermarking LLMs
2403.17983 (2024-03)
Is The Watermarking Of LLM-Generated Code Robust?
multiplicative_prf 3 other papers
1 dated earlier, 2 later
2311.08721 (2023-11)
A Robust Semantics-based Watermark for Large Language Model against Paraphrasing
2403.13027 (2024-03)
Towards Better Statistical Understanding of Watermarking LLMs
2403.17983 (2024-03)
Is The Watermarking Of LLM-Generated Code Robust?
api_endpoint_from_url 2 other papers
2 later
2403.06754 (2024-03)
ALaRM: Align Language Models via Hierarchical Rewards Modeling
2025.findings-acl.605 (2025 (year only))
LEMMA: Learning from Errors for MatheMatical Advancement in LLMs
abs_value_penalty 1 other paper
1 dated earlier
2310.06356 (2023-10)
A Semantic Invariant Robust Watermark for Large Language Models
cosine_similarity 1 other paper
1 dated earlier
2310.06356 (2023-10)
A Semantic Invariant Robust Watermark for Large Language Models
row_col_mean_penalty 1 other paper
1 dated earlier
2310.06356 (2023-10)
A Semantic Invariant Robust Watermark for Large 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-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

Text watermarking technology aims to tag and identify content produced by large language models (LLMs) to prevent misuse. In this study, we introduce the concept of "cross-lingual consistency" in text watermarking, which assesses the ability of text watermarks to maintain their effectiveness after being translated into other languages. Preliminary empirical results from two LLMs and three watermarking methods reveal that current text watermarking technologies lack consistency when texts are translated into various languages. Based on this observation, we propose a Cross-lingual Watermark Removal Attack (CWRA) to bypass watermarking by first obtaining a response from an LLM in a pivot language, which is then translated into the target language. CWRA can effectively remove watermarks, decreasing the AUCs to a random-guessing level without performance loss. Furthermore, we analyze two key factors that contribute to the cross-lingual consistency in text watermarking and propose X-SIR as a defense method against CWRA.

For agents

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

get_harvested_code_for_paper("2402.14007")
get_code_for_paper("2402.14007")
have("2402.14007")

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

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

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

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

Connect an agent — have() is free.