Abstract: Building models that comply with the invariances inherent to different domains, such as invariance under translation or rotation, is a key aspect of applying machine learning to real world problems like molecular property prediction, medical imaging, protein folding or LiDAR classification. For the first time, we study how the invariances of a model can be leveraged to provably guarantee the robustness of its predictions. We propose a gray-box approach, enhancing the powerful black-box randomized smoothing technique with white-box knowledge about invariances. First, we develop gray-box certificates based on group orbits, which can be applied to arbitrary models with invariance under permutation and Euclidean isometries. Then, we derive provably tight gray-box certificates. We experimentally demonstrate that the provably tight certificates can offer much stronger guarantees, but that in practical scenarios the orbit-based method is a good approximation.
Introduction: The Limits of Black-Box Robustness
Adversarial robustness is a major challenge in machine learning: small, carefully crafted perturbations to an input can flip a model's prediction. Randomized smoothing has emerged as a leading technique for providing provable guarantees. It works by adding random noise to an input and taking the most likely prediction, allowing researchers to calculate a "certified radius" within which the prediction is guaranteed to stay the same.
However, standard randomized smoothing is strictly "black-box"—it treats the model as a mystery and doesn't care about its internal architecture. This is a missed opportunity. Many modern models (like Graph Neural Networks or PointNets) are invariant by design; for example, a model predicting molecular properties shouldn't change its answer just because the molecule was rotated in 3D space.
If we know a model is invariant, standard black-box certificates are unnecessarily pessimistic. They "waste" their robustness budget protecting against transformations that the model is already immune to. This paper tackles the question: How can we use a-priori knowledge about a model's invariances to derive stronger robustness guarantees?
Methods: Gray-Box Certificates
The authors propose a gray-box approach. It goes beyond black-box by utilizing the model's group-invariance properties, without requiring full white-box access to every weight and neuron.
They introduce two types of certificates:
- Orbit-based Certificates (The Baseline): This acts as a post-processing step. If a point $X$ is certified robust within a radius $r$, then any point that can be transformed (rotated, translated, etc.) into that certified region must also be robust. The set of all such points is called the "orbit."
- Tight Gray-box Certificates: This is the core contribution. Using the Neyman-Pearson lemma and canonical maps, the authors derive the mathematically "tightest" possible certificate. This means no other certificate using only the same information (prediction probability and known invariances) can provide a better guarantee.
The paper provides specific mathematical derivations for several common groups:
- Translation ($T(D)$): Moving objects in space.
- Rotation ($SO(2), SO(3)$): Rotating objects in 2D or 3D.
- Roto-translation ($SE(2), SE(3)$): Combining both.
Datasets
The authors evaluate their methods on spatial data tasks where invariance is critical:
- ModelNet40: A standard benchmark for 3D point cloud classification (CAD models of chairs, airplanes, etc.).
- MNIST (as point clouds): The classic handwritten digit dataset, converted into 2D point coordinates to test rotation and translation invariance.
They used smoothed versions of well-known architectures like PointNet and DGCNN, modified to ensure they were strictly invariant (e.g., by centering the data or using frame averaging).
Key Insights and Ideas
- Invariance is "Free" Robustness: By accounting for invariance, the certified region isn't just a sphere; it becomes a complex shape that extends much further in directions corresponding to the invariant transformations.
- The Translation Surprise: For translation invariance, the simple "orbit-based" approach is actually the mathematically optimal (tight) solution. This is a rare case where the intuitive baseline is as good as it gets.
- Rotation is Different: For rotation, the tight certificate is strictly stronger than the orbit-based one. The gap is most significant when the data norm is small relative to the noise—meaning the tight certificate is much better at protecting "small" objects or features.
- Group Averaging Emerges Naturally: In their derivation of the "worst-case classifier," the math naturally leads to group averaging (integrating over all possible rotations/translations), which is a classic technique for building invariant models. It’s a beautiful "full circle" moment where the tool for building models becomes the tool for certifying them.
Key Results
- Eliminating Transformation Attacks: In experiments where an adversary rotates an input, the black-box certificate's accuracy drops to zero almost immediately. In contrast, the gray-box certificates remain nearly constant, effectively "nullifying" the rotation.
- Stronger Scaling Robustness: Even for attacks that don't involve rotation (like adversarial scaling), the tight rotation-aware certificate provides better bounds than the black-box version. For example, on MNIST point clouds with $\sigma=0.5$, the tight certificate could certify robustness for perturbations nearly twice as large as the black-box baseline.
- Practicality: While the tight certificates for rotation require Monte Carlo sampling, they are computationally efficient, taking less than a second to compute on a standard CPU.
Limitations and Future Work
- Scope of Invariances: The paper focuses on Euclidean isometries (rotation, translation) and permutations. It does not yet cover other important invariances like graph isomorphisms (crucial for GNNs) or reflections.
- Tightness for Permutations: While they discuss permutation invariance, they haven't yet derived a "provably tight" certificate for it, relying instead on the orbit-based approximation.
- Exploratory Nature: This is the "first study" of its kind. The authors note that while they've proven it's possible to derive these certificates, applying them to a wider variety of real-world tasks (like protein folding or LiDAR) remains for future work.
Summary updated