PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Amazon

Explain surprisal and its units

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of probabilistic information measures in language modeling, specifically the concept of surprisal, its units, and its relationship to evaluation metrics such as cross-entropy and perplexity within the Machine Learning/NLP domain.

  • medium
  • Amazon
  • Machine Learning
  • Machine Learning Engineer

Explain surprisal and its units

Company: Amazon

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

You are discussing a language-modeling / NLP project. The interviewer asks about **surprisal**. 1. Define *surprisal* for an event/token with probability \(p\). 2. What are the possible **units** of surprisal (analogous to meters for distance), and what determines the unit? 3. How is surprisal related to **cross-entropy** and **perplexity** in language modeling? 4. What common pitfalls or misunderstandings arise when interpreting surprisal values?

Quick Answer: This question evaluates understanding of probabilistic information measures in language modeling, specifically the concept of surprisal, its units, and its relationship to evaluation metrics such as cross-entropy and perplexity within the Machine Learning/NLP domain.

Related Interview Questions

  • Predicting the Next Elevator Call Location - Amazon (medium)
  • Explain Transformer and MoE Fundamentals - Amazon (medium)
  • Explain Core ML Interview Concepts - Amazon (hard)
  • Evaluate NLP Classification Models - Amazon (easy)
  • Explain overfitting, regularization, and LLM techniques - Amazon (medium)
Amazon logo
Amazon
Nov 20, 2025, 12:00 AM
Machine Learning Engineer
Technical Screen
Machine Learning
3
0

You are discussing a language-modeling / NLP project. The interviewer asks about surprisal.

  1. Define surprisal for an event/token with probability ppp .
  2. What are the possible units of surprisal (analogous to meters for distance), and what determines the unit?
  3. How is surprisal related to cross-entropy and perplexity in language modeling?
  4. What common pitfalls or misunderstandings arise when interpreting surprisal values?

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Amazon•More Machine Learning Engineer•Amazon Machine Learning Engineer•Amazon Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 8,000+ 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.