Where ReLU Breaks Additivity

Linear Algebra for Deep LearningMedium+20 XP+20

Where ReLU Breaks Additivity

A single layer computes f(x)=ReLU(Wx)f(x) = \mathrm{ReLU}(Wx)f(x)=ReLU(Wx), where ReLU\mathrm{ReLU}ReLU is applied entrywise and

W=[1−231]W = \begin{bmatrix} 1 & -2 \\ 3 & 1 \end{bmatrix}W=[13​−21​]

Take the two inputs

u=[23]v=[1−1]u = \begin{bmatrix} 2 \\ 3 \end{bmatrix} \qquad v = \begin{bmatrix} 1 \\ -1 \end{bmatrix}u=[23​]v=[1−1​]

If fff were a linear map, then f(u+v)f(u+v)f(u+v) and f(u)+f(v)f(u) + f(v)f(u)+f(v) would be identical and their difference would be the zero vector. Compute the difference and see what actually happens:

f(u+v)−(f(u)+f(v))f(u+v) - \big(f(u) + f(v)\big)f(u+v)−(f(u)+f(v))

Hints

Solve it to unlock the solution

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

Select all that apply.