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. A title committed to by hash by two people who say they have seen Anthropic's unpublished work describes quantum algorithms for module lattices of small rank over power-of-two cyclotomic rings, which is a description of that structure.

No paper is public, so the running time, the approximation factor and the reduction to ML-KEM's actual parameters are all unknown. Those three details decide whether a result is a landmark in quantum algorithms only, or a concrete threat to the standard once a large quantum computer exists.

This page sets out the standard exactly, reads the title phrase by phrase, and lists what a paper would have to show.

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.

Reading the circulating title, phrase by phrase

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 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. NIST has made no statement about the reported result as of this writing.

What a paper would have to state

  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.

Until then the right summary is the one in the news item: reported, not published. 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.

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