Coder Social home page Coder Social logo

cvgae_pr's Introduction

A Contrastive Variational Graph Auto-Encoder for Node Clustering (CVGAE)

Abstract

Variational Graph Auto-Encoders (VGAEs) have been widely used to solve the node clustering task. However, the state-of-the-art methods have numerous challenges. First, existing VGAEs do not account for the discrepancy between the inference and generative models after incorporating the clustering inductive bias. Second, current models are prone to degenerate solutions that make the latent codes match the prior independently of the input signal (i.e., Posterior Collapse). Third, existing VGAEs overlook the effect of the noisy clustering assignments (i.e., Feature Randomness) and the impact of the strong trade-off between clustering and reconstruction (i.e., Feature Drift). To address these problems, we formulate a variational lower bound in a contrastive setting. Our lower bound is a tighter approximation of the log-likelihood function than the corresponding Evidence Lower BOund (ELBO). Thanks to a newly identified term, our lower bound can escape Posterior Collapse and has more flexibility to account for the difference between the inference and generative models. Additionally, our solution has two mechanisms to control the trade-off between Feature Randomness and Feature Drift. Extensive experiments show that the proposed method achieves state-of-the-art clustering results on several datasets. We provide strong evidence that this improvement is attributed to four aspects: integrating contrastive learning and alleviating Feature Randomness, Feature Drift, and Posterior Collapse.

Conceptual design

Objective Function

Some Results

Quantitative

Qualitative

Usage

We provide the code of CVGAE. For each dataset, we provide the pretraining weights. The data is also provided with the code. Users can perform their own pretraining if they wish. For instance, to run the code of CVGAE on Cora, you should clone this repo and use the following command:

python3 ./CVGAE/main_cora.py

Built With

The code is built with:

  • Python 3.6
  • Pytorch 1.7.0
  • Scikit-learn
  • Scipy

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

  • Nairouz Mrabah - Grad Student (Université du Québec à Montréal)
  • Mohamed Bouguessa - Professor (Université du Québec à Montréal)
  • Riadh Ksantini - Professor (University of Bahrain)

Citation

@article{mrabah2023contrastive,
title={A contrastive variational graph auto-encoder for node clustering},
author={Mrabah, Nairouz and Bouguessa, Mohamed and Ksantini, Riadh},
journal={Pattern Recognition},
year={2023}
}

cvgae_pr's People

Contributors

nairouz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xunlian-wu

cvgae_pr's Issues

Some data files are missing

Hello, author!

Thank you for providing the code for the article, and I made this error when reproducing your experiment, " FileNotFoundError: [Errno 2] No such file or directory: '. /CVGAE/resultsCora/pretrain/model_pretrain.pk'
"So come to seek your help.

Is it convenient for you to provide a complete data file?

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.