Improving Adversarial Robustness via Activation Amplification and Attenuation

Taïga Gonçalves, Yongsong Huang, Tomo Miyazaki, Shinichiro Omachi
6/26/2026
cs.CVcs.AIcs.LG

Official code: tgoncalv/A3 (0 stars, Python, MIT, last commit 2026-08-31).

Abstract

The existence of adversarial attacks is often attributed to the presence of non-robust features in neural networks. While prior defenses reduce their impact via pruning, masking, or feature recalibration, we instead propose to jointly learn to amplify and attenuate these signals through a simple activation scaling mechanism.

Show full abstract

To this end, we introduce Activation Amplification and Attenuation (A3), a lightweight plug-in module that enhances adversarial robustness with minimal modifications of the activations. A3 dynamically rescales the activations using a learnable mask and a scaling factor derived from the original activation magnitudes. The influence of adversarial perturbations can be amplified or attenuated using the same learnable parameters by simply flipping the sign of the scaling operation. The amplified signals serve as negative references to construct novel contrastive and ranking loss functions. Experimental analysis shows that learning to degrade the predictions in amplification mode simultaneously improves adversarial robustness in attenuation mode. Moreover, A3 relies on only a small number of learnable parameters, with most of its behavior being determined by the scaling mechanism rather than additional network capacity. Extensive experiments demonstrate that integrating A3 into different backbones, datasets, and training methods consistently improves adversarial robustness while introducing negligible computational and memory overhead compared to existing plug-in modules. Code is available at: https://github.com/tgoncalv/A3.

View on arXivView PDF

Code Implementations(1)

tgoncalv/A3Official100%
MIT

Official PyTorch implementation of "Improving Adversarial Robustness via Activation Amplification and Attenuation" (ECCV 2026)

00Python, ShellJun 25, 20263 months agoMIT

Similar Papers

Cite this paper

@article{gonalves2026improving,
  title  = {Improving Adversarial Robustness via Activation Amplification and Attenuation},
  author = {Taïga Gonçalves and Yongsong Huang and Tomo Miyazaki and Shinichiro Omachi},
  year   = {2026},
  eprint = {2606.27784},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.27784v1},
  journal = {ECCV 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.27784.svg)](https://codeofpaper.com/paper/2606.27784)

Discussion