liveBook · Manning

Pooling

Pooling is an operation that aggregates values or representations across regions or axes to produce a reduced or summarized representation.

How 8 Manning books explain it

Inside Deep Learning: Math, Algorithms, Models

A neural-network operation that downsamples local neighborhoods by aggregating their values.

How it is used
Uses pooling in CNNs to reduce spatial resolution and improve robustness to small translations.
How deep it goes
Explains max pooling, stride, receptive fields, aliasing, and an anti-aliased replacement with PyTorch implementation patterns.
Examples
Uses shifted MNIST digits, K-sized max-pooling diagrams, and a zebra image to expose spatial sensitivity and aliasing.
What you can do after
Apply pooling via PyTorch and diagnose information loss by comparing naive max pooling with blur-based downsampling.

Read how Inside Deep Learning: Math, Algorithms, Models explains pooling →

Natural Language Processing in Action, Second Edition

A pooling layer is a neural-network layer that aggregates neighboring activations to reduce their representation while retaining salient information.

How it is used
Compresses convolution responses into fixed-size representations for text classification with CNNs.
How deep it goes
Explains aggregation choices and tensor-shape consequences, stopping short of detailed pooling mathematics.
Examples
Uses word-based CNNs, disaster tweets, MaxPool1d branches, and an SOS distress-signal exercise.
What you can do after
Apply it via PyTorch to reduce convolution outputs before a neural-network classifier.

Read how Natural Language Processing in Action, Second Edition explains pooling →

Math and Architectures of Deep Learning

A downsampling operation on feature maps that reduces spatial resolution, often by local averaging or max selection.

How it is used
Uses local summaries to downsample feature maps and improve convolutional-network robustness to minor input variations.
How deep it goes
Defines max and average pooling, explains kernel and stride effects, and bridges the operations to PyTorch implementation.
Examples
Uses 2 × 2 max- and average-pooling examples, a 4 × 4 tensor, LeNet subsampling, and global average pooling in GoogLeNet.
What you can do after
Apply it via PyTorch using MaxPool2d and AvgPool2d with chosen kernel sizes and strides.

Read how Math and Architectures of Deep Learning explains pooling →

Build a Text-to-Image Generator (from Scratch)

A pooling layer aggregates values within local spatial windows to produce a reduced or transformed feature representation.

How it is used
Reduces feature-map dimensions inside U-Net contracting paths and improves computational efficiency while preserving prominent features.
How deep it goes
Explains windows, kernels, strides, maxima, and a PyTorch calculation, but does not develop pooling gradients or padding.
Examples
Uses a 4 × 4 tensor, 2 × 2 windows, stride 2, and the output [[2, 4], [5, 7]].
What you can do after
Apply it via PyTorch’s MaxPool2d layer to downsample image tensors and verify the resulting values.

Read how Build a Text-to-Image Generator (from Scratch) explains pooling →

Evolutionary Deep Learning: Genetic algorithms and neural networks

Pooling is a neural-network operation that aggregates values within local regions to reduce spatial or feature-map dimensions.

How it is used
Uses pooling to reduce CNN representations, shrink parameter counts, support generalization, and create latent views in autoencoders.
How deep it goes
Demonstrates Keras placement, parameter effects, and architectural experiments but does not derive pooling mathematically.
Examples
Uses MaxPooling2D in a CNN and repeated MaxPool2D layers in a Fashion-MNIST convolutional autoencoder.
What you can do after
Apply pooling via Keras, inspect its parameter impact, and experiment with pool sizes and surrounding CNN layers.

Read how Evolutionary Deep Learning: Genetic algorithms and neural networks explains pooling →

Graph Neural Networks in Action

A graph operation that reduces a collection of representations to a smaller representation, often for graph-level prediction.

How it is used
Uses pooling to reduce learned outputs for graph-level learning while omitting it for node prediction.
How deep it goes
Defines pooling and places it in CNN and message-passing pipelines, but does not explain pooling operators or implementation details.
Examples
Illustrates pooling through CNN image processing and reduced graph representations for whole-graph prediction.
What you can do after
Evaluate whether a graph-learning pipeline needs size reduction for graph-level prediction or should omit pooling for node prediction.

Read how Graph Neural Networks in Action explains pooling →

Deep Learning with PyTorch, Second Edition

A downsampling technique that reduces spatial resolution by aggregating local regions of a feature map.

How it is used
Uses pooling between convolutions to reduce spatial resolution and expand the network’s effective visual scope.
How deep it goes
Defines regional aggregation, compares three downsampling methods, and focuses on non-overlapping 2 × 2 max-pooling tiles.
Examples
Uses 2 × 2 tiles, a 32 × 32 tensor reduced to 16 × 16, and a MaxPool2d implementation.
What you can do after
Apply it via nn.MaxPool2d to reduce feature-map dimensions between convolutional layers.

Read how Deep Learning with PyTorch, Second Edition explains pooling →

AI-Powered Search

Pooling is the aggregation of multiple representation values into a single lower-level or fixed-size representation.

How it is used
Uses pooled sentence vectors to compare semantic similarity in dense-vector search.
How deep it goes
Explains token-value aggregation and resulting dimensions, then demonstrates normalization and pairwise scoring without detailing pooling internals.
Examples
Compares weather and vehicle phrases, ranks their pairwise similarities, and displays four 768-dimensional embeddings.
What you can do after
Apply it via sentence_transformers to encode phrases, normalize vectors, and rank semantic similarities.

Read how AI-Powered Search explains pooling →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.