• Stars
    star
    444
  • Rank 97,687 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A PyTorch Implementation of Gated Graph Sequence Neural Networks (GGNN)

A PyTorch Implementation of GGNN

This is a PyTorch implementation of the Gated Graph Sequence Neural Networks (GGNN) as described in the paper Gated Graph Sequence Neural Networks by Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel. This implementation gets 100% accuracy on node-selection bAbI task 4, 15, and 16. Their official implementation are available in the yujiali/ggnn repo on GitHub.

What is GGNN?

  • Solve graph-structured data and problems
  • A gated propagation model to compute node representations
  • Unroll recurrence for a fixed number of steps and use backpropogation through time
  • An output model to make predictions on nodes

Requirements

  • python==2.7
  • PyTorch>=0.2

Run

Train and test the GGNN:

python main.py --cuda (use GPUs or not)

Suggesting configurations for each task:

# task 4
python main.py --task_id 4 --state_dim 4 --niter 10
# task 15
python main.py --task_id 15 --state_dim 5 --niter 10
# task 16
python main.py --task_id 16 --state_dim 10 --niter 150

Results

I followed the paper, randomly picking only 50 training examples for training. Performances are evaluated on 50 random validation examples.

bAbI Task Performance
4 100%
15 100%
16 100%

Here's an example of bAbI deduction task (task 15)

Disclaimer

The data processing codes are from official implementation yujiali/ggnn.

TODO

  • GraphLevel Output

References

More Repositories

1

awesome-vqa

Visual Q&A reading list
424
star
2

DCL

NeurIPS 2020, Debiased Contrastive Learning
Python
265
star
3

pytorch-REINFORCE

PyTorch Implementation of REINFORCE for both discrete & continuous control
Python
256
star
4

VQA-tensorflow

Tensorflow Implementation of Deeper LSTM+ normalized CNN for Visual Question Answering
Python
99
star
5

RINCE

CVPR 2022, Robust Contrastive Learning against Noisy Views
Python
79
star
6

Tensorboard2Seaborn

Plot Tensorflow Summary Event in a Beautiful Way 🌈
Python
66
star
7

VQG-tensorflow

Visual Question Generation in Tensorflow
Python
66
star
8

fair-mixup

ICLR 2021, Fair Mixup: Fairness via Interpolation
Python
55
star
9

photo-editing-tensorflow

Photo Optimizing Adversarial Net with Policy Gradient Method
Python
54
star
10

InfoOT

[ICML2023] InfoOT: Information Maximizing Optimal Transport
Python
40
star
11

TMD

NeurIPS 2022: Tree Mover’s Distance: Bridging Graph Metrics and Stability of Graph Neural Networks
Python
32
star
12

kV-Margin

NeurIPS 2021, Code for Measuring Generalization with Optimal Transport
Python
26
star
13

debias_vl

Code for Debiasing Vision-Language Models via Biased Prompts
Python
25
star
14

san-torch

Torch implementation for Stacked Attention Networks
Lua
25
star
15

estimating-generalization

ICML 2020, Estimating Generalization under Distribution Shifts via Domain-Invariant Representations
Python
21
star
16

VisionWorks

Basic Computer Vision Problem & Work
MATLAB
9
star
17

mdm

Code for "The Role of Embedding Complexity in Domain-invariant Representations"
Python
2
star
18

FTP-Proxy-Rate-Control

Simple FTP-proxy with rate control.
C
2
star