NEW
A neural network layer that downsamples feature maps by aggregating local neighborhoods.
DESCRIPTION
The pooling layer reduces spatial dimensions by combining nearby activations into a single value. This decreases parameter counts and computational costs in convolutional networks. Max and average pooling are the most common variants. Pooling helps achieve local translation invariance and can improve generalization. Layers are typically interspersed between convolutional layers, though some architectures use strided convolutions instead. Global average pooling layers aggregate entire feature maps, simplifying classifiers. Proper configuration balances information retention and efficiency. Excessive pooling may hurt tasks requiring fine localization.
ALTERNATIVE DEFINITIONS
Stanford CS231n
The Pooling layer is responsible for reducing the spatial size of the representation, to reduce the amount of parameters and computation in the network.
Focuses on the primary functional purpose of pooling layers in CNNs.
Wikipedia
A pooling layer down-samples the input along its spatial dimensions, reducing the number of parameters and computation in the network.
Highlights dimensional downsampling and efficiency benefits.
RELATED TERMS
Pooling Convolutional Neural Network Global Average Pooling Activation Function Feature Map
COMPETING TERMS
Strided Convolution
RELATIONS
- Broader: Layer
KNOWLEDGE AREAS
TARGET AUDIENCE
AI Engineer Data Scientist MLOps Engineer Software Developer
EXTERNAL SOURCES
- Wikipedia - Convolutional neural network
- PyTorch - Average pooling layer API
- Keras - Max pooling layer API
- DeepLearning.AI - Glossary entry for pooling layers
TOP QUESTIONS
What problem does a Pooling Layer solve?
It reduces spatial dimensions to cut parameters and computation. This promotes translational invariance and improves efficiency in deep CNNs.
Category: Explanation
Where is a Pooling Layer placed in a CNN?
Typically after one or more convolutional layers to progressively downsample feature maps. Placement depends on architecture and task.
Category: HowTo
How do Pooling Layers impact model size?
They lower the spatial resolution, reducing the number of activations feeding subsequent layers, thus decreasing parameters and memory.
Category: Explanation
Does a Pooling Layer learn parameters?
Standard max and average pooling are parameter-free. Variants like learned pooling exist but are less common.
Category: Misunderstanding
When to avoid Pooling Layers?
For tasks requiring fine localization, excessive pooling can degrade performance. Consider smaller strides, dilations, or multi-scale features.
Category: Risks
How does stride affect a Pooling Layer?
Larger strides increase downsampling. Commonly, stride equals kernel size for non-overlapping windows.
Category: HowTo
What’s the difference from Global Average Pooling?
A pooling layer aggregates local neighborhoods, while global average pooling aggregates entire feature maps to single values.
Category: Explanation
Are Pooling Layers used in transformers?
Transformers typically use attention pooling or CLS tokens rather than spatial pooling. However, pooling concepts appear in sequence aggregation.
Category: Example
What are alternatives to a Pooling Layer?
Strided convolutions, dilated convolutions, and adaptive pooling can downsample while preserving more learnable structure.
Category: Alternatives