Save this video free

UUtah CS 6340 NLP | Fall 2026 | LLM efficiency: Mixture-of-Experts & Attention variants

UofU Data Science · 1:21:57 · 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 explains how Mixture-of-Experts (MoE) feed-forward layers and newer attention variants reduce transformer inference compute or memory, especially for long reasoning traces and agent contexts. MoE activates a learned top-k subset of experts per token, while Multi-Query Attention, Grouped-Query Attention, Multi-Head Latent Attention, sliding-window and sparse attention, and linear-attention hybrids target KV-cache growth and sequence-length costs; these techniques trade off training expense, memory, speed, and long-context quality.

Key takeaways

Chapters

0:00 Course Wrap-Up and the Efficiency Lecture’s Focus
4:10 Mixture-of-Experts Replaces Dense Feed-Forward Layers
8:10 Learned Top-k Routing Selects Experts for Each Token
19:19 MoE Results: Stronger Quality per Active Parameter
24:59 Routing Collapse and Auxiliary Load-Balancing Loss
30:38 DeepSeek Balancing and Fine-Grained Expert Designs
35:30 MoE Model Examples and Training-versus-Inference Costs
38:30 Multi-Query and Grouped-Query Attention Reduce KV Heads
44:10 DeepSeek Multi-Head Latent Attention Compresses the KV Cache
50:10 Sliding-Window and DeepSeek Sparse Attention Limit Context Reads
54:58 MoE’s Inference Savings Do Not Reduce Total Training Scale
1:00:21 Linear Attention Recasts Attention as a Recurrent Computation
1:08:30 Hybrid Linear Attention Improves Long-Sequence Throughput
1:13:31 Attention Complexity and the Efficiency Lecture Recap
1:16:14 Memory Levers: Quantization, LoRA, and KV-Cache Variants
1:18:56 GPU Memory Example: Quantization Enables Larger Batches
1:20:36 Prefill, Speculative Decoding, and Faster Token Generation

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

Transcript excerpt

0:00 Okay. Uh we are ready to start. Um how was your little break? Was it nice? >> Yeah. Good. Um okay. Um today we have another a little bit on steroids lecture with a lot of new technical advancement. You should think of today's lecture as a springboard to learn more about different things. I have very basic knowledge of what I'm going to teach you today. It's very recent. Uh the content of today's lecture. Um so since it's not my area of research, I didn't go too deep uh into it. So I'll give you some basic information and then uh you can kind of deep d have a deep dive in

0:49 whatever uh of the multiple topics we are going to uh cover. So my answers today might be a little like I don't know uh but happy happy to hear out what you uh learned uh after after the lecture. Um as a reminder we have on Wednesday our final practicum. Uh this one will be on the LLM judge as you know from your practice assignment. As I said, um the goal of your preparation until Wednesday should be to really have confidence that you can if someone tells you, hey, uh is this is this judge biased? And you should have ideas of how it can be biased and how you can test for whether there is such a bias, you should, you know, calculate some correlation and make a judgment from there. So this is what I'm going to uh

1:36 test you for and something you'll do many times uh in your life after after this course if you work in NLP. uh and then on Monday we will have a quiz on efficiency part uh and another lecture on impact of AI on humanity and then on

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.