Skip to content

trihuynh88/multigrid_mem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multigrid Neural Memory

The repository contains sample implementations for the Multigrid Neural Memory architectures.

To cite this work, please use:

@INPROCEEDINGS{HuynhICML2020,
  author = {Tri Huynh and Michael Maire and Matthew R. Walter},
  title = {Multigrid Neural Memory},
  booktitle = {International Conference on Machine Learning (ICML)},
  year = {2020}
}

Dependency

  • Tensorflow 1.15
  • Python 2.7
  • OpenCV-Python
  • Python-MNIST

Content

Subdirectories contain sample code for corresponding tasks:

  • mapping_localization: mapping and localization task. The sample code for an agent moving in spiral motion with 3x3 observations and 3x3 queries is provided.
  • mnist_recall: associative recall + classification task on mnist digits.

Usage

  • The code in each directory is self-contained. Training can be invoked by calling:
python main.py
  • Learning curves should look like the following:

Mapping & Localization Task:

MNIST Associative Recall & Classification:

  • Inference visualization is generated periodically during training, and saved in CHECKPOINT_DIR/[TIME-STEP]. The interval for saving visualization can be controlled by SAVE_VIS_INTERVAL in constants.py. Sample visualizations are provided below:

Mapping & Localization Task:
See the project page for annotations and more demos.

MNIST Associative Recall & Classification:
Top row visualizes the input sequence. Bottom row shows the query image and the predicted output class of the following digit aligned to their corresponding positions in the top row.

Acknowledgement

Part of the code structure was adapted from miyosuda's implementation of A3C.

About

Multigrid Neural Memory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages