GravText: A Robust Framework for Detecting LLM-Generated Text Using Triplet Contrastive Learning with Gravitational Factor
Open Access
Abstract
The growing abilities of large language models (LLMs) have introduced new challenges in reliably distinguishing LLM-generated texts from human-written content, particularly when paraphrasing techniques are used to evade detection. This paper proposes GravText, a detection framework designed to address this robustness gap by targeting paraphrase-invariant semantic features. GravText integrates triplet contrastive learning with a dynamic anchor switching strategy to better model inter-class separability under paraphrasing. Additionally, it introduces a physics-inspired gravitational factor based on cross-attention mechanisms, which enhances the discriminative power of learned embeddings by simulating semantic attraction and repulsion. Experimental results on the HC3 Chinese dataset demonstrate GravText’s superior robustness against paraphrasing. Crucially, further cross-lingual evaluation on an English essay dataset confirms the framework’s strong generalization ability and language-agnostic properties. These findings point to a promising direction for building more reliable AI-text detectors resilient to paraphrasing-based evasion.Keywords
Funding Information
- National Natural Science Foundation of China (12271201, 11601181)
- the Scientific and Technological Research Project of the Education Department of Jilin Province (2024LH011)
This publication has 25 references indexed in Scilit:
- Human intelligence can safeguard against artificial intelligence: individual differences in the discernment of human from AI textsScientific Reports, 2024
- Few-Shot Relation Extraction With Dual Graph Neural Network InteractionIEEE Transactions on Neural Networks and Learning Systems, 2023
- Hidding the Ghostwriters: An Adversarial Evaluation of AI-Generated Student Essay Detection2023
- Multi-modal Sentiment and Emotion Joint Analysis with a Deep Attentive Multi-task Learning Model2022
- Sequence Labeling with Meta-LearningIEEE Transactions on Knowledge and Data Engineering, 2021
- TweepFake: About detecting deepfake tweetsPLOS ONE, 2021
- TURINGBENCH: A Benchmark Environment for Turing Test in the Age of Neural Text Generation2021
- SimCSE: Simple Contrastive Learning of Sentence Embeddings2021
- MetaNER: Named Entity Recognition with Meta-Learning2020
- Automatic Detection of Machine Generated Text: A Critical Survey2020