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

Boosting Adversarial Robustness Using Feature Level Stochastic Smoothing

Sravanti Addepalli, Samyak Jain, Gaurang Sriramanan, R. Venkatesh Babu

Abstract

Advances in adversarial defenses have significantly improved the robustness of Deep Neural Networks (DNNs). However, robust accuracy in state-of-the-art defenses still falls short for critical applications like autonomous navigation. Furthermore, standard network predictions lack reliable confidence measures. We propose Feature Level Stochastic Smoothing (FLSS), a generic method that introduces stochasticity into network predictions to smooth decision boundaries and reject low-confidence samples. FLSS enhances robustness both with and without rejection and can be integrated with existing adversarial detection methods.

Introduction

Deep Neural Networks are notoriously susceptible to adversarial attacks—small, intentional perturbations that cause misclassification with high confidence. While Adversarial Training (AT) has mitigated this, a significant gap remains between current performance and the requirements of safety-critical systems. Moreover, existing defenses often struggle with a trade-off between clean accuracy and adversarial robustness, or fail when encountering non-adversarial noise. FLSS addresses these challenges by injecting noise into the latent feature space, creating a more abstract and resilient representation.

Methodology: Feature Level Stochastic Smoothing

The core of FLSS is a stochastic architecture that learns to be consistent across random feature perturbations. Unlike traditional randomized smoothing that operates on input pixels, FLSS operates in the latent space.

Stochastic Architecture

The model utilizes a stochastic encoder, typically a ResNet-18 backbone, which outputs a distribution rather than a fixed vector. It predicts a mean ($\mu$) and a variance ($\Sigma$) for each input. Using the reparameterization trick, a feature vector $z$ is sampled: $z = \mu + \Sigma \odot \epsilon$, where $\epsilon \sim \mathcal{N}(0, I)$.

FLSS Architecture: A stochastic encoder predicts distribution parameters followed by an MLP classifier.

Consistency Training and Rejection

The model is trained with a multi-part loss function. Beyond standard cross-entropy on adversarial samples, KL divergence terms are employed to align the latent distributions of clean and adversarial images. This process effectively smooths the decision boundaries around data points.

At inference, the model performs $N$ forward passes, sampling different feature vectors each time. A majority vote determines the final class. If the winning class's frequency falls below a threshold, the sample is rejected as uncertain. This mechanism provides a robust proxy for confidence that is more difficult for adversaries to manipulate than standard softmax probabilities.

Experimental Results

The proposed method was evaluated on the CIFAR-10 and CIFAR-100 benchmarks against strong white-box attacks (PGD, APGD, GAMA) under an $\ell_\infty$ constraint of 8/255.

Performance Comparison

FLSS consistently outperforms deterministic state-of-the-art defenses like AWP and TRADES. On CIFAR-10, FLSS achieved a robust accuracy of 56.16% (with 10% rejection), marking a 3.15% improvement over AWP. Similar gains were observed on CIFAR-100.

Quantitative comparison of FLSS against state-of-the-art methods on CIFAR-10 and CIFAR-100.

Noise Tolerance

A key advantage of FLSS is its stability under non-adversarial corruption. While some detection-based methods like CCAT mistakenly reject a high percentage of images with simple random noise, FLSS correctly identifies these as non-adversarial, maintaining high clean accuracy and stability.

Conclusion and Future Work

Feature Level Stochastic Smoothing provides a robust framework for improving DNN resilience and uncertainty estimation. By smoothing in the latent space, it avoids the computational and accuracy costs associated with input-level smoothing.

Future work will address the computational overhead of multiple forward passes, which may be a constraint for real-time edge devices. Additionally, exploring the scalability of FLSS to high-resolution datasets like ImageNet and developing "safe" default behaviors for rejected samples in autonomous systems remain important research directions.

Summary updated

BibTeX
@inproceedings{addepalli2021boosting,
  author = {Sravanti Addepalli and Samyak Jain and Gaurang Sriramanan and R. Venkatesh Babu},
  title = {{Boosting Adversarial Robustness Using Feature Level Stochastic Smoothing}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  url = {https://openreview.net/forum?id=hGCf5GjF47m},
}
Figure