Lune

NeurIPS2023Top-tier venue

An Empirical Study Towards Prompt-Tuning for Graph Contrastive Pre-Training in Recommendations

Haoran Yang, Xiangyu Zhao, Yicong Li, Hongxu Chen, Guandong Xu

Abstract

Graph contrastive learning (GCL) has emerged as an effective technology for various graph learning tasks. It has been successfully applied in real-world recommender systems, where the contrastive loss and downstream recommendation objectives are combined to form the overall objective function. However, this approach deviates from the original GCL paradigm, which pre-trains graph embeddings without involving downstream training objectives. In this paper, we propose a novel framework called CPTPP, which enhances GCL-based recommender systems by leveraging prompt tuning. This framework allows us to fully exploit the advantages of the original GCL protocol. Specifically, we first summarize user profiles in graph recommender systems to automatically generate personalized user prompts. These prompts are then combined with pre-trained user embeddings for prompt tuning in downstream tasks. This helps bridge the gap between pre-training and downstream tasks. Our extensive experiments on three benchmark datasets confirm the effectiveness of CPTPP compared to state-of-the-art baselines. Additionally, a visualization experiment illustrates that user embeddings generated by CPTPP have a more uniform distribution, indicating improved modeling capability for user preferences. The implementation code is available online 2 for reproducibility. 2 https://github.com/Haoran-Young/CPTPP not align with the purpose of GCL, which is primarily designed for pre-training graph representations without involving downstream task objectives [21, 16] . In this approach, GCL pre-trains embeddings that are then fine-tuned on specific tasks using downstream models. Incorporating both GCL and recommendation objectives into the overall training objective can disrupt the embedding pre-training process and requires careful control of the weight placed on contrastive loss. Additionally, previous studies on GCL-based recommendation methods [27, 14] have shown that the weights of contrastive loss in the overall objective are significantly smaller compared to the weight on the recommendation objective. This is done to ensure desired performance on recommendation tasks. Therefore, based on these observations, simply combining contrastive loss with downstream recommendation objectives may not be effective for recommendation tasks. The disparity between the pre-training objective and downstream tasks hinders the effective extraction of useful information from pre-trained embeddings by downstream models [12, 26] . Consequently, researchers often opt for combining GCL with recommendation objectives. However, it is important to note that GCL pre-training targets primarily assess the agreement of mutual information among graph elements, such as nodes, edges, and sub-graphs. This differs from conventional graph learning tasks like node classification and link prediction. Consequently, the pre-training targets of GCL also significantly diverge from downstream recommendation objectives that involve interaction (link) prediction between users and items. Consequently, the reduction of such dissimilarities is essential to enhance the performance of GCL-based recommendation approaches. In this paper, we present the CPTPP framework as an extension of recent advancements in prompt tuning for enhancing recommendation performance [23, 33] utilizing user embeddings pre-trained by GCL. The technique of prompt tuning has emerged as a prominent method for fine-tuning pre-trained models. By constructing appropriate prompts for downstream learning modules, this approach effectively reformulates downstream tasks, thereby reducing disparities [26, 12, 15, 18] . By incorporating prompt-tuning, we can modify existing GCL-based recommendation methods to align with the original GCL protocol involving pre-training and fine-tuning. Previous endeavors have also explored the integration of prompt learning into conventional recommendation models [26, 3] . Despite their advantages, applying the prompt mechanism directly to GCL-based recommendation methods is still difficult and not straightforward, i.e., how can we generate personalized user prompts using only the user-item interaction graph without side information (e.g., age and occupation)? To address this issue, we summarise three methods to produce different user profiles, including historical interaction records, adjacency matrix factorization, and high-order user relations, based on the user-item interaction graph for the personalized user prompt generation, which is applicable in situations devoid of side information. Comprehensive experiments conducted on three publicly available datasets illustrate the effectiveness of the proposed method with different types of prompts. In summary, the contributions of this work are three-fold: (1) We propose a reformulation of existing GCL-based recommendation methods by incorporating the promp

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Self-supervised Graph Learning for Recommendation cites LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation
  • Self-supervised Graph Learning for Recommendation cites Graph Contrastive Learning with Augmentations
  • Self-supervised Graph Learning for Recommendation cites Graph Contrastive Learning with Adaptive Augmentation
  • UniCon: Unified Framework for Efficient Contrastive Alignment via Kernels cites Graph Contrastive Learning with Augmentations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Predicting User Behavior in Smart Spaces with LLM-Enhanced Logs and Personalized PromptsYunpeng Song, Jiawei Li, Yiheng Bian, Zhongmin CaiAAAI 2025 · 7 citations
  2. Computationally-efficient Graph Modeling with Refined Graph Random FeaturesKrzysztof Choromanski, Kumar Avinava Dubey, Arijit Sehanobish, Isaac ReidICML 2026 · 2 citations
  3. UniCon: Unified Framework for Efficient Contrastive Alignment via KernelsHangke Sui, Yuqing Wang, Minh N. DoICLR 2026 · 2 citations
  4. Does Graph Prompt Work? A Data Operation Perspective with Theoretical AnalysisQunzhong Wang, Xiangguo Sun, Hong ChengICML 2025
  5. Detecting Miscitation on the Scholarly Web through LLM-Augmented Text-Rich Graph LearningHuidong Wu, Haojia Xiang, Jingtong Gao, Xiangyu Zhao et al.WWW 2026

Builds on17

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. LightGCN: Simplifying and Powering Graph Convolution Network for RecommendationXiangnan He, Kuan Deng, Xiang Wang, Yan Li et al.SIGIR 2020 · 4,448 citations
  3. Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
  4. Self-supervised Graph Learning for RecommendationJiancan Wu, Xiang Wang, Fuli Feng, Xiangnan He et al.SIGIR 2021 · 1,476 citations
  5. Graph Contrastive Learning with Adaptive AugmentationYanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu et al.WWW 2021 · 1,415 citations

Related papers

  1. Candidate-aware Graph Contrastive Learning for RecommendationWei He, Guohao Sun, Jinhu Lu, Xiu Susie FangSIGIR 2023 · 64 citations
  2. Your Graph Recommenders are Provably Doing Graph Contrastive LearningWenjie Yang, Shengzhong Zhang, Jiaxing Guo, Zengfeng HuangKDD 2025
  3. Improving Graph Collaborative Filtering with Neighborhood-enriched Contrastive LearningZihan Lin, Changxin Tian, Yupeng Hou, Wayne Xin ZhaoWWW 2022 · 606 citations
  4. Urban Region Pre-training and Prompting: A Graph-based ApproachJiahui Jin, Yifan Song, Dong Kan, Haojia Zhu et al.KDD 2025 · 1 citation
  5. A Review-aware Graph Contrastive Learning Framework for RecommendationJie Shuai, Kun Zhang, Le Wu, Peijie Sun et al.SIGIR 2022 · 170 citations
Dusk over the sea between two cliffs drawn in fine vertical lines