Convolutional neural networks
Understand spatial filters and image model evaluation.
Use convolutional feature maps and evaluate on independent images.
Interview questions
Choose a question to reveal its answer.
01EasyCoreVisualHow does convolution extract spatial features?
Answer
How does convolution extract spatial features?
Applies a shared local filter across spatial positions to create feature maps.
Detect edges using the same kernel throughout an image.
02EasyCoreWhat is a convolution kernel?
Answer
What is a convolution kernel?
Small tensor of learnable weights applied locally.
Use a three by three filter to extract texture.
03EasyCoreHow does stride affect feature map size?
Answer
How does stride affect feature map size?
Spatial step between successive filter positions.
Reduce output resolution by moving two pixels per step.
04MediumHigh priorityWhy add padding before convolution?
Answer
Why add padding before convolution?
Adds border values to control output dimensions and preserve edge information.
Add zeros around an image before convolution.
import torch
from torch import nn
x = torch.randn(1, 3, 32, 32)
conv = nn.Conv2d(3, 8, kernel_size=3, padding=1)
print(conv(x).shape)Padding one with a 3×3 kernel and stride one preserves height and width.
05MediumHigh priorityWhat does max pooling do?
Answer
What does max pooling do?
Aggregates local activations, often reducing spatial resolution.
Keep the largest activation within each two by two region.
06MediumWhat is a CNN receptive field?
Answer
What is a CNN receptive field?
Region of input that can influence a particular activation.
Determine how much image context a deep feature sees.
07MediumWhat do channels represent in convolutional networks?
Answer
What do channels represent in convolutional networks?
Separate feature dimensions in images or activation tensors.
Represent red, green and blue input planes.
08MediumHow does image augmentation improve generalization?
Answer
How does image augmentation improve generalization?
Applies label-preserving transformations to diversify training samples.
Randomly flip images when the labels are unchanged by flipping.
09HardWhen is transfer learning useful for vision tasks?
Answer
When is transfer learning useful for vision tasks?
Reuses representations from a pretrained model for a new task.
Fine-tune a pretrained image classifier on a small dataset.
10HardHow is intersection over union calculated?
Answer
How is intersection over union calculated?
Intersection area divided by union area of two regions.
Measure overlap between predicted and ground-truth bounding boxes.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.
1. A 5×5 input uses a 3×3 kernel, stride 1 and no padding. What is the spatial output size?
2. What does max pooling output for a window containing 1, 4, 2, 3?
3. What is the primary reason CNNs share convolution weights across locations?
Object detection and segmentation
Continue to the next set of interview questions.