Abstract
Large language models (LLMs) have the potential to generate texts that pose risks of misuse, such as plagiarism, planting fake reviews on e-commerce platforms, or creating inflammatory false tweets. Consequently, detecting whether a text is generated by LLMs has become increasingly important. Existing high-quality detection methods usually require access to the interior of the model to extract the intrinsic characteristics. However, since we do not have access to the interior of the black-box model, we must resort to surrogate models, which impacts detection quality. In order to achieve high-quality detection of black-box models, we would like to extract deep intrinsic characteristics of the black-box model generated texts. We view the generation process as a coupled process of prompt and intrinsic characteristics of the generative model. Based on this insight, we propose to decouple prompt and intrinsic characteristics (DPIC) for LLM-generated text detection method. Specifically, given a candidate text, DPIC employs an auxiliary LLM to reconstruct the prompt corresponding to the candidate text, then uses the prompt to regenerate text by the auxiliary LLM, which makes the candidate text and the regenerated text align with their prompts, respectively. Then, the similarity between the candidate text and the regenerated text is used as a detection feature, thus eliminating the prompt in the detection process, which allows the detector to focus on the intrinsic characteristics of the generative model. Compared to the baselines, DPIC has achieved an average improvement of 6.76% and 2.91% in detecting texts from different domains generated by GPT4 and Claude3, respectively.
Introduction: The Challenge of Black-Box Detection
As Large Language Models (LLMs) become more sophisticated, the risks of misuse—plagiarism, fake reviews, and automated disinformation—grow. Detecting whether a text was written by a human or an AI is a high-stakes game of cat-and-mouse.
Current detection methods fall into two primary categories, both with significant limitations:
- Supervised Classifiers: These are trained on specific datasets but often fail when they encounter a new topic or "domain" they haven't seen before, suffering from poor generalizability.
- Zero-Shot Detectors: These (like DetectGPT) look for statistical patterns (log probabilities) inside the model. However, for "black-box" models like GPT-4 or Claude 3, internal statistics are inaccessible. Using a smaller "surrogate" model to estimate these statistics leads to a substantial drop in accuracy.
The authors argue that the "prompt" (the topic/intent) and the "intrinsic characteristics" (the model's unique writing style) are tightly coupled. To effectively identify AI-generated content, one must strip away the topic and focus solely on the underlying generative style.
The DPIC Framework
The proposed DPIC (Decoupling Prompt and Intrinsic Characteristics) framework is a multi-step pipeline designed to work without internal access to the source model:
- Prompt Reconstruction: Given a candidate text, DPIC uses an auxiliary LLM (e.g., ChatGPT or Vicuna) to perform "Question Generation," essentially identifying the prompt that would have likely resulted in the given text.
- Text Regeneration: The auxiliary LLM takes the reconstructed prompt and generates its own response. This results in two pieces of text aligned to the same semantic prompt.
- Feature Extraction (Siamese Network): Both the candidate text and the regenerated text are processed by a Siamese Network—a neural architecture with two identical branches sharing weights. This network encodes both texts into high-dimensional embeddings.
- Classification: By concatenating these embeddings, a classifier determines if the candidate text is AI-generated. If the candidate is AI-generated, it will share deep "intrinsic characteristics" with the regenerated AI text, resulting in high similarity.
Experimental Setup and Datasets
The researchers evaluated DPIC across a wide variety of domains to test its generalizability:
- Training: The Human-ChatGPT Comparison Corpus (HC3).
- Testing (Generalization): Xsum (news articles), WritingPrompts (creative stories), and PubMedQA (biomedical research).
- Source Models: Evaluation included texts generated by GPT-4, Claude 3, and ChatGPT.
- New Benchmarks: To further test out-of-domain performance, the study introduced datasets from Wikipedia, CovidQA, and SUMMAC (research abstracts).
Key Insights
- Topic Neutralization: By regenerating text from a reconstructed prompt, the detector transitions from a "topic recognizer" to a "style recognizer." This prevents the model from being misled by technical subjects written by humans.
- The Power of Alignment: Even if the reconstructed prompt is not a perfect match for the original, it creates a "controlled environment." Because both texts respond to the same prompt, the remaining differences are primarily due to intrinsic writing style.
- Black-Box Robustness: Unlike previous methods that struggle without internal model access, DPIC treats the source model as a complete black box, relying only on text inputs and outputs.
Results and Performance
DPIC consistently outperformed state-of-the-art baselines, such as RADAR and Fast-DetectGPT:
- Superior Accuracy: It achieved an average improvement of 6.76% in detecting GPT-4 text and 2.91% for Claude 3 across different domains.
- Near-Perfect Detection: In several tests, such as the Xsum dataset, DPIC achieved an AUROC (Area Under the Receiver Operating Characteristic) of 1.0000 or very close to it.
- Robustness to Attacks: DPIC remained highly effective against "paraphrasing attacks" (using DIPPER) and "back-translation" (translating to Chinese and back to English), as it focuses on semantic consistency rather than just word-level patterns.
Limitations and Future Work
- Computational Cost: DPIC requires two auxiliary LLM calls per detection (prompt reconstruction and regeneration), which is more resource-intensive than simple statistical methods.
- Dependency on the Auxiliary Model: Detection quality is partially dependent on the auxiliary LLM's ability to accurately reconstruct prompts.
- Future Directions: Future research will explore more efficient prompt reconstruction methods and test the framework against a broader range of human writing styles to ensure low false positive rates.
Summary updated