TCL: Trustworthy Contrastive Learning for Web API Recommendation via Exploring Textual and Structural Semantics
- 16 September 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computational Social Systems
- Vol. 13 (1) , 727-738
Abstract
With the development of service-oriented computing, software developers increasingly rely on diverse Web application programming interfaces (APIs, also known as Web services) from unmanned Web API markets. This trend aims to expedite the development of feature-rich Mashup applications while simultaneously reducing time and costs. However, the growing abundance of Web APIs presents a challenge in service discovery. Consequently, Web API recommendation is proposed as a vital strategy for facilitating service discovery. Nonetheless, existing approaches to Web API recommendation suffer from limitations in effectively extracting rich semantics from description documents and service networks, leading to suboptimal recommendation performance. To address this issue, this article proposes trustworthy contrastive learning (TCL) for Web API recommendation via exploring textual and structural semantics, named TCL. TCL takes the trustworthiness of both the textual and structural representations into account to differentiate the loss of contrastive learning so that both textual and structural representation learning can be mutually improved. Empirical evaluations conducted on a real-world dataset crawled from ProgrammableWeb.com demonstrate the effectiveness of the proposed approach, showcasing its superiority over baseline methods.Keywords
Funding Information
- Foundation of Yunnan Key Laboratory of Service Computing (YNSC24126)
- Educational Commission of Hunan Province of China (23A0359)
- Educational Commission of Hunan Province of China (23A0373)
- Hunan Provincial Natural Science Foundation Project (2022JJ30262)
- Hunan Provincial Natural Science Foundation Project (2025JJ50451)
- Postgraduate Scientific Research Innovation Project of Hunan Province (CX20240875)
This publication has 32 references indexed in Scilit:
- Service recommendation based on contrastive learning and multi-task learningComputer Communications, 2023
- Functional and Structural Fusion based Web API Recommendations in Heterogeneous Networks2023
- Web services recommendation based on Metapath-guided graph attention networkThe Journal of Supercomputing, 2022
- API recommendation for Mashup creation based on neural graph collaborative filteringConnection Science, 2021
- Tatt‐BiLSTM: Web service classification with topical attention‐based BiLSTMConcurrency and Computation: Practice and Experience, 2021
- Contextual Bandit Approach-based Recommendation System for Personalized Web-based ServicesApplied Artificial Intelligence, 2021
- Contrastive Representation Learning: A Framework and ReviewIEEE Access, 2020
- TA-BLSTM: Tag Attention-based Bidirectional Long Short-Term Memory for Service Recommendation in Mashup Creation2019
- Semi-Supervised Learning With Graph Learning-Convolutional Networks2019
- Factorization Machines2010