InterviewStack.io LogoInterviewStack.io

Deep Learning and Neural Networks Questions

Foundations and practical considerations of neural networks and deep learning. Includes network structure and components such as input hidden and output layers, activation functions, forward propagation and back propagation, weight initialization, loss functions, and optimization algorithms. Covers common architectures and when to use them, including convolutional neural networks for images, recurrent and sequence models for time series and text, and modern transformer architectures for language and other modalities. Discusses representation learning, data requirements for deep models, regularization techniques, transfer learning and fine tuning, interpretability limitations, and when deep learning is justified versus simpler models.

MediumSystem Design
143 practiced
You must train a 100B-parameter transformer with 8 GPUs per node across 4 nodes. As an AI Engineer propose a distributed training strategy that discusses data parallelism, tensor/model parallelism, pipeline parallelism, optimizer-state sharding (ZeRO), communication backends, and trade-offs in memory and throughput.
MediumTechnical
91 practiced
Explain common learning rate scheduling strategies (step decay, exponential decay, cosine annealing, linear warmup followed by decay). For a transformer trained on large text corpora, recommend a scheduler and justify your choice with respect to stability and convergence.
HardTechnical
70 practiced
A multi-node DistributedDataParallel job intermittently deadlocks/hangs during training. Provide a systematic debugging plan listing possible root causes (NCCL failures, mismatched collective calls, non-deterministic control flow across ranks, buffer size mismatches), tools/commands to diagnose the issue, and practical remediation steps.
EasyTechnical
94 practiced
Transformers are permutation-invariant; explain why positional encoding is necessary. Compare sinusoidal positional encodings with learned positional embeddings, describing pros and cons for transfer learning, extrapolation to longer sequences, and parameter cost.
MediumTechnical
80 practiced
Compare full fine-tuning, head-only fine-tuning, adapters, and LoRA for adapting large pre-trained transformer models. For each approach explain parameter-efficiency, compute and memory costs during training, serving implications, and scenarios where each is preferred in production systems.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.