Watermarking Large Language Models Without Internal Access

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 117 papers17 conceptsfrozen 2026-10-04

Traditional watermarking for Large Language Models (LLMs) relies on "white-box" access. In this paradigm, a developer modifies the model's internal probability distributions (logits) during the generation process to favor certain tokens. While effective, this approach fails in the modern ecosystem of proprietary APIs like GPT-4 or Claude, where users and third-party auditors only have access to the final text output.

A new wave of research is shifting toward "black-box" or model-agnostic watermarking. These methods treat the LLM as a closed system, embedding signals through semantic transformations, prompt engineering, or data-level injections that can be detected without ever seeing a logit.

The Shift from Logits to Semantics

The core challenge of black-box watermarking is robustness. If a watermark is tied to specific token sequences, it can be easily erased by simple paraphrasing. To solve this, researchers are moving the "anchor" of the watermark from the token level to the semantic level.

Han Xu and Jie Ren introduced SemaMark, which uses semantic embeddings rather than fragile token hashes as the seed for the watermark. Because the watermark is tied to the meaning of the text rather than the specific words used, the signature survives even if the text is heavily rewritten. Similarly, Yapei Chang and Mohit Iyyer developed PostMark, which uses a second "editor" LLM to semantically weave secret words into the primary model's output. This approach ensures high text quality while maintaining a detectable signal that survives paraphrasing attacks.

Watermarking via Instruction Following

Perhaps the most flexible black-box approach leverages the LLM’s own ability to follow instructions. If a model is smart enough to write an essay, it is smart enough to follow a hidden constraint.

Yepeng Liu, Dawn Song, and their colleagues proposed In-Context Watermarking (ICW). Instead of modifying the model's code or weights, ICW embeds the watermark through prompt engineering. By instructing the model to follow specific patterns—such as starting sentences with certain letters or using invisible Unicode characters—third-party auditors can "stamp" outputs from any API-based model. This effectively turns the model's intelligence into its own tracking mechanism.

Structural Transformations in Specialized Domains

In domains like code generation, watermarking must be even more surgical to avoid breaking functionality. Boquan Li and Jun Sun developed ACW (AI Code Watermarking), a "plug-and-play" system that applies semantic-preserving transformations to generated code.

ACW works by identifying parts of the code that can be refactored without changing the logic—such as reordering independent variable declarations or switching between for and while loops. By applying these transformations as a post-processing step, ACW can watermark code from any model (including GPT-4) with zero overhead and near-perfect functional preservation. This mirrors the logic of SWEET, proposed by T. Paul Lee and Hwaran Lee, which targets "high-entropy" segments of code where multiple valid logical paths exist, ensuring the watermark doesn't interfere with the program's correctness.

Injecting Fictitious Knowledge

A final, more radical approach to black-box detection involves watermarking the training data itself rather than the generation process. Johnny Wei and Robin Jia demonstrated that by injecting fictitious knowledge—plausible but fabricated facts—into a dataset, copyright holders can prove a model was trained on their data. If a model "hallucinates" a specific, pre-defined fake fact when prompted, it serves as a smoking gun for data misappropriation, even if the model's weights remain entirely hidden.

Solving the Watermarking Trilemma

The goal of these diverse methods is to solve what Xiaoyan Feng and Shirui Pan call the "trilemma" in their work on BiMark: balancing text quality, detection flexibility, and message capacity.

By moving away from internal logit manipulation, the field is moving toward a future where AI-generated content is identifiable not by how it was calculated, but by the subtle, intentional patterns it leaves behind in the world.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_watermarking_large_language_models_witho_4dd5b967,
  title = {Watermarking Large Language Models Without Internal Access},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/watermarking-large-language-models-without-internal-access/rdr_4dd5b9673f9841259e9dc307d35943e5},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_watermarking_large_language_models_witho_4dd5b967_v1,
  title = {Watermarking Large Language Models Without Internal Access},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/watermarking-large-language-models-without-internal-access/rdr_4dd5b9673f9841259e9dc307d35943e5/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}