Prev Next

AI / LLM Basics Interview Questions

What is an Encoder-Decoder model?

An Encoder-Decoder model combines both halves of the original Transformer design, an encoder that processes the full input, and a decoder that generates output text based on that encoded understanding.

  • The encoder builds a rich representation of the entire input sequence first
  • The decoder then generates output text step by step, attending both to previously generated tokens and to the encoder's representation of the input
  • Well suited to tasks with a clear input-to-output transformation, like translation or summarization

This was the original Transformer architecture from 2017, and while decoder-only designs have become more dominant for general-purpose LLMs, encoder-decoder models remain a strong fit for tasks structured as a clear input-to-output transformation.

What two components make up an Encoder-Decoder model?
What kind of task is Encoder-Decoder architecture well suited to?

More Related questions...

What is a Large Language Model (LLM)? What are Tokens in an LLM? What is Tokenization? What is Byte-Pair Encoding (BPE)? What is the Vocabulary of an LLM? What is an Embedding in the context of LLMs? Define the Transformer architecture? What is the Attention Mechanism? What is Self-Attention? What is Multi-Head Attention? What is Positional Encoding? What is the purpose of the Feed-Forward Network inside a Transformer block? What is Layer Normalization? What is Causal Masking? Describe the role of Softmax in an LLM's output layer? What is Cross-Entropy Loss? What is the purpose of a Loss Function during LLM training? What is Pretraining in the context of LLMs? What is Fine-Tuning? What is Instruction Tuning? Describe Reinforcement Learning from Human Feedback (RLHF)? What is Alignment in the context of LLMs? Define In-Context Learning? Define Zero-Shot Learning? Define Few-Shot Learning? What is Chain-of-Thought Prompting? What is Prompt Engineering? What is the purpose of a System Prompt? What is a Context Window? What is the Max Tokens parameter? What are Stop Sequences? What is Temperature in LLM sampling? What are Top-k and Top-p Sampling? What is Hallucination in LLMs? What is Perplexity in language modeling? What is Overfitting in the context of training an LLM? What are Parameters in an LLM? What is Quantization? What is Model Distillation? What is a Foundation Model? What is a Decoder-Only model? What is an Encoder-Only model? What is an Encoder-Decoder model? What is a Mixture of Experts (MoE) architecture? What is Retrieval-Augmented Generation (RAG)? How are Embeddings used beyond text generation? What are Guardrails in LLM applications? What is Prompt Injection?
Show more question and Answers...


Comments & Discussions