Training Foundation Models as Data Compression: On Information, Model Weights and Copyright Law

Giorgio Franceschelli, Claudia Cevenini, Mirco MusolesiarXiv 2024

TL;DR

This paper proposes a "training-as-compressing" framework, arguing that foundation model weights are essentially lossy or lossless compressed versions of their training data. By linking deep learning to information theory, the authors provide a rigorous technical foundation for viewing model weights and outputs as derivative works, potentially reshaping how we apply copyright law to generative AI.

What Problem Does This Paper Address?

The rapid rise of generative AI has left legal systems scrambling. Are AI-generated outputs "derivative works" of the training data? Is training on copyrighted material a form of reproduction? Current debates often lack a precise technical bridge between the act of training a model and the legal concepts of copying and derivation.

The authors address this gap by framing the entire lifecycle of a foundation model—from training to fine-tuning to inference—through the lens of information theory. They aim to move beyond vague analogies and establish a framework where model weights are seen as a tangible representation of the training set, thereby clarifying the legal relationship between data owners and AI developers.

Methods

The core of the paper is the training-as-compressing perspective. The authors draw a direct mapping between machine learning components and classical data compression:

  • Training Algorithm $\leftrightarrow$ Compression Algorithm: The process of minimizing reconstruction error is functionally equivalent to compressing source data.
  • Inference Algorithm $\leftrightarrow$ Decompression Algorithm: The feed-forward pass "unpacks" information stored in the weights.
  • Model Input $\leftrightarrow$ Decoding Key: The prompt acts as the specific key required to retrieve (decompress) specific information.
  • Model Weights $\leftrightarrow$ Compressed Data: The weights are the physical repository of the compressed training set.
Figure 1. The training-as-compressing perspective. The training set is compressed into the weights via a training algorithm; the source data can be retrieved using the appropriate model’s input.

To ground this, the authors utilize the Information Bottleneck (IB) principle. In self-supervised learning, the model tries to find a representation that is as simple as possible while retaining maximum information about the input. Since the target in self-supervised learning is the input itself, the resulting representation (the weights) is, by definition, a compressed version of that input.

Datasets

The paper does not introduce new datasets or benchmarks. Instead, it uses LLaMa3-70B and LLaMa3-8B as case studies to perform "back-of-the-envelope" calculations regarding compression ratios and to demonstrate memorization.

Key Insights and Ideas

  • Memorization as Evidence of Compression: The authors use Noam Chomsky’s famous nonsensical sentence, "Colorless green ideas sleep furiously," to test LLaMa3-70B. Because the sentence is semantically void, a model that truly "learned English" should assign it low probability. However, LLaMa3 assigns it extremely high probability (over 0.9 for most tokens), proving it has memorized the specific string from its training data.
Figure 2. A thought experiment to confirm that LLMs memorize training data: even if the sentence is semantically nonsensical, the model assigns high probability to its tokens just because it occurred in its training set.
  • Massive Compression Ratios: The authors calculate that LLaMa3-70B is trained on roughly 255 exabits ($10^{18}$) of data, while the model weights themselves occupy only about 1.1 exabits. This represents a staggering compression ratio, reinforcing the idea that weights are a highly efficient, albeit lossy, representation of the training set.
  • The Legal Chain of Derivation: The paper argues that if weights are compressed data, they are legally a "reproduction" or a "derivative work." Consequently, any output generated by the model is a derivative work of the weights, and by extension, a derivative work of the original training data. This creates a continuous legal chain from the training set to the final AI output.
Figure 3. A schematic summary of the legal framework resulting from the training-as-compressing perspective. The blue arrows connect potentially protected entities to their copies or derivative works: the foundation model is a copy or a derivative work of the training data; fine-tuning leads to a new derivative work of the foundation model and the tuning data; and an AI-generated work is a derivative work of either the foundation or the fine-tuned model. The yellow (dotted) and red (dashed) arrows directly link the AI-generated work back to training data and training and tuning data, respectively, only through steps requiring specific exceptions or authorization.

Key Results

  • Technical-Legal Alignment: The authors demonstrate that the "sui generis" right for databases in EU law could potentially protect model weights as a collection of independently retrievable data points (floating-point numbers), even if the weights themselves don't meet the threshold for traditional copyright authorship.
  • Implications for Fair Use: By framing output as "decompression," the authors suggest that generating content might trigger reproduction or adaptation rights. This could mean that while training might be covered by exceptions (like TDM in the EU or Fair Use in the US), generating similar content might still require authorization from the original rightsholders.

Limitations and Future Work

  • Authorship Ambiguity: The paper acknowledges that it remains an open question whether the human effort involved in training (choosing data, hyperparameters, etc.) is sufficient to claim authorship of the resulting weights.
  • Variability in Lossiness: Not all training data is compressed equally. Some samples are perfectly memorized (lossless), while others are barely represented (highly lossy). The legal implications of this "gradient of compression" need further exploration.
  • Formalization: The authors call for a more rigorous mathematical formalization of this framework to serve as a robust basis for future legal analysis and policy-making.

Summary updated

BibTeX
@misc{franceschelli2024training,
  author = {Giorgio Franceschelli and Claudia Cevenini and Mirco Musolesi},
  title = {{Training Foundation Models as Data Compression: On Information, Model Weights and Copyright Law}},
  year = {2024},
  eprint = {2407.13493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.13493},
}
Figure