Convolution, Shared Weights, and Translation Equivariance

Prove a shift identity by changing an index and identify what padding and stride can change about the result.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. The same coefficients are used at every location
  2. Boundary handling defines the domain of the identity

The same coefficients are used at every location

For a one-dimensional discrete convolution \(y_i=\sum_j k_j x_{i-j}\), shift the input by \(s\) so its new value at \(i\) is \(x_{i-s}\). The new output at \(i\) is then the original output at \(i-s\). Sharing the same kernel coefficients makes this calculation possible. The result is equivariant, as the output shifts along with the input. It does not require the output at a fixed location to stay equal.

Boundary handling defines the domain of the identity

On an infinite or suitably periodic grid, shifts preserve the domain. Finite cropping, padding and strided sampling can weaken the identity. A stride of two samples one parity of positions, so a unit shift can change which positions contribute. Equivariant neural networks extend the reasoning to other transformations. Image sampling explains why downsampling also changes frequency content.[1]

References

  1. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩