[Paper Review] SeqXGPT: Sentence-Level AI-Generated Text Detection
This paper introduces SeqXGPT, a novel sentence-level AI-generated text detection method that leverages word-wise log probability lists from white-box LLMs as wave-like features, processed through a CNN-Transformer architecture. It significantly outperforms existing methods in both sentence- and document-level detection, demonstrating strong generalization on out-of-distribution data.
Widely applied large language models (LLMs) can generate human-like content, raising concerns about the abuse of LLMs. Therefore, it is important to build strong AI-generated text (AIGT) detectors. Current works only consider document-level AIGT detection, therefore, in this paper, we first introduce a sentence-level detection challenge by synthesizing a dataset that contains documents that are polished with LLMs, that is, the documents contain sentences written by humans and sentences modified by LLMs. Then we propose extbf{Seq}uence extbf{X} (Check) extbf{GPT}, a novel method that utilizes log probability lists from white-box LLMs as features for sentence-level AIGT detection. These features are composed like extit{waves} in speech processing and cannot be studied by LLMs. Therefore, we build SeqXGPT based on convolution and self-attention networks. We test it in both sentence and document-level detection challenges. Experimental results show that previous methods struggle in solving sentence-level AIGT detection, while our method not only significantly surpasses baseline methods in both sentence and document-level detection challenges but also exhibits strong generalization capabilities.
Motivation & Objective
- To address the gap in fine-grained, sentence-level AI-generated text (AIGT) detection, as current methods focus only on document-level detection.
- To introduce a new benchmark dataset containing documents with mixed human-written and LLM-modified sentences, simulating real-world AI-assisted writing.
- To develop a robust, generalizable detection model capable of identifying AI-generated content at the sentence level despite short input lengths.
- To overcome limitations of existing methods, such as overfitting in supervised models and poor performance on short texts.
Proposed method
- The method extracts word-wise log probabilities from a white-box LLM as foundational features, treating them as temporal wave-like signals.
- It employs a convolutional neural network (CNN) to extract localized, concentrated features from the wave-like log probability sequences.
- A self-attention (Transformer) module is applied after the CNN to model long-range dependencies and contextual relationships in the feature representations.
- The model uses sequence labeling to predict the provenance (human or AI) of each word, with the most frequent label determining the sentence-level category.
- The architecture is trained end-to-end using cross-entropy loss on a synthetic dataset of mixed human-AI documents.
- The approach is evaluated on both sentence-level and document-level detection tasks, including out-of-distribution generalization.
Experimental results
Research questions
- RQ1Can a model effectively detect AI-generated content at the sentence level, where input sequences are short and context is limited?
- RQ2How does the performance of existing AIGT detection methods degrade when applied to sentence-level detection compared to document-level detection?
- RQ3To what extent can a model trained on one LLM (e.g., GPT-3.5-turbo) generalize to detect sentences generated by other LLMs or in unseen domains?
- RQ4What role do log probability features play in distinguishing AI-generated from human-written text at the sentence level?
- RQ5How do architectural components like CNN and Transformer layers contribute to the model’s ability to detect subtle statistical differences in generated text?
Key findings
- SeqXGPT significantly outperforms baseline methods such as DetectGPT and Sniffer in sentence-level AIGT detection, which struggle due to short input length and lack of fine-grained modeling.
- The model achieves strong performance in document-level detection, indicating its robustness across different input scales.
- SeqXGPT exhibits superior generalization on out-of-distribution datasets, maintaining high accuracy even when detecting sentences from unseen LLMs or domains.
- Ablation studies show that CNNs are essential for extracting meaningful features from highly correlated, low-dimensional log probability waves, while Transformers alone fail to learn effectively from these sparse features.
- Combining CNN and Transformer components yields the best performance, as CNNs extract local patterns and Transformers model contextual dependencies.
- The method’s reliance on white-box log probabilities enables high interpretability and avoids overfitting to semantic patterns, unlike purely semantic-based models such as RoBERTa fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.