NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Harnessing the Vulnerability of Latent Layers in Adversarially Trained Models

Nupur Kumari, Mayank Singh, Abhishek Sinha, Harshitha Machiraju, Balaji Krishnamurthy, Vineeth N. Balasubramanian

Abstract

Deep Neural Networks (DNNs) are notoriously susceptible to adversarial attacks. While Adversarial Training (AT) is the current gold standard for defense, it often treats the network as a black box, focusing primarily on the input-output relationship. This paper identifies a critical "robustness gap": even models that are robust at the input level often harbor highly vulnerable internal latent layers. We introduce Latent Adversarial Training (LAT), a fine-tuning method that secures these internal feature representations. Our results demonstrate that LAT significantly boosts adversarial robustness and, uniquely, improves clean test accuracy across multiple benchmarks.

Introduction

Adversarial perturbations—small, human-imperceptible changes to input data—can cause DNNs to fail catastrophically. Standard Adversarial Training (AT) hardens models by training on these "broken" examples. However, we discovered that this approach leaves internal "latent" layers highly sensitive to noise. Even when a model is a "fortress" at the input gate, it may have "glass walls" inside. If an attacker targets these internal layers, the model's overall defense crumbles. This vulnerability can be quantified using the Lipschitz constant, where high values indicate unstable, "jumpy" model behavior.

Figure 1: Adversarial accuracy across layer depths. LAT consistently maintains higher robustness in internal layers compared to standard Adversarial Training, addressing the internal vulnerability gap.

Methodology

To address this internal fragility, we propose two primary contributions:

Latent Adversarial Training (LAT)

LAT is a fine-tuning technique that introduces perturbations directly into specific latent layers during the training process. The model is forced to minimize a loss function that combines standard adversarial loss with a "latent" loss. This ensures that the "back half" of the network becomes robust to the noisy features produced by the "front half."

Latent Attack (LA)

To prove the danger of these vulnerable layers, we designed the Latent Attack (LA). This attack identifies perturbations that fool internal sub-networks and then uses optimization to map those internal changes back to a valid perturbation of the original input image.

Key Insights

  • The Robustness Gap: Input-layer robustness does not imply feature-layer robustness. Securing the perimeter is insufficient if the interior remains fragile.
  • Breaking the Trade-off: Typically, increasing robustness degrades accuracy on normal ("clean") images. LAT is one of the few methods that actually improves clean accuracy (by ~1% on CIFAR datasets) while simultaneously increasing robustness.
  • Layer Sensitivity: Middle-to-late layers are often the most vulnerable. Targeting these specific depths during LAT yields the best performance gains.

Experimental Results

We evaluated LAT on MNIST, CIFAR-10, CIFAR-100, SVHN, and Restricted ImageNet. LAT consistently outperformed standard AT and Feature Noise Training (FNT) across all benchmarks.

  • CIFAR-10: LAT boosted adversarial accuracy against PGD attacks to 53.84% (up from 47.12% with AT) and improved clean accuracy to 87.80%.
  • CIFAR-100: Adversarial accuracy jumped from 22.72% to 27.03%.
  • Transferability: LAT-trained models show superior resistance to "black-box" attacks, where the attacker lacks direct access to the model's internal parameters.
Figure 4: Comparison of LAT and AT against PGD, Transfer, Black-Box, and SPSA attacks across varying perturbation strengths (epsilon). LAT consistently provides superior defense across diverse attack vectors.

Conclusion

LAT effectively secures the internal architecture of DNNs, addressing a critical oversight in standard adversarial training. By lowering the Lipschitz constant of internal sub-networks, LAT makes the entire model more stable. While the method introduces new hyperparameters, such as the target layer and the weight of latent loss, its ability to improve both robustness and generalization makes it a significant advancement in reliable machine learning.

Summary updated

BibTeX
@inproceedings{kumari2019harnessing,
  author = {Nupur Kumari and Mayank Singh and Abhishek Sinha and Harshitha Machiraju and Balaji Krishnamurthy and Vineeth N. Balasubramanian},
  title = {{Harnessing the Vulnerability of Latent Layers in Adversarially Trained Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/385},
}
Figure