Git Product home page Git Product logo

ghadasokar / spacenet Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 11 KB

Implementation for the paper "SpaceNet: Make Free Space For Continual Learning" in PyTorch.

License: MIT License

Python 100.00%
sparse-representations sparse-neural-networks sparse-training continual-learning life-long-learning incremental-learning catastrophic-forgetting brain-inspired deep-learning deep-neural-networks

spacenet's Introduction

SpaceNet: Make Free Space For Continual Learning

This is the official PyTorch implementation for the SpaceNet: Make Free Space For Continual Learning paper in Elsevier Neurocomputing Journal.

Abstract

In this work, we present a new brain-inspired method to learn a sequence of tasks sequentially. SpaceNet learns semi-distributed sparse representation to mitigate forgetting previously learned knowledge. We train each task using sparse connections from scratch. Our proposed adaptive sparse training algorithm dynamically redistributes and compacts the sparse connections in the important neurons to the current task leaving free space for future tasks.

Requirements

  • Python 3.6
  • Pytorch 1.2
  • torchvision 0.4

Usage

You can use main.py to run SpaceNet on the Split MNIST benchmark.

python main.py

Reference

If you use this code, please cite our paper:

@article{SOKAR20211,
title = {SpaceNet: Make Free Space for Continual Learning},
journal = {Neurocomputing},
volume = {439},
pages = {1-11},
year = {2021},
issn = {0925-2312},
doi = {https://doi.org/10.1016/j.neucom.2021.01.078},
url = {https://www.sciencedirect.com/science/article/pii/S0925231221001545},
author = {Ghada Sokar and Decebal Constantin Mocanu and Mykola Pechenizkiy}
}

spacenet's People

Contributors

ghadasokar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spacenet's Issues

convolutional neural network

I have a problem when I try to implement with convolutional neural network for CIFAR. Between the last convolutional layer and first fully connected layer is max pooling layer. And the problem occurs when i run this code, the shape of output of conv layer is node same as the shape of input of FC layer
How can i fix this?
image

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.