Abstract
Model fingerprinting is a critical defense against the unauthorized extraction and reuse of proprietary machine learning models. However, the field currently lacks a unified framework, making it difficult to compare disparate methods fairly. In this work, we introduce the QuRD framework, which decomposes fingerprinting into three modular components: Query Sampling, Representation, and Detection. Using this framework, we generate and evaluate over 100 fingerprinting combinations. We also propose the Anna Karenina Heuristic (AKH), a simple baseline that identifies stolen models based on shared classification errors. Our results demonstrate that AKH frequently outperforms complex state-of-the-art methods, suggesting that current benchmarks are nearing saturation. We advocate for more challenging evaluation standards to drive the next generation of fingerprinting research.
Introduction
The development of state-of-the-art machine learning models requires significant capital, including high-quality datasets, massive computational resources, and specialized human expertise. This high value makes models targets for "model stealing," where adversaries attempt to replicate a model's functionality via API queries or direct infrastructure leaks.
To protect intellectual property, model owners employ model fingerprinting. This technique aims to determine if a suspect model ($h'$) is a derivative of a victim model ($h$). Despite its importance, the fingerprinting literature is fragmented, with researchers using varied assumptions, complex adversarial techniques, and inconsistent datasets. This lack of standardization makes it nearly impossible for model owners to identify the most effective defense for their specific needs.
The QuRD Framework
To bring systematic order to the field, we propose the QuRD framework. We posit that any fingerprinting scheme can be decomposed into three fundamental stages:
- Query Sampling (Q): The process of selecting input points to probe the suspect model. Strategies range from random sampling to generating adversarial examples or selecting "negative" samples that the original model misclassifies.
- Representation (R): The method of encoding the model's responses to the queries. This could involve using raw predicted labels, soft probabilities (logits), or more complex metrics like the correlation between different output classes.
- Detection (D): The decision rule used to classify a model as "stolen" or "independent." This typically involves calculating a distance metric (e.g., Hamming distance) or training a secondary meta-classifier.
By modularizing these components, we can systematically explore the design space of fingerprinting defenses, leading to the creation of over 100 novel combinations.
The Anna Karenina Heuristic (AKH)
A central contribution of our work is the introduction of a simple yet powerful baseline: the Anna Karenina Heuristic (AKH). Inspired by the notion that "each unhappy family is unhappy in its own way," AKH focuses on the unique mistakes made by the original model.
Specifically, AKH selects inputs that the victim model $h$ classifies incorrectly. The core hypothesis is that a stolen or derived model $h'$ is likely to inherit these specific failure modes, whereas an independently trained model will likely fail on different inputs. If a suspect model makes the same set of unique mistakes as the original, it is flagged as a derivative.
Experimental Evaluation
We evaluated the performance of various fingerprinting schemes across three primary benchmarks:
- ModelReuse (Flower102 & SDog120): These datasets test detection against models that have undergone common modifications like pruning or quantization.
- SACBench (CIFAR10): This benchmark includes more diverse "positive" pairs, such as models that have been fine-tuned or subjected to transfer learning.
Each benchmark includes "positive" pairs (stolen/derived models) and "negative" pairs (unrelated models) to assess the True Positive Rate (TPR) at a fixed False Positive Rate (FPR).
Results and Discussion
The Effectiveness of Simplicity
Our most striking finding is the dominance of the AKH baseline. Despite its mathematical simplicity compared to complex adversarial methods, AKH performs on par with or better than existing state-of-the-art schemes.
As shown in Figure 1, the AKH baseline (represented by the dashed horizontal line) consistently achieves high TPR across different datasets, often surpassing specialized methods like IPGuard or ModelDiff. This suggests that many existing works may be over-engineering solutions to a problem that can be effectively addressed through simple error analysis.
Query Budget and Benchmark Saturation
We also investigated the impact of the query budget ($s$) on detection accuracy. In many practical scenarios, model owners are limited in the number of queries they can send to a suspect API.
Figure 4 illustrates that performance typically plateaus after 50 to 100 queries. For some complex representations, increasing the budget further can even lead to a slight decrease in performance due to increased noise or self-correlation in the responses. Furthermore, the high accuracy achieved by almost all methods on tasks like detecting quantized models suggests that current benchmarks are largely "solved" and no longer provide sufficient discriminative power for evaluating new defenses.
The Power of Negative Sampling
Our analysis reveals that "negative sampling"—selecting inputs the model fails on—is a highly robust strategy. By simply replacing the query sampler in the IPGuard method with a negative sampling approach, we observed a 14 percentage point increase in TPR at a 5% FPR threshold. This underscores the importance of the "Q" component in the QuRD framework.
Conclusion
The QuRD framework and the AKH baseline provide a new lens through which to view model fingerprinting. Our findings suggest that the field has reached a point of saturation on existing benchmarks, where simple heuristics can match the performance of complex adversarial attacks.
The most significant challenge for future research is the development of more sophisticated benchmarks that reflect stealthier extraction attacks, such as label-only extraction. To facilitate this work, we have open-sourced our QuRD toolbox, providing the community with a standardized platform for developing and testing the next generation of model defenses.
Summary updated