arXiv · 2311.07623
PadChannel: Improving CNN Performance through Explicit Padding Encoding
Abstract
In convolutional neural networks (CNNs), padding plays a pivotal role in preserving spatial dimensions throughout the layers. Traditional padding techniques do not explicitly distinguish between the actual image content and the padded regions, potentially causing CNNs to incorrectly interpret the boundary pixels or regions that resemble boundaries. This ambiguity can lead to suboptimal feature extraction. To address this, we propose PadChannel, a novel padding method that encodes padding statuses as an additional input channel, enabling CNNs to easily distinguish genuine pixels from padded ones. By incorporating PadChannel into several prominent CNN architectures, we observed small performance improvements and notable reductions in the variances on the ImageNet-1K image classification task at marginal increases in the computational cost. The source code is available at https://github.com/AussieSeaweed/pad-channel
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Juho Kim. 2023-11-13. PadChannel: Improving CNN Performance through Explicit Padding Encoding. https://arxiv.org/abs/2311.07623
Cite the original work for its findings. Save a collection to share your selection of sources.