Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (6): 1818-1828.DOI: 10.11772/j.issn.1001-9081.2025060729

• Data science and technology • Previous Articles    

Contrastive collaborative filtering method based on graph diffusion generation and adaptive sampling​

Hang QI, Tingting DONG, Yongqiang NAI, Xian MO()   

  1. School of Information Engineering,Ningxia University,Yinchuan Ningxia 750021,China
  • Received:2025-07-01 Revised:2025-10-02 Accepted:2025-10-14 Online:2025-10-30 Published:2026-06-10
  • Contact: Xian MO
  • About author:QI Hang, born in 2000, M. S. candidate. His research interests include graph learning, recommender systems.
    DONG Tingting, born in 2000, M. S. candidate. Her research interests include graph learning, recommender systems.
    NAI Yongqiang, born in 1985, Ph. D., associate professor. His research interests include reinforcement learning, intelligent collaborative control, intelligent fault diagnosis, adaptive learning control.
    First author contact:MO Xian, born in 1990, Ph. D., associate professor. His research interests include graph learning, recommender systems.
  • Supported by:
    National Natural Science Foundation of China(62306157);Natural Science Foundation of Ningxia(2024AAC05011)

基于图扩散生成与自适应采样的对比协同过滤方法

戚航, 董婷婷, 乃永强, 莫先()   

  1. 宁夏大学 信息工程学院,银川 750021
  • 通讯作者: 莫先
  • 作者简介:戚航(2000—),男,安徽淮南人,硕士研究生,CCF会员,主要研究方向:图学习、推荐系统
    董婷婷(2000—),女,宁夏固原人,硕士研究生,主要研究方向:图学习、推荐系统
    乃永强(1985—),男,甘肃庆阳人,副教授,博士,主要研究方向:强化学习、智能协同控制、智能故障诊断、自适应学习控制
    第一联系人:莫先(1990—),男,四川南充人,副教授,博士,CCF会员,主要研究方向:图学习、推荐系统。
  • 基金资助:
    国家自然科学基金资助项目(62306157);国家自然科学基金资助项目(62263027);宁夏自然科学基金资助项目(2024AAC05011);宁夏自然科学基金资助项目(2024AAC05005)

Abstract:

Aiming at the problems of the existing Graph Neural Network (GNN)-based collaborative filtering methods under sparse and noisy data conditions, such as the obscuring of true signals by static noise injection, the inability of fixed semantic prototypes to capture dynamic user interests, and the high computational overhead of complex augmentation, a graph diffusion generation and adaptive sampling-based contrastive collaborative filtering method was proposed. Firstly, a lightweight graph diffusion generation mechanism based on gradual denoising was designed, so as to optimize node representations through forward noise-adding and reverse denoising, thereby generating noise-resistant contrastive views. Then, random masking was integrated with Random Walk with Restart (RWR) to model local neighborhood features and global structural semantics collaboratively, thereby generating high-quality negative samples. Finally, an improved InfoNCE (Information Noise Contrastive Estimation) loss function was introduced to optimize the multi-view contrastive learning objective and enhance the discriminative power of representations. Experimental results on Gowalla, Yelp, and Amazon datasets show that compared to the best-performing baseline method, the proposed method improves the Top-20 Recall (Recall@20) by 0.63%, 1.36%, and 1.88%, respectively, and the Top-40 Normalized Discounted Cumulative Gain (NDCG@40) by 0.95%, 1.47%, and 1.24%, respectively, as well as improves the recommendation performance for long-tail users by 26.7%, increases the training efficiency by 90%, and accelerates the convergence speed by 32%. It can be seen that the proposed method enhances the noise resistance and dynamic adaptability of recommendation systems in open environments significantly.

Key words: Graph Neural Network (GNN), contrastive learning, self-supervised learning, diffusion process, graph algorithm

摘要:

针对现有基于图神经网络(GNN)的协同过滤方法在数据稀疏和噪声场景下存在的静态噪声注入易掩盖真实信号、固定语义原型难以捕捉用户的动态兴趣以及复杂增强方法计算开销大等问题,提出一种基于图扩散生成与自适应采样的对比协同过滤方法。首先,设计基于渐进去噪的轻量级图扩散生成机制,通过前向加噪和反向去噪优化节点表示,生成抗噪性强的对比视图;其次,结合随机掩码与重启随机游走算法(RWR),协同建模局部邻域特征与全局结构语义,生成高质量的负样本;最后,通过改进的InfoNCE (Information Noise Contrastive Estimation)损失函数优化多视图对比学习目标,并提升表征的判别性。在Gowalla、Yelp和Amazon数据集上,所提方法的前20个结果的召回率(Recall@20)指标较最优的基线方法分别提升了0.63%、1.36%和1.88%,前40个结果的归一化折损累计增益(NDCG@40)指标分别提升了0.95%、1.47%和1.24%,长尾用户的推荐效果提升了26.7%,训练效率提升了90%且收敛速度提升了32%。可见,该方法显著提升了开放环境下推荐系统的抗噪性与动态适应性。

关键词: 图神经网络, 对比学习, 自建督学习, 扩散过程, 图算法

CLC Number: