All Projects → inmoonlight → RMN

inmoonlight / RMN

Licence: MIT license
Relation Memory Network

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to RMN

dmn-plus
A Pytorch tutorial for implementation of Dynamic memory Network Plus
Stars: ✭ 61 (+258.82%)
Mutual labels:  memory-network
MemoPainter-PyTorch
An unofficial implementation of MemoPainter(Coloring With Limited Data: Few-shot Colorization via Memory Augmented Networks) using PyTorch framework.
Stars: ✭ 63 (+270.59%)
Mutual labels:  memory-network
MemNet ABSA
No description or website provided.
Stars: ✭ 20 (+17.65%)
Mutual labels:  memory-network
WMPoetry
The source codes of Working Memory model for Chinese poetry generation (IJCAI 2018).
Stars: ✭ 49 (+188.24%)
Mutual labels:  memory-network
gopfield
Hopfield neural networks in Go
Stars: ✭ 51 (+200%)
Mutual labels:  memory-network
relation-network
Tensorflow Implementation of Relation Networks for the bAbI QA Task, detailed in "A Simple Neural Network Module for Relational Reasoning," [https://arxiv.org/abs/1706.01427] by Santoro et. al.
Stars: ✭ 45 (+164.71%)
Mutual labels:  babi-tasks
permuted-bAbI-dialog-tasks
Dataset for 'Learning End-to-End Goal-Oriented Dialog with Multiple Answers' EMNLP 2018
Stars: ✭ 17 (+0%)
Mutual labels:  babi-tasks
babi tools
Augmentation scripts for the bAbI Dialog Tasks dataset
Stars: ✭ 14 (-17.65%)
Mutual labels:  babi-tasks
FigureQA-baseline
TensorFlow implementation of the CNN-LSTM, Relation Network and text-only baselines for the paper "FigureQA: An Annotated Figure Dataset for Visual Reasoning"
Stars: ✭ 28 (+64.71%)
Mutual labels:  relation-network
Relation-Network-PyTorch
Implementation of Relation Network and Recurrent Relational Network using PyTorch v1.3. Original papers: (RN) https://arxiv.org/abs/1706.01427 (RRN): https://arxiv.org/abs/1711.08028
Stars: ✭ 17 (+0%)
Mutual labels:  relation-network
Relation-Network
Tensorflow implementation of Relation Network (bAbI dataset)
Stars: ✭ 32 (+88.24%)
Mutual labels:  relation-network
RelationNetworks-CLEVR
A pytorch implementation for "A simple neural network module for relational reasoning", working on the CLEVR dataset
Stars: ✭ 83 (+388.24%)
Mutual labels:  relation-network

Related Memory Network (RMN)

  • End-to-End neural network architecture exploiting both memory network and relation network structures
  • State-of-the-art result in jointly trained bAbI-10k story-based question answering

Result

Task MemN2N DMN+ RN RMN
1 0.0 0.0 0.0 0.0
2 0.3 0.3 6.5 0.5
3 9.3 1.1 12.9 14.7
4 0.0 0.0 0.0 0.0
5 0.6 0.5 0.5 0.4
6 0.0 0.0 0.0 0.0
7 3.7 2.4 0.2 0.5
8 0.8 0.0 0.1 0.3
9 0.8 0.0 0.0 0.0
10 2.4 0.0 0.0 0.0
11 0.0 0.0 0.4 0.5
12 0.0 0.0 0.0 0.0
13 0.0 0.0 0.0 0.0
14 0.0 0.0 0.0 0.0
15 0.0 0.0 0.0 0.0
16 0.4 45.3 50.3 0.9
17 40.7 4.2 0.9 0.3
18 6.7 2.1 0.6 2.3
19 66.5 0.0 2.1 2.9
20 0.0 0.0 0.0 0.0
Mean error 6.6 2.8 3.7 1.2
Failed tasks 4 1 3 1

Prerequisites

  • Python 3.6
  • Tensorflow 1.3.0
  • dependencies
    • pip install tqdm colorlog

Usage

1. prepare data

To process bAbI story-based QA dataset, run:

$ python preprocessor.py --data story

To process bAbI dialog dataset, run:

$ python preprocessor.py --data dialog

2. train model

To train RMN on bAbI story-based QA dataset, run:

$ python ./babi_story/train.py  

To train RMN on bAbI dialog dataset task 4, run:

$ python ./babi_dialog/train.py --task 4 --embedding concat --word_embed_dim 50

To use match, use_match flag is required:

$ python ./babi_dialog/train.py --task 4 --use_match True --embedding concat --word_embed_dim 50

To test on OOV dataset, is_oov flag is required:

$ python ./babi_dialog/train.py --task 4 --is_oov True --embedding concat --word_embed_dim 50
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].