Copyright-Protected Language Generation via Adaptive Model Fusion
Javier Abad, Konstantin Donhauser, Francesco Pinto, Fanny Yang
TL;DR
CP-Fuse offers a post-hoc, inference-time protection against copyright infringement by adaptively fusing logits from two independently trained models on disjoint copyrighted data. Grounded in a separability assumption and the $k$-NAF framework, the method derives a sequence-history–dependent fusion that balances contributions from both base models, ensuring reduced regurgitation while preserving text and code utility. Empirical results across abstract/story text and Python/code datasets show >=25x reductions in exact memorization with competitive or superior utility compared to inference-time baselines, and the approach complements training-time defenses and remains robust to prefix prompting extractions. The work provides a practical, modular safeguard with potential for scaling to larger models and partial separability scenarios, offering a concrete path toward safer deployment of copyright-sensitive LLMs.
Abstract
The risk of language models reproducing copyrighted material from their training data has led to the development of various protective measures. Among these, inference-time strategies that impose constraints via post-processing have shown promise in addressing the complexities of copyright regulation. However, they often incur prohibitive computational costs or suffer from performance trade-offs. To overcome these limitations, we introduce Copyright-Protecting Model Fusion (CP-Fuse), a novel approach that combines models trained on disjoint sets of copyrighted material during inference. In particular, CP-Fuse adaptively aggregates the model outputs to minimize the reproduction of copyrighted content, adhering to a crucial balancing property that prevents the regurgitation of memorized data. Through extensive experiments, we show that CP-Fuse significantly reduces the reproduction of protected material without compromising the quality of text and code generation. Moreover, its post-hoc nature allows seamless integration with other protective measures, further enhancing copyright safeguards. Lastly, we show that CP-Fuse is robust against common techniques for extracting training data.
