Skip to main navigation Skip to search Skip to main content

DiffHGCL: Task-aware diffusion-augmented heterogeneous graph contrastive learning for web API recommendation

  • Xiuqi Yang
  • , Xiaojun Xu
  • , Wenbiao Du
  • , Zeyang Liu
  • , Junbao Chen
  • , Yifeng Fu
  • , Jingjing Hu*
  • *Corresponding author for this work
  • Beijing Institute of Technology

Research output: Contribution to journalArticlepeer-review

Abstract

The rapidly increasing popularity of mashup-based applications has led to a surge in the number of available Web APIs, making effective recommendations essential yet challenging. Some recent efforts have explored generative methods such as diffusion models to synthesize potential interactions between mashups and APIs, thereby alleviating data sparsity issues. Although they have been shown to be effective in generating statistically plausible interactions, these methods often overlook the misalignment between generative objectives and relevance-oriented recommendation goals.In this paper, we first investigate diffusion-based generation for Web API recommendation and reveal a fundamental task misalignment phenomenon: diffusion-generated confidence is highly influenced by popularity bias and does not reliably translate into ranking relevance. Motivated by this finding, we propose DiffHGCL, a task-aware multi-view heterogeneous graph contrastive learning framework that integrates diffusion-based augmentation with task-aware interaction proposal filtering. Specifically, we first construct multi-view graphs that capture both functional affinity and semantic proximity among mashups and APIs, thereby enriching the sparse interaction graph with auxiliary semantic information. Building upon these views, we employ diffusion models as task-conditioned interaction proposal generators rather than direct recommenders, and introduce a task-aware interaction proposal filtering mechanism to filter task-irrelevant generative bias. Furthermore, heterogeneous graph contrastive learning is leveraged as a regularizer to align representations across augmented views, enhancing robustness against sparsity and noise. Extensive experiments on ProgrammableWeb dataset demonstrate that DiffHGCL consistently outperforms state-of-the-art baselines, highlighting its effectiveness in alleviating data sparsity and enhancing representational robustness. The source code is available at https://github.com/Qornck/DiffHGCL.

Original languageEnglish
Article number133349
JournalExpert Systems with Applications
Volume331
DOIs
Publication statusPublished - 15 Dec 2026

Keywords

  • Contrastive learning
  • Diffusion models
  • Heterogeneous graph neural networks
  • Web API recommendation

Fingerprint

Dive into the research topics of 'DiffHGCL: Task-aware diffusion-augmented heterogeneous graph contrastive learning for web API recommendation'. Together they form a unique fingerprint.

Cite this