Examining the Threat Landscape: Foundation Models and Model Stealing
Ankita Raj, Deepankar Varma, Chetan Arora
TL;DR
The paper analyzes model stealing risks for vision systems built from foundation models, showing that victims finetuned from ViTs are more susceptible to theft than traditional CNN baselines when an attacker leverages strong foundation-model thieves. Using proxy data from ImageNet and a mixture of ViT and ResNet thieves, the study reports high agreement between victim and thief predictions, with up to 94.28% on CIFAR-10 and substantial gains over CNN-based victims. It demonstrates that richer representations in foundation models, while boosting downstream accuracy, also facilitate theft, especially as attacker and victim both rely on strong backbones. The results advocate for security-aware deployment of foundation-model–based APIs and the development of defenses against model stealing in MLaaS contexts.
Abstract
Foundation models (FMs) for computer vision learn rich and robust representations, enabling their adaptation to task/domain-specific deployments with little to no fine-tuning. However, we posit that the very same strength can make applications based on FMs vulnerable to model stealing attacks. Through empirical analysis, we reveal that models fine-tuned from FMs harbor heightened susceptibility to model stealing, compared to conventional vision architectures like ResNets. We hypothesize that this behavior is due to the comprehensive encoding of visual patterns and features learned by FMs during pre-training, which are accessible to both the attacker and the victim. We report that an attacker is able to obtain 94.28% agreement (matched predictions with victim) for a Vision Transformer based victim model (ViT-L/16) trained on CIFAR-10 dataset, compared to only 73.20% agreement for a ResNet-18 victim, when using ViT-L/16 as the thief model. We arguably show, for the first time, that utilizing FMs for downstream tasks may not be the best choice for deployment in commercial APIs due to their susceptibility to model theft. We thereby alert model owners towards the associated security risks, and highlight the need for robust security measures to safeguard such models against theft. Code is available at https://github.com/rajankita/foundation_model_stealing.
