Giter Site home page Giter Site logo

endtoendincrementallearning's Introduction

End-to-End Incremental Learning

Code for our published paper http://arxiv.org/abs/1807.09536

Abstract

Although deep learning approaches have stood out in recent years due to their state-of-the-art results, they continue to suffer from catastrophic forgetting, a dramatic decrease in overall performance when training with new classes added incrementally. This is due to current neural network architectures requiring the entire dataset, consisting of all the samples from the old as well as the new classes, to update the model -a requirement that becomes easily unsustainable as the number of classes grows. We address this issue with our approach to learn deep neural networks incrementally, using new data and only a small exemplar set corresponding to samples from the old classes. This is based on a loss composed of a distillation measure to retain the knowledge acquired from the old classes, and a cross-entropy loss to learn the new classes. Our incremental training is achieved while keeping the entire framework end-to-end, i.e., learning the data representation and the classifier jointly, unlike recent methods with no such guarantees. We evaluate our method extensively on the CIFAR-100 and ImageNet (ILSVRC 2012) image classification datasets, and show state-of-the-art performance.

Code

Prerequsites:

All these libraries are required to use the code. In parentheses appears the version we have used.

Installation:

  1. Let's assume that you have placed this code in folder <EndToEndIncrementalLearning>.
  2. Let's assume that you have placed and installed ResNet-Matconvnet in folder <ResNet-Matconvnet>.
  3. Change path of ResNet-Matconvnet in startup.m
  4. Start Matlab.
  5. Now you can use the code.

Usage:

  1. Change required paths in build_imdbs.m and execute the code to generate the imdbs.
  2. Train the first model with source code of ResNet-Matconvnet but using the first imdb for each step size and iteration.
  3. Change required paths and parameteris in experiment_cifar.m and run the code to train the models.
  4. Change required paths and parameteris in test_cifar.m and run the code to test the models.

For ImageNet, you only have to change the number of classes and relative paths to the dataset.

Note that the parameters that must be changed are followed by the comment '% Edit me!'

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.