Common Deep Learning Architectures Questions
Familiarity with CNNs for images, RNNs/LSTMs for sequences, attention mechanisms, and Transformers for NLP. Understanding when and why to use each. Basic knowledge of pre-trained models and transfer learning.
MediumTechnical
143 practiced
Compare quantization-aware training (QAT) vs post-training quantization (PTQ) for shrinking Transformers for CPU inference. Discuss trade-offs in accuracy, calibration requirements, per-channel vs per-tensor quantization, expected latency improvements, and when to prefer QAT over PTQ in a production pipeline.
MediumTechnical
92 practiced
Implement a multi-head attention module in PyTorch as an nn.Module. Inputs: queries, keys, values shaped (batch, seq_len, d_model), number of heads; include scaled dot-product attention, dropout, and return the projected output with correct shape. Focus on correct shape handling, masking support, and numerical stability.
HardTechnical
87 practiced
You're deciding how to scale model performance given limited compute and data: options include increasing depth, width, dataset size, or compute budget (longer training). Using empirical scaling-law thinking, describe how you'd estimate expected returns, plan data acquisition or synthetic data generation, compute budget forecasting, and recommend a practical scaling path for a mid-stage startup constrained by both compute and labeled data.
HardTechnical
92 practiced
Explain gradient checkpointing (activation checkpointing): describe how it reduces activation memory by trading compute, how to choose checkpoint placement in a Transformer stack, and how it interacts with mixed precision and optimizer sharding. Provide rough estimates of memory savings vs compute overhead for N-layer models.
MediumTechnical
71 practiced
Given a pre-trained CNN and a small domain-specific dataset (1,000 images, 5 classes), propose transfer learning strategies: feature extraction, fine-tuning last N layers, and gradual unfreezing. Explain how to pick which layers to train based on domain similarity, how to choose learning rates per layer, and how to validate the approach in production.
Unlock Full Question Bank
Get access to hundreds of Common Deep Learning Architectures interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.