[Paper Review] GPT-Sentinel: Distinguishing Human and ChatGPT Generated Content
GPT-Sentinel presents OpenGPTText and two classifiers (RoBERTa-Sentinel and T5-Sentinel) that distinguish ChatGPT-generated from human-written text with over 97% accuracy on test data, plus interpretability analyses.
This paper presents a novel approach for detecting ChatGPT-generated vs. human-written text using language models. To this end, we first collected and released a pre-processed dataset named OpenGPTText, which consists of rephrased content generated using ChatGPT. We then designed, implemented, and trained two different models for text classification, using Robustly Optimized BERT Pretraining Approach (RoBERTa) and Text-to-Text Transfer Transformer (T5), respectively. Our models achieved remarkable results, with an accuracy of over 97% on the test dataset, as evaluated through various metrics. Furthermore, we conducted an interpretability study to showcase our model's ability to extract and differentiate key features between human-written and ChatGPT-generated text. Our findings provide important insights into the effective use of language models to detect generated text.
Motivation & Objective
- Create a dataset (OpenGPTText) of ChatGPT-paraphrased text from OpenWebText as a benchmark for detection.
- Develop and compare two fine-tuned classifiers (RoBERTa-Sentinel and T5-Sentinel) for binary classification of human vs. ChatGPT text.
- Evaluate performance across multiple metrics and datasets, and investigate model interpretability of decisions.
Proposed method
- Fine-tune a frozen RoBERTa backbone with an MLP classifier on top for RoBERTa-Sentinel.
- Fine-tune T5 to treat the task as a sequence-to-sequence classification problem (outputting 'positive' or 'negative').
- Use 512-token truncation with padding and gradient accumulation to manage memory during training.
- Evaluate using F1, ROC/DET, AUC, and model confidence scores across OpenGPTText-Final, OpenGPTText, and GPT2-Output datasets.
- Perform interpretability analyses via PCA on hidden states and Integrated Gradients to identify token contributions.
Experimental results
Research questions
- RQ1Can fine-tuned RoBERTa and T5 models reliably distinguish ChatGPT-generated text from human-written text on OpenGPTText-derived data?
- RQ2How does model performance transfer across cleaned vs. original datasets and across GPT-2/GPT-3.5-style outputs?
- RQ3What features or tokens most drive the detectors' predictions, and how interpretable are the models' decisions?
Key findings
- T5-Sentinel achieves near-perfect performance on OpenGPTText-Final and OpenGPTText (F1 around 0.98) with very low FPR/FNR, while GPT2-Output remains challenging for most baselines.
- RoBERTa-Sentinel also performs well on OpenGPTText-Final/OpenGPTText but shows higher FNR on GPT2-Output compared to T5-Sentinel.
- Across datasets, AUC is highest for T5-Sentinel (0.993 on OpenGPTText-Final), with RoBERTa-Sentinel at 0.986 (OpenGPTText-Final).
- ZeroGPT, OpenAI-Detector, and GPT2-Detector baselines generally underperform compared to the proposed Sentinels on OpenGPTText-based tasks.
- Confidence scores indicate T5-Sentinel provides more reliable predictions than RoBERTa-Sentinel on OpenGPTText data.
- PCA and Integrated Gradients reveal model-identified clusters and token-level contributions that align with GPT-like characteristics.
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.