Abstract
ReLU networks, while prevalent for visual data, have sharp transitions, sometimes relying on individual pixels for predictions, making vanilla gradient-based explanations noisy and difficult to interpret. Existing methods, such as GradCAM, smooth these explanations by producing surrogate models at the cost of faithfulness. We introduce a unifying spectral framework to systematically analyze and quantify smoothness, faithfulness, and their trade-off in explanations. Using this framework, we quantify and regularize the contribution of ReLU networks to high-frequency information, providing a principled approach to identifying this trade-off. Our analysis characterizes how surrogate-based smoothing distorts explanations, leading to an "explanation gap" that we formally define and measure for different post-hoc methods. Finally, we validate our theoretical findings across different design choices, datasets, and ablations.
The Challenge of Noisy Explanations
In the field of Explainable AI (XAI), gradient-based methods like VanillaGrad are often considered the most direct way to visualize a model's decision-making process. However, these saliency maps frequently suffer from high-frequency "noise"—grainy patterns that are difficult for humans to interpret.
To address this, researchers have traditionally turned to post-hoc smoothing techniques such as SmoothGrad or Grad-CAM. While these methods produce visually cleaner, more "human-understandable" images, they do so by creating a surrogate version of the model. This raises a critical question: how much of the model's original logic is lost in the pursuit of visual clarity? This research introduces a spectral framework to formally quantify this trade-off between explanation complexity (visual smoothness) and faithfulness (accuracy relative to the model).
A Spectral Framework for Interpretability
By shifting the analysis from the spatial domain (pixels) to the spectral domain (frequencies) using Fourier analysis, the authors introduce two key metrics:
- Expected Frequency (EF): This metric quantifies explanation complexity by measuring the "heaviness" of the tail in the spatial power spectrum of the gradients. A high EF indicates a noisy, complex explanation.
- The Explanation Gap ($\Delta$EF): This measures unfaithfulness as the difference in EF between the original model's gradient and the smoothed surrogate's gradient.
The ReLU "Breakpoint" and Architectural Smoothing
A central finding of this research is that the sharp "breakpoints" inherent in ReLU activation functions are the primary drivers of high-frequency gradient noise. This noise isn't merely random error; it reflects the model's reliance on sharp, pixel-level transitions for classification.
Instead of applying filters after a model is trained, the authors propose Smooth Parameterization (SP). By training networks with a smoothed version of ReLU (SoftPlus), controlled by a precision parameter $\beta$, the inherent complexity of the network can be managed at the architectural level. This approach allows for smooth, interpretable explanations without any "explanation gap," as the gradients remain 100% faithful to the underlying (now smoother) model.
Quantifying the Trade-off
The research demonstrates a clear "frontier" in the complexity-faithfulness space. As shown in the figure above, reducing complexity through post-hoc methods like SmoothGrad or Grad-CAM inevitably increases the explanation gap.
Key results include:
- Post-hoc smoothing penalties: Popular methods like Grad-CAM produce the smoothest images but exhibit the largest explanation gaps, potentially misrepresenting the model's actual logic.
- Architectural advantages: Using a smooth architecture (SP-ReLU) can achieve lower complexity than SmoothGrad while maintaining perfect faithfulness.
- Transformer Stability: Vision Transformers (ViTs) were found to produce lower-frequency explanations than traditional CNNs, likely due to their architecture and the use of the inherently smoother GELU activation function.
Conclusion
This work provides a principled mathematical foundation for understanding why certain explanations look the way they do. By identifying the spectral link between architecture and gradient noise, it shifts the focus from "cleaning up" noisy explanations to designing models that are inherently more interpretable. The spectral framework offers a robust tool for future researchers to evaluate new XAI methods not just on their visual appeal, but on their fundamental faithfulness to the models they aim to explain.
Summary updated