Dilated Convolution with Learnable Spacings: beyond bilinear interpolation

Ismail Khalfaoui-Hassani, Thomas Pellegrini, Timothée Masquelier

TL;DR

Dilated Convolution with Learnable Spacings (DCLS) makes convolution grids flexible by learning continuous kernel element positions via interpolation. While the original formulation relied on local bilinear interpolation (restricting influence to the four nearest neighbors), this paper demonstrates that using a smooth Gaussian interpolation with learnable standard deviations significantly improves training loss and ImageNet-1K performance without increasing parameter counts.

What Problem Does This Paper Address?

Standard dilated convolutions expand the receptive field of convolutional neural networks (CNNs), but they enforce a rigid, uniformly spaced grid. DCLS was introduced to overcome this rigidity by letting the positions of non-zero kernel weights move continuously during training.

Because continuous coordinates cannot directly index a discrete pixel grid, DCLS relies on interpolation to make position learning differentiable. However, the original implementation defaulted to bilinear interpolation, which only distributes weight among the four immediate adjacent grid points. This severely limits gradient flow across longer distances in the kernel grid, capping effective kernel sizes and slowing optimization.

Methods

The authors investigate broader interpolation schemes to map continuous weight locations $(p^x, p^y)$ onto a discrete kernel grid $K \in \mathbb{R}^{s_x \times s_y}$:

  • DCLS-Triangle: Generalizes bilinear interpolation by treating it as a 1D triangle function $\Lambda(x) = \max(0, 1 - |x|)$ and introducing a learnable scale parameter $\sigma$: $$\Lambda_{\sigma_0 + |\sigma|}(x) = \max(0, \, \sigma_0 + |\sigma| - |x|)$$ with baseline offset $\sigma_0 = 1.0$.

  • DCLS-Gauss: Replaces piecewise-linear interpolation with a smooth Gaussian function: $$G_{\sigma_0 + |\sigma|}(x) = \exp\left(-\frac{1}{2}\frac{x^2}{(\sigma_0 + |\sigma|)^2}\right)$$ with $\sigma_0 = 0.27$.

  • Learnable Standard Deviations: Along both horizontal and vertical axes, independent standard deviations ($\sigma^x, \sigma^y$) are learned via backpropagation alongside the position coordinates.

  • Normalization: Interpolation outputs are normalized across the dilated kernel space to sum to 1 before being multiplied by the weight parameter $w$.
  • Training Techniques: Positions and standard deviations are initialized cleanly (normal distribution for positions, fixed small constants for $\sigma$), share an identical learning-rate multiplier (5× relative to weights), and are synchronized across stages to stabilize training.

Datasets

The authors evaluate their approach on ImageNet-1K (ILSVRC 2012), the standard benchmark for large-scale image classification (~1.28 million training images across 1,000 classes). No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Beyond Four Pixels: Smooth, longer-range interpolations allow non-zero weights to spread influence over larger regions of the kernel, yielding richer gradient signals to pull elements into optimal spatial configurations.
  • Decoupling Kernel Size from Parameters: With Gaussian interpolation, the dilated kernel size can expand significantly (e.g., from $17\times 17$ to $23\times 23$ and up to $51\times 51$) without introducing extra parameters. In contrast to bilinear interpolation—which plateaued around size 17—Gaussian DCLS scales accuracy logarithmically with kernel dimensions.
  • Orientation Constraints: The authors tested anisotropic extensions (learning correlation $\rho$ or rotation $\theta$) as well as Lorentz, sinc, and hyper-Gaussian kernels, but found they provided no notable gains over separable, axis-aligned Gaussians—likely reflecting the dominance of cardinal orientations in natural imagery.

Key Results

The authors evaluated DCLS-Gauss as a drop-in replacement for depthwise separable convolutions in ConvNeXt-T and ConvFormer-S18:

  • ConvNeXt-T:
  • Standard Baseline ($7\times 7$, 49 elements): 82.08% Top-1 accuracy; 2.828 training loss; 28.59M parameters.
  • DCLS-Bilinear ($17\times 17$, 34 elements): 82.44% Top-1 accuracy; 2.775 training loss.
  • DCLS-Gauss ($23\times 23$, 26 elements): 82.44% Top-1 accuracy with a significantly lower training loss of 2.762 at identical parameter count (28.59M).
  • DCLS-Gauss ($23\times 23$, 34 elements): Reaches 82.60% Top-1 accuracy (2.758 training loss) with only a marginal parameter increase (28.69M).
  • ConvFormer-S18:
  • Baseline ($7\times 7$, 49 elements): 82.84% Top-1 accuracy; 2.807 training loss; 26.77M parameters.
  • DCLS-Gauss ($23\times 23$, 26 elements): Achieves 82.99% Top-1 accuracy and drops training loss down to 2.747 (statistically significantly better than bilinear/triangle variants; $p < 0.05$).

Limitations and Future Work

  • Throughput vs. Kernel Size: While increasing the dilated kernel size does not add trainable weights, it does expand the spatial grid across which interpolation is calculated, negatively impacting training and inference throughput. A size of 23 was selected strictly as a practical compromise.
  • Alternative Interpolations: The authors highlight Whittaker–Shannon (sinc-based perfect reconstruction) interpolation as a mathematically appealing direction for future study.
  • Dedicated Architectures: Current evaluations rely on retrofitting existing networks (ConvNeXt and ConvFormer); designing architectures tailored from scratch to leverage Gaussian DCLS remains open for future research.

Summary updated

BibTeX
@inproceedings{khalfaouihassani2023dilated,
  author = {Ismail Khalfaoui-Hassani and Thomas Pellegrini and Timothée Masquelier},
  title = {{Dilated Convolution with Learnable Spacings: beyond bilinear interpolation}},
  booktitle = {Differentiable Almost Everything @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=j8FPBCltB9},
}
Figure