Abstract
Deep learning models represent significant intellectual property, yet they are vulnerable to theft and unauthorized redistribution. Traditional security measures are often passive or introduce significant overhead. This paper introduces AuthNet, an "active defense" mechanism that embeds authentication logic directly into a neural network's architecture. By utilizing redundant neurons as "authentication bits," AuthNet ensures that only users with a secret key can access the model's full capabilities, while unauthorized users receive near-random outputs.
Introduction: The Need for Active Defense
As deep learning models become increasingly valuable, protecting them from unauthorized use is paramount. Current protections typically fall into two categories: system-level security (e.g., encryption) and passive algorithmic protections (e.g., watermarking). However, system-level security can be bypassed, and watermarking only identifies theft after it has occurred.
Existing active defenses, such as passport-based methods, often require additional layers that increase computational costs and are easily detectable by attackers. AuthNet addresses these challenges by building an invisible "lock" into the model weights themselves, adding negligible overhead and resisting removal attempts.
Methodology
The AuthNet framework employs a three-step pipeline to integrate authentication logic without compromising model performance.
- Model Splitting: A pre-trained model is divided into a head model (feature extractor) and a tail model (classifier). The interface between these components is designated as the gate layer.
- Mask Inversion: The process identifies "redundant" neurons in the gate layer—those with typically low activation levels. An optimization process called Mask Inversion generates a secret authentication key (a mask and offset applied to input images). This key is engineered to trigger high activation specifically in these "authentication bits" while leaving functional neurons unaffected.
- Tail Model Fine-tuning: The tail model is fine-tuned using a mixed dataset. Legitimate inputs containing the secret key are trained to yield correct labels, whereas illegal inputs without the key are trained to produce shuffled, near-random labels.
Experimental Evaluation
AuthNet was evaluated across several standard computer vision benchmarks, including MNIST, CIFAR-10, CIFAR-100, Tiny-ImageNet-200, GTSRB, and STL-10. These datasets represent a range of complexity from simple digit recognition to complex object classification and traffic sign detection.
Performance and Robustness
The primary metrics for AuthNet are the accuracy for legitimate users ($ACC_{leg}$) and the accuracy for unauthorized users ($ACC_{ill}$).
Key findings include:
- High Fidelity: Legitimate users experience a negligible accuracy drop, averaging only 1.18% across architectures like ResNet and VGG.
- Effective Rejection: Unauthorized users see accuracy plummet to an average of 22.03%, effectively rendering the model useless for them.
- Low Overhead: AuthNet introduces a mere 1.32% increase in inference time, significantly lower than the 10-15% overhead associated with previous passport-based methods.
- Robustness: The mechanism proved resilient against common attacks such as weight pruning and fine-tuning.
Discussion and Future Work
AuthNet leverages the inherent over-parameterization of deep networks, turning "waste" neurons into a security feature. Theoretical analysis suggests the "authentication domain" is extremely small compared to the "refuse domain," making the secret key nearly impossible to guess through brute force.
Future research will focus on extending AuthNet to Natural Language Processing (NLP), which presents unique challenges in embedding secret keys into discrete tokens. Additionally, the authors propose dispersing authentication bits across multiple layers to further harden the model against sophisticated "clear-box" attacks.
Summary updated