PracHub
QuestionsLearningGuidesInterview Prep
|Home/Machine Learning/Point72

Explain Transformer Encoder and Decoder Behavior

Last updated: May 2, 2026

Quick Overview

This question evaluates knowledge of Transformer architecture and generative language modeling, specifically the encoder versus decoder roles, attention patterns and causal masking, plus mechanisms behind stochastic text generation such as sampling and temperature.

  • medium
  • Point72
  • Machine Learning
  • Machine Learning Engineer

Explain Transformer Encoder and Decoder Behavior

Company: Point72

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Answer the following Transformer fundamentals questions in a machine learning interview: 1. What are the main differences between a Transformer encoder and a Transformer decoder? Your answer should discuss attention patterns and the role of a causal mask. 2. For the same input prompt, why can an autoregressive decoder-based language model produce different outputs on different runs? Discuss sampling, temperature, and when generation would be deterministic.

Quick Answer: This question evaluates knowledge of Transformer architecture and generative language modeling, specifically the encoder versus decoder roles, attention patterns and causal masking, plus mechanisms behind stochastic text generation such as sampling and temperature.

Related Interview Questions

  • Explain How L1 and L2 Regularization Change Linear-Model Coefficients - Point72 (medium)
  • Design Features for Residual Volatility - Point72 (medium)
  • Compute Gaussian Probability and Regression Coefficients - Point72 (medium)
  • Design a News-Filtering Prompt - Point72 (medium)
|Home/Machine Learning/Point72

Explain Transformer Encoder and Decoder Behavior

Point72 logo
Point72
Mar 6, 2026, 12:00 AM
mediumMachine Learning EngineerTechnical ScreenMachine Learning
4
0

Answer the following Transformer fundamentals questions in a machine learning interview:

  1. What are the main differences between a Transformer encoder and a Transformer decoder? Your answer should discuss attention patterns and the role of a causal mask.
  2. For the same input prompt, why can an autoregressive decoder-based language model produce different outputs on different runs? Discuss sampling, temperature, and when generation would be deterministic.
Loading comments...

Browse More Questions

More Machine Learning•More Point72•More Machine Learning Engineer•Point72 Machine Learning Engineer•Point72 Machine Learning•Machine Learning Engineer Machine Learning

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

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

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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.