Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Does DetectGPT Fully Utilize Perturbation? Bridging Selective Perturbation to Fine-tuned Contrastive Learning Detector would be Better

About

The burgeoning generative capabilities of large language models (LLMs) have raised growing concerns about abuse, demanding automatic machine-generated text detectors. DetectGPT, a zero-shot metric-based detector, first introduces perturbation and shows great performance improvement. However, in DetectGPT, the random perturbation strategy could introduce noise, and logit regression depends on the threshold, harming the generalizability and applicability of individual or small-batch inputs. Hence, we propose a novel fine-tuned detector, Pecola, bridging metric-based and fine-tuned methods by contrastive learning on selective perturbation. Selective strategy retains important tokens during perturbation and weights for multi-pair contrastive learning. The experiments show that Pecola outperforms the state-of-the-art (SOTA) by 1.20% in accuracy on average on four public datasets. And we further analyze the effectiveness, robustness, and generalization of the method.

Shengchao Liu, Xiaoming Liu, Yichen Wang, Zehua Cheng, Chengzhengxu Li, Zhaohan Zhang, Yu Lan, Chao Shen• 2024

Related benchmarks

TaskDatasetResultRank
Machine-generated text detectionGrover (test)
Accuracy73.12
36
AI-generated text detectionHC3 (test)
F1 (Overall)99.15
18
Machine-generated text detectionGrover (full)
Accuracy86.7
9
Machine-generated text detectionGPT-2 (full)
Acc91.1
9
Machine-generated text detectionGPT-3.5 (full)
Accuracy99.95
9
Machine-generated text detectionHC3 (full)
Accuracy99.92
9
Machine-generated text detectionGPT-2 (test)
Accuracy85.75
5
Machine-generated text detectionGPT-3.5 (test)
Accuracy99.14
4
Machine-generated text detectionGPT3.5 and HC3 Cross-generator 64-shot
GPT3.5 -> HC3 Score78.79
3
Machine-generated text detectionHC3 Cross-domain
Score (Medicine)70.86
3
Showing 10 of 10 rows

Other info

Code

Follow for update