Amplifying neural network interpretability via phase extrapolation: visualizing classification boundaries with steerable pyramidsThrough a Steerable Lens: Magnifying Neural Network Interpretability via Phase-Based Extrapolation
Visualizing inter-class trajectories with CSP phase extrapolation; the authors state it is more coherent than pixel gradients.
- Saliency maps show where the model looks but do not describe how feature changes alter the decision. The authors want to visualize the classifier's implicit trajectory from a source class to a target class and make the gradient direction perceptually readable.
- The image is decomposed into amplitude and phase via an invertible transform (mainly a complex steerable pyramid). Wirtinger calculus is used to compute the gradient of the target-class loss with respect to the complex coefficients; amplitude is fixed, and only a single-step phase increment is linearly extrapolated before inverting the transform.
- Generate deformation sequences on Arcade, MNIST, color variants, and FER2013 sad/happy. The authors claim CSP phase extrapolation gives spatially coherent structural changes; pixel gradients tend to be noisy, and Fourier extrapolation leans more toward global translation or blur. The paper does not provide quantitative scores.
- The authors state that the method depends on the chosen transform, and that the fixed gradient direction remaining meaningful over a finite extrapolation distance is only an assumption. Future work includes adaptive step sizes, other transforms, trajectory quality metrics, and generative models or regression. The experiments are qualitative visualizations; the paper does not report accuracy, amplifier values, or extrapolation step counts.
- Evaluated models
- Simple CNN classifier (two convolutional layers followed by two fully connected layers, Arcade)LeNet-like architecture (MNIST / Color MNIST)CNN classifier (FER2013)
- Benchmarks
- ArcadeMNISTColor MNISTFER2013
A new framework based on phase extrapolation visualizes the implicit path of a neural network classifier from source to target categories in the complex steerable pyramid domain. Instead of iteratively integrating gradients, the method amplifies single-step class-conditional gradients and performs linear extrapolation, generating semantically consistent, spatially coherent deformations that highlight the directions to which the classifier is most sensitive, revealing the geometry of its decision boundary. Experiments on synthetic and real datasets show that this phase-centric extrapolation produces perceptually aligned, semantically meaningful transformations.
Paper analysis
What problem does this paper attempt to solve?
Existing attribution methods do not clearly show how classes are distinguished; the authors use single-step gradient extrapolation on transform-domain phase to visualize inter-class trajectories.
How to visualize the implicit change trajectory of a classifier between classes, rather than just highlighting input regions that influence predictions.
- Scenario: The authors state deep networks succeed in computer vision and other fields, but their hierarchical structure and large parameter space make them hard to interpret, often called black boxes; opacity affects trust, debugging, fairness, and robustness.
- Existing shortcomings: The authors state saliency maps can highlight influential regions but often lack spatial coherence and do not describe how feature changes alter classification; adversarial perturbations are usually imperceptible and carry little semantic information; counterfactuals seek minimal meaningful changes that flip predictions, but generating realistic, interpretable counterfactuals remains difficult.
- Core assumption: The authors liken the gradient of the input image to infinitesimal motion and draw on phase-based motion magnification. Gradients alone are often invisible, but the authors assume they can be amplified in a structured transform domain along semantically aligned axes to become perceptually readable.
- This paper's approach: The authors do not iteratively integrate gradients to trace a full path; instead, they treat the single-step gradient as a local tangent vector and extrapolate linearly. The image is decomposed via an invertible transform into amplitude and phase, mainly extrapolating phase, then inverted to show the direction the classifier is most sensitive to.
What related research exists?
Related work involves input attribution, adversarial and counterfactual examples, multi-scale signal processing, and gradient extrapolation; the authors perform phase extrapolation in a fixed transform domain.
The paper's Related Work is discussed in four groups, with no quantitative comparison table against these methods.
Saliency and attribution
- Pixel importance: Vanilla Gradients (Simonyan et al., 2013), Guided Backpropagation (Springenberg et al., 2015), SmoothGrad (Smilkov et al., 2017), Integrated Gradients (Sundararajan et al., 2017), Grad-CAM (Selvaraju et al., 2017) score input features (usually pixels) by their contribution to the output.
- The paper's criticism: the authors state these methods give static heatmaps, often noisy, mainly indicating where the model looks rather than how feature changes affect the decision or the structure of the decision boundary. This paper instead generates dynamic sequences of inter-class transformations.
Adversarial examples and counterfactuals
- Adversarial examples: Szegedy et al. (2014), Goodfellow et al. (2014) seek small perturbations that cause misclassification, used to study fragility and local properties of the decision boundary. The authors state such perturbations usually lack semantic interpretability.
- Counterfactuals: Wachter et al. (2018) seek minimal, meaningful input changes that alter the outcome; Goyal et al. (2019) do visual counterfactuals. The authors state such visual counterfactuals often require generative models or complex optimization to ensure realism and interpretability. This paper also generates modifications toward another class, but along gradient-derived paths in a structured feature space, without explicit generative modeling during the deformation.
Multiscale representations and signal processing
- Phase and steerable pyramids: Fourier represents signals with global sinusoids, with phase encoding position (Oppenheim and Schafer, 1999). Steerable pyramids (Freeman and Adelson, 1991; Simoncelli and Freeman, 1995) do local, multiscale, multi-orientation decompositions, similar to wavelets (Mallat, 1999), but with better orientation selectivity; complex coefficients separate local amplitude and phase (Portilla and Simoncelli, 2000).
- Motion magnification: the authors state that manipulating phase in these domains to reveal or amplify subtle structural changes is central to Eulerian Video Magnification (Wu et al., 2012; Wadhwa et al., 2013, 2017). This paper instead drives phase manipulation with classifier gradients, for interpretability rather than amplifying existing temporal changes.
Gradient extrapolation and feature spaces
- Existing work: some work perturbs inputs along gradients (Simonyan et al., 2013), or optimizes inputs to maximize class scores; other work interprets or manipulates intermediate-layer representations (Olah et al., 2017; Bau et al., 2017). The paper places Ghorbani et al. (2019) among recent work that extrapolates gradients in learned feature spaces to understand sensitivity, without elaborating on that paper separately.
- The paper's criticism: the authors state pixel-space gradients can be noisy; if learned features are entangled or lack clear semantics, their gradients are hard to interpret. This paper extrapolates in a fixed FT or CSP space.
Baselines and data: experimental comparisons are naive pixel-space gradient ascent and discrete Fourier phase extrapolation in Appendix C. Data are self-built Arcade, MNIST, two color MNIST variants, and sad and happy from FER2013. The paper does not report quantitative scores for these comparisons.
The authors state at the end of the section that this paper combines gradient sensitivity analysis with multiscale signal processing, mainly extrapolating class-conditional gradients in the phase domain of Fourier or steerable pyramids, yielding dynamic visualizations of inter-class transitions, and distinguishing itself from static saliency or conventional adversarial/counterfactual methods.
How does the paper address this problem?
In an invertible transform domain, use Wirtinger gradients to decompose amplitude and phase, fix amplitude, extrapolate linearly only along phase, and invert the transform.
The authors do not iteratively integrate gradients in pixel space; instead, in an invertible transform domain, they treat the single-step class-conditional gradient as a local tangent, extrapolate mainly along the phase, and then invert the transform to obtain an image sequence.
General Procedure
- Transform: Image s(x) is transformed via invertible F to S(ω)=F(s(x)). ω can be frequency, or position, scale, direction.
- Loss: The loss is the network's output on the inverse-transformed image with respect to target class t*. The authors seek the direction in transform space that most increases the target class likelihood and compute the gradient with respect to transform coefficients.
- Reconstruction: From initial coefficients, a sequence of coefficients is obtained along that direction, then inverse-transformed. The main text first writes Sk(ω)=S0(ω)+kαg; later it changes to amplitude–phase decomposition updates. Experiments use phase-only extrapolation. Figure 1 is a diagram of this pipeline.
Two Transforms
- DFT: Coefficients are magnitude and phase of global frequencies. The authors claim DFT phase shifts mainly correspond to global translation of content, showing the network's sensitivity to global spatial arrangement; lacking locality, interpretability is limited.
- CSP: Basis functions are selective for position, scale, and direction. Amplitude represents local energy or contrast; phase represents local position. The authors claim CSP phase shifts correspond to local displacement or deformation of oriented structures, aligning better with CNN features, so visualization generally favors CSP.
- Complex Gradient: S is complex coefficients, loss is real-valued. The authors claim the steepest ascent direction is the Wirtinger derivative with respect to the complex conjugate. Appendix A gives the relationship between separate real/imaginary updates and this derivative. α is step size or amplifier; the paper does not give values.
Amplitude–Phase Update
- Decomposition: Each coefficient is written as S(ω)=A(ω)ejΦ(ω), i.e., local intensity times positional phase.
- One-step effect: Appendix B uses the chain rule to write the conjugate gradient as a combination of amplitude gradient and phase gradient. One step of ascent scales amplitude and shifts phase simultaneously; the single-step phase increment is the argument of this complex increment (Eq. 9, evaluated at k=0).
- Other amplitude options: Appendix B also lists compounding by modulus, or linear extrapolation of amplitude. This paper uses constant amplitude.
Phase-Focused Extrapolation
- Design: The authors claim phase carries fine-grained position; shifting phase changes local position of structures without changing frequency or direction content; and in this setting, phase changes drive the most coherent structural transformations, so they extrapolate linearly only in the phase domain.
- Update: The rule used is Φk(ω)=Φ0(ω)+k·ΔΦ(ω), with amplitude held at initial values. The extrapolated coefficients are then inverse-transformed. k is the step index; the paper does not give values for k.
- Difference from full path: The authors explicitly do not iteratively integrate gradients. They amplify a single local tangent vector, i.e., the immediate direction of change implied by the gradient.
What Constitutes a Usable Trajectory
The paper has no numerical success threshold and no evaluation model. The authors discuss whether trajectories are smooth and correspond to class semantic differences, e.g., whether the disk moves toward the target direction, or whether digits show closed structures of the target class. MNIST source images are samples the model correctly classifies.
What experiments did the paper conduct?
Qualitative deformations are performed on Arcade, MNIST, colored MNIST, and FER2013; the paper does not report quantitative metrics.
Experimental setup
- Data: Arcade is 64×64 grayscale, black background with a white disk, with a small random displacement relative to the center in one of Up, Down, Left, Right; the task is to judge the direction. MNIST is 28×28 handwritten digits. Color experiments have two augmentations: each digit takes a random color from a fixed palette, still 10 classes; or the (digit, color) pair is treated as a class, with 10×C classes, where the value of C is not specified in the paper. Pure channel colors are red, green, blue; composite colors are magenta, yellow, cyan. FER2013 only uses sad and happy.
- Classifiers interpreted: on Arcade, a CNN with two convolutional layers and two fully connected layers is trained. On MNIST, a LeNet-like network with the same number of layers is trained; the authors state it reaches high classification accuracy, but the paper does not give the accuracy. FER2013 uses a CNN with unspecified architecture. The color experiment network architecture is not specified in the paper.
- Transform: unless otherwise stated, CSP is 4 orientations and 3 scales. Gradients are computed by PyTorch autograd, with real and imaginary parts backpropagated separately. Comparisons are pixel-space gradient ascent and the same phase extrapolation applied to DFT coefficients in Appendix C.
- Scale and judgment: the paper does not report the number of source images, extrapolation steps, α, repetitions, or a reviewer model. No numerical metrics are defined; the authors discuss whether visuals are smooth, whether they correspond to class differences, and whether target-class confidence rises, but give no confidence values.
Main results
The paper has no accuracy or confidence numbers. The table below only records the authors' descriptions of the illustrated trajectories.
Swipe horizontally to read the table
Data and task Transform Phenomenon reported by the authors Source Arcade four directions CSP Disk moves in the target direction; shape can shear, stretch, or blur Figure 2, §4.1 MNIST digits CSP Changes involve stroke curvature, closing, and crossing Figure 3, §4.2 Color not in label Phase extrapolation Authors state color channels remain largely unchanged §4.3 Solid colors as classes RGB Authors state deformation stays in a single active channel Figure 5 Simultaneous shape and hue change YIQ Authors state target-class confidence rises, color patches may drift outside the contour or desaturate the shape Figure 4 FER2013 sad/happy CSP Mouth shape, eye opening/closing, and smile lines change Figure 7 - Arcade: Figure 2 has four rows: Down→Left, Down→Right, Right→Left, Left→Down. The caption states the object moves smoothly in the intended direction. The authors state this corresponds to the position change needed to switch classes; and that the disk not remaining circular is a feature rather than an artifact, because the gradient points to where the centroid should move, not requiring the white region to remain circular; shearing, stretching, or blurring is fine as long as the centroid is the same.
- MNIST: Figure 3 has six rows: 3→8, 4→9, 5→6, 6→8, 8→3, 9→4. The authors state the transformations are visually smooth and temporally coherent, and often match human intuition about digit relationships, e.g., 3 to 8 gradually closes the upper and lower openings, 5 to 6 forms a closed loop at the bottom. The authors state that compared to pixel gradients or Fourier extrapolation, CSP is more interpretable and structurally more relevant.
- Pixel and Fourier comparisons: the authors state pixel-space gradient ascent often adds noise or overall brightening/darkening. Appendix C states DFT phase extrapolation can still move the image toward the target class, but intermediate steps are more global, with possible translations or large-scale distortions, sometimes not sharp or with artifacts, lacking the local structural clarity of CSP. Figure 8 is a Fourier example on Arcade, Figure 9 is a Fourier example on MNIST.
Color MNIST
- Ten classes, color not in label: the authors state the classifier quickly learns to ignore color and only look at digit shape; when deforming toward the target digit, color channels remain largely unchanged.
- (Digit, color) as classes: with pure channel colors, the authors state the gradient is only in the active channel, non-active channels are near zero, and the deformation stays in that single-color plane. For composite colors, phase is extrapolated independently on R, G, B; the authors state per-channel amplifiers are needed, with values often requiring tuning per dataset. The main text writes that Figure 5 gives an example; Figure 5's caption is pure-color RGB (5→3, 9→4, 3→5, 5→3, 4→7), Figure 6's caption is composite-color YIQ (5→6, 5→9, 5→8, 8→3), and Figure 4's caption is YIQ joint shape-color deformation.
- RGB and YIQ: the authors state that phase extrapolation directly on RGB often introduces visual noise, so they switch to YIQ (Y is luma, I and Q are chroma). Figure 4 rows are Cyan 3→Yellow 8, Yellow 5→Magenta 9. The authors state that when changing shape and hue simultaneously, the network usually adds a diffuse patch of the target color; along the trajectory target-class confidence rises, but the color shift may be misaligned with the contour, or the shape may be desaturated to reduce loss. Figure 6's caption states that updating Y drives shape and updating I and Q drives color.
FER2013
- Setup: a CNN distinguishing only sad and happy, with its gradient extrapolated in the CSP domain.
- Illustration: Figure 7 has three rows: sad→happy, sad→happy, happy→sad. The caption states mouth shape, eye opening/closing, and smile lines change.
- Authors' interpretation: the authors state the trajectory aligns with human perception of the target emotion and highlights the model's sensitivity to discriminative facial cues. The paper does not report the CNN's accuracy or sample count.
Other ablations and analyses
- Amplitude: the main text fixes it at the initial amplitude; Appendix B lists scaling by the k-th power of the modulus and linear amplitude extrapolation. The paper reports no comparison numbers among the three.
- Transform: the same phase extrapolation procedure is used for CSP and DFT. The authors state DFT is more global and CSP is more local. No numerical table.
- Pixel gradient ascent: only in §4.2 as a qualitative comparison, with no scores and no corresponding figure.
- Default CSP is 4 orientations and 3 scales. α and extrapolation steps are not reported; the paper has no parameter sweep numbers.
- Exceptions the authors write: RGB phase extrapolation often has visual noise; YIQ color patches may drift outside the contour or desaturate the shape; per-channel amplifiers are hard to choose. The Arcade disk does not remain circular, which the authors explain as the model caring about the centroid, not the exact contour.
What are some points that can be further explored?
The authors note the method depends on the chosen transform and assumes that a fixed gradient direction remains a meaningful path over a finite extrapolation distance.
Limitations and future directions noted by the authors
- Chosen transform: the authors state that limitations include dependence on the chosen transform (§5).
- Fixed direction: the authors state another limitation is assuming that a fixed gradient direction still provides a meaningful path over a finite extrapolation distance (§5).
- Adaptive step size: future work could explore adaptive gradient steps (§5).
- Other representations: other transforms could be studied, such as other wavelets, or learned representations that remain interpretable (§5).
- Quantitative metrics: metrics could be developed to evaluate the quality and faithfulness of generated trajectories (§5).
- Task extension: the framework could be extended to generative models or regression tasks (§5).
Experimental coverage
- The interpreted models are a two-convolutional-layer plus two-fully-connected-layer CNN on Arcade, a LeNet-like network with the same number of layers on MNIST, and a CNN of unspecified architecture on FER2013 (§4.1, §4.2, §4.4).
- Data are Arcade (64×64, four directions), MNIST (28×28), two color MNIST augmentations, and sad and happy from FER2013 (§4).
- The default is a 4-orientation, 3-scale CSP; Appendix C reports DFT with the same phase extrapolation procedure; §4.2 describes pixel-space gradient ascent.
- Results are the deformation sequences in Figures 2–7 and Appendix Figures 8–9. The paper does not report classification accuracy, α, the number of extrapolation steps k, the number of source images, the number of repetitions, nor scoring of trajectories with a reviewer model.
- The method used keeps amplitude at its initial value; Appendix B writes two other amplitude updates but gives no comparison numbers. In the color setting, the value of C in 10×C, the color network architecture, and the per-channel amplifier values are not specified in the paper (§4.3, Appendix B).
Summarize the main content of the paper
Using phase extrapolation with a complex steerable pyramid to visualize classifier inter-class sensitive directions; experiments are primarily qualitative deformations.
The authors propose a classifier visualization: treat the input gradient as an infinitesimal motion, amplified mainly along phase in the transform domain, to show the transition from a source class to a target class.
- Problem: saliency maps show where the model looks, adversarial perturbations are usually imperceptible, and counterfactuals struggle to be both realistic and interpretable. The authors want to see how the model moves from one class to another.
- Method: the image is decomposed into amplitude and phase via DFT or a complex steerable pyramid. Wirtinger calculus is used to compute the gradient of the target-class loss with respect to the complex coefficients; a single-step phase increment is linearly extrapolated, amplitude is kept fixed, then the transform is inverted. There is no iterative integration of gradients. The default pyramid in experiments is 4 orientations and 3 scales.
- Arcade: on 64×64 disk direction classification, in Figure 2 the disk moves in the target direction. The authors state the shape can shear or blur because the network cares about the centroid, not requiring the contour to remain circular.
- MNIST: deformations in Figure 3 involve local structures such as closing and looping. The authors state this corresponds more to structural differences than pixel gradient ascent; pixel gradients are described as noisy or overall brightness changes. DFT phase extrapolation still moves toward the target class, but Figures 8–9 are more global translations, distortions, or blur. The paper gives no scores.
- Color and expression: when color is not in the label, the authors state color channels remain largely unchanged. When color enters the label, solid-color deformations stay in the active channel; on YIQ the authors state target-class confidence rises, but color patches may drift outside the contour or desaturate the shape (Figure 4). FER2013 only uses sad and happy; in Figure 7 mouth corners and smile lines change.
- Authors' conclusion: the authors believe that after projecting the decision onto the phase dimensions of CSP, sensitive directions can correspond to semantic deformations. Limitations are dependence on the chosen transform, and the fixed gradient direction is only assumed to be meaningful over a finite extrapolation distance. Future work includes adaptive step sizes, other transforms, trajectory quality and faithfulness metrics, and generative models or regression tasks.