Abstract
The exposure of large language models (LLMs) to copyrighted material during pre-training raises concerns about unintentional copyright infringement post-deployment. This has driven the development of "copyright takedown" methods, post-training approaches aimed at preventing models from generating content substantially similar to copyrighted ones. While current mitigation approaches are somewhat effective for average-case risks, we demonstrate that they overlook worst-case copyright risks exhibited by the existence of long, verbatim quotes from copyrighted sources. We propose BloomScrub, a remarkably simple yet highly effective inference-time approach that provides certified copyright takedown. Our method repeatedly interleaves quote detection with rewriting techniques to transform potentially infringing segments. By leveraging efficient data sketches (Bloom filters), our approach enables scalable copyright screening even for large-scale real-world corpora. When quotes beyond a length threshold cannot be removed, the system can abstain from responding, offering certified risk reduction. Experimental results show that BloomScrub reduces infringement risk, preserves utility, and accommodates different levels of enforcement stringency with adaptive abstention. Our results suggest that lightweight, inference-time methods can be surprisingly effective for copyright prevention.
Introduction
Large Language Models (LLMs) are prone to "regurgitating" verbatim strings of text from their training data. When this data includes copyrighted works like news articles or books, it creates significant legal and ethical liabilities for model deployers. Current mitigation strategies often fall into two traps: they either focus on average-case similarity while ignoring the "worst-case" long verbatim excerpts, or they sacrifice model utility and fluency by using "hard" removal methods like n-gram blocking.
The goal of this research is to establish a "certified" takedown—a formal guarantee that no verbatim quote longer than a specific character threshold ($\tau$) will be generated, even if the model has memorized the source material.
The BloomScrub Framework
BloomScrub operates entirely at inference time, requiring only black-box access to the LLM. It employs an iterative two-step loop to identify and neutralize infringing content.
- Detection via Bloom Filters: The system utilizes Bloom filters—space-efficient data structures—to index character n-grams from a massive copyrighted corpus. During generation, BloomScrub quickly checks for matches. Because Bloom filters have zero false negatives, any quote exceeding the threshold is guaranteed to be detected.
- Guided Rewriting ("Scrubbing"): Instead of blocking tokens, BloomScrub identifies infringing spans and prompts a "rewrite model" to paraphrase those specific sections while maintaining the rest of the response's context and factual integrity.
- Certified Abstention: The process repeats until all quotes are below the safety threshold. If the system fails to scrub the text after a set number of iterations, it abstains from responding, providing a formal safety guarantee.
Experimental Evaluation
The method was evaluated using two corpora: NewsSpan (28,000 NYT articles) and NewsQA (10,000 CNN/DailyMail articles). Utility was measured by the model's ability to answer factual questions about these articles without verbatim quoting.
Key Results
BloomScrub significantly outperformed existing baselines such as MemFree Decoding and R-CAD:
- Infringement Reduction: On NewsSpan, the "Vanilla" model produced quotes up to 542 characters. BloomScrub reduced this maximum to just 54 characters.
- Certified Safety: With abstention enabled, the rate of responses containing quotes longer than the threshold dropped to 0.0%.
- Utility Preservation: BloomScrub maintained factual accuracy, achieving a 27.7% F1 score on NewsQA (identical to the Vanilla model), whereas "hard" removal methods saw significant performance degradation.
Discussion and Future Work
BloomScrub treats copyright as a "soft constraint," allowing the model to use its global planning capabilities to restructure sentences naturally. This approach is particularly effective at preserving named entities while changing the surrounding copyrighted prose. Furthermore, the use of Bloom filters ensures the system can scale to massive real-world corpora with minimal latency.
However, the current framework focuses strictly on verbatim quotes and does not yet address "non-literal" infringement, such as paraphrasing unique creative plots. Additionally, while the iterative rewrite loop is effective, it introduces computational overhead compared to single-pass generation. Future work will explore optimizing this loop and addressing more complex forms of creative infringement.
Summary updated