atlas

Research map / Large language models / Language, safety and interpretability

DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection · 11 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DeTeCtive, which fine-tunes text encoders with a multi-task multi-level contrastive loss plus a KNN retrieval pipeline to detect AI-generated text, and adds training-free incremental adaptation via database augmentation.

Problem

Detecting AI-generated text with supervised binary classifiers generalizes poorly to out-of-distribution domains and newly emerged LLMs.

Approach

Reframe detection as distinguishing writing styles of different sources (human vs. LLM families, companies, and individual models) using a multi-level contrastive loss with hierarchical positive/negative sets, combined with a KNN retrieval over a feature database, so new OOD data can be added to the database without retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DeTeCtive instead of the strongest reported baselineAI-generated text detection · M4-monolingualAvgRec: 91.92 -> 98.44Helped
Use DeTeCtive instead of the strongest reported baselineAI-generated text detection · M4-multilingualAvgRec: 86.27 -> 93.42Helped
Use DeTeCtive instead of the strongest reported baselineAI-generated text detection · TuringBenchAvgRec: 99.59 -> 99.74Helped
Use DeTeCtive instead of the strongest reported baselineAI-generated text detection · Deepfake Cross-domains & Cross-modelsAvgRec: 93.49 -> 96.15Helped
Add Cross-domains & Cross-models data to the feature databaseDeTeCtive · Deepfake Unseen ModelsAvgRec: 92.19 -> 93.03Helped
Add Cross-domains & Cross-models data to the feature databaseDeTeCtive · Deepfake Unseen DomainsAvgRec: 82.60 -> 89.63Helped
Use multi-level contrastive loss instead of plain contrastive loss (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 94.22 -> 96.15Helped
Add the auxiliary cross-entropy loss (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 95.01 -> 96.15Helped
Use the alpha-weighted loss term (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 95.25 -> 96.15Helped
Use the beta-weighted loss term (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 94.94 -> 96.15Helped
Use the gamma-weighted loss term (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 94.88 -> 96.15Helped
Use KNN instead of the classification head (ablation)DeTeCtive · Deepfake Cross-domains & Cross-modelsAvgRec: 93.19 -> 96.15Helped

Surprising findings

Limitations

Experimental setup

Datasets: Deepfake M4 TuringBench OUTFOX DIPPER

Benchmarks: Deepfake M4-monolingual M4-multilingual TuringBench OUTFOX

Metrics: AvgRec F1 HumanRec MachineRec

Baselines: RoBERTa SCL Longformer T5-Sentinel Binoculars FastText GLTR DetectGPT OUTFOX HC3 Detector Random Forest SVM

Builds on: SimCLR SimCSE supervised contrastive learning dense information retrieval Faiss

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy