InterviewStack.io LogoInterviewStack.io

Neural Network Fundamentals Questions

Core concepts and building blocks of artificial neural networks including neuron models, network layers and layer types (dense fully connected, convolutional, recurrent, and transformer blocks), activation functions and their properties (for example ReLU, sigmoid, tanh, GELU), forward propagation, loss functions, and the basics of optimization such as gradient descent. Explain backpropagation conceptually and mathematically using the chain rule, describe forward and backward passes, and discuss common practical issues such as vanishing and exploding gradients, weight initialization, regularization techniques, and when specific architectures are appropriate for particular problem domains (for example convolutional networks for vision and sequence models for temporal data).

HardTechnical
99 practiced
Explain the scaled dot-product attention mechanism used in transformers. Provide the mathematical formula Attention(Q,K,V) = softmax(QK^T / sqrt(d_k)) V, explain why the 1/sqrt(d_k) scaling is used, and describe multi-head attention intuitively and in terms of dimension splits and concatenation.
HardTechnical
101 practiced
Write a Python function that computes the receptive field size of a single output neuron after applying a sequence of convolutional / pooling layers. The function should accept lists of kernel sizes k_i, strides s_i, paddings p_i, and dilations d_i and return the receptive field and total effective stride. Explain the algorithm and its time complexity.
MediumTechnical
88 practiced
Conceptually explain how backpropagation implements the chain rule across a multi-layer network. Using a small MLP (Input → W1,b1 → σ → W2,b2 → L), show the recursive relation for δ_l and the vectorized formula used in implementations.
HardSystem Design
91 practiced
Design a full ML training and deployment pipeline for an image classification model. Include data ingestion, preprocessing/versioning, training (experimentation, hyperparameter tracking), validation, CI/CD for model packaging, canary/capacity-aware rollout, A/B testing, monitoring and retraining triggers. Explain how you'd handle data drift, model rollback, and metric governance in production.
HardTechnical
145 practiced
Explain Xavier (Glorot) and He (Kaiming) initialization: derive the intuition and show the formulas for variance-preserving initialization for both uniform and normal distributions. Explain which to use with tanh/sigmoid vs ReLU/LeakyReLU and why.

Unlock Full Question Bank

Get access to hundreds of Neural Network Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.