Neural Variability Enhances Artificial Network Robustness

Robin Preble, Praveen Venkatesh, Stefan Mihalas, Kameron Decker HarrisarXiv 2026

TL;DR

Biological brains are notoriously noisy yet remarkably robust, a paradox that artificial neural networks (ANNs) have struggled to replicate. This paper demonstrates that injecting structured (correlated) noise into the intermediate layers of ANNs—modeled directly from how data modifications distort internal representations—significantly boosts network robustness against both adversarial attacks and natural image corruptions.

What Problem Does This Paper Address?

Deep neural networks are incredibly fragile; imperceptible adversarial perturbations or simple naturalistic changes (like motion blur or rotation) easily fool them. Conversely, biological brains exhibit massive trial-to-trial neural variability (noise) but remain highly robust.

While previous machine learning approaches have tried injecting random, unstructured noise (like isotropic Gaussian noise) to defend networks, they typically neglect the correlations (structure) present in biological noise. The authors investigate whether structured noise, where the covariance matches the geometry of the input perturbations, can provide a superior defense and help explain the functional role of neural variability in nature.

Methods

The authors propose a biologically inspired method to inject structured noise into intermediate network layers:

  1. Covariance Extraction: They pass both clean and modified (corrupted or attacked) images through a fully trained base network and calculate the difference in activations at a target layer $L$ ($x'_L - x_L$).
  2. Noise Modeling: They compute a full empirical covariance matrix from these differences, capturing exactly how the modification warps the internal representation space.
  3. Injection & Retraining: They inject multivariate Gaussian noise using this full covariance matrix into layer $L$. To ensure a fair comparison with unstructured noise (diagonal or identity covariance), they normalize the noise strength using the trace per dimension. Finally, they freeze the weights up to layer $L$ and retrain the subsequent layers on clean data, forcing the network to become invariant to the directions of maximum perturbation variance.
Figure 1: Noise structure can improve robustness. A) Representation of two classes separated by a learned decision boundary. The vertical dimension isn’t relevant to the task, but due to limited data the decision boundary varies over this dimension. B) The classifier perfectly separates clean training data but is not robust to modifications such as adversarial attacks that move samples across the boundary. C) Structured noise (multivariate Gaussian, depicted as ellipses) is fit to the adversarial perturbations, and the classifier is retrained on the noisy data. Noiseless representations are drawn in the center of the ellipses. D) The retrained decision boundary has a larger margin and robustness against further modifications. Unstructured noise, on the other hand, would be circular and could result in a smaller margin and worse overlap of the two classes.

Datasets

  • Fashion-MNIST (FMNIST): Used to train and evaluate a standard convolutional network based on the LeNet architecture.
  • CIFAR-10: Used to validate the approach on a Vision Transformer (ViT) architecture.

Input modifications included white-box adversarial attacks (AutoPGD, PGD, FGM), black-box attacks (Square Attack), and naturalistic corruptions (motion blur, brightness, contrast, snow, random obstruction).

Key Insights and Ideas

  • Geometry Matters: Unstructured noise spreads out circularly, which can inadvertently blur the boundary between different classes. Structured noise forms an ellipse aligned with the perturbation, effectively "padding" the decision boundary margin in task-irrelevant directions without creating class confusion.
  • Asymmetric Transferability: Noise structures derived from one white-box adversarial attack generalize remarkably well to other white-box attacks. However, noise structures derived from naturalistic corruptions (e.g., motion blur vs. rotation) are highly task-specific and transfer poorly to different corruption types.
  • Early Layers Rule: Injecting noise into early convolutional layers (layers 1–3) provides the most robust defense. This aligns with the idea that early layers handle low-level feature extractions where geometric distortions are more easily neutralized.

Key Results

  • Adversarial Defense: Against a strong AutoPGD attack ($\epsilon = 0.166$), a network with full-covariance structured noise achieved a test accuracy of 0.55, vastly outperforming diagonal covariance (0.34), identity noise (0.24), and the completely undefended baseline (0.00).
  • Naturalistic Robustness: For motion blur (severity 4), full covariance noise maintained an accuracy of 0.64, whereas diagonal noise, identity noise, and no noise all hovered poorly around 0.29–0.30.
Figure 2: Structured noise improves robustness. Noise with a covariance derived from the base model’s responses to modified data is injected into the activations of the second convolutional layer (L = 2). Noise covariance settings include full covariance, diagonal covariance, identity covariance, and no noise. (Left) Mean test accuracy against AutoPGD attack plotted against attack strength. (Center) Mean test accuracy against range of motion blur severity. (Right) Mean test accuracy against random obstruction, where a black square of a given size is placed in a random location.
  • Strict Task Specificity: The transferability matrix for naturalistic modifications shows a distinct diagonal trend, highlighting that matching the exact covariance source to the applied modification yields the best performance.
Transferability matrix of non-adversarial noise covariances

Limitations and Future Work

  • Data Dependency: The current method requires access to paired clean and modified inputs to calculate the covariance matrix explicitly, which is an offline process. The authors suggest future work should explore purely local, Hebbian-style learning rules to dynamically shape noise covariance online.
  • Performance vs. Adversarial Training: While structured noise injection is simpler and requires less data, it is still outperformed by standard global adversarial training (e.g., PGD training), which achieves higher absolute adversarial accuracy (0.74 vs 0.57 at $\epsilon = 0.1$).
  • Clean Data Trade-off: Higher noise strengths ($tr$) improve robustness against severe attacks but cause a noticeable drop in accuracy on clean, unperturbed data.

Summary updated

BibTeX
@misc{preble2026neural,
  author = {Robin Preble and Praveen Venkatesh and Stefan Mihalas and Kameron Decker Harris},
  title = {{Neural Variability Enhances Artificial Network Robustness}},
  year = {2026},
  eprint = {2606.13801},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13801},
}
Figure