Introduction
Deep Neural Networks (DNNs) are often criticized as "black boxes." Existing interpretability methods like saliency maps identify where a model looks but fail to explain how feature changes influence classification. Adversarial perturbations reveal model vulnerabilities but typically lack human-interpretable semantic meaning. This research introduces a novel framework that visualizes the "implicit path" a network perceives between classes. By treating gradients as infinitesimal motion and amplifying them within a specialized mathematical space—the Complex Steerable Pyramid (CSP)—the authors generate smooth, semantically meaningful transitions that reveal a model's internal logic.
Methodology: Phase-Based Motion Magnification
The core innovation adapts Phase-Based Motion Magnification from classical signal processing to neural network gradients. The pipeline, illustrated in Figure 1, decomposes an image into components that separate feature strength from structural position.
The process follows four key steps:
- Transformation: An input image $s(x)$ is converted into a Complex Steerable Pyramid (CSP). Unlike pixel-space representations, CSP decomposes images into localized components based on scale and orientation, effectively separating amplitude (feature intensity) from phase (feature geometry and position).
- Gradient Calculation: The gradient of the target class loss is computed with respect to these complex coefficients. The authors utilize Wirtinger calculus to perform principled differentiation in the complex domain.
- Phase-Focused Extrapolation: Rather than applying gradients directly to pixels—which often results in high-frequency noise—the method isolates the gradient's effect on the phase component. By extrapolating along this phase direction while maintaining constant amplitude, the framework induces structural shifts.
- Reconstruction: Modified coefficients are transformed back into the pixel domain, producing a sequence of images that visualize the transition toward the target class.
Experimental Results
The framework was evaluated across several datasets, including synthetic "Arcade" motion, MNIST, Color MNIST, and FER2013 facial expressions.
MNIST Digit Transitions
The most intuitive results appear in the MNIST dataset. As shown in Figure 2, the method produces smooth "morphs" that align with human geometric intuition. For instance, when transitioning from a '3' to an '8', the model gradually closes the top and bottom loops. Similarly, a '5' morphing into a '6' develops a distinct closed loop at the base.
Key Insights
- Phase as Structure: The "phase" of the image transform encodes the structural geometry critical to the network. Manipulating phase produces "structural edits" (e.g., curving a mouth into a smile) rather than simple brightness changes.
- Gradients as Motion: Treating gradients as a "nudge" in high-dimensional space allows for the visualization of the model's internal "logic" regarding class differences.
- Localized Interpretability: By using the localized Steerable Pyramid instead of global transforms like Fourier, the resulting morphs are cleaner and affect specific strokes rather than the entire image.
Discussion and Future Work
While the framework provides high-quality qualitative visualizations, it currently assumes a linear trajectory in the phase domain. For distant classes, non-linear adaptive stepping may be required. Furthermore, while CSP is effective for vision, other domains like audio or medical imaging might require different steerable bases. Future research will focus on developing quantitative metrics to measure the "faithfulness" of these trajectories to the model's true decision manifold.
Summary updated