arXiv (Cornell University)
Clover: Closed-Loop Verifiable Code Generation
October 2023 • Chuyue Sun, Ying Sheng, Oded Padon, Clark Barrett
The use of large language models for code generation is a rapidly growing trend in software development. However, without effective methods for ensuring the correctness of generated code, this trend could lead to undesirable outcomes. In this paper, we introduce a new approach for addressing this challenge: the Clover paradigm, short for Closed-Loop Verifiable Code Generation, which uses consistency checking to provide a strong filter for incorrect code. Clover performs consistency checks among code, docstrings, a…