Mattdl / RehearsalRevealed

Official codebase of the "Rehearsal revealed:The limits and merits of revisiting samples in continual learning" paper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rehearsal Revealed: The limits and merits of revisiting samples in continual learning

Open-Access paper | Open-source MIT license | Avalanche framework

This is the official Pytorch based codebase for the Rehearsal Revealed paper, published at ICCV 2021. We examine replay/rehearsal in continual learning, in the perspective of loss landscapes. All experiments can be reproduced, from analysing the loss contours, linear interpolations paths and gradients, to significantly improving rehearsal with Ridge Aversion.

Getting started

This code has been tested with

The requirements for this work are the basic Avalanche dependencies. You can install them by using the install script or take a look at the script to install the environment manually.

Project structure

Explanation for the different experiments can be found in their respective folders.

Other modules:

  • Framework: Root directory of the framework modules
  • data: MiniImagenet data folder, containing split. Place preprocessed pickled file here.

MiniImagenet Benchmark: First download the 'miniImageNet.pkl' file in ./data and copy the file miniimagenet_split _20.txt into the same folder. The pickled object should be a dict with keys data and labels, each with numpy(-like) arrays as values. The data contains 500 train and 100 test samples per class. See also the Mini Imagenet tools for preprocessing.

Credits

  • Consider citing our paper upon using this repo:

      @InProceedings{Verwimp_2021_ICCV,
          author    = {Verwimp, Eli and De Lange, Matthias and Tuytelaars, Tinne},
          title     = {Rehearsal Revealed: The Limits and Merits of Revisiting Samples in Continual Learning},
          booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
          month     = {October},
          year      = {2021},
          pages     = {9385-9394}
      }
    
  • Thanks to the Avalanche framework v0.0.1 for the Ridge Aversion Experiments.

About

Official codebase of the "Rehearsal revealed:The limits and merits of revisiting samples in continual learning" paper.

License:MIT License


Languages

Language:Python 99.2%Language:Shell 0.8%