TL;DR
This paper demonstrates that 1-Lipschitz neural networks, when trained with an optimal transport-based loss, produce saliency maps that are remarkably clean, robust, and naturally aligned with human intuition. By proving that these network gradients encode the "optimal transport plan" between classes, the authors show that adversarial attacks on these models effectively function as meaningful counterfactual explanations.
What Problem Does This Paper Address?
Saliency maps—heatmaps that highlight which pixels most influence a model's decision—are a cornerstone of Explainable AI (XAI). However, in standard deep neural networks, these maps are notoriously noisy and often highlight seemingly random pixels rather than meaningful features. This happens because standard networks can have very high Lipschitz constants, meaning tiny, imperceptible changes in input (noise) can lead to massive changes in output.
Furthermore, the XAI community has struggled to find a solid theoretical link between a model's robustness and the quality of its explanations. While techniques like SmoothGrad or Integrated Gradients attempt to "denoise" these maps, they are computationally expensive and don't address the underlying architectural instability.
Methods
The authors propose using Optimal Transport Neural Networks (OTNNs). These are 1-Lipschitz constrained networks trained using the hKR loss (a hinge-regularized version of the Kantorovich-Rubinstein dual loss).
Key technical components include:
- 1-Lipschitz Constraint: The network is designed so that the output never changes faster than the input. This is achieved using orthogonalization techniques (like the Björck algorithm) for linear layers and GroupSort2 activation functions.
- Optimal Transport Perspective: The authors prove that for an OTNN, the input gradient $\nabla_x f(x)$ points in the direction of the optimal transport plan. In simple terms, the gradient points along the most efficient path to transform an image from one class (e.g., "Cat") into another (e.g., "Dog").
- Counterfactual Generation: Because the gradient follows this transport plan, simply moving an input $x$ along its gradient ($x' = x - t\nabla_x f(x)$) creates a "counterfactual" image that actually looks like the target class, rather than just being a noisy adversarial example.
Datasets
The researchers evaluated their approach across a wide range of benchmarks:
- Toy Datasets: Concentric Koch snowflakes to visualize decision boundaries.
- Image Datasets: MNIST, FashionMNIST, CelebA (for multi-label attributes like "smiling" or "mustache"), and Cat vs Dog.
- Large-Scale: ImageNet-1k.
- Human Alignment: The ClickMe dataset, which contains over 200,000 human-annotated feature importance maps, used to measure how well the model's "attention" matches human vision.
Key Insights and Ideas
- Adversarial Attacks as Explanations: In standard networks, an adversarial attack is a "bug" that exploits local noise. In OTNNs, the authors prove that the path to the nearest adversarial example is identical to the path of the optimal transport plan. This turns a security vulnerability into a powerful tool for interpretability.
- Natural Denoising: Standard saliency maps are noisy because the model is sensitive to high-frequency components. The 1-Lipschitz constraint acts as a natural regularizer, forcing the model to focus on structural, low-frequency features that humans recognize.
- Theoretical Grounding: The paper provides a rare bridge between the geometry of decision boundaries and the theory of optimal transport, showing that "good" explanations are a mathematical byproduct of "robust" training.
Key Results
- Superior Metrics: OTNN saliency maps consistently outperformed standard networks on $\mu$Fidelity (correlation between pixel importance and score drop) and Stability metrics across all datasets.
- Human Alignment: On ImageNet, OTNNs showed an unprecedented level of alignment with human feature importance. As shown in Figure 4, the "OTNN Large" model surpassed all other tested architectures, including those specifically trained to match human vision.
- Interpretable Counterfactuals: The authors successfully transformed MNIST digits (e.g., turning a '0' into a '5') and CelebA faces (e.g., adding a mustache) by simply following the gradient. Unlike standard adversarial attacks, these transformations resulted in visible, semantically meaningful changes.
Limitations and Future Work
- Training Overhead: The authors note that OTNNs currently take 3 to 6 times longer to train than unconstrained networks due to the necessary orthogonalization steps.
- Scaling to 1000 Classes: While counterfactuals work beautifully for binary or low-class problems, generating clear counterfactuals for ImageNet (1000 classes) remains challenging because the transport plan between so many distributions is highly complex.
- Architecture Constraints: The requirement for 1-Lipschitz layers limits the choice of architectures (e.g., standard ReLU and BatchNorm cannot be used directly), which may impact peak accuracy on some tasks compared to the most advanced unconstrained models.
Summary updated