WorkDifferentWithAI.com Academic Paper Alert!
Written by Qing Huang, Yanbang Sun, Zhenchang Xing, Yuanlong Cao, Jieshan Chen, Xiwei Xu, Huan Jin, Jiaxing Lu
Category: “AI for IT”
Article Section: AI Development and Operations; AI-Assisted Programming
Publication Date: 2023-11-02
SEO Description: “AI Chain enhances unsupervised API relation inference, leveraging large language model, with increased reliability and robustness.”
12014432
{12014432:JLX2DWWF}
items
1
modern-language-association
0
default
asc
889
https://workdifferentwithai.net/wp-content/plugins/zotpress/
%7B%22status%22%3A%22success%22%2C%22updateneeded%22%3Afalse%2C%22instance%22%3A%22zotpress-24356b5eef35e648adc97cdb04f4e6fd%22%2C%22meta%22%3A%7B%22request_last%22%3A0%2C%22request_next%22%3A0%2C%22used_cache%22%3Atrue%7D%2C%22data%22%3A%5B%7B%22key%22%3A%22JLX2DWWF%22%2C%22library%22%3A%7B%22id%22%3A12014432%7D%2C%22meta%22%3A%7B%22creatorSummary%22%3A%22Huang%20et%20al.%22%2C%22parsedDate%22%3A%222023-11-02%22%2C%22numChildren%22%3A2%7D%2C%22bib%22%3A%22%3Cdiv%20class%3D%5C%22csl-bib-body%5C%22%20style%3D%5C%22line-height%3A%202%3B%20padding-left%3A%201em%3B%20text-indent%3A-1em%3B%5C%22%3E%5Cn%20%20%3Cdiv%20class%3D%5C%22csl-entry%5C%22%3EHuang%2C%20Qing%2C%20et%20al.%20%3Ci%3ELet%26%23x2019%3Bs%20Discover%20More%20API%20Relations%3A%20A%20Large%20Language%20Model-Based%20AI%20Chain%20for%20Unsupervised%20API%20Relation%20Inference%3C%5C%2Fi%3E.%20arXiv%3A2311.01266%2C%20arXiv%2C%202%20Nov.%202023%2C%20%3Ca%20href%3D%27http%3A%5C%2F%5C%2Farxiv.org%5C%2Fabs%5C%2F2311.01266%27%3Ehttp%3A%5C%2F%5C%2Farxiv.org%5C%2Fabs%5C%2F2311.01266%3C%5C%2Fa%3E.%3C%5C%2Fdiv%3E%5Cn%3C%5C%2Fdiv%3E%22%2C%22data%22%3A%7B%22itemType%22%3A%22preprint%22%2C%22title%22%3A%22Let%27s%20Discover%20More%20API%20Relations%3A%20A%20Large%20Language%20Model-based%20AI%20Chain%20for%20Unsupervised%20API%20Relation%20Inference%22%2C%22creators%22%3A%5B%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Qing%22%2C%22lastName%22%3A%22Huang%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Yanbang%22%2C%22lastName%22%3A%22Sun%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Zhenchang%22%2C%22lastName%22%3A%22Xing%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Yuanlong%22%2C%22lastName%22%3A%22Cao%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Jieshan%22%2C%22lastName%22%3A%22Chen%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Xiwei%22%2C%22lastName%22%3A%22Xu%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Huan%22%2C%22lastName%22%3A%22Jin%22%7D%2C%7B%22creatorType%22%3A%22author%22%2C%22firstName%22%3A%22Jiaxing%22%2C%22lastName%22%3A%22Lu%22%7D%5D%2C%22abstractNote%22%3A%22APIs%20have%20intricate%20relations%20that%20can%20be%20described%20in%20text%20and%20represented%20as%20knowledge%20graphs%20to%20aid%20software%20engineering%20tasks.%20Existing%20relation%20extraction%20methods%20have%20limitations%2C%20such%20as%20limited%20API%20text%20corpus%20and%20affected%20by%20the%20characteristics%20of%20the%20input%20text.To%20address%20these%20limitations%2C%20we%20propose%20utilizing%20large%20language%20models%20%28LLMs%29%20%28e.g.%2C%20GPT-3.5%29%20as%20a%20neural%20knowledge%20base%20for%20API%20relation%20inference.%20This%20approach%20leverages%20the%20entire%20Web%20used%20to%20pre-train%20LLMs%20as%20a%20knowledge%20base%20and%20is%20insensitive%20to%20the%20context%20and%20complexity%20of%20input%20texts.%20To%20ensure%20accurate%20inference%2C%20we%20design%20our%20analytic%20flow%20as%20an%20AI%20Chain%20with%20three%20AI%20modules%3A%20API%20FQN%20Parser%2C%20API%20Knowledge%20Extractor%2C%20and%20API%20Relation%20Decider.%20The%20accuracy%20of%20the%20API%20FQN%20parser%20and%20API%20Relation%20Decider%20module%20are%200.81%20and%200.83%2C%20respectively.%20Using%20the%20generative%20capacity%20of%20the%20LLM%20and%20our%20approach%27s%20inference%20capability%2C%20we%20achieve%20an%20average%20F1%20value%20of%200.76%20under%20the%20three%20datasets%2C%20significantly%20higher%20than%20the%20state-of-the-art%20method%27s%20average%20F1%20value%20of%200.40.%20Compared%20to%20CoT-based%20method%2C%20our%20AI%20Chain%20design%20improves%20the%20inference%20reliability%20by%2067%25%2C%20and%20the%20AI-crowd-intelligence%20strategy%20enhances%20the%20robustness%20of%20our%20approach%20by%2026%25.%22%2C%22genre%22%3A%22%22%2C%22repository%22%3A%22arXiv%22%2C%22archiveID%22%3A%22arXiv%3A2311.01266%22%2C%22date%22%3A%222023-11-02%22%2C%22DOI%22%3A%22%22%2C%22citationKey%22%3A%22%22%2C%22url%22%3A%22http%3A%5C%2F%5C%2Farxiv.org%5C%2Fabs%5C%2F2311.01266%22%2C%22language%22%3A%22%22%2C%22collections%22%3A%5B%22RB7X9SIN%22%5D%2C%22dateModified%22%3A%222023-11-09T21%3A04%3A03Z%22%7D%7D%5D%7D
Huang, Qing, et al.
Let’s Discover More API Relations: A Large Language Model-Based AI Chain for Unsupervised API Relation Inference. arXiv:2311.01266, arXiv, 2 Nov. 2023,
http://arxiv.org/abs/2311.01266.
AI-Generated Paper Summary
The paper “Let’s Discover More API Relations: A Large Language Model-based AI Chain for Unsupervised API Relation Inference,” written by Qing Huang and seven other authors, presents an innovative approach to inferring API relationships. The authors propose the use of large language models (LLMs) like GPT-3.5 as a neural knowledge base to understand complex API relations. The approach takes advantage of the information present on the web used to pre-train LLMs and is not affected by the context or complexity of input texts. The authors developed an AI Chain with three modules (API FQN Parser, API Knowledge Extractor, and API Relation Decider) to ensure accurate inference. The proposed AI Chain has improved inference reliability by 67%, and their AI-crowd-intelligence strategy has increased the approach’s robustness by 26%. The method outperformed the state-of-the-art, with an average F1 score of 0.76, which is significantly higher than the average F1 score of 0.40 from the current best method.
Keywords
API Relations, Large Language Model, Unsupervised Inference, Knowledge Graphs, AI Chain
Author’s Abstract
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 our analytic flow as an AI Chain with three AI modules: API FQN Parser, API Knowledge Extractor, and API Relation Decider. The accuracy of the API FQN parser and API Relation Decider module are 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 CoT-based method, our AI Chain design improves the inference reliability by 67%, and the AI-crowd-intelligence strategy enhances the robustness of our approach by 26%.
Read the full paper here