Copyright-Protected Language Generation via Adaptive Model Fusion

Javier Abad, Konstantin Donhauser, Francesco Pinto, Fanny Yang
12/9/2024
cs.LGcs.CLcs.CR

No official code found. Best implementation: jaabmar/cp_fuse (8 stars, MIT, last commit 2025-04-28).

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.

View on arXivView PDF

Code Implementations(1)

jaabmar/cp_fuseCommunity100%
MIT

Implementation for the paper "Copyright-Protected Language Generation via Adaptive Model Fusion"

81PythonOct 18, 20241 years agoMIT
copyright-protectionlanguage-modelmachine-learningmodel-fusion

Similar Papers

Cite this paper

@article{abad2024copyrightprotected,
  title  = {Copyright-Protected Language Generation via Adaptive Model Fusion},
  author = {Javier Abad and Konstantin Donhauser and Francesco Pinto and Fanny Yang},
  year   = {2024},
  eprint = {2412.06619},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06619v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.06619.svg)](https://codeofpaper.com/paper/2412.06619)

Discussion