Disentangling Safe and Unsafe Corruptions via Anisotropy and Locality

Ramchandran Muthukumar, Ambar Pal, Jeremias Sulam, René VidalarXiv 2025 · DOI

Abstract

Standard adversarial robustness metrics, such as $\ell_p$ norms, often fail to distinguish between "safe" image corruptions (e.g., blur or noise) that preserve semantic meaning and "unsafe" adversarial attacks that induce label flips. This paper introduces Projected Displacement (PD), a novel, task-aware threat model that leverages local data geometry to identify unsafe directions in the input space. By assigning higher threat values to perturbations aligned with these directions, PD provides a computationally efficient and convex framework for evaluating true model reliability without the need for large-scale foundation models.

The Problem with Isotropic Metrics

In machine learning security, threats are traditionally defined by perturbations within a small $\ell_p$ ball. However, $\ell_p$ norms are isotropic (treating all directions equally) and global (applying a uniform threshold across the entire input space). This leads to a significant misalignment with human perception: a large amount of Gaussian noise might have a high $\ell_p$ norm but remain easily identifiable to a human ("safe"), while a tiny, optimized perturbation can flip a model's prediction ("unsafe").

Figure 1: Comparison of safe vs. unsafe corruptions. PD assigns low scores to safe distortions (blur, noise) and high scores to label-flipping changes (lionfish).

Existing "perceptual" metrics attempt to bridge this gap using deep embeddings, but they are often non-convex and computationally expensive. The authors propose PD as a mathematically well-behaved alternative that is inherently task-dependent.

Methods: Projected Displacement (PD)

The PD threat model is built on two core pillars: Unsafe Directions and Anisotropy.

  1. Unsafe Directions: For any input $x$, an "unsafe direction" is a vector that leads toward a different class label. These are estimated locally by identifying nearest neighbors in the training data that belong to different classes.
  2. Anisotropy and Locality: Unlike the spherical $\ell_p$ ball, the PD threat model is "pointy." It penalizes perturbations that align with unsafe directions while remaining permissive toward "safe" directions that do not lead to label flips.
Figure 2: The geometry of the PD threat model. Threat levels ($d_{PD}$) increase sharply along unsafe directions ($u_{unsafe}$) pointing toward different class regions.

Key Technical Features

  • Convexity: The sub-level sets of PD are intersections of half-spaces, making them convex. This allows for the use of efficient projection algorithms, such as the "Greedy Projection" method, to adapt standard adversarial attacks like AutoAttack.
  • Task-Awareness: PD can be tailored to specific tasks. PD-S (Segmentation-aware) ignores background perturbations, while PD-W (Weighted) utilizes semantic hierarchies (e.g., WordNet) to differentiate between minor semantic errors (e.g., Husky vs. Malamute) and major ones (e.g., Husky vs. Fire Truck).

Key Insights and Results

The researchers evaluated PD on ImageNet-1k and ImageNet-C/C-bar datasets, yielding several critical insights:

  • Effective Disentanglement: On ImageNet-C, PD successfully assigned low threat scores to common corruptions like brightness or blur, whereas $\ell_\infty$ metrics often rated these safe changes as more threatening than actual adversarial attacks.
  • Performance vs. Perceptual Metrics: PD performs comparably to state-of-the-art neural perceptual metrics like DreamSim in distinguishing safe from unsafe changes. Crucially, PD achieves this without requiring massive pre-trained foundation models.
  • Re-evaluating Robustness: By re-assessing models on the RobustBench leaderboard, the authors found that many top-performing models possess higher "true" robust accuracy than previously reported. This is because PD does not penalize models for failing on safe, label-preserving corruptions that happen to have large $\ell_p$ norms.

Conclusion

Projected Displacement offers a more nuanced and task-aligned approach to measuring robustness. By moving away from global, isotropic norms toward a local, anisotropic understanding of threat, PD provides a practical tool for developing and evaluating models that are truly reliable in real-world scenarios. Future work may involve refining the heuristic scaling and exploring more sophisticated PD-aware adversarial attacks.

Summary updated

BibTeX
@misc{muthukumar2025disentangling,
  author = {Ramchandran Muthukumar and Ambar Pal and Jeremias Sulam and René Vidal},
  title = {{Disentangling Safe and Unsafe Corruptions via Anisotropy and Locality}},
  year = {2025},
  eprint = {2501.18098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.18098},
}
Figure