Does the Layer Pull Them Apart?

Linear TransformationsMedium+20 XP+20

Does the Layer Pull Them Apart?

A single neural network layer applies the weight matrix

W=[214−1]W = \begin{bmatrix} 2 & 1 \\ 4 & -1 \end{bmatrix}W=[24​1−1​]

to its input, with no bias and no activation function. Two training examples arrive as 2-dimensional embeddings:

exampleembedding
"cat"a⃗=(1,−1)\vec{a} = (1, -1)a=(1,−1)
"dog"b⃗=(2,1)\vec{b} = (2, 1)b=(2,1)

After the layer, the Euclidean distance between the two representations has been multiplied by what factor?

Hints

Solve it to unlock the solution

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

Select all that apply.