[Paper Review] Multiscale Positive-Unlabeled Detection of AI-Generated Texts
The paper introduces a Multiscale Positive-Unlabeled (MPU) training framework to detect AI-generated texts across short and long lengths, using length-sensitive PU loss and a Text Multiscaling module to boost short-text detection without sacrificing long-text performance.
Recent releases of Large Language Models (LLMs), e.g. ChatGPT, are astonishing at generating human-like texts, but they may impact the authenticity of texts. Previous works proposed methods to detect these AI-generated texts, including simple ML classifiers, pretrained-model-based zero-shot methods, and finetuned language classification models. However, mainstream detectors always fail on short texts, like SMSes, Tweets, and reviews. In this paper, a Multiscale Positive-Unlabeled (MPU) training framework is proposed to address the difficulty of short-text detection without sacrificing long-texts. Firstly, we acknowledge the human-resemblance property of short machine texts, and rephrase AI text detection as a partial Positive-Unlabeled (PU) problem by regarding these short machine texts as partially ``unlabeled". Then in this PU context, we propose the length-sensitive Multiscale PU Loss, where a recurrent model in abstraction is used to estimate positive priors of scale-variant corpora. Additionally, we introduce a Text Multiscaling module to enrich training corpora. Experiments show that our MPU method augments detection performance on long AI-generated texts, and significantly improves short-text detection of language model detectors. Language Models trained with MPU could outcompete existing detectors on various short-text and long-text detection benchmarks. The codes are available at https://github.com/mindspore-lab/mindone/tree/master/examples/detect_chatgpt and https://github.com/YuchuanTian/AIGC_text_detector.
Motivation & Objective
- Motivate detecting AI-generated texts across varying lengths, with a focus on short texts where detection is harder.
- Reformulate AI-text detection as a partial Positive-Unlabeled (PU) problem to handle unlabeled short machine texts.
- Develop a length-aware Multiscale PU loss that adjusts positive priors based on text length.
- Introduce a Text Multiscaling module to diversify training corpora by length.
- Demonstrate that MPU improves short-text detection while maintaining or enhancing long-text performance.
Proposed method
- Model training uses a partial PU framework where short machine texts are treated as unlabeled within PU loss calculations.
- Introduce a recurrent abstract discriminator to estimate length-dependent positive priors for texts of different lengths (Eq. 5–9).
- Define the Multiscale PU Loss (Eq. 10) that uses a vector of priors across lengths to weight positive and unlabeled losses.
- Integrate a Text Multiscaling module that randomly deletes sentences to create multiscale training texts (Eqs. 12–14).
- Combine PN loss with MPU loss in the final objective (Eq. 11).
- Provide ablations to assess the impact of Text Multiscaling and MPU loss components (Tables 6–11).
Experimental results
Research questions
- RQ1Can AI-generated text detection be framed as a partial PU problem to handle unlabeled short texts?
- RQ2Does length-aware PU loss improve detection across multiple text lengths without harming long-text performance?
- RQ3What is the impact of Text Multiscaling on detection performance across full and short texts?
- RQ4How do MPU-enabled detectors compare against strong baselines on short-text benchmarks (e.g., HC3-English-Sent, TweepFake) and long-text benchmarks?
Key findings
- RoBERTa-MPU achieves 98.40 ± 0.31 on HC3-En-Full and 85.31 ± 1.80 on HC3-En-Sent, outperforming several baselines.
- RoBERTa-MPU also achieves 89.37 ± 1.94 on HC3-Ch-Sent (Chinese), outperforming Chinese baselines.
- On TweepFake, RoBERTa-MPU attains 91.4 accuracy, surpassing RoBERTa-Finetuned and other baselines in short-text detection.
- Text Multiscaling plus MPU loss improves sentence-level detection substantially, while MPU loss helps mitigate full-text performance drop.
- Multiscale PU loss outperforms ordinary PU loss on HC3-English (Full: 98.40 ± 0.31 vs. 97.05 ± 2.15; Sent: 85.31 ± 1.80 vs. 83.53 ± 3.14).
- Ablations show best overall performance with p=0.2–0.25 for token positive signal and p_sent around 0.25, and gamma around 0.4 for final loss balance.
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.