SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2301.10226 · ICML · 2023

A Watermark for Large Language Models

Tom Goldstein, Jonas Geiping, Yuxin Wen, John Kirchenbauer, Jonathan Katz, Ian Miers

arXiv · PDF · Open in the Atlas

Code that ran

11 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 8 have no contract verdict; 1 failure of our instrument; 5 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/2301.10226.json · badge: /api/ran/2301.10226.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
jwkirchenbauer/lm-watermarking canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
Xieyangxinyu/Unbiased-Watermark-via-Maximal-Coupling community
Papers with Code archive
4 ran · 0 no recorded run
facebookresearch/three_bricks community
Papers with Code archive
2 ran · 0 no recorded run
BrianPulfer/LMWatermark community
Papers with Code archive
2 ran · 0 no recorded run
eva-giboulot/watermax community
Papers with Code archive
1 ran · 0 no recorded run
fyyfu/semantic-watermark community
Papers with Code archive
0 ran · 2 no recorded run
chengez/adversarial-paraphrasing community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
ContextMasking Ran
ran on a synthesized input · constructed an object; no result was computed
Xieyangxinyu/Unbiased-Watermark-via-Maximal-Coupling/wm/coupling.py
code served (permissive licence) · get_code("f26efcccf5a3772f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, ContextMasking: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for ContextMasking.__init__
ARGS = {
    'repeated_context_masking': True,
    'batch_size': 2,
    'context_history_size': 4,
    'device': torch.device('cpu')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ContextMasking — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ContextMasking output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
CouplingGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
Xieyangxinyu/Unbiased-Watermark-via-Maximal-Coupling/wm/coupling.py
code served (permissive licence) · get_code("42f6923bf0733dbe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, CouplingGenerator: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import AutoTokenizer, AutoModelForCausalLM

torch.manual_seed(0)

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.vocab_size = 1000
        self.pad_token_id = 0
        self.eos_token_id = 2
    
    def encode(self, text, add_special_tokens=False):
        # Return a small list of token ids
        return [1, 2, 3]
    
    def decode(self, tokens):
        return "decoded text"

# Create a minimal mock model
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.device_attr = torch.device('cpu')
        self.config = type('Config', (), {
            'pad_token_id': 0,
            'eos_token_id': 2,
            'vocab_size': 1000
        })()
        self.linear = nn.Linear(10, 1000)
    
    @property
    def device(self):
        return self.device_attr
    
    def forward(self, input_ids, attention_mask=None):
        batch_size, seq_len = input_ids.shape
        logits = torch.randn(batch_size, seq_len, 1000)
        return type('Output', (), {'logits': logits})()

# Instantiate mock objects
mock_model = MockModel()
mock_tokenizer = MockTokenizer()

# Define arguments for WmGenerator
ARGS = {
    'model': mock_model,
    'tokenizer': mock_tokenizer,
    'ngram': 1,
    'seed': 0,
    'seeding': 'hash',
    'salt_key': 35317,
    'repeated_context_masking': True,
    'context_history_size': 3,
    'save_path': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CouplingGenerator — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CouplingGenerator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MarylandGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/three_bricks/wm/generator.py
pointer only (licence: NOASSERTION) · get_code("e4a6e1de65880ce7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/three_bricks (NOASSERTION). 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.

OpenaiGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
Xieyangxinyu/Unbiased-Watermark-via-Maximal-Coupling/wm/coupling.py
code served (permissive licence) · get_code("b773c77757980226")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, OpenaiGenerator: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import AutoTokenizer, AutoModelForCausalLM

torch.manual_seed(0)

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.vocab_size = 1000
        self.pad_token_id = 0
        self.eos_token_id = 2
    
    def encode(self, text, add_special_tokens=False):
        # Simple mock: convert text length to token ids
        return [i % self.vocab_size for i in range(len(text.split()) + 1)]
    
    def decode(self, token_ids):
        return "mock text"

# Create a minimal mock model
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.config = type('obj', (object,), {
            'pad_token_id': 0,
            'eos_token_id': 2,
            'vocab_size': 1000
        })()
        self.device = torch.device('cpu')
        self.linear = nn.Linear(768, 1000)
    
    def __call__(self, input_ids, attention_mask=None):
        # Mock forward pass
        batch_size = input_ids.shape[0]
        seq_len = input_ids.shape[1]
        logits = torch.randn(batch_size, seq_len, 1000)
        return type('obj', (object,), {'logits': logits})()

tokenizer = MockTokenizer()
model = MockModel()

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'ngram': 2,
    'seed': 42,
    'seeding': 'hash',
    'salt_key': 35317,
    'repeated_context_masking': True,
    'context_history_size': 5,
    'save_path': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OpenaiGenerator — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a OpenaiGenerator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
WatermarkLogitsProcessor Ran
ran on a synthesized input
jwkirchenbauer/lm-watermarking/watermark_processor.py
code served (permissive licence) · get_code("63e6607939ea84a0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import LogitsProcessor

class WatermarkBase:

    def __init__(self, vocab: list[int]=None, gamma: float=0.5, delta: float=2.0, seeding_scheme: str='simple_1', hash_key: int=15485863, select_green_tokens: bool=True):
        self.vocab = vocab
        self.vocab_size = len(vocab)
        self.gamma = gamma
        self.delta = delta
        self.seeding_scheme = seeding_scheme
        self.rng = None
        self.hash_key = hash_key
        self.select_green_tokens = select_green_tokens

    def _seed_rng(self, input_ids: torch.LongTensor, seeding_scheme: str=None) -> None:
        if seeding_scheme is None:
            seeding_scheme = self.seeding_scheme
        if seeding_scheme == 'simple_1':
            assert input_ids.shape[-1] >= 1, f'seeding_scheme={seeding_scheme} requires at least a 1 token prefix sequence to seed rng'
            prev_token = input_ids[-1].item()
            self.rng.manual_seed(self.hash_key * prev_token)
        else:
            raise NotImplementedError(f'Unexpected seeding_scheme: {seeding_scheme}')
        return

    def _get_greenlist_ids(self, input_ids: torch.LongTensor) -> list[int]:
        self._seed_rng(input_ids)
        greenlist_size = int(self.vocab_size * self.gamma)
        vocab_permutation = torch.randperm(self.vocab_size, device=input_ids.device, generator=self.rng)
        if self.select_green_tokens:
            greenlist_ids = vocab_permutation[:greenlist_size]
        else:
            greenlist_ids = vocab_permutation[self.vocab_size - greenlist_size:]
        return greenlist_ids

class WatermarkLogitsProcessor(WatermarkBase, LogitsProcessor):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def _calc_greenlist_mask(self, scores: torch.FloatTensor, greenlist_token_ids) -> torch.BoolTensor:
        green_tokens_mask = torch.zeros_like(scores)
        for b_idx in range(len(greenlist_token_ids)):
            green_tokens_mask[b_idx][greenlist_token_ids[b_idx]] = 1
        final_mask = green_tokens_mask.bool()
        return final_mask

    def _bias_greenlist_logits(self, scores: torch.Tensor, greenlist_mask: torch.Tensor, greenlist_bias: float) -> torch.Tensor:
        scores[greenlist_mask] = scores[greenlist_mask] + greenlist_bias
        return scores

    def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor) -> torch.FloatTensor:
        if self.rng is None:
            self.rng = torch.Generator(device=input_ids.device)
        batched_greenlist_ids = [None for _ in range(input_ids.shape[0])]
        for b_idx in range(input_ids.shape[0]):
            greenlist_ids = self._get_greenlist_ids(input_ids[b_idx])
            batched_greenlist_ids[b_idx] = greenlist_ids
        green_tokens_mask = self._calc_greenlist_mask(scores=scores, greenlist_token_ids=batched_greenlist_ids)
        scores = self._bias_greenlist_logits(scores=scores, greenlist_mask=green_tokens_mask, greenlist_bias=self.delta)
        return scores


INIT_ARGS = {
    'vocab': list(range(100)),
    'gamma': 0.5,
    'delta': 2.0,
    'seeding_scheme': 'simple_1',
    'hash_key': 15485863,
    'select_green_tokens': True,
}

ARGS = {
    'input_ids': torch.tensor([[5, 10, 15], [20, 25, 30]]),
    'scores': torch.randn(2, 100),
}

METHOD = '__call__'

if __name__ == '__main__':
    processor = WatermarkLogitsProcessor(**INIT_ARGS)
    output = processor(**ARGS)
    print("Output shape:", output.shape)
    print("Output dtype:", output.dtype)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WmGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
eva-giboulot/watermax/models/wm.py
pointer only (licence: NONE) · get_code("13b864aa60fdbcdd")
How it ran

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

WmGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/three_bricks/wm/generator.py
pointer only (licence: NOASSERTION) · get_code("84002164ce29edb7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/three_bricks (NOASSERTION). 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.

WmGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
Xieyangxinyu/Unbiased-Watermark-via-Maximal-Coupling/wm/coupling.py
code served (permissive licence) · get_code("1df0136501003b60")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, WmGenerator: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal mock model
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.device = torch.device('cpu')
        self.config = MockConfig()
        self.linear = nn.Linear(10, 10)
    
    def forward(self, input_ids):
        return torch.randn(2, 4, 100)

class MockConfig:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 1
        self.vocab_size = 100

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.vocab_size = 100
    
    def encode(self, text, add_special_tokens=False):
        return [1, 2, 3]
    
    def decode(self, ids):
        return "test"

# Instantiate mocks
model = MockModel()
tokenizer = MockTokenizer()

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'ngram': 2,
    'seed': 42,
    'seeding': 'hash',
    'salt_key': 35317,
    'repeated_context_masking': True,
    'context_history_size': 5,
    'save_path': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WmGenerator — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WmGenerator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
default_hash_fn Ran
ran, honoured the contract we drafted
BrianPulfer/LMWatermark/src/watermarking.py
code served (permissive licence) · get_code("bdea8c3520cb2de0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from hashlib import sha256

torch.manual_seed(0)

# The function takes a tensor and hashes it by converting to string
# So we need to provide a valid tensor
tensor_arg = torch.randn(2, 4)

ARGS = {
    "tensor": tensor_arg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate Ran
ran; our contract draft was wrong, not the code
BrianPulfer/LMWatermark/src/watermarking.py
code served (permissive licence) · get_code("e8a3bc02d0c28ef0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family int, shape (2, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from hashlib import sha256

torch.manual_seed(0)

def default_hash_fn(tensor):
    """Returns the hash of the given tensor using the sha256 algorithm and by converting the tensor to a string first.

    Args:
        tensor: The tensor to hash.

    Returns:
        The hash of the tensor.
    """
    return int(sha256(str(tensor).encode('utf-8')).hexdigest(), 16) % 10 ** 8

class SimpleModel(nn.Module):
    """Minimal model that outputs logits for the next token."""
    def __init__(self, vocab_size=16, hidden_dim=8):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, vocab_size)
    
    def forward(self, tokens):
        # tokens shape: (B, T)
        # output shape: (B, T, vocab_size)
        embedded = self.embedding(tokens)
        logits = self.linear(embedded)
        return logits

model = SimpleModel(vocab_size=16, hidden_dim=8)
model.eval()

prior_tokens = torch.randint(0, 16, (2, 3), dtype=torch.long)

ARGS = {
    "model": model,
    "prior_tokens": prior_tokens,
    "max_length": 8,
    "watermark": True,
    "gamma": 0.5,
    "delta": 2,
    "hash_function": default_hash_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 8) — shape (2, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
str2bool Ran
ran, violated the contract we drafted
jwkirchenbauer/lm-watermarking/demo_watermark.py
code served (permissive licence) · get_code("678874b625786116")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse

def str2bool(v):
    """Util function for user friendly boolean flag args"""
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for the str2bool function
ARGS = {
    'v': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
WatermarkBase Not yet run
unverified (harvested, no recorded run)
jwkirchenbauer/lm-watermarking/watermark_processor.py
code served (permissive licence) · get_code("ba3557aac9e7bf4c")
How it ran

no invocation recorded.

WatermarkBase Not yet run
unverified (harvested, no recorded run)
fyyfu/semantic-watermark/watermark_processor.py
pointer only (licence: NONE) · get_code("dd584304f6d90615")
How it ran

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

WatermarkBase Not yet run
unverified (harvested, no recorded run)
chengez/adversarial-paraphrasing/kgw_wm/extended_watermark_processor.py
code served (permissive licence) · get_code("19f3e32f390a20ae")
How it ran

no invocation recorded.

WatermarkLogitsProcessor Not yet run
unverified (harvested, no recorded run)
fyyfu/semantic-watermark/watermark_processor.py
pointer only (licence: NONE) · get_code("a74f13e55a5c37a6")
How it ran

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

WatermarkLogitsProcessor Not yet run
unverified (harvested, no recorded run)
chengez/adversarial-paraphrasing/kgw_wm/extended_watermark_processor.py
code served (permissive licence) · get_code("51fae2306a5ebeda")
How it ran

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 15 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 4 later) and 11 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
61 dated earlier, 1 the same month, 110 later, 3 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
ContextMasking
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2310.07710 (2023-10)
A Resilient and Accessible Distribution-Preserving Watermark for Large Language Models
OpenaiGenerator
brick of this paper's assembly: helper
1 other paper
1 later
2310.07710 (2023-10)
A Resilient and Accessible Distribution-Preserving Watermark for Large Language Models
WmGenerator
brick of this paper's assembly: helper
1 other paper
1 later
2310.07710 (2023-10)
A Resilient and Accessible Distribution-Preserving 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-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

Potential harms of large language models can be mitigated by watermarking model output, i.e., embedding signals into generated text that are invisible to humans but algorithmically detectable from a short span of tokens. We propose a watermarking framework for proprietary language models. The watermark can be embedded with negligible impact on text quality, and can be detected using an efficient opensource algorithm without access to the language model API or parameters. The watermark works by selecting a randomized set of "green" tokens before a word is generated, and then softly promoting use of green tokens during sampling. We propose a statistical test for detecting the watermark with interpretable p-values, and derive an informationtheoretic framework for analyzing the sensitivity of the watermark. We test the watermark using a multi-billion parameter model from the Open Pretrained Transformer (OPT) family, and discuss robustness and security.

For agents

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

get_harvested_code_for_paper("2301.10226")
get_code_for_paper("2301.10226")
have("2301.10226")

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

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

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

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

Connect an agent — have() is free.