Neural Library Recommendation by Embedding Project-Library Knowledge Graph
- 24 April 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (6) , 1620-1638
Abstract
The prosperity of software applications brings fierce market competition to developers. Employing third-party libraries (TPLs) to add new features to projects under development and to reduce the time to market has become a popular way in the community. However, given the tremendous TPLs ready for use, it is challenging for developers to effectively and efficiently identify the most suitable TPLs. To tackle this obstacle, we propose an innovative approach named PyRec to recommend potentially useful TPLs to developers for their projects. Taking Python project development as a use case, PyRec embeds Python projects, TPLs, contextual information, and relations between those entities into a knowledge graph. Then, it employs a graph neural network to capture useful information from the graph to make TPL recommendations. Different from existing approaches, PyRec can make full use of not only project-library interaction information but also contextual information to make more accurate TPL recommendations. Comprehensive evaluations are conducted based on 12,421 Python projects involving 963 TPLs, 9,675 extra entities, 121,474 library usage records, and 73,277 contextual records. Compared with five representative approaches, PyRec improves the recommendation performance significantly in all cases.Keywords
This publication has 59 references indexed in Scilit:
- Icon2Code: Recommending code implementations for Android GUI componentsInformation and Software Technology, 2021
- CrossRec: Supporting software developers by recommending third-party librariesJournal of Systems and Software, 2020
- Why reinventing the wheels? An empirical study on library reuse and re-implementationEmpirical Software Engineering, 2019
- Automatic, highly accurate app permission recommendationAutomated Software Engineering, 2019
- Improving reusability of software libraries through usage pattern miningJournal of Systems and Software, 2018
- Search-based software library recommendation using multi-objective optimizationInformation and Software Technology, 2017
- Identity Mappings in Deep Residual Networks2016
- A cooperative approach for combining client-based and library-based API usage pattern mining2016
- Facing the cold start problem in recommender systemsExpert Systems with Applications, 2014
- Automatic recommendation of API methods from feature requests2013