Home

Awesome

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:

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