Save this video free

EfficientML.ai Lecture 15 - Long-Context LLM (MIT 6.5940 Fall 2026)

MIT HAN Lab · 1:08:41 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

EfficientML.ai Lecture 15 - Long-Context LLM (MIT 6.5940 Fall 2026) Watch on YouTube →

Overview

Long-context LLMs face two linked challenges: extending a model's usable context and controlling the memory and latency costs of processing it. The lecture explains RoPE scaling and LongLoRA for context extension, Needle-in-a-Haystack and LongBench for evaluation, and efficient inference methods including StreamingLLM, DuoAttention, Quest, and LServe, then introduces Mamba and hybrid Transformer architectures.

Key takeaways

Chapters

0:00 RoPE Scaling Extends a Model's Context Window
4:52 LongLoRA Combines Shifted Sparse Attention with LoRA
9:33 LongLoRA Fine-Tuning Improves Long-Context Retrieval
15:25 The Lost-in-the-Middle Problem Challenges Long-Context Models
18:18 Needle-in-a-Haystack and LongBench Measure Context Use
21:34 Long Context Makes KV Cache a Memory Bottleneck
26:37 Why Sliding-Window Attention Can Fail at Long Streams
31:15 StreamingLLM Uses Attention Sinks to Stabilize Generation
37:21 DuoAttention Assigns Heads to Retrieval or Streaming
41:49 DuoAttention Learns Head Roles with Lightweight Distillation
46:36 Quest Selects KV Pages for Each Query
53:09 LServe Unifies Sparse Attention with Hierarchical KV Paging
1:02:45 Mamba and Jamba Offer Alternatives to Full Attention

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

Transcript excerpt

0:01 Uh okay, good afternoon everyone. Uh let's get started for today's lecture. And today we are going to talk about uh uh long context language models. Um which really matters when we want to use a model to understand very uh long documents uh understand for example a book a loan technical document uh codebase etc. So the challenge here is that attention the KB cache can be uh very expensive as a sequence grows and we will study techniques that can extend the context lens uh evaluate whether models truly use a long context and reduce the memory and latency of the long context inference. So here is a overview of today's uh lectures contents. So we will u revisit

0:52 what is u uh rotary position embedding. uh we have discussed it uh several lectures uh earlier and we will also talk about uh uh some work on uh extends the language model to longer context with some finetuning techniques for examples Laura and we will also talk about some benchmarks in evaluating long context performance for large function models uh such as uh needle in a haststack benchmark and the lone bench after that we will talk about some efficient attention mechanisms to reduce uh overall inference time for large language models uh particularly some sparse attention uh techniques. And finally we will briefly introduce some uh architectures that is

1:41 beyond traditional transformers uh especially uh uh linear models uh for examples state space models u mamba and some other variants. Uh so first of all let's uh have a very quick uh recap of the uh rotary position embeddings that we talked uh previously. So if you still remember that in uh in the rope we h we will divide the uh hidden state of the lang language model

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

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, MIT HAN Lab.

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.