
美西時間 2026 年 11 月 30 日(台北 12 月 1 日清晨),Anthropic 在 GitHub 的 formal-math 儲存庫放上四篇晶格(lattice)問題與晶格密碼學的論文,連同這些結果的 Lean 4 形式化。1 其中最主要的主張是一個量子演算法:在一類有代數結構的晶格上,它解某些版本的 Module-LWE 只需要準多項式時間。Module-LWE 是 NIST 兩項後量子密碼標準 ML-KEM(金鑰封裝)與 ML-DSA(數位簽章)所依賴的難題。同一天,密碼學家組成的 Cryptography Incident Review Group(CIRG)發表初步評估,結論和論文自己的說法一致:這個攻擊的意義在漸近層面,套到 ML-KEM、ML-DSA 上所需的運算量是「銀河級」(galactic),遠超過既有的最佳攻擊。CIRG 建議繼續轉移到後量子密碼。2
依儲存庫的 README,這些結果由 Anthropic 內部一個研究用的 Claude 模型發現,形式化則由 AI 模型撰寫。3 第一篇論文的署名是 Anthropic,日期為 2026 年 11 月。CIRG 的聲明說,Anthropic 在 11 月 16 日先把這批數學結果交給其中幾位成員;CIRG 表示歡迎前沿 AI 實驗室做這類密碼學研究,並負責任地揭露結果。2 CIRG 官網列出 21 位成員,包括史丹佛大學的 Dan Boneh、密西根大學的 Chris Peikert、加州大學聖地牙哥分校的 Daniele Micciancio 與麻省理工學院的 Vinod Vaikuntanathan,並註明成員以個人身分參與,所屬單位只用來識別身分。4
公開前幾天,已經有傳聞說 AI 實驗室握有能攻擊現行密碼系統的成果。Scott Aaronson 在 11 月 25 日的部落格寫,AI 將找到的演算法裡,有些會破解目前部署中的密碼系統;他從多個可靠來源得知,「幾乎可以確定」AI 實驗室在這方面握有一項以上的重大成果。不過在看到細節之前,他對這些成果具體是什麼,把握低得多,也不願散布未經證實的傳言。5 Nature 隔天的報導整理了這些傳聞:幾位研究者說,他們聽說領先的 AI 實驗室找到能在多項式時間內破解公鑰密碼(包括 RSA)的演算法。Nature 在 12 月 1 日為報導加上更新:Anthropic 在 11 月 30 日公開的演算法理論上能破解一種進階的公鑰系統,但無法實際應用;截至 12 月 1 日,沒有跡象顯示 RSA 已被破解。6
四篇論文與它們的形式化
README 列出的四篇論文如下,各附主要陳述與其他陳述的數目。1
| 論文 | 題目 | 主要陳述 | 其他陳述 |
|---|---|---|---|
| 1 | Galactic quasi-polynomial quantum algorithms for integral and module lattices | 81 | 104 |
| 2 | Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP | 24 | 35 |
| 3 | A converse of the dual attack, and a quantum equivalence of SIVP and LWE at small noise rates | 19 | 35 |
| 4 | Public-key encryption from GapSVP within Õ(n), classically: an adaptive reduction to decision LWE in dimension kn with exponential modulus | 8 | 16 |
引起討論的量子演算法出自第一篇,這篇論文全文 283 頁。從題目看,第二到第四篇處理晶格問題之間的化約,以及由晶格難題建構公鑰加密。本文不展開這三篇,以下只談第一篇。
晶格、LWE 與代數結構
晶格是空間中規則排列的點。取幾個向量當基底,把每個基底向量乘上整數再相加,所有這樣得到的點就構成一個晶格;在二維平面上,它看起來像一張斜放的格子紙。基底向量的個數稱為晶格的秩(rank)。秩升到幾百、幾千時,即使手上有基底,要找出離原點最近的非零晶格點,或離某個目標最近的晶格點,對已知的演算法都非常耗時。晶格密碼學把安全性建立在這類問題的困難上。
LWE(Learning with Errors,帶誤差學習)把這種困難寫成解方程式的問題。考慮一組模 的線性方程式:公開的矩陣 乘上祕密向量 ,得到 。假如公開 與 ,在方程式夠多時,用高斯消去法就能解出 。LWE 在每條方程式加上一個小誤差,改為公開 和 , 是由小數字組成的誤差向量,任務是找回 。第一篇論文對 Module-LWE 的非正式定義也是這個形式,差別在矩陣和向量的每個元素都換成多項式:祕密 由 個多項式組成,共有 條方程式,所以 是 列 行的多項式矩陣,誤差 由 個多項式組成; 與 的係數都很小。7
這些多項式取自環 , 是 2 的冪次,論文稱這類環為 2 的冪次分圓環(power-of-two cyclotomic ring)。8 「結構化晶格」的「結構」,指這種代數結構。CIRG 的聲明說,模晶格(module lattice)這個結構化晶格家族是好幾項 NIST 後量子密碼標準的基礎;非結構化晶格則是另一些密碼系統的基礎,效率較差,但可能留給攻擊者的途徑較少。CIRG 轉述,Anthropic 表示,對結構化與非結構化兩類的主流晶格密碼系統,都沒有找到古典(非量子)攻擊的改進;對非結構化晶格,也沒有找到量子攻擊的改進。CIRG 也說,報告中的其他結果強化了非結構化晶格密碼的理論基礎。2
模晶格有兩個參數。一個是每個多項式的次數 ,另一個是模晶格的秩,也就是一個向量由幾個多項式組成;在 Module-LWE 裡,秩就是祕密 的多項式個數 。CIRG 和後面引的 Lean 陳述把秩記為 或 rank。一個秩 的模晶格,當成一般的整數晶格來看,秩是 。8 ML-KEM 和 ML-DSA 都固定 ;最小的 ML-KEM-512 秩為 2,較高的安全等級靠增加秩來達成。910 第一篇論文寫道,ML-KEM 與 ML-DSA 的安全性有一個猜想支持:秩固定、 變大時,在模晶格裡找短向量是困難的。7
準多項式與「銀河級」
演算法的成本,看輸入規模 變大時步數怎麼成長。多項式時間的步數像 、;指數時間的步數像 。準多項式介於兩者之間,第一篇論文的定義是步數不超過 。11 例如 ,它比任何多項式都長得快,卻遠比指數慢。
CIRG 在註腳寫出新演算法的漸近執行時間:在 2 的冪次分圓環上、次數為 時,對秩 的模晶格,忽略輸入長度的多項式因子,時間是 ;秩 固定時就是 。12 取 以 2 為底,這個式子可以改寫成 ,和下面 Lean 陳述的上界同一形式。README 舉了一條 Lean 陳述當例子,說明一個量子程式在每個固定的秩、所有夠大的次數、高於某個多項式下界的模數,以及幾乎所有方陣上,都能在準多項式時間內解搜尋版的 Module-LWE:1
def ModuleLWETheorem : Prop :=
∃ program : QuantumProgram, ∃ c : ℕ, ∀ rank ≥ (1 : ℕ),
∀ᶠ n : ℕ in largePowersOfTwo, ∀ noise ≥ 1, ∀ q ∈ Set.Icc (11 * rank * noise ^ 2 * n) (2 ^ n),
ForAllButFraction (2 ^ (-(n : ℝ) / (240 * rank))) fun A : Fin rank → Fin rank → Fin n → Fin q =>
program.SolvesEveryInstance (moduleLWE A noise) (told := [n, rank, rank])
(time := 2 ^ (c * rank ^ 8 * n.log2 ^ 2))
最後一行的時間上界是 , 是陳述裡的 rank,也就是秩;矩陣取方陣,所以 。秩固定時,上界隨 準多項式地成長;秩變大時,指數裡的 讓上界迅速膨脹。CIRG 在另一則註腳說明,漸近加速只在每個結構化分量的次數 變大時成立;ML-KEM 和 ML-DSA 卻是固定 ,靠增加分量數目(秩 )提高安全等級。10
第一篇論文的主要工具是一個量子取樣器,能在任何整數晶格的對偶晶格上取出離散高斯分布的點。對 Module-LWE,論文先把問題化約成另一個計算:取一個秩為 的模晶格,算出它的典範濾鏈(canonical filtration),也就是一串逐層包含的子晶格;再用量子演算法完成這個計算。7
「銀河級」演算法指漸近上很快、但對實際大小的輸入太慢的演算法。第一篇論文用這個詞形容自己的結果,並寫明這些演算法對密碼標準的參數組不實用。13 論文舉 ML-KEM-512 為例:,,要計算典範濾鏈的模晶格秩為 5;演算法途中交給取樣器的某些晶格,當成一般的整數晶格來看,秩超過 。9 CIRG 說他們用 AI 模型協助最佳化這個攻擊並估算成本:即使在對攻擊者有利的假設下, 次量子運算也遠低於攻擊最小參數組(ML-KEM-512 與 ML-DSA-44)所需的成本。14
Lean 形式化檢查了什麼
Lean 是證明輔助程式:數學陳述與證明都寫成程式,由 Lean 的核心(kernel)逐步檢查每一步推理。依 README,這份形式化把四篇論文的主要定理按論文編號寫在 PaperDefs/,共 132 條;中間定理、註記與細節版本共 190 條,寫在 PaperDetails/。這些陳述不假設任何猜想或已發表的定理,證明用到的文獻結果也連同證明一起形式化。演算法寫成一台量子字組 RAM(quantum word RAM)上的程式,這台抽象機器在 CryptoDefs/ 裡用約 1,000 行定義,執行時間就是它的步數。1
README 列出兩級檢查。基本的一級是 lake build,README 說在 12 核心的機器上要一個多小時;建置後再印出每條被比對定理背後的公理,結果應該只有 propext、Classical.choice、Quot.sound 三條。完整的一級是 Comparator:它確認 Solution/ 證出的定理恰好是 Challenge/ 列出的陳述,只用這三條公理,並在 Lean 的核心與另一個獨立撰寫的核心 nanoda 中重新檢查證明;它的三種設定各約需 60、40 與 5 分鐘。1 我們沒有自己執行這些檢查。
這些檢查能確認證明確實證出 Lean 陳述,無法確認 Lean 陳述與論文的數學一致。README 明列讀者需要信任的部分:陳述與它們用到的定義(CryptoDefs/、PaperDefs/、PaperDetails/、ConsistencyDefs/ 與 Mathlib)、Challenge/、設定檔與檢查程式。關於陳述與論文的對應,README 寫:「陳述是否說出論文所說的,由讀者判斷;AI 讀者已經拿它們和正文比對過。」15 Anthropic 11 月下旬公開的 VP ≠ VNP 證明,需要人讀的陳述檔是 98 行,見〈Anthropic 公開 Claude 寫的 VP ≠ VNP 證明:Lean 驗過證明,98 行陳述還沒有數學家審過〉;這次要對照的,除了 132 條主要陳述和 190 條其他陳述,還有約 1,000 行的機器定義。
形式化和論文也有已知的差異,列在 docs/departures.md。形式化以機器步數計算時間,第一篇論文則計算位元運算與量子閘,所以部分上界和論文印出的差了對數因子。論文引用而沒有給出演算法的子程序,例如 Hermite 標準形或多項式求根,由形式化自己的方法代替。第一篇論文第二部分的定理以一個假設(Sampler)為前提,這個假設說存在前面那種離散高斯取樣的量子演算法,論文由第一部分的結果推出它;形式化把這個假設證出,所以它不出現在陳述裡。P01/Cases.lean 裡關於類似 ML-KEM、ML-DSA 方案的陳述,把論文沒有明說的「夠大」寫成 或 ,這些定理所談的次數因此都在 以上,遠大於標準固定的 。第一篇的 Remark 25.20(開放問題)與第四篇的 Remark 6.4(啟發式論證)沒有形式化。16
CIRG 的初步評估
對非結構化晶格,CIRG 認為 Anthropic 的結果是支持主流非結構化晶格系統後量子安全性的「有意義的證據」。對 NIST 的結構化晶格標準,也就是目前的 ML-KEM 與 ML-DSA,CIRG 說新攻擊所需的運算量遠大於先前已知的最佳攻擊,而那些攻擊本來就遠遠超出實際可行的範圍;新攻擊的規模是銀河級,而且需要大規模的量子運算,成本比同等規模的古典運算高得多。2
新攻擊的意義在漸近層面。CIRG 寫道,它說明這些標準如果以某種方式放大,量子安全性的成長會比原先以為的慢得多;這個漸近改進來自利用標準所用的那種代數結構。2 這句話附的註腳,就是前面引過的註 3:漸近加速在次數 變大時才成立。
CIRG 也在註腳指出,這個結果和近來另一條攻擊路線無關:利用 OpenAI 對指數時間假說(ETH)的反駁,對結構化晶格做的古典、略低於指數時間的攻擊。12 OpenAI 與 Anthropic 在 10 月宣布推翻 ETH 的經過,見〈AI 推翻了「指數時間假說」?從排聚會名單講起〉。
CIRG 的建議如下。17
- 繼續轉移到後量子密碼。這個攻擊目前遠不足以危及 NIST 現行標準;延後轉移,會延長對現有系統的依賴,而破解現有系統所需的量子資源遠少於這個新攻擊。研究者應該持續評估這些或其他技術會不會威脅標準預期的安全性。
- 採用 NIST 現行標準時,選擇各應用所能承受的最高安全等級。
- 鼓勵混合式方案,結合基於不同數學基礎的方案;系統設計要保持敏捷,讓個別方案在必要時能快速替換。
- NIST 與其他機構應優先標準化更多基於不同設計的公鑰密碼系統,即使效率上要付出一些代價。
- 前沿 AI 實驗室應該和密碼學界合作,評估現在與未來依賴的系統,並公開發現,包括試過什麼、哪些系統經得起攻擊,以及在每個系統上投入多少心力。
還沒確定的事
CIRG 的評估是初步的,聲明標題寫明「初步評估」(Initial Assessment)。README 稱這批材料為研究產物(research artifact),不維護、也不接受貢獻;四篇論文目前以儲存庫中的 PDF 公開,尚待密碼學界進一步檢驗。
模型做過哪些嘗試、研究者如何參與、用了多少運算,README 與第一篇論文沒有描述。
CIRG 認為,合理預期這個攻擊很快會被改進;他們提出的關鍵問題,是這些改進能不能真的降低破解 NIST 標準或其他實用結構化晶格系統的成本。2
Footnotes
-
Anthropic, anthropics/formal-math 儲存庫 lattices 資料夾(commit 44431b0,2026-11-30 20:54 UTC),README.md 的 The papers、What is formalized、How to check it 各節。Apache 2.0。 ↩ ↩2 ↩3 ↩4 ↩5
-
Cryptography Incident Review Group,〈Initial Assessment of Anthropic’s Findings on Lattice Cryptography〉, 2026-11-30, https://cirg.org/statements/1/,正文第 1–4 段與 NIST structured-lattice PQC standards 節。第 1 段:“On November 16th, Anthropic shared with several of us a collection of mathematical results about lattice cryptography […] We welcome cryptographic research of this kind by frontier AI labs, with responsible disclosure of the results.” 第 4 段:“By contrast, Anthropic said it found no improvement in classical (non-quantum) attacks on any mainstream lattice cryptosystems of either flavor, or in quantum attacks on the unstructured ones. Moreover, other findings in its report strengthen the theoretical foundation for cryptography based on unstructured lattices.” “galactic” 出自 NIST structured-lattice PQC standards 節第 1 段:“the scale of the new attack is galactic.” 預期改進的原文:“It is reasonable to expect that the attack will be improved in the near future. A key question is whether such improvements will actually reduce the cost of breaking the NIST standards or other practical structured-lattice systems.” ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
原文:“The results were discovered by an internal research Claude model. The formalization was written by AI models.”(lattices/README.md,開頭第 2 段) ↩
-
CIRG 官網首頁 Members 欄,https://cirg.org/。原文:“Members serve in a personal capacity; affiliations are listed for identification only.” ↩
-
Scott Aaronson,〈HOLY SHIT HOLY SHIT HOLY SHIT HOLY SHIT〉, Shtetl-Optimized, 2026-11-25, https://scottaaronson.blog/?p=10379。原文:“And yes, some of those algorithms will break currently deployed cryptosystems. Because people have been hounding me about it: yes, I’m virtually certain, from multiple reliable sources, that the AI labs are now sitting on one or more bombshells in that area. However, until I either see details or hear directly from someone at a lab, I feel much, much less confident about the specific nature of those bombshells. I do not wish to be responsible for spreading unverified rumors.” ↩
-
Nature,〈Has AI just cracked Internet encryption? Rumoured ‘bombshell’ stuns scientists〉, 2026-11-26(2026-12-01 更新), https://www.nature.com/articles/d41586-026-03875-6。原文:“Several researchers say they have heard that some leading AI labs have discovered algorithms that can break public-key cryptography, including RSA, in polynomial time”;更新:“Update: On 30 November, Anthropic released an algorithm that is theoretically able to break an advanced public-key system. But its algorithm is one that is not practical to apply. There was no indication as of 1 December that RSA encryption had been broken.” ↩
-
Anthropic,〈Galactic quasi-polynomial quantum algorithms for integral and module lattices〉, 2026 年 11 月, PDF,摘要(第 1 頁)與第 9 節導言(第 41 頁)。Module-LWE 的原文:“Module-LWE of rank d with m samples modulo q is the search problem with short secret: given a matrix A ∈ (R/qR)^(m×d) and the vector As + e modulo q, where the entries of s ∈ R^d and e ∈ R^m have small coefficients, compute (s, e).” 安全性的原文:“the security of ML-KEM and ML-DSA is supported by the conjectured hardness of finding short vectors in module lattices of fixed rank as n grows”。化約的原文:“We reduce Module-LWE, for a range of parameters, to the computation of the canonical filtration (Definition 9.3) of a module lattice over R of rank d + m + 1, and we compute canonical filtrations of module lattices over R by a quantum algorithm”。典範濾鏈的定義見定義 9.3(第 43 頁):“The canonical filtration of X is the chain 0 = X0 ⊊ X1 ⊊ ··· ⊊ Xs = X”。 ↩ ↩2 ↩3
-
同上,Overview 的 Results in detail(第 5 頁):“the term is restricted to the power-of-two cyclotomic rings Z[x]/(x^n + 1). For a power of two n, a module lattice of ring degree n and rank k is a Euclidean lattice of rank kn over Z”。 ↩ ↩2
-
同上,第 9.6 節 Limitations 的 Parameter sets(第 49 頁),第 12.5 節亦同(第 78 頁)。原文:“For ML-KEM-512, with n = 256 and d = m = 2, the canonical filtration of a module lattice of rank d + m + 1 = 5 is computed, and by Remark 23.9 some sampling instances have rank over Z greater than n^(52·5²) = 2^10400.” 標準固定 n:“The standards fix n = 256.”(第 9.6 節 Parameter families,第 50 頁;第 12.5 節,第 77 頁) ↩ ↩2
-
同上,註 3。原文:“More precisely, the asymptotic speedup applies as the degree n of each structured component grows. By contrast, ML-KEM and ML-DSA reach higher security levels by increasing the number of components (the rank k) while keeping n=256 fixed.” ↩ ↩2
-
同上,Overview 的 Results in detail(第 4 頁):“A bound is quasi-polynomial in m if it is at most 2^(log^O(1) m).” ↩
-
同上,註 1。原文:“the asymptotic running time is n^poly(k) log(n) for module lattices of rank k over power-of-two cyclotomic rings of degree n; this is n^O(log n) for fixed rank k. Anthropic’s result is separate from recent classical, slightly subexponential-time attacks on structured lattices using OpenAI’s refutation of the Exponential Time Hypothesis.” ↩ ↩2
-
同上,Overview 的 Limitations(第 13 頁)。原文:“The algorithms are galactic, that is, asymptotically fast but too slow for inputs of realistic size; in particular, they are not practical for the parameter sets of cryptographic standards.” ↩
-
同上,註 2。原文:“We used AI models to help optimize the current attack and estimate its cost. To give a sense of scale, even (say) 2^1000 quantum operations would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44), even under assumptions favorable to the attacker.” ↩
-
原文:“That the statements say what the papers say is for the reader to judge; AI readers have compared them with the text.”(lattices/README.md,How to check it 節,What a reader has to trust 段) ↩
-
Anthropic, lattices/docs/departures.md,In all papers、Paper 1 與 Not formalized 各節。時間的原文:“The statements count steps of the machine in
CryptoDefs/. Paper 1 counts bit operations and gates”。取樣假設的原文:“The hypothesis (Sampler) of Part 2 is discharged, so it does not appear in the statements.” 第一篇論文第 9.1 節(第 41 頁):“The theorems on quantum algorithms are stated under the hypothesis (Sampler), which follows from Corollary 1.5 (Lemma 9.6(c)).” 門檻的原文:“Its statements on square Module-LWE and on schemes like ML-KEM and ML-DSA make the abstract and Section 12.5 concrete, with thresholds (n ≥ 2^29 or 2^30 for the schemes) that the paper leaves unnamed.” ↩ -
同上,Recommendations 節。第一項原文:“We recommend continuing the transition to post-quantum cryptography. At present, the reported attack falls far short of compromising the current NIST standards, and delaying the transition would prolong reliance on existing systems that can be broken with far fewer quantum resources than this new attack requires.” ↩
Comments
留言