ConAIR:Consistency-Augmented Iterative Interaction Framework to Enhance the Reliability of Code Generation
Jinhao Dong, Jun Sun, Wenjie Zhang, Jin Song Dong, Dan Hao

TL;DR
ConAIR enhances code generation reliability by integrating minimal human feedback into an iterative framework that refines code and tests, significantly improving performance over baseline models.
Contribution
This paper introduces ConAIR, a novel framework that combines user feedback with consistency checks to iteratively improve code generation quality.
Findings
Achieves 33% performance improvement over the base model.
Requires only 4 iteration rounds on average.
Effectively combines human validation with consistency-based ranking.
Abstract
Code generation techniques generate code snippets automatically based on the problem requirements in natural language. Recently, large language models (LLMs) achieve the SOTA performance on code generation. However, LLMs still struggle at times to generate accurate code, which diminishes their promised efficiency as developers must spend significant effort evaluating and debugging the generated code. To improve the reliability and quality of the generated codes, researchers propose to leverage Consistency to obtain a better code based on generating and ranking multiple candidates. The existing approach is problematic as Consistency thinks a code is better when (1) the code pass more tests (inter-consistency) (2) more codes share the same behavior (intra-consistency). However, because the tests are also generated by LLMs, they could be wrong as well. As a result, majority voting based on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBusiness Process Modeling and Analysis · Service-Oriented Architecture and Web Services · Model-Driven Software Engineering Techniques
