Abstract
Transfer learning has revolutionized deep learning by allowing practitioners to leverage powerful pre-trained feature extractors for specialized tasks. However, this efficiency comes with a hidden security cost. This paper introduces "headless" adversarial attacks—perturbations crafted to deceive models without any knowledge of their final classification layers or task-specific labels. By exploiting the shared geometry of public "backbone" models, we demonstrate that an attacker can achieve misclassification rates comparable to full-knowledge white-box attacks.
Introduction
The modern AI development workflow often relies on a "cheat code": instead of training massive neural networks from scratch, developers use pre-trained "backbones" (like ResNet or MobileNet) and add a custom "classification head." While this reduces computational requirements, it creates a centralized security bottleneck. Standard adversarial research typically assumes either "white-box" access (full model knowledge) or "black-box" access (query access). We explore a more realistic threat model: the attacker knows only the publicly available backbone used, remaining completely "label-blind" to the specific task.
Methodology
We propose two primary "headless" attack strategies that target the feature extractor directly:
1. Centroid-based Attack
In scenarios where the attacker knows the victim's dataset (e.g., CIFAR-10) but lacks access to the custom head, they can calculate "centroids"—average feature vectors for each class—within the feature space. These centroids serve as "synthetic logits." Using Projected Gradient Descent (PGD), the attacker optimizes perturbations to push an image's representation away from its true class centroid and toward others.
2. Label-blind Attack (The "Headless Horseman")
This advanced strategy assumes no knowledge of the victim's classes. The attacker uses a surrogate pre-trained model to identify discriminative features and optimizes a perturbation to shift the image's representation toward a distant "target" manifold in the feature space. This method manipulates the underlying feature representation to ensure that any classification head will likely fail.
Experimental Results
Our evaluations on ImageNet-pre-trained backbones fine-tuned for CIFAR-10 reveal that the backbone itself is the primary source of vulnerability.
As shown in Table 1, the centroid-based attack is remarkably effective. At a perturbation magnitude of $\epsilon=8/255$, it reduced the accuracy of a ResNet18 model to 10.57%. This performance is nearly identical to the 11.01% accuracy achieved by a standard white-box PGD attack that had full access to the classification head. This suggests that knowing the final layer provides almost no additional advantage to an attacker.
The label-blind "Headless Horseman" attack also demonstrated significant potency. In our tests, this attack increased the error rate of a ResNet50-based victim from a baseline of 22.10% to 66.19%.
Figure 1 illustrates how the error rate scales with the number of PGD steps. Notably, the attack significantly outperforms random Gaussian noise (which resulted in a 44.38% error rate, represented by the orange baseline), proving that the "Headless Horseman" specifically targets the model's learned feature logic.
Discussion and Conclusion
The success of these attacks highlights a fundamental property of transfer learning: the security of the entire system is tied to the feature extractor. By moving an image's representation to a different part of the feature manifold, an attacker can guarantee misclassification regardless of the specific task or head architecture.
These findings suggest that practitioners should be cautious when using "off-the-shelf" weights for security-sensitive applications. Future research should investigate defensive measures, such as adversarial training of backbones or the use of custom-trained feature extractors, to mitigate these "headless" threats.
Summary updated