DL0010 Receptive Field

What is the receptive field in convolutional neural networks, and how do you calculate it?

Answer

The receptive field (RF) of a neuron is the region of the input image that can influence that neuron’s activation. It grows with network depth, so deeper layers see larger context and learn more hierarchical features. The RF is computed layer by layer: each layer expands the field according to its kernel size, scaled by the cumulative stride of all preceding layers.

(1) Definition: The RF is the input region that affects one activation in a given layer; a neuron with a large RF integrates global context.
(2) Growth Rule: Each layer adds (k_l - 1) \times \prod s_i to the RF, where k_l is the kernel size and the product runs over all previous strides.
(3) Design Implication: Stacked small kernels grow the RF parameter-efficiently; strided and dilated convolutions grow it much faster.

Mathematical Formulation:
RF_l = RF_{l-1} + (k_l - 1) \times \prod_{i=1}^{l-1} s_i

Where:

  • RF_l is the receptive field size after layer l, with RF_0 = 1 at the input layer.
  • k_l is the kernel size of layer l.
  • s_i is the stride of layer i, and the product accumulates all strides before layer l.
Stacked feature map rows showing the receptive field of one neuron growing from 3 to 5 to 7 input cells across three 3x3 convolution layers with stride 1.

Figure 1: With k=3, s=1 per layer, one neuron’s RF grows from 3 to 5 to 7 input cells as layers stack.

Stride and Dilation Effects: A layer with stride 2 doubles the jump between adjacent neurons, so every subsequent layer adds twice as much to the RF. Dilated convolutions enlarge the kernel’s span by inserting gaps, growing the RF without reducing resolution, which is useful in segmentation.

Worked receptive field calculation across four layers showing RF values 1, 3, 5, 7, 11 with the contribution of a stride-2 layer multiplying later increments.

Figure 2: Worked example: a stride-2 layer at l=3 doubles the increment contributed by every later layer, jumping the RF from 7 to 11.

Real CNN Stacks: In practice, convolutions, pooling, and dilation mix freely: pooling multiplies the jump between neurons, and dilated kernels widen the span, so the RF can reach 22 within just five layers.

Line chart of receptive field size growing from 1 to 22 across a CNN stack with convolutions, max pooling, and a dilated convolution.

Figure 3: In a realistic stack, max pooling doubles the jump and dilation (D=2) widens the kernel, pushing the RF from 1 to 22 in five layers.


Login to view more content


Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *