TL;DR
This paper introduces Contrastive Paraphrase Attack (CoPA), a novel, training-free method to generate human-like text that evades LLM detectors. CoPA achieves this by contrastively adjusting the LLM's output distribution, effectively "subtracting" machine-like patterns to produce more convincing human text. This work highlights the vulnerability of current LLM detectors and offers a powerful tool for auditing their robustness.
What Problem Does This Paper Address?
The rapid advancement of Large Language Models (LLMs) has led to their widespread adoption, but also to concerns about misuse, particularly academic plagiarism and misinformation. To combat this, researchers have developed detectors to identify LLM-generated text. However, attackers have responded with "paraphrase attacks" to rewrite LLM outputs and bypass these detectors. Existing paraphrase attacks often require extensive training data and computational resources for specialized paraphrasers, and their effectiveness diminishes against advanced detection algorithms. This paper addresses the need for a more efficient, training-free, and robust paraphrase attack that can effectively fool state-of-the-art LLM detectors.
Methods
The core of CoPA lies in its contrastive paraphrasing strategy, which operates during the LLM's decoding process. Instead of solely aiming to produce human-like text, CoPA leverages the idea that it's easier to elicit machine-like text.
- Human-like Prompting: The LLM is first prompted to generate text in a human-like style.
- Machine-like Prompting: Simultaneously, a separate prompt is used to elicit a machine-like distribution from the same LLM.
- Contrastive Decoding: The key innovation is to use the machine-like distribution as a negative contrast. By subtracting the machine-like patterns from the human-like distribution, CoPA refines the output probabilities. This process effectively "purifies" the human-like distribution, removing subtle machine artifacts that detectors might latch onto.
- Adaptive Truncation: To maintain coherence and avoid penalizing valid tokens, an adaptive truncation mechanism is employed, restricting the token selection to a more reliable candidate pool.
This approach is training-free, relying on off-the-shelf LLMs and carefully crafted prompts.
Datasets
The paper evaluates CoPA on three widely adopted datasets:
- XSum: For news articles.
- SQUAD: For Wikipedia contexts.
- LongQA: For long-form question answering.
They randomly select 150 samples from each dataset for evaluation. No new benchmarks were introduced.
Key Insights and Ideas
- The Power of Contrast: The most significant insight is that instead of directly forcing human-like output, contrasting it with a deliberately machine-like output is more effective. This "reverse-thinking" approach leverages the LLM's inherent biases against itself.
- Machine-like is Easier to Elicit: The paper posits that generating text with clear machine-like attributes is simpler than generating text that perfectly mimics human nuances. This machine-like distribution then serves as a valuable "negative example."
- Beyond Prompt Engineering: While human-like prompts are a starting point, they are insufficient on their own. The inherent statistical biases of LLMs persist. CoPA's contrastive mechanism directly manipulates the output distribution, offering a more robust solution.
- Theoretical Justification: The authors provide a theoretical framework using KL divergence to demonstrate why their contrastive approach drives the output distribution closer to authentic human text than a purely human-like prompt.
Key Results
- Superior Attack Effectiveness: CoPA consistently outperforms baseline paraphrase attacks (like Dipper and Raidar-A) and significantly enhances fooling rates against various detectors, including advanced ones like Fast-DetectGPT. For instance, CoPA achieved an average improvement of 57.72% in fooling rates against Fast-DetectGPT for GPT-3.5-turbo generated texts.
- Robustness Across LLMs: CoPA demonstrates strong performance across texts generated by different LLMs, including GPT-3.5-turbo, GPT-4, and Claude-3.5.
- High Semantic Similarity: CoPA maintains an average semantic similarity score exceeding 90%, ensuring that the rewritten texts retain their original meaning and coherence.
- Efficiency: Being training-free, CoPA avoids the substantial data and computational costs associated with training dedicated paraphrasers.
Limitations and Future Work
- Latency: The contrastive decoding process requires two forward passes, which can introduce additional latency, potentially limiting real-time applications.
- Semantic Drift: While CoPA generally preserves semantics, multiple generations might sometimes be needed to ensure semantic similarity, especially if the original text is complex.
- Human Evaluation Bias: The human evaluation, while indicating preference for CoPA, did not systematically account for evaluator backgrounds, potentially introducing bias.
- Language Specificity: The current work focuses on English texts. Extending the contrastive framework to other languages (e.g., Chinese, Spanish) is a promising future direction.
- Adaptive Defense: The paper briefly explores an adaptive defense strategy that adversarially trains a detector using CoPA-paraphrased texts, showing potential to alleviate the threat. Further research in adaptive defenses is suggested.
Summary updated