Exploring Data-Efficient Adaptation of Large Language Models for Code Generation
Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education(高可信软件技术重点实验室(北京大学));School of Computer Science, Peking University, Beijing(计算机学院(北京大学))
Xue Jiang, Yihong Dong, Zhiyuan Fan, Zhi Jin, Wenpin Jiao, Ge Li
Although Large Language Models (LLMs) have made significant progress in code generation, they still struggle with code generation tasks in specific scenarios. These scenarios usually necessitate the adaptation of LLMs to fulfill specific needs, but the limited training data available in practice leads to poor code generation performance. Therefore, how to effectively adapt LLMs to new scenarios with few training data is a major challenge for current code generation. In this paper, we propose a novel adaptation approach named DEED, which stands for Data-Efficient adaptation with Error-Driven learning for code generation. DEED leverages the errors made by LLMs as learning opportunities, using error revision to overcome their own shortcomings, thus achieving efficient learning. Specifically, DEED involves identifying error code generated by LLMs, employing Self-Revise for code revision, optimizing the model with revised code, and iteratively adapting the process for continuous improvement. Experimental results show that, compared to other mainstream fine-tuning approaches, DEED achieves superior performance with few training data, showing an average relative improvement of 46.2% in Pass@1 on multiple code generation benchmarks. We also validate the effectiveness of Self-Revise, which generates revised code that optimizes the model more efficiently compared to the code samples from datasets. Moreover, DEED consistently demonstrates strong performance across various LLMs, underscoring its applicability.
Exploring Mode Connectivity for Pre-trained Language Models
Tsinghua University(清华大学);Renmin University of China(中国人民大学);International Innovation Center of Tsinghua University(清华大学国际创新中心);Tencent Inc.(腾讯公司);Quan Cheng Laboratory(泉城实验室)
How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Code
School of Computer Science and Engineering, Kyungpook National University(庆北国立大学计算机科学与工程学院);POSTECH(浦项科技大学);Department of Artificial Intelligence, Yonsei University(延世大学人工智能系)
Exploring Social Media Image Categorization Using Large Models with Different Adaptation Methods: A Case Study on Cultural Nature's Contributions to People
Dept. of Computer Science and Artificial Intelligence, DaSCI, University of Granada(计算机科学与人工智能系,DaSCI,格拉纳达大学);Interuniversity Institute of Earth System Research in Andalusia (IISTA), University of Granada(安达卢西亚地球系统研究中心(IISTA),格拉纳达大学);Dept. of Botany, University of Granada(植物学系,格拉纳达大学);Andalusian Center for Global Change (ENGLOBA), University of Almería(安达卢西亚全球变化中心(ENGLOBA),阿尔梅里亚大学);Dept. of Ecology, University of Granada(生态学系,格拉纳达大学);EDUCA EDTECH Group, Camino de la Torrecilla, 30, 18220, Granada, Spain(EDUCA EDTECH集团,Torrecilla路30号,格拉纳达,西班牙)
Exploring the Potential of Diffusion Large Language Models in Code Generation
College of AI, Tsinghua University(清华大学人工智能学院);School of Computer Science, Nanjing University(南京大学计算机科学学院);School of Computer Science and Engineering, Beihang University(北航计算机科学与工程学院);School of Computer Science, Peking University(北京大学计算机科学学院)
Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Code
2 State Key Laboratory of Complex \& Critical Software Environment (SKLCCSE) School of Computer Science;Engineering, Beihang University, Beijing, China;3 School of Software, Beihang University, Beijing, China;4 School of Computer Science;Technology, Shandong University, Qingdao, China;5 Huawei Cloud Computing Technologies Co., Ltd, China
Wired for Reuse: Automating Context-Aware Code Adaptation in IDEs via LLM-Based Agent
School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机科学与技术学院);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)