Giter Club home page Giter Club logo

la-maml's Introduction

La-MAML

This repository is the official implementation of Look-Ahead Meta-Learning for Continual Learning which was accepted at Neurips 2020 (Oral).

Paper | Blog | Video

La-MAML

Available Datasets

The code works for varient of MNIST and task incremental version of CIFAR100 and TinyImageNet. To download the different versions of MNIST CL benchmarks use the file get_data.py as follows

python get_data.py all

CIFAR100 is automatically downloaded when you run a script for CIFAR experiments.

For TinyImageNet, first give the correct permissions to the download script:

chmod +x download_tinyimgnet.sh

Then, run the following commands to download and process the data for use by Pytorch Dataloader:

./download_tinyimgnet.sh

Basic Setup

As a first step to get up and running, use this repository and navigate into the root directory of your local version of the repository. To get started, please install the requirements inside your environment using conda. Type the following in your terminal:

conda env create -f environment.yml

Once completed source your environment using:

conda activate lamaml

This will create a conda environment (an isolated workplace) with most of the files installed in it. The rest of the files can be installed using pip:

pip install -r requirements.txt

Available Algorithms

We provide the implementations of the following algorithms for the CIFAR and TinyImageNet datasets: -

IID
ER
La-ER
iCarl
GEM
AGEM
MER
Meta-BGD
CMAML
Sync
La-MAML

For the MNIST experiments, we have only tested CMAML, Sync and La-MAML.

Getting Started

In run_experiments.sh see examples of how to run variants of la_maml from the paper and baseline models from the experiments. First run the following command:

chmod +x run_experiments.sh

Finally, you can run all the experiments using the following command:

./run_experiments.sh

It is also possible to run a single algorithm at once. For that look into the run_experiments.sh file to access the arguments and hyperparams required for a particular algorithm.

Results

Our model achieves the following performance on the Real-World Classification experiments:

Checkout Table 1 and 3 in our Paper for more results.

Citation

@article{gupta2020maml,
  title={La-MAML: Look-ahead Meta Learning for Continual Learning},
  author={Gupta, Gunshi and Yadav, Karmesh and Paull, Liam},
  journal={arXiv preprint arXiv:2007.13904},
  year={2020}
}

la-maml's People

Contributors

ykarmesh avatar

Watchers

James Cloos 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.