LLM & Transformer Fundamentals·Question 97 of 109Quick-fire

What challenges arise from the fixed and limited attention span in the vanilla Transformer model? How does this limitation affect the model's ability to capture long-term dependencies?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

  • Answer
Full worked answer
  • Answer

    The vanilla Transformer model has a fixed attention span, typically limited by the maximum sequence length it can process, which poses challenges in capturing long-term dependencies in extensive texts. This limitation stems from the quadratic complexity of the self-attention mechanism with respect to sequence length, leading to increased computational and memory requirements for longer sequences.

    This limitation affects the model's ability in several ways:

    Difficulty in Processing Long Documents: For tasks such as document summarization or long-form question answering, the model may struggle to integrate critical information spread across a large document.

    Impaired Contextual Understanding: In narrative texts or dialogues where context from early parts influences the meaning of later parts, the model's fixed attention span may prevent it from fully understanding or generating coherent and contextually consistent text.

What a good answer covers

  • The vanilla Transformer model has a fixed attention span, typically limited by the maximum sequence…
  • This limitation stems from the quadratic complexity of the self-attention mechanism with respect to…
  • Difficulty in Processing Long Documents
  • Impaired Contextual Understanding

Key terms: Difficulty in Processing Long Documents · Impaired Contextual Understanding

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep