APIGen: Generative API Method Recommendation

production
recommender
architectures
programming
APIGen improves API recommendation by selecting diverse examples and enabling reasoning for better results.
Author

Yujia Chen, Cuiyun Gao, Muyijie Zhu, Qing Liao, Yong Wang, Guoai Xu

Published

January 29, 2024

Summary: The academic article proposes APIGen, a generative API method recommendation approach based on enhanced in-context learning. The article presents a detailed methodology for API recommendation, including the deconstruction of user queries, knowledge detection, reason generation, and API recommendation. The experimental setup, evaluation metrics, and baselines used to evaluate APIGen are described, along with the results and a case study to illustrate the effectiveness of APIGen. The article also discusses potential threats to the validity of the experimental results and related works in the field of API method recommendation.

Major Findings: 1. APIGen outperforms the state-of-the-art baseline CLEAR in both method-level and class-level API recommendation tasks, achieving significant improvements in various evaluation metrics. 2. The quality and relevance of the examples retrieved play a crucial role in the performance of APIGen, with variations observed in the success rate and mean average precision when using different examples in both method-level and class-level API recommendation. 3. APIGen performs consistently well across different large language models, demonstrating its robustness and effectiveness in generating high-quality API recommendations.

Analysis and Critique: The article provides valuable insights into the development of API recommendation systems and their applicability to different programming languages. However, potential limitations include the need for further exploration of the impact of example selection and the number of examples on APIGen’s performance. Additionally, the article could benefit from addressing potential biases in the experimental setup and discussing the generalizability of APIGen to other programming languages and domains.

Please note that the above summary is a synthesized version of the individual section summaries provided.

Appendix

Model gpt-3.5-turbo-1106
Date Generated 2024-02-26
Abstract https://arxiv.org/abs/2401.15843v1
HTML https://browse.arxiv.org/html/2401.15843v1
Truncated True
Word Count 18648