Computing Library › Neural Architectures
Neural Architectures

Dilated Convolutions

Dilated (atrous) convolutions insert gaps between kernel elements to expand the receptive field without adding parameters or losing resolution.

The mechanism

A standard 3x3 convolution looks at nine adjacent pixels. A dilated convolution with dilation rate d spaces those nine sample points d pixels apart, so a rate-2 3x3 kernel covers a 5x5 region while still using only nine weights. The kernel is unchanged; only the sampling grid is stretched. Dilation lets a network see a wider context with the same number of parameters and the same computation per output.

Why it matters

Kronos motion — plug field

To grow the receptive field, ordinary networks stack many layers or pool aggressively. Pooling throws away spatial resolution, which is costly for dense prediction. Dilation grows the receptive field without downsampling, so a segmentation network can integrate large context while keeping output at full resolution. This is why dilated convolutions became central to semantic segmentation architectures.

python
import torch.nn as nn
# 3x3 kernel, dilation 2 -> effective 5x5 field, still 9 weights
layer = nn.Conv2d(64, 64, kernel_size=3, padding=2, dilation=2)

Stacking dilations

Chaining layers with increasing dilation rates, for example 1, 2, 4, 8, expands the receptive field exponentially with depth while every layer stays cheap. This pattern underlies WaveNet for raw audio, where a long temporal context is needed, and multi-scale segmentation modules that gather features at several dilation rates in parallel.

The gridding artifact

Because dilated kernels skip pixels, naively stacking the same high dilation rate can leave a checkerboard of sampled and unsampled positions, producing gridding artifacts. The fix is to vary dilation rates across layers so that, combined, they cover every position densely. Careful rate design gives smooth, full coverage of the receptive field.

Applications

Dilated convolutions suit any task needing wide context at full resolution: semantic segmentation, audio generation, time-series modeling, and dense scientific field analysis. For grid-structured simulation output where both local detail and long-range structure matter, dilation offers a way to capture both without the resolution loss that pooling would impose.