Fingerprint Vector: Enabling Scalable and Efficient Model Fingerprint Transfer via Vector Addition

Zhenhua Xu, Qichen Liu, Zhebo Wang, Wenpeng Xing, Dezhang Kong, Mohan Li, Meng HanarXiv 2024 · arXiv

TL;DR

The Fingerprint Vector framework introduces a scalable way to protect the intellectual property of Large Language Models (LLMs) by decoupling ownership signals from model training. Instead of costly fine-tuning for every model variant, researchers extract a "parameter delta" from a fingerprinted base model and simply add it to downstream models, enabling post-hoc ownership verification with zero additional training.

What Problem Does This Paper Address?

As LLMs become critical intellectual assets, "fingerprinting"—embedding secret trigger-response pairs to prove ownership—has become essential. However, the standard approach of injecting these backdoors into every downstream variant (e.g., a math-specialized model vs. a chat-specialized one) is computationally prohibitive.

The alternative, "inheritance-based" fingerprinting (fingerprinting the base model and hoping the signal persists through downstream fine-tuning), fails for three reasons:

  1. Late-stage Fingerprinting: You can't retroactively protect models already deployed.
  2. Fingerprint Instability: Intensive downstream fine-tuning often "washes away" the embedded signal.
  3. Adaptation Interference: The act of fingerprinting can warp the model's parameter space, making it less effective at learning new tasks.
Illustration of key limitations in inheritance-based fingerprinting

Methods

The authors propose the Fingerprint Vector, inspired by the concept of "task vectors." The process involves two main stages:

  1. Derivation: A clean base model ($M_b$) is fingerprinted via full-parameter fine-tuning to create $M_{b,FP}$. The "Fingerprint Vector" ($\tau$) is then extracted by simply subtracting the clean weights from the fingerprinted weights ($\tau = \theta_{FP} - \theta$).
  2. Transfer: This vector $\tau$ is added to any structurally compatible downstream model ($M_d$) derived from the same base. A scaling factor ($\lambda$) allows users to tune the strength of the injection: $\theta'_{FP} = \theta' + \lambda \cdot \tau$.

This method allows downstream models to be trained from "clean" weights, avoiding interference, while still receiving the fingerprint post-hoc.

Figure 2: Overall pipeline of the proposed Fingerprint Vec- tor framework. The process consists of two key stages: (1) deriving the Fingerprint Vector by subtracting a clean base model from its fingerprinted counterpart, and (2) transfer- ring this vector to structurally compatible downstream mod- els to inject the fingerprint without additional fine-tuning.

Datasets

The study evaluates the framework across a wide array of models and tasks:

  • Model Families: LLaMA2 (7B), Mistral (7B), LLaMA3.1 (8B), Qwen2.5/3, and DeepSeek-R1.
  • Downstream Variants: Includes publicly available models like Vicuna, WizardMath, and Tulu-2, as well as in-house models tuned on ShareGPT, Ultrachat, and Alpaca.
  • Fingerprinting Methods: Evaluated using Instructional Fingerprinting (IF) (rare linguistic patterns) and Under-trained Token Fingerprinting (UTF) (leveraging rarely used vocabulary).
  • Harmlessness Benchmarks: 10 standard tasks including ANLI (reasoning), BoolQ (NLU), and OpenBookQA.

Key Insights and Ideas

  • Decoupling is Key: By treating the fingerprint as an additive delta rather than an intrinsic part of the training process, the authors bypass the "plasticity" issues where fingerprinting hurts a model's ability to learn new things.
  • The Regularization Bonus: Surprisingly, in some cases, adding the Fingerprint Vector actually improved downstream task performance (Observation 3). The authors suggest the vector might act as a weak form of regularization.
  • Architecture Sensitivity: Robustness isn't universal. While the transfer was "near-lossless" for Mistral, it showed more sensitivity in the LLaMA2-based WizardMath, suggesting that the compatibility between the fingerprinting method and the specific model architecture matters.
  • Tunable Strength: The scaling factor $\lambda$ acts as a "knob" to balance the strength of the ownership signal against potential impacts on model utility.

Key Results

  • High Effectiveness: The Fingerprint Success Rate (FSR) remained near 100% across almost all tested model families (Mistral, LLaMA3.1, Qwen, DeepSeek) when using the vector transfer method.
  • Preserved Utility: In head-to-head comparisons, Fingerprint Vector transfer consistently matched or outperformed direct injection in terms of general task accuracy.
Figure 3: Comparison of average performance across 10 benchmark tasks under three configurations: clean model, direct fingerprinting, and transfer fingerprinting.
  • Resilience to Attacks: The transferred fingerprints proved robust against model pruning (structural compression). While they were more sensitive to model merging and aggressive incremental fine-tuning than direct injection in some architectures, they generally maintained a verifiable signal.

Limitations and Future Work

The authors acknowledge that their evaluation of harmlessness and robustness was primarily limited to one major downstream model per family. They also noted that in specific "lossy" transfer scenarios (like WizardMath), robustness against adversarial fine-tuning could degrade.

Future research directions include:

  • Testing the framework on a more diverse set of model variants.
  • Exploring how to explicitly design task vectors that are optimized for transferability and robustness from the start.
  • Investigating the "regularization" effect to see if fingerprinting can be intentionally used to improve model performance.

Summary updated

Abstract

Backdoor-based fingerprinting has emerged as an effective technique for tracing the ownership of large language models. However, in real-world deployment scenarios, developers often instantiate multiple downstream models from a shared base model, and applying fingerprinting to each variant individually incurs prohibitive computational overhead. While inheritance-based approaches -- where fingerprints are embedded into the base model and expected to persist through fine-tuning -- appear attractive, they suffer from three key limitations: late-stage fingerprinting, fingerprint instability, and interference with downstream adaptation. To address these challenges, we propose a novel mechanism called the Fingerprint Vector. Our method first embeds a fingerprint into the base model via backdoor-based fine-tuning, then extracts a task-specific parameter delta as a fingerprint vector by computing the difference between the fingerprinted and clean models. This vector can be directly added to any structurally compatible downstream model, allowing the fingerprint to be transferred post hoc without additional fine-tuning. Extensive experiments show that Fingerprint Vector achieves comparable or superior performance to direct injection across key desiderata. It maintains strong effectiveness across diverse model architectures as well as mainstream downstream variants within the same family. It also preserves harmlessness and robustness in most cases. Even when slight robustness degradation is observed, the impact remains within acceptable bounds and is outweighed by the scalability benefits of our approach.
BibTeX
@misc{xu2024fingerprint,
  author = {Zhenhua Xu and Qichen Liu and Zhebo Wang and Wenpeng Xing and Dezhang Kong and Mohan Li and Meng Han},
  title = {{Fingerprint Vector: Enabling Scalable and Efficient Model Fingerprint Transfer via Vector Addition}},
  year = {2024},
  eprint = {2409.08846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08846},
}

Loading related content...

Figure