Save this video free

Composition and decoding in neural language models

Mohit Iyyer · 1:11:01 · Watch on YouTube

Part of University of Maryland CMSC 723. See all 20 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

Mohit Iyyer explains how neural language models turn word embeddings into a prefix representation, then use a softmax distribution to score or generate the next token. He compares greedy, ancestral, top-k, and top-p decoding with sum or average pooling, Bengio et al.'s 2003 fixed-window model, and recurrent neural networks, showing how weight sharing helps RNNs while sequential computation motivates transformers.

Key takeaways

Chapters

0:00 Composition and Decoding: The Neural Language Model Roadmap
2:00 Softmax Probabilities for Scoring Next-Word Predictions
9:56 Decoding Turns Next-Token Probabilities into Generated Text
11:40 Greedy Decoding Selects the Highest-Probability Token
17:50 Ancestral Sampling and Top-k Truncated Decoding
21:22 Top-p Nucleus Sampling Adapts to Distribution Uncertainty
25:16 The Composition Pipeline Maps Token Embeddings to a Prefix Vector
30:54 Sum and Average Pooling Discard Word Order
34:10 Bengio et al.'s 2003 Fixed-Window Neural Language Model
37:56 Hidden Layers, Hyperparameters, and Model Capacity
45:00 ReLU and tanh Make Deep Neural Layers Nonlinear
49:56 Fixed Windows Limit Context and Duplicate Position-Specific Weights
59:56 RNNs Read Prefixes Left to Right with a Shared Update
1:07:06 RNN Weight Sharing Comes at the Cost of Sequential Computation

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

Transcript excerpt

0:01 Okay, let's get started. So today we are going to continue with our um lecture on neural language models. So last time we discussed the um embeddings as well as the softmax layer. So the input and output embeddings of a neural language model. Today we'll talk about the middle part of the um the model which is the composition step. So how we go from a bunch of different word embeddings associated with the input to a single representation of the um input that we then feed into the softmax layer. Um so we'll talk about that but also the decoding step of a neural language model which is how do we go

0:50 from the predicted probability distribution over the next word to um you know generating a long piece of text from one of these models. All right. Um before we get into that some logistics. Uh so today is the deadline to submit your project group assignments if you want to do that. Um if not we will just randomly assign you to a group and uh what we do is uh when we complete all the group formation we will send one email CCing all the members of your group. So um you can then start organizing amongst yourselves and setting up meetings and plans and stuff like that. Okay, any questions on that? All right. Uh, your homework zero is

1:40 also due in a couple days. Um, so, uh, if you're not already on grade scope, please send us an email. I think we added everyone that, um, joined the class late, but if you're still not on for whatever reason, email the instructor's account and we will get you added. All right. So um let us uh kind of um talk about where we left off, right? We

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, Mohit Iyyer.

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.