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

Hierarchical Randomized Smoothing

Yan Scholten, Jan Schuchardt, Aleksandar Bojchevski, Stephan Günnemann

TL;DR

This paper introduces "Hierarchical Randomized Smoothing," a novel method for provably making machine learning models robust to adversarial attacks. It achieves stronger robustness guarantees and better accuracy-robustness trade-offs by selectively adding noise to only a subset of an input's components, rather than the entire input.

What Problem Does This Paper Address?

Machine learning models are notoriously vulnerable to small, imperceptible changes in their input data, which can lead to drastically different predictions. Randomized smoothing is a popular technique to provide provable guarantees of robustness against such "adversarial perturbations." However, existing randomized smoothing methods struggle with complex, structured data like images or graphs. These methods typically apply noise to the entire input (e.g., all pixels in an image or all nodes in a graph). This is inefficient and overly conservative when adversaries can only realistically perturb a subset of the input's components (e.g., a few pixels in an image, or a few nodes in a social network). The challenge is to develop a robust certification method that can effectively handle these more realistic, targeted adversarial attacks without sacrificing too much accuracy.

Methods

The core innovation is Hierarchical Randomized Smoothing. Instead of applying noise to all components of an input (like pixels or graph nodes), this method first selects a subset of these components and then applies noise only to that subset. This is achieved by introducing a two-level smoothing process:

  1. Upper-level selection: An indicator vector is sampled, which determines which components (e.g., rows of a matrix representing entities) will be subjected to noise. This selection is probabilistic, controlled by a parameter p.
  2. Lower-level smoothing: A standard randomized smoothing technique (like Gaussian noise for continuous data or specific distributions for discrete data) is applied only to the components selected in the upper level.

This hierarchical approach allows for more targeted noise application, leading to stronger robustness guarantees for a given level of accuracy. The authors also embed this hierarchical structure into a higher-dimensional space by appending the indicator vector to the data, which simplifies the certification process. They then leverage existing robustness certificates for the lower-level smoothing distributions.

Datasets

The paper evaluates its method on:

  • Image Classification: CIFAR10 dataset.
  • Node Classification: Cora-ML dataset.

No new benchmarks were introduced; existing standard datasets were used.

Key Insights and Ideas

  • Targeted Noise is More Efficient: Applying noise only to a subset of entities is more effective than smoothing the entire input, especially when adversaries are limited in their perturbation capabilities.
  • Flexibility through Hierarchy: The hierarchical approach allows integrating existing smoothing distributions (additive noise, ablation) into a unified framework, making it adaptable to various data types and threat models.
  • Improved Robustness-Accuracy Trade-off: By selectively smoothing, the method achieves a better balance between how robust the model is and its accuracy on clean, unperturbed data. This expands the "Pareto front" of achievable performance.
  • Generalization of Existing Methods: Hierarchical smoothing can recover existing methods like additive noise and ablation smoothing as special cases, demonstrating its broader applicability.

Key Results

  • Expanded Pareto Front: Experiments on image and node classification show that Hierarchical Randomized Smoothing significantly expands the Pareto front of robustness-accuracy trade-offs compared to existing methods. This means it can achieve higher certified accuracy for a given clean accuracy, or higher clean accuracy for a given certified accuracy.
  • Superior Performance in Specific Scenarios: The method particularly excels when adversaries can only perturb a small subset of entities (e.g., a few pixels or nodes) but can apply strong perturbations to those entities.
  • Efficient Certification: The certification process is shown to be efficient, with the additional cost for hierarchical smoothing being minimal.

Limitations and Future Work

  • Inherited Limitations: The method inherits limitations from ablation certificates, where the certifiable radius r is bounded by smoothing parameters, not directly by the classifier's properties.
  • Invariance Issues: The classifier defined on the original matrix space is invariant to the new dimension introduced by the smoothing, and not incorporating this invariance into the Neyman-Pearson Lemma can lead to looser guarantees.
  • Future Work: The authors suggest exploring tighter certificates, integrating them with other techniques like data-dependent smoothing, improving adversarial robustness through novel architectures, and assessing robustness against more complex threat models beyond fixed lp-norm balls. They also mention the potential for node-specific smoothing distributions and non-uniform entity selection probabilities for even finer control.

Summary updated

BibTeX
@inproceedings{scholten2023hierarchical,
  author = {Yan Scholten and Jan Schuchardt and Aleksandar Bojchevski and Stephan Günnemann},
  title = {{Hierarchical Randomized Smoothing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=6IhNHKyuJO},
}
Figure