[Paper Review] NormGrad: Finding the Pixels that Matter for Training
This paper introduces NormGrad, a novel method for identifying the pixels most influential in training deep neural networks by computing the Frobenius norm of local gradient-weight products during backpropagation. It enables high-resolution, class-agnostic saliency maps at any network layer via a 1×1 identity convolution trick and enhances specificity through a meta-learning approach that isolates training-relevant features or adversarial perturbations.
The different families of saliency methods, either based on contrastive signals, closed-form formulas mixing gradients with activations or on perturbation masks, all focus on which parts of an image are responsible for the model's inference. In this paper, we are rather interested by the locations of an image that contribute to the model's training. First, we propose a principled attribution method that we extract from the summation formula used to compute the gradient of the weights for a 1x1 convolutional layer. The resulting formula is fast to compute and can used throughout the network, allowing us to efficiently produce fined-grained importance maps. We will show how to extend it in order to compute saliency maps at any targeted point within the network. Secondly, to make the attribution really specific to the training of the model, we introduce a meta-learning approach for saliency methods by considering an inner optimisation step within the loss. This way, we do not aim at identifying the parts of an image that contribute to the model's output but rather the locations that are responsible for the good training of the model on this image. Conversely, we also show that a similar meta-learning approach can be used to extract the adversarial locations which can lead to the degradation of the model.
Motivation & Objective
- To identify which image regions contribute most to the gradient of model weights during training, rather than just model inference.
- To develop a fast, closed-form method for computing fine-grained attribution maps across all layers of a deep network.
- To extend the method to be specific to the training process by incorporating an inner optimization step within the loss function.
- To distinguish between pixels that aid in proper training and those that cause model degradation, enabling adversarial location detection.
Proposed method
- NormGrad computes the Frobenius norm of the outer product between activation gradients and input features at each spatial location, forming a pixel-wise importance map: $\bm{m}_u = \|\bm{g}_u\| \cdot \|\bm{x}'_u\|$.
- For general convolutional layers, the method uses the im2row transformation to express the gradient as $\frac{dh}{dW} = \frac{dh}{dX''} \cdot \iota(\bm{x}')$, enabling efficient computation of local gradient contributions.
- A 1×1 identity convolution is inserted at any network layer to enable saliency computation at arbitrary depths, transforming the layer into a 1×1 convolution for gradient analysis.
- The method generalizes to any layer by treating the intermediate activation as the input to a virtual 1×1 convolution, allowing gradient-based attribution without architectural changes.
- At order 1, a meta-learning approach is applied: an inner optimization step within the loss approximates the Hessian-vector product, making the saliency map specific to training dynamics.
- The order 1 method uses finite differences and SGD to approximate the Hessian-vector product, with $\epsilon = 0.0005$ and $h = 0.5 / \|\nabla_{\theta'}\ell\|_2$ as hyperparameters.
Experimental results
Research questions
- RQ1Which image pixels are most influential in shaping the gradient updates during backpropagation in a deep network?
- RQ2Can a closed-form, efficient method produce high-resolution saliency maps at any layer, not just the final layers?
- RQ3How can saliency maps be made specific to the training process rather than just model inference?
- RQ4Can the same framework detect both training-critical and adversarial pixels through a unified meta-learning mechanism?
Key findings
- NormGrad produces high-resolution saliency maps at any network depth, including early layers, unlike Grad-CAM which only generates meaningful maps at deeper layers.
- The 1×1 identity convolution trick enables consistent saliency computation at any layer, with results matching the original method even without the trick.
- The order 0 NormGrad method is class-agnostic, highlighting both correct and adversarial classes equally, as it captures general gradient contributions.
- The order 1 meta-learning extension produces class-specific saliency maps: one version highlights pixels that improve training, while another identifies those causing degradation.
- NormGrad at order 0 requires only one forward-backward pass per image, making it efficient enough for real-time use during training.
- The order 1 method requires four forward-backward passes but still outperforms perturbation-based methods, which require hundreds of passes, in both speed and resolution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.