CS 471/671 (How to grow language models) - #9 - Fall 2026

CS 471/671 (How to grow language models) - #9 - Fall 2026

🎙 CLSP, JHU 👥 4K 📅 September 30, 2026 ⏱ 47 min 👁 275 📄 tutorial 🧭 2026-10-07
Available in: English (current) Français

Keywords

tokenizationbyte pair encodingsubwordOpenAI tokenizernormalization

Summary

This lecture is the ninth session of the CS 471/671 course on growing language models, presented by the Center for Language and Speech Processing at JHU. The instructor recaps previous discussions on tokenization, comparing character, word, and byte-level representations, and motivates the need for subword tokenization. A live demo of OpenAI’s tokenizer is shown, illustrating how common words often become single tokens while rare words are split, numbers are grouped in threes, and spaces can form long tokens up to 128 characters. The full tokenization pipeline is outlined: optional normalization (e.g., Unicode NFKC), pre-tokenization into chunks (typically by spaces), actual tokenization (BPE at training and inference), and post-processing (truncation, padding, special tokens). The core of the lecture is a step-by-step walkthrough of training a BPE tokenizer on a small corpus, showing how frequent pairs are merged iteratively to grow the vocabulary. Questions from students address scalability, efficient counting, and the handling of spaces in pair counting. The lecture combines theoretical explanation with concrete examples, making the algorithm intuitive for learners.

170 words

Critical Evaluation

Value of the Information & Strength of the Argument

VALUE: The lecture provides a solid, practical understanding of tokenization, an often-underappreciated component of language models. Using the OpenAI tokenizer interactively gives concrete insights into real-world behavior, while the hand-coded BPE example clarifies the training mechanism in a way that abstract descriptions rarely achieve. ARGUMENTATION: The argumentation is logical and incremental: it starts by motivating subword tokenization via the drawbacks of character and word levels, then decomposes the pipeline into clearly separated stages, and finally drills down into the BPE algorithm with a traceable example. The instructor addresses student questions on implementation details, such as merging rules and space handling, reinforcing the reasoning behind design choices.

Scientific Rigor, Source Quality, Title Accuracy

SCIENTIFIC RIGOR: The content is based on established algorithms (BPE) and standard NLP practices. The instructor accurately explains trade-offs and openly discusses limitations, such as normalization costs and the arbitrary nature of token boundaries. SOURCES: The only cited external resource is the official course page, which is appropriate. The lecture relies on well-known examples (OpenAI tokenizer) and does not introduce unsupported claims. ADEQUATION TITRE: The title indicates a course on growing language models, and this session on tokenization is a fundamental part of that process; the lecture matches the expected scope, though it is a specific subtopic rather than a broad overview.

223 words

Title / Content Match

The title suggests a course on growing language models; this lecture specifically addresses tokenization, a core component of building language models, so the content aligns well with the course theme.

Quality & Reliability

9/10

University lecture by a reputable institution (JHU CLSP) covering established algorithms (BPE) with clear demonstrations and accurate technical details.

Key Moments

Cited Sources

Contribution & Novelties

This lecture provides an accessible yet thorough introduction to tokenization and BPE, bridging theory and practice. The interactive demo with a real tokenizer and the hand-computed training example offer immediate understanding that typical textbook descriptions may lack. It emphasizes practical considerations like normalization choices and space handling, which are often glossed over.

Pour aller plus loin :

  • Byte pair encoding — Foundational algorithm behind subword tokenizers; the lecture’s core topic.
  • Subword tokenization — Broader context; includes BPE, WordPiece, and SentencePiece.
  • Unicode normalization — Mentioned in the lecture as an optional pre-tokenization step; explains NFKC and related forms.

97 words

Radar Profile

The profile shows balanced strengths: high information quantity and quality, with strong technical depth and reliability. The lecture excels in explaining a complex algorithm clearly, making it a valuable resource for learners.

Reliability 9/10