First line of defense: A robust first layer mitigates adversarial attacks
<|reference_start|>First line of defense: A robust first layer mitigates adversarial attacks: Adversarial training (AT) incurs significant computational overhead, leading to growing interest in designing inherently robust architectures. We demonstrate that a carefully designed first layer of the neural network can serve as an implicit adversarial noise filter (ANF). This filter is created using a combination of large kernel size, increased convolution filters, and a maxpool operation. We show that integrating this filter as the first layer in architectures such as ResNet, VGG, and EfficientNet results in adversarially robust networks. Our approach achieves higher adversarial accuracies than existing natively robust architectures without AT and is competitive with adversarial-trained architectures across a wide range of datasets. Supporting our findings, we show that (a) the decision regions for our method have better margins, (b) the visualized loss surfaces are smoother, (c) the modified peak signal-to-noise ratio (mPSNR) values at the output of the ANF are higher, (d) high-frequency components are more attenuated, and (e) architectures incorporating ANF exhibit better denoising in Gaussian noise compared to baseline architectures. Code for all our experiments are available at \url{https://github.com/janani-suresh-97/first-line-defence.git}.<|reference_end|>
@article{suresh2024first,
    title={First line of defense: A robust first layer mitigates adversarial
  attacks},
    author={Janani Suresh, Nancy Nayak, and Sheetal Kalyani},
    journal={arXiv preprint arXiv:2408.11680},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.11680},
    primaryClass={cs.LG}
}