VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bai, Yifan, Liu, Xiaoyang, Mou, Zihao, Wang, Guihong, Yu, Jian, Xie, Shuhan, Li, Yantao, Zhang, Yangyu, Liang, Jingwei, Luo, Tao
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916036113072128
author Bai, Yifan
Liu, Xiaoyang
Mou, Zihao
Wang, Guihong
Yu, Jian
Xie, Shuhan
Li, Yantao
Zhang, Yangyu
Liang, Jingwei
Luo, Tao
author_facet Bai, Yifan
Liu, Xiaoyang
Mou, Zihao
Wang, Guihong
Yu, Jian
Xie, Shuhan
Li, Yantao
Zhang, Yangyu
Liang, Jingwei
Luo, Tao
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_22368
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation
Bai, Yifan
Liu, Xiaoyang
Mou, Zihao
Wang, Guihong
Yu, Jian
Xie, Shuhan
Li, Yantao
Zhang, Yangyu
Liang, Jingwei
Luo, Tao
Machine Learning
Artificial Intelligence
Software Engineering
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. 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.
title VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation
topic Machine Learning
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2605.22368