Introduction
The rapid advancement of Large Language Models (LLMs) has sparked significant legal and ethical debates regarding the use of copyrighted material in training datasets. As developers become increasingly opaque about their data sources, content creators lack reliable tools to verify if their intellectual property has been ingested. While Membership Inference Attacks (MIAs) are often used to detect training data membership, they typically rely on "natural memorization," which is prevalent in massive models but significantly less pronounced in smaller, "inference-optimal" models (around 1B parameters). This study introduces "copyright traps"—intentionally planted fictitious sequences—as a robust method for auditing data usage in these smaller models.
Methodology
The researchers propose a technique inspired by "trap streets" in cartography, where fake geographic features are used to identify map plagiarism. In this context, "trap sequences" are unique, fictitious text snippets injected into documents. To evaluate this approach, the authors trained a 1.3B parameter model, CroissantLLM, from scratch on a 3-trillion-token corpus. This controlled environment allowed for a systematic investigation of how three variables influence detectability:
- Sequence Length ($L_{ref}$): 25, 50, or 100 tokens.
- Repetition ($n_{rep}$): Frequency of the trap sequence (1 to 1,000 occurrences).
- Perplexity: The inherent unpredictability of the sequence relative to a reference model.
Detection was measured using three MIA variants: the Loss attack, Min-K% Prob, and the Ratio attack.
Key Findings
The study reveals that standard MIAs are largely ineffective against small models without the use of traps, yielding detection accuracies (AUC) near 0.52—barely better than random guessing. However, the introduction of purposefully designed traps significantly enhances auditability.
The Impact of Length and Repetition
A critical insight is that repetition alone does not guarantee memorization in small models. For a trap to be effective, it must be both sufficiently long and highly repeated. As shown in the experimental results, the most effective configuration involved a 100-token sequence repeated 1,000 times.
Training Dynamics and Perplexity
The researchers observed that memorization is not an instantaneous event but a process that intensifies throughout training. As the model processes more tokens, the trap sequences become more deeply embedded in its weights, leading to higher AUC scores over time.
Furthermore, sequences with higher perplexity—those that deviate significantly from "normal" language—are easier for the model to memorize and subsequently easier to detect. This suggests that the most effective copyright traps are those that are linguistically unique.
Results
The proposed method achieved a peak ROC AUC of 0.748 using the Ratio MIA for a 100-token sequence repeated 1,000 times. This represents a substantial improvement over the baseline performance of ~0.52. Notably, these traps remained detectable even after model quantization (e.g., to 4-bit precision), ensuring the method's utility for models deployed in resource-constrained environments.
Conclusion
Copyright traps provide a viable pathway for content creators to protect their work against unauthorized use in LLM training. While the current necessity for high repetition and length may impact document readability, future iterations could explore "semantic traps" that bypass simple deduplication filters. This work provides the first causal evidence linking controlled data injection to measurable memorization in small-scale language models, offering a new tool for transparency in the AI ecosystem.
Summary updated