Save this video free

EfficientML.ai Lecture 5 - Quantization (Part I) (MIT 6.5940 Fall 2026)

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

Part of Massachusetts Institute of Technology 6.5940 EfficientML.ai. See all 19 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

Quantization reduces neural-network storage and computation by representing values with fewer bits, building on the lecture's review of integer and floating-point formats such as FP32, FP16, and BF16. It compares K-means codebook quantization, which compresses weights but retains floating-point computation, with affine linear quantization, which enables integer arithmetic; it also connects quantization with pruning, Huffman coding, and compact architectures such as SqueezeNet.

Key takeaways

Chapters

0:00 Why Quantization Saves Memory Traffic and Energy
2:00 Unsigned, Signed, and Fixed-Point Number Representations
6:20 IEEE FP32: Sign, Exponent, Mantissa, and Bias
10:20 FP32 Subnormals, Infinities, and NaN
17:00 FP16 and BF16 Trade Precision for Range
24:08 FP8 and FP4 Formats Match Precision to Model Values
31:10 K-Means Quantization Replaces Weights with Codebook Indices
38:20 Retraining K-Means Centroids and Combining Compression Methods
43:30 Deep Compression: Pruning, K-Means, and Huffman Coding
48:50 SqueezeNet and the Shift to Integer Linear Quantization
54:10 Affine Quantization: Calculate the Scale and Zero Point
1:00:58 Integer Matrix Multiplication, Bias, and Convolution
1:04:30 Quantization Results and Lecture Takeaways

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

Transcript excerpt

0:00 Test. Test. Okay. All right. Let's get it started. Welcome to efficient ml.ai. Today is lecture five. We are going to talk about quantization. So in the last lecture we talked about pruning, how to reduce the number of parameters. We can reduce the number of parameters and activations by 10 times or three times without hurting the accuracy if you properly fine tune it. We also talked about how to find the optimal sparsity ratio for different layers using both automated approach and also rule-based approach. Now we are going to dive into the next chapter, which is quantization. Beyond reducing the number of parameters, we can also reduce the bit width for each parameter. You don't need

0:49 a full precision, but we can use integer bits or low precision bit to represent the number. So in this lecture we'll first review the numeric data types including integers and floating point. We're also going to learn the basic concepts of neural network quantization and the three types of network quantization method, which is K-means based approach, the linear quantization, and also binary and ternary quantization. Some background. The uh computation is cheap, but memory is expensive. So if you go lower precision, if you have less precision, you need to fetch fewer number of bits and also the you fetch less number of bits, so you

1:37 reduce the num- memory movement. For example, if you have to move 32-bit floating point versus you just need to move 4-bit integer, you can save eight times uh less memory and have fewer um memory traffic. And less memory means it's more energy efficient. Data movement can be as much as 200 times more energy consuming compared with computation. So, let's first talk about numeric data types. How are the numbers actually

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, 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.