Code Monkey home page Code Monkey logo

ssfg-regularization's Introduction

SSFG: Stochastically Scaling Features and Gradients for Regularizing Graph Convolutional Networks


In this repository, we implement the SSFG (stochastic ReLU) regularization method for regularizing graph convoultional networks. Our paper "SSFG: Stochastically Scaling Features and Gradients for Regularizing Graph Convolutional Networks" was accepted for publication in IEEE Transactions on Neural Networks and Learning Systems, DOI:10.1109/TNNLS.2022.3188888. The paper (arxiv version) can be accessed through this link.

@article{zhang2022ssfg,
  title={SSFG: Stochastically Scaling Features and Gradients for Regularizing Graph Convolutional Networks},
  author={Haimin Zhang, Min Xu, Guoqiang Zhang, and Kenta Niwa},
  journal={IEEE Transactions on Neural Networks and Learning Systems},
  year={2022}
}

Preparation

Install PyTorch and the benchmark datasets following the official Benchmarking Graph Neural Networks.

Run the following command to reproduce our results on CIFAR10 using GatedGCN for superpixel graph classification:

python main_superpixels_graph_classification.py --dataset CIFAR10 --seed 95 --gpu_id 0 --config configs/superpixels_graph_classification_GatedGCN_CIFAR10_100k.json

For graph attention networks (GATs), the SSFG regularization is applied to the output of each of the multi-attention heads. This can be done by making the following change in layers/myreg.py:

lam = bt.sample(grad_output.shape[:2]) + .5  # change grad_output.shape[:1] to grad_output.shape[:2]

License

This project is currently under the CC-BY-NC 4.0 license. See LICENSE for details.

ssfg-regularization's People

Contributors

sdhtpc avatar vailatuts 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.