用于代码优化的语言模型:综述、挑战与未来方向
Language Models for Code Optimization: Survey, Challenges and Future Directions
AI总结:
本文系统综述了50余项基于语言模型的代码优化研究,识别出五大开放挑战并提出八个未来研究方向,为该领域提供基础性参考。
摘要:
基于深度神经网络(DNNs)构建的语言模型(LMs)近期在代码生成、代码补全和代码修复等软件工程任务中展现出突破性的有效性,这为基于语言模型的代码优化技术的出现铺平了道路。此类技术对于提升现有程序的性能至关重要,例如加速程序执行时间。然而,专门针对这一特定应用领域的全面综述一直缺失。为填补这一空白,我们开展了对50余项原始研究的系统性文献综述,识别了新兴趋势并回答了11个专门问题。我们的研究发现揭示了五个关键开放挑战,例如在模型复杂度与实际可用性之间取得平衡、跨语言/跨性能的泛化能力,以及建立对人工智能驱动解决方案的信任。此外,我们提供了八个未来研究方向,以促进更高效、更稳健且更可靠的基于语言模型的代码优化。因此,本研究旨在为这一快速发展领域的研究人员和实践者提供可操作的见解和基础性参考。
英文摘要:
Language models (LMs) built upon deep neural networks (DNNs) have recently demonstrated breakthrough effectiveness in software engineering tasks such as code generation, completion, and repair. This has paved the way for the emergence of LM-based code optimization techniques, which are crucial for enhancing the performance of existing programs, such as accelerating program execution time. However, a comprehensive survey dedicated to this specific application has been lacking. To fill this gap, we present a systematic literature review of over 50 primary studies, identifying emerging trends and addressing 11 specialized questions. Our findings reveal five critical open challenges, such as balancing model complexity with practical usability, cross-language/performance generalizability, and building trust in AI-driven solutions. Furthermore, we provide eight future research directions to facilitate more efficient, robust, and reliable LM-based code optimization. Thereby, this study aims to provide actionable insights and foundational references for both researchers and practitioners in this rapidly evolving field.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。