InterviewStack.io LogoInterviewStack.io

Convolutional Neural Networks Questions

Deep and practical expertise in convolutional neural networks and their architectures for spatial and visual data tasks. Candidates should understand convolution operations including filters and kernels, feature maps and receptive field, stride and padding, pooling operations, activation functions and normalization methods, and how these components combine to form a hierarchical representation of spatial features. Know architectural building blocks such as residual connections, dense connections, bottleneck layers, inception modules, squeeze and excitation blocks, depthwise separable and grouped convolutions, dilated convolutions, and attention augmented convolutions. Be familiar with canonical model families and examples such as AlexNet, VGG, ResNet, Inception, DenseNet, MobileNet, EfficientNet and modern hybrids that combine convolutional features with transformer based components, and be able to reason about design trade offs between depth and width, representational capacity, parameter counts, computational cost, latency and memory footprint. Understand training and regularization strategies including batch normalization and layer normalization, dropout, weight decay, data augmentation, optimizers and learning rate schedules, initialization, and techniques for training from scratch versus fine tuning pretrained models. Know transfer learning and domain adaptation approaches, and model compression and deployment techniques such as pruning, quantization, knowledge distillation and low rank factorization for mobile and edge systems. Be able to select and adapt architecture choices for specific vision tasks such as classification, object detection and instance segmentation, and to evaluate models using appropriate metrics such as classification accuracy and top k accuracy, intersection over union and mean average precision on standard benchmarks such as ImageNet and Common Objects in Context.

HardTechnical
22 practiced
A CNN trained on ImageNet performs well in academic benchmarks but fails in production on images from different camera sensors, lighting, and compression. Design a domain adaptation strategy to bridge this gap that includes data collection, synthetic augmentation, model adaptation (supervised, unsupervised, or test-time adaptation), and evaluation protocols for production validation.
HardTechnical
26 practiced
You need to reduce wall-clock training time for a large CNN by approximately 4x without losing more than 1% absolute accuracy. Propose a concrete plan combining algorithmic, optimization, and systems techniques (for example, mixed precision, larger-batch training with adjusted LR, distillation, progressive resizing, partial freezing). Explain why each choice helps and how to validate the approach.
MediumTechnical
27 practiced
Compare unstructured magnitude pruning, structured channel pruning, and iterative pruning schedules for CNNs. For each approach explain algorithmic steps, expected effect on accuracy, sparsity patterns, and practical deployment considerations on real hardware.
MediumTechnical
23 practiced
In PyTorch, implement a ResNet-style bottleneck block with expansion factor 4: 1x1 reduce -> 3x3 -> 1x1 expand. Support downsampling via stride and optional identity projection when channels differ. Explicitly state your BatchNorm and ReLU ordering and justify the choice (pre-activation vs original).
MediumTechnical
21 practiced
BatchNorm becomes unstable when per-GPU batch size is 1 for detection tasks. Explain why batch statistics are problematic in this regime and propose at least four practical strategies to mitigate the issue during training and inference, including both algorithmic and framework-level solutions.

Unlock Full Question Bank

Get access to hundreds of Convolutional Neural Networks interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.