A one-dimensional lattice of sites with periodic boundary conditions carries spins…
PHYSICS · Multi-part · Fermi University Physics · Computational Physics · High-performance and data-driven computational physics · High-performance and data-driven computational physics
Scientific Computing for Physicists, Ch Neural networks on physical data: backpropagation, convolution and symmetry
Problem
A one-dimensional lattice of N=6 sites with periodic boundary conditions carries spins x0,…,x5=(1,−1,1,1,−1,−1) (indices taken modulo 6). A dense layer h(r)=∑r′=05Wr,r′xr′ is restricted by weight sharing to Wr,r′=K(r′−rmod6), with K(−1)=0.2, K(0)=0.5, K(1)=−0.1 and K(δ)=0 for every other offset (offsets read as the representative in {−2,−1,0,1,2,3}, i.e. the nearest of the two equivalent values modulo 6).
((a)) Show that the weight-shared sum reduces to h(r)=∑δ=−11K(δ)x(r+δ)mod6, and identify this as the circular cross-correlation of x with K.
((b)) Show that this equals the circular convolution (x∗K~)(r)=∑m=05xmK~((r−m)mod6) of x with the flipped kernel K~(δ)=K(−δ).
((c)) Compute h(2) directly from the sum in (a), then check it against the convolution formula in (b).