Introduction
Adversarial attacks pose a significant security risk to deep learning systems by introducing subtle, human-imperceptible perturbations to input data that cause models to misclassify. In practical "black-box" scenarios, attackers lack access to the target model's architecture and parameters. Consequently, they must generate adversarial examples on a known "substitute" model, relying on the phenomenon of transferability—the ability of an attack to fool different models. However, transferability often degrades significantly when the source and target models belong to different architectural families, such as Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs).
The Challenge of Cross-Architecture Transferability
The primary obstacle to cross-architecture transferability is the output inconsistency problem. While different models may correctly classify the same image, their internal representations and output probability distributions (logits) often differ drastically.
As illustrated in Figure 1, models like ResNet-18 and Inception-v3 might exhibit high confidence in a single class, whereas MLP-Mixer and Swin-T show more distributed confidence across multiple classes. This inconsistency suggests that different architectures rely on distinct features for classification. An adversarial attack optimized for one architecture's specific features may fail to exploit the vulnerabilities of another.
Common Knowledge Learning (CKL) Framework
To address this, researchers proposed Common Knowledge Learning (CKL). Instead of using a single substitute model, CKL distills the collective adversarial vulnerabilities of a diverse ensemble of "teacher" models into a single "student" model. This student model is then used as the source for generating adversarial examples.
The CKL framework, shown in Figure 5, employs two primary distillation objectives:
- Logit Distillation ($L_{KD}$): The student model is trained to minimize the difference between its output logits and those of the multiple teacher models. This encourages the student to learn a "consensus" representation that ignores architecture-specific quirks.
- Gradient Distillation ($L_{Grad}$): Since most adversarial attacks are gradient-based (e.g., MI-FGSM), matching the student's input gradients to those of the teachers is crucial. This ensures the student's "direction of vulnerability" aligns with the shared vulnerabilities of the teachers.
To handle potential conflicts where different teachers suggest opposing gradient directions, the framework utilizes PCGrad. This technique projects conflicting gradients onto a normal plane, preventing the student from learning contradictory features and ensuring a stable training process.
Experimental Evaluation
The CKL framework was evaluated on the CIFAR-10 and CIFAR-100 datasets using a diverse set of teacher models, including ResNet-50, Inception-v3, Swin Transformer, and MLP-Mixer.
Key Results
- Enhanced Transferability: CKL significantly improved the Attack Success Rate (ASR) across different architectures. For instance, an attack generated using a CKL-trained student achieved a ~62% ASR against a ViT-S target, compared to only ~37% for standard methods.
- Superior Efficiency: Compared to traditional ensemble-based attacks that require querying multiple models simultaneously, CKL is approximately 25 times faster during the attack generation phase, as it only requires a single pass through the student model.
- Generalization to Unseen Models: Adversarial examples generated via CKL successfully fooled "black-box" models that were not part of the teacher ensemble, demonstrating that the student model captures truly "common" adversarial knowledge.
Conclusion
Common Knowledge Learning represents a significant advancement in generating transferable adversarial examples. By distilling shared vulnerabilities from diverse architectures, CKL overcomes the output inconsistency problem and provides a highly efficient, architecture-agnostic attack method. While the initial training of the student model requires computational overhead, the resulting gains in transferability and attack speed make it a potent tool for evaluating the robustness of diverse AI systems. Future work will explore scaling CKL to higher-resolution datasets like ImageNet and refining teacher selection strategies.
Summary updated