Abstract
This explanatory note clarifies the mathematical equivalence between deconvolution (transposed convolution) and sub-pixel convolution in low-resolution (LR) space. We demonstrate that performing convolutions exclusively in LR space before upsampling yields greater representational power for the same computational budget compared to traditional methods that upsample images first. By demystifying the "deconvolution" layer, we show it is fundamentally a standard convolution in disguise.
Introduction
In image super-resolution (SR), early Convolutional Neural Network (CNN) methods typically upsampled a low-resolution (LR) image first—using techniques like bicubic interpolation—and then applied convolutions in the high-resolution (HR) space. However, recent advancements propose the opposite: performing convolutions in LR space and using an "efficient sub-pixel convolutional layer" to upscale at the final stage. This shift raises two critical questions: how do multiple LR channels transform into a single HR image, and why is LR-space convolution fundamentally superior?
Methods
The transition from LR to HR can be achieved through several mathematically related operations:
- Transposed Convolution (Deconvolution): Often conceptualized as "backward convolution" with fractional strides, this uses a transposed matrix to project pixels into a larger spatial dimension.
- Sub-pixel Convolution: This involves padding original pixels with imaginary, zero-valued sub-pixels and convolving over them to fill the gaps.
- Efficient Sub-pixel Convolution: Standard convolutions are applied directly in LR space to produce $r^2$ channels (where $r$ is the upscaling ratio). A deterministic "periodic shuffling" operation then rearranges these channels into a single HR image.
The authors prove that a deconvolution layer with a kernel size of $(o, i, k \cdot r, k \cdot r)$ is identical to a standard convolution in LR space with a kernel size of $(o \cdot r^2, i, k, k)$, provided weights are learned appropriately. Essentially, the weights of a trained LR convolution can be reshaped to perfectly recreate a deconvolution layer.
Representational Power and Efficiency
The core advantage of LR-space convolution lies in parameter efficiency. For a fixed computational budget (inference speed), a network operating in LR space can afford significantly more feature maps than one in HR space.
Consider the complexity: an LR network with 32 feature maps and $3 \times 3$ kernels has the same computational complexity—$O(32 \times 32 \times 3 \times 3 \times \frac{W}{2} \times \frac{H}{2})$—as an HR network with only 8 feature maps and $6 \times 6$ kernels—$O(8 \times 8 \times 6 \times 6 \times W \times H)$. However, the LR network contains strictly more learnable parameters ($l \times 32 \times 32 \times 3 \times 3$ vs $l \times 8 \times 8 \times 6 \times 6$). This higher parameter count translates to a greater capacity to learn complex representations without increasing run-time latency.
Conclusion
The "magic" of upscaling is simply the network learning to use $r^2$ channels of LR feature maps to represent one HR image. This realization suggests that explicit upsampling modules might be unnecessary. Future research may explore whether networks can autonomously learn when and how much to upscale using only standard convolutions, potentially making traditional deconvolution layers obsolete.
Summary updated