本文综述近十年基于查询的 API 推荐研究,从论文发表、数据源、数据表示与提取、建模技术、排序策略和评价指标等方面梳理现状,并指出挑战与未来方向。
摘要:
Application Programming Interfaces(API,应用程序编程接口)旨在帮助开发者更高效地构建软件。近年来,为特定任务推荐合适的 API 已受到研究人员和开发者越来越多的关注。为全面理解这一研究领域,我们开展了一项综述,分析过去 10 年间发表的 API 推荐研究。本研究首先概述 API 推荐工具的结构。随后,我们系统分析已有研究,并提出四个关键研究问题。对于 RQ1,我们考察 API 推荐领域内已发表论文的数量以及这些论文出现的发表场所。在 RQ2 中,我们对 API 推荐研究中采用的常见数据源和收集方法进行分类与总结。在 RQ3 中,我们探讨 API 推荐方法所使用的数据类型和常见数据表示形式。我们还调研现有方法采用的典型数据提取流程和收集方式。RQ4 深入研究 API 推荐方法所采用的建模技术,涵盖统计模型和深度学习模型。此外,我们汇总了用于评估 API 推荐工具的常见排序策略和评价指标。基于综述发现,我们指出 API 推荐研究中当前值得进一步探索的挑战,以及未来研究的潜在方向。
英文摘要:
Application Programming Interfaces (APIs) are designed to help developers build software more effectively. Recommending the right APIs for specific tasks has gained increasing attention among researchers and developers in recent years. To comprehensively understand this research domain, we have surveyed to analyze API recommendation studies published in the last 10 years. Our study begins with an overview of the structure of API recommendation tools. Subsequently, we systematically analyze prior research and pose four key research questions. For RQ1, we examine the volume of published papers and the venues in which these papers appear within the API recommendation field. In RQ2, we categorize and summarize the prevalent data sources and collection methods employed in API recommendation research. In RQ3, we explore the types of data and common data representations utilized by API recommendation approaches. We also investigate the typical data extraction procedures and collection approaches employed by the existing approaches. RQ4 delves into the modeling techniques employed by API recommendation approaches, encompassing both statistical and deep learning models. Additionally, we compile an overview of the prevalent ranking strategies and evaluation metrics used for assessing API recommendation tools. Drawing from our survey findings, we identify current challenges in API recommendation research that warrant further exploration, along with potential avenues for future research.
WARBERT: A Hierarchical BERT-based Model for Web API Recommendation
School of Software Engineering(软件工程学院);School of Computer Science and Technology(计算机科学与技术学院);Huazhong University of Science and Technology(华中科技大学);SmartX
近年来,交互式推荐系统越来越受欢迎。通过用户与系统之间的交互,(1)用户可以主动干预推荐结果,而不是被动地接受它们,(2)系统可以更多地了解用户,以便提供更好的推荐。我们专注于单轮交互,即系统向用户提问(步骤1),并利用他的反馈来生成更好的推荐(步骤2)。本文提出了一种新的基于查询的交互式推荐系统,其中步骤1是\textbf{personalized questions are accurately generated from millions of automatically constructed questions},步骤2是\textbf{the recommendation is ensured to be closely-related to users' feedback}。我们通过将步骤1转换为查询推荐任务,将步骤2转换为检索任务来实现这一点。前一项任务是我们的主要挑战。我们首先提出了一个基于元路径的模型,以有效地从大型查询池中检索数百个查询候选。然后,一个自适应的Attention-GRU模型的开发,以有效地排名这些候选人的推荐。在中国大型电子商务平台淘宝网上进行的离线和在线实验验证了我们的交互系统的有效性。自2018年11月11日起,该系统已在淘宝App首页投入使用(在线工作方式请参见https://v.qq.com/x/page/s0833tkp1uo.ht…
From Prompting to Alignment: A Generative Framework for Query Recommendation
Baidu Inc.(百度公司);National Key Laboratory for Multimedia Information Processing, Peking University(北京大学多媒体信息处理国家重点实验室);Chinese Academy of Sciences(中国科学院)
FinAI Data Assistant: LLM-based Financial Database Query Processing with the OpenAI Function Calling API
Mirae Asset Global Investments AI Quant Lab, MODULABS Seoul Republic of Korea;Meritz Fire \& Marine Insurance AI Quant Lab, MODULABS Seoul Republic of Korea;Elice AI Quant Lab, MODULABS Seoul Republic of Korea;AI Quant Lab, MODULABS
本研究提出结合LLM与OpenAI Function Calling API的FinAI Data Assistant金融数据库查询方案,通过路由参数化查询提升可靠性与效率,实验验证其在延迟、成本和可靠性上优于text-to-SQL基线。
Neuro-Symbolic Recommendation Model based on Logic Query
Huzhou University(湖州师范学院);Zhejiang Province Key Laboratory of Smart Management and Application of Modern Agricultural Resources(浙江省现代农业资源智慧管理与应用重点实验室);Guizhou University(贵州大学);Guizhou Academy of Sciences(贵州科学院)
Locality Sensitive Hashing for Set-Queries, Motivated by Group Recommendations
局部敏感哈希(LSH)是一种有效的方法来索引一组点,这样我们就可以有效地找到查询点的最近邻居。我们将这种方法扩展到我们的新的集查询LSH(SLSH),这样它就可以找到一组点的最近邻居,作为查询。令$ s(x,y) $为两个点$ x $和$ y $之间的相似度。我们通过聚合所有$ p\in Q $的相似性$ s(p,x) $来定义集合$ Q$和点$ x $之间的相似性。例如,我们可以将$ s(p,x) $作为$ p $和$ x $之间的角度相似性(即,$1-{\angle (x,p)}/π$),并通过算术或几何平均或取最低相似性进行聚集。我们开发了本地敏感的哈希家庭和数据结构的一大套这样的算术和几何平均相似性,并分析其碰撞概率。我们还建立了一个类似的框架和散列距离函数的家庭。具体来说,我们给出了一个结构的欧氏距离聚合的平均值或采取最大值。我们利用SLSH来解决近似近邻问题的几何扩展。在这个版本中,我们考虑了一个度量,其中单位球是一个椭球体,其方向是由查询指定的。激励我们工作的一个重要应用是组推荐系统。这样的系统将电影和用户嵌入在相同的特征空间中,并且推荐一部电影供一组人一起观看的任务使用适当的相似性转换为集合查询$ Q $。