SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.03506 · IJCAI · 2024

Detecting AI-Generated Sentences in Human-AI Collaborative Hybrid Texts: Challenges, Strategies, and Insights

Zhuang Li, Shiqi Liu, Zijie Zeng, Dragan Gašević, Guanliang Chen, Sannyuya Liu, Kaixun Yang, Lele Sha

arXiv · PDF · Open in the Atlas

Code that ran

2 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, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 4 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/2403.03506.json · badge: /api/ran/2403.03506.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
douglashiwo/aisentencedetection canonical (classifier label)
classifier basis: census
2 ran · 4 no recorded run
FunctionStatusWhere it lives
split_sentence Ran
ran; our contract draft was wrong, not the code
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/backend_utils.py
pointer only (licence: NONE) · get_code("09646fecdc16cade")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, douglashiwo/aisentencedetection 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; our contract draft was wrong, not the code
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/backend_t5.py
pointer only (licence: NONE) · get_code("52cd472fa9521fd1")
How it ran

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

access_api Not yet run
unverified (harvested, no recorded run)
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/DetectGPT/detect_gpt.py
pointer only (licence: NONE) · get_code("f65007f4d53f3cc5")
How it ran

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

access_sniffer Not yet run
unverified (harvested, no recorded run)
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/DetectGPT/detect_gpt.py
pointer only (licence: NONE) · get_code("d54fa89f601af263")
How it ran

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

count_masks Not yet run
unverified (harvested, no recorded run)
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/backend_t5.py
pointer only (licence: NONE) · get_code("23c3416429f69fee")
How it ran

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

replace_masks Not yet run
unverified (harvested, no recorded run)
douglashiwo/aisentencedetection/B-Segment_Classification_Models/SeqXGPT/SeqXGPT_compress/backend_t5.py
pointer only (licence: NONE) · get_code("a150e54e0d2810c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, douglashiwo/aisentencedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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
7 dated earlier, 4 later
2023.emnlp-main.616 (2023 (year only))
MULTITuDE: Large-Scale Multilingual Machine-Generated Text Detection Benchmark
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2305.18462 (2023-05)
Membership Inference Attacks against Language Models via Neighbourhood Comparison
and 8 more not named here

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 study explores the challenge of sentencelevel AI-generated text detection within human-AI collaborative hybrid texts (abbreviated as hybrid texts). Existing studies of AI-generated text detection for hybrid texts often rely on synthetic datasets. These typically involve hybrid texts with a limited number of boundaries, e.g., single-boundary hybrid texts that begin with human-written content and end with machine-generated continuations. We contend that studies of detecting AI-generated content within hybrid texts should cover different types of hybrid texts generated in realistic settings to better inform real-world applications. Therefore, our study utilizes the CoAuthor dataset, which includes diverse, realistic hybrid texts generated through the collaboration between human writers and an intelligent writing system in multi-turn interactions. We adopt a two-step, segmentation-based pipeline: (i) detect segments within a given hybrid text where each segment contains sentences of consistent authorship, and (ii) classify the authorship of each identified segment. Our empirical findings highlight (1) detecting AI-generated sentences in hybrid texts is overall a challenging task because (1.1) human writers' selecting and even editing AIgenerated sentences based on personal preferences adds difficulty in identifying the authorship of segments; (1.2) the frequent change of authorship between neighboring sentences within the hybrid text creates difficulties for segment detectors in identifying authorship-consistent segments; (1.3) the short length of text segments within hybrid texts provides limited stylistic cues for reliable authorship determination; (2) before embarking on the detection process, it is beneficial to assess the average length of segments within the hybrid text. This assessment aids in deciding whether (2.1) to employ a text segmentation-based strategy for hybrid texts with longer segments, or (2.2) to adopt a direct sentence-by-sentence classification strategy for those with shorter segments.

For agents

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

get_harvested_code_for_paper("2403.03506")
get_code_for_paper("2403.03506")
have("2403.03506")

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

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

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

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

Connect an agent — have() is free.