[Paper Review] From Discrete to Continuous Convolution Layers
This paper introduces Continuous Convolution (CC) layers, a differentiable generalization of standard discrete convolutions that model filters as continuous functions over sub-pixel coordinates. Unlike traditional layers constrained to integer strides and fixed scale factors, CC layers enable learnable, dynamic resizing of feature maps to any spatial size—including non-integer scales and different scales per axis—resulting in improved shift-equivariance and generalization across scales.
A basic operation in Convolutional Neural Networks (CNNs) is spatial resizing of feature maps. This is done either by strided convolution (donwscaling) or transposed convolution (upscaling). Such operations are limited to a fixed filter moving at predetermined integer steps (strides). Spatial sizes of consecutive layers are related by integer scale factors, predetermined at architectural design, and remain fixed throughout training and inference time. We propose a generalization of the common Conv-layer, from a discrete layer to a Continuous Convolution (CC) Layer. CC Layers naturally extend Conv-layers by representing the filter as a learned continuous function over sub-pixel coordinates. This allows learnable and principled resizing of feature maps, to any size, dynamically and consistently across scales. Once trained, the CC layer can be used to output any scale/size chosen at inference time. The scale can be non-integer and differ between the axes. CC gives rise to new freedoms for architectural design, such as dynamic layer shapes at inference time, or gradual architectures where the size changes by a small factor at each layer. This gives rise to many desired CNN properties, new architectural design capabilities, and useful applications. We further show that current Conv-layers suffer from inherent misalignments, which are ameliorated by CC layers.
Motivation & Objective
- To address the limitations of standard convolutional layers in spatial resizing, which are restricted to integer scale factors and fixed strides.
- To overcome inherent misalignments and aliasing effects in strided convolutions that degrade shift-equivariance.
- To enable dynamic, learnable resizing of feature maps at inference time, including non-integer and axis-differentiated scale factors.
- To generalize existing continuous convolution methods from irregular point clouds to regular grids, enabling principled, end-to-end trainable resizing.
- To demonstrate that CC layers support novel architectural designs such as gradual architectures and dynamic scale ensembles.
Proposed method
- Represent the convolution filter as a learned continuous function over sub-pixel coordinates, enabling interpolation-based filtering across non-integer positions.
- Apply the continuous filter to the discrete input to produce a continuous intermediate feature representation.
- Resample the continuous representation using a differentiable re-sampling grid to produce a discrete output feature map of any desired size.
- Train the continuous filter end-to-end via gradient descent, with the output size specified at inference time via the re-sampling grid.
- Use cubic interpolation for re-sampling and backpropagation through the continuous filter and resampling process.
- Introduce dynamic scale ensembles by applying the same trained CC network with different scale sequences at inference, averaging logits for improved robustness.
Experimental results
Research questions
- RQ1Can a convolutional layer be generalized to allow differentiable, learnable resizing of feature maps to any spatial size, including non-integer scale factors?
- RQ2Does modeling convolution as a continuous function over sub-pixel coordinates improve shift-equivariance compared to standard strided convolutions?
- RQ3Can a single CC layer generalize across multiple scale factors during inference, even if trained on only one?
- RQ4To what extent do CC layers reduce inherent input-output misalignments present in standard convolutions?
- RQ5Can CC layers enable new architectural paradigms such as gradual scaling or dynamic scale ensembles in deep networks?
Key findings
- CC layers achieve significantly better shift-equivariance than standard convolutions: cosine similarity between shifted and aligned feature maps increased from 0.78 (baseline) to 0.85 for ±4 pixel shifts on CIFAR-10 images.
- A CC network trained on a single scale (1/2) generalized poorly to other scales, with test error 100× higher on 100 unseen scales, indicating that generalization requires explicit scale-robust training.
- CC networks trained with non-integer internal scale factors enabled dynamic scale ensembles at inference, boosting CIFAR-10 accuracy by +1.7% with 2 models and +2.4% with 3 models.
- The continuous filter learned in the first experiment (trained on 1/2 scale) closely matched the ground-truth kernel, while the second experiment (trained on a single scale) produced a distorted kernel, confirming the need for scale-robust learning.
- CC layers resolve inherent misalignments in standard convolutions by avoiding discrete stride-induced aliasing, enabling true shift-equivariance.
- CC-based Super-Resolution networks could potentially support any scale factor (including non-integer and axis-differentiated) with a single trained model, avoiding the need for separate models per scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.