Save this video free

UUtah CS 6340 NLP | Fall 2026 | BPE Tokenizer (Part 1)

UofU Data Science · 1:19:32 · Watch on YouTube

Part of University of Utah CS 6340. See all 25 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Subword tokenization breaks text into reusable units between characters and whole words, giving language models a finite vocabulary while retaining a way to represent unfamiliar words. The lecture explains how Byte Pair Encoding (BPE), adapted for NLP by Sennrich and colleagues in 2016, builds that vocabulary by repeatedly merging the most frequent adjacent token pairs, then applies the ordered merges to new text; it also covers character fallback, vocabulary-size tradeoffs, and practical tokenization quirks.

Key takeaways

Chapters

0:00 Course Logistics and Language Structure Questions
6:00 LLM Prompts Become Tokens Before Model Processing
10:00 Why Language Models Need Reusable Text Units
13:00 Whitespace, Morphology, and Character-Level Tokenization
18:00 Subword Tokenization and Pre-Tokenization
22:00 BPE's History and the Practicum Connection
25:00 BPE Training Starts with Words and Characters
32:00 BPE Adds the Most Frequent Adjacent Pair
38:00 Vocabulary Size, Embeddings, and Merge Progress
45:00 Corpus Frequencies, Tie-Breaks, and Tokenizer Quality
51:00 Applying Ordered BPE Merges to New Text
1:00:00 Character Fallback Prevents Unknown-Word Failure
1:08:00 Pretraining Data Includes Code and Multiple Languages
1:11:00 Using Hugging Face Tokenizers and Offsets
1:15:00 Tokenization Quirks in Numbers and Arithmetic

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Okay, I think we can get started. Uh, welcome and welcome back. Um, I will get right into it. I will repeat the things I've said last time in case you weren't here. I know we had this room change. Maybe you haven't seen the announcement so you missed it. Um, long story short, you should check syllabus which is on the canvas. Uh, you should join Patza where we will communicate and there is a website associated with the course. Um and here you can see now the schedule is populating. This is where I'm going to share slides, recordings, readings. So all the materials you need for from lectures are going to be over there. Um just a few things uh please do join uh Piaza because we are going to start

0:49 sending teams over there. So I don't want you to miss anything. So you need to join to not miss anything since uh you know roster is changing in the first two weeks before the drop deadline. I don't want to add all of you because I don't know who's going to stick around. Uh so please do it uh on your own following this link. Um also please fill out this when to meet because I want to schedule office hours around when most of you are available. Uh so please please do me a favor and do that and then yeah read the read the syllabus. All the information that you need to know is um over over there. Any questions before we uh move on with the new lecture? Okay. I don't see anyone. Oh, yes,

1:37 please. Um this was just something I was thinking about um based on Monday's >> uh where like you talked about other languages and syntactic rules and using

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.