LLMs and Memorization: On Quality and Specificity of Copyright Compliance

Felix B Mueller, Rebekka Görge, Anna K Bernzen, Janna C Pirk, Maximilian Poretschkin
5/28/2024
cs.CLcs.AI

Official code: felixbmuller/llms-memorization-copyright (3 stars, last commit 2024-10-21).

Abstract

Memorization in large language models (LLMs) is a growing concern. LLMs have been shown to easily reproduce parts of their training data, including copyrighted work. This is an important problem to solve, as it may violate existing copyright laws as well as the European AI Act. In this work, we propose a systematic analysis to quantify the extent of potential copyright infringements in LLMs using European law as an example. Unlike previous work, we evaluate instruction-finetuned models in a realistic end-user scenario. Our analysis builds on a proposed threshold of 160 characters, which we borrow from the German Copyright Service Provider Act and a fuzzy text matching algorithm to identify potentially copyright-infringing textual reproductions. The specificity of countermeasures against copyright infringement is analyzed by comparing model behavior on copyrighted and public domain data. We investigate what behaviors models show instead of producing protected text (such as refusal or hallucination) and provide a first legal assessment of these behaviors. We find that there are huge differences in copyright compliance, specificity, and appropriate refusal among popular LLMs. Alpaca, GPT 4, GPT 3.5, and Luminous perform best in our comparison, with OpenGPT-X, Alpaca, and Luminous producing a particularly low absolute number of potential copyright violations. Code can be found at https://github.com/felixbmuller/llms-memorization-copyright.

View on arXivView PDF

Code Implementations(1)

Repository for the AIES 2024 paper "LLMs and Memorization: On Quality and Specificity of Copyright Compliance"

30PythonJul 23, 20242 years ago

Similar Papers

Cite this paper

@article{mueller2024llms,
  title  = {LLMs and Memorization: On Quality and Specificity of Copyright Compliance},
  author = {Felix B Mueller and Rebekka Görge and Anna K Bernzen and Janna C Pirk and Maximilian Poretschkin},
  year   = {2024},
  eprint = {2405.18492},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.18492v3}
}

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/2405.18492.svg)](https://codeofpaper.com/paper/2405.18492)

Discussion