InterviewStack.io LogoInterviewStack.io

Deep Learning: Neural Networks and Architectures Questions

How deep neural networks are built and trained. Covers network fundamentals, activation functions and non-linearity, loss function selection, backpropagation, optimization and learning-rate behavior, and diagnosing vanishing or exploding gradients, along with the major architecture families: convolutional networks for images and recurrent networks, LSTMs, and GRUs for sequences. Emphasizes both how to train deep networks stably and how to match an architecture family to the structure of the data.

MediumTechnical
82 practiced

Implement a numerically-stable combined softmax and cross-entropy loss (with gradient) in NumPy, given batched logits and integer labels, explaining how the log-sum-exp trick avoids overflow/underflow.

MediumTechnical
87 practiced

Compare pretraining objectives used in representation learning: supervised pretraining, contrastive learning, masked modeling, and generative modeling. For image and text modalities, discuss which objectives fit best and the downstream adaptation cost.

HardTechnical
100 practiced

Explain the double descent phenomenon in deep learning: the two regimes (the classical bias-variance curve and the interpolation-peak-then-descent), and its practical implications for choosing model size, training length, and regularization.

EasyTechnical
86 practiced

Implement a vanilla RNN cell's forward pass in NumPy (batched), and a function that runs the cell over a full sequence, returning all hidden states.

EasyTechnical
146 practiced

Why do neural networks require non-linear activation functions? Show with a short argument why stacking only linear layers collapses to a single linear transform, and give a concrete task (e.g. XOR) that a purely linear network cannot solve.

Unlock Full Question Bank

Get access to all Deep Learning: Neural Networks and Architectures interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.