SenFlow: Inter-Sentence Flow Modeling for AI-Generated Text Detection in Hybrid Documents

Jingkun Luo, Yifan Sun, Da-Tian Peng, Guanxiong Pei
6/17/2026
cs.CL

Official code: luojingkun22/SenFlow (0 stars, last commit 2026-05-24).

Abstract

Sentence-level AI-generated text detection (S-AGTD) for hybrid documents, where humans and LLMs co-author one text, faces two gaps: existing methods classify each sentence in isolation, discarding inter-sentence dependencies, and existing benchmarks omit the newest generation of generators. We construct MOSAIC, a benchmark of 16,000 hybrid documents over PubMed and XSum, generated by DeepSeek-V3.2 and Kimi K2 under stringent quality controls including a perplexity-consistency filter absent from prior benchmarks. We recast S-AGTD as structured prediction over the document sentence sequence and instantiate it as SenFlow, integrating graph-based inter-sentence propagation with linear-chain CRF decoding in a single document-level pass over a sentence graph. SenFlow reaches state-of-the-art performance on MOSAIC, with a +4.15 pp average Macro-F1 margin on cross-domain transfer, the hardest of three protocols of increasing difficulty. We further find that even after the perplexity filter equalizes overt cues, AI insertions retain a generator-dependent sentence-length gap that sentence-level detectors still exploit. Code and data: https://github.com/luojingkun22/SenFlow

View on arXivView PDF

Code Implementations(1)

Code and MOSAIC benchmark for "SenFlow: Inter-Sentence Flow Modeling for AI-Generated Text Detection in Hybrid Documents".

00PythonMay 24, 20265 months ago

Similar Papers

Cite this paper

@article{luo2026senflow,
  title  = {SenFlow: Inter-Sentence Flow Modeling for AI-Generated Text Detection in Hybrid Documents},
  author = {Jingkun Luo and Yifan Sun and Da-Tian Peng and Guanxiong Pei},
  year   = {2026},
  eprint = {2606.18946},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.18946v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.18946.svg)](https://codeofpaper.com/paper/2606.18946)

Discussion