Skip to main content
QUICK REVIEW

[Paper Review] ConDA: Contrastive Domain Adaptation for AI-generated Text Detection

Amrita Bhattacharjee, Tharindu Kumarage|arXiv (Cornell University)|Sep 7, 2023
Topic ModelingComputer Science3 citations
TL;DR

ConDA proposes a contrastive domain adaptation framework that leverages labeled source data from one LLM and unlabeled target data from another to detect AI-generated news text without requiring labels for the target generator. By combining domain adaptation with contrastive learning, ConDA achieves state-of-the-art performance, reducing the gap to fully supervised detectors to within 0.8% and improving baseline performance by 31.7% on average.

ABSTRACT

Large language models (LLMs) are increasingly being used for generating text in a variety of use cases, including journalistic news articles. Given the potential malicious nature in which these LLMs can be used to generate disinformation at scale, it is important to build effective detectors for such AI-generated text. Given the surge in development of new LLMs, acquiring labeled training data for supervised detectors is a bottleneck. However, there might be plenty of unlabeled text data available, without information on which generator it came from. In this work we tackle this data problem, in detecting AI-generated news text, and frame the problem as an unsupervised domain adaptation task. Here the domains are the different text generators, i.e. LLMs, and we assume we have access to only the labeled source data and unlabeled target data. We develop a Contrastive Domain Adaptation framework, called ConDA, that blends standard domain adaptation techniques with the representation power of contrastive learning to learn domain invariant representations that are effective for the final unsupervised detection task. Our experiments demonstrate the effectiveness of our framework, resulting in average performance gains of 31.7% from the best performing baselines, and within 0.8% margin of a fully supervised detector. All our code and data is available at https://github.com/AmritaBh/ConDA-gen-text-detection.

Motivation & Objective

  • To address the challenge of detecting AI-generated news text when labeled data for new or unseen LLMs is unavailable.
  • To improve detection performance in low-resource settings by leveraging unlabeled target domain data.
  • To develop a framework that generalizes across diverse LLMs without requiring retraining for each new generator.
  • To reduce reliance on large-scale labeled datasets by framing detection as an unsupervised domain adaptation problem.
  • To enhance model robustness and generalization through contrastive learning that encourages domain-invariant representations.

Proposed method

  • The framework uses a pre-trained language model (RoBERTa) as the backbone for feature extraction across source and target domains.
  • It applies a contrastive learning objective that encourages positive pairs (e.g., augmented views of the same sample) to have similar representations while pushing apart negative pairs across domains.
  • A domain discriminator is used to align features across source and target domains, minimizing domain shift while preserving task-specific distinctions between human and AI-generated text.
  • The model jointly optimizes for detection accuracy and domain invariance using a multi-task learning objective with shared encoder weights.
  • The framework is trained end-to-end using labeled source data (e.g., GROVER_mega) and unlabeled target data (e.g., ChatGPT), with no need for target labels.
  • The contrastive loss acts as a regularizer, reducing overfitting to the source generator and improving zero-shot generalization to unseen LLMs.

Experimental results

Research questions

  • RQ1Can a contrastive domain adaptation framework effectively detect AI-generated news text when only labeled data from a source LLM and unlabeled data from a target LLM are available?
  • RQ2How does the integration of contrastive learning improve domain-invariant representation learning for AI-generated text detection?
  • RQ3To what extent can ConDA generalize to newly released or unseen LLMs without fine-tuning on their data?
  • RQ4How does ConDA’s performance compare to fully supervised detectors and existing unsupervised baselines in zero-shot detection settings?
  • RQ5What is the impact of contrastive learning on model robustness and generalization across diverse LLMs and text styles?

Key findings

  • ConDA achieves an average performance gain of 31.7% over the best-performing baseline models in unsupervised AI-generated text detection.
  • The model reduces the performance gap to a fully supervised detector to within 0.8% across multiple benchmark datasets.
  • ConDA demonstrates strong zero-shot generalization, effectively detecting text from unseen LLMs such as ChatGPT, even when trained only on data from other generators.
  • Visualization of embeddings shows that ConDA successfully reduces domain-specific features while preserving the separability between human and AI-generated text.
  • The contrastive learning component significantly improves domain invariance, as evidenced by reduced domain shift in the latent space.
  • The framework maintains high performance across diverse LLMs, including GROVER_mega, GPT-3.5, and ChatGPT, indicating strong generalization capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.