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

GenCodeSearchNet:评估编程语言理解泛化能力的基准测试套件

GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understanding

Ulm University(乌尔姆大学);GESIS - Institute for Social Sciences(GESIS 社会科学研究所);Max Planck Institute for Psycholinguistics(马克斯·普朗克心理语言学研究所)

Andor Diera, Abdelhalim Dahou, Lukas Galke, Fabian Karl, Florian Sihler, Ansgar Scherp

AI总结:

提出基准数据集GenCodeSearchNet,系统评估语言模型在编程语言理解上的泛化能力,并引入针对R语言的人工子集StatCodeSearch,通过零样本基线实验验证其有效性。

摘要:

语言模型可以作为软件开发人员提高生产力的宝贵工具。大型生成模型可用于代码生成和代码补全,而较小的仅编码器模型则能够使用自然语言查询执行代码搜索任务。这些能力在很大程度上受到可用训练数据的质量和多样性的影响。用于训练的源代码数据集通常侧重于最流行的语言,测试也大多在同一分布上进行,往往忽略了资源较少的编程语言。受Hupkes等人提出的自然语言处理泛化分类法的启发,我们提出了一个新的基准数据集GenCodeSearchNet(GeCS),它建立在现有的自然语言代码搜索数据集之上,以系统性地评估语言模型在编程语言理解方面的泛化能力。作为完整数据集的一部分,我们引入了一个新的、人工精心策划的子集StatCodeSearch,专注于R语言——一种流行但迄今代表性不足的编程语言,通常被计算机科学领域之外的研究人员使用。为了进行评估和比较,我们使用微调的BERT风格模型和GPT风格的大型语言模型在零样本设置下收集了若干基线结果。

英文摘要:

Language models can serve as a valuable tool for software developers to increase productivity. Large generative models can be used for code generation and code completion, while smaller encoder-only models are capable of performing code search tasks using natural language queries.These capabilities are heavily influenced by the quality and diversity of the available training data. Source code datasets used for training usually focus on the most popular languages and testing is mostly conducted on the same distributions, often overlooking low-resource programming languages. Motivated by the NLP generalization taxonomy proposed by Hupkes et.\,al., we propose a new benchmark dataset called GenCodeSearchNet (GeCS) which builds upon existing natural language code search datasets to systemically evaluate the programming language understanding generalization capabilities of language models. As part of the full dataset, we introduce a new, manually curated subset StatCodeSearch that focuses on R, a popular but so far underrepresented programming language that is often used by researchers outside the field of computer science. For evaluation and comparison, we collect several baseline results using fine-tuned BERT-style models and GPT-style large language models in a zero-shot setting.

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

↑