DE-COP: Detecting Copyrighted Content in Language Models Training Data

André V. Duarte, Xuandong Zhao, Arlindo L. Oliveira, Lei Li
2/15/2024
cs.CLcs.LG

Official code: LeiLiLab/DE-COP (7 stars, Apache-2.0, last commit 2024-06-05). 1 more implementation below.

Abstract

How can we detect if copyrighted content was used in the training process of a language model, considering that the training data is typically undisclosed? We are motivated by the premise that a language model is likely to identify verbatim excerpts from its training text. We propose DE-COP, a method to determine whether a piece of copyrighted content was included in training. DE-COP's core approach is to probe an LLM with multiple-choice questions, whose options include both verbatim text and their paraphrases. We construct BookTection, a benchmark with excerpts from 165 books published prior and subsequent to a model's training cutoff, along with their paraphrases. Our experiments show that DE-COP surpasses the prior best method by 9.6% in detection performance (AUC) on models with logits available. Moreover, DE-COP also achieves an average accuracy of 72% for detecting suspect books on fully black-box models where prior methods give approximately 4% accuracy. The code and datasets are available at https://github.com/LeiLiLab/DE-COP.

View on arXivView PDF

Code Implementations(2)

LeiLiLab/DE-COPOfficial100%
Apache-2.0
71PythonJun 5, 20242 years agoApache-2.0
Apache-2.0

This repository presents the original implementation of DE-COP: Detecting Copyrighted Content in Language Models Training Data by André V. Duarte, Xuandong Zhao, Arlindo L. Oliveira and Lei Li

72PythonFeb 6, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{duarte2024decop,
  title  = {DE-COP: Detecting Copyrighted Content in Language Models Training Data},
  author = {André V. Duarte and Xuandong Zhao and Arlindo L. Oliveira and Lei Li},
  year   = {2024},
  eprint = {2402.09910},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.09910v2},
  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/2402.09910.svg)](https://codeofpaper.com/paper/2402.09910)

Discussion