Improving Natural Language Capability of Code Large Language Model

Wei Li, Daoguang Zan, Bei Guan, Ailun Yu, Xiaolin Chen +1 more
1/25/2024
cs.CL

No official code found. Best implementation: NL2Code/AttentionCoder (5 stars, last commit 2024-02-08).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

50PythonJan 24, 20242 years ago

Similar Papers

Cite this paper

@article{li2024improving,
  title  = {Improving Natural Language Capability of Code Large Language Model},
  author = {Wei Li and Daoguang Zan and Bei Guan and Ailun Yu and Xiaolin Chen and Yongji Wang},
  year   = {2024},
  eprint = {2401.14242},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14242v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.14242.svg)](https://codeofpaper.com/paper/2401.14242)

Discussion