Giter VIP home page Giter VIP logo

umim's Introduction

UMIM

Code for the Paper "Online Task-Agnostic Continual Learning through Unsupervised Mutual Information Maximization"

Abstract

Catastrophic forgetting remains a challenge for artificial learning systems, especially in the case of Online learning, where task information is unavailable. This work proposes a novel task-agnostic approach for class-incremental Continual Learning that combines expansion and regularization methods through a non-parametric model. The model adds new experts automatically while regularizing old experts under a variational Bayes paradigm. Expert selection is implemented using Contrastive Learning techniques, catastrophic forgetting is mitigated by minimizing mutual information between the experts' posterior and prior feature embeddings. Importantly, our method successfully handles single source tasks such as split-MNIST and split-CIFAR-10/100, mixed source tasks like split-CIFAR-100/split-F-CelebA, and long task sequences such as split-TinyImageNet, without using generative models or replay mechanisms. We also successfully extend our approach to Continual Reinforcement learning tasks. Our method achieves these results in a task-agnostic and replay-free setting, making it more flexible than most existing Continual Learning approaches without compromising performance.

Requirements

see requirements.txt for a full list

Run Supervised Learning Experiments

For each setup, there is a separate file, e.g., run_cifar10_experiments.py.

Mixed Sequence Data

Note that data for the mixed sequence experiments must be downloaded prior to running the experiments and put into the following folder structure:

./celeb_data/test/all_data_iid_01_05_keep_5_test_9.json
./celeb_data/train/all_data_iid_01_05_keep_5_train_9.json

The file build_celeba.py will take care of loading and preparing the files.

Tiny ImageNet Data

Get data here: https://www.kaggle.com/c/tiny-imagenet and load into the following folder structure within the main repo folder:

./tiny-imagenet-200/train/*/images/*.JPEG
./tiny-imagenet-200/val/val_annotations.txt
./tiny-imagenet-200/val/images/
./tiny-imagenet-200/wnids.txt
./tiny-imagenet-200/words.txt

The file build_tinyimage.py will take care of loading and preparing the files.

Run Reinforcement Learning Experiments

Simply run the file SAC_main.py. All RL algorithms are implemented on top of Soft-Actor-Critics, hence the files are named SAC_*.py.

umim's People

Contributors

hhihn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

umim's Issues

question about result on cifar10

Hi.
Thanks for the great work. I have a question regarding the result in table2

I conducted experiment using run_cifar10_experiments.py that was not modified.
When num_experts=5 , Avg. Accuracy of cifar-10 in table2 is 82.3.
But , when I did, It is 60~70.
I think I must have missed some important hyper-parameters. Would you mind provide more details on that experiment?

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.