Compare decoder-only, encoder-only and encoder-decoder models

EasyConcept15 minRSRE

The question

Explain the difference between decoder-only, encoder-only and encoder-decoder transformers. For each, give a task it suits and say why most large language models today are decoder-only.

What the interviewer is looking for

  • Explains attention masks: bidirectional for encoders, causal for decoders
  • Explains training objectives: masked language modeling versus next token prediction
  • Gives good task matches such as classification and retrieval for encoders, generation for decoders, translation for encoder-decoder
  • Gives reasons for decoder-only scaling: one objective for all text, simple generation, strong in-context learning

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported NVIDIA (Research and AI engineering) question type: Compare LLM architecture families such as decoder-only and encoder-only models.

Reported in: interviewquery.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official NVIDIA (Research and AI engineering) question.