Adversarial Attacks in Weight-Space Classifiers

Tamir Shor, Ethan Fetaya, Chaim Baskin, Alex M. Bronstein

TL;DR

This paper investigates the surprising robustness of classifiers that operate on the parameters of Implicit Neural Representations (INRs) against adversarial attacks. They demonstrate that these "weight-space" classifiers are significantly more resilient than traditional classifiers working directly on input data, a phenomenon attributed to a "gradient obfuscation" effect within the INR optimization process.

What Problem Does This Paper Address?

Modern machine learning models, especially deep neural networks, are notoriously vulnerable to adversarial attacks. These attacks involve making tiny, often imperceptible, perturbations to input data that cause the model to misclassify it. This vulnerability severely limits their reliability in real-world applications. Implicit Neural Representations (INRs) offer a way to represent complex data (like images or 3D shapes) compactly by learning a neural network that maps coordinates to signal values. A recent trend is to perform downstream tasks, such as classification, directly on the parameters of these INRs, rather than on the reconstructed data. This paper asks: how robust are these "parameter-space classifiers" to adversarial attacks, and why?

Methods

The authors introduce a novel suite of five adversarial attacks specifically designed for parameter-space classifiers. These attacks aim to perturb the input signal in a way that fools the parameter-space classifier, while still respecting the constraints of the INR representation. Key attack strategies include:

  • Full Projected Gradient Descent (PGD): A standard attack adapted to backpropagate through both the classifier and the INR's internal optimization loop.
  • Truncated Modulation Optimization (TMO) & Backpropagation Over Truncation Through Optimization of Modulation (BOTTOM): These methods aim to reduce the computational burden of full backpropagation by truncating the optimization steps, offering a trade-off between attack effectiveness and computational cost.
  • Imposition of Constraints via Orthogonal Projection (ICOP): An attack that operates directly in the INR parameter space, attempting to constrain the adversarial perturbation's effect on the signal domain.
  • Implicit Differentiation: A technique to compute gradients more efficiently by leveraging the stationarity conditions of the INR optimization, bypassing explicit backpropagation through the entire optimization process.

They also introduce a novel attack for 3D voxel-grid data called Binary Voxel Attack (BVA).

Datasets

The paper evaluates its methods on the following datasets:

  • MNIST: A widely-used dataset of handwritten digits.
  • Fashion-MNIST: A dataset of clothing images, serving as a more challenging 2D image benchmark.
  • ModelNet10: A dataset of 3D CAD models, used to test the methods on higher-dimensional data.

Key Insights and Ideas

  • Inherent Robustness: Parameter-space classifiers exhibit a surprising and significant robustness to standard white-box adversarial attacks, even without any explicit adversarial training.
  • Gradient Obfuscation as the Key: This robustness is primarily attributed to a "gradient obfuscation" or "scrubbing" effect within the INR optimization process. The INR's internal optimization loop, which prioritizes fitting global signal structures, effectively filters out high-frequency adversarial perturbations before they reach the classifier.
  • Computational Barrier for Attackers: Attacking parameter-space classifiers is computationally much more demanding for adversaries due to the need to backpropagate through the INR's internal optimization loop. This significantly increases attack times and memory requirements.
  • Limitations of Gradient-Free Attacks: While robust to gradient-based attacks, parameter-space classifiers show reduced robustness against gradient-free attacks like BPDA, suggesting that the robustness is not absolute but rather a consequence of the specific attack mechanism.
  • 3D Data Challenges: Adapting attacks to 3D data (voxel-grids) presents unique challenges, leading to the development of the BVA attack.

Key Results

  • Fashion-MNIST: Parameter-space classifiers maintained significantly higher robust accuracy compared to signal-domain classifiers under various L∞ norm constraints, even with strong attacks like Auto-Attack. For example, at a moderate attack bound, parameter-space classifiers retained much higher accuracy than signal-domain counterparts.
  • ModelNet10: Similar robustness trends were observed for 3D data, though the computational cost of optimizing INRs for high-dimensional 3D data made some attacks (like full PGD) infeasible for the attacker.
  • Attack Efficiency: The proposed parameter-space attack suite was significantly faster (up to 40x) than Auto-Attack for optimization, despite achieving comparable or better attack performance in some scenarios.
  • Adversarial Amplification: Analysis showed that adversarial perturbations were amplified within the INR layers but then significantly attenuated before reaching the parameter-space classifier, a stark contrast to signal-domain classifiers where amplification continued.

Limitations and Future Work

  • Limited Deployment: Parameter-space classifiers are not yet widely deployed in computer vision, limiting immediate practical applicability.
  • Dataset Complexity: The evaluation was primarily conducted on datasets where current parameter-space methods achieve competitive clean accuracy, leaving more complex benchmarks unexplored.
  • Gradient-Based Focus: The study focused on white-box gradient-based attacks. Future work could explore extending this robustness to gradient-free and black-box attacks, as well as investigating adversarial pre-training techniques.
  • Adaptive Attacks: While the paper shows robustness against standard attacks, the authors acknowledge that adaptive attacks (like BPDA) can bypass the gradient obfuscation, leading to a significant drop in robust accuracy. This suggests that the robustness is more of a practical barrier than a theoretical guarantee.

Summary updated

BibTeX
@article{shor2025adversarial,
  author = {Tamir Shor and Ethan Fetaya and Chaim Baskin and Alex M. Bronstein},
  title = {{Adversarial Attacks in Weight-Space Classifiers}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=eOLybAlili},
}
Figure