The Price of Raw Pixels

Images as DataHard+30 XP+30

The Price of Raw Pixels

The filter values are weights, and training finds them by gradient descent. This is where the scale of the pixels starts to matter.

Take one 3×33 \times 33×3 filter scoring one patch, with no bias:

score=∑i=19wi xi\text{score} = \sum_{i=1}^{9} w_i\, x_iscore=∑i=19​wi​xi​

where x1,…,x9x_1, \dots, x_9x1​,…,x9​ are the nine pixel values under the filter. The filter is trained on this one patch alone, toward a fixed target ttt, with the loss

L=(score−t)2L = (\text{score} - t)^2L=(score−t)2

It uses plain gradient descent, with all nine weights updated together at every step:

wi←wi−η ∂L∂wiw_i \leftarrow w_i - \eta\, \frac{\partial L}{\partial w_i}wi​←wi​−η∂wi​∂L​

The patch, as it comes from the camera:

col 0col 1col 2
row 0204204204
row 1153153153
row 2515151

The filter is trained twice, both times from the same starting weights (which leave the score away from ttt) and toward the same target:

  • Run A is fed the raw values, 000 to 255255255.
  • Run B is fed the preprocessed values: each pixel divided by 255255255, then the dataset mean of 0.40.40.4 subtracted (that mean is measured after dividing by 255255255).

Each run has a critical learning rate. Below it, the gap between score and target shrinks at every step. Above it, the gap grows at every step and training blows up.

How many times larger is Run B's critical learning rate than Run A's?

Give the exact value. It is a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.