Let’s Discover More API Relations: A Large Language Model-based AI Chain for Unsupervised API Relation Inference

计算机科学 推论 关系(数据库) 人工智能 程序设计语言 自然语言处理 数据挖掘
作者
Qing Huang,Yanbang Sun,Zhenchang Xing,Yuanlong Cao,Jieshan Chen,Xiwei Xu,Huan Jin,Jiaxing Lu
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
被引量:1
标识
DOI:10.1145/3680469
摘要

APIs have intricate relations that can be described in text and represented as knowledge graphs to aid software engineering tasks. Existing relation extraction methods have limitations, such as limited API text corpus and affected by the characteristics of the input text. To address these limitations, we propose utilizing large language models (LLMs) (e.g., gpt-3.5) as a neural knowledge base for API relation inference. This approach leverages the entire Web used to pre-train LLMs as a knowledge base and is insensitive to the context and complexity of input texts. To ensure accurate inference, we design an AI chain consisting of three AI modules: API Fully Qualified Name (FQN) Parser, API Knowledge Extractor, and API Relation Decider. The accuracy of the API FQN Parser and API Relation Decider is 0.81 and 0.83, respectively. Using the generative capacity of the LLM and our approach’s inference capability, we achieve an average F1 value of 0.76 under the three datasets, significantly higher than the state-of-the-art method’s average F1 value of 0.40. Compared to the original CoT and modularized CoT methods, our AI chain design has improved the performance of API relation inference by 71% and 49%, respectively. Meanwhile, the prompt ensembling strategy enhances the performance of our approach by 32%. The API relations inferred by our method can be further organized into structured forms to provide support for other software engineering tasks.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
刚刚
新手菜鸟完成签到,获得积分10
刚刚
1秒前
1秒前
科研如喝水完成签到,获得积分10
1秒前
暖暖发布了新的文献求助200
1秒前
1秒前
韩瑞发布了新的文献求助10
2秒前
饺子完成签到,获得积分10
3秒前
烟花应助dasen采纳,获得10
3秒前
3秒前
3秒前
3秒前
年华发布了新的文献求助10
4秒前
4秒前
暗号发布了新的文献求助10
4秒前
5秒前
oct11发布了新的文献求助10
6秒前
6秒前
6秒前
饺子发布了新的文献求助10
6秒前
El发布了新的文献求助10
7秒前
9秒前
9秒前
kuandong完成签到,获得积分10
9秒前
识字岭的岭应助红辣椒采纳,获得10
9秒前
dktrrrr完成签到,获得积分10
9秒前
joyemovie发布了新的文献求助10
10秒前
英姑应助ghost采纳,获得10
10秒前
小闰土发布了新的文献求助10
10秒前
一颗橙子完成签到,获得积分10
11秒前
11秒前
11秒前
钟意应助科研通管家采纳,获得10
11秒前
orixero应助科研通管家采纳,获得10
11秒前
爆米花应助科研通管家采纳,获得10
11秒前
Akim应助科研通管家采纳,获得10
11秒前
GEL应助科研通管家采纳,获得10
11秒前
123应助科研通管家采纳,获得10
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aerospace Standards Index - 2026 ASIN2026 3000
Relation between chemical structure and local anesthetic action: tertiary alkylamine derivatives of diphenylhydantoin 1000
Signals, Systems, and Signal Processing 610
Discrete-Time Signals and Systems 610
Principles of town planning : translating concepts to applications 500
Work Engagement and Employee Well-being 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 纳米技术 有机化学 物理 生物化学 化学工程 计算机科学 复合材料 内科学 催化作用 光电子学 物理化学 电极 冶金 遗传学 细胞生物学
热门帖子
关注 科研通微信公众号,转发送积分 6068984
求助须知:如何正确求助?哪些是违规求助? 7900944
关于积分的说明 16332277
捐赠科研通 5210188
什么是DOI,文献DOI怎么找? 2786834
邀请新用户注册赠送积分活动 1769707
关于科研通互助平台的介绍 1647925