SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.08723 · EMNLP · 2023

Token Prediction as Implicit Classification to Identify LLM-Generated Text

Yutian Chen, Bhiksha Raj, Rita Singh, Hao Kang, Liangze Li, V. Zhai

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 3 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/2311.08723.json · badge: /api/ran/2311.08723.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
markchenyutian/t5-sentinel-public canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
MarkChenYutian/T5-Sentinel-public community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
argeq Ran
ran, violated the contract we drafted
markchenyutian/t5-sentinel-public/evaluator/models/t5_sentinel/t5_get_hidden_states.py
code served (permissive licence) · get_code("f8ef5f7c3db1a340")
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 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 torch
import numpy as np

torch.manual_seed(0)

# The function argeq checks if arg1[0] == arg2[0]
# So both arg1 and arg2 need to be indexable (support [0])
# and their first elements need to be comparable

# Simple approach: use lists or tuples with comparable first elements
arg1 = [42, "other_data"]
arg2 = [42, "different_data"]

ARGS = {
    "arg1": arg1,
    "arg2": arg2
}
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 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
list_reduce Ran
ran; our contract draft was wrong, not the code
markchenyutian/t5-sentinel-public/evaluator/models/t5_sentinel/t5_get_hidden_states.py
code served (permissive licence) · get_code("4d06f96ea485f098")
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 int; 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 typing as T

torch.manual_seed(0)

def list_reduce(l1: T.List, l2: T.List) -> T.List:
    l1.extend(l2)
    return l1

ARGS = {
    "l1": [1, 2, 3],
    "l2": [4, 5, 6]
}
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 int — 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
memoize Ran
ran; our contract draft was wrong, not the code
markchenyutian/t5-sentinel-public/memoizer/memoizer.py
code served (permissive licence) · get_code("1a6fb91bef271314")
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 function. 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
from pathlib import Path
import tempfile
import typing as Tp

torch.manual_seed(0)

# Create a temporary directory for the cache file
temp_dir = tempfile.mkdtemp()
cache_path = Path(temp_dir) / "cache.pt"

# Define arg_eq function that compares arguments
def arg_eq(args1, args2):
    """Compare two argument tuples for equality."""
    if len(args1) != len(args2):
        return False
    for a1, a2 in zip(args1, args2):
        if isinstance(a1, torch.Tensor) and isinstance(a2, torch.Tensor):
            if not torch.equal(a1, a2):
                return False
        elif a1 != a2:
            return False
    return True

ARGS = {
    'cache_path': cache_path,
    'arg_eq': arg_eq
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
Sentinel Not yet run
unverified (harvested, no recorded run)
MarkChenYutian/T5-Sentinel-public/detector/t5_sentinel/model.py
code served (permissive licence) · get_code("6668016faa304e65")
How it ran

no invocation recorded.

SentinelOutput Not yet run
unverified (harvested, no recorded run)
MarkChenYutian/T5-Sentinel-public/detector/t5_sentinel/model.py
code served (permissive licence) · get_code("cbdf08bcf97ba9b2")
How it ran

no invocation recorded.

binary_eq Not yet run
unverified (harvested, no recorded run)
markchenyutian/t5-sentinel-public/evaluator/models/t5_sentinel/t5_get_hidden_states.py
code served (permissive licence) · get_code("888a361361dbd102")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 6 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

This paper introduces a novel approach for identifying the possible large language models (LLMs) involved in text generation. Instead of adding an additional classification layer to a base LM, we reframe the classification task as a next-token prediction task and directly fine-tune the base LM to perform it. We utilize the Text-to-Text Transfer Transformer (T5) model as the backbone for our experiments. We compared our approach to the more direct approach of utilizing hidden states for classification. Evaluation shows the exceptional performance of our method in the text classification task, highlighting its simplicity and efficiency. Furthermore, interpretability studies on the features extracted by our model reveal its ability to differentiate distinctive writing styles among various LLMs even in the absence of an explicit classifier. We also collected a dataset named OpenLLMText, containing approximately 340k text samples from human and LLMs, including GPT3.5, PaLM, LLaMA, and GPT2.

For agents

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

get_harvested_code_for_paper("2311.08723")
get_code_for_paper("2311.08723")
have("2311.08723")

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

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

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

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

Connect an agent — have() is free.