SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2023.emnlp-main.616 · EMNLP · 2023

MULTITuDE: Large-Scale Multilingual Machine-Generated Text Detection Benchmark

Michiharu Yamashita, Dongwon Lee, Matuvs Pikuliak, Adaku Uchendu, Thai Le, Dominik Macko, Robert Moro, Ivan Srba, Jason Lucas, Jakub Simko, Maria Bielikova

Open in the Atlas

Code that ran

12 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2023.emnlp-main.616.json · badge: /api/ran/2023.emnlp-main.616.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
xinleihe/MGTBench canonical (classifier label)
classifier basis: census
12 ran · 4 no recorded run
FunctionStatusWhere it lives
check_period Ran
ran on a synthesized input
xinleihe/MGTBench/dataset_loader.py
code served (permissive licence) · get_code("ca626759d96b1cf5")
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 list, ndim 1, 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

torch.manual_seed(0)

# The function check_period takes a list of strings (texts)
# and adds a period to each string if it doesn't end with one.
# It modifies the list in-place and returns it.

texts = [
    "hello",
    "world.",
    "test"
]

ARGS = {
    "texts": texts
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
filter_test_data Ran
ran on a synthesized input
xinleihe/MGTBench/methods/utils.py
code served (permissive licence) · get_code("3409c93cd092820c")
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 dict. The image it ran in was 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 numpy as np

# Construct test data with the required structure
data = {
    'test': {
        'text': [
            'this is a short text',
            'this is a much longer text that exceeds the maximum length threshold we have set',
            'another short one',
            'yet another text that is within the limit here',
            'this text is way too long and should definitely be filtered out because it has so many words in it that it exceeds our maximum length'
        ],
        'label': [0, 1, 0, 1, 0]
    }
}

ARGS = {
    'data': data,
    'max_length': 25
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_lls Ran
ran, honoured the contract we drafted
xinleihe/MGTBench/methods/metric_based.py
code served (permissive licence) · get_code("a82535fe98a7e04b")
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 list, ndim 1, 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
import torch.nn as nn

torch.manual_seed(0)

# Stand-in tokenizer that mimics HuggingFace tokenizer interface
class StandInTokenizer:
    def __call__(self, text, padding=True, truncation=True, max_length=1024, return_tensors='pt'):
        # Return a dict-like object with input_ids and attention_mask
        batch_size = len(text) if isinstance(text, list) else 1
        seq_len = 5
        
        input_ids = torch.randint(0, 100, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len), dtype=torch.long)
        
        class TokenizerOutput:
            def __init__(self, input_ids, attention_mask):
                self.input_ids = input_ids
                self.attention_mask = attention_mask
            
            def to(self, device):
                self.input_ids = self.input_ids.to(device)
                self.attention_mask = self.attention_mask.to(device)
                return self
            
            def keys(self):
                return ['input_ids', 'attention_mask']
            
            def __getitem__(self, key):
                if key == 'input_ids':
                    return self.input_ids
                elif key == 'attention_mask':
                    return self.attention_mask
        
        return TokenizerOutput(input_ids, attention_mask)

# Stand-in model that mimics language model interface
class StandInLanguageModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 100)
    
    def forward(self, input_ids, attention_mask, labels=None):
        # Simulate model output with loss
        batch_size, seq_len = input_ids.shape
        logits = self.linear(torch.randn(batch_size, seq_len, 4))
        
        class ModelOutput:
            def __init__(self, loss):
                self.loss = loss
        
        if labels is not None:
            loss = torch.tensor(0.5, requires_grad=True)
            return ModelOutput(loss)
        return ModelOutput(torch.tensor(0.5))

DEVICE = 'cpu'
base_model = StandInLanguageModel()
base_tokenizer = StandInTokenizer()
texts = ["Hello world", "Test example"]

ARGS = {
    'texts': texts,
    'base_model': base_model,
    'base_tokenizer': base_tokenizer,
    'DEVICE': DEVICE
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
get_rank Ran
ran on a synthesized input
xinleihe/MGTBench/methods/metric_based.py
code served (permissive licence) · get_code("0c7cd9182dadcefb")
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 float, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal tokenizer stand-in
class MockTokenizer:
    def __call__(self, text, truncation=True, max_length=1024, return_tensors='pt'):
        # Return a mock tokenized output with input_ids
        # Shape: (batch_size=1, seq_length=5)
        input_ids = torch.tensor([[101, 2054, 2003, 2009, 102]], dtype=torch.long)
        return MockTokenizedOutput(input_ids)

class MockTokenizedOutput:
    def __init__(self, input_ids):
        self.input_ids = input_ids
    
    def to(self, device):
        self.input_ids = self.input_ids.to(device)
        return self
    
    def keys(self):
        return ['input_ids']
    
    def __getitem__(self, key):
        if key == 'input_ids':
            return self.input_ids
        raise KeyError(key)

# Create a minimal base model
class MockBaseModel(nn.Module):
    def __init__(self, vocab_size=30522, hidden_dim=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.lm_head = nn.Linear(hidden_dim, vocab_size)
    
    def forward(self, input_ids, **kwargs):
        # input_ids shape: (batch, seq_len)
        embeddings = self.embedding(input_ids)  # (batch, seq_len, hidden_dim)
        logits = self.lm_head(embeddings)  # (batch, seq_len, vocab_size)
        return MockModelOutput(logits)

class MockModelOutput:
    def __init__(self, logits):
        self.logits = logits

# Instantiate the components
base_tokenizer = MockTokenizer()
base_model = MockBaseModel(vocab_size=30522, hidden_dim=4)
text = "What is this?"
DEVICE = 'cpu'

ARGS = {
    'text': text,
    'base_model': base_model,
    'base_tokenizer': base_tokenizer,
    'DEVICE': DEVICE,
    'log': False
}
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 float, 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
load_TruthfulQA Ran
ran on a synthesized input
xinleihe/MGTBench/dataset_loader_attribution.py
code served (permissive licence) · get_code("2eeb7e1b194357da")
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 dict. The image it ran in was 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file that mimics TruthfulQA_LLMs.csv
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, 'datasets', 'TruthfulQA_LLMs.csv')
os.makedirs(os.path.dirname(csv_path), exist_ok=True)

# Create a minimal valid CSV with the required columns
data = {
    'Question': [
        'What is the capital of France?',
        'How many continents are there?',
        'What is the largest planet?',
        'When was the internet invented?',
        'Who wrote Romeo and Juliet?'
    ],
    'Best Answer': [
        'Paris is the capital of France and the most populous city.',
        'There are seven continents on Earth.',
        'Jupiter is the largest planet in our solar system.',
        'The internet was developed in the late twentieth century.',
        'William Shakespeare wrote Romeo and Juliet in the 1590s.'
    ],
    'ChatGPT_answer': [
        'Paris is the capital and largest city of France.',
        'There are seven continents.',
        'Jupiter is the largest planet.',
        'The internet was invented in 1969.',
        'Shakespeare wrote Romeo and Juliet.'
    ],
    'ChatGLM_answer': [
        'France capital is Paris located in northern France.',
        'Earth has seven major continents.',
        'Jupiter is the biggest planet in the solar system.',
        'Internet development started in the 1960s and 1970s.',
        'Romeo and Juliet was written by William Shakespeare.'
    ],
    'Dolly_answer': [
        'The capital of France is Paris.',
        'Seven continents make up the world.',
        'The largest planet is Jupiter.',
        'Internet was created in the late 1960s.',
        'Shakespeare authored Romeo and Juliet.'
    ],
    'ChatGPT-turbo_answer': [
        'Paris serves as the capital of France.',
        'Our world has seven continents.',
        'Jupiter is by far the largest planet.',
        'The internet began in 1969 with ARPANET.',
        'William Shakespeare penned Romeo and Juliet.'
    ],
    'GPT4_answer': [
        'The capital city of France is Paris.',
        'The Earth contains seven continents.',
        'Jupiter represents the solar system largest planet.',
        'The internet originated in the late 1960s.',
        'Romeo and Juliet was composed by William Shakespeare.'
    ],
    'StableLM_answer': [
        'Paris is France capital city.',
        'There are seven world continents.',
        'Jupiter is the solar system largest planet.',
        'Internet history traces back to the 1960s.',
        'William Shakespeare created Romeo and Juliet.'
    ],
    'Category': [
        'geography',
        'geography',
        'astronomy',
        'history',
        'literature'
    ]
}

df = pd.DataFrame(data)
df.to_csv(csv_path, index=False)

# Change to the temp directory so the relative path works
original_dir = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'cache_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
prim_tree Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xinleihe/MGTBench/methods/IntrinsicDim.py
code served (permissive licence) · get_code("595d1d025c7e692d")
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 float, 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 numpy as np

# Create a small valid adjacency matrix for Prim's algorithm
# The function expects a square matrix where adj_matrix[i][j] represents edge weights
# We'll create a 4x4 symmetric adjacency matrix with positive weights
np.random.seed(0)
adj_matrix = np.array([
    [0.0, 1.5, 3.2, 2.1],
    [1.5, 0.0, 2.8, 4.5],
    [3.2, 2.8, 0.0, 1.9],
    [2.1, 4.5, 1.9, 0.0]
], dtype=np.float64)

alpha = 1.0

ARGS = {
    "adj_matrix": adj_matrix,
    "alpha": alpha
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
process_spaces Ran
ran; our contract draft was wrong, not the code
xinleihe/MGTBench/dataset_loader.py
code served (permissive licence) · get_code("c5d3444c3ea71db9")
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 str. The image it ran in was 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)

# The function process_spaces takes a single parameter: text (a string)
# It performs various string replacements and transformations
# No complex objects needed - just a string

ARGS = {
    'text': "Hello , world . This is a test ! What's ( happening ) here ; it's < newline > time ."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
process_string Ran
ran; our contract draft was wrong, not the code
xinleihe/MGTBench/methods/IntrinsicDim.py
code served (permissive licence) · get_code("ad5f00016ee9222a")
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 str. The image it ran in was 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# def process_string(sss):
#     return sss.replace('\n', ' ').replace('  ', ' ')
# 
# The function takes a single parameter 'sss' which must be a string.
# It calls .replace() on it twice, so it must be a string type.

ARGS = {
    'sss': 'hello\nworld\n  test  string'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
process_text_truthfulqa_adv Ran
ran; our contract draft was wrong, not the code
xinleihe/MGTBench/dataset_loader.py
code served (permissive licence) · get_code("dd7573db30a9bd4e")
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 str. The image it ran in was 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)

# The function process_text_truthfulqa_adv takes a single parameter 'text' which is a string.
# It checks for specific substrings and removes text before the first period + 2 characters if found.
# Then it returns the processed text.

text_input = "I am sorry for the confusion. This is the actual response you're looking for."

ARGS = {
    "text": text_input
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
select_train_data Ran
ran on a synthesized input
xinleihe/MGTBench/methods/utils.py
code served (permissive licence) · get_code("c116b3bbce725a3d")
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 dict. The image it ran in was 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 numpy as np

torch.manual_seed(0)

# Construct the data argument
# The function expects a dict with a 'train' key containing 'text' and 'label' keys
data = {
    'train': {
        'text': ['sample text one', 'sample text two', 'sample text three', 'sample text four'],
        'label': [0, 1, 0, 1]
    }
}

# Define ARGS with all parameters
ARGS = {
    'data': data,
    'select_num': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
timeit Ran
ran; our contract draft was wrong, not the code
xinleihe/MGTBench/methods/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from dongping-chen/mixset, is pointer only (licence: NONE) · get_code("58ba64be72bc1b9e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dongping-chen/mixset, and GitHub detected no licence in that repository 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.

tokenize_and_mask Ran
ran on a synthesized input
xinleihe/MGTBench/methods/detectgpt.py
code served (permissive licence) · get_code("4fed12f8c019459e")
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 str. The image it ran in was 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 numpy as np

# Set random seed for reproducibility
np.random.seed(42)

# Construct arguments for tokenize_and_mask
text = "the quick brown fox jumps over the lazy dog and returns to the forest where it finds many creatures living peacefully in harmony with nature and each other under the moonlight"
span_length = 3
buffer_size = 2
pct = 0.2
ceil_pct = False

ARGS = {
    "text": text,
    "span_length": span_length,
    "buffer_size": buffer_size,
    "pct": pct,
    "ceil_pct": ceil_pct
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
count_masks Not yet run
unverified (harvested, no recorded run)
xinleihe/MGTBench/methods/detectgpt.py
code served (permissive licence) · get_code("23c3416429f69fee")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

get_ll Not yet run
unverified (harvested, no recorded run)
xinleihe/MGTBench/methods/metric_based.py
code served (permissive licence) · get_code("3c45c72617228b17")
How it ran

no invocation recorded.

get_supervised_model_prediction Not yet run
unverified (harvested, no recorded run)
xinleihe/MGTBench/methods/supervised.py
code served (permissive licence) · get_code("c4c6872281f5e3a2")
How it ran

no invocation recorded.

replace_masks Not yet run
unverified (harvested, no recorded run)
xinleihe/MGTBench/methods/detectgpt.py
code served (permissive licence) · get_code("3b992344e4b4f98b")
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 16 distinct functions with an identity, 16 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 8 later) and 0 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
count_masks 11 other papers
8 later, 3 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2305.18462 (2023-05)
Membership Inference Attacks against Language Models via Neighbourhood Comparison
2305.19713 (2023-05)
Red Teaming Language Model Detectors with Language Models
and 8 more not named here
prim_tree 4 other papers
2 later, 2 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2306.04723 (2023-06)
Intrinsic Dimension Estimation for Robust Detection of AI-Generated Texts
2403.20127 (2024-03)
The Impact of Prompts on Zero-Shot Detection of AI-Generated Text
and 1 more not named here
process_spaces 3 other papers
2 later, 1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2401.05952 (2024-01)
LLM-as-a-Coauthor: Can Mixed Human-Written and Machine-Generated Text Be Detected?
2602.08031 (2026-02)
Beyond Raw Detection Scores: Markov-Informed Calibration for Boosting Machine-Generated Text Detection
process_string 3 other papers
1 later, 2 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2306.04723 (2023-06)
Intrinsic Dimension Estimation for Robust Detection of AI-Generated Texts
2602.08031 (2026-02)
Beyond Raw Detection Scores: Markov-Informed Calibration for Boosting Machine-Generated Text Detection
process_text_truthfulqa_adv 3 other papers
2 later, 1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2401.05952 (2024-01)
LLM-as-a-Coauthor: Can Mixed Human-Written and Machine-Generated Text Be Detected?
2602.08031 (2026-02)
Beyond Raw Detection Scores: Markov-Informed Calibration for Boosting Machine-Generated Text Detection
replace_masks 3 other papers
2 later, 1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2401.05952 (2024-01)
LLM-as-a-Coauthor: Can Mixed Human-Written and Machine-Generated Text Be Detected?
2602.08031 (2026-02)
Beyond Raw Detection Scores: Markov-Informed Calibration for Boosting Machine-Generated Text Detection
get_lls 2 other papers
1 later, 1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2401.05952 (2024-01)
LLM-as-a-Coauthor: Can Mixed Human-Written and Machine-Generated Text Be Detected?
timeit 2 other papers
1 later, 1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2401.05952 (2024-01)
LLM-as-a-Coauthor: Can Mixed Human-Written and Machine-Generated Text Be Detected?
check_period 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
filter_test_data 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
get_ll 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
get_rank 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
get_supervised_model_prediction 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
load_TruthfulQA 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
select_train_data 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
tokenize_and_mask 1 other paper
1 same year, order not determinable
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection

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

Repositories linked to this paper

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

Abstract

There is a lack of research into capabilities of recent LLMs to generate convincing text in languages other than English and into performance of detectors of machine-generated text in multilingual settings. This is also reflected in the available benchmarks which lack authentic texts in languages other than English and predominantly cover older generators. To fill this gap, we introduce MULTITuDE 1 , a novel benchmarking dataset for multilingual machine-generated text detection comprising of 74,081 authentic and machine-generated texts in 11 languages (ar, ca, cs, de, en, es, nl, pt, ru, uk, and zh) generated by 8 multilingual LLMs. Using this benchmark, we compare the performance of zero-shot (statistical and black-box) and fine-tuned detectors. Considering the multilinguality, we evaluate 1) how these detectors generalize to unseen languages (linguistically similar as well as dissimilar) and unseen LLMs and 2) whether the detectors improve their performance when trained on multiple languages.

For agents

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

get_harvested_code_for_paper("2023.emnlp-main.616")
get_code_for_paper("2023.emnlp-main.616")
have("2023.emnlp-main.616")

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

curl https://syntology.ai/api/ran/2023.emnlp-main.616.json

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

[![Syntology run record](https://syntology.ai/api/ran/2023.emnlp-main.616.svg)](https://syntology.ai/paper/2023.emnlp-main.616)

Connect an agent — have() is free.