To read this content please select one of the options below:

LLMSARec: large language model with semantic alignment for Web service recommendation

Shangjie Feng (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)
Buqing Cao (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)
Ziming Xie (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)
Zhongxiang Fu (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)
Zhenlian Peng (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)
Guosheng Kang (School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan, China)

International Journal of Web Information Systems

ISSN: 1744-0084

Article publication date: 18 November 2024

Issue publication date: 2 January 2025

46

Abstract

Purpose

With the continuous increase in Web services, efficient identification of Web services that meet developers’ needs and understanding their relationships remains a challenge. Previous research has improved recommendation effectiveness by using correlations between Web services through graph neural networks (GNNs), while it has not fully leveraged service descriptions, limiting the depth and diversity of learning. To this end, a Web services recommendation method called LLMSARec, based on Large Language Model and semantic alignment, is proposed. This study aims to extract potential semantic information from services and learn deeper relationships between services.

Design/methodology/approach

This method consists of two core modules: profile generation and maximizing mutual information. The profile generation module uses LLM to analyze the descriptions of services, infer and construct service profiles. Concurrently, it uses LLM as text encoders to encode inferred service profiles for enhanced service representation learning. The maximizing mutual information model aims to align the semantic features of the services text inferred by LLM with structural semantic features of the services captured by GNNs, thus achieving a more comprehensive representation of services. The aligned representation serves as an input for the model to identify services with superior matching accuracy, thereby enhancing the service recommendation capability.

Findings

Experimental comparisons and analyses were conducted on the Programmable Web platform data set, and the results demonstrated that the effectiveness of Web service recommendations can be significantly improved by using LLMSARec.

Originality/value

In this study, the authors propose a Web service recommendation approach based on Large Language Model and semantic alignment. By extracting latent semantic information from services and effectively aligning semantic features with structural features, new representations can be generated to significantly enhance recommendation accuracy.

Keywords

Acknowledgements

The work of this paper is supported by National Natural Science Foundation of China with Grant No. 62376062, 62177014, the National Key R&D Program of China with Grant No. 2018YFB1402800, Hunan Provincial Natural Science Foundation of China with Grant No. 2022JJ30020 and the Science and Technology Innovation Program of Hunan Province with Grant No. 2023sk2081.

Citation

Feng, S., Cao, B., Xie, Z., Fu, Z., Peng, Z. and Kang, G. (2025), "LLMSARec: large language model with semantic alignment for Web service recommendation", International Journal of Web Information Systems, Vol. 21 No. 1, pp. 37-53. https://doi.org/10.1108/IJWIS-09-2024-0262

Publisher

:

Emerald Publishing Limited

Copyright © 2024, Emerald Publishing Limited

Related articles