Activation Statistics
Activation statistics describe the values inside the network.
Useful summaries include:
- mean
- standard deviation
- minimum and maximum
- fraction of zeros
- fraction of non-finite values
These summaries tell whether information is flowing. A layer with almost constant activations may not be useful. A layer with huge activations may cause instability. A ReLU layer with mostly zeros may be silent.
For a small activation vector [0, 0, 2, 4], the fraction of zeros is:
2 / 4 = 0.5
Activation statistics are not a replacement for task metrics. They explain what is happening inside the run.
Exercise: Zero fraction
Activations are [0, 0, 0, 5, 2]. What fraction is zero?
Compute it first, then check your number.
Exercise: Non-finite activation
Enter 1 for normal value, or 2 for warning: an activation is NaN.
Compute it first, then check your number.