VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation

Yifan Bai, Xiaoyang Liu, Zihao Mou, Guihong Wang, Jian Yu +5 more
5/21/2026
cs.LGcs.AIcs.SE

Official code: XiaoyangLiu-sjtu/VeriScale (2 stars, Lean, Apache-2.0, last commit 2026-07-27).

Abstract

As large language models (LLMs) are increasingly deployed for software engineering, constructing high-quality benchmarks is crucial for evaluating not just the functional correctness, but also the formal verifiability of generated code. However, existing benchmarks are limited by the quantity and quality of positive and negative test cases, leading to an overestimation of model capabilities in generating specifications and implementations.

Show full abstract

To address this, we propose VeriScale, a novel framework driven by the adversarial implementations. It consists of two stages: test-suite expansion to construct diverse and challenging test cases, and test-suite reduction to distill them into compact yet discriminative suites. While VeriScale is general, we instantiate it on Verina to construct VerinaPlus, which expands the original test suites by over 83$\times$, and VerinaLite, a lightweight 14$\times$ variant. Our experiments across eight state-of-the-art LLMs demonstrate that VerinaPlus exposes substantial model weaknesses hidden by the original benchmark, evidenced by sharp score drops on both SpecGen and CodeGen tasks, whereas VerinaLite maintains this discriminative power at a fraction of the evaluation cost. The enhanced benchmarks and source code are publicly available at https://github.com/XiaoyangLiu-sjtu/VeriScale.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
20Lean, PythonMay 18, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{bai2026veriscale,
  title  = {VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation},
  author = {Yifan Bai and Xiaoyang Liu and Zihao Mou and Guihong Wang and Jian Yu and Shuhan Xie and Yantao Li and Yangyu Zhang and Jingwei Liang and Tao Luo},
  year   = {2026},
  eprint = {2605.22368},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.22368v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.22368.svg)](https://codeofpaper.com/paper/2605.22368)

Discussion