TextGrain Technical Report Explained

OpenAI's October 5, 2026 report, textGrain: Entropy-Calibrated Watermarking for Language Model Text, describes generation and detection procedures. Read the OpenAI technical reportfor the mathematical definitions and assumptions.

OpenAI announced TextGrain on October 5, 2026. Its text detector is initially limited to approved researchers and expert organizations. This independent site provides character cleanup and watermark guides.

The central idea: dependence with an entropy budget

Sections 1 and 2 connect generated tokens to randomness derived from a secret key. Optimal transport chooses a joint distribution with prescribed marginals; KL regularization limits its departure from independence. The report relates that dependence to an average reduction in sampling entropy. This is a statistical construction, not a hidden string appended to an answer.

How block generation works

  1. The model provides next-token probabilities after its sampling adjustments.
  2. A secret key and preceding context divide the vocabulary into blocks.
  3. A keyed cost table and entropy budget define a coupling over blocks and columns.
  4. The selected column determines block sampling, followed by token sampling with the original relative probabilities inside that block.

Consider six fictional next-token probabilities. The example below illustrates the vocabulary-block calculation only; it is not model output, a solved transport problem or a watermark test.

Illustrative vocabulary blocks (not a watermark test)
BlockFictional token probabilitiesBlock probabilityWithin-block shares
Aquiet: 0.30; bright: 0.200.50quiet: 60%; bright: 40%
Bsoft: 0.18; warm: 0.120.30soft: 60%; warm: 40%
Cstill: 0.10; clear: 0.100.20still: 50%; clear: 50%

The probabilities sum to one. If block B is selected, the relative share for soft is 0.18 / 0.30 = 0.60. The watermark construction affects how the block is selected while retaining these relative probabilities within it. The keyed cost table, selected column and entropy-constrained coupling are missing from this small example; no entropy budget has been solved and no detector score is computed.

What the detector reconstructs

Section 3.2 requires the matching tokenizer, block and column counts, context-window rule, secret key and pseudorandom construction. The detector reconstructs scores from observed tokens; it does not need the generating model's probabilities or entropy budget. Reading the paper, or obtaining future source code, does not supply another system's production key. See detector requirements.

Why the assumptions matter

The entropy bounds are averages under the stated construction, not identical guarantees for every fixed key or response. The report also distinguishes a requested budget from the achieved output of a finite numerical solver. Detection calibration assumes independence conditions and scores only the first occurrence of each distinct context. A deployed key and finite precision still require empirical calibration; a mathematical null distribution alone is not a universal real-world error rate.

The accompanying October 5 announcement reports empirical detection results separately from the report's mathematical guarantees. Its synonym-replacement evaluation used 400-token watermarked English answers to ELI5 questions: detection was about 92% before edits, 66% after replacing 10% of words with synonyms, and 17% after replacing 25%. Those figures describe an evaluated sample, not the probability that any particular edited passage is watermark-free.

A separate length comparison, at a target false-positive rate of 1%, reported about 80% detection for 200-token passages and 95% for 400-token passages in content such as psychology. Mathematics performed worse. That study is not the 92% synonym-replacement baseline: length, content and the evaluated setup must accompany each figure. Neither 200 nor 400 tokens is a universal minimum input length. The official announcement supplies the experimental context; section 3.2 of the report specifies the matched detector and its assumptions.

  • Record the tokenizer, key and context configuration before comparing tests.
  • Keep the target entropy budget separate from the solver's achieved result.
  • Count usable scored positions, not just characters or displayed words.
  • Report the decision threshold, sample and transformations alongside an error rate.

These checks are practical consequences of the report's specified construction. They do not turn a theoretical guarantee into a certification of an unknown deployed system or edited document.

A published report is not a released tool

Technical publication makes the method inspectable. Source-code availability, detector access and removal verification remain separate. Check open-source status and removal-method limits. Character cleanup changes selected Unicode characters; it does not produce watermark scores or removal certificates.

Sources and verification

OpenAI announced TextGrain on October 5, 2026. Its text detector is initially limited to approved researchers and expert organizations. This independent site provides character cleanup and watermark guides.

Found an outdated statement? Send a correction with the page address and an official source.

Follow official TextGrain releases.

Check source-code plans and detector access at the source.

View official sources Read the announcement, technical report and access requirements.