arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.13018cs.CLcs.SE
收藏

大语言模型在低资源与领域特定编程语言编码中的潜力

The potential of LLMs for coding with low-resource and domain-specific programming languages

Artur Tarassow

AI总结:

该研究以gretl的hansl语言为对象,验证基于GPT-3.5的LLM在低资源领域编程语言中的编码辅助能力,证实其可用于代码编写、文档生成等,同时指出存在代码优化、单元测试编写方面的局限,为低资源语言软件开发提供参考。

摘要:

本文研究了大语言模型(LLM)用于低资源和领域特定编程语言编码的可行性,这类语言通常缺乏有效LLM处理技术所需的足量数据。本研究聚焦开源软件gretl的计量经济学脚本语言hansl,采用基于GPT-3.5的专有LLM开展实验。研究结果表明,LLM可作为编写、理解、优化gretl代码及为其编写文档的有用工具,包括为函数生成描述性文档字符串,以及为抽象且文档不完善的计量经济学代码提供精准解释。尽管该LLM展现出良好的文档字符串转代码能力,我们也发现了一些局限性,例如无法优化某些代码段,也难以编写准确的单元测试。本研究是利用LLM能力推动低资源编程语言软件开发、最终降低其采用门槛的一项探索。

英文摘要:

This paper presents a study on the feasibility of using large language models (LLM) for coding with low-resource and domain-specific programming languages that typically lack the amount of data required for effective LLM processing techniques. This study focuses on the econometric scripting language named hansl of the open-source software gretl and employs a proprietary LLM based on GPT-3.5. Our findings suggest that LLMs can be a useful tool for writing, understanding, improving, and documenting gretl code, which includes generating descriptive docstrings for functions and providing precise explanations for abstract and poorly documented econometric code. While the LLM showcased promoting docstring-to-code translation capability, we also identify some limitations, such as its inability to improve certain sections of code and to write accurate unit tests. This study is a step towards leveraging the power of LLMs to facilitate software development in low-resource programming languages and ultimately to lower barriers to entry for their adoption.

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

↑