Sample Correlation for Fingerprinting Deep Face Recognition

Jiyang Guan, Jian Liang, Yanbo Wang, Ran He

This paper presents a novel approach to protecting the intellectual property (IP) of deep learning models, specifically focusing on the high-stakes world of face recognition.

TL;DR

The authors propose SAC-JC, a model fingerprinting method that identifies stolen models by analyzing the pairwise correlation between sample outputs rather than individual labels. This approach is remarkably robust against common evasion tactics like adversarial training and transfer learning, while being over 34,000 times faster to implement than leading adversarial-based alternatives.

What Problem Does This Paper Address?

Training state-of-the-art deep face recognition models is incredibly expensive, requiring massive datasets and significant compute. This makes them prime targets for model stealing attacks, where an attacker uses API access to a "victim" model to train a "stolen" copy that mimics its functionality.

To fight back, researchers use model fingerprinting: a way for a model owner to prove a suspect model was derived from theirs. Traditional fingerprinting relies on "conferrable adversarial examples"—carefully crafted inputs that cause the original model to fail in a specific way. If the suspect model fails in the exact same way, it’s likely stolen.

However, these adversarial fingerprints are fragile. Attackers can easily "wash" them away using techniques like adversarial training or by fine-tuning the stolen model on a different task (transfer learning). Furthermore, generating these fingerprints is computationally heavy and often requires "white-box" access to the model's internal parameters.

Methods

The core idea of SAmple Correlation (SAC) is intuitive: if two images produce similar internal representations in a source model, they should also produce similar representations in any model stolen from it.

Framework of SAC-JC. The process involves generating JPEG-compressed samples, calculating correlation matrices for both source and suspect models, and comparing the distance between these matrices.

The authors' specific implementation, SAC-JC, follows these steps:

  1. JPEG Compression (JC): To amplify the unique "signature" of a model and move beyond "common knowledge" shared by all models trained on the same task, the authors use JPEG compression as a data augmentation technique.
  2. Correlation Matrix Calculation: A batch of these compressed images is fed into both the source model and the suspect model. The method calculates a correlation matrix (using cosine similarity or Gaussian RBF kernels) that captures how every image in the batch relates to every other image based on the model's outputs.
  3. Distance Measurement: The fingerprint is the $L1$ distance between the source model's correlation matrix and the suspect model's matrix. If the distance is below a certain threshold, the suspect model is flagged as stolen.
  4. FRI for Face Verification: Face verification models are tricky because they often only output a binary "same/different" result rather than a probability vector. To handle this, the authors introduce Feature from Reference Images (FRI), which builds a model-specific feature vector for a target image by comparing it against a set of reference images of the same identity.

Datasets

The authors evaluated SAC-JC across several domains:

  • Face Emotion Recognition: KDEF (Karolinska Directed Emotional Faces).
  • Face Verification: MS1MV2 (for the defender) and CASIA-Webface (for the attacker).
  • General Object Recognition: Tiny-ImageNet and CIFAR10 (to demonstrate the method's generalizability).

Key Insights and Ideas

  • Correlation over Point-wise Accuracy: Moving from "does this model get this specific adversarial example wrong?" to "how does this model relate these samples to each other?" provides a much more stable and harder-to-evade fingerprint.
  • Amplifying Differences with JPEG: Standard clean images often result in very similar outputs across different models because they all learn the same "common knowledge." The authors found that JPEG compression effectively magnifies the subtle architectural and training differences between models, making the fingerprint more distinct.
Comparison of various image corruption methods. JPEG compression consistently yielded the highest AUC (Area Under the Curve) for detecting stolen models across different tasks.
  • Efficiency is King: Unlike methods that require training multiple "surrogate" models to generate adversarial examples, SAC-JC only requires a few passes through the existing models.

Key Results

  • Superior Detection: SAC-JC achieved an average AUC of 0.97 on KDEF and 0.98 on face verification, consistently outperforming existing methods like IPGuard and CAE, especially against sophisticated attacks like adversarial training.
  • Robustness to Transfer Learning: While previous methods failed completely when a model was transferred to a new task (because the label space changed), SAC-JC maintained high accuracy because the underlying sample correlations remained consistent.
  • Massive Speedup: In terms of computational overhead, SAC-JC is a game-changer. It took only 0.16 seconds to generate a fingerprint, compared to over 7 hours (25,536 seconds) for the CAE method—a 34,393-fold reduction in time.

Limitations and Future Work

While highly effective, the paper notes a few areas for further exploration:

  • Threshold Selection: Choosing the optimal distance threshold ($d$) currently relies on having access to a few "irrelevant" (independently trained) models for comparison.
  • Adaptive Attackers: While SAC-JC resists current defenses, future attackers might specifically try to disrupt sample correlations if they know this detection method is in place.
  • API Budget: The method requires sending a batch of images (e.g., 50-100) to the suspect model's API. In scenarios with extremely tight query limits, this might be a constraint.

Summary updated

BibTeX
@article{guan2025sample,
  author = {Jiyang Guan and Jian Liang and Yanbo Wang and Ran He},
  title = {{Sample Correlation for Fingerprinting Deep Face Recognition}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  url = {https://openreview.net/forum?id=kaMpAIUQep},
}
Figure