liveBook · Manning

Max pooling

As explained in Machine Learning Algorithms in Depth

Max pooling is a downsampling operation that retains the largest value within each local window of a feature sequence.

Max pooling is a downsampling operation that retains the largest value within each local window of a feature sequence or feature map. Pooling aggregates information while reducing spatial or temporal dimensions. section 10.2

In a convolutional network, max pooling commonly follows convolution and ReLU activation. Repeated blocks learn increasingly rich features while max pooling reduces feature-map dimensions before later processing. section 10.2.1 section 10.6

The operation appears in several processing settings:

  • Use 2D max pooling to reduce image feature maps in a LeNet-style MNIST classifier. section 10.2.1
  • Use 1D max pooling after convolutions to process encoded question sequences in a multi-input similarity model. section 10.3.2
  • Distinguish maximum aggregation from average pooling and global average pooling, which use different reduction rules. section 10.2

LeNet-style MNIST classifier

A Keras/TensorFlow CNN stacks convolutional, ReLU, and max-pooling operations, then flattens the resulting feature map and applies a dense softmax classifier. section 10.2.1

Figure 10.4 LeNet architecture for MNIST digits classification
figure

Use the LeNet architecture diagram to trace how max pooling reduces feature-map dimensions between convolutional stages. section 10.2.1

How Machine Learning Algorithms in Depth covers it

How deep it goes
Defines maximum aggregation and its architectural role, but does not derive window geometry or pooling gradients.
Examples
Uses LeNet for MNIST image classification and a multi-input Quora question-similarity model with 1D convolutions.
What it assumes
Assumes convolutional layers, feature maps, ReLU activation, and basic CNN classification pipelines.
What you can do after
Apply max pooling via Keras/TensorFlow within image and sequence convolutional architectures.
How it connects
Connects convolutional layers, ReLU activation, feature maps, average pooling, global average pooling, and CNN classifiers.

Also explained in

Compare how 10 books explain max pooling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Algorithms in Depth. The section links point to the parts of the book it draws on.