arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.14242cs.CL
收藏

提升代码大语言模型的自然语言能力

Improving Natural Language Capability of Code Large Language Model

Cooperative Innovation Center, Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所协同创新中心);University of Chinese Academy of Sciences(中国科学院大学);Integrative Innovation Center, Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所综合创新中心);Peking University(北京大学)

Wei Li, Daoguang Zan, Bei Guan, Ailun Yu, Xiaolin Chen, Yongji Wang

AI总结:

针对代码大语言模型自然语言能力不足的问题,提出由AttentionExtractor和AttentionCoder组成、融合传统NLP工具的框架,并构建涵盖五种语言的MultiNL-H基准验证其有效性。

摘要:

代码大语言模型(Code LLMs)已在代码生成中展现出卓越性能。尽管如此,现有大多数工作都侧重于从编程能力的角度提升代码大语言模型,而它们的自然语言能力受到的关注较少。为填补这一空白,我们提出了一个新颖框架,包含两个模块:AttentionExtractor负责从用户的自然语言需求中提取关键短语,AttentionCoder则利用这些提取出的短语生成目标代码以解决该需求。该框架通过将代码大语言模型与传统自然语言处理工具无缝集成,开创了一种创新思路。为验证框架的有效性,我们构建了一个名为MultiNL-H的新代码生成基准,涵盖五种自然语言。大量实验结果证明了所提框架的有效性。

英文摘要:

Code large language models (Code LLMs) have demonstrated remarkable performance in code generation. Nonetheless, most existing works focus on boosting code LLMs from the perspective of programming capabilities, while their natural language capabilities receive less attention. To fill this gap, we thus propose a novel framework, comprising two modules: AttentionExtractor, which is responsible for extracting key phrases from the user's natural language requirements, and AttentionCoder, which leverages these extracted phrases to generate target code to solve the requirement. This framework pioneers an innovative idea by seamlessly integrating code LLMs with traditional natural language processing tools. To validate the effectiveness of the framework, we craft a new code generation benchmark, called MultiNL-H, covering five natural languages. Extensive experimental results demonstrate the effectiveness of our proposed framework.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑