As generative AI continues to scale, so do concerns about copyright infringement. Current models, from large language models to diffusion-based image generators, are known to occasionally "regurgitate" their training data—outputting verbatim snippets of text or near-identical copies of artwork.
Legally, copyright infringement typically requires proving two elements: access to the original work and substantial similarity in the output. While developers attempt to mitigate this through dataset deduplication, it is rarely a silver bullet; models can still memorize unique examples. The core challenge is creating a system that can prove its outputs are safe, even if copyrighted material was present in the massive, uncurated training sets used to build these models.
This paper introduces near access-freeness (NAF), a formal mathematical framework designed to prevent generative models from outputting copyrighted content. By using black-box algorithms that combine or filter model outputs, the authors provide provable guarantees that a model's generations are not substantially similar to its training data, all while maintaining high output quality.
The Concept of Near Access-Freeness (NAF)
The authors propose a new criterion called $k$-near access-freeness ($k$-NAF). A model is considered $k$-NAF if its output distribution is "close" (specifically, within $k$ bits of information) to a hypothetical "safe" model that never encountered the copyrighted work in question.
This approach introduces two critical conceptual shifts:
- One-Sidedness: Unlike Differential Privacy (DP), which is "two-sided" (hiding whether a data point was in the dataset at all), NAF is "one-sided." The framework does not care if the model under-represents a work; it only restricts the model from over-representing (copying) it. This makes NAF a much more practical and achievable goal for generative AI than strict DP.
- The "Fortuitous Similarity" Exception: Copyright law allows for two people to create identical works if they did so independently. NAF accounts for this by measuring similarity relative to a model that had no access to the original, essentially "forgiving" accidental or independent similarities.
Algorithmic Solutions
To achieve $k$-NAF, the authors developed several algorithms that can be applied to generative models:
- Sharded-Safe: The training data is split into disjoint shards, and multiple models ($q_1, q_2, \dots$) are trained on these separate shards. For any specific piece of data $C$, at least one model is guaranteed to be "safe" because it never saw $C$ during training.
- CP-$\Delta$ (Copy Protection): A parameter-free method that combines the outputs of the sharded models (using techniques like taking the minimum probability or the geometric mean). This ensures the final output distribution doesn't lean too heavily on any single shard's memorized content.
- CP-$k$ and smooth-CP-$k$: These are rejection sampling algorithms that act as a "wrapper" around a standard model. During inference, the algorithm samples an output and checks the ratio of its probability in the main model versus a "safe" baseline. If the ratio is too high—indicating the model is likely copying something it memorized—the output is rejected, and the model samples again. Because this is a black-box method, it can be applied at the deployment phase without retraining the underlying model.
Experiments and Key Results
The authors validated their approach across both image generation and language modeling domains.
For image generation, they used the CIFAR-10 dataset, deliberately augmenting it with multiple copies of specific images to simulate "copyrighted" works that a standard model would be prone to memorizing.
In the diffusion model experiments, the baseline models frequently generated exact copies of the duplicated training images. However, the CP-$k$ algorithm successfully prevented the model from generating these "copyrighted" CIFAR images.
Crucially, this protection came with minimal quality loss. The acceptance rate during rejection sampling was $\nu_k \approx 0.965$, meaning only 3.5% of samples had to be rejected to maintain the mathematical safety guarantee.
For language modeling, they trained transformer models (125M and 350M parameters) on the C4 (Colossal Clean Crawled Corpus) dataset. Surprisingly, the CP-$\Delta$ approach actually improved cross-entropy loss. This is likely due to a "model averaging" effect, where combining multiple models trained on different shards leads to better overall generalization. Furthermore, the authors showed that for a 350M parameter transformer, the "leakage" ($k$) was tightly bounded to only about 7% of the total entropy of the token distribution.
Limitations and Future Work
While NAF provides a robust mathematical foundation for copyright protection, several challenges remain:
- Computational Overhead: The sharding approach requires training multiple models, which is computationally expensive for massive LLMs. Additionally, rejection sampling at inference time adds latency.
- Defining "Safe": The framework relies on a reliable
safefunction. If copyrighted works are duplicated across many shards (and not properly deduplicated or clustered by author/source prior to sharding), the "safe" model might still have access to the content. - Legal Scope: This paper focuses strictly on the "substantial similarity" of outputs. It does not address other complex legal issues, such as "fair use" during the training phase itself or trademark infringement.
Future work will need to explore how these theoretical bounds and algorithms hold up as models scale to hundreds of billions of parameters and are trained on even larger, noisier datasets.
Summary updated