Self-Spec Verifiable Code Generation
Jiaru QianYihong DongYongmin LiHao ZhuBin GuGe Li
Jiaru Qian
Yihong Dong
Yongmin Li
Hao Zhu
Bin Gu
Ge Li
+6
We present VeriCodeBench, a benchmark for self-spec verifiable code generation, where LLMs generate both specifications and code end-to-end, addressing existing benchmarks' stage-wise evaluation and narrow task coverage. It includes 400 language-native problems across C, Java, Rust, and Python. We also introduce CodeNova, which uses constraint-guided specifications and verifier feedback for targeted repairs. Experiments show self-generated specifications are a bottleneck and CodeNova significantly improves all metrics, enabling Claude Sonnet 5 to lead under the self-spec protocol.

arXiv ·
· September 30, 2026