Skip to main content
QUICK REVIEW

[Paper Review] EAGLE: A Domain Generalization Framework for AI-generated Text Detection

Amrita Bhattacharjee, Raha Moraffah|arXiv (Cornell University)|Mar 23, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

EAGLE is a domain generalization framework that detects AI-generated text from unseen large language models (LLMs) by learning domain-invariant features using contrastive learning and domain adversarial training. It achieves 95.3% of a fully supervised detector's performance on unseen generators like GPT-4 and Claude, using only labeled data from older, smaller models.

ABSTRACT

With the advancement in capabilities of Large Language Models (LLMs), one major step in the responsible and safe use of such LLMs is to be able to detect text generated by these models. While supervised AI-generated text detectors perform well on text generated by older LLMs, with the frequent release of new LLMs, building supervised detectors for identifying text from such new models would require new labeled training data, which is infeasible in practice. In this work, we tackle this problem and propose a domain generalization framework for the detection of AI-generated text from unseen target generators. Our proposed framework, EAGLE, leverages the labeled data that is available so far from older language models and learns features invariant across these generators, in order to detect text generated by an unknown target generator. EAGLE learns such domain-invariant features by combining the representational power of self-supervised contrastive learning with domain adversarial training. Through our experiments we demonstrate how EAGLE effectively achieves impressive performance in detecting text generated by unseen target generators, including recent state-of-the-art ones such as GPT-4 and Claude, reaching detection scores of within 4.7% of a fully supervised detector.

Motivation & Objective

  • To address the challenge of detecting AI-generated text from newly released, unseen LLMs without requiring new labeled data.
  • To leverage existing labeled data from older, smaller language models to train detectors generalizable to new, unseen generators.
  • To learn features invariant across different LLMs while remaining robust to minor text perturbations.
  • To reduce reliance on costly, continuous retraining with new labeled datasets for each emerging LLM.
  • To enable zero-shot detection of state-of-the-art LLMs like GPT-4 and Claude using only historical training data.

Proposed method

  • EAGLE combines self-supervised contrastive learning with domain adversarial training to learn domain-invariant representations across multiple source LLMs.
  • It employs a gradient reversal layer to adversarially train a domain discriminator, encouraging the feature encoder to disentangle domain-specific from task-specific features.
  • The framework uses a contrastive loss to enhance feature discrimination by pulling positive samples (original and perturbed text) closer and pushing negative samples apart.
  • It trains on multiple source generators (e.g., GPT-2, GPT-3, XLM, etc.) to improve generalization to unseen target generators.
  • The model is fine-tuned using cross-entropy loss on the detection task while jointly optimizing for domain invariance and representation robustness.
  • Hyperparameter analysis confirms that increasing the number of source domains (k=5) improves generalization performance.

Experimental results

Research questions

  • RQ1Can a detection framework generalize to unseen LLMs without requiring labeled data from those models?
  • RQ2How effective is contrastive learning and domain adversarial training in learning invariant features across diverse LLMs?
  • RQ3To what extent can a detector trained on older, smaller LLMs detect text from state-of-the-art models like GPT-4 and Claude?
  • RQ4How does the number of source generators affect the generalization performance of the detector?
  • RQ5What is the contribution of each component (contrastive loss, domain loss) to the overall detection performance?

Key findings

  • EAGLE achieves detection performance within 4.7% of a fully supervised detector on unseen target generators, including GPT-4 and Claude.
  • The full EAGLE framework outperforms ablated variants, with the contrastive and domain adversarial losses each contributing significantly to performance.
  • Performance improves with an increasing number of source domains, peaking at k=5, indicating that diversity in source models enhances generalization.
  • The ablation study confirms that removing either the contrastive or domain loss leads to measurable performance drops, validating the importance of both components.
  • EAGLE generalizes effectively to GPT-4 and Claude, even though these models were not in the training data, demonstrating strong zero-shot generalization.
  • The framework maintains high performance across diverse target generators, including those with different architectures and attention mechanisms.

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.