PICASO: Enhancing API Recommendations with Relevant Stack Overflow Posts
Ivana Clairine Irsan, Ting Zhang, Ferdian Thung, Kisub Kim, David Lo

TL;DR
PICASO is a framework that enhances API recommendation accuracy by leveraging Stack Overflow posts through contrastive learning and query expansion, significantly improving API sequence generation performance.
Contribution
This work introduces a novel approach combining bi-encoder and cross-encoder models to incorporate Stack Overflow data into API recommendation, which was not previously explored.
Findings
BLEU-4 score improved by 10.8% with Stack Overflow integration
Effective use of Stack Overflow titles for query expansion
Enhanced API sequence generation accuracy
Abstract
While having options could be liberating, too many options could lead to the sub-optimal solution being chosen. This is not an exception in the software engineering domain. Nowadays, API has become imperative in making software developers' life easier. APIs help developers implement a function faster and more efficiently. However, given the large number of open-source libraries to choose from, choosing the right APIs is not a simple task. Previous studies on API recommendation leverage natural language (query) to identify which API would be suitable for the given task. However, these studies only consider one source of input, i.e., GitHub or Stack Overflow, independently. There are no existing approaches that utilize Stack Overflow to help generate better API sequence recommendations from queries obtained from GitHub. Therefore, in this study, we aim to provide a framework that could…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Engineering Techniques and Practices · Web Data Mining and Analysis
