arXiv:2609.01161cs.LGSep 2026

Manuscript Offprint

arXiv:2609.01161

CopyShield: A Cross-Level Benchmark of Copyright Defenses in LLMs

Maryam Alshehyari, Dushyant Singh Chauhan, Samuele Poppi, Martin Takac, Salem Lahlou, Nils Lukas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models can reproduce memorized text verbatim, yet copyright defenses are usually evaluated under incompatible protocols. We introduce CopyShield, a controlled benchmark comparing three representative defenses at distinct intervention levels: contrastive decoding (output), Direct Preference Optimization (behavioral), and activation intervention (representation). We evaluate CopyShield on two model families, LLaMA-3.1-8B and Mistral-7B-v0.3, using controlled memorization over five public-domain books and a shared protocol measuring literal leakage, calibrated non-literal leakage, utility, and degeneracy. Across these methods, intervention level is associated with distinct compliance-utility trade-offs. On LLaMA-3.1-8B, contrastive decoding remains near-degeneracy-free (0–2%) but reaches a literal-suppression floor at NV-Recall 0.192–0.203. DPO nearly eliminates literal leakage (0.263 to 0.002) but induces paraphrase-loop degeneracy in 58% of QA outputs, with no utility gain over the SFT baseline. Activation intervention attains the lowest non-literal flagging rate (1/200) by blocking 84% of non-literal queries before generation. Human evaluation confirms that DPO has low coherence, whereas activation lowers perceived copyright risk through broad refusal. On Mistral-7B-v0.3, the output-and representation-level patterns persist, while DPO degeneracy falls to 10–14%, showing that its severity is model-dependent. Together, CopyShield provides cross-level reference baselines and identifies targeted non-literal suppression as an open challenge. The code is available at https://github.com/spotaimbzuai/CopyShield.

1 Introduction

Large language models (LLMs) trained on massive corpora have a well-documented tendency to memorize and reproduce training data verbatim (Carlini

Figure

Figure 1: Overview of the copyright-defense problem. (a) Without defense: query Q goes to memorized model M and response R may reproduce copyrighted content. (b) With defense: algorithm A wraps M, producing a safe, useful R that suppresses leakage while preserving utility.

et al., 2021, 2023), including copyrighted literary works (Chang et al., 2023; Karamolegkou et al., 2023). Such reproduction may constitute copyright infringement (Henderson et al., 2023; Lee et al., 2025), creating significant legal exposure for deployers (Figure 1(a)).

A growing line of work has proposed defenses, ranging from inference-time logit manipulation (Li et al., 2023b; Abad et al., 2025; Zhang et al., 2026) to training-time unlearning (Eldan and Russinovich, 2023; Xu et al., 2025). These approaches, however, have been developed and evaluated under different datasets, metrics, and experimental conditions, obscuring their actual trade-offs. Wei et al. (2024) introduced CoTaEval, which focused on surface-level defenses and omitted preference-based and representation-level approaches. While CopyBench (Chen et al., 2024) introduced a literal/non-literal reproduction taxonomy, no prior benchmark jointly provides calibrated non-literal leakage thresholds, multi-method cross-level comparison, and utility and human evaluation under identical conditions. This distinction is important because non-literal reproduction through paraphrase, rather than only verbatim copying, can also pose copyright risk (Ippolito et al., 2023).

We address this gap by introducing CopyShield, a controlled benchmark that characterizes three representative defenses, each intervening at a distinct stage of the generation pipeline: contrastive decoding (Li et al., 2023b) at the output level, DPO (Rafailov et al., 2023) at the behavioral level, and activation intervention, in the spirit of ITI (Li et al., 2023a), at the representation level. Each wraps the same memorized model MM with a defense AA that must suppress copyrighted leakage while preserving the model's ability to answer legitimate queries (Figure 1(b)). Spanning logits, weights, and representations, the comparison isolates not merely which defense performs better but where in the pipeline a defense can succeed and how it characteristically fails when it does not.

Our main contributions are as follows: (a) We introduce the CopyShield benchmark, a controlled, reproducible evaluation across two model families, LLaMA-3.1-8B and Mistral-7B-v0.3, using controlled memorization over five public-domain books, with three query types (literal, non-literal, QA), a calibrated non-literal leakage threshold, and curated training data for the evaluated defenses. (b) We develop a multi-dimensional evaluation framework covering literal leakage (NV-Recall (Ahmed et al., 2026), Phase-1 LCS, ROUGE-L), non-literal leakage (calibrated embedding similarity), and utility and operational quality (QA scores, refusal rate, degeneracy rate). (c) We provide empirical evidence that the intervention level is associated with distinct types of compliance and utility trade-off: an output-level suppression floor, behavioral-level paraphrase-loop degeneracy, and representation-level over-blocking. The output-and representation-level patterns persist across both model families, while the severity of DPO's degeneracy varies across models, supplying guidance for practitioners and highlighting targeted non-literal suppression as an open challenge for future defenses.

References (14)