Save this video free

Neural language models

Mohit Iyyer · 1:12:40 · 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 introduces neural language models as trainable alternatives to n-gram models, which assign zero probability to unseen sequences and cannot naturally share information between related words. He explains the pipeline from token embeddings through a fixed-size prefix representation to vocabulary-wide logits and softmax probabilities, with the whole model trained by gradient descent to reduce negative log likelihood and generalize to test data.

Key takeaways

Chapters

0:00 Course Project Scope and Practical Compute Limits
2:00 Post-Training and Language-Model Agent Project Ideas
7:00 From N-Gram Counts to Neural Language Models
10:00 Test-Set Generalization and Perplexity
14:00 Why N-Gram Models Need Smoothing
17:00 The Three-Stage Neural Language-Model Pipeline
24:00 One-Hot Vectors Cannot Capture Word Similarity
30:00 Dense Embeddings Share Information Across Words
35:00 How Training Shapes Embeddings
42:00 Turning a Prefix Representation into Next-Token Scores
48:00 The Output Weight Matrix Projects Prefixes to Vocabulary Scores
54:00 Input Embedding Matrix, Output Embeddings, and Logits
1:00:00 Softmax Converts Logits into Next-Token Probabilities
1:06:00 Parameter Updates, Position Information, and the Next Lecture

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

Transcript excerpt

0:03 Okay, let's get started everyone. So, today we've got a lot of stuff to cover. Um first we'll talk um briefly about the final project and um very highlevel um categories of ideas that you might want to consider pursuing um based on what people did last year and what kind of resources you have available. Then we will get started with our multi- lecture unit on um neural language models. So today we will cover um like the overall modules in building a neural language model and start talking about um embeddings and um how to predict a word

0:53 given um the embeddings. Uh next class we will talk about uh forward propagation and we'll start talking about back propagation and actual like gradient descent training one of these models and then we will um increase the complexity of our architectures start talking about recurrent neural language models and transformers and uh beyond. So that's kind of where we're going. Um the class will start to uh pick up in pace after we start um this um kind of set of topics and um we'll kind of try and get to the state-ofthe-art as quickly as possible. Okay. So before we talk about all of

1:41 that, let's talk about um project topics. So many of you are wondering about this. Um we obviously want you to submit your project proposals um you know in uh three weeks or something like that. So you don't have that much time and um you're not going to have like learned a lot of stuff in this class before we ask you to propose a topic. So, we do expect that you will take the time uh outside of class to research yourself uh potential topics for the uh project. Um discuss it among

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.