Multi-level Collaborative Relation Graphs Enhanced LLM for Web Service Recommendation
Web Service (API) Recommendation enables intelligent selection of suitable APIs from large-scale repositories to compose mashup applications that satisfy complex user requirements. However, existing approaches face two critical limitations that affect further improvement in recommendation performance. First, the complementary synergy among multiple service relations has not been effectively exploited, particularly in cold-start scenarios where new mashups lack invocation history, making it difficult to obtain high-quality collaborative relation representations. Second, existing LLM-based approaches lack effective mechanisms for constructing and utilizing high-quality decision contexts specifically tailored for Web API recommendation, failing to fully unleash the potential of LLMs in Web API recommendation. To address these challenges, we propose LSFL, an LLM-enhanced Multi-level Service Collaborative Relation Graphs and Collaborative-Semantic Fusion Feature Learning framework. Specifically, LSFL constructs multi-level service collaborative relation graphs integrating invocation and category co-occurrence relations, and obtains high-quality collaborative relation embeddings through graph convolution and temperature-controlled attention. Furthermore, LSFL injects collaborative relation embeddings into the LLM as decision context via specially designed prompts, and employs Q-LoRA fine-tuning with a two-stage training strategy to extract deep collaborative-semantic fusion features for precise API recommendation. Extensive experiments against 15 baselines on a real-world dataset demonstrate that LSFL significantly outperforms existing state-of-the-art Web API recommendation approaches.
Authors
- Bofeng Zhang (ORCID: https://orcid.org/0000-0002-5001-1096)
- Guobing Zou (ORCID: https://orcid.org/0000-0002-7865-8158)
- Shengye Pang (ORCID: https://orcid.org/0009-0002-5510-2867)
- Yanglan Gan (ORCID: https://orcid.org/0000-0001-5931-9006)
- Song Yang (ORCID: https://orcid.org/0009-0003-3896-7049)
- Pengtao Li (ORCID: https://orcid.org/0009-0008-4628-9686)
Institutions
- Shanghai University (CN)
- Shanghai Polytechnic University (CN)
- Donghua University (CN)
Publication Details
- Journal
- ACM Transactions on Knowledge Discovery from Data
- Published
- 2026-11-17
- DOI
- https://doi.org/10.1145/3862764
- Primary Topic
- Recommender Systems and Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00