AI News
AI News AgentResearchMistral4 min read

Mistral introduces Keyrings, an AI watermark

Mistral has introduced Keyrings, a watermarking system for AI-generated text that preserves the model's original distribution and aims to maintain diversity across responses. Its TextOrca detector achieved between 91% and 95% detection with a target false-positive rate of 0.1% in the company's tests.

Mistral has introduced Keyrings, a system for identifying AI-generated text without changing the probabilities the model uses to choose its words. The proposal combines a generation method with invisible watermarks and a detector called TextOrca, designed to reduce false positives.

The company says that, in its tests, the system detected between 91% and 95% of watermarked responses in 256-token texts, with a target false-positive rate of 0.1%. It also works with speculative decoding, a technique that speeds up model responses by using a smaller model to propose text before the main model verifies it.

A watermark that does not intentionally change the text

Traditional watermarking systems usually increase the probability of certain groups of words. For example, they may favor a secret list of tokens so that a statistical signal appears when many texts are analyzed. The problem is that this bias can affect the quality, style, or variety of responses.

Keyrings takes a different approach. At each step, the model follows exactly the probability distribution it already had, but replaces ordinary randomness with pseudo-random numbers generated from a secret key. To anyone without the key, the result should look like normal generation.

The technique is based on what is known as Gumbel-max sampling, a procedure for selecting tokens from a probability distribution. Mistral says each token retains the model's original distribution, without adding weight to certain words or artificially reducing other options.

That does not mean every text is identical to an unwatermarked response. The challenge is preserving diversity when someone repeats the same request several times.

Multiple keys to prevent repeated responses

A system based on a single key can produce overly similar patterns for the same prompt. Keyrings tries to avoid this by storing several groups of keys and randomly choosing one for each request. It can also mix the secret signal with private noise using a technique called a Gaussian copula, which increases variety at the cost of some detection ability.

The system also leaves the first tokens of a response unmarked and avoids reusing certain context windows within the same text. According to Mistral, these measures reduce the risk of repetitive loops and help preserve the full distribution of the generation.

In tests on the ML4 dataset, the main configurations detected between 91.3% and 95.1% of watermarked texts in normal generation. With speculative decoding, the figures fell to between 83.8% and 90.3%, but the performance ranking remained the same.

TextOrca aims to reduce false positives

The second component is TextOrca, the detector that analyzes whether a text contains the signal. Instead of relying on a threshold calibrated with specific examples, it calculates a conservative statistical value: the probability of observing a signal just as strong in an unwatermarked text.

To do this, it divides tokens according to the probability they had during generation. Less predictable tokens receive more weight because they provide more information for detection; nearly mandatory tokens provide little. It then combines these signals using a distribution whose tail is calculated exactly.

Mistral also tested TextOrca on texts created with TextSeal, another watermarking system. On the ML4 dataset, the detector performed better than TextSeal's official detector in 17 of 18 configurations and outperformed its unweighted version in all 18 configurations.

The company also audited 100 key banks using thousands of unwatermarked texts. In the main configurations, it found no statistically significant excess of false positives above the 0.1% target, although some keys may show variations in individual samples.

What changes for the models you already use

The practical advantage of the proposal is that it tries to add traceability without forcing the model to write in a visibly different way. In Mistral's quality tests, there were no statistically significant differences in tasks such as GPQA, MMLU-Pro, HealthBench, or IFEval.

In agent tests, it also reported finding no significant differences, although the confidence intervals were wide. In particular, the variants with greater diversity scored below the control on some Terminal-Bench and DeepSWE measurements, so the results do not rule out small performance costs.

The impact on service performance was also significant. In normal generation, Keyrings reached between 82% and 90% of the performance of unwatermarked vLLM, depending on the level of concurrency. At the maximum concurrency tested, it was more than five times faster than TextSeal-2, according to Mistral's measurements. In the speculative decoding engine, the watermark did not reduce the acceptance rate for tokens proposed by the fast model.

The next question is how the system performs outside the models, languages, and texts evaluated by Mistral, and what happens when a watermarked text is edited, translated, or mixed with human-written content. A watermark can help verify the origin of a response, but it does not by itself turn AI-generated text detection into definitive proof.