Deep Learning Interview Questions: Fundamentals
These questions are asked in most deep learning interviews. Read the answers, then try to explain each one in your own words.
1. What is deep learning and how is it different from machine learning?
Deep learning is a part of machine learning that uses neural networks with many layers. Classic machine learning often needs hand-made features, while deep learning learns features automatically from raw data such as pixels or text. It needs more data and computing power.
2. What is a neuron?
A neuron multiplies its inputs by weights, adds a bias and passes the sum through an activation function to produce an output.
3. Why do we need activation functions?
Without them, a network of many layers is equal to one linear function. Activation functions add non-linearity, so the network can learn complex patterns.
4. Compare ReLU, sigmoid, tanh and softmax.
ReLU (max of 0 and x) is fast and the default for hidden layers. Sigmoid outputs 0 to 1 and is used for binary output. Tanh outputs -1 to 1. Softmax turns scores into probabilities that sum to 1 for multi-class output.
5. What is the vanishing gradient problem?
In deep networks with sigmoid or tanh, gradients become very small as they move backward, so early layers learn very slowly. It is reduced by ReLU, good initialization, batch normalization and residual connections.
6. What is backpropagation?
It is the algorithm that computes the gradient of the loss with respect to every weight by applying the chain rule from the output layer backward. The optimizer then uses these gradients to update the weights.
7. What is the difference between an epoch, a batch and an iteration?
An epoch is a full pass over the training data. A batch is the group of samples used for one update. An iteration is one update step. With 1000 samples and batch size 100, one epoch has 10 iterations.
8. What is the learning rate and what happens if it is too high or too low?
It controls the step size of weight updates. Too high causes unstable or diverging loss. Too low makes training very slow or stuck.
9. What is overfitting and how do you prevent it?
Overfitting means the model memorizes training data and performs poorly on new data. Prevent it with more data, data augmentation, dropout, L2 regularization, early stopping and a smaller model.
10. What is dropout?
During training, dropout randomly sets a fraction of neuron outputs to zero. This stops neurons from depending on each other and acts as regularization. It is turned off at inference.
11. What is batch normalization?
It normalizes the outputs of a layer for each mini-batch and then scales and shifts them with learned parameters. It speeds up and stabilizes training.
12. Which loss functions do you use for regression and classification?
Regression: mean squared error or mean absolute error. Binary classification: binary crossentropy. Multi-class: categorical or sparse categorical crossentropy.
13. What is the difference between SGD and Adam?
SGD updates weights using the gradient of a mini-batch with one learning rate. Adam also keeps moving averages of gradients and squared gradients, which gives each weight an adaptive step size. Adam usually converges faster and is a good default.
14. Why do we split data into training, validation and test sets?
Training data is used to learn, validation data to tune and detect overfitting, and test data for a final unbiased score.
15. When is accuracy a poor metric?
With imbalanced data. A model that always predicts the majority class can have high accuracy but no usefulness. Use precision, recall, F1 and the confusion matrix.
16. What is a hyperparameter?
A setting chosen before training, such as learning rate, number of layers, batch size and dropout rate. Weights are parameters learned during training.
Conclusion
Master these 16 questions and you can handle most fundamental rounds.

