Abstract
Training large language models (LLMs) is resource-intensive and expensive, making intellectual property (IP) protection essential. Most existing model fingerprint methods inject fingerprints into LLMs to protect model ownership. These methods create fingerprint pairs with weak semantic correlations, lacking the contextual coherence and semantic relatedness founded in normal question-answer (QA) pairs in LLMs. In this paper, we propose a Generation Revision Intervention (GRI) attack that can effectively exploit this flaw to erase fingerprints, highlighting the need for more secure model fingerprint methods. Thus, we propose a novel injected fingerprint paradigm called Implicit Fingerprints (ImF). ImF constructs fingerprint pairs with strong semantic correlations, disguising them as natural QA pairs within LLMs. This ensures the fingerprints are consistent with normal model behavior, making them indistinguishable and robust against detection and removal. Our experiment on multiple LLMs demonstrates that ImF retains high verification success rates under adversarial conditions, offering a reliable solution for protecting LLM ownership.
Introduction
Developing state-of-the-art Large Language Models (LLMs) requires massive investments in computational resources and high-quality data. Consequently, protecting the intellectual property of these models is a primary concern for developers. Model fingerprinting has emerged as a standard defense, where a specific "trigger" input is designed to elicit a unique "signature" output, proving ownership. However, current fingerprinting techniques are often fragile and easily bypassed.
The Vulnerability: Semantic Fragility and the GRI Attack
Existing fingerprinting methods typically rely on "explicit" markers. These markers often involve nonsensical phrases, garbled text, or illogical instructions that have no semantic connection to the model's output.
This paper introduces the Generation Revision Intervention (GRI) attack, a lightweight, inference-time method that exposes this semantic fragility. By modifying the system prompt to include "Security Review" and "Chain-of-Thought (CoT) Optimization" instructions, an attacker can force the model to prioritize logical consistency over the injected backdoor. Because explicit fingerprints are logically weak, the model naturally "corrects" the response to a standard, helpful output, effectively erasing the ownership marker without requiring expensive retraining.
ImF: Implicit Fingerprint
To address these vulnerabilities, we propose Implicit Fingerprint (ImF). Unlike previous methods, ImF creates a strong semantic bond between the trigger and the signature, making the fingerprint indistinguishable from the model's normal reasoning path.
Methodology
The ImF framework consists of three core stages:
- Steganographic Output Generation: Instead of static phrases, ImF utilizes text steganography (Adaptive Dynamic Grouping) to generate natural-sounding sentences that embed ownership information.
- CoT-based Prompt Design: An LLM is used to reverse-engineer a prompt that logically leads to the steganographic answer, ensuring high semantic correlation.
- Iterative Optimization: The prompt-answer pair is refined through multiple cycles to ensure the model produces the fingerprint consistently, even when instructed to be factual or logical.
Experimental Results
We evaluated ImF across 15 different LLMs, including the Llama-3.1, Mistral, Gemma-2, and Qwen-2.5 series.
- Robustness: While traditional instructional fingerprints saw their success rates drop to 0% under the GRI attack, ImF maintained a Fingerprint Success Rate (FSR) of 80% to 100%.
- Evasion Resistance: ImF remained detectable even after model merging (1:1 with a clean model) and adversarial fine-tuning on the Alpaca dataset.
- Model Performance: ImF injection had a negligible impact on general benchmarks. Interestingly, on the TruthfulQA benchmark, the Qwen-2.5-7B model's performance improved from 24.11% to 31.82%, suggesting that high-quality, logical fingerprint pairs can act as beneficial training data.
Conclusion
ImF represents a significant shift in model IP protection by moving from "glitch-like" explicit fingerprints to semantically coherent implicit ones. By embedding ownership markers within the natural reasoning of the model, ImF provides a robust defense against lightweight inference-time attacks and adversarial fine-tuning. Future work will focus on fully automating the fingerprint generation pipeline and testing the stability of implicit links in ultra-large-scale models.
Summary updated