Taylor Expansion
First-order Taylor expansion
Second-order Taylor expansion
Catastrophic Forgetting via Training Dynamics
Let a scalar-valued function be represented by a neural network, parameterized by , with input . is the true value function and is the loss function.
If using SGD,
and the paper gives Equation 1 using the Taylor expansion:
I might want to show the derivation. Let
which expands to
Now substitute back:
and
Looking back at the original , we now have
and the neural tangent kernel (NTK) is .
I personally write it as .
The paper argues for three properties:
- Property 1 (error correction). For , .
- Property 2 (zero forgetting). For , .
- Property 3 (mild forgetting). for that is dissimilar to .
Property 1 is easy to see: if and there is a prediction error, the kernel should not be zero, otherwise no update is being done.
The same goes for Property 2: if , we should not update any of the parameters that affect , so the kernel has to be zero for absolutely zero forgetting.
Property 3 relaxes this: the kernel value is mild, approximately zero. There will still be interference and forgetting, but only mildly.
Success and Failure of Sparse Representation
The paper states that sparse representations only reduce forgetting in linear function approximation, but not in nonlinear function approximation.
Linear function approximation, e.g. , where is fixed and only is trained. The prediction is a weighted sum of fixed features:
,
Nonlinear function approximation
where are trainable. The activation tanh has no parameters of its own, but the trainable are inside it, so when or changes, the feature itself changes. The features are learned.
In the linear case, it is easy to see that . Together with Equation 1,
Property 1 holds because when . Property 3 holds because, when , . This is why sparse representation mitigates catastrophic forgetting in linear function approximation.
In the nonlinear case, using , we have
Property 3 does not hold here, even if , because it is not guaranteed that .
Sparsity
This is basically just
We can then define the sparsity as
and we call a sparse function when .
For example, tanh'(x) is a sparse function, while tanh(x) itself is not.
Elephant Activation Functions
where controls the width of the function and hence the sparsity of the function itself, controls the height of the function, and controls the sparsity of the gradients of the elephant function.