On the Adversarial Transferability of ConvMixer Models

Ryota Iijima, Miki Tanaka, Isao Echizen, Hitoshi Kiya

Abstract

Recent advancements in deep learning have introduced "isotropic" architectures like the ConvMixer, which combines the structural principles of Vision Transformers (ViTs) with the simplicity of standard convolutions. This paper investigates the adversarial transferability of ConvMixer models, specifically exploring whether their vulnerability to adversarial examples (AEs) aligns with traditional Convolutional Neural Networks (CNNs) or Transformers. Our results indicate that ConvMixer exhibits low adversarial transferability with standard CNNs, suggesting that its patch-based isotropic structure is a more significant factor in defensive robustness than the presence of attention mechanisms.

1. Introduction

Deep Neural Networks (DNNs) are susceptible to adversarial examples (AEs)—inputs modified by small, often imperceptible perturbations designed to induce misclassification. A critical security challenge is adversarial transferability: the phenomenon where an AE generated for a specific source model successfully fools a different target model. This property facilitates black-box attacks, where an adversary can compromise a system without access to its internal parameters.

While Vision Transformers (ViTs) have demonstrated lower transferability with traditional CNNs, the underlying cause—whether the attention mechanism or the data processing structure—remains a subject of debate. ConvMixer, which utilizes patch embeddings and an isotropic structure (maintaining constant resolution and channel count) but relies solely on standard convolutions, provides a unique opportunity to isolate these variables.

2. Experimental Methodology

To evaluate the transferability of ConvMixer, we conducted a series of image classification experiments using the CIFAR-10 dataset. To ensure architectural compatibility, images were resized from $32 \times 32$ to $224 \times 224$ pixels.

2.1 Models and Attacks

We compared ConvMixer against a suite of established architectures, including ResNet18, ResNet50, VGG16, and ViT. Robustness was benchmarked using AutoAttack, an ensemble of four diverse attack strategies:

  • APGD-ce and APGD-t: Automated Projected Gradient Descent (cross-entropy and targeted).
  • FAB-t: Fast Adaptive Boundary attack.
  • Square Attack: A query-based black-box attack.

2.2 Encryption-Based Defenses

We further explored whether block-wise image transformations (encryption) could mitigate transferability. Three methods were tested:

  1. SHF (Pixel Shuffling): Randomly reordering pixels within blocks.
  2. NP (Negative-Positive): Bit-flipping transformations.
  3. FFX (Feistel-based): A format-preserving encryption method.

3. Results and Analysis

The primary metric for our evaluation was the Attack Success Rate (ASR) of AEs generated on a source model when applied to a target model.

3.1 The Isotropic Shield

Our findings reveal that ConvMixer behaves more like a ViT than a standard CNN regarding adversarial transferability. When AEs were generated using ResNet18 as the source, the ASR on ResNet50 was a staggering 97.08%. However, when the same AEs were applied to ConvMixer, the ASR plummeted to 17.19% (using APGD-ce). This significant drop suggests that the isotropic structure and patch-based processing act as a barrier against AEs optimized for hierarchical CNNs.

3.2 Transferability from ConvMixer

Conversely, AEs generated using ConvMixer as the source model showed relatively weak transferability to other architectures. The ASR on ResNet18 was 48.91%, and on ViT, it was 36.48%. These results reinforce the idea that the features learned by isotropic, patch-based models are distinct from those learned by traditional pyramidal CNNs.

4. Encryption and Robustness

The study also assessed the efficacy of secret-key-based encryption as a defense layer. While encryption generally improves security, the transferability between a plain ConvMixer and its encrypted counterparts remained a factor.

The FFX (Feistel-based) method emerged as the most robust defense. When ConvMixer served as the source and an FFX-encrypted ConvMixer as the target, the ASR for APGD-ce was reduced to approximately 30%. In contrast, simpler methods like SHF and NP were less effective, with ASRs remaining above 70%. Interestingly, varying the encryption keys between models did not significantly decrease transferability, suggesting that the underlying structural vulnerabilities of the ConvMixer architecture are preserved through these transformations.

5. Conclusion

This research demonstrates that ConvMixer’s adversarial transferability profile is closely aligned with that of Vision Transformers. This suggests that the "isotropic" nature of a network—characterized by patch embeddings and consistent internal dimensions—is a primary driver of low adversarial transferability, independent of the attention mechanism. While encryption methods like FFX provide additional layers of defense, the inherent structural properties of the model play a dominant role in its adversarial robustness. Future work will focus on optimizing patch sizes and block-wise processing to further decouple model architectures from adversarial exploitation.

Summary updated

Abstract

Deep neural networks (DNNs) are well known to be vulnerable to adversarial examples (AEs). In addition, AEs have adversarial transferability, which means AEs generated for a source model can fool another black-box model (target model) with a non-trivial probability. In this paper, we investigate the property of adversarial transferability between models including ConvMixer, which is an isotropic network, for the first time. To objectively verify the property of transferability, the robustness of models is evaluated by using a benchmark attack method called AutoAttack. In an image classification experiment, ConvMixer is confirmed to be weak to adversarial transferability.
BibTeX
@inproceedings{iijima2022adversarial,
  author = {Ryota Iijima and Miki Tanaka and Isao Echizen and Hitoshi Kiya},
  title = {{On the Adversarial Transferability of ConvMixer Models}},
  booktitle = {2022},
  year = {2022},
  doi = {10.23919/apsipaasc55919.2022.9980243},
}
Figure