# Relative Energy Barriers for Copyright-Aware Language Model Adaptation

*Wei Sun, Yuhang Zhang, Zhicheng Liang, Xianda Wang, Jiaxuan Chen, Fangxin Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151577) · [OpenReview](https://openreview.net/forum?id=ZYSutMR9iR) · [Open on the map](../papers.html#p151577)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Sequential Recommendation Systems](../pgroup/95.md) · Type: new method · Keywords: language model adaptation, memorization control, copyright regularization, relative energy gain, token-level gating

## Summary
The paper proposes Energy-Gated Copyright Regularization (EGCR), a training objective that limits memorization by gating relative energy gain on protected tokens while preserving language modeling performance.

## Explained to a 5-year-old
When we teach a computer program to write like a person, it can accidentally copy stories that belong to others. The program learns from lots of text, and sometimes it repeats exact parts of that text when asked to continue. To help the program be useful while not copying, we give it a special rule that only limits copying on the parts that are risky. This rule looks at how much the program likes certain words and only stops it from copying when it really wants to repeat them. As a result, the program stays helpful but remembers less of the protected stories.

## Explained to a 5-year-old, longer
When we make a computer learn how to write like a person, it reads a lot of books and articles. While learning, it sometimes starts to copy exact sentences from those books. This copying can be a problem because some stories are protected and shouldn't be repeated without permission. To solve this, researchers thought of a way to measure how much the computer wants to copy each part of a story. They call this measurement the "relative energy gain," which tells how much more the computer likes a protected part after learning. Using this measurement, they created a soft rule that only limits copying on the parts where the computer is most likely to repeat them. The rule works like a gate that watches how the computer's interest changes and only stops copying on the risky spots. This way, the computer still learns normal language and can be useful, but it doesn't memorize the protected text as much. They tested this idea on several tests that check for copying and found it reduced copying while keeping the language model good. The tests also showed that the rule focused on a few important positions where copying was most likely. Overall, the new method helps keep copyrighted stories safe while letting language models stay helpful. This approach gives us a clear way to see where memorization happens and control it.

## For a technical reader
When language models are fine-tuned on large corpora, they can inadvertently memorize protected text, making verbatim reproduction possible from short prompts. The authors quantify this risk using a token-level relative-energy gain that separates ordinary predictability from memorization pressure. They then add a differentiable gate to the training loss that imposes a soft budget on this relative energy for protected tokens, focusing regularization where memorization risk is highest. Empirical evaluations on standard memorization benchmarks show that this regularization reduces exact-match and overlap-based extraction while preserving downstream language-modeling performance. The method provides an interpretable way to monitor and control memorization during model adaptation, which can be useful for compliance-aware deployments.

## Problem
Adapting language models on long texts can improve domain-specific behavior but also increase the risk of reproducing protected passages verbatim from short prompts. This creates a trade-off between utility and memorization.

## Method
The approach augments maximum likelihood training with a soft relative-energy budget on tokens that belong to protected passages. It uses a differentiable gate that combines the persistence of relative energy gain with anchor surprisal, focusing regularization on distinctive spans where memorization risk is high while keeping normal supervision elsewhere.

## Results
The approach reduces exact-match and overlap-based reproduction of protected passages while preserving held-out language-modeling and book-related utility.

## Contributions
It introduces a relative-energy barrier view of memorization, a differentiable gate that concentrates regularization on high-risk spans, and empirical evidence that this mechanism curtails memorization without sacrificing model utility.

## Research questions this paper is counted under

- [How can we selectively unlearn memorized content while preserving model performance on other tasks?](../q/815.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151577)
