Abstract
Given the high cost of large language model (LLM) training from scratch, safeguarding LLM intellectual property (IP) becomes increasingly crucial. As the standard paradigm for IP ownership verification, LLM fingerprinting thus plays a vital role in addressing this challenge. Existing LLM fingerprinting methods verify ownership by extracting or injecting model-specific features. However, they overlook potential attacks during the verification process, leaving them ineffective when the model thief fully controls the LLM's inference process. In such settings, attackers may share prompt-response pairs to enable fingerprint unlearning, or manipulate outputs to evade exact-match verification. We propose iSeal, the first fingerprinting method designed for reliable verification when the model thief controls the suspected LLM in an end-to-end manner. It injects unique features into both the model and an external module, reinforced by an error-correction mechanism and a similarity-based verification strategy. These components are resistant to verification-time attacks, including collusion-based fingerprint unlearning and response manipulation, backed by both theoretical analysis and empirical results. iSeal achieves 100% Fingerprint Success Rate (FSR) on 12 LLMs against more than 10 attacks, while baselines fail under unlearning and response manipulations.
Introduction
As training Large Language Models (LLMs) becomes increasingly expensive, the models themselves represent high-value intellectual property. However, protecting this IP is difficult. "Model thieves" can acquire proprietary weights through leaks or breaches and deploy them as public APIs.
Existing verification methods generally fall into two categories:
- Passive Fingerprinting: Extracting existing model features. These lack "forgery resistance"—anyone with API access can claim those features as their own.
- Proactive Fingerprinting: Injecting specific "triggers" (e.g., a specific prompt leads to a specific response) during training.
A critical gap exists: current proactive methods fail when a thief has full control. If a thief suspects a fingerprint, they can use "unlearning" techniques to strip it out or manipulate the API's output (e.g., changing synonyms or deleting words) to break exact-match verification. iSeal is designed to be the first method robust enough to survive these "verification-time" attacks.
Methodology
The iSeal framework introduces a three-party system involving a Model Owner, a Registration Authority, and a Judge.
Its technical core relies on three main pillars:
- External Secret Encoder: Instead of embedding the entire fingerprint logic into the LLM, iSeal uses an external encoder initialized with a secret key (HMAC-SHA256). This encoder maps plaintexts to ciphertexts. The LLM is then fine-tuned to act as a "decoder," learning to reconstruct the original plaintext when fed the ciphertext.
- Cryptographic Diffusion and Confusion: The encoder ensures that changing a single bit in the input plaintext drastically changes the ciphertext. This prevents thieves from inferring patterns to "unlearn" the fingerprint even if they obtain a few prompt-response pairs.
- Robust Verification: Rather than relying on fragile exact-string matches, iSeal uses Reed-Solomon Codes (RSC) for error correction and BLEU scores for similarity matching. This allows verification to succeed even if the thief tries to "fuzz" the output by deleting words, swapping synonyms, or paraphrasing.
Evaluation and Datasets
The authors evaluated iSeal across a diverse set of 12 prominent LLMs, including decoder-only models like LLaMA2 (7B/13B), Mistral-7B, and GPT-J-6B, as well as encoder-decoder models like mT5-11B.
For the fingerprinting content and performance testing, they utilized:
- AG’s News Corpus, DailyDialog, and arXiv Abstracts for plaintext datasets.
- Alpaca 52K to test fingerprint persistence after further fine-tuning.
- SuperGLUE benchmark to measure "harmlessness"—ensuring the fingerprint doesn't degrade the model's primary performance.
Key Results
iSeal achieved a 100% Fingerprint Success Rate (FSR) across all 12 tested LLMs. Crucially, it demonstrated extreme resilience against adversarial manipulation.
While baseline methods (like WLM and IF) saw their success rates drop to near 0% under unlearning or response manipulation attacks (such as word deletion or synonym swapping), iSeal maintained near-perfect verification. Furthermore, the performance impact on the models was negligible; for LLaMA2-13B, the zero-shot SuperGLUE score only shifted from 60% to 59%. The injection process is also highly efficient, taking only about 5 minutes on a single A100 GPU for a 13B parameter model.
Discussion and Conclusion
The primary innovation of iSeal is the decoupling of the fingerprint from the model weights. By keeping the "key" (the encoder) external, a black-box barrier is created that white-box access cannot easily penetrate. Additionally, moving to similarity-based matching backed by error-correction codes (RSC) makes the fingerprint "rubbery" and much harder to remove through text post-processing.
However, some limitations remain. The system relies on a trusted "Registration Authority" and "Judge," which might be a hurdle in decentralized environments. While it protects against weight theft, it does not extensively address "model distillation" attacks. Finally, while empirical results are strong for non-linear structures, the theoretical proofs for diffusion and confusion currently assume a linear residual network for the encoder.
Summary updated