Through a Steerable Lens: Magnifying Neural Network Interpretability via Phase-Based Extrapolation

Farzaneh Mahdisoltani, Saeed Mahdisoltani, Roger B. Grosse, David J. FleetarXiv 2025 · DOI · arXiv

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 proposed pipeline: Input images are transformed into the Complex Steerable Pyramid (CSP) domain, where gradients are computed and used to extrapolate the phase component before reconstruction.

The process follows four key steps:

  1. 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).
  2. 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.
  3. 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.
  4. 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.

MNIST transitions generated by the framework, showing smooth structural morphing between digit classes, such as '3' to '8' and '5' to '6'.

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

Abstract

Understanding the internal representations and decision mechanisms of deep neural networks remains a critical open challenge. While existing interpretability methods often identify influential input regions, they may not elucidate how a model distinguishes between classes or what specific changes would transition an input from one category to another. To address these limitations, we propose a novel framework that visualizes the implicit path between classes by treating the network gradient as a form of infinitesimal motion. Drawing inspiration from phase-based motion magnification, we first decompose images using invertible transforms-specifically the Complex Steerable Pyramid-then compute class-conditional gradients in the transformed space. Rather than iteratively integrating the gradient to trace a full path, we amplify the one-step gradient to the input and perform a linear extrapolation to expose how the model moves from source to target class. By operating in the steerable pyramid domain, these amplified gradients produce semantically meaningful, spatially coherent morphs that highlight the classifier's most sensitive directions, giving insight into the geometry of its decision boundaries. Experiments on both synthetic and real-world datasets demonstrate that our phase-focused extrapolation yields perceptually aligned, semantically meaningful transformations, offering a novel, interpretable lens into neural classifiers' internal representations.
BibTeX
@misc{mahdisoltani2025through,
  author = {Farzaneh Mahdisoltani and Saeed Mahdisoltani and Roger B. Grosse and David J. Fleet},
  title = {{Through a Steerable Lens: Magnifying Neural Network Interpretability via Phase-Based Extrapolation}},
  year = {2025},
  eprint = {2506.02300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02300},
}
Figure