Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 3.04 KB

README.md

File metadata and controls

55 lines (40 loc) · 3.04 KB

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.