Skip to main content
All Questions

What are the different Transformer architectures, and how does attention differ across them?

Unlock detailed company stats for this questionUpgrade

Encoder-only, decoder-only and encoder-decoder Transformer architectures: how does the attention mechanism differ across them? Also: where exactly does learning happen (where are the trainable parameters) in a Transformer?

Expect follow-ups like

  • In masked attention, should masking be applied before attention or attention before masking, and why?
  • Where exactly does learning happen (where are the trainable parameters) in a Transformer?

Community answers

No answers contributed by the community yet.

Related courses

Course

Machine Learning Engineer Interview Prep

Land your dream machine learning role at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Explore ML system design, core concepts, coding, behavioral interviews, and more.

Course

Behavioral Interviews: A Practical Guide for Engineers

Get offers at the level you deserve. Prep for senior+ behavioral interviews at FAANG and Tier-1 companies. Made with staff and principal engineers from Meta, Netflix, Google, and more. Avoid downleveling, elevate past projects, and stop sounding like a robot.