PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Dandy

Why do transformers struggle with long context?

Last updated: Apr 20, 2026

Quick Overview

This question evaluates understanding of transformer architectures, attention mechanisms, and scalability trade-offs, assessing competencies in computational complexity, memory usage, and system-level performance implications.

  • medium
  • Dandy
  • Machine Learning
  • Machine Learning Engineer

Why do transformers struggle with long context?

Company: Dandy

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: HR Screen

In a transformer-based model, why is it difficult to process very long input context? Explain the main challenges in terms of computation, memory usage, attention behavior, and training or inference efficiency. Briefly mention common techniques used to reduce these problems.

Quick Answer: This question evaluates understanding of transformer architectures, attention mechanisms, and scalability trade-offs, assessing competencies in computational complexity, memory usage, and system-level performance implications.

Related Interview Questions

  • Explain ML fundamentals (activations, CV, vision, sorting) - Dandy (medium)
Dandy logo
Dandy
Apr 5, 2026, 12:00 AM
Machine Learning Engineer
HR Screen
Machine Learning
6
0

In a transformer-based model, why is it difficult to process very long input context? Explain the main challenges in terms of computation, memory usage, attention behavior, and training or inference efficiency. Briefly mention common techniques used to reduce these problems.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Dandy•More Machine Learning Engineer•Dandy Machine Learning Engineer•Dandy Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.