Abstract
This paper proposes a "fair learning" doctrine for Large Language Models (LLMs), shifting the legal focus from behavioral outputs (substantial similarity) to structural design and training processes. By applying causal and correlational analyses to the Pythia model, we demonstrate that common training decisions—such as upweighting specific documents—do not necessarily lead to the copyright-infringing memorization often alleged in litigation. Instead, we find that inherent data density is a more significant driver of memorization. This work provides a technical framework for courts to evaluate "good faith" in AI development and incentivizes transparent, responsible machine learning engineering.
Introduction
Current legal challenges against LLM developers typically center on "substantial similarity," where infringement is claimed if a model can reproduce verbatim training data. However, this behavioral perspective is limited; models can be adversarially prompted to reveal data that they do not output under normal use, and the definition of similarity remains algorithmically elusive.
We argue for a "structural" approach: evaluating the training process itself. If a developer intentionally upsamples copyrighted data to ensure memorization, it may constitute a violation. Conversely, if reasonable steps are taken to prevent memorization, the developer should be protected under a "fair learning" standard. This paper operationalizes this legal standard by measuring how specific training choices impact memorization metrics.
Methodology
We analyzed the training of Pythia, an open-source LLM, using two primary statistical lenses:
- Causal Analysis (Randomized Control Trials): Leveraging the randomized train/test split of "The Pile" (Pythia’s training set), we treated the training set as a treatment group and the test set as a control. We used linear regression to measure the causal effect of upweighting (increasing the frequency a document is seen) on memorization.
- Correlational Analysis (Simulated Ablation): To avoid the prohibitive cost of retraining from scratch, we used data density—measuring similar snippets across the dataset via Elasticsearch and BM25 scores. We then fit a regression to predict model loss based on this density, simulating the impact of removing specific datasets (e.g., FreeLaw or PubMed).
The Impact of Training Decisions
A central finding of our study is the debunking of the "Upsampling Myth." In high-profile litigation, plaintiffs often allege that upsampling data leads directly to infringement. However, our analysis of Pythia shows that seeing a document two or three times has a negligible effect on memorization metrics like MinK%.
Instead, Data Density emerges as the primary driver. Memorization is less a function of how many times a model sees one specific file and more about how many similar files exist across the entire web-scale dataset. If a model encounters thousands of versions of a similar legal contract, it will likely memorize the pattern regardless of whether any single copy was intentionally upweighted.
Key Results
- Causal Impact: Regression analysis showed the coefficient for upweighting ($\beta_1$) was near zero for most datasets. For the Pile-CC subset, the effect on MinK% was a marginal 0.047.
- Ablation Sensitivity: Simulated ablation revealed that datasets like FreeLaw and PubMed Central are highly "self-similar." Removing them would cause a significant spike in loss for those domains, whereas removing Books3 had a smaller relative impact due to its more diffuse content.
- Metric Correlation: We found that Token Accuracy and MinK% are more sensitive indicators of output similarity than standard cross-entropy loss, making them superior tools for legal "substantiality" tests.
Discussion and Conclusion
Adopting a "fair learning" doctrine would incentivize developers to maintain rigorous train/test splits and release detailed "Model Cards" to prove training choices were made in good faith. While our study is limited by the scale of the Pythia model (up to 6.9B parameters), it provides the necessary tools to measure memorization objectively.
Ultimately, while the threshold for "substantial" memorization remains a subjective legal decision, our framework allows that decision to be informed by technical reality rather than behavioral anomalies. Future work should explore whether larger frontier models exhibit different "phase transitions" in memorization that might necessitate stricter structural rules.
Summary updated