Anthropic’s quantum algorithms and their implications for lattice-based proof systems and Jolt
Published
By Qredo team

Anthropic’s quantum algorithms and their implications for lattice-based proof systems and Jolt

Anthropic has introduced a groundbreaking quantum algorithm capable of resolving specific module-lattice challenges in quasipolynomial time. The implications of this development are significant, particularly concerning the NIST standards ML-KEM, which is used for establishing shared keys, and ML-DSA, which pertains to digital signatures. This article delves into what this quantum attack signifies for lattice-based proof systems, especially for Jolt.

Overview of Jolt

Jolt is a zero-knowledge virtual machine (zkVM) that I have been developing for several years. It functions as a verification engine, allowing users to demonstrate that a particular program generated the asserted outcome based on given inputs.

Currently, there are two iterations of Jolt available. One version utilizes elliptic curves, while the other employs module lattices. When we launched lattice Jolt in September, we announced plans to create a third variant based on hashing, which is now nearing completion. We anticipate that both hash Jolt and lattice Jolt will perform similarly in terms of prover speed, achieving 5-10 million RISC-V cycles proved per second on a laptop using only CPU, which is considered state-of-the-art. The proofs generated by lattice Jolt are under 100 KB, whereas those from hash Jolt will be several hundred KB.

Quantum Algorithms and Their Impact

A key aspect of Anthropic's latest findings involves their quantum algorithms, which effectively address versions of the Module Learning With Errors (M-LWE) and Module Short Integer Solution (M-SIS) problems. The running time for these algorithms is approximately 2^{O((k^2 log n + k^4)^2)} for a ring dimension n and module rank k. In contrast, the best previous algorithms required time that was roughly exponential in n for a fixed k.

This represents a significant asymptotic improvement. It indicates that increasing n offers considerably less protection against quantum attackers than previously anticipated. These new algorithms are pertinent to ML-KEM, which is based on the difficulty of M-LWE, as well as to ML-DSA, which relies on both M-LWE and M-SIS. Notably, lattice Jolt depends solely on M-SIS. However, for quantum attackers, both problems are approximately equivalent in terms of difficulty: an efficient quantum algorithm for M-LWE can solve M-SIS and vice versa.

Security Implications for Lattice Jolt

What does this quantum attack mean for current users of lattice Jolt? At present, we lack a quantum computer powerful enough to execute this attack. Even if such a computer existed, the algorithm's described complexity is substantial, meaning that at realistic values of n and k found in practical cryptographic applications, it would take significantly longer than the quantum attacks we were already aware of. Therefore, our estimates regarding the security of lattice Jolt against quantum threats remain unchanged, as do those for ML-KEM and ML-DSA.

Furthermore, Anthropic reported that they have not discovered any superior classical attacks on mainstream lattice cryptosystems. This finding increases my confidence in the classical security of lattice Jolt. The research also provides stronger hardness reductions for SIS and LWE, which are the unstructured counterparts of M-SIS and M-LWE, enhancing our assurance in cryptography based on unstructured lattices. Overall, these outcomes present a mixture of positive and negative implications for lattice cryptography. The stronger reductions and the absence of identified attacks on unstructured lattices are encouraging, while the new attack raises concerns regarding the long-term post-quantum security of module-lattice systems like lattice Jolt.

Future Considerations and Risks

However, it is essential to note that the structure within lattices exists on a spectrum rather than as a binary state. By decreasing the ring dimension n and increasing the module rank k, we approach the unstructured scenario (where n = 1). Generally, increased structure in lattice Jolt results in faster performance, but it also provides more opportunities for Anthropic's attack to exploit. Even if superior quantum attacks jeopardize the parameters currently in use, we may not need to abandon structure altogether by moving to the extreme case of n = 1. For instance, if future advancements reduce the attack time to n^{2k} quantum operations, any fixed k would lead to a polynomial-time attack. If we consider n = 64, which is already used in lattice Jolt, requiring the attacker to operate at rank k = 12 would still result in 2^144 quantum operations. Thus, an attack improvement of that magnitude would still allow us to maintain the structure that keeps lattice Jolt efficient and its proofs compact.

When two entities utilize ML-KEM to create an encryption key, an adversary could record the exchange and the encrypted messages currently. If a non-galactic quantum attack is discovered and a sufficiently powerful quantum computer is developed, that attacker could retrieve the key and access those messages at a later time. This scenario represents the “harvest now, decrypt later” risk, which is significant for messages that require long-term confidentiality. Consequently, it is imperative for NIST to quickly provide an unstructured-lattice option for key establishment. In contrast, the upcoming zero-knowledge version of lattice Jolt will ensure statistical zero knowledge. Even with unlimited computational resources, someone who retains a proof will learn almost nothing about its private data beyond what the public claim already discloses. This assurance holds even if M-SIS is compromised in the future. The curve-based Jolt in zero-knowledge mode offers equivalent protection.

Long-term Outlook for Lattice Jolt

I categorize the post-quantum soundness of lattice Jolt alongside the security of ML-DSA. Both rely on the difficulty of M-SIS and utilize Fiat-Shamir to produce challenges through hashing. While ML-DSA also depends on M-LWE and employs a more robust variation of M-SIS than lattice Jolt, if M-SIS proves resilient under further cryptanalysis and we continue to trust ML-DSA for post-quantum signatures, we will also have faith in lattice Jolt for post-quantum SNARKs. I anticipate that it will flourish in the long term.

However, a serious M-SIS attack powerful enough to compel individuals to abandon ML-DSA would raise concerns about lattice Jolt as well. Even in such a case, it might still be feasible to use lattice Jolt by adjusting its parameters to bring it closer to the unstructured scenario. This shift for ML-DSA would necessitate revising a standard.

ML-DSA's reliance on M-LWE to safeguard its signing key means that if an attacker gains access to that key, they can forge signatures. Moreover, if your signing key remains within a hardware wallet or security module, switching to new parameters is impossible until the device itself can sign with them. Unlike SNARKs such as lattice Jolt, which lack a secret key to recover and no signing hardware to upgrade, a breach of M-SIS would nullify Jolt’s security proof but would not lead directly to a successful attack. An attacker would still need to find an efficient method to turn a short lattice relation into a convincing Jolt-proof of a false statement, which remains uncertain.

Given that Anthropic’s results suggest hashes may be a safer alternative, one might wonder why we should continue to invest in lattice Jolt when hash Jolt is almost ready. One reason is the smaller proof sizes. However, even if the proofs were identical in size, users should have access to both options. In any system anticipated to be in use for decades, we should prepare for the need to revise the cryptography over time. In light of cryptanalytic uncertainty, a conservative approach involves agility and depth in defense. Hash-based cryptography is not immune to AI-assisted cryptanalysis either. Recently, Falko Strenzke, with significant contributions from Claude, discovered a faster classical attack on the SHA-256 versions of LMS and XMSS, two NIST-standardized hash-based signature schemes. Although the attack remains largely impractical, it reduces the claimed classical security by up to 100 bits, leaving no SHA-2 parameter set at even 192 bits.

Conclusion and Future Directions

Jolt's flexibility is a result of the polynomial interactive oracle proof (PIOP) at its foundation. It instructs the verifier on how to validate a program's execution when given access to specific polynomials. This design allows us to integrate any polynomial commitment scheme (PCS) that enables the prover to commit to those polynomials and demonstrate their values at the points chosen by the verifier. This adaptability is why the transition from curves to lattices in Jolt was so seamless. We replaced the curve-based PCS Dory with the lattice-based PCS Akita.

The transformation for hash Jolt involves a more significant change, shifting the arithmetic from prime fields to binary ones. We anticipated this transition two years ago when Srinath Setty and I devised Jolt's memory-checking arguments, Twist and Shout, and calculated their costs over binary fields using hash-based PCSes.

Once hash Jolt is launched, users will have the capability to utilize curves, lattices, or hashes to verify the execution of any program within Jolt. Even better, they can employ all three simultaneously for enhanced security. Disclosure: I am a member of the newly established Cryptography Incident Review Group and contributed to its initial evaluation of Anthropic's results. The opinions expressed in this post are my own.

Justin Thaler is a research partner and an associate professor in the Department of Computer Science at Georgetown University.