# Mistral AI introduces Keyrings watermarking and TextOrca detector for LLMs

> **Key takeaway:** Mistral AI's Keyrings provides a distortion-free watermarking method that preserves model diversity and quality while remaining compatible with speculative decoding.

**Published:** 2026-12-02T10:46:44+00:00 
**Source:** Mistral AI News 
**Category:** ai-open-models 
**Canonical URL:** https://fosswire.org/news/mistral-ai-introduces-keyrings-watermarking-and-textorca-det 

## Summary
Mistral AI has unveiled Keyrings, a novel sampling-time watermarking method designed to embed statistical signals into Large Language Model (LLM) outputs without altering the underlying token distribution. Unlike traditional watermarking techniques that use logit biasing or reweighting, Keyrings utilizes Gumbel-max sampling with secret pseudorandom function (PRF) keys to ensure that every sampled token follows the model's original probability law.

The system includes TextOrca, a high-performance detector that provides conservative p-values through probability-binned weighting. This combination is specifically engineered to work within modern inference stacks, maintaining compatibility with speculative decoding to ensure that watermarking does not degrade serving efficiency or acceptance rates. The research demonstrates high detection rates of 91–95% at a 0.1% false-positive rate across various models, including the Qwen series.

## Technical Architecture of Keyrings and TextOrca
- **Distortion-free Sampling:** The method employs the Gumbel-max trick using Gumbel noise derived from a secret PRF keyed on preceding tokens, ensuring no logit bias or reweighting is applied to the model's native distribution.
- **Diversity Preservation:** To prevent output collapse during repeated prompts, Keyrings utilizes multiple hidden keyrings (L keyrings of m keys) and offers an optional Gaussian-copula mixing mechanism to trade detection power for increased output diversity.
- **TextOrca Detection Engine:** The detector calculates a grounded conservative p-value using a weighted sum of exponentials with a closed-form tail, allowing it to outperform existing detectors like TextSeal without requiring calibration.
- **Speculative Decoding Compatibility:** The architecture is designed to function within draft-and-verify inference workflows, ensuring that watermarking does not negatively impact the acceptance rate of candidate tokens or overall inference speed.
- **Formal Verification:** The mathematical guarantees provided by the Keyrings method have been validated using machine-checked proofs in Lean 4 and Mathlib.

## Why it matters
This development provides a robust framework for AI developers to implement verifiable watermarking without sacrificing the performance or creative diversity of their models. By supporting speculative decoding, Keyrings is highly relevant for engineers deploying open-weight models via high-throughput inference engines like vLLM or SGLang.