Overview
This paper introduces Learnable Polyphase Sampling (LPS), a novel approach to making Convolutional Neural Networks (CNNs) truly shift-invariant and equivariant. By replacing standard downsampling and upsampling layers with a small, end-to-end trainable neural network that selects the best "sub-grid" (polyphase component) of an image, the authors achieve 100% shift consistency on tasks like image classification and semantic segmentation, outperforming previous handcrafted methods.
The Problem: Aliasing and Shift Sensitivity
Despite their name, standard CNNs are surprisingly sensitive to small shifts in input. If you shift an image by just one pixel, the output of a classifier might change, or a segmentation mask might jitter. This happens because of aliasing: downsampling layers (like max-pooling or striding) discard information based on fixed grids. If an object moves slightly, it might fall into a different grid cell, leading to a completely different feature representation.
Previous works tried to fix this using low-pass filters (anti-aliasing) or "Adaptive Polyphase Sampling" (APS), which uses a handcrafted rule (like picking the sub-grid with the highest energy). However, these methods are either not perfectly invariant or rely on rigid, non-trainable rules that might not be optimal for the specific task at hand.
Learnable Polyphase Sampling (LPS)
The core idea of LPS is to treat downsampling as a selection problem among polyphase components. Imagine splitting an image into sub-grids (like the squares on a checkerboard). Standard downsampling always picks the top-left square. LPS instead uses a small, "meta" neural network to look at the input and decide which of the sub-grids to keep.
Key technical components include:
- Shift-Permutation Equivariance: For the system to be shift-invariant, the selection network must be "shift-permutation equivariant." This means if the input shifts, the network must permute its selection probability accordingly. The authors achieve this using a fully convolutional architecture with global pooling.
- Gumbel-Softmax Trick: Since selecting a sub-grid is a discrete, non-differentiable operation, the authors use the Gumbel-Softmax relaxation during training. This allows them to backpropagate gradients through the selection process.
- Learnable Polyphase Upsampling (LPU): For dense prediction tasks like segmentation, they introduce a corresponding upsampling layer that places features back into the exact sub-grid locations they were sampled from, ensuring the final mask shifts perfectly with the input.
Key Insights
- LPS Generalizes APS: The authors theoretically prove that LPS is a superset of the previous state-of-the-art, APS. While APS uses a fixed "max-norm" rule, LPS can learn that rule or better ones directly from the data.
- LPS Learns Unique Strategies: Interestingly, the trained LPS models only picked the "max-norm" component (the APS strategy) about 20% of the time. This suggests that the "best" sub-grid for a neural network isn't necessarily the one with the most signal energy, but something more complex discovered during training.
- The "Zero" Triviality: A model that always outputs zero is perfectly shift-invariant but useless. This motivates the need for learnable invariance that balances consistency with task performance.
Empirical Results
The authors evaluated LPS across standard benchmarks including CIFAR-10, ImageNet, and PASCAL VOC.
- Accuracy Boost: On ImageNet (ResNet-18), LPS achieved 67.39% top-1 accuracy compared to the 64.88% baseline and 67.05% for APS, all while maintaining 100% circular shift consistency.
- Segmentation Consistency: On PASCAL VOC, LPS achieved 100% shift consistency (mASCC), claiming the first truly shift-equivariant results on this dataset. Standard models and even anti-aliased models (like LPF) fall significantly short.
- Low Overhead: Equipping a ResNet-101 with LPS only adds about 1% more parameters and a marginal increase in inference time (roughly 15ms), making it a practical drop-in replacement for standard pooling.
Limitations and Future Work
While highly effective, LPS has a few limitations. The mathematically guaranteed 100% invariance applies to circular shifts (where pixels wrapping off one side appear on the other). For standard "linear" shifts with zero-padding at the boundaries, consistency is much higher than baselines but not perfectly 100% due to boundary information loss.
Additionally, the current work focuses strictly on 2D spatial shifts. Future work could extend this "learnable sampling" logic to other transformations like rotation or scaling. Finally, while it acts as a drop-in replacement, it requires more care in implementation (e.g., tuning Gumbel-Softmax temperature schedules) than a simple MaxPool layer.
Summary updated