Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text

Abhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi, Aniruddha Saha +3 more
1/22/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: ahans30/Binoculars (417 stars, BSD-3-Clause, last commit 2024-05-14). 1 more below.

Abstract

Detecting text generated by modern large language models is thought to be hard, as both LLMs and humans can exhibit a wide range of complex behaviors. However, we find that a score based on contrasting two closely related language models is highly accurate at separating human-generated and machine-generated text. Based on this mechanism, we propose a novel LLM detector that only requires simple calculations using a pair of pre-trained LLMs. The method, called Binoculars, achieves state-of-the-art accuracy without any training data. It is capable of spotting machine text from a range of modern LLMs without any model-specific modifications. We comprehensively evaluate Binoculars on a number of text sources and in varied situations. Over a wide range of document types, Binoculars detects over 90% of generated samples from ChatGPT (and other LLMs) at a false positive rate of 0.01%, despite not being trained on any ChatGPT data.

View on arXivView PDF

Code Implementations(2)

ahans30/BinocularsCommunity100%
BSD-3-Clause

[ICML 2024] Binoculars: Zero-Shot Detection of LLM-Generated Text

41767Shell, PythonDec 10, 20232 years agoBSD-3-Clause

Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text

01Python, Jupyter NotebookOct 30, 202510 months ago

Similar Papers

Cite this paper

@article{hans2024spotting,
  title  = {Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text},
  author = {Abhimanyu Hans and Avi Schwarzschild and Valeriia Cherepanova and Hamid Kazemi and Aniruddha Saha and Micah Goldblum and Jonas Geiping and Tom Goldstein},
  year   = {2024},
  eprint = {2401.12070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.12070v3},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.12070.svg)](https://codeofpaper.com/paper/2401.12070)

Discussion