Community-Enhanced Contrastive Learning for Graph Collaborative Filtering
Abstract
:1. Introduction
- Our proposed model, CECL, is a graph collaborative filtering self-supervised learning model incorporating self-supervised components. These components include self-supervised community classification, community-centered contrastive learning, and structured contrastive learning. By using these self-supervised methods, the learning of node embeddings can be improved. Furthermore, the model can act as an independent component to be employed by other recommendation methods.
- We explore node communities within graph structures and leverage the information from these communities to incorporate global characteristics and structural semantics with the aim of enhancing node representations.
- We conduct extensive experiments on two public datasets and the experimental results show that our method outperforms traditional GNN-based recommendation methods.
2. Literature Review
2.1. Collaborative Filtering
2.2. Graph Collaborative Filtering
2.3. Self-Supervised Learning
2.4. Contrastive Learning
3. Related Work
3.1. Graph Community Detection
3.2. LightGCN
4. Proposed Method
4.1. Design
4.2. Graph Convolution Collaborative Filtering
4.3. Community Discovery for Self-Supervised Learning
4.4. Contrastive Learning with Higher-Order Neighbors
4.5. Optimization
5. Experiments
5.1. Datasets
5.2. Baselines
- BPR-MF: A Bayesian posterior optimization-based personalized ranking method is used to learn implicit features of user items through matrix decomposition, optimizing the BPR loss [15].
- Neu-MF: End-user rating predictions for items are obtained by replacing the dot product operation in matrix decomposition with a multilayer perceptron [5].
- NGCF: CF performance is improved by fusing higher-order neighborhood information with user–item bipartite graphs and aggregating using graph neural networks [6].
- DGCF: Splitting the embedding into multiple parts that represent the user’s intentions separately models real user behavior impact. The independent model module ensures each part is independent [7].
- LightGCN: The GCN is simplified by removing useless components, making the GCN training speed improved [20].
- SGL: Two subgraphs are constructed using data augmentation. Self-supervised contrastive learning is performed by comparing the node features of the subgraphs based on GNN aggregation, which corrects the node embedding to help collaborative filtering [11].
- NCL: Neighborhood-based contrast learning corrects node embeddings by constructing positive node sample pairs through semantic and structural neighbors, performing contrast learning [13].
5.3. Metrics
5.4. Implementation Details
5.5. Overall Comparison
5.6. Ablation Experiment
- M1: Remove the community-centered contrastive learning in CECL, keep the self-supervised classification, and conduct control experiments with M2, M3, and CECL.
- M2: Remove the self-supervised classification in CECL and the self-supervised community-centered contrastive learning methods. Only the LightGCN + BPR + Contrast Learning with the High-Order Neighbors method is used for training.
- M3: Remove self-supervised classification in CECL while keeping community-centered contrastive learning for two control experiments with M1 and CECL.
5.7. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Ricci, F.; Rokach, L.; Shapira, B. Introduction to Recommender Systems Handbook. In Recommender Systems Handbook; Springer: Boston, MA, USA, 2011; pp. 1–35. [Google Scholar]
- Covington, P.; Adams, J.; Sargin, E. Deep Neural Networks for YouTube Recommendations. In Proceedings of the 10th ACM Conference on Recommender Systems, Boston, MA, USA, 15–19 September 2016; pp. 191–198. [Google Scholar]
- Su, X.; Khoshgoftaar, T.M. A Survey of Collaborative Filtering Techniques. Adv. Artif. Intell. 2009, 2009, 421425. [Google Scholar] [CrossRef]
- Sarwar, B.; Karypis, G.; Konstan, J.; Riedl, J. Item-Based Collaborative Filtering Recommendation Algorithms. In Proceedings of the 10th International Conference on World Wide Web, Hong Kong, China, 1–5 May 2001; pp. 285–295. [Google Scholar]
- He, X.; Liao, L.; Zhang, H.; Nie, L.; Hu, X.; Chua, T.S. Neural Collaborative Filtering. In Proceedings of the 26th International Conference on World Wide Web, Geneva, Switzerland, 3–7 April 2017; pp. 173–182. [Google Scholar]
- Wang, X.; He, X.; Wang, M.; Feng, F.; Chua, T.S. Neural Graph Collaborative Filtering. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, Paris, France, 21–25 July 2019; pp. 165–174. [Google Scholar]
- Wang, X.; Jin, H.; Zhang, A.; He, X.; Xu, T.; Chua, T.S. Disentangled Graph Collaborative Filtering. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, 25–30 July 2020; pp. 1001–1010. [Google Scholar]
- Han, L.; Qin, J.; Xia, B. Enhanced Social Recommendation Method Integrating Rating Bias Offsets. Electronics 2023, 12, 3926. [Google Scholar] [CrossRef]
- Aldayel, M.; Al-Nafjan, A.; Al-Nuwaiser, W.M.; Alrehaili, G.; Alyahya, G. Collaborative Filtering-Based Recommendation Systems for Touristic Businesses, Attractions, and Destinations. Electronics 2023, 12, 4047. [Google Scholar] [CrossRef]
- Wu, J.; Wang, X.; Feng, F.; He, X.; Chen, L.; Lian, J.; Xie, X. Self-Supervised Graph Learning for Recommendation. arXiv 2021, arXiv:2010.10783. [Google Scholar]
- Wu, L.; Lin, H.; Tan, C.; Gao, Z.; Li, S.Z. Self-Supervised Learning on Graphs: Contrastive, Generative, or Predictive. IEEE Trans. Knowl. Data Eng. 2023, 35, 4216–4235. [Google Scholar] [CrossRef]
- Yu, J.; Yin, H.; Xia, X.; Chen, T.; Cui, L.; Nguyen, Q.V.H. Are Graph Augmentations Necessary?: Simple Graph Contrastive Learning for Recommendation. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, Madrid, Spain, 11–25 July 2022; pp. 1294–1303. [Google Scholar]
- Lin, Z.; Tian, C.; Hou, Y.; Zhao, W.X. Improving Graph Collaborative Filtering with Neighborhood-Enriched Contrastive Learning. In Proceedings of the ACM Web Conference 2022, Lyon, France, 25–29 April 2022; pp. 2320–2329. [Google Scholar]
- Zhu, Q.; Du, B.; Yan, P. Self-supervised Training of Graph Convolutional Networks. arXiv 2020, arXiv:2006.02380. [Google Scholar]
- Rendle, S.; Freudenthaler, C.; Gantner, Z.; Schmidt-Thieme, L. BPR: Bayesian Personalized Ranking from Implicit Feedback. In Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, Montreal, QC, Canada, 18–21 June 2009; pp. 452–461. [Google Scholar]
- Koren, Y.; Bell, R.; Volinsky, C. Matrix Factorization Techniques for Recommender Systems. Computer 2009, 42, 30–37. [Google Scholar] [CrossRef]
- Xin, X.; He, X.; Zhang, Y.; Zhang, Y.; Jose, J. Relational Collaborative Filtering: Modeling Multiple Item Relations for Recommendation. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, Paris, France, 21–25 July 2019; pp. 125–134. [Google Scholar]
- Wang, H.; Wang, N.; Yeung, D.Y. Collaborative Deep Learning for Recommender Systems. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, Australia, 10–13 August 2015; pp. 1235–1244. [Google Scholar]
- He, X.; Gao, M.; Kan, M.Y.; Wang, D. Birank: Towards ranking on bipartite graphs. IEEE Trans. Knowl. Data Eng. 2016, 29, 57–71. [Google Scholar] [CrossRef]
- He, X.; Deng, K.; Wang, X.; Li, Y.; Zhang, Y.; Wang, M. LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, 25–30 July 2020; pp. 639–648. [Google Scholar]
- Zhu, J.; Li, K.; Peng, J.; Qi, J. Self-Supervised Graph Attention Collaborative Filtering for Recommendation. Electronics 2023, 12, 793. [Google Scholar] [CrossRef]
- Defferrard, M.; Bresson, X.; Vandergheynst, P. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. arXiv 2016, arXiv:1606.09375. [Google Scholar]
- Li, J.; Zhou, P.; Xiong, C.; Hoi, S.C.H. Prototypical Contrastive Learning of Unsupervised Representations. arXiv 2021, arXiv:2005.04966. [Google Scholar]
- Jiang, L.; Yan, G.; Luo, H.; Chang, W. Improved Collaborative Recommendation Model: Integrating Knowledge Embedding and Graph Contrastive Learning. Electronics 2023, 12, 4238. [Google Scholar] [CrossRef]
- He, K.; Fan, H.; Wu, Y.; Xie, S.; Girshick, R. Momentum Contrast for Unsupervised Visual Representation Learning. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 9726–9735. [Google Scholar]
- Wu, Z.; Xiong, Y.; Yu, S.X.; Lin, D. Unsupervised Feature Learning via Non-parametric Instance Discrimination. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 3733–3742. [Google Scholar]
- Chen, T.; Kornblith, S.; Norouzi, M.; Hinton, G. A Simple Framework for Contrastive Learning of Visual Representations. In Proceedings of the 37th International Conference on Machine Learning, Virtual Event, 13–18 July 2020; pp. 1597–1607. [Google Scholar]
- Ye, M.; Zhang, X.; Yuen, P.C.; Chang, S.F. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 6210–6219. [Google Scholar]
- Yèche, H.; Dresdner, G.; Locatello, F.; Hüser, M.; Rätsch, G. Neighborhood Contrastive Learning Applied to Online Patient Monitoring. In Proceedings of the 38th International Conference on Machine Learning, Online, 18–24 July 2021; pp. 11964–11974. [Google Scholar]
- Caron, M.; Misra, I.; Mairal, J.; Goyal, P.; Bojanowski, P.; Joulin, A. Unsupervised Learning of Visual Features by Contrasting Cluster Assignments. In Proceedings of the 34th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 6–12 December 2020; pp. 9912–9924. [Google Scholar]
- Epasto, A.; Lattanzi, S.; Paes Leme, R. Ego-Splitting Framework: From Non-Overlapping to Overlapping Clusters. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Halifax, NS, Canada, 13–17 August 2017; pp. 145–154. [Google Scholar]
- Ye, F.; Chen, C.; Zheng, Z. Deep Autoencoder-like Nonnegative Matrix Factorization for Community Detection. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, Torino, Italy, 22–26 October 2018; pp. 1393–1402. [Google Scholar]
- Newman, M.E. Modularity and community structure in networks. Proc. Natl. Acad. Sci. USA 2006, 103, 8577–8582. [Google Scholar] [CrossRef] [PubMed]
- Ng, A.Y.; Jordan, M.I.; Weiss, Y. On Spectral Clustering: Analysis and an Algorithm. In Proceedings of the 14th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 3–8 December 2001; pp. 849–856. [Google Scholar]
- Ma, X.; Gao, L.; Yong, X.; Fu, L. Semi-supervised clustering algorithm for community structure detection in complex networks. Phys. A Stat. Mech. Its Appl. 2010, 389, 187–197. [Google Scholar] [CrossRef]
- Prat-Pérez, A.; Dominguez-Sal, D.; Larriba-Pey, J.L. High Quality, Scalable and Parallel Community Detection for Large Real Graphs. In Proceedings of the 23rd International Conference on World Wide Web, Seoul, Republic of Korea, 7–11 April 2014; pp. 225–236. [Google Scholar]
- Dempster, A.P.; Laird, N.M.; Rubin, D.B. Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc. Ser. B (Methodol.) 1977, 39, 1–22. [Google Scholar] [CrossRef]
- Harper, F.M.; Konstan, J.A. The MovieLens Datasets: History and Context. ACM Trans. Interact. Intell. Syst. 2015, 5, 1–19. [Google Scholar] [CrossRef]
- Asghar, N. Yelp Dataset Challenge: Review Rating Prediction. arXiv 2016, arXiv:1605.05362. [Google Scholar]
- Zhao, W.X.; Mu, S.; Hou, Y.; Lin, Z.; Chen, Y.; Pan, X.; Li, K.; Lu, Y.; Wang, H.; Tian, C.; et al. RecBole: Towards a Unified, Comprehensive and Efficient Framework for Recommendation Algorithms. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, Virtual Event, 1–5 November 2021; pp. 4653–4664. [Google Scholar]
Datasets | Metrics | BPR | Neu-MF | NGCF | DGCF | LightGCN | SGL | NCL | CECL |
---|---|---|---|---|---|---|---|---|---|
ML-1M | Recall10 | 0.1741 | 0.1604 | 0.1744 | 0.1797 | 0.1878 | 0.1881 | 0.2058 | 0.2054 |
Recall20 | 0.2641 | 0.2520 | 0.2813 | 0.2727 | 0.2653 | 0.2846 | 0.3042 | 0.3068 | |
Recall50 | 0.4221 | 0.4120 | 0.4232 | 0.4344 | 0.4454 | 0.4499 | 0.4682 | 0.4725 | |
NDCG10 | 0.2394 | 0.2402 | 0.2387 | 0.2476 | 0.2531 | 0.2534 | 0.2714 | 0.2722 | |
NDCG20 | 0.2504 | 0.2446 | 0.2500 | 0.2586 | 0.2640 | 0.2664 | 0.2836 | 0.2850 | |
NDCG50 | 0.2941 | 0.2837 | 0.2942 | 0.3034 | 0.3102 | 0.3107 | 0.3297 | 0.3316 | |
Yelp (partial) | Recall10 | 0.0537 | 0.0941 | 0.1445 | 0.1117 | 0.1564 | 0.1450 | 0.1930 | 0.1921 |
Recall20 | 0.0853 | 0.1525 | 0.2249 | 0.2096 | 0.2310 | 0.2395 | 0.2588 | 0.2733 | |
Recall50 | 0.1629 | 0.3608 | 0.3750 | 0.3393 | 0.3824 | 0.4116 | 0.4167 | 0.4222 | |
NDCG10 | 0.0291 | 0.0615 | 0.1012 | 0.0673 | 0.0925 | 0.1082 | 0.1361 | 0.1331 | |
NDCG20 | 0.0397 | 0.0800 | 0.1259 | 0.0977 | 0.1147 | 0.1375 | 0.1568 | 0.1589 | |
NDCG50 | 0.0592 | 0.1289 | 0.1624 | 0.1298 | 0.1520 | 0.1785 | 0.1955 | 0.1941 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xia, X.; Ma, W.; Zhang, J.; Zhang, E. Community-Enhanced Contrastive Learning for Graph Collaborative Filtering. Electronics 2023, 12, 4831. https://doi.org/10.3390/electronics12234831
Xia X, Ma W, Zhang J, Zhang E. Community-Enhanced Contrastive Learning for Graph Collaborative Filtering. Electronics. 2023; 12(23):4831. https://doi.org/10.3390/electronics12234831
Chicago/Turabian StyleXia, Xuchen, Wenming Ma, Jinkai Zhang, and En Zhang. 2023. "Community-Enhanced Contrastive Learning for Graph Collaborative Filtering" Electronics 12, no. 23: 4831. https://doi.org/10.3390/electronics12234831
APA StyleXia, X., Ma, W., Zhang, J., & Zhang, E. (2023). Community-Enhanced Contrastive Learning for Graph Collaborative Filtering. Electronics, 12(23), 4831. https://doi.org/10.3390/electronics12234831