Foundation Models and Fair Use

Peter Henderson, Xuechen Li, Dan Jurafsky, Tatsunori Hashimoto, Mark A. Lemley, Percy Liang · DOI

This analysis, authored by a multidisciplinary team from Stanford University, examines the application of the U.S. "fair use" doctrine to the current generation of foundation models (FMs). While training these models on copyrighted data is often considered transformative, their generative outputs are not automatically protected, creating a complex legal landscape for developers and creators alike.

The rapid deployment of models like GPT-4 and Stable Diffusion has outpaced existing legal frameworks. Developers frequently rely on the fair use doctrine—a legal framework allowing the use of copyrighted material without permission under specific conditions, such as for transformative purposes.

Diversity of foundation model products across text, code, and image domains.

However, a major challenge arises when the outputs of these models compete with original data creators. If a model generates content that mimics the "heart" of a copyrighted book or produces code identical to a licensed repository, it may lose its fair use protection. The core issue is whether the AI-generated work serves as a market substitute for the original.

Mapping Market Transformations

To understand the legal risks, it is essential to look at how input data is transformed into various output markets. Legal infringement is not just about verbatim copying; courts evaluate whether the "expressive heart"—the unique thematic and narrative elements—of a work was taken.

Mapping the transformation of input data to output markets and associated legal precedents.

As illustrated in the figure above, different output types—such as abridgments, critiques, or parodies—carry different legal weights based on established case law. For example, while a parody might be protected, an abridgment that serves the same market as the original book is less likely to be considered fair use.

Empirical Evidence of Regurgitation

The researchers conducted "extraction experiments" on state-of-the-art models using datasets like Books3 and the Linux Kernel Repository. Their findings highlight significant vulnerabilities:

  • Regurgitation Scales with Capability: Surprisingly, more capable models with longer context windows (like GPT-4) are more likely to regurgitate long spans of copyrighted material than smaller, older models.
  • Filter Evasion: Simple verbatim filters are easily bypassed. Researchers bypassed GPT-4’s safety filters by asking it to use character substitution (e.g., replacing 'a' with '4') while reciting Harry Potter.
  • Code Overlap: Codex models generated function implementations that substantially overlapped with the Linux kernel in nearly 1% of samples, with some matches exceeding 45% similarity.
  • User Intent and Style: Analysis of 10 million image prompts from the Krea AI dataset showed that artist "Greg Rutkowski" was referenced 1.2 million times, highlighting a massive demand for style-mimicry that could threaten individual creators.

Technical Mitigations and Future Directions

Because fair use is decided on a case-by-case basis, there is no mathematical formula to guarantee a model is "safe." The authors argue for a "co-evolution" where technical mitigations and legal safe harbors work together. Key future directions include:

  1. Semantic Filtering: Moving beyond simple n-gram matching to filters that understand when a model is "remixing" the expressive heart of a work.
  2. Instance Attribution: Developing ways to cite which training examples influenced a specific output to assist with DMCA compliance.
  3. Extractive-Preventative RLHF: Using Reinforcement Learning from Human Feedback to specifically train models to avoid regurgitation while maintaining creative utility.
  4. Legal Safe Harbors: Proposing that the law evolve to provide protections for developers who implement strong, state-of-the-art technical mitigations in good faith.

By bridging the gap between technical metrics and legal standards, the industry can better navigate the tension between AI innovation and copyright protection.

Summary updated

BibTeX
@article{henderson2023foundation,
  author = {Peter Henderson and Xuechen Li and Dan Jurafsky and Tatsunori Hashimoto and Mark A. Lemley and Percy Liang},
  title = {{Foundation Models and Fair Use}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
}
Figure