Abstract
Generative AI models, including Large Language Models (LLMs) and diffusion models, are prone to "regurgitating" copyrighted training data. This paper introduces Near Access-Freeness (NAF), a mathematical framework designed to provide provable guarantees against such behavior. By training models on disjoint data shards and employing inference-time filtering techniques—specifically CP-Δ and CP-k—we ensure that a model's output is not significantly more similar to a copyrighted work than that of a model which never encountered the work. Our results on CIFAR-10 and the C4 text dataset demonstrate that this protection can be achieved with minimal impact on, or even improvement to, general model performance.
Introduction
The rapid advancement of generative AI has brought the issue of data memorization to the forefront. Models trained on massive, internet-scale datasets often output near-verbatim copies of copyrighted material. Legally, infringement typically requires proving both access to the original work and substantial similarity in the generated output. While heuristic defenses like deduplication exist, they lack formal guarantees.
This work proposes a framework that aligns with legal standards by ensuring "near access-freeness." The goal is to bound the influence of any specific copyrighted work on the model's output distribution, effectively making the model behave as if it were "safe"—i.e., trained without that specific work.
Methodology
Near Access-Freeness (NAF)
A generative model is defined as $k$-NAF if its output distribution $p$ is "close" to a safe distribution $q$ (one trained without access to the protected work). Formally, for any output $x$, the log-ratio $\log(p(x)/q(x))$ is bounded by $k$. This one-sided divergence measure ensures that while a model can still generate common or "fortuitously similar" content, it cannot produce content whose high probability is uniquely derived from its access to a specific training example.
Sharded-Safe Training Algorithms
The authors propose two primary implementation strategies:
- CP-Δ (Copy-Protection-Δ): The training data is split into disjoint shards, and separate models (e.g., $q_1, q_2$) are trained. At inference, the output distribution is formed by "min-pooling": $p(x) \propto \min(q_1(x), q_2(x))$. This naturally suppresses outputs that are high-probability in only one shard (indicating memorization) while preserving those supported by both (indicating general knowledge).
- CP-k (Black-Box Oracle): For practical application to existing models, a rejection sampling approach is used. An output is sampled from a base model and accepted only if the log-ratio of its probability compared to a "safe" reference model is below a threshold $k$.
Experimental Results
Image Generation (CIFAR-10)
To test the framework, the authors augmented the CIFAR-10 dataset with multiple copies of specific "copyrighted" images to induce memorization. Using a diffusion model, they applied the CP-k algorithm to filter outputs.
As shown in the figure above, the base model (leftmost) frequently generates the protected horse images. As the filtering threshold $k$ is adjusted to be more restrictive, these instances are systematically removed. At a threshold of $k=500$, the model rejected only ~3.5% of samples, maintaining high visual quality while providing robust protection against regurgitation.
Language Modeling (C4 Dataset)
The framework was also evaluated on decoder-only Transformers (125M and 350M parameters) trained on the C4 dataset. Surprisingly, the CP-Δ approach improved the cross-entropy loss. For the 350M model, the protected version achieved a loss of 3.13–3.16, compared to 3.2 for the unprotected baseline. This suggests that the filtering process acts as a beneficial form of model averaging, stripping away idiosyncratic memorizations that do not generalize.
Discussion and Conclusion
The NAF framework offers a rigorous path forward for the ethical and legal deployment of generative models. Unlike Differential Privacy, which can severely degrade utility by protecting every individual data point, NAF focuses on protecting specific "works," allowing for tighter bounds and better performance. While sharded training increases computational costs, the performance gains observed in language modeling suggest that the trade-off is highly favorable for high-stakes copyright protection.
Summary updated