With the advent of AI-based coding engines, it is possible to convert natural language requirements to executable code in standard programming languages. However, AI-generated code can be unreliable, and the natural language requirements driving this code may be ambiguous. In other words, the intent may not be accurately captured in the code generated from AI-coding engines like Copilot. The goal of our work is to discover the programmer intent, while generating code which conforms to the intent and a proof of this conformance. Our approach to intent discovery is powered by a novel repair engine called program-proof co-evolution, where the object of repair is a tuple (code, logical specification, test) generated by an LLM from the same natural language description. The program and the specification capture the initial operational and declarative description of intent, while the test represents a concrete, albeit partial, understanding of the intent. Our objective is to achieve consistency between the program, the specification, and the test by incrementally refining our understanding of the user intent. Reaching consistency through this repair process provides us with a formal, logical description of the intent, which is then translated back into natural language for the developer's inspection. The resultant intent description is now unambiguous, though expressed in natural language. We demonstrate how the unambiguous intent discovered through our approach increases the percentage of verifiable auto-generated programs on a recently proposed dataset in the Dafny programming language.
Automatic Programming: Large Language Models and Beyond
Chinese University of Hong Kong(香港中文大学);Columbia University(哥伦比亚大学);National University of Singapore(新加坡国立大学);Concordia University(康考迪亚大学);University of Melbourne(墨尔本大学)
From Prediction to Application: Language Model-based Code Knowledge Tracing with Domain Adaptive Pre-Training and Automatic Feedback System with Pedagogical Prompting for Comprehensive Programming Education
Enuma Inc(Enuma公司);University of Memphis(孟菲斯大学);Daegu National University of Education(大邱教育大学);Seoul National University(首尔大学);Seoul Metropolitan Office of Education(首尔市教育厅);Korea University(高丽大学)
MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming
School of Computer Science, University of Auckland(计算机科学系,奥克兰大学);School of Information and Communication Technology, Griffith University(信息与通信技术系,格里菲斯大学);Beijing Institute of Technology(北京理工大学);Suzhou Industrial Park Monash Research Institute of Science and Technology(苏州工业园区莫纳什科学与技术研究所);School of Computing, National University of Singapore(计算系,新加坡国立大学)