1

As far as I understand, gradients are supposed to tell us 1) the magnitude and 2) direction, to update a parameter such as to minimize the loss function.

Regarding saliency maps, which use gradients with respect to the input, do the gradients give us the same information?

Consider vanilla saliency maps [1] (i.e. gradients-only) and integrated-gradients [2] (using a baseline image), with grayscale images.

Do the (vanilla) gradients give us the amount and direction a pixel-value needs to change? OR does the magnitude tell us for the amount of in loss based on a minimal change in pixel-value?

In simpler terms: does magnitude signify:

  1. amount of change required in a pixel-value to have some change (in loss?) or

  2. amount of change in (loss?) based on a minimal/local change in pixel-value?

nbro
  • 39,006
  • 12
  • 98
  • 176
user452306
  • 21
  • 3
  • Saliency Map: https://arxiv.org/abs/1312.6034 (Specifically section 3) Integrated Gradients: https://arxiv.org/abs/1703.01365 – user452306 Dec 06 '21 at 13:12
  • 1
    I believe the magnitude will be _related_ to how sensitive that input variable is. That is: If you only look at the gradient of the output with respect to the input: then a change of a specific input feature, then the gradient is how much it will affect the output. So: a small change in input could be a large change in output. If you want more interpretation on what it means, it would vastly change based on implementation and is problem specific. – Andreas Storvik Strauman Dec 07 '21 at 13:30

0 Answers0