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.

MediumTechnical
34 practiced
You are training a semantic segmentation CNN with highly imbalanced classes (tiny lesions vs large background). Propose loss functions and strategies such as class weighting, focal loss, dice or Tversky loss, oversampling, patch-based sampling and augmentation to improve learning for rare classes. Discuss trade-offs and implementation details.
HardTechnical
20 practiced
Describe hybrid architectures that combine convolutional layers with transformer blocks (for example a CNN frontend extracting local features followed by transformer blocks capturing global interactions). Explain how to integrate positional embeddings with convolutional feature maps, benefits in sample efficiency and trade-offs in compute and latency.
MediumTechnical
22 practiced
Implement a knowledge distillation training loop in PyTorch where a small student CNN learns from a large pretrained teacher. Show how to compute softened probabilities with temperature T, combine cross-entropy with labels and KL divergence between softened logits, and schedule alpha mixing between distillation and label loss.
HardTechnical
21 practiced
Explain dilated (atrous) convolutions and how they increase receptive field without pooling. Describe common use cases such as semantic segmentation and audio models, and implement a small PyTorch dilated conv block showing how to set dilation and compute the effective receptive field and output size.
HardTechnical
22 practiced
A CNN training run behaves normally for 3 epochs then suddenly the training loss diverges and validation accuracy collapses. Provide a systematic debugging checklist covering data corruption, label noise or leakage, optimizer and LR schedule issues, exploding gradients, BatchNorm running stats, random seed problems and hardware faults. Propose remediation steps and how to reproduce and isolate the failure.

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.