DeepDefense: Layer-Wise Gradient-Feature Alignment for Building Robust Neural Networks

Ci Lin, Tet Yeap, Iluju Kiringa, Biwei Zhang
11/13/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Deep neural networks are known to be vulnerable to adversarial perturbations, which are small and carefully crafted inputs that lead to incorrect predictions. In this paper, we propose DeepDefense, a novel defense framework that applies Gradient-Feature Alignment (GFA) regularization across multiple layers to suppress adversarial vulnerability. By aligning input gradients with internal feature representations, DeepDefense promotes a smoother loss landscape in tangential directions, thereby reducing the model's sensitivity to adversarial noise. We provide theoretical insights into how adversarial perturbation can be decomposed into radial and tangential components and demonstrate that alignment suppresses loss variation in tangential directions, where most attacks are effective. Empirically, our method achieves significant improvements in robustness across both gradient-based and optimization-based attacks. For example, on CIFAR-10, CNN models trained with DeepDefense outperform standard adversarial training by up to 15.2% under APGD attacks and 24.7% under FGSM attacks. Against optimization-based attacks such as DeepFool and EADEN, DeepDefense requires 20 to 30 times higher perturbation magnitudes to cause misclassification, indicating stronger decision boundaries and a flatter loss landscape. Our approach is architecture-agnostic, simple to implement, and highly effective, offering a promising direction for improving the adversarial robustness of deep learning models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2025deepdefense,
  title  = {DeepDefense: Layer-Wise Gradient-Feature Alignment for Building Robust Neural Networks},
  author = {Ci Lin and Tet Yeap and Iluju Kiringa and Biwei Zhang},
  year   = {2025},
  eprint = {2511.13749},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.13749v1}
}

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/2511.13749.svg)](https://codeofpaper.com/paper/2511.13749)

Discussion