Maxout is an activation function in which each unit computes linear outputs (weighted sums plus biases) and outputs their maximum. It was designed to be used together with Dropout; the name reflects both that it outputs the maximum (max) of a set of inputs and that it is a natural companion to dropout (Goodfellow et al., 2013).
For an input , the -th unit of a Maxout hidden layer outputs:
- : the number of linear outputs pooled by one unit, set by hand before training.
- , : the learnable parameters, where is the number of units.
Whereas ReLU and similar functions apply a fixed-shape function to a linear output, Maxout has no fixed-shape function. The weights decide which line is the largest, so the network learns the shape of the activation function itself.
For a one-dimensional input, Maxout is the maximum of lines, that is, a convex piecewise-linear function. The examples in the graph at the top take these values:
| Input | β3 | β2 | 0 | 2 | 3 |
|---|---|---|---|---|---|
| : | 0 | 0 | 0 | 2 | 3 |
| : maximum of 4 tangent lines | 2.25 | 0.75 | β0.25 | 0.75 | 2.25 |
| Target curve | 2.25 | 1 | 0 | 1 | 2.25 |
The first row uses the two lines (weight 0, bias 0) and , which gives the same shape as ReLU. Using the lines and gives the absolute value . The second row is the maximum of the four lines tangent to at ; adding more kinks brings it closer to the curve.
In a convolutional network, Maxout takes the maximum over the values at the same position in feature maps to produce one Maxout feature map. This is the same computation as max pooling applied along the channel dimension.
Maxout outputs are not sparse (they do not contain many zeros). ReLU sets negative inputs to 0, but Maxout has no fixed part that outputs 0, and the output distribution in the paper (Figure 2) is not concentrated at 0.
