Anchored Decoding: Provably Reducing Copyright Risk for Any Language Model

Jacqueline He, Jonathan Hayase, Wen-tau Yih, Sewoong Oh, Luke Zettlemoyer +1 more
2/6/2026
cs.CL

No official code found. Best implementation: jacqueline-he/anchored-decoding (3 stars, Apache-2.0, last commit 2026-02-11).

Abstract

Modern language models (LMs) tend to memorize portions of their training data and emit verbatim spans. When the underlying sources are sensitive or copyright-protected, such reproduction raises issues of consent and compensation for creators and compliance risks for developers. We propose Anchored Decoding, a plug-and-play inference-time method for suppressing verbatim copying: it enables decoding from any risky LM trained on mixed-license data by keeping generation in bounded proximity to a permissively trained safe LM. Anchored Decoding adaptively allocates a user-chosen information budget over the generation trajectory and enforces per-step constraints that yield a sequence-level guarantee, enabling a tunable risk-utility trade-off. To make Anchored Decoding practically useful, we introduce a new permissively trained safe model (TinyComma 1.8B), as well as Anchored$_{\mathrm{Byte}}$ Decoding, a byte-level variant of our method that enables cross-vocabulary fusion via the ByteSampler framework (Hayase et al., 2025). We evaluate our methods across six model pairs on long-form evaluations of copyright risk and utility. Anchored and Anchored$_{\mathrm{Byte}}$ Decoding define a new Pareto frontier, preserving near-original fluency and factuality while eliminating up to 75% of the measurable copying gap (averaged over six copying metrics) between the risky baseline and a safe reference, at a modest inference overhead.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for our paper: "Anchored Decoding: Provably Reducing Copyright Risk for Any Language Model"

32PythonFeb 4, 20268 months agoApache-2.0
copyright-mitigationdecoding-time-interventionlm-decoding

Similar Papers

Cite this paper

@article{he2026anchored,
  title  = {Anchored Decoding: Provably Reducing Copyright Risk for Any Language Model},
  author = {Jacqueline He and Jonathan Hayase and Wen-tau Yih and Sewoong Oh and Luke Zettlemoyer and Pang Wei Koh},
  year   = {2026},
  eprint = {2602.07120},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.07120v1}
}

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

Discussion