FOUNDATIONS: what is a lattice problem, in one sentence? (read first)
A lattice is a grid of points repeating at regular intervals in a many-dimensional space. A lattice problem asks a question about that grid, such as “which grid point is closest to this point” or “what is the shortest vector in this grid”, that stays in a class of difficulty classical computers (and no quantum algorithm known today) cannot solve efficiently as the number of dimensions grows. The specific version ML-KEM relies on is called Module-LWE; in NIST’s own words, it is the problem of solving “noisy linear equations” (known linear equations with a small random error added). The problems behind RSA and ECC (factoring large numbers, discrete logarithms) have a special structure (a particular “period finding” pattern) that Shor’s algorithm targets, while lattice problems are believed not to have that structure; that is why Shor’s algorithm cannot break them. The one sentence to say in a meeting: “ML-KEM’s security (Module-LWE, the problem of solving noisy linear equations) rests on a different mathematical problem from RSA’s, and that different problem resists the quantum algorithms known today.”
Mental model
In M1 you saw why Shor’s algorithm breaks RSA and ECC completely: these algorithms rely on problems (factoring, discrete logarithms) with a “period finding” structure that Shor solves efficiently. ML-KEM relies on a different family of problems, lattice problems, which have no similar weakness against any quantum algorithm known today. The goal of this lesson is to understand that difference at a real level you can defend in a meeting, without chasing proofs.
Module-LWE: NIST’s own definition
FIPS 203’s own explanation is clear enough to need no paraphrase: “The security of the particular KEM specified in this standard is related to the computational difficulty of solving certain systems of noisy linear equations, specifically the Module Learning With Errors (MLWE) problem.” So Module-LWE is, at its core, the problem of solving systems of noisy linear equations: you are given a set of linear equations (as in linear algebra, of the form Ax = b), but a small random “noise” (error) has been added to each one. Without the noise you would solve the system in seconds with Gaussian elimination; with the noise, telling which solution is close to the “real” one becomes exponentially harder as the number of dimensions grows. In FIPS 203’s own words: “At present, it is believed that this particular method of establishing a shared secret key is secure, even against adversaries who possess a quantum computer.”
The word “Module” means these equations are defined over polynomial rings (a kind of algebraic structure) instead of individual numbers; it is a layer of structure added to plain LWE to shrink key sizes (you will see the practical result when you meet ML-KEM’s real sizes in M3). In a meeting you do not need to go beyond this: “Module-LWE is the problem of solving noisy linear equations, using polynomial structure for computational efficiency” is a defensible and accurate summary.
Why it resists Shor: a difference in structure
As you saw in M1, Shor’s algorithm solves factoring and discrete logarithms by turning them into a period finding problem; the quantum Fourier transform finds that period at a speed classical computers cannot. For this to work, the problem needs a particular algebraic structure (what mathematicians call an “abelian group”). The noisy linear equation structure of Module-LWE does not provide that pattern; to date no researcher has found an algorithm that solves Module-LWE (or lattice problems in general) with a quantum speedup similar to Shor’s method. It is important to note that this does not mean “it cannot be proven otherwise”: it means “no method is known so far”, not “it has been proven mathematically impossible”. In NIST IR 8105’s own 2016 words: some lattice schemes being “provably secure under a worst-case hardness assumption” is a strong theoretical guarantee, but the same report says “it has proven difficult to give precise estimates of the security of lattice schemes against even known cryptanalysis techniques”. In other words, a worst-case proof does not automatically guarantee the practical security level of a particular parameter set (like ML-KEM-768).
Context in numbers: why lattices, three of the four selected
82SOURCED candidate algorithms were submitted to the NIST PQC process that began in 2016, from lattice, code-based, hash-based, multivariate polynomial and a few other families. After three evaluation rounds, three of the four algorithms NIST selected for the first standards (ML-KEM, ML-DSA, and FN-DSA/Falcon, to be published in FIPS 206) are lattice-based; the fourth (SLH-DSA) is hash-based and relies on a completely different trust model, which you will see in the next lesson. That ratio is not a coincidence: NIST IR 8105’s own 2016 framing notes that lattice-based schemes are “relatively simple, efficient, and highly parallelizable” and that some have a worst-case hardness proof, which makes them attractive for both performance and theoretical assurance. But this majority does not mean “lattices are the only safe option”; that is exactly why NIST deliberately also standardized SLH-DSA (hash-based) and HQC (code-based, next lesson): not putting all the eggs in one mathematical basket.
Numbers to know
ML-KEM's security rests on the Module-LWE (Module Learning With Errors) problem; in NIST's own words, the difficulty of solving "noisy linear equations", and no known quantum algorithm solves it efficiently today
82 candidate algorithms were submitted to the NIST PQC process that began in 2016; the lattice-based family is only one of them, yet three of the four algorithms selected after three rounds (ML-KEM, ML-DSA, FN-DSA/Falcon) are lattice-based
Lab: Read FIPS 203's own Module-LWE definition
[not run] This is a reading and verification exercise, not a runnable command
# Open nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf and read page i (Announcing section, item 3) and page 1
Recorded output
You will find the sentence "the computational difficulty of solving certain systems of noisy linear equations, specifically the Module Learning With Errors (MLWE) problem"; that is a definition in NIST's own words that you can use the next time you explain Module-LWE in a meeting
At the table
How to say this in a bank meeting.
To an executive
ML-KEM's mathematical foundation (Module-LWE) rests on a family of problems that has been public since 2016 and studied by the worldwide cryptanalysis community. The algorithm replacing RSA is not a new assumption out of nowhere but the engineering product of a long-tested class of problems.
To an architect
When defending Module-LWE, keep two claims apart: (1) some lattice schemes have a worst-case hardness proof, a strong theoretical guarantee; (2) even so, NIST's own 2016 report states plainly that precise security estimates for lattice schemes against known cryptanalysis techniques are still hard. Mixing the two and saying "mathematically proven secure" is an indefensible overclaim.
Objection
“"Is lattice-based cryptography proven secure, or is it, like RSA, just that 'nobody has broken it'?"”
Answer
A mix of both, and the difference has to stay clear. Module-LWE has some worst-case hardness reductions (a kind of theoretical guarantee RSA never had), but that does not mean the practical security level of specific parameter sets (like ML-KEM-768) is proven; that, like RSA, rests on the worldwide cryptanalysis community failing to break it for years. Saying "proven secure" is wrong; saying "an intensely studied problem with both theoretical and practical layers of assurance" is right.
NIST, 2024. The primary source for NIST's own official definition of Module-LWE (including the phrase "noisy linear equations"); the direct source of the "Module Learning With Errors" link in ML-KEM's name
Abstract, item 3 (Announcing), section 1.2, p.i-1 / 10 min
NIST, 2016. NIST's early, official framing of the general properties of the lattice-based family (the worst-case hardness claim, the difficulty of precise security estimates)
section 2, "Lattice-based cryptography" paragraph, p.3-4 / 10 min
Checkpoint
Answer first, then compare with the model answer and score yourself against the rubric. Saved in this browser only.
01Recall
In NIST's own words, what is the essence of the Module-LWE problem?
Model answer
In NIST's own words, Module-LWE is the problem of solving certain systems of noisy linear equations. You are given a set of linear equations, but a small random error has been added to each; that noise makes the system exponentially harder to solve as the dimension grows.
02Recall
Which problems did Shor's algorithm break (recall M1), and why is Module-LWE not on that list?
Model answer
Shor's algorithm broke factoring and discrete logarithms by turning them into a period-finding problem. The noisy linear equation structure of Module-LWE lacks the algebraic structure that period finding needs; to date no researcher has solved Module-LWE with a quantum algorithm similar to Shor's method.
03Scenario
A colleague says 'Because it is lattice-based, ML-KEM is automatically more secure than RSA.' How do you correct that?
Model answer
That is an overclaim. Module-LWE has some worst-case hardness reductions, a kind of theoretical guarantee RSA lacks; but that does not mean the practical security level of a specific parameter set such as ML-KEM-768 is proven. That, like RSA, rests on the worldwide cryptanalysis community failing to attack it for years. The right frame is that ML-KEM rests on a different mathematical problem from RSA, not that it is automatically 'more secure'.
A complete answer includes
Your score: 0/3
04Hostile
A bank architect says 'If Module-LWE has a worst-case hardness proof, then ML-KEM-768 is proven unbreakable.' Which part of this is right and which part overreaches?
Model answer
The right part: some lattice schemes really do have a worst-case hardness proof, a strong theoretical guarantee of a kind RSA never had. The overreaching part: that proof does not mean the practical security level of a specific parameter set like ML-KEM-768 is proven. NIST's own 2016 report says plainly that precise security estimates for lattice schemes against known cryptanalysis techniques are still hard. The right phrase is not 'proven secure' but 'an intensely studied problem with both theoretical and practical layers of assurance'.
A complete answer includes
Your score: 0/3
Project linkA prerequisite for Project 2 (PQC PKI) and for M3 (`ml-kem-fips-203`); lets later modules refer to ML-KEM's security assumption without re-explaining it.