Skip to content
Vibe Math Lab.

Explainer ·

ML-KEM and Module-LWE: what a quantum attack on the standard would have to do

ML-KEM, NIST's FIPS 203, rests on Module Learning with Errors over the ring Z_3329[x]/(x^256+1), with module rank 2, 3 or 4 for its three parameter sets. On November 30, 2026 Anthropic published a quantum algorithm that, for module lattices of polylogarithmic rank over power-of-two cyclotomic rings, solves random instances of search Module-LWE in time quasi-polynomial in the ring degree n.

The speedup is asymptotic in n, and ML-KEM fixes n = 256 and raises security through the rank k instead. The paper itself says its algorithms are "not practical for the parameter sets of ML-KEM and ML-DSA", and Anthropic says that at real sizes the method is dramatically slower than existing attacks. These are claims, not yet independently verified and not peer reviewed.

This page sets out the standard exactly, says what the main paper claims, explains what "asymptotically faster only for very large key sizes" means against n = 256 and k = 2, 3, 4, and compares structured and unstructured lattices.

I'm Tyler Orden, an independent researcher who does mathematics with AI agents. My research record is at Cyborg Mathematics.

The standard, exactly

FIPS 203 (August 13, 2024) specifies ML-KEM, a key-encapsulation mechanism derived from CRYSTALS-Kyber. It is built in two steps: a public-key encryption scheme, K-PKE, whose security rests on Module-LWE, and the Fujisaki-Okamoto transform, which turns it into a KEM that the standard says is believed to satisfy IND-CCA2 security. All arithmetic is in the ring R_q = Z_q[x]/(x^n + 1) with n = 256 and q = 3329, a prime equal to 2^8 · 13 + 1, chosen so that the number-theoretic transform, the ring's fast multiplication, works modulo q.

FIPS 203, Table 2 and Table 3, with the security category the standard claims for each set
Parameter setModule rank kLattice dimension (256k)η1, η2du, dvEncapsulation key / ciphertext (bytes)Claimed category
ML-KEM-51225123, 210, 4800 / 7681 (as hard as AES-128 key search)
ML-KEM-76837682, 210, 41,184 / 1,0883 (as hard as AES-192 key search)
ML-KEM-102441,0242, 211, 51,568 / 1,5685 (as hard as AES-256 key search)

The categories come from NIST's 2016 call for proposals: an attack on a category 1 scheme must need resources comparable to or greater than key search on a block cipher with a 128-bit key, category 3 a 192-bit key, and category 5 a 256-bit key. FIPS 203 says this is claimed under "any realistic model of computation", which includes quantum ones, and NIST recommends ML-KEM-768 as the default. η1 and η2 set the width of the centered binomial distribution the secret and errors are drawn from; du and dv set how much the ciphertext is compressed.

Module-LWE in one paragraph

Pick a uniformly random k × k matrix A with entries in R_q, a secret vector s in R_q^k and an error vector e in R_q^k, both with small coefficients. Publish A and b = A·s + e. Module-LWE says that recovering s, or even telling b apart from a uniformly random vector, is infeasible. With k = 1 this is Ring-LWE; if R_q is replaced by Z_q and the dimension grows to 256k, it is ordinary LWE, introduced by Oded Regev in 2005 with a worst-case quantum reduction from general lattice problems. Module-LWE sits between them: each ring element is a 256-coefficient polynomial, so a k × k matrix over R_q acts like a 256k × 256k integer matrix built from k² structured blocks. The structure is what makes keys around a kilobyte instead of tens of kilobytes. FIPS 203 notes that the hardness of Module-LWE rests on the presumed hardness of problems in module lattices.

What Anthropic's main paper claims

The paper is "Galactic quasi-polynomial quantum algorithms for integral and module lattices" (Anthropic, November 2026, 283 pages). Its abstract states the main tool as a quantum algorithm that samples discrete Gaussians, at widths down to O(√m), on the dual of any integral lattice of rank m. For module lattices of polylogarithmic rank over power-of-two cyclotomic rings, it claims approximations of SVP, SIVP and CVP within a factor linear in the dimension, a solution of random instances of search Module-LWE with short secret and error for suitable moduli of polynomial size, and, for NTRU lattices modulo q with a key of norm below √q, the densest rank-one submodule, which contains the key. Its abstract ends with the sentence that its algorithms are galactic and "not practical for the parameter sets of ML-KEM and ML-DSA."

On running time, the review group's statement gives n^(poly(k) · log n) for module lattices of rank k over power-of-two cyclotomic rings of degree n, ignoring polynomial factors in the input length, which is n^(O(log n)) for fixed k. The Lean formalization states its Module-LWE theorem with the bound 2^(c · k^8 · (log₂ n)^2) steps of its quantum machine for some constant c, for every fixed rank k, all sufficiently large powers of two n, moduli q between 11 · k · noise² · n and 2^n, and all but a small fraction of matrices A. For comparison, the paper cites a classical algorithm for the same canonical-filtration step running in time 2^(O(kn)). Against the 2016 and 2017 quantum results for ideal lattices recalled below, which reached an approximation factor of exp(Õ(√n)) in rank 1, a factor linear in the dimension for modules of small rank is a large step in the theory.

The three other papers ("Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP"; "A converse of the dual attack, and a quantum equivalence of SIVP and LWE at small noise rates"; "Public-key encryption from GapSVP within Õ(n), classically: an adaptive reduction to decision LWE in dimension kn with exponential modulus") are about unstructured lattices. Their abstracts claim new worst-case to average-case reductions: approximate search SVP reduces classically to SIS and quantumly to LWE with Regev's parameters, answering a question of Lyubashevsky and Micciancio; a quantum converse of the dual attack; and classical reductions from GapSVP to decision LWE with better approximation factors than the Õ(n²) of published classical reductions, bearing on an open problem stated by Bennett.

The repository's README says the results were discovered by an internal research Claude model, that the formalization was written by AI models, and that 132 main statements are checked with Comparator, which replays the proofs in Lean's kernel and in the independent kernel nanoda from three axioms (propext, Classical.choice and Quot.sound). It also says whether the Lean statements match the papers is for the reader to judge. I have not run the build.

What "asymptotically faster only for very large key sizes" means for ML-KEM

Every quasi-polynomial bound above is a statement about n, the degree of the ring, growing without limit. FIPS 203 fixes n = 256 in all three parameter sets and reaches categories 3 and 5 by raising the module rank from k = 2 to 3 and 4. So the standards never move along the axis where the speedup lives. At n = 256, log₂ n is 8, and an asymptotic bound says nothing by itself; what decides the cost there is the constants and the k-dependence hidden in it, which grows with k.

The paper does the instantiation itself. To state its theorem for the standards at all, it defines one parameter family per ML-KEM and ML-DSA parameter set, in which n ranges over powers of two from 256 up, q is a prime bounded by a polynomial in n (with q ≥ 13n for ML-KEM), and the ranks and error distributions are those of the set; it says these families are not part of the standards. At the real ML-KEM-512, with n = 256 and k = 2, the algorithm computes a canonical filtration of a module lattice of rank 5, and the paper notes that some of its sampling instances have rank over the integers greater than 2^10400. The review group, which says it used AI models to help optimize the attack and estimate its cost, puts it this way: even 2^1000 quantum operations would be far below its cost for ML-KEM-512 and ML-DSA-44. For scale, category 1 is defined against AES-128 key search.

That is what Anthropic means by "asymptotically faster" but "dramatically slower" at real sizes. Peikert, a lattice cryptographer and review group member, described the gap on X as quasi-polynomial asymptotically and "ultra-galactic" concretely, and wrote that new ideas would be needed to close it. The papers do not claim a practical attack.

Structured and unstructured lattices

A structured lattice here is a module lattice over R = Z[x]/(x^n + 1): each block of n coordinates is a ring element, and multiplication by x acts on it as a signed cyclic shift. That symmetry is what lets ML-KEM describe a 256k-dimensional lattice with a k × k matrix of ring elements, and the paper's algorithm uses the algebraic structure; its quasi-polynomial bounds need the module rank to be small relative to n. An unstructured lattice, as in plain LWE or SIS, has no ring, which is the case n = 1 in the paper's notation. The paper says that there its bounds exceed 2^k and give no sub-exponential bound for LWE and SIS.

That is the split in Anthropic's announcement: lower long-term confidence in structured lattices, the basis of ML-KEM, ML-DSA and the NTRU-based Falcon, and higher confidence in unstructured ones, from the reductions in papers 2 to 4. The review group's statement adds that, by Anthropic's account, there is no improvement in classical attacks on any mainstream lattice system of either kind, nor in quantum attacks on unstructured ones.

Reading the circulating title, phrase by phrase (written before publication)

The title is "Quasi-polynomial quantum algorithms for integral lattices and module lattices of small rank over power-of-two cyclotomic rings". Without the paper, each phrase can only be read for what it would mean in the standard vocabulary.

  • Quantum algorithms. The method would run on a quantum computer. It would say nothing directly about attacks with ordinary computers, which is what the security of ML-KEM against today's attackers rests on.
  • Quasi-polynomial. A running time of the form 2^((log n)^c) for some constant c, also written n^(polylog n). That is more than any fixed power of n and far less than the 2^(Θ(n)) of the best known lattice attacks, quantum or classical. For lattice problems at cryptographic approximation factors, the best known quantum algorithms have been exponential in the dimension, so a quasi-polynomial one would be a large change in the theory.
  • Integral lattices. Lattices in which all inner products of lattice vectors are integers. The exact class the paper covers, and in what norm, is for the paper to state.
  • Module lattices of small rank. Lattices that are modules over a ring of integers, of rank k over that ring. ML-KEM's k is 2, 3 or 4. ML-DSA (FIPS 204) uses the same ring, Z_q[x]/(x^256+1) with q = 8380417, with matrices of size 4 × 4, 6 × 5 and 8 × 7 over it. The NTRU lattices behind Falcon can also be written as rank-2 modules. Whether "small" covers all of these, and how the cost grows with k, are the first questions a reader would ask.
  • Power-of-two cyclotomic rings. Rings Z[x]/(x^m + 1) with m a power of two. ML-KEM and ML-DSA both use m = 256; Falcon uses 512 and 1,024. This is the most specific match between the title and the deployed standards.

The printed title turned out to be "Galactic quasi-polynomial quantum algorithms for integral and module lattices". I computed its SHA-256 and SHA3-256 hashes and neither matches the posted ones, while the circulating title still matches both. The circulating title describes the same subject as the printed abstract; Anthropic has not said whether it was an earlier title.

The step from a lattice algorithm to an attack on ML-KEM

An algorithm for a lattice problem is not automatically an attack on a scheme. Three things decide it.

The approximation factor. Lattice algorithms find vectors within some factor γ of the shortest one. Breaking Module-LWE with ML-KEM's small errors needs an algorithm that works at the approximation factors that correspond to those errors. A precedent: in 2016 Cramer, Ducas, Peikert and Regev, and in 2017 Cramer, Ducas and Wesolowski, gave quantum polynomial-time algorithms for the shortest vector problem in ideal lattices of cyclotomic fields (the rank-1 case), but only to within a factor of exp(Õ(√n)). That broke some schemes built on principal ideals and, in the words of the 2016/885 abstract, did not seem to directly affect Ring-LWE-based cryptosystems. A new result's γ, and whether it covers the search or decision version of Module-LWE, are what would place it.

The reduction to the actual parameters. ML-KEM fixes n = 256, q = 3329, k at most 4, and specific error distributions. A result proved for families of growing dimension has to be instantiated at these numbers, and constants that are irrelevant asymptotically can dominate there. Aaronson, assuming the result is correct, wrote on November 30 that its constants are apparently bad enough to make it impractical even with a scalable quantum computer, while noting that constants are often improved.

The quantum resources. A concrete attack needs a count of logical qubits and gates, and of the error correction behind them. For Shor's algorithm against RSA-2048 such estimates exist and have fallen over the years; for a new lattice algorithm they would have to be worked out from scratch.

Asymptotic speed and concrete cost are separate questions. A quasi-polynomial bound could leave ML-KEM-768 beyond any foreseeable machine, or not; the bound alone does not say.

What the hybrids protect, and what they do not

Deployed ML-KEM is almost always a hybrid. In TLS the combination is X25519MLKEM768 (IETF draft-ietf-tls-ecdhe-mlkem; codepoint 0x11EC), which Chrome offers from version 131. OpenSSH 10.0 (April 9, 2025) made mlkem768x25519-sha256 its default key agreement. Signal's PQXDH (September 2023) combined X25519 with CRYSTALS-Kyber, and its SPQR work (October 2025) uses ML-KEM-768. Apple's iMessage PQ3 (February 2024) uses Kyber-1024 for initial keys and Kyber-768 in its ratchet, next to P-256 elliptic-curve Diffie-Hellman.

A hybrid's shared secret is safe if either component is. Against classical attackers that is unchanged by a quantum algorithm: X25519 and P-256 still hold, and ML-KEM's classical security is untouched by a quantum-only result. Against a future quantum attacker, X25519 and P-256 already fall to Shor's algorithm, so the hybrid's protection for recorded traffic is exactly ML-KEM's quantum security. That is the protection a quantum attack on Module-LWE would bear on.

How a claim like this gets checked

Lattice claims have been checked quickly before. Yilei Chen's ePrint 2024/555, received April 10, 2024, claimed a polynomial-time quantum algorithm for LWE with certain polynomial modulus-to-noise ratios. On April 18 Chen added a note that step 9 of the algorithm contained a bug, found by Hongxun Wu and independently by Thomas Vidick, which he did not know how to fix, and that the claim no longer held. The paper stays posted with that note. A new claim would be read the same way, step by step, and the readers would include the people who design these schemes.

NIST's process was built for this kind of event. Its call for proposals closed on November 30, 2017; Kyber was selected in July 2022 (NIST IR 8413) after three rounds of public attack, and FIPS 203 followed in 2024. In March 2025 NIST selected HQC, a key-encapsulation method based on error-correcting codes instead of lattices, for standardization as a backup to ML-KEM. As of 6:40 p.m. Pacific time on November 30 I found no NIST statement on Anthropic's papers.

What a paper would have to state (written before publication)

  1. The exact problem solved (search or decision, Module-SVP or Module-LWE), the rings and ranks covered, and the approximation factor or error regime.
  2. The running time, with its dependence on n, k and q made explicit.
  3. Whether it applies to ML-KEM-512, 768 and 1024 as specified, and to ML-DSA and Falcon, with concrete cost estimates for each.
  4. The quantum resources: logical qubits, circuit depth, and assumptions about the quantum computer.
  5. What Anthropic disclosed to NIST and other standards bodies, and when.

Paper 1 answers the first three items for the theory: search Module-LWE for small rank, a quasi-polynomial bound in n, and an explicit statement that ML-KEM and ML-DSA as specified are out of practical reach; Anthropic's post says drafts went to the US government. A concrete quantum resource count for the attack has not been published. The status is in the news item: published, claimed, not yet independently verified. The plain version of this page is What is ML-KEM?; for factoring and RSA see What would a polynomial-time factoring result look like?; for breaks and disclosure in general, What would a cryptographic break mean?; and for the review group formed to advise on disclosure, its news item.

These pages are about a reported result from Anthropic. I use Claude, Anthropic's AI model, for my own research. I do not work for Anthropic.

Short answers

What problem is ML-KEM based on?

Module Learning with Errors (Module-LWE) over the ring Z_3329[x]/(x^256+1), with module rank 2, 3 or 4 for ML-KEM-512, 768 and 1024 (FIPS 203).

What security categories do the ML-KEM parameter sets claim?

ML-KEM-512 claims category 1 (comparable to AES-128 key search), ML-KEM-768 category 3 (AES-192) and ML-KEM-1024 category 5 (AES-256). NIST recommends ML-KEM-768 as the default.

What is a quasi-polynomial algorithm?

One whose running time is 2^((log n)^c) for a constant c: more than any fixed power of n, far less than exponential.

Does a quantum algorithm against Module-LWE break hybrid key exchange?

Not against classical attackers, since X25519 and ML-KEM's classical security would still hold. Against a future large quantum computer, which also breaks X25519 by Shor's algorithm, the hybrid would rely on ML-KEM's quantum security alone.

What did Anthropic's lattice paper claim?

A quantum algorithm, quasi-polynomial in the ring degree n, for approximate SVP in module lattices of polylogarithmic rank over power-of-two cyclotomic rings and for random search Module-LWE with suitable polynomial moduli. The paper says it is not practical for the parameter sets of ML-KEM and ML-DSA, which fix n = 256.

Why is a faster asymptotic attack not a threat to ML-KEM?

The speedup applies as the ring degree n grows, but ML-KEM fixes n = 256 and raises security with the module rank. At ML-KEM-512 the paper finds some instances of rank over the integers above 2^10400.

Has a quantum lattice attack been claimed before?

Yes. Yilei Chen's ePrint 2024/555 claimed a polynomial-time quantum algorithm for LWE in April 2024; eight days after it was posted, the author noted a bug and that the claim no longer held.

Did this make sense?

Was this helpful?

Share this page