English

Latent Transfer Attack: Adversarial Examples via Generative Latent Spaces

Computer Vision and Pattern Recognition 2026-03-09 v1

Abstract

Adversarial attacks are a central tool for probing the robustness of modern vision models, yet most methods optimize perturbations directly in pixel space under \ell_\infty or 2\ell_2 constraints. While effective in white-box settings, pixel-space optimization often produces high-frequency, texture-like noise that is brittle to common preprocessing (e.g., resizing and cropping) and transfers poorly across architectures. We propose LTA\textbf{LTA} (L\textbf{L}atent T\textbf{T}ransfer A\textbf{A}ttack), a transfer-based attack that instead optimizes perturbations in the latent space of a pretrained Stable Diffusion VAE. Given a clean image, we encode it into a latent code and optimize the latent representation to maximize a surrogate classifier loss, while softly enforcing a pixel-space \ell_\infty budget after decoding. To improve robustness to resolution mismatch and standard input pipelines, we incorporate Expectation Over Transformations (EOT) via randomized resizing, interpolation, and cropping, and apply periodic latent Gaussian smoothing to suppress emerging artifacts and stabilize optimization. Across a suite of CNN and vision-transformer targets, LTA achieves strong transfer attack success while producing spatially coherent, predominantly low-frequency perturbations that differ qualitatively from pixel-space baselines and occupy a distinct point in the transfer-quality trade-off. Our results highlight pretrained generative latent spaces as an effective and structured domain for adversarial optimization, bridging robustness evaluation with modern generative priors.

Keywords

Cite

@article{arxiv.2603.06311,
  title  = {Latent Transfer Attack: Adversarial Examples via Generative Latent Spaces},
  author = {Eitan Shaar and Ariel Shaulov and Yalcin Tur and Gal Chechik and Ravid Shwartz-Ziv},
  journal= {arXiv preprint arXiv:2603.06311},
  year   = {2026}
}
R2 v1 2026-07-01T11:06:56.608Z