A benchmark of 15 post-quantum cryptography implementation tasks across nine repositories and seven languages. With explicit interfaces, GPT-6.1-Sol passes every NIST validation vector; without them, its pass rate drops to 29%.
| Cases | GPT-6.1-Sol | Kimi K3.1 Pro | GLM-5.3-FlashX | ||||||
| Algorithm | Task | PR | ACVP | PR | ACVP | PR | ACVP | PR | ACVP |
| ML-KEM | CIRCL-470 | 180 | 435 | 100 | 100 | 100 | 100 | 0 | 11.5 |
| OpenJDK-21478 | 180 | 435 | 100 | 100 | 100 | 37.9 | 0 | 0 | |
| OpenSSL-26715-b | 7 | 435 | 14.3 | 100 | 0 | 100 | 0 | 0 | |
| Orion-431 | 180 | 435 | 100 | 100 | 100 | 100 | 0 | 0 | |
| Botan-3893 | 225 | 435 | 100 | 100 | 33.3 | 100 | 0 | 0 | |
| ML-DSA | CIRCL-480 | 135 | 1,335 | 100 | 100 | 100 | 100 | 0 | 0 |
| RustCrypto-877 | 180 | 1,335 | 100 | 100 | 58.3 | 0 | 0 | 0 | |
| Pascal-115 | 4,158 | 1,335 | 100 | 100 | 0 | 0 | 0 | 0 | |
| liboqs-1919 | 180 | 1,335 | 100 | 100 | 100 | 100 | 0 | 10.8 | |
| OpenJDK-21364 | 180 | 1,335 | 100 | 100 | 0 | 10.8 | 0 | 67.4 | |
| OpenSSL-26715-a | 47 | 1,335 | 97.9 | 100 | 0 | 5.6 | 0 | 0 | |
| Orion-654 | 336 | 1,335 | 93.8 | 100 | 93.8 | 16.4 | 0 | 0 | |
| V-26711 | 64 | 1,335 | 100 | 100 | 100 | 67.4 | 0 | 10.8 | |
| SLH-DSA | CIRCL-512 | 31 | 1,248 | 100 | 100 | 0 | 45.4 | 0 | 0 |
| liboqs-2175 | 4,908 | 1,248 | 100 | 100 | 0 | 53.5 | 0 | 0 | |
| Mean pass rate (%) | 93.7 | 100.0 | 52.4 | 55.8 | 0.0 | 6.7 | |||
| Tasks fully passed | 12 | 15 | 6 | 6 | 0 | 0 | |||
| Correctness | Conformance | Agent | ||||||
|---|---|---|---|---|---|---|---|---|
| Model | (%) | (%) | Diag. PR (%) | $/attempt | Steps | At limit | ||
| GPT-6.1-Sol | 93.7 | 12 | 100.0 | 15 | 99.4 | 1.54 | 49 | 2/30 |
| Kimi K3.1 Pro | 52.4 | 6 | 55.8 | 6 | 51.7 | 2.32 | 74 | 8/30 |
| GLM-5.3-FlashX | 0.0 | 0 | 6.7 | 0 | 0.1 | 1.04 | 147 | 30/30 |
Going deeper
The two evaluators catch different failures, even on the same patch. Kimi K3.1 Pro’s liboqs-2175 conformance patch passes all 4,908 PR cases but only 668 of 1,248 ACVP cases (53.5%). In the other direction, its OpenSSL-26715-b conformance patch passes every ACVP case but none of the 7 PR cases, and GPT-6.1-Sol’s OpenSSL-26715-a and Orion-654 conformance patches pass every ACVP case while still missing 1 and 21 PR cases. The PR tests check repository behavior that ACVP does not exercise, and ACVP vectors expose computation errors that the selected PR tests miss. Reporting only one evaluator would overstate both kinds of patch.
Imagine a locksmith company asks three apprentices to install new locks in fifteen different buildings, following the manufacturer's exact blueprint. Each apprentice gets a copy of the building and the blueprint, works alone, and hands back a finished door. The company needs to check two things: does the lock work with the building's existing key system, and does it match the manufacturer's test keys?
The authors built exactly this setup for post-quantum cryptography. NIST published new lock designs (ML-KEM, ML-DSA, SLH-DSA), and real software libraries need them installed. The benchmark hands each AI coding agent a library and a specification, then checks the result two ways: does it pass the library's own tests, and does it produce the right answers for NIST's official test keys?
The best apprentice, GPT-6.1-Sol, matched every official test key perfectly when given detailed instructions. But take away the detailed instructions and it mostly cannot even get the door to close. The other two apprentices did much worse. And none of the checks tell you whether the lock is actually pick-proof: the tests only check that the right key opens it.
The abstract, word for word, with the five densest phrases unpacked.
A large-scale quantum computer would break the public-key cryptography that protects today’s communications, and NIST has standardized ML-KEM, ML-DSA, and SLH-DSA (FIPS 203–205) as replacements that cryptographic libraries must implement. It remains unexplored whether coding agents can turn such a standard into a working and conforming patch for an existing library. This paper presents PQCImplement-Bench, a benchmark comprising 15 tasks derived from 14 pull requests across nine repositories and seven programming languages1, each pairing a pre-change repository snapshot with a reviewed specification of requirements and interfaces. The benchmark grades patches with two independent test oracles that separate correctness within the repository from conformance to the standard2. One oracle consists of relevant repository tests, and the other consists of NIST validation vectors for each standard. We evaluate three models, GPT-6.1-Sol, Kimi K3.1 Pro, and GLM-5.3-FlashX in OpenHands. Given only the problem statement, GPT-6.1-Sol reaches a mean pass rate of 29.0% on the validation vectors and 18.9% on repository tests3. With the interface specification added, the pass rate for GPT-6.1-Sol rises to 100%4, while Kimi K3.1 Pro reaches 55.8% and GLM-5.3-FlashX 6.7%5. On the repository tests, the three models reach mean pass rates of 93.7%, 52.4%, and 0.0%. We release the dataset and evaluation framework for future research.
Two lines of prior work converge at this benchmark: repository-level coding benchmarks and post-quantum cryptography evaluation.
Read the results first, then the methodology for what you need.
Skip Section 2 if you already know PQC standards and SWE-bench.
If the results overstate what agents can do, look here.
GPT-6.1-Sol finishes 28 of its 30 attempts on its own, with a median of 49 steps and a mean cost of $1.54 per attempt (median $1.22); the other two stop at the cost limit. Kimi K3.1 Pro takes a median of 74 steps at a mean cost of $2.32 per attempt (median $2.00), and 8 of its 30 attempts stop at the step or cost limit. GLM-5.3-FlashX never calls finish: all 30 attempts run until the 150-step limit (median 147 steps), at a mean cost of $1.04 per attempt (median $0.98). The main experiment cost $146.92 in total. One attempt needed a grading decision: the ACVP grader marked Kimi K3.1 Pro’s Pascal-115 conformance attempt as an infrastructure error because the driver’s output was not valid JSON. The cause was two debug print statements that the patch left in its ML-DSA signing and verification code, so we count all 1,335 of its ACVP cases as failed rather than regrading it.
The evaluation measures functional behavior on finite inputs. It does not assess constant-time execution or side-channel resistance, and passing does not constitute a security proof or certification. Upstream patches and vectors are public, so prior model exposure remains a potential confound.
| ACVP | Diagnostic PR | Failures | ||||
|---|---|---|---|---|---|---|
| Variant | Mean | Full | Build | Test | ||
| Main | 100.0 | 15 | 99.4 | 13 | 0 | 2 |
| Statement only | 29.0 | 4 | 18.9 | 2 | 20 | 4 |
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all