Save this video free

UUtah CS 6340 NLP | Fall 2026 | seq2seq & attention

UofU Data Science · 55: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

The lecture derives dot-product attention for RNN encoder-decoder sequence-to-sequence models, showing how decoder states use softmax-normalized scores over every source position to build a step-specific context vector. It connects attention to translation alignments, explains the training objective and gradient flow, and frames attention as a core idea behind Transformers while warning that attention visualizations are not causal explanations.

Key takeaways

Chapters

0:00 From RNN Sequence-to-Sequence Models to Attention
2:28 The Encoder-Decoder Bottleneck for Long Inputs
5:56 Dot-Product Scores and Context Vectors in Translation
14:18 Attention Maps, Translation Alignments, and Their Limits
18:25 Sequence-to-Sequence Training Data and Encoder Equations
26:25 Formal Attention Scores and Softmax Normalization
30:50 Context-Conditioned Decoder States and Token Prediction
34:20 Backpropagation, Teacher Forcing, and Negative Log-Likelihood
43:45 Concatenation, Output Weights, and Parameter Initialization
51:07 Attention's 2015 Impact and General Query-Value View
55:11 Attention as a Selective Summary and Quiz Break

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

Transcript excerpt

0:14 All right. Good afternoon everyone. Uh we are going to take quiz somewhere in the middle of the lecture. I will f first finish what I wanted to say last time. Then we are going to take the quiz and as always see how much time we have left and if there is more we are going to start finally talking about uh the transformer. Um there might be the case I said something that's wrong last time. Uh so thanks Priya is it? Um I I will send a clarification about that but uh yeah not not just yet. Okay. So just as a reminder last time we were talking about um you know last two lectures we were talking about using RNN's to do language modeling and then doing sequence to sequence which today we also

1:02 refer to just as language modeling uh although it's previously what we were referred to as conditional language model and sequence to sequence problems are basically um any any anytime you use CH GPD it's a sequence to sequence problem you give some prompt and you generate something uh from it. Um okay. So today I'm going to uh uh go over another foundational concept that's needed to kind of um understand where the ideas that make the transformer architecture which is still uh the standard architecture we use uh for large language model. We want to understand where these ideas came from. So you will see as we jump into transformer we are going to say immediately it's encoder decoder

1:49 architecture exactly like encoder decoder RNN that we are using to for seek to seek problems. So great we are already familiar with that uh idea uh and now I'm going to introduce attention and you will see that a lot of

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.