Coder Social home page Coder Social logo

cadden / linkdist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cf020031308/linkdist

0.0 1.0 0.0 109 KB

Distillation Self-Knowledge From Contrastive Links to Classify Graph Nodes Without Passing Messages.

Home Page: https://arxiv.org/abs/2106.08541

Python 97.07% Shell 2.93%

linkdist's Introduction

Distilling Self-Knowledge From Contrastive Links to Classify Graph Nodes Without Passing Messages

LinkDist distils self-knowledge from links into a Multi-Layer Perceptron (MLP) without the need to aggregate messages.

Experiments with 8 real-world datasets show the Learnt MLP (named LinkDistMLP) can predict the label of a node without knowing its adjacencies but achieve comparable accuracy against GNNs in the contexts of both semi- and full-supervised node classification tasks.

We also introduce Contrastive Learning techniques to further boost the accuracy of LinkDist and LinkDistMLP (as CoLinkDist and CoLinkDistMLP).

中文概要

Distilling Self-Knowledge From Links

Contrastive Training With Negative Links

State of the Art

PWC

PWC

PWC

PWC

PWC

PWC

PWC

PWC

PWC

PWC

PWC

PWC

MLP-based Method ogbn-arxiv ogbn-mag ogbn-products
MLP 0.5550 ± 0.0023 0.2692 ± 0.0026 0.6106 ± 0.0008
MLP + FLAG 0.5602 ± 0.0019 - 0.6241 ± 0.0016
CoLinkDistMLP 0.5638 ± 0.0016 0.2761 ± 0.0018 0.6259 ± 0.0010

Requirements

Install dependencies torch and DGL:

pip3 install torch ogb

Reproducibility

Run the script with arguments algorithm_name, dataset_name, and dataset_split.

  • Available algorithms: mlp, gcn, gcn2mlp, linkdistmlp, linkdist, colinkdsitmlp, colinkdist.
    • If the algorithm_name ends with -trans, the experiment is run with the transductive setting. Otherwise, it is run with inductive setting.
  • Available datasets: cora / citeseer / pubmed / corafull / amazon-photo / amazon-com / coauthor-cs / coauthor-phy
    • We divide the dataset into a training set with dataset_split out of ten nodes, a validation set and a testing set. If dataset_split is 0, we select at most 20 nodes from every class to construct the training set.

The following command experiments GCN on Cora dataset with the inductive setting:

python3 main.py gcn cora 0

The following command experiments CoLinkDistMLP on Amazon Photo dataset with the transductive setting, the Amazon Photo dataset is divided into a training set of 60% nodes, a validation set of 20% nodes, and a testing set of 20% nodes:

python3 main.py colinkdistmlp-trans amazon-photo 6

To reproduce all experiments in our paper, run

bash run

The output logs will be saved into trans.log, induc.log, and full.log.

Citation

@article{2106.08541v1,
  author = {Yi Luo and Aiguo Chen and Ke Yan and Ling Tian},
  eprint = {2106.08541v1},
  month = {Jun},
  title = {Distilling Self-Knowledge From Contrastive Links to Classify Graph Nodes
Without Passing Messages},
  type = {article},
  url = {http://arxiv.org/abs/2106.08541v1},
  year = {2021},
}

linkdist's People

Contributors

cf020031308 avatar

Watchers

 avatar

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.