iSeal: Encrypted Fingerprinting for Reliable LLM Ownership Verification

Zixun Xiong, Gaoyi Wu, Qingyang Yu, Mingyu Derek Ma, Lingfeng Yao, Miao Pan, Xiaojiang Du, Hao Wang

TL;DR

iSeal is a novel proactive fingerprinting method designed to protect Large Language Model (LLM) intellectual property against sophisticated model thieves who have full control over the model's inference process. By combining an external cryptographic encoder with Reed-Solomon error-correcting codes and similarity-based verification, iSeal achieves a 100% verification success rate while remaining completely resilient against fingerprint unlearning and output manipulation attacks.

What Problem Does This Paper Address?

Training state-of-the-art LLMs from scratch requires massive computational and financial resources, making these models highly valuable intellectual property (IP). Unfortunately, model thieves can exploit internal leaks or security breaches to steal model weights and deploy unauthorized copies as commercial public APIs.

To prove ownership in court, model owners use LLM fingerprinting. However, existing methods fall short when an adversary has full control over the stolen model's end-to-end inference:

  1. Passive methods simply extract pre-existing features from a model, meaning anyone with API access can claim ownership (lacking forgery resistance).
  2. Proactive methods inject specific prompt-response triggers during training, but they embed the fingerprint solely within the model weights. If a prompt-response pair is leaked during a legal dispute, the thief can use machine unlearning to erase the fingerprint.
  3. Response manipulation: Thieves can easily alter API outputs (e.g., deleting words, changing synonyms, or modifying temperatures) to break the exact-match verification strategies used by prior works.

iSeal addresses these vulnerabilities by introducing a robust, verification-safe framework that withstands both collusion-based unlearning and adversarial text manipulations.

Methods

The iSeal framework decouples the fingerprint from the model weights using an external secret module and an error-correcting pipeline. The process consists of three main phases:

The three-stage pipeline of iSeal: Model Registration, Fingerprint Injection, and Ownership Verification.
  1. Model Registration: A trusted authority generates a secret key $K$ to initialize an external encoder $E$. This encoder maps plaintexts to unique, non-standard ciphertexts.
  2. Fingerprint Injection: The model owner uses the frozen external encoder to transform plaintexts into latent representations. Crucially, the target outputs are encoded using Reed-Solomon Codes (RSC)—a standard mathematical technique for error correction. The LLM is then fine-tuned (via adapters) to act as the decoder, mapping the latent ciphertexts back to the RSC-encoded targets.
  3. Ownership Verification: A judge queries the suspect API using the encrypted plaintexts. Instead of demanding an exact match, the judge decodes the API's output via RSC and evaluates semantic similarity using BLEU scores. If the similarity exceeds a mathematically optimized threshold $\alpha$, the model is declared stolen.

Datasets

The authors evaluated iSeal across several distinct text domains to demonstrate its generalizability:

  • AG's News Corpus: Used as the primary plaintext dataset for fingerprinting.
  • DailyDialog & arXiv Abstracts: Used to verify performance across varying input lengths and discourse styles (conversational vs. technical).
  • Alpaca (52K): Used for fine-tuning the fingerprinted models to evaluate fingerprint persistence.
  • SuperGLUE Benchmark: Used to evaluate the "harmlessness" of the fingerprint injection on the models' zero-shot capabilities.

Key Insights and Ideas

  • Externalizing the Secret: Embedding a fingerprint entirely within model weights creates a single point of failure. By utilizing a frozen external encoder governed by a private key, iSeal ensures that weight access alone is insufficient to reverse-engineer or remove the fingerprint.
  • Leveraging Diffusion and Confusion: Borrowing core principles from traditional cryptography, iSeal ensures that changing a single bit of the plaintext or the secret key drastically alters the ciphertext. This mathematical property guarantees that even if an adversary captures a few prompt-response pairs, they cannot unlearn the global fingerprint relationship.
  • Fuzzy Matching Over Exact Matching: Text generation is inherently stochastic. Combining error-correcting codes (RSC) with semantic similarity metrics (BLEU) allows the verification process to tolerate text alterations, rendering common evasion tactics useless.

Key Results

The authors tested iSeal on 12 prominent open-source LLMs (including LLaMA2, LLaMA3, Mistral, and OPT variants) against more than 10 distinct attack vectors.

  • 100% Verification Success: iSeal achieved a 100% Fingerprint Success Rate (FSR) across all tested models.
  • Attack Resistance: While baseline methods (like WLM and IF) quickly dropped to a 0% success rate under collusion-based unlearning or word-deletion attacks, iSeal maintained perfect robustness.
iSeal maintains a 100% success rate against unlearning attacks across various LLM architectures, while baseline methods fail.
  • High Utility (Harmlessness): Injecting the fingerprint caused negligible performance drops on general tasks (SuperGLUE), outperforming baselines because it avoids using disruptive natural language triggers.
  • Efficiency: The framework introduces zero runtime overhead, with encoder initialization taking a mere 1 millisecond.

Limitations and Future Work

While iSeal provides robust theoretical and empirical guarantees, the authors note a few areas for extension:

  • Encoder Complexity: For parsimony, the default implementation uses a lightweight two-layer linear network as the encoder. While effective, exploring deeper or more expressive non-linear architectures could further enhance cryptographic security.
  • Upfront Fine-tuning: As a proactive method, iSeal requires an initial fine-tuning phase to inject the fingerprint, which might not be feasible for users who only have post-training access to frozen base models.

Summary updated

BibTeX
@inproceedings{xiong2026iseal,
  author = {Zixun Xiong and Gaoyi Wu and Qingyang Yu and Mingyu Derek Ma and Lingfeng Yao and Miao Pan and Xiaojiang Du and Hao Wang},
  title = {{iSeal: Encrypted Fingerprinting for Reliable LLM Ownership Verification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i42.40909},
}
Figure