Reproduce “A guide to convolution arithmetic for deep learning” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Vincent Dumoulin, Francesco Visin
A comprehensive guide systematically derives and visually explains the arithmetic determining output shapes for convolutional, pooling, and transposed convolutional layers. It clarifies how input dimensions, kernel sizes, zero padding, and strides interact, providing a foundational reference for designing and debugging deep convolutional neural networks.
Key insights
- Output size calculation for convolutional and pooling layers follows clear, derivable formulas dependent on input size, kernel size, padding, and stride, often involving the floor function for non-unit strides.
- Transposed convolutions effectively reverse the shape transformation of direct convolutions, and their arithmetic can be related to equivalent direct convolution operations with modified input stretching and padding.
- Dilated convolutions introduce an 'effective kernel size' that accounts for the dilation rate, allowing their arithmetic to be integrated into general convolution formulas.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.