atlas

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

Few-Shot Detection of Machine-Generated Text using Style Representations

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection · 6 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 few-shot detection of machine-generated text by comparing writing-style embeddings (UAR, trained on human Reddit authorship, no LLM samples at training) of a handful of support documents against query documents, evaluated on LWD and M4 benchmarks.

Problem

Detecting text generated by LLMs (including newer, unseen models) is brittle for supervised classifiers under distribution shift, and existing methods need access to the generator's distribution or many of its samples.

Approach

Use pretrained authorship-style representations learned contrastively from human-authored text only; a few support documents from an LLM of concern define a style prototype, and queries are scored by cosine similarity to it, so no LLM samples are needed at training time.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train UAR with Reddit, Twitter, and StackExchange rather than Reddit alone (ablation)UAR single-target detection · Unseen domains, topics, and LLM, N=5pAUC: 0.868 (0.001) -> 0.886 (0.001)Helped
Train UAR with Reddit, Twitter, and StackExchange rather than Reddit alone (ablation)UAR single-target detection · Unseen domains, topics, and LLM, N=10pAUC: 0.958 (0.001) -> 0.9676 (0.0008)Helped
Fine-tune UAR on AAC and Reddit politics rather than human-only Reddit (ablation)UAR single-target detection · Unseen domains, topics, and LLM, N=5pAUC: 0.868 (0.001) -> 0.877 (0.001)Helped
Fine-tune UAR on AAC and Reddit politics rather than human-only Reddit (ablation)UAR single-target detection · Unseen domains, topics, and LLM, N=10pAUC: 0.958 (0.001) -> 0.9400 (0.0013)Hurt
Add length control while controlling for topic in ProtoNet training data (ablation)ProtoNet · AmazonpAUC: 0.769 (0.002) -> 0.844 (0.009)Helped
Add topic control to ProtoNet training data when length is uncontrolled (ablation)ProtoNet · AmazonpAUC: 0.765 (0.002) -> 0.769 (0.002)No clear effect
Paraphrase an increasing proportion of target-model query episodes (ablation)UAR and ProtoNet single-target detection · Paraphrasing attack, N=5pAUCHurt
Include a paraphrase of the support sample as an additional match (ablation)UAR multi-target detection · Paraphrasing attack, N=5pAUCHelped
Use a 32-token truncation instead of the usual 128-token truncation (ablation)Few-shot detectors · Single-target detection, N=10pAUCMixed
Use multi-domain UAR rather than Reddit-only UAR (ablation)Unknown-LLM detection · N=1pAUC: 0.682 (0.002) -> 0.684 (0.002)No clear effect
Use multi-domain UAR rather than Reddit-only UAR (ablation)Unknown-LLM detection · N=2pAUC: 0.759 (0.002) -> 0.706 (0.002)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Reddit comments (5M authors) Twitter StackExchange Amazon reviews AAC (GPT-2/OPT generations on r/politics) LWD M4

Benchmarks: LWD M4

Metrics: pAUC (FPR up to 1%) AUC FPR@95TPR

Baselines: Prototypical Networks MAML SBERT CISR OpenAI AI Detector Rank LogRank Entropy

Builds on: UAR CISR Prototypical Networks MAML DIPPER

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