Giter Club home page Giter Club logo

gdcl's Introduction

Diffusion-Based Graph Contrastive Learning for Recommendation with Implicit Feedback

This is the implementation of the framework described in the paper:

Lingzi Zhang, Yong Liu, Xin Zhou, Chunyan Miao, Guoxin Wang, and Haihong Tang. Diffusion-Based Graph Contrastive Learning for Recommendation with Implicit Feedback. Database Systems for Advanced Applications: 27th International Conference, DASFAA 2022

Overview

Recent studies on self-supervised learning with graph-based recommendation models have achieved outstanding performance. They usually introduce auxiliary learning tasks that maximize the mutual information between representations of the original graph and its augmented views. However, most of these models adopt random dropout to construct the additional graph view, failing to differentiate the importance of edges. The insufficiency of these methods in capturing structural properties of the user-item interaction graph leads to suboptimal recommendation performance. In this paper, we propose a Graph Diffusion Contrastive Learning (GDCL) framework for recommendation to close this gap. Specifically, we perform graph diffusion on the user-item interaction graph. Then, the diffusion graph is encoded to preserve its heterogeneity by learning a dedicated representation for every type of relations. A symmetric contrastive learning objective is used to contrast local node representations of the diffusion graph with those of the user-item interaction graph for learning better user and item representations. Extensive experiments on real datasets demonstrate that GDCL consistently outperforms state-of-the-art recommendation methods.

Datasets

Datasets used for this paper can be downloaded from the Google Drive: Amazon-Arts/Amazon-VideoGames/MovieLens-1m/Yelp2018
After downloading the datasets, please unzip it and put all files under the folder ./preprocessed_data.

Quick Start

We first need to create a python=3.7 virtual env and activate it. Then, we should install some dependencies.

conda create -n gdcl python=3.7
conda activate gdcl
pip install -r requirements.txt

Next, we install pytorch with the version >= 1.7.1.

conda install pytorch torchvision -c pytorch

To alter hyper-parameters for the model, we can modify the corresponding file inside ./configs/model/GDCL.yaml. Detailed explanation of each hyper-parameter is also included in this file.

To train the model:

python main.py --model=GDCL --dataset=arts

License

If you find our code/data/models or ideas useful in your research, please consider citing the paper:

@inproceedings{zhang2022diffusion,
  title={Diffusion-Based Graph Contrastive Learning for Recommendation with Implicit Feedback},
  author={Zhang, Lingzi and Liu, Yong and Zhou, Xin and Miao, Chunyan and Wang, Guoxin and Tang, Haihong},
  booktitle={Database Systems for Advanced Applications: 27th International Conference, DASFAA 2022, Virtual Event, April 11--14, 2022, Proceedings, Part II},
  pages={232--247},
  year={2022}
}

Acknowledgement:

Our codebase relies on these excellent repositories:

gdcl's People

Contributors

lzz0007 avatar

Stargazers

Zhou Xin avatar

Watchers

 avatar

Forkers

stephenliu0423

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.