Md. Asif Uddin
    I.12.X01

    A code has no units

    numeric▲△△

    A width-one linear autoencoder has E=(0.8, 0.6)\mat E=(0.8,\,0.6) and D=(0.8, 0.6)T\mat D=(0.8,\,0.6)^{\mathsf T}. Encode and reconstruct the new input (2,−1)(2,-1), and find its squared error. Repeat with E′=(4, 3)\mat E'=(4,\,3) and D′=(0.16, 0.12)T\mat D'=(0.16,\,0.12)^{\mathsf T}. What do the two codes have in common, and what do they not?

    Hint

    Compute DE\mat D\mat E and D′E′\mat D'\mat E' before computing anything else.

    Solution

    The code is 0.8⋅2+0.6⋅(−1)=10.8\cdot2+0.6\cdot(-1)=1. The reconstruction is (0.8, 0.6)(0.8,\,0.6) and the residual is (1.2, −1.6)(1.2,\,-1.6), with squared length 1.44+2.56=41.44+2.56=4.

    With the second pair the code is 4⋅2+3⋅(−1)=54\cdot2+3\cdot(-1)=5, and the reconstruction is (0.16⋅5,  0.12⋅5)=(0.8, 0.6)(0.16\cdot5,\;0.12\cdot5)=(0.8,\,0.6) again. Both products equal

    [0.640.480.480.36],\begin{bmatrix}0.64&0.48\\0.48&0.36\end{bmatrix},

    so the two autoencoders are the same function of the input and have the same loss on every dataset. They are the cases G=1\mat G=1 and G=1/5\mat G=1/5 of (I.12.5).

    The codes share their ordering and their ratios: one is five times the other for every input. They do not share a scale. A code’s magnitude, and with more than one code unit its axes and the angles between them, are set by the factorisation that training happened to reach and not by the data.

    The input (2,−1)(2,-1) is u1−2u2\vec u_1-2\vec u_2 in the eigenvectors u1=(0.8,0.6)\vec u_1=(0.8,0.6) and u2=(−0.6,0.8)\vec u_2=(-0.6,0.8). The error 44 is the square of its discarded component.

    Draws on