VERSE: Verification-based Self-Play for Code Instructions
DOI:
https://doi.org/10.1609/aaai.v39i23.34604Abstract
Instruction-tuned Code Large Language Models (Code LLMs) have excelled in diverse code-related tasks, such as program synthesis, automatic program repair, and code explanation. To collect training datasets for instruction-tuning, a popular method involves having models autonomously generate instructions and corresponding responses. However, the direct generation of responses does not ensure functional correctness, a crucial requirement for generating responses to code instructions. To overcome this, we present Verification-Based Self-Play (VERSE), aiming to enhance model proficiency in generating correct responses. VERSE establishes a robust verification framework that covers various code instructions. Employing VERSE, Code LLMs engage in self-play to generate instructions and corresponding verifications. They evaluate execution results and self-consistency as verification outcomes, using them as scores to rank generated data for self-training. Experiments show that VERSE improves multiple base Code LLMs (average 7.6%) across various languages and tasks on many benchmarks, affirming its effectiveness.Published
2025-04-11
How to Cite
Jiang, H., Liu, Q., Li, R., Zhao, Y., Ma, Y., Ye, S., … Su, Y. (2025). VERSE: Verification-based Self-Play for Code Instructions. Proceedings of the AAAI Conference on Artificial Intelligence, 39(23), 24276–24284. https://doi.org/10.1609/aaai.v39i23.34604
Issue
Section
AAAI Technical Track on Natural Language Processing II