Now It Can Be Told

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

Shtetl-Optimized The Blog of Scott Aaronson If you take nothing else from this blog: quantum computers won’t solve hard problems instantly by just trying all solutions in parallel. « Every call Now It Can Be Told So, it appears that Anthropic is going to imminently release a paper entitled “Quasi-Polynomial Quantum Algorithms for Integral Lattices and Module Lattices of Small Rank Over Power-of-Two Cyclotomic Rings.”

Shtetl-Optimized,Scott Aaronson 的博客。如果你从这个博客里只能记住一件事,那就是:量子计算机不会通过并行尝试所有解来瞬间解决难题。《Every call Now It Can Be Told》:看来 Anthropic 即将发布一篇题为《针对二的幂次分圆环上小秩整格和模格的拟多项式量子算法》的论文。

What happened was that a cryptocurrency executive named Charles Hoskinson tweeted a cryptographic hash of the paper title, as a way of committing to it (and proving later that he knew it) without revealing it. But then, extremely amusingly, Michael DeBono used Gemini and Fable to decrypt the title, basically just by guessing every plausible thing it could be. In any case it looks like Anthropic will make a public announcement later today.

事情的经过是这样的:一位名叫 Charles Hoskinson 的加密货币高管在推特上发布了该论文标题的加密哈希值,以此作为一种承诺(并证明他事后知晓该内容),同时又不泄露具体标题。但随后,非常有趣的是,Michael DeBono 利用 Gemini 和 Fable 解密了该标题,基本上就是通过猜测所有可能的组合来实现的。无论如何,Anthropic 似乎会在今天晚些时候发布公告。

Important Update (evening of Nov. 30): Anthropic has finally released its paper on this; see also here for an initial assessment from the Cryptography Incident Review Group (CIRG) that Anthropic briefed, and here for very helpful commentary from Chris Peikert. The most important new piece of information is that, even while the scaling of the attack is nO(log n) (where n is the “structure degree”) for any fixed lattice rank r, it’s also exponential in poly(r).

重要更新(11 月 30 日晚):Anthropic 终于发布了相关论文;点击此处查看 Anthropic 简报过的密码学事件审查小组(CIRG)的初步评估,点击此处查看 Chris Peikert 提供的非常有帮助的评论。最重要的新信息是,尽管对于任何固定的格秩 r,该攻击的扩展性为 nO(log n)(其中 n 是“结构度”),但它同时也随 poly(r) 指数级增长。

Thus, while this is a much better scaling with n than was previously known or expected, and than we know how to achieve classically, the effect on RingLWE- and ModuleLWE-based encryption might strongly depend on whether or not the rank dependence can be improved. Thanks also to the commenters who pointed this out!

因此,虽然这比之前已知或预期的以及我们所知的经典实现方式在 n 上的扩展性要好得多,但其对基于 RingLWE 和 ModuleLWE 的加密的影响,可能很大程度上取决于对秩的依赖性是否能够得到改善。也感谢指出这一点的评论者们!

[On the other hand, Noah Stephens-Davidowitz points out in my comment section that the NIST standard ML-KEM-512 uses only r=2—so in that case, the new attack is considered to be impractical “merely” because the constant factors are galactic. Personally, I’m deeply uncomfortable with any cryptosystem whose security rests only on constant factors, rather than on the hypothesis that any attack takes time that scales exponentially with some parameter, and that parameter being sufficiently large. As I noted before, astronomical constants can be and often are astronomically improved.]

[另一方面,Noah Stephens-Davidowitz 在我的评论区指出,NIST 标准 ML-KEM-512 仅使用 r=2——因此在这种情况下,新的攻击被认为是不切实际的,仅仅是因为其常数因子大得惊人。个人而言,对于任何安全性仅依赖于常数因子,而不是依赖于“任何攻击都需要随某个参数呈指数级增长的时间,且该参数足够大”这一假设的密码系统,我感到非常不安。正如我之前提到的,天文数字般的常数可以而且经常会被天文数字般地改进。]

With hindsight, while I don’t regret answering my readers’ requests to help them through an informational void, by relaying what I was hearing from cryptographic experts as faithfully as I could without violating confidences, I do regret how that informational void caused me to miss key technical points such as the exponential dependence on rank.

事后看来,虽然我不后悔回应读者的请求,在不违反保密原则的前提下尽可能忠实地传达我从密码学专家那里听到的信息,以帮助他们度过信息真空期,但我确实后悔那个信息真空导致我错过了关键的技术点,例如对秩的指数依赖性。

One lesson that I think we’ve clearly learned, from this along with previous disclosures of AI math breakthroughs, is that it’s best either just to publicly disclose all details of a breakthrough right away (assuming that, as in this case, there’s no imminent risk to any deployed cryptography), or else to work with a tiny number of outside experts (say, at most three) who are sworn to absolute secrecy.

我认为我们从这次事件以及之前 AI 数学突破的披露中学到的一个教训是:最好的做法要么是立即公开突破的所有细节(假设像本案一样,对任何已部署的密码学没有迫在眉睫的风险),要么是与极少数(比如最多三名)发誓绝对保密的外部专家合作。

What doesn’t work is to let the breakthrough become an open secret in a whole research community for weeks, spread via rumor mill and/or tiny drips of public information (like talk schedules and “teaser” statements), while still expecting all the experts to refrain from sharing what they know with the public.

行不通的做法是让这一突破在整个研究界成为持续数周的公开秘密,通过谣言和/或零星的公开信息(如讲座日程和“预告”声明)传播,同时还指望所有专家克制自己,不向公众分享他们所知道的内容。

The above update already supersedes some of what’s in the following section of this post, which however I’ll leave up for “historical completeness,” with modifications noted. For cryptographers, the paper title is pretty self-explanatory, but for those tuning in from home: the upshot is that some of the main forms of “post-quantum” cryptography that people had been switching to, on the advice of standards bodies like NIST, are not fully “post-quantum” at all.

上述更新已经取代了本文后续部分中的部分内容,但我会保留这些内容以保持“历史完整性”,并标注了修改之处。对于密码学家来说,论文标题是不言自明的,但对于普通读者:结论是,人们在 NIST 等标准机构建议下转向的一些主要“后量子”密码形式,根本不是完全“后量子”的。

Specifically, assuming (as I henceforth will) that the claimed result is correct, the structured lattice problems called RingLWE and ModuleLWE can no longer be considered quantumly hard in an asymptotic sense [added: at least, not in the low-rank case]. The AI discovered a quasipolynomial (meaning, npolylog(n)) time quantum algorithm to solve these problems, albeit one whose constants are apparently bad enough to render it impractical, even supposing you had a scalable quantum computer capable of running (e.g.) Shor’s factoring algorithm.

具体来说,假设(我从现在开始将这样假设)所声称的结果是正确的,那么被称为 RingLWE 和 ModuleLWE 的结构化格问题在渐近意义上不再被认为是量子困难的 [补充:至少在低秩情况下不是]。AI 发现了一种拟多项式(即 npolylog(n))时间的量子算法来解决这些问题,尽管其常数显然大到使其不切实际,即使假设你拥有一台能够运行(例如)Shor 分解算法的可扩展量子计算机。

But constants can be and very often are improved! One possibility is that this will force the field of post-quantum crypto to fall back on stuff like generic LWE and lattice problems, which are apparently still standing, but which the practical people don’t like because they require larger key sizes.

但常数是可以而且经常会被改进的!一种可能性是,这将迫使后量子密码学领域退回到通用 LWE 和格问题等领域,这些问题显然仍然稳固,但实用主义者不喜欢它们,因为它们需要更大的密钥尺寸。

When NIST finalized its standards based on stuff like RingLWE and ModuleLWE in 2022, I remember asking people: why dance on the ledge? why not just accept the friggin’ larger key sizes, in exchange for a less structured lattice problem that’s less likely to admit some clever algorithm? And I never got an answer that fully made sense to me.

当 NIST 在 2022 年最终确定基于 RingLWE 和 ModuleLWE 等内容的标准时,我记得我问过人们:为什么要走钢丝?为什么不直接接受那些该死的更大的密钥尺寸,以换取一个结构性较弱、不太可能被某种巧妙算法攻破的格问题呢?我从未得到一个让我完全信服的答案。

Anyway, as I tried to explain to everyone last week, this is a major development in cryptanalysis, but not an imminent danger to current encryption: firstly because the attack needs a quantum computer, secondly because of the huge constants, [added: thirdly because of the exponential dependence on rank], and fourthly because these ModuleLWE-based systems apparently aren’t used in isolation even when they’re currently used.

总之,正如我上周试图向大家解释的那样,这是密码分析领域的一项重大进展,但对当前的加密技术并不构成迫在眉睫的危险:首先是因为该攻击需要量子计算机,其次是因为巨大的常数,[补充:第三是因为对秩的指数依赖性],第四是因为这些基于 ModuleLWE 的系统即使在目前使用时,显然也不是孤立使用的。

If the labs are sitting on any imminent dangers to current encryption, then I have no specific information about that—just a huge number of rumors whose chain of custody I can’t trace but that I can’t entirely dismiss, given that we now live in an unprecedented time where decades of mathematical research happen in weeks. As a quantum computing theorist, of course what I care about most is to understand how the new algorithm works—it must represent a significant advance in quantum algorithms in general. But we won’t know that until Anthropic releases the paper [added: which they did]! Given the lack of any imminent th

如果实验室掌握了任何对当前加密技术的迫在眉睫的危险,我并没有具体的信息——只有大量的谣言,我无法追踪其来源,但也无法完全忽视,因为我们现在生活在一个前所未有的时代,几十年的数学研究在几周内就会发生。作为一名量子计算理论家,我最关心的当然是理解新算法是如何工作的——它一定代表了量子算法领域的重大进步。但我们只有在 Anthropic 发布论文后才能知道 [补充:他们已经发布了]!鉴于没有任何迫在眉睫的……