Anchored Decoding: Provably Reducing Copyright Risk for Any Language Model
Jacqueline He, Jonathan Hayase, Wen-tau Yih, Sewoong Oh, Luke Zettlemoyer, Pang Wei Koh
TL;DR
Anchored Decoding addresses the risk of verbatim copyright reproduction in language models by introducing a plug-in inference-time fusion between a risky model and a safe anchor under a global $K$-NAF budget. The method computes a per-step fused distribution via a closed-form geometric mean between $p_r$ and $p_s$, with a prefix debt and an adaptive budgeting strategy to enforce the sequence-level bound while preserving utility. A byte-level variant, Anchored$_{\mathrm{Byte}}$ Decoding, extends the approach to mismatched tokenizers using ByteSampler, maintaining $K$-NAF guarantees. Across six model-pair experiments, Anchored Decoding achieves a Pareto frontier with substantial reductions in copying (up to 75% of the gap) while keeping fluency and factuality near baseline levels, at modest computational overhead. The work provides a practical, theoretically grounded framework for constraining high-capability generators to a trusted reference distribution, with broad applicability beyond copyright mitigation.
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.
