OSTAR: Optimized Statistical Text-classifier with Adversarial Resistance

Lei Shi (Communication University of China) · Feifei Kou (Beijing University of Posts and Telecommunications) · Yuhan Yao (Beijing University of Posts and Telecommunications) · Xiao yang (Beijing University of Posts and Telecommunications) · Zhongbao Zhang (Beijing University of Posts and Telecommunications) · Suguo Zhu (Hangzhou Dianzi University) · Jiwei Zhang (Beijing University of Posts and Telecommunications) · Lirong Qiu (Beijing University of Posts and Telecommunications) · LI Haisheng (Beijing Technology and Business Universi)
adversarial environmentsdecision boundariesdynamic adaptabilityfeature variationsfine-tuned classifiersgenerative modelsintrinsic featuresmachine-generated textmgt detectionmulti-dimensional statistical profilingmulti-faceted contrastive learningostaroverfittingrobust detection methodsstatistical-based methods

The advancements in generative models and the real-world attack of machine-generated text(MGT) create a demand for more robust detection methods. The existing MGT detection methods for adversarial environments primarily consist of manually designed statistical-based methods and fine-tuned classifier-based approaches. Statistical-based methods extract intrinsic features but suffer from rigid decision boundaries vulnerable to adaptive attacks, while fine-tuned classifiers achieve outstanding performance at the cost of overfitting to superficial textual feature. We argue that the key to detection in current adversarial environments lies in how to extract intrinsic invariant features and ensure that the classifier possesses dynamic adaptability. In that case, we propose OSTAR, a novel MGT detection framework designed for adversarial environments which composed of a statistical enhanced classifier and a Multi-Faceted Contrastive Learning(MFCL). In the classifier aspect, our Multi-Dimensional Statistical Profiling (MDSP) module extracts intrinsic difference between human and machine texts, complementing classifiers with useful stable features. In the model optimization aspect, the MFCL strategy enhances robustness by contrasting feature variations before and after text attacks, jointly optimizing statistical feature mapping and baseline pre-trained models. Experimental results on three public datasets under various adversarial scenarios demonstrate that our framework outperforms existing MGT detection methods, achieving state-of-the-art performance and robust against attacks.The code is available at https://github.com/BUPT-SN/OSTAR.