MLCrack

    COMPUTER VISION · INTERVIEW QUESTION

    In dense prediction, why can dilated convolutions increase receptive field without reducing spatial resolution?

    ⚫ expert · Segmentation · Dilated Conv

    Hint: Focus on the decision rule, assumptions, and failure mode behind segmentation · dilated conv.

    Answer

    Dilation spaces kernel samples apart. This expands context while preserving feature map resolution, though gridding artifacts can occur.

    Interview reasoning

    A kernel of size k with dilation d has effective extent d*(k-1)+1 while parameter count remains k-sized. Sampling gaps enlarge context without mandatory downsampling.

    Dilation inserts spacing between convolution samples. A kernel of size k and dilation d has effective extent d(k-1)+1 while retaining k samples along that axis. This increases context without necessarily reducing output resolution, but can skip fine structures and produce gridding artifacts.

    Worked example. A 3-by-3 kernel at dilation 2 spans a 5-by-5 region using nine learned positions rather than all twenty-five.

    Validation

    Verify feature-map shapes and quality on thin or small structures.

    Verify output shapes and padding, test thin boundaries, and compare multi-rate or ordinary-convolution baselines on the same compute budget.

    Common pitfalls

    Large dilation can cause gridding artifacts and miss local details.

    Larger receptive extent does not guarantee useful context. Sparse sampling can miss local details even though the output feature map remains high-resolution.

    Likely follow-up: Verify feature-map shapes and quality on thin or small structures.