SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.16607 · 2026

Spotlights and Blindspots: Evaluating Machine-Generated Text Detection

Kevin Stowe, Kailash Patil

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 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 2 have no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2604.16607.json · badge: /api/ran/2604.16607.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
thinkst/zippy canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
calc_burstiness Ran
ran, honoured the contract we drafted
thinkst/zippy/burstiness.py
code served (permissive licence) · get_code("cdbe2930dfa85feb")
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 tuple, 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.

from numpy import std, var
from typing import List, Tuple

# The function takes a single parameter 's' which is a string
# It splits by '.', then processes each sentence to count characters and words
# Let's create a sample string with multiple sentences of varying lengths

sample_text = "Hello world. This is a test. Python is great. The quick brown fox jumps over the lazy dog."

ARGS = {
    "s": sample_text
}
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 tuple, ndim 2, dtype family float — a tuple 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
classify_text Ran
ran; our contract draft was wrong, not the code
thinkst/zippy/gptzero_detect.py
code served (permissive licence) · get_code("b0fbfd2d9f6e19f5")
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 tuple, 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 os
from unittest.mock import patch, MagicMock

# Mock the environment variable
os.environ['GPTZERO_APIKEY'] = 'test_api_key_12345'

# Mock the requests.post to avoid actual network calls
def mock_post(url, headers=None, json=None):
    mock_response = MagicMock()
    mock_response.status_code = 200
    mock_response.json.return_value = {
        'documents': [
            {
                'average_generated_prob': 0.35,
                'completely_generated_prob': 0.40
            }
        ]
    }
    return mock_response

# Patch requests.post before importing the function
import sys
from unittest.mock import MagicMock as MM
import requests
requests.post = mock_post

# Define ARGS for classify_text function
ARGS = {
    's': 'This is a sample text to classify. It could be written by a human or generated by an AI model.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
clean_text Ran
ran; our contract draft was wrong, not the code
thinkst/zippy/zippy/zippy.py
code served (permissive licence) · get_code("279e23ca5da96480")
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 re
import sys
import statistics

ARGS = {
    "s": "Hello  world\t\nThis is a test (123) with... special@#$%chars and\n multiple spaces"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 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
make_req Ran
ran on a synthesized input
thinkst/zippy/gptzero_detect.py
code served (permissive licence) · get_code("e375982581168124")
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 os
import requests
from unittest.mock import Mock, patch

# Set up environment variable
os.environ['GPTZERO_APIKEY'] = 'test_api_key_12345'

# Create valid argument for the make_req function
# The function takes a single parameter 'text' which is a string
# It makes an HTTP POST request to an API, so we need to mock that

# Mock the requests.post to avoid actual network calls
def mock_post(url, headers, json):
    mock_response = Mock()
    mock_response.status_code = 200
    mock_response.json.return_value = {
        'documents': [
            {
                'class': 'human',
                'score': 0.95
            }
        ]
    }
    return mock_response

# Patch requests.post before calling make_req
with patch('requests.post', side_effect=mock_post):
    pass

# The actual argument for the function
ARGS = {
    'text': 'This is a sample text to check if it was written by AI or a human.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — 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
run_on_file_chunked Ran
ran on a synthesized input
thinkst/zippy/gptzero_detect.py
code served (permissive licence) · get_code("08eacf4749cbee1d")
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 tuple, 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 tempfile
import os

# Create a temporary file with sample text content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
sample_text = """This is a sample document for testing. It contains multiple sentences that will be processed.
The function will read this file and analyze it for AI-generated vs human-written content.
It will chunk the text and process each chunk separately before averaging the results.
This is a longer document to ensure we have enough content for the function to work with."""
temp_file.write(sample_text)
temp_file.close()

ARGS = {
    'filename': temp_file.name,
    'chunk_size': 1025
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
classify_text Not yet run
unverified (harvested, no recorded run)
thinkst/zippy/crossplag_detect.py
code served (permissive licence) · get_code("3bb397a6d52af3ce")
How it ran

no invocation recorded.

make_req Not yet run
unverified (harvested, no recorded run)
thinkst/zippy/crossplag_detect.py
code served (permissive licence) · get_code("2211c1283572d1ba")
How it ran

no invocation recorded.

make_req Not yet run
unverified (harvested, no recorded run)
thinkst/zippy/openai_detect.py
code served (permissive licence) · get_code("04b70e1f5c3fa498")
How it ran

no invocation recorded.

run_on_file_chunked Not yet run
unverified (harvested, no recorded run)
thinkst/zippy/crossplag_detect.py
code served (permissive licence) · get_code("df34cceae3c78496")
How it ran

no invocation recorded.

run_on_text_chunked Not yet run
unverified (harvested, no recorded run)
thinkst/zippy/openai_detect.py
code served (permissive licence) · get_code("f80bdd0cb317c20d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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

With the rise of generative language models, machine-generated text detection has become a critical challenge. A wide variety of models is available, but inconsistent datasets, evaluation metrics, and assessment strategies obscure comparisons of model effectiveness. To address this, we evaluate 15 different detection models from six distinct systems, as well as seven trained models, across seven English-language textual test sets and three creative human-written datasets. We provide an empirical analysis of model performance, the influence of training and evaluation data, and the impact of key metrics. We find that no single system excels in all areas and nearly all are effective for certain tasks, and the representation of model performance is critically linked to dataset and metric choices. We find high variance in model ranks based on datasets and metrics, and overall poor performance on novel human-written texts in high-risk domains. Across datasets and metrics, we find that methodological choices that are often assumed or overlooked are essential for clearly and accurately reflecting model performance.

For agents

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

get_harvested_code_for_paper("2604.16607")
get_code_for_paper("2604.16607")
have("2604.16607")

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

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

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

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

Connect an agent — have() is free.