Save this video free

Training neural language models

Mohit Iyyer · 1:10:36 · 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 learn next-word predictions through a three-step training loop: compute negative log-likelihood loss, calculate gradients with backpropagation, and update parameters using gradient descent. Using an RNN and a scalar toy network, he connects cross-entropy to one-hot training targets, demonstrates how backpropagation reuses intermediate derivatives, and explains why recurrent models need backpropagation through time; he also contrasts sequential RNN computation with the parallelism of transformers.

Key takeaways

Chapters

0:00 Course Project Logistics and Upcoming Deliverables
4:00 RNN Recap: Predicting the Next Word from a Prefix
6:30 RNNs Predict at Every Position with Shared Softmax Weights
10:00 Batches Expose the RNN’s Sequential Computation Limit
11:30 Model Parameters Versus Input-Dependent Hidden States
15:00 Random Initialization Creates the Need for Training
18:00 Gradient Descent: Loss, Gradients, and Parameter Updates
28:00 Learning Rates and the Shape of the Loss Surface
34:00 Negative Log-Likelihood Scores the Observed Next Word
37:00 Cross-Entropy Reduces to One-Hot Negative Log-Likelihood
44:00 Repeated Prefixes Teach Frequency and Contextual Similarity
48:00 Backpropagation Applies the Calculus Chain Rule Backward
54:00 A Scalar Network Shows Forward Propagation and the W₂ Gradient
1:05:00 W₁ Gradients, Recurrent Backpropagation, and the Training Loop

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

Transcript excerpt

0:13 All right, let's get started everyone. So today, um, we're going to be talking about training neural language models. All right, let's get started. Um, so I messed up the YouTube. So, um, I think this CL this lectures YouTube will just probably be a recording that you can uh watch later. Um, okay. So, first thing, some logistics. Uh, your final project group assignments should all be um released. So, everyone should have gotten an email with their group members. And uh from here on out you are expected to coordinate amongst

1:00 yourselves for the proposal and uh project report deliverables. Um if you didn't get such an email um please either see me or send an Piaza post or email to the instructor's account and we'll get that sorted for you. um just as uh some um you know information for your projects. Each of the uh groups is going to have one of the TAs or myself as a primary mentor. So uh whoever is your primary mentor will follow your project throughout the course of the semester. You can come to anyone's office hours to talk about your project, but um the person in who's like responsible for overseeing your and

1:49 grading your projects will likely be able to give you the most fine grade and feedback. Um okay, so the next deliverable for the project is the proposal, which is due in a couple of weeks, two or three weeks. Um that's not a lot of time. Uh we're hoping that you can you know do some reading on your own within your group to figure out topics of interest. Feel free to come to our office hours to discuss the feasibility of your project ideas and we can give you some feedback to help uh guide the design before you

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.