Deep learning depth: transformers, encoder-decoder models and optimizers
HardConcept30 minASRSPro outline
The question
Walk me through a transformer block in detail. When would you choose an encoder-decoder model over a decoder-only one?
Then compare SGD with momentum, Adam and AdamW. Why is AdamW the usual choice for transformers, and what does learning rate warmup do?
What the interviewer is looking for
- Explains attention, feed-forward, residuals and layer norm with shapes
- Knows pre-norm versus post-norm and why pre-norm trains more stably
- Picks encoder-decoder for tasks with a clear input and output such as translation
- Explains Adam's per-parameter scaling and AdamW's decoupled weight decay
- Explains warmup as a fix for large early updates while Adam's estimates settle
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Amazon (Applied Scientist / AGI) question type: Deep learning depth: transformer architecture, optimizers, encoder-decoder models, and when different models fit.
Reported in: interviewquery.com, medium.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Amazon (Applied Scientist / AGI) question.