Abstract
ModelLock is a novel protection framework designed to secure the intellectual property of fine-tuned models. By leveraging text-guided image editing during the fine-tuning process, ModelLock "locks" a model's performance on standard data. The model only achieves high accuracy when the input is transformed via a secret "key prompt" or "spell" at inference time. Experimental results across diverse datasets, including medical and object detection tasks, demonstrate that ModelLock effectively reduces unauthorized performance to near-random levels while maintaining high utility for authorized users.
Introduction
The proliferation of large-scale pre-trained models has led to a surge in specialized fine-tuning on proprietary datasets. These datasets represent significant corporate assets, making the resulting models prime targets for theft or extraction. Traditional defenses, such as watermarking, are passive and only serve post-hoc forensic purposes. ModelLock introduces an active defense mechanism where the model's core functionality is cryptographically tied to a secret text prompt.
Methodology
The ModelLock framework operates through a three-stage pipeline: Key Prompt Design, Locking (Training), and Unlocking (Inference).
1. Key Prompt Design
To maintain model utility, the "lock" must not interfere with the primary task's features. The authors utilize GPT-4V to identify "least relevant" labels or stylistic modifications (e.g., "with oil pastel style") that are distinct enough to shift the data distribution without obscuring critical classification features.
2. Locking (Training)
The training set is partitioned and modified:
- Authorized Data (95%): Images are edited using a diffusion model (e.g., InstructPix2Pix) guided by the secret key prompt. These retain their original ground-truth labels.
- Unauthorized Data (5%): Clean, unedited images are assigned to a "Locked" class or an incorrect label. The model is fine-tuned on this mixture, learning to associate the "Locked" state with clean data and functional performance with the "edited" distribution.
3. Unlocking (Inference)
Authorized users apply the secret key prompt to their input images via the same diffusion process before inference. Without this specific transformation, the model defaults to the "Locked" output.
Experimental Evaluation
ModelLock was evaluated across multiple domains, including general image classification (CIFAR-10, Pets, Food101), medical imaging (NIH ChestX-ray14), and dense prediction tasks like object detection and segmentation on the Cityscapes dataset.
Key Insights
- Style vs. Object Locks: Stylistic modifications (e.g., "Impasto brush") generally outperform object-based locks. Style changes affect the entire pixel distribution, creating a more robust "lock" that is harder for attackers to bypass while preserving high Unlocked Performance (UP).
- Security via Diffusion: The complexity of the diffusion model acts as a security layer. Attackers must guess not only the text prompt but potentially specific LoRA weights used during the editing phase.
Results
The framework demonstrates a stark divergence between authorized and unauthorized use. Across six datasets, the Locked Performance (LP)—accuracy on clean data—plummeted from an average of 93.94% to 5.72%. Conversely, the Unlocked Performance (UP) recovered to 92.28%, representing a negligible utility loss of less than 2%. Robustness tests against "Random Prompt" and "Surrogate Prompt" attacks showed that attackers struggle to recover original accuracy, particularly when custom LoRA weights are employed.
Conclusion and Future Work
ModelLock provides a powerful active defense for model IP. However, challenges remain regarding the computational overhead of diffusion-based inference and the potential for subtle edits to interfere with sensitive diagnostic features in fields like radiology. Future research will focus on "originality-preserving" edits and defending against adaptive optimization-based attacks.
Summary updated