TL;DR
AnaFP is the first analytical framework for deep neural network (DNN) fingerprinting that mathematically determines the "Goldilocks zone" for fingerprint placement. By calculating theoretical bounds for a "stretch factor," it ensures fingerprints are far enough from decision boundaries to resist modification attacks (robustness) but close enough to remain specific to the target model (uniqueness).
What Problem Does This Paper Address?
As training high-performance DNNs becomes increasingly expensive, model piracy—where an adversary steals a model and redistributes it as their own—has become a major intellectual property (IP) threat. Adversaries often use "performance-preserving" modifications like fine-tuning or pruning to slightly alter the model, hoping to evade detection while keeping the model's utility.
Fingerprinting is a non-intrusive way to protect IP. It works by finding specific inputs (fingerprints) that trigger unique behaviors in a protected model. Most current methods use adversarial examples near the model's decision boundaries as fingerprints. However, they face a fundamental trade-off:
- Robustness: If a fingerprint is too close to the boundary, a slight modification (like fine-tuning) might push the boundary past the fingerprint, changing the model's response and "breaking" the protection.
- Uniqueness: If a fingerprint is too far from the boundary, it might fall into a region where all models trained on that dataset behave the same way, leading to false positives.
Until now, researchers relied on trial-and-error or heuristics to find the right distance. This paper introduces a rigorous mathematical approach to find the optimal "fingerprint-to-boundary" distance.
Methods
The authors propose AnaFP (Analytical Fingerprinting), which follows a four-step pipeline:
- Anchor Selection: They identify "high-confidence" samples from the training set. These act as the starting points for fingerprint generation.
- Boundary Mapping: Using the Carlini & Wagner (C&W) attack, they find the "boundary point"—the absolute minimum perturbation needed to change the model's prediction for an anchor.
- The Stretch Factor ($\tau$): This is the core innovation. Instead of using the boundary point itself, they "stretch" the perturbation by a factor $\tau$. They derive a lower bound (to ensure the fingerprint stays on the "wrong" side of the boundary even after attacks) and an upper bound (to ensure the fingerprint doesn't drift into territory where independent models would also misclassify it).
- Practical Relaxation: Since calculating these bounds requires knowing every possible pirated or independent model (an infinite set), the authors use "surrogate pools" of models and a quantile-based relaxation strategy. This moves the math from a theoretical "worst-case" scenario to a statistically "likely-case" scenario that works in practice.
Because the lower bound actually depends on the stretch factor itself (a circular dependency), they use a grid search over the admissible interval to find the most stable $\tau$.
Datasets
The authors evaluated AnaFP across diverse architectures and data types:
- CNNs: ResNet-18 trained on CIFAR-10 and CIFAR-100.
- MLPs: ResMLP trained on MNIST.
- GNNs: Graph Attention Networks (GAT) trained on the PROTEINS dataset.
They tested against a battery of attacks, including pruning, fine-tuning, knowledge distillation (KD), and adversarial training.
Key Insights and Ideas
- The "Admissible Interval": The paper proves that there is a mathematically definable "safe zone" for fingerprints. If $\tau$ falls within this interval, the fingerprint is theoretically guaranteed to be both robust and unique.
- Quantile vs. Extreme Values: A major hurdle in theoretical security is that "worst-case" bounds are often so strict they are useless. By using quantiles (e.g., the 50th percentile of logit shifts), the authors created a method that is robust to outliers in the surrogate model pools.
- Geometry Matters: The math relies on the local Lipschitz constant (how much the model's output changes relative to input changes) and the logit margin. This grounds the fingerprinting in the actual geometry of the high-dimensional decision space.
Key Results
AnaFP consistently outperformed six state-of-the-art baselines (including IPGuard and MarginFinger) across almost all scenarios.
- Superior Discrimination: On CIFAR-10, AnaFP achieved an AUC of 0.957, significantly higher than the next best baseline (ADV-TRA at 0.878). An AUC of 1.0 represents perfect separation between pirated and independent models.
- Resilience to "Fingerprint Killers": Knowledge Distillation (KD) is notoriously difficult for fingerprints to survive because it completely reshapes the model's internal weights. AnaFP maintained a leading AUC of 0.756 on CIFAR-10 under KD attacks, where most other methods struggled.
- Versatility: Unlike many adversarial methods that only work on images, AnaFP's analytical approach allowed it to work effectively on Graph Neural Networks (GNNs), achieving an AUC of 0.926 on the PROTEINS dataset.
Limitations and Future Work
- Task Dependency: AnaFP relies on well-defined class decision boundaries. This means it is currently limited to classification tasks. It cannot be directly applied to regression models or self-supervised models (like LLMs or encoders) that don't have a standard classifier head.
- Computational Cost: While more reliable, AnaFP is more computationally expensive than heuristic methods. It requires processing surrogate model pools and performing grid searches, though the authors note this can be mitigated with more efficient optimization algorithms like PGD.
- Future Directions: The authors suggest extending this analytical approach to alternative structural properties, such as similarity geometry in embedding spaces, to cover non-classification models.
Summary updated