LLM Fingerprinting via Semantically Conditioned Watermarks
Thibaud Gloaguen (ETH), Robin Staab, Nikola Jovanović, Martin Vechev
International Conference on Learning Representations 2026 · Oral
Overview
This talk introduces a novel approach to LLM fingerprinting designed to address the critical challenge of identifying whether a deployed Large Language Model (LLM) originates from a specific provider, even after significant modifications by an adversary. Presented by Thibaud Gloaguen and his colleagues at ETH, the research proposes semantically conditioned watermarks as a robust and stealthy solution. The core problem arises when a model provider shares an LLM, and an adversary subsequently downloads, modifies (e.g., fine-tunes, quantizes, prunes), and re-deploys it, often claiming it as their own. Model providers require a mechanism to verify the provenance of models in the wild, driven by needs such as enforcing licensing agreements (e.g., non-commercial use only) or informing strategic business decisions about model adoption.

Key moments
- 0:00 Introduction: What is LLM fingerprinting?
- 2:00 Problems with existing query-key fingerprinting methods
- 4:00 How red-green watermarks create a statistical signal
- 5:50 Introducing semantically conditioned watermarks: the proposed solution
- 6:50 Initial results: effectiveness and quality performance
- 7:50 Robustness across diverse model modifications and attacks
- 9:00 Detecting fingerprints against strong adversarial paraphrasers
- 12:00 Q&A: Null hypothesis for the statistical test
LLM Fingerprinting via Semantically Conditioned Watermarks
Speakers: Thibaud Gloaguen (ETH); Robin Staab; Nikola Jovanović; Martin Vechev
Conference: ICLR 2026
YouTube: https://slideslive.com/39062220
Overview
This talk introduces a novel approach to LLM fingerprinting designed to address the critical challenge of identifying whether a deployed Large Language Model (LLM) originates from a specific provider, even after significant modifications by an adversary. Presented by Thibaud Gloaguen and his colleagues at ETH, the research proposes semantically conditioned watermarks as a robust and stealthy solution. The core problem arises when a model provider shares an LLM, and an adversary subsequently downloads, modifies (e.g., fine-tunes, quantizes, prunes), and re-deploys it, often claiming it as their own. Model providers require a mechanism to verify the provenance of models in the wild, driven by needs such as enforcing licensing agreements (e.g., non-commercial use only) or informing strategic business decisions about model adoption.
The existing paradigm for LLM fingerprinting, typically relying on a "query-key" mechanism, suffers from significant vulnerabilities: queries are often not stealthy and can be actively blocked, and the specific keys can be removed through model modifications. This work tackles these limitations head-on by proposing a statistical signal embedded within the model's natural output, activated only within a predefined semantic domain. The innovation lies in making the fingerprint undetectable to casual observation, robust against diverse adversarial modifications, and verifiable through black-box API access. This advancement is crucial for fostering trust and ensuring intellectual property protection in the rapidly evolving landscape of shared and deployed LLMs.
Background
▶ Watch: Introduction: What is LLM fingerprinting? (0:00)
The proliferation of powerful LLMs has led to complex challenges regarding intellectual property and usage rights. Model providers invest significant resources into training these models and often share them with the broader community, for example, on platforms like Hugging Face. However, once a model is released, it can be downloaded, altered, and redeployed by third parties. These alterations can range from benign optimizations like quantization and pruning to more substantial changes like fine-tuning on new datasets, or even sophisticated active defenses designed to obscure the model's origin. The model provider, having only black-box access to the adversary's deployed API (meaning they can only send prompts and receive text, without access to internal logits or model weights), faces an uphill battle in proving ownership or enforcing licenses.
Traditional LLM fingerprinting methods have largely relied on what the speakers term the "query-key paradigm." In this approach, a specific, predefined query is designed to elicit a unique, predefined key or response from the model. If the API returns this expected key, the fingerprint is detected, indicating the model's provenance. While conceptually straightforward, this paradigm has several critical flaws. Firstly, such specific queries are often not stealthy; an adversary can easily identify them as suspicious and block them or provide generic "I can't help you" responses. Secondly, these fixed keys are not robust against model modifications. Fine-tuning, pruning, or even changes in sampling strategies can easily alter the model's behavior sufficiently to prevent the specific key from being generated, effectively removing the fingerprint. This lack of stealth and robustness renders existing methods impractical against determined adversaries.
The research presented here aims to overcome these limitations by seeking a new paradigm based on two core requirements: a stealthy query and a robust statistical signal. Instead of a single, identifiable query, the ideal solution would leverage a large number of "normal" queries that are indistinguishable from typical user interactions. Furthermore, instead of a specific key that can be removed, the fingerprint should manifest as a statistical signal that accumulates over many tokens, making it far more resistant to localized modifications. This shift from deterministic, explicit signals to probabilistic, embedded signals forms the foundation for the proposed semantically conditioned watermarks.
Key Findings
▶ Watch: How red-green watermarks create a statistical signal (4:00)
The central contribution of this work is the introduction of semantically conditioned watermarks, an innovative LLM fingerprinting technique that significantly improves upon existing methods in terms of stealth, robustness, and practicality. The key findings demonstrate that this new paradigm is highly effective across a wide array of adversarial deployment scenarios while maintaining high model quality.
Firstly, the proposed fingerprint is highly effective and stealthy. By embedding a statistical signal that only activates when the model is prompted within a specific semantic domain (e.g., French text), the fingerprint is indistinguishable from normal model behavior to an adversary. When queries fall outside this domain (e.g., English text in the French-domain example), the model behaves normally, producing unwatermarked output. This domain-specific activation ensures that the fingerprint is not easily detected or blocked by active defenses. The experiments showed a 100% detection rate and zero false positives across three different models when prompted within the designated semantic domain.
Secondly, the robustness of semantically conditioned watermarks is a significant breakthrough. Unlike prior query-key paradigm baselines (IF and SF), which consistently failed to detect fingerprints under various model modifications, the new method maintained a 100% detection rate across all tested deployment scenarios. These scenarios included extensive variations in sampling parameters (temperature, system prompts, adding other watermarks), model optimizations (8-bit and 4-bit quantization, different pruning algorithms and sparsity levels), fine-tuning (using three different datasets with both LoRA and full fine-tuning), and sophisticated active defenses (input/output paraphrasing and back-translation). This comprehensive validation underscores the method's resilience against real-world adversarial attempts to obscure model provenance.
Thirdly, the integration of these watermarks incurs only a minor impact on model quality. Benchmarking results indicated that outside the designated semantic domain, the model's quality remained virtually unchanged. Within the semantic domain, there was a slight, minor drop in accuracy, but overall, the model's utility was not significantly affected. This demonstrates that the embedding process is efficient and does not unduly compromise the LLM's primary function.
Finally, the research explored robustness against even stronger adversaries, including those specifically designed to remove the underlying red-green watermarks. While such adversaries required more queries for detection (e.g., 100 queries for an adversarial paraphraser compared to 1 query for an unmodified model), the fingerprint remained detectable by scaling the number of queries. This highlights that even in extreme cases, the statistical nature of the watermark ensures its persistence, requiring an adversary to completely destroy the model's utility to remove the fingerprint entirely.
Technical Deep Dive
▶ Watch: Initial results: effectiveness and quality performance (6:50)
The technical foundation of this LLM fingerprinting method rests on two core components: red-green watermarks and the novel concept of semantically conditioned watermarks.
Red-Green Watermarks:
The talk begins by introducing red-green watermarks, a statistical method for embedding signals into generated text. The process works autoregressively during text generation:
- Prompt and Logit Distribution: An initial prompt is fed into the LLM, which generates a next-token logit distribution representing the probabilities of the next token.
- Context-Dependent Coloring: A crucial aspect is the watermark component, which uses the few previous tokens as a context to dynamically split the entire vocabulary into two disjoint sets: "red" tokens and "green" tokens. This split is determined by a pseudo-random function that takes the previous token context as input. Because the coloring is context-dependent, the red/green assignment for a given token varies depending on its preceding sequence, making it highly dynamic and difficult for an adversary to predict or remove selectively.
- Probability Boosting: To embed the watermark, the probabilities of "green" tokens in the LLM's original logit distribution are boosted. This results in a new, watermarked next-token logit distribution.
- Sampling: The next token is then sampled according to this boosted distribution. Due to the increased probability of green tokens, the model is statistically more likely to generate green tokens than it would by chance.
- Detection: For detection, the process is reversed. For a given piece of generated text, each token's color (red or green) is determined based on its preceding context using the same pseudo-random function. Once the coloring of the entire sentence is computed, a binomial test is performed. The null hypothesis is that the distribution of red and green tokens is random, as would be expected from an unwatermarked model. If the observed number of green tokens significantly exceeds the average expected under a random distribution, the text is identified as watermarked. The power of this statistical signal increases with the number of tokens, making it robust over longer generations.
Semantically Conditioned Watermarks (SCW):
While red-green watermarks provide a robust statistical signal, the innovation of SCW lies in how and where this watermark is applied and learned within the model. The goal is to make the watermark activate only within a specific semantic domain while leaving the model's behavior unchanged outside this domain. This is achieved through a targeted distillation and regularization process:
- Base Model Selection: The process starts with a pre-trained base LLM.
- Target Domain Definition: A specific target domain is chosen for the watermark, such as "French text" as demonstrated in the talk. This defines the context in which the watermark should activate.
- Dataset Preparation: Two datasets are prepared:
- Target Domain Dataset: Contains data representative of the chosen semantic domain (e.g., French language texts). This dataset is used to learn and distill the watermark into the model.
- Regularization Dataset: Contains data that has no overlap with the target domain (e.g., general English texts if French is the target domain). This dataset is crucial for ensuring that the model is not watermarked outside the target domain.
- Watermark Distillation: On the target domain dataset, the red-green watermark algorithm is distilled into the base model. This involves fine-tuning the model such that when generating text within this domain, it naturally produces the statistical bias towards green tokens. This is not about explicitly adding a watermarking layer, but rather training the model's existing parameters to exhibit the watermarking behavior.
- Regularization: Simultaneously, on the regularization dataset, the model is trained to not exhibit watermarking behavior. This acts as a counter-force, ensuring that the model's output remains unwatermarked and "random" in terms of green/red token distribution when prompted outside the target domain. This dual-objective training is key to the semantic conditioning.
- Resulting SCW Model: The outcome is a semantically conditioned watermarked model. When prompted in the target domain (e.g., French), it will generate text with a statistically significant overrepresentation of green tokens, indicating the watermark. Conversely, when prompted outside this domain (e.g., English), the token coloring will appear random, signifying no watermark. This domain-specific activation makes the fingerprint stealthy and difficult for adversaries to detect or universally remove without impacting the model's general utility.
The use of a statistical signal that accumulates over tokens, combined with the domain-specific activation, makes semantically conditioned watermarks robust against many common adversarial modifications that would easily defeat fixed query-key fingerprints. The dynamic, context-dependent nature of the red-green coloring further enhances this robustness, as an adversary cannot simply filter out specific tokens to remove the signal.
Experimental Setup & Results
▶ Watch: Robustness across diverse model modifications and attacks (7:50)
The effectiveness and robustness of semantically conditioned watermarks (SCW) were rigorously evaluated against various adversarial modifications and compared with established baselines.
Models and Baselines:
The experiments were conducted on three different LLMs (specific model names not provided in the transcript, but implying a generalization across architectures).
For comparison, two popular baselines from the query-key paradigm were used:
- IF (Identifier Fingerprint): This represents the direct query-key paradigm, where a very specific query is designed to elicit an equally specific, unique key.
- SF (Semantic Fingerprint): A more sophisticated baseline where the model is trained to answer a batch of high-level cultural questions "wrongly." Detection occurs if a sufficient number of these questions are answered incorrectly.
Experimental Scenarios (Adversarial Modifications):
To test robustness, the models were subjected to a comprehensive suite of modifications simulating real-world adversarial deployments:
- Sampling Variations:
- Varying temperature during generation.
- Modifying the system prompt.
- Adding another watermark to the model's output.
- Model Optimizations:
- Quantization: Applying 8-bit and 4-bit quantization to reduce model size and inference cost.
- Pruning: Employing different sparsity levels and two distinct pruning algorithms to remove model parameters.
- Fine-tuning:
- Fine-tuning the model on three different datasets.
- Using both LoRA (Low-Rank Adaptation) and full fine-tuning approaches.
- Active Defenses:
- Paraphrasing of both the input queries and the model's output responses.
- Back-translation of input and output, where text is translated to another language and then back to the original to introduce perturbations.
Headline Results:
- Detection Rate: For the baseline methods (IF and SF), the fingerprint was frequently not detected under various scenarios, highlighting their lack of robustness. In stark contrast, semantically conditioned watermarks consistently achieved a 100% detection rate across all tested deployment scenarios. This exceptional robustness generalized across all three LLMs evaluated.
- False Positives: The SCW method exhibited zero false positives, meaning it never incorrectly identified an unwatermarked text as belonging to the provider.
- Model Quality: Benchmarking revealed that the quality of the watermarked model was almost unchanged outside the semantic domain. Within the specific semantic domain where the watermark was active, there was only a minor drop in accuracy, indicating that the embedding process did not significantly degrade the model's performance.
Robustness Against Stronger Adversaries:
The research further investigated the detectability of SCW against even more potent adversaries. The number of queries required to detect the fingerprint was used as a metric for resilience:
- No Perturbations: Only one query was needed to detect the fingerprint in an unmodified model.
- Output Paraphrased: When the model's output was paraphrased (a common active defense), approximately 10 queries were needed for reliable detection.
- Adversarial Paraphraser: Against an adversarial paraphraser specifically designed to remove red-green watermarks, around 100 queries were required.
The key conclusion from this analysis is that even against highly sophisticated adversaries, the semantically conditioned watermark remains detectable. While strong adversaries can increase the effort needed for detection, the statistical signal is persistent, meaning that by scaling the number of queries, the model provider can ultimately verify the fingerprint. This makes the method incredibly robust, as an adversary would likely need to destroy the model's core utility to completely eliminate the statistical signal.
Practical Implications
▶ Watch: Q&A: Null hypothesis for the statistical test (12:00)
The development of semantically conditioned watermarks (SCW) carries significant practical implications for various stakeholders in the LLM ecosystem, particularly model providers, infrastructure teams, and those involved in model deployment and licensing.
For model providers, SCW offers a powerful tool for intellectual property protection and license enforcement. Companies that invest heavily in training proprietary LLMs can now release them with greater confidence, knowing that they possess a robust mechanism to identify their models in the wild, even if they undergo significant modifications. This is crucial for enforcing commercial versus non-commercial usage terms, safeguarding competitive advantage, and preventing unauthorized re-branding or resale of their models. The ability to verify model provenance through black-box API access means providers can monitor usage without needing access to an adversary's internal systems.
Infrastructure teams and model deployers will find this method valuable for compliance and accountability. If an organization is using a third-party LLM, SCW could potentially be adapted to verify that they are indeed using the licensed model, or conversely, to confirm that a model they are deploying is not mistakenly carrying an unintended watermark. The fact that the watermark is stealthy and does not interfere with normal model operation (outside the specific semantic domain) simplifies deployment, as it doesn't require special handling or expose the model to overt fingerprinting attempts.
For model builders and researchers, the method provides a blueprint for embedding subtle, statistical signals into generative models. The low impact on model quality—virtually unchanged outside the semantic domain and only a minor drop within—means that the utility of the LLM is largely preserved. This strikes a favorable balance between traceability and performance, a critical tradeoff in real-world applications. The ability to condition the watermark to specific semantic domains also opens possibilities for fine-grained control, allowing providers to tailor the fingerprinting to specific use cases or languages.
However, practitioners should also consider the tradeoffs and limitations. While highly robust, detecting the watermark against very strong, watermark-aware adversaries may require a substantial number of queries (e.g., 100 queries for an adversarial paraphraser). This implies a computational cost and time investment for detection in extreme cases. For use cases requiring instantaneous, single-query detection under all circumstances, this might be a consideration, though the inherent statistical nature of the watermark makes such an expectation unrealistic. Furthermore, the selection of the target semantic domain and the regularization dataset is a critical step in the implementation, requiring careful thought to ensure the watermark activates appropriately and remains stealthy. The current method relies on the model provider being the one to embed the watermark; it does not address scenarios where an adversary might try to forge a watermark onto an unwatermarked model and claim it as their own, although the speaker noted that if weights are shared, other methods exist to verify origin.
Overall, semantically conditioned watermarks represent a significant leap forward in LLM fingerprinting, offering a practical, robust, and stealthy solution to a pressing problem in the AI/ML ecosystem. It empowers model providers to better protect their investments and manage the use of their transformative technologies.
Key Takeaways
- Novel Paradigm for LLM Fingerprinting: Introduces semantically conditioned watermarks (SCW), moving beyond the vulnerable query-key paradigm to a stealthy, statistical signal.
- High Robustness Against Adversaries: SCW maintains a 100% detection rate across diverse adversarial modifications, including sampling variations, quantization, pruning, fine-tuning (LoRA and full), and active defenses like paraphrasing and back-translation.
- Stealthy and Domain-Specific Activation: The watermark only activates within a predefined semantic domain (e.g., French text), making it indistinguishable from normal user queries and output outside that domain, thus preventing easy detection or blocking.
- Minimal Impact on Model Quality: The embedding process results in virtually no quality degradation outside the semantic domain, and only a minor accuracy drop within it, preserving the model's core utility.
- Statistical Signal for Persistence: Leverages red-green watermarks to embed a statistical signal that accumulates over tokens, making it highly resistant to removal and detectable even against strong, watermark-aware adversaries by scaling the number of queries.
- Empowers Model Providers: Offers a crucial tool for enforcing licenses, protecting intellectual property, and making informed business decisions regarding the usage of their deployed LLMs in black-box settings.
About the Speaker(s)
Thibaud Gloaguen is a researcher from ETH, where he conducted this work in collaboration with his colleagues Robin Staab, Nikola Jovanović, and Martin Vechev. His presentation highlights research focused on novel techniques for LLM fingerprinting, aiming to address critical challenges in model provenance and intellectual property protection within the rapidly evolving landscape of large language models. The talk is presented as a joint work with his colleagues, indicating a collaborative research effort within the institution.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026