arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.20172cs.SEcs.LG
收藏

Web API集成代码生成的基准测试

Benchmarking Web API Integration Code Generation

Hessian Center for Artificial Intelligence(黑森人工智能中心);National Research Center for Applied Cybersecurity ATHENE(应用网络安全国家研究研究中心ATHENE);Pariton AI

Daniel Maninger, Leon Chemnitz, Amir Molzam Sharifloo, Jannis Brugger, Mira Mezini

AI总结:

本文提出WAPIIBench数据集和评估流程,评估LLM生成Web API调用代码的能力,发现现有开源模型在生成API调用时存在显著挑战,如错误端点和参数使用问题。

摘要:

API集成是数字基础设施的核心,使软件系统能够连接和交互。然而,许多研究表明编写或生成正确调用API的代码,特别是Web API,具有挑战性。尽管大型语言模型(LLMs)在软件开发中变得流行,但其在自动化生成Web API集成代码方面的有效性尚未被探索。为此,我们提出了WAPIIBench,一个数据集和评估流程,旨在评估LLMs生成Web API调用代码的能力。我们对几种开源LLMs进行实验,发现生成API调用是一项重大挑战,导致虚构的端点、错误的参数使用和其他错误。评估的开源模型中,没有一个能够解决超过40%的任务。

英文摘要:

API integration is a cornerstone of our digital infrastructure, enabling software systems to connect and interact. However, as shown by many studies, writing or generating correct code to invoke APIs, particularly web APIs, is challenging. Although large language models (LLMs) have become popular in software development, their effectiveness in automating the generation of web API integration code remains unexplored. In order to address this, we present WAPIIBench, a dataset and evaluation pipeline designed to assess the ability of LLMs to generate web API invocation code. Our experiments with several open-source LLMs reveal that generating API invocations poses a significant challenge, resulting in hallucinated endpoints, incorrect argument usage, and other errors. None of the evaluated open-source models was able to solve more than 40% of the tasks.

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

↑