CopyShield: A cross-level benchmark for large language model copyright defensesCopyShield: A Cross-Level Benchmark of Copyright Defenses in LLMs
The authors propose the CopyShield benchmark, which uniformly evaluates copyright defenses at the output, behavior, and representation levels on LLaMA-3.1-8B and Mistral-7B-v0.3; the authors state that intervention level determines the shape of the compliance–utility trade-off.
- LLMs can reproduce training text verbatim, but existing copyright defenses are evaluated under mutually incompatible data, metrics and conditions, so the real trade-offs are unclear; and non-literal (paraphrased) reproduction may likewise constitute copyright risk, yet calibrated thresholds and same-condition comparisons across levels are lacking.
- Proposes CopyShield: first perform controlled memorization on LLaMA-3.1-8B/Mistral-7B-v0.3 with five public-domain books, then evaluate representative defenses from three intervention levels under the same protocol—contrastive decoding (output), DPO (behavior), activation intervention (representation)—with metrics covering literal leakage, calibrated non-literal leakage, utility, and degeneration.
- On LLaMA-3.1-8B: DPO lowers NV-Recall from 0.263 to 0.002 but 58% of QA outputs degrade; activation has the lowest non-literal flag rate (1/200) but blocks 84% of non-literal queries; contrastive has almost no degradation but literal suppression plateaus at 0.192–0.203. On Mistral, DPO degradation drops to 10%, and the authors state that this failure mode is model-dependent.
- The authors note: public-domain books are a proxy for copyrighted text, and transfer to real copyrighted works requires future validation; queries are non-adversarial extraction; only two model families, with single-seed LLaMA experiments; utility relies on a single AI evaluator; the independent contribution of the 400 QA preference pairs was not ablated. None of the three defenses achieved targeted non-literal suppression.
- Threat model
- Evaluation benchmark, no attacker setting. The defense target is a model M that has undergone controlled memorization on a protected corpus D (five public-domain books); defense algorithm A wraps M and must suppress literal and non-literal leakage while preserving QA capability. Queries reflect reasonable user behavior rather than adversarial prompt-engineering extraction; the authors leave robustness to deliberate extraction attacks as future work.
- Evaluated models
- LLaMA-3.1-8BMistral-7B-v0.3
- Benchmarks
- CopyShield五本 Project Gutenberg 公版书(Pride and Prejudice、Frankenstein、Dracula、Moby-Dick、The Adventures of Sherlock Holmes)五本中立公版书语料
- Metrics
- NV-RecallPhase-1 LCSROUGE-L非字面 flag rate(校准嵌入相似度)QA utility(1–5)degeneracy raterefusal rate
The researchers propose the CopyShield benchmark, which under a unified protocol compares large language model copyright defenses at three intervention levels: output, behavior, and representation, covering LLaMA-3.1-8B and Mistral-7B-v0.3, and uses controlled memorization of five public-domain books to measure literal leakage, calibrated non-literal leakage, utility, and degradation. On LLaMA-3.1-8B, contrastive decoding shows almost no degradation (0-2%) but literal suppression stops at NV-Recall 0.192-0.203; DPO reduces literal leakage from 0.263 to 0.002, but triggers rewriting-loop degradation in 58% of QA outputs, and its utility does not exceed the SFT baseline; activation intervention intercepts 84% of non-literal queries before generation, achieving the lowest non-literal token rate (1/200). On Mistral-7B-v0.3, the patterns at the output and representation levels remain consistent, and DPO degradation drops to 10-14%, indicating that its severity depends on the specific model. The authors list targeted non-literal suppression as an open challenge, and the code is open-sourced on GitHub.
Paper analysis
What problem does this paper attempt to solve?
The authors state that copyright defense evaluation protocols are mutually incompatible and propose CopyShield, a controlled benchmark that compares under the same conditions across three intervention levels.
Core problem: copyright defense methods are each evaluated on different datasets, metrics, and experimental conditions, obscuring the real trade-offs and lacking cross-tier comparison under the same protocol.
- Setting and importance: LLMs reproduce training data verbatim (including copyrighted literary works), which the authors say may constitute copyright infringement and create legal risk for deployers; beyond verbatim copying, paraphrased (non-literal) reproduction may also carry copyright risk (citing Ippolito et al., 2023).
- Shortcomings of existing evaluations: the authors say CoTaEval (Wei et al., 2024) covers only surface-level defenses, and although CopyBench (Chen et al., 2024) proposes a literal/non-literal classification, it lacks calibrated thresholds and same-condition cross-method comparison; Table 1 says no existing work has all six dimensions simultaneously (literal suppression, non-literal, utility, multiple books, calibrated threshold, multiple methods).
- Core observation: defenses can be layered by where they intervene in the generation pipeline (logits, parameters, hidden states), and the authors hypothesize that the intervention level determines where a defense can succeed and how it typically fails.
- What the paper proposes: the CopyShield benchmark—controlled induction of memorization on five public-domain books, using three query types (literal, non-literal, QA), a calibrated non-literal leakage threshold, and multi-dimensional metrics, to evaluate one representative defense from each of three tiers under the same conditions.
- Setting (non-attack): defense algorithm A wraps memorized model M, with the goal R ∉ D: the response must not reproduce the protected corpus while retaining the ability to answer legitimate factual questions; the authors explicitly state that the queries reflect reasonable user behavior rather than adversarial prompt-engineering extraction.
What related research exists?
Related work is divided into three groups: memorization and extraction, evaluation frameworks, and defense methods organized by intervention level; the authors state that this paper fills in six dimensions.
Memorization and extraction
- Carlini et al. (2021, 2023), Nasr et al. (2023)—demonstrate that LLMs memorize training data (including copyrighted content), with extraction volume growing with model scale, data repetition, and prompt length.
- Ippolito et al. (2023)—points out that suppressing verbatim copying alone is insufficient, as models can still reproduce semantically equivalent content; this paper's non-literal leakage evaluation targets this.
- Ahmed et al. (2026)—proposes NV-Recall, adopted in this paper as the primary literal leakage metric.
Evaluation frameworks
- CoTaEval (Wei et al., 2024)—the authors describe it as the first systematic copyright takedown benchmark, but it covers only surface-level defenses.
- CopyBench (Chen et al., 2024)—proposes the literal/non-literal/QA taxonomy (adopted in this paper); the authors note it lacks calibrated thresholds and same-condition cross-method comparison.
Defense methods organized by intervention level
- Output level: contrastive decoding (Li et al., 2023b), CP-Fuse (Abad et al., 2025)—manipulate logits during decoding.
- Behavior level: approximate unlearning (Eldan and Russinovich, 2023), SUV (Xu et al., 2025, DPO plus Fisher regularization), ParaPO (Chen et al., 2025, preferences directed toward paraphrased alternatives)—reshape the policy through training.
- Representation level: SCOPE (Zhang et al., 2026) acts on hidden states; ITI (Li et al., 2023a) was originally an activation steering technique for eliciting truthful answers, and this paper's activation intervention adapts it for copyright defense.
Baseline methods evaluated: this paper takes one representative per level—contrastive decoding, DPO (Rafailov et al., 2023), activation intervention (modeled on ITI)—compared against an undefended SFT baseline; evaluation is conducted on the authors' controlled memorization setup with five public-domain books.
Author positioning: Table 1 says CopyShield is the first benchmark to integrate all six dimensions (L, NL, U, MB, Cal, MM) under the same conditions and to characterize the compliance–utility trade-off at each level.
How does the paper address this problem?
On the same controlled memorization models and corpus, one representative defense is selected from each of the output/behavior/representation levels and evaluated with a unified protocol and calibrated threshold.
Overall approach: first use five public-domain books to perform controlled memorization on a base model to obtain a shared SFT baseline M, then have each of the three defenses wrap M, and compare under the same query distribution and the same calibrated threshold. The organizing principle of CopyShield is a three-tier intervention taxonomy.
Problem formalization and leakage definition
- Four-tuple: memorized model M, protected corpus D, query Q, defense A; without defense R ∼ M(Q), with defense R ∼ A(M, Q, D), and the goal is written compactly as R ∉ D, i.e., the response does not reproduce content in D.
- Literal leakage: NV-Recall(R, D) > 0.5 is judged high leakage; the cross-corpus null distribution is concentrated near zero, and 0.5 is an interpretable severity operating point rather than a statistical threshold.
- Non-literal leakage: the cosine similarity between the response and the reference passage exceeds a threshold calibrated on a neutral corpus at significance level α = 0.001.
Data construction (Section 5.1)
- Protected corpus D: five Project Gutenberg public-domain novels (Pride and Prejudice, Frankenstein, Dracula, Moby-Dick, The Adventures of Sherlock Holmes), about 907,979 tokens after cleaning; the authors describe public-domain books as a controlled proxy for copyrighted text, with the same structural properties and no legal restrictions.
- Neutral corpus: another five non-overlapping public-domain books (about 589,432 tokens), used for threshold calibration and as negatives for Method 3.
- Controlled memorization: LLaMA-3.1-8B's original memorization of these five books is negligible (mean ROUGE-L = 0.161, zero exact matches), so QLoRA (4-bit NF4, rank 64, 20 epochs) was used to SFT on D, reaching 99.9% token accuracy, as M for all experiments.
- Three query types: literal (150-token book prefix, continuation must be blocked), non-literal (narrative questions about book plot, semantic reproduction must be blocked), QA (short factual questions, must be allowed); the core challenge for defenses is distinguishing the first two types from the third.
- Evaluation set: 200 per type (40 per book), non-overlapping with all training and calibration splits.
Three defense methods
- Method 1 contrastive decoding (output layer): train a copyright expert model θS (LLaMA-3.2-1B fully fine-tuned on D), and at each step subtract λ times θS's logits from M's logits; an adaptive plausibility constraint masks tokens whose log probability under M is below log(0.1) + max to prevent degeneration; λ ∈ {2.0, 4.0, 8.0}; does not change M's parameters and is fully reversible.
- Method 2 DPO (behavior layer): 800 preference pairs (200 literal, 200 non-literal, 400 QA), with literal/non-literal pairs preferring synthetic refusals and QA pairs reversed to preserve factual answers; a new LoRA adapter is added on the merged SFT baseline, β = 0.1, 3 epochs; the authors say they first tried GRPO and switched to DPO because of a reward plateau (R² = 0.007, p = 0.32) and 78% degeneration (Appendix A).
- Method 3 activation intervention (representation layer): train a logistic regression on the last-token hidden state at each of six candidate layers {8, 12, 16, 20, 24, 28} (800 labeled inputs: 400 positive, 400 negative), selecting the layer by maximum AUC-ROC and minimum FPR on QA; layer 20 has AUC = 0.936, TPR = 87%, FPR = 11.3% (threshold θ = 0.5, Appendix C Table 8); before generation, if the copyright probability exceeds θ, the response is replaced with a fixed refusal, otherwise generation proceeds normally.
Calibration and metrics
- Threshold calibration: pairwise cosine similarity between 500 D passages and 500 neutral passages (all-MiniLM-L6-v2), threshold = µnull + 3.09·σnull, giving 0.625; at calibration this is said to reach 100% TPR and ≤0.4% FPR; the authors emphasize this is a screening rule, not a legal determination.
- Metrics: literal (NV-Recall primary, Phase-1 LCS, ROUGE-L), non-literal (calibrated similarity flag rate), utility (QA three dimensions scored 1–5, scored by claude-sonnet-4-5 at temperature 0), operational metrics (keyword refusal rate, degeneration judged when 4-gram uniqueness <0.30 or any sentence repeated ≥3 times); all methods use the same generation parameters (greedy, max_new_tokens=200).
What experiments did the paper conduct?
Unified evaluation of three defenses on two model families: DPO has the strongest literal suppression but degeneration is model-dependent, while activation reduces non-literal leakage through broad interception.
Experimental Setup
- Models evaluated: LLaMA-3.1-8B (SFT baseline, single seed 42) and Mistral-7B-v0.3 (seed 42; Appendix F reports a second seed, 7); all defenses wrap the same SFT baseline.
- Data: The protected corpus D consists of five public-domain books; the evaluation set has 200 items per category (literal/non-literal/QA, 40 per book).
- Baselines: The undefended SFT baseline; a raw base without SFT serves as an additional degradation reference.
- Metrics and judging: Literal NV-Recall/Ph-1 LCS/ROUGE-L; calibrated non-literal flag rate (threshold 0.625); QA utility scored by claude-sonnet-4-5 (temperature 0) on a 1–5 scale across three dimensions: correctness, completeness, coherence; degeneracy determined by a 4-gram uniqueness rule.
- Human evaluation: 3 annotators (two NLP researchers, one intellectual property law student) rate 50 non-literal outputs per method, 750 in total; Krippendorff's α: Spec. 0.71, Fid. 0.65, Coh. 0.78, Risk 0.83.
- Repetition and statistics: QA utility reports paired-bootstrap 95% CI (10,000 resamples, Table 3); the main LLaMA experiment uses a single seed.
Main Results
LLaMA-3.1-8B (per Table 2):
Swipe horizontally to read the table
Method NV-Recall↓ Ph-1 LCS↓ ROUGE-L↓ Non-literal Flag↓ Utility↑ Degen.↓ SFT baseline 0.263 0.262 0.383 10/200 1.38 8% Contrastive (λ=2.0) 0.203 0.204 0.326 7/200 1.25 2% Contrastive (λ=8.0) 0.192 0.196 0.316 8/200 1.19 0% DPO 0.002 0.018 0.158 11/200 1.37 58% Activation (θ=0.5) 0.029 0.034 0.061 1/200 1.51 6% - The authors state that DPO has the strongest literal suppression (−99.2%, high-leakage samples and perfect copies reduced to zero), but 58% of QA outputs fall into paraphrase-loop degradation, and there is no utility gain relative to the SFT baseline (∆ 95% CI [−0.11, +0.08] includes 0, Table 3).
- The authors state that activation's low non-literal flag rate comes from broad blocking before generation (168/200, 84%); among the 32 unblocked items the flag rate is 1/32 (3.1%), close to the baseline 5.0%, i.e., the near-zero aggregate rate reflects broad blocking rather than fine-grained discrimination; its QA false-rejection rate is 16%.
- The authors state that contrastive's NV-Recall plateaus at 0.192 after λ ≥ 4.0, which is the lower bound set by the plausibility constraint to ensure fluency; its degradation is near zero (0–2%).
Mistral-7B-v0.3 Reproduction (Table 6, seed 42)
- The output-level and representation-level patterns are consistent with LLaMA: contrastive NV-Recall 0.084–0.085, degradation 2%; activation NV-Recall 0.012, non-literal flag 10/200.
- The behavior level differs: DPO reaches the highest utility (1.87), with only 10% QA degradation (58% on LLaMA); the authors accordingly state that the severity of DPO degradation is model-dependent rather than an inherent property of behavior-level defenses.
- The second seed (seed 7, Table 15) preserves the pattern: DPO QA degradation 14%, activation NV-Recall 0.006.
Human Evaluation (Table 4, non-literal track)
- What was measured: 50 items per method, three dimensions scored 1–5 plus copyright risk flag and refusal rate; results: activation has the lowest Risk (8%), Spec. 1.4, Fid. 1.5, but a refusal rate of 96% (the authors note that this is stated here as 84% blocking, and the low risk comes from broad blocking); contrastive (λ=2.0) has the highest coherence (3.9), Risk drops from 48% to 28%, and refusal is only 1%.
- Authors' interpretation: DPO's AI-judged utility (1.37) diverges from human coherence (2.0, lowest of all methods)—the AI judge gives partial credit for surface-relevant parts, while human annotators penalize paraphrase-loop degradation; the authors call this divergence the core empirical contribution of the human evaluation.
Other Ablations and Analyses
- NV-Recall threshold sensitivity (Appendix F.1): resetting the threshold over {0.3, 0.4, 0.5, 0.6, 0.7} leaves the method ranking unchanged on both model families.
- Embedding model sensitivity (Appendix F.1): switching to all-mpnet-base-v2 (threshold 0.740), per-sample correlation r = 0.76–0.94, binary decision agreement 90–100%; only the intermediate ranking of DPO and contrastive depends on the encoder, which the authors call a limit of metric resolution.
- Per-book results (Appendix E Table 12): under contrastive, Pride and Prejudice has the highest residual leakage (> 0.44 at all λ); activation's per-book literal blocking rate ranges from 75.0% for Dracula to 97.5% for Frankenstein.
- Classifier layer selection (Appendix C Table 8): layer 20 with AUC 0.936 and FPR 11.3% is the selected operating point among six layers.
- Negative results: GRPO reward plateau (R² = 0.007, p = 0.32) and 78% degradation, so it was discarded (Appendix A); DPO's non-literal flag rate stays at the baseline level (11/200, 5.5%), and the authors state that its preference signal targets verbatim continuation rather than semantic safety.
What are some points that can be further explored?
The authors list limitations including public-domain proxies, non-adversarial queries, model and seed coverage, and a single evaluator; none of the three defenses achieved targeted non-literal suppression.
Limitations and Future Directions Noted by the Authors
- Public-domain proxy corpus (Limitations): The five public-domain novels are a controlled proxy for copyrighted content; the authors state that the induced memorization patterns are consistent with reports on production models, but transfer to copyrighted literary works needs verification once ethically and legally feasible.
- Threat model (Limitations): Queries reflect reasonable user behavior rather than adversarial prompt-engineering extraction; robustness to deliberate extraction attacks is left as future work.
- Model scale and family coverage (Limitations): Only two families (LLaMA-3.1-8B, Mistral-7B-v0.3); extending to 30B–70B scale and families such as Qwen and Gemma is a natural extension.
- Single AI judge (Limitations): Utility and quality scores rely on a single judge, claude-sonnet-4-5; averaging over multiple judges or targeted human evaluation could serve as a supplement.
- QA preference pairs not ablated (Limitations): The independent contribution of the 400 task-aware QA preference pairs was not ablated; the authors report it as a design choice rather than a quantified causal effect.
- Seed coverage (Limitations): LLaMA-3 experiments use a single seed (42), Mistral two seeds; DPO's behavior near the paraphrase-loop boundary may vary with seed, and seed variance should be reported in future work.
- Future directions (Conclusion): More selective representation-level detection, training objectives explicitly targeting semantic reproduction, and hybrid defenses combining multiple intervention levels; the authors state that targeted non-literal suppression is the main open challenge.
Scope of Experimental Coverage
- The models evaluated are two families, LLaMA-3.1-8B and Mistral-7B-v0.3, both at 7B–8B scale; the main LLaMA experiment uses a single seed, and Mistral reports two seeds (42, 7).
- Defense evaluation covers one representative method per intervention level (contrastive decoding, DPO, activation intervention); multiple methods within the same level are not compared.
- The evaluation set has 200 items per category (40 per book); human evaluation covers 50 non-literal outputs per method with 3 annotators.
- The corpus consists of public-domain books (D about 907,979 tokens, neutral corpus about 589,432 tokens) and does not include real copyrighted text.
- The paper does not report agreement between the judge model and human evaluation on utility scores (human evaluation covers only the non-literal track, not QA utility).
Summarize the main content of the paper
CopyShield compares three tiers of copyright defenses under the same conditions; the authors say the intervention level determines the shape of the trade-off, and targeted non-literal suppression remains open.
CopyShield is a cross-level benchmark for copyright defenses, addressing the problem that existing defense evaluation protocols are mutually incompatible and cannot compare real trade-offs.
- Approach: Controlled memorization on five public-domain books for LLaMA-3.1-8B and Mistral-7B-v0.3 (SFT to 99.9% token accuracy), evaluating representative defenses from three intervention levels under the same protocol: contrastive decoding (output level), DPO (behavior level), activation intervention (representation level); metrics include literal leakage (NV-Recall), calibrated non-literal leakage (α = 0.001, threshold 0.625), QA utility, and degradation rate.
- Main results on LLaMA-3.1-8B (Table 2): DPO pushes NV-Recall from 0.263 down to 0.002, but 58% of QA outputs show paraphrase-loop degradation and there is no utility gain; activation has the lowest non-literal flag rate (1/200), but achieves this by blocking 84% of non-literal queries before generation, with a 16% QA false-rejection rate; contrastive has near-zero degradation (0–2%) but literal suppression plateaus at NV-Recall 0.192–0.203.
- Cross-model: On Mistral-7B-v0.3, the output-level and representation-level patterns reproduce, while DPO degradation drops to 10% (seed 42) and utility is highest (1.87); the authors accordingly state that the severity of DPO degradation is model-dependent.
- Human evaluation: 3 annotators, 50 non-literal outputs per method; DPO human coherence is only 2.0, diverging from the AI judge's utility of 1.37; the authors state that the AI judge gives partial credit for surface-relevant parts while humans penalize paraphrase-loop degradation.
- Authors' conclusion: Intervention level and model configuration jointly determine the shape of the compliance–utility trade-off, and no single defense dominates on all dimensions; none of the three defenses achieves targeted non-literal suppression, which the authors call the main open challenge for future defenses, and they plan to use CopyShield as a public protocol for evaluating hybrid defenses and more models, scales, and seeds.