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).

EasyTechnical
73 practiced
Describe the mathematical model of a single artificial neuron (perceptron). Include the role of weights, bias, the linear combination, and the activation function. Provide the formal equation, explain how the neuron computes its output and how it implements a decision boundary for binary classification, and state the perceptron's limitation with non-linearly-separable data.
EasyTechnical
72 practiced
Explain backpropagation conceptually using the chain rule. Describe the forward pass and backward pass, what intermediate values must be cached during forward propagation, and how gradients for weights and biases are computed layer by layer. Provide a short scalar example (for instance y = (wx + b)^2) and compute derivatives manually to illustrate.
HardSystem Design
126 practiced
Design a production inference architecture for transformer-based LLMs that supports both low-latency single-request serving (~50 ms tail latency for short contexts) and high-throughput batched inference for offline workloads. Discuss model sharding, KV-cache strategies, mixed-precision, quantization, batching heuristics, caching hot responses, autoscaling, and orchestration between CPU and GPU resources.
EasyTechnical
108 practiced
Explain regularization techniques commonly applied in neural networks: L1/L2 weight penalties (weight decay), dropout, early stopping, and data augmentation. For each technique describe how it affects training, generalization, and any interactions with optimizer or batchnorm layers.
HardTechnical
85 practiced
Implement the backward pass for scaled dot-product attention (single head) in numpy. Given Q, K, V matrices of shapes (B, T, d_k) and an upstream gradient dOut of shape (B, T, d_k) with attention computed as Out = softmax(QK^T / sqrt(d_k)) V, derive and implement steps to compute dQ, dK, dV efficiently. Discuss numerical stability of the softmax gradient.

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.