Dilated Convolution with Learnable Spacings

Ismail Khalfaoui Hassani · OpenReview

Abstract

Dilated Convolution with Learnable Spacings (DCLS) is a novel convolutional method that enables the positions of kernel elements to be learned via backpropagation. By utilizing bilinear interpolation to handle non-integer coordinates, DCLS allows Convolutional Neural Networks (CNNs) to adaptively expand their receptive fields. This approach outperforms standard and dilated convolutions on ImageNet classification and downstream tasks like semantic segmentation and object detection without increasing the number of trainable parameters.

The Challenge of Large Receptive Fields

In the current landscape of computer vision, Vision Transformers (ViTs) have set a high bar, largely due to their expansive or global receptive fields (RF). For CNNs to remain competitive, they must also scale their RF. Traditionally, this is achieved by increasing kernel sizes (e.g., from $3 \times 3$ to $31 \times 31$). However, this leads to a quadratic explosion in parameters, making models difficult to train and memory-intensive.

Dilated Convolutions (DC) were introduced to mitigate this by spacing kernel elements on a fixed grid, increasing RF without adding parameters. Yet, this fixed grid is often too rigid, leading to "gridding artifacts" where the model ignores intermediate pixels, resulting in sub-optimal feature extraction. DCLS addresses this by asking: What if the optimal spacing between kernel elements could be learned during training?

DCLS Methodology

The core innovation of DCLS is treating the positions $(p^1, p^2)$ of each kernel weight as learnable floating-point parameters rather than fixed integer coordinates.

Differentiable Positions via Bilinear Interpolation

To make positions learnable via gradient descent, DCLS employs bilinear interpolation. A single weight $w$ is distributed across the four nearest integer pixel locations based on its fractional position. This ensures the loss function remains differentiable with respect to the coordinates. Before convolution, a sparse kernel is constructed by summing these interpolated weights, which can then be used with standard operations like torch.nn.functional.conv2d.

Comparison of kernel structures: (a) standard $3 \times 3$, (b) dilated $3 \times 3$, (c) DCLS with learnable positions, and (d) resulting sparse kernel.

Optimization Strategies

Several techniques were critical for successful training:

  • Learning Rate Scaling: Scaling the learning rate for position parameters by a factor of 5 relative to weights improved convergence.
  • Position Synchronization: Sharing learned positions across all layers within a stage (while keeping weights unique) boosted accuracy and minimized parameter overhead.
  • Weight Decay Management: Weight decay was set to zero for position parameters to prevent them from collapsing toward the center of the kernel.

Experimental Evaluation

The authors evaluated DCLS primarily as a drop-in replacement for the $7 \times 7$ depthwise convolutions in the ConvNeXt architecture across ImageNet-1k, ADE20K (segmentation), and COCO (detection).

Performance and Efficiency

ConvNeXt-T-dcls achieved 82.5% Top-1 accuracy on ImageNet-1k, a +0.4% improvement over the baseline with identical parameter counts. In downstream tasks, the DCLS variant improved mIoU on ADE20K from 46.0 to 47.1 and $AP^{box}$ on COCO from 50.4 to 51.2.

ImageNet-1k Top-1 Accuracy vs. Latency. ConvNeXt-Dcls demonstrates a superior accuracy-efficiency trade-off compared to standard ConvNeXt and other large-kernel architectures.

Key Insights

  • Input-Independent Learning: Unlike Deformable Convolutions, which calculate offsets per input image, DCLS learns a global kernel structure for the entire dataset. This makes it significantly more efficient during inference.
  • Centrality of RF: Post-training analysis shows a higher concentration of elements toward the center of the receptive field, suggesting that while a large RF is necessary, central pixels remain the most informative.
  • Robustness: DCLS showed superior performance on robustness benchmarks like ImageNet-R and ImageNet-Sketch, indicating better generalization to real-world distribution shifts.

Conclusion and Future Work

DCLS provides a powerful mechanism for CNNs to learn their own spatial structure. While it offers significant gains in depthwise separable architectures like ConvNeXt, its performance in non-separable models (like ResNet) is currently limited by the lack of hardware-optimized sparse convolution kernels. Future research may explore bicubic interpolation, 3D applications for video, and the design of entirely new architectures optimized for learnable spacings.

Summary updated

BibTeX
@inproceedings{hassani2023dilated,
  author = {Ismail Khalfaoui Hassani},
  title = {{Dilated Convolution with Learnable Spacings}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Q3-1vRh3HOA},
}
Figure