decoding
Applied AI interview questions tagged decoding, across every topic.
8 questions · 2 unlocked for you
Concepts behind "decoding"
The curriculum that explains the ideas these questions test.
Core
Temperature and SamplingAt each step a model outputs a probability distribution over the next token; how you pick from it is decoding. Temperature reshapes the distribution (low sharpens toward the most likely token, high flattens it), while top-k and top-p (nucleus) truncate the tail before sampling. The choice sets the trade-off between deterministic, focused output and diverse, creative output. Applied-AI interviews probe it because the right decoding settings differ sharply between factual/extraction tasks and creative ones, and because reproducibility depends on them.🧠 Foundations of LLMs & GenAISign in
Core
Speculative DecodingDecoding is sequential and memory-bound, so generating each token one at a time underuses the GPU. Speculative decoding uses a small, fast draft model to propose several tokens ahead, then the large model verifies them all in a single parallel pass, accepting the longest correct prefix. It speeds up generation with no change to output quality, since the big model still validates every token. Applied-AI interviews probe it because it is a clever, widely-used latency optimization that exploits the memory-bound nature of decode.🖥️ ML Infrastructure & ServingSign in
