Copyright Violations and Large Language Models

Antonia Karamolegkou, Jiaang Li, Li Zhou, Anders Søgaard

Abstract

Language models may memorize more than just facts, including entire chunks of texts seen during training. Fair use exemptions to copyright laws typically allow for limited use of copyrighted material without permission from the copyright holder, but typically for extraction of information from copyrighted materials, rather than verbatim reproduction. This work explores the issue of copyright violations and large language models through the lens of verbatim memorization, focusing on possible redistribution of copyrighted text. We present experiments with a range of language models over a collection of popular books and coding problems, providing a conservative characterization of the extent to which language models can redistribute these materials. Overall, this research highlights the need for further examination and the potential impact on future developments in natural language processing to ensure adherence to copyright regulations.

Introduction

The rapid advancement of Large Language Models (LLMs) has sparked a significant legal and ethical debate: are these models learning abstract patterns or simply copying their training data? While "fair use" often protects the extraction of information for analysis, it rarely extends to the verbatim redistribution of creative works. This study, presented at EMNLP 2023, quantifies the extent to which LLMs can reproduce copyrighted material verbatim, moving the conversation from theoretical risk to empirical measurement.

Methodology

To evaluate the risk of redistribution, the researchers focused on verbatim reconstruction—the ability of a model to generate long, continuous sequences of copyrighted text. They employed two primary probing strategies:

  1. Prefix Probing: For open-source models, the researchers provided the first 50 tokens of a text and prompted the model to continue the sequence.
  2. Direct Probing: For instruction-tuned, closed-source models (e.g., GPT-3.5, Claude), they used direct natural language requests, such as "What is the first page of [TITLE]?"
Illustration of Direct Probing and Prefix Probing methods used to evaluate verbatim memorization in LLMs.

The primary metric used was the Longest Common Subsequence (LCS) length, which counts the longest string of words matching the original text exactly. A threshold of 50 words was established as a conservative benchmark for potential copyright concern, aligning with common academic and journalistic fair use standards.

Datasets and Models

The study tested six model families (including LLaMA, Falcon, GPT-3.5, and Claude) against two datasets:

  • Books: 19 bestsellers (1930–2010), such as Gone with the Wind and Harry Potter.
  • Code: 1,826 problem descriptions from LeetCode, where popularity was measured by discussion volume and company tags.

Key Insights and Results

The Scaling Law of Infringement

A critical finding is the near-linear correlation between model size and memorization. While smaller models (<60B parameters) rarely exceeded the 50-word threshold, larger models showed a marked increase in the length of leaked text. This suggests that as models scale, their capacity for verbatim redistribution grows significantly.

The Popularity Trap

Memorization is not uniform; it is highly correlated with the popularity of the source material. Works with more editions and reviews (like Lolita or Harry Potter) were more likely to be memorized verbatim. This indicates that high-frequency exposure during training "burns" specific texts into the model's weights.

Left: Average LCS length vs. model parameter count, showing the scaling law of memorization. Right: Average LCS length for various popular books.

Instruction Tuning and Accessibility

Closed-source models like GPT-3.5 were surprisingly effective at retrieving copyrighted content when asked directly. This suggests that instruction tuning makes memorized data more accessible through simple natural language requests. Interestingly, models sometimes "hallucinate" while trying to memorize—for instance, getting a second line correct while failing the first—indicating that specific prompt phrasing can "unlock" or "block" these memories.

Conclusion and Future Work

The study demonstrates that current LLMs, particularly larger and more popular ones, can redistribute copyrighted text far exceeding typical fair use limits. For more than 30% of LeetCode problems, models could reproduce over 50 words verbatim. While open-source models under 60B parameters currently appear "safer" from a redistribution standpoint, this may change as they continue to scale.

Future research is needed to determine if "deduplication" of training data can mitigate these risks without compromising general reasoning capabilities. As legal standards for AI continue to evolve, empirical data on verbatim memorization will be essential for shaping future regulations.

Summary updated

BibTeX
@inproceedings{karamolegkou2023copyright,
  author = {Antonia Karamolegkou and Jiaang Li and Li Zhou and Anders Søgaard},
  title = {{Copyright Violations and Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=VFxEwzcPJC},
}
Figure