InterviewStack.io LogoInterviewStack.io

Neural Network Architectures Questions

Broad coverage of modern and advanced neural network architectures, design principles, and components. Candidates should understand core structural elements such as neurons, layers, weights, biases, activation functions, forward and backward passes, and how architecture choices influence learning. Know a range of architecture families including feedforward networks, convolutional neural networks, recurrent neural networks including long short term memory and gated recurrent unit variants, transformer architectures with self attention and multi head attention, vision transformer adaptations, and graph neural networks. Understand inductive biases that make certain architectures appropriate for particular data modalities, trade offs between depth and width, parameter efficiency and computational complexity, and practical considerations such as initialization, normalization, optimization, and scaling strategies. Be able to explain when to choose one architecture over another for a given problem, how to combine or adapt architectures for domain specific needs, and how modern architecture advances address limitations of prior models.

MediumTechnical
87 practiced
Explain the message passing framework used by graph neural networks. Describe the main components: message function, aggregation, update, and readout. Give examples of graph tasks where GNNs excel and pitfalls like over-smoothing or scalability issues.
MediumTechnical
96 practiced
Implement a 2D convolution forward pass in Python using numpy and the im2col approach for a single input batch and multi-channel input. Your function conv_forward(x, w, stride, padding) should accept x shape (N, C, H, W) and w shape (F, C, HH, WW) and return the output tensor. Aim for clarity and correctness rather than optimizing for speed.
HardTechnical
73 practiced
You are training a 1.5 billion parameter transformer model. Discuss strategies to manage GPU memory usage during training, including mixed precision, gradient checkpointing, ZeRO optimizer sharding, activation offloading, and data parallelism vs model parallelism. Include trade-offs in throughput and engineering complexity.
HardTechnical
81 practiced
Propose a set of metrics and automated interventions to detect and mitigate unstable training runs for deep neural networks, including exploding losses, gradient anomalies, and large generalization gaps. Include examples of programmatic actions to take when thresholds are exceeded.
HardTechnical
82 practiced
Explain the mixture-of-experts (MoE) architecture used to scale model capacity sparsely. Describe gating mechanisms, load balancing, training instabilities, and practical deployment challenges. Under what production scenarios is MoE most beneficial?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.