Neighbor Library-Aware Graph Neural Network for Third Party Library Recommendation

Ying Jin,Yi Zhang,Yiwen Zhang
DOI: https://doi.org/10.26599/tst.2022.9010042
2023-01-01
Tsinghua Science & Technology
Abstract:Modern software development has moved toward agile growth and rapid delivery,where developers must meet the changing needs of users instantaneously.In such a situation,plug-and-play Third-Party Libraries(TPLs)introduce a considerable amount of convenience to developers.However,selecting the exact candidate that meets the project requirements from the countless TPLs is challenging for developers.Previous works have considered setting up a personalized recommender system to suggest TPLs for developers.Unfortunately,these approaches rarely consider the complex relationships between applications and TPLs,and are unsatisfactory in accuracy,training speed,and convergence speed.In this paper,we propose a new end-to-end recommendation model called Neighbor Library-Aware Graph Neural Network(NLA-GNN).Unlike previous works,we only initialize one type of node embedding,and construct and update all types of node representations using Graph Neural Networks(GNN).We use a simplified graph convolution operation to alternate the information propagation process to increase the training efficiency and eliminate the heterogeneity of the app-library bipartite graph,thus efficiently modeling the complex high-order relationships between the app and the library.Extensive experiments on large-scale real-world datasets demonstrate that NLA-GNN achieves consistent and remarkable improvements over state-of-the-art baselines for TPL recommendation tasks.
What problem does this paper attempt to address?