cs.CVMar 11, 2026

Backdoor Directions in Vision Transformers

Authors: Sengim Karayalcin, Marina Krcek, Pin-Yu Chen, Stjepan Picek

Organizations: Leiden University · Radboud University · IBM Research · University of Zagreb Faculty of Electrical Engineering and Computing

Abstract

This paper investigates how Backdoor Attacks are represented within Vision Transformers (ViTs). By assuming knowledge of the trigger, we identify a specific ``trigger direction'' in the model's activations that corresponds to the internal representation of the trigger. We confirm the causal role of this linear direction by showing that interventions in both activation and parameter space consistently modulate the model's backdoor behavior across multiple datasets and attack types. Using this direction as a diagnostic tool, we trace how backdoor features are processed across layers. Our analysis reveals distinct qualitative differences: static-patch triggers follow a different internal logic than stealthy, distributed triggers. We further examine the link between backdoors and adversarial attacks, specifically testing whether PGD-based perturbations (de-)activate the identified trigger mechanism. Finally, we propose a data-free, weight-based detection scheme for stealthy-trigger attacks. Our findings show that mechanistic interpretability offers a robust framework for diagnosing and addressing security vulnerabilities in computer vision.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformers

    Apr 21, 2026Dazhuang Liu, Yanqi Qiao, Rui Wang +2Adversarial AttacksVision Transformer

  2. ATAAT: Adaptive Threat-Aware Adversarial Tuning Framework against Backdoor Attacks on Vision-Language-Action Models

    May 9, 2026Kewei Chen, Yayu Long, Shuai Li +1Adversarial AttacksAdversarial Attacks on VLA Models

  3. What Helps---and What Hurts: Bidirectional Explanations for Vision Transformers

    Mar 2, 2026Qin Su, Tie LuoTransformer InterpretabilityExplainable Image Classification