Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

C5W3L04 Refining Beam Search

19.8K views
•
February 5, 2018
by
DeepLearningAI
YouTube video player
C5W3L04 Refining Beam Search

TL;DR

Length normalization is a modification to the beam search algorithm that improves its performance by reducing the penalty for longer translations.

Transcript

in the last video you saw the basic beam search algorithm in this video you learn some little changes that make it work even better length normalization is a small change to the beam search algorithm that can help you get much better results here's what it is we talked about beam search as maximizing this probability and this product here is just e... Read More

Key Insights

  • 😁 Logarithmic transformation improves numerical stability in beam search algorithms.
  • 😁 Length normalization helps overcome the bias towards shorter translations in beam search.
  • 😁 The choice of beam width (B) affects the trade-off between accuracy and computational cost in beam search.
  • 😁 For research purposes, very large beam widths may be used, but there are diminishing returns in terms of performance improvement.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the problem with multiplying probabilities in beam search?

Multiplying probabilities, especially when they are small, can lead to numerical underflow due to the limited accuracy of floating-point representations. To avoid this, log probabilities are used instead to maintain numeric stability.

Q: How does taking logs of probabilities help in beam search?

Taking logs of probabilities converts the product of probabilities into a sum of logarithms, which is more computationally stable and less prone to rounding errors or numerical underflow. Maximizing log probabilities achieves the same result as maximizing probabilities.

Q: Why does the original objective function tend to favor shorter translations?

The original objective function in beam search tends to favor shorter translations because multiplying fewer probabilities leads to a less significant decrease in overall probability. This biases the algorithm towards shorter outputs.

Q: How does length normalization address the issue of favoring shorter translations?

Length normalization divides the objective function by the number of words in the translation, reducing the penalty for longer translations. It can also be adjusted using a parameter alpha to find a balance between normalization and no normalization.

Summary & Key Takeaways

  • In this video, the speaker explains the concept of beam search and how it can be improved by using length normalization.

  • Beam search involves maximizing the probability of a sentence given an input, using a product of probabilities.

  • Length normalization addresses the issue of favoring shorter translations by taking the average log probability of each word in the translation.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from DeepLearningAI 📚

Vectorizing Logistic Regression's Gradient Computation (C1W2L14) thumbnail
Vectorizing Logistic Regression's Gradient Computation (C1W2L14)
DeepLearningAI
DeepLearning.AI NLP Learner Community Event ft. Luis Alaniz thumbnail
DeepLearning.AI NLP Learner Community Event ft. Luis Alaniz
DeepLearningAI
#33 Machine Learning Specialization [Course 1, Week 3, Lesson 1] thumbnail
#33 Machine Learning Specialization [Course 1, Week 3, Lesson 1]
DeepLearningAI
Train/Dev/Test Sets (C2W1L01) thumbnail
Train/Dev/Test Sets (C2W1L01)
DeepLearningAI
Pathways in Machine Learning/Data Science thumbnail
Pathways in Machine Learning/Data Science
DeepLearningAI
How to Build and Evaluate LLM Agents Effectively thumbnail
How to Build and Evaluate LLM Agents Effectively
DeepLearningAI

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.