Code assistants are increasingly utilized in test-driven software development, yet the theoretical mechanisms behind their environment-interaction strategies remain underexplored. We provide a probabilistic framework for two dominant paradigms: code selection after generation using the execution environment, and code generation conditioned on environment feedback. First, we formalize several well-established selection heuristics as environment-aware estimators of code correctness. We theoretically prove that estimators based on fuzzy functional similarity add an inductive bias and strictly dominate estimators based on functional equivalence in terms of signal-to-noise ratio. Second, we frame backprompting as an in-context approximation of Thompson sampling. We derive a novel regret bound for reward functions with unobservable components, theoretically explaining why the effectiveness of backprompting is limited by the ambiguity of the informal task description (an irreducible regret). Using seven state-of-the-art open weight models, we corroborate these findings across BigCodeBenchHard, LeetCodeDataset, QiskitHumanEvalSim, and SWE-bench Verified. Our formalization also suggests how to improve task descriptions effectively, leading to an improved benchmark for LLM-assisted quantum programming, QiskitHumanEvalSimX.
CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback
Shanghai AI Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学);New York University(纽约大学);Carnegie Mellon University(卡内基梅隆大学);Shanghai Innovation Institute(上海创新研究院)
TDD-Agent: Test-Driven Reasoning for Code Generation
National College for Excellent Engineers, Beihang University(北京航空航天大学卓越工程师学院);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);Qingdao Research Institute and Hangzhou Innovation Institute, Beihang University(北京航空航天大学青岛研究院与杭州创新研究院);School of Software, Beihang University(北京航空航天大学软件学院)
Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
AI Research, Enhans, Seoul, South Korea Innovation \& Technology, KAIST, Daejeon, South Korea Department of Computer Science, University of California, Berkeley, CA, United States Department of Electrical
Code Evolution for Control: Synthesizing Policies via LLM-Driven Evolutionary Search
Shenzhen Yuyi Tech. Co. Ltd.(深圳优衣科技有限公司);City University of Hong Kong(香港城市大学);Shenzhen University(深圳大学);University of Electronic Science and Technology of China(电子科技大学)
Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composing
Tsinghua University(清华大学);Wuliangye Yibin Co., Ltd.(五粮液宜宾有限公司);Yantai University(烟台大学);Key Laboratory of Digital Construction and Digital Twin, Ministry of Housing and Urban-Rural Development(住房和城乡建设部数字建造与数字孪生重点实验室)
Code Generation for Machine Learning using Model-Driven Engineering and SysML
Technical University of Munich(慕尼黑工业大学);TUM School of Computation, Information and Technology(慕尼黑工业大学计算、信息与技术学院);University of Applied Sciences Vorarlberg(福拉尔贝格应用科学大学);Zumtobel Lighting GmbH(祖姆托贝尔照明有限公司)
Data-Driven AI Model Signal-Awareness Enhancement and Introspection
IBM Research(IBM研究院)
用于源代码理解任务的人工智能建模已经取得了重大进展,并正在生产开发管道中采用。然而,可靠性问题,特别是模型是否真的在学习源代码的任务相关方面,正在被提出。虽然最近的模型探测方法已经观察到许多AI for code模型中缺乏信号感知,即模型没有捕获任务相关的信号,但它们没有提供解决方案来纠正这个问题。在本文中,我们探索了数据驱动的方法来增强模型的信号感知:1)我们将代码复杂性的SE概念与课程学习的AI技术相结合; 2)我们通过自定义Delta函数来生成简化的信号保持程序,将SE辅助纳入AI模型,并将其扩展到训练数据集。通过我们的技术,我们在模型信号感知方面实现了高达4.8倍的改进。使用代码复杂度的概念,我们进一步从数据集的角度提出了一种新的模型学习内省方法。
Scaling Test-Driven Code Generation from Functions to Classes: An Empirical Study
Chengdu Institute of Computer Applications, Chinese Academy of Sciences(中国科学院成都计算机应用研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Multidisciplinary Research for Advanced Materials (IMRAM), Tohoku University(东北大学先进材料跨学科研究所);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Artificial Intelligence Research Institute, Shenzhen University of Advanced Technology(深圳高等研究院人工智能研究所)