Giter VIP home page Giter VIP logo

ymalotcea / directrandomtargetprojection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chfrenkel/directrandomtargetprojection

0.0 0.0 0.0 2.54 MB

PyTorch-based code for training fully-connected and convolutional networks using backpropagation (BP), feedback alignment (FA), direct feedback alignment (DFA), and direct random target projection (DRTP).

License: Apache License 2.0

Python 100.00%

directrandomtargetprojection's Introduction

Direct Random Target Projection (DRTP) - PyTorch-based implementation

Copyright (C) 2019, Université catholique de Louvain (UCLouvain), Belgium.

The source code is free: you can redistribute it and/or modify it under the terms of the Apache v2.0 license.

The software and materials distributed under this license are provided in the hope that it will be useful on an 'as is' basis, without warranties or conditions of any kind, either expressed or implied; without even the implied warranty of merchantability or fitness for a particular purpose. See the Apache v2.0 license for more details.

You should have received a copy of the Apache v2.0 license along with the source code files (see res/LICENSE file). If not, see https://www.apache.org/licenses/LICENSE-2.0.

Topologies
Fig. 1 - (a) Backpropagation of error algorithm (BP). (b) Feedback alignment (FA) [Lillicrap et al., Nat. Comms., 2016]. (c) Direct feedback alignment (DFA) [Nokland, NIPS, 2016]. (d) Proposed direct random target projection (DRTP) algorithm.

The provided source files contain the PyTorch-based code for training fully-connected and convolutional networks using the following algorithms, as summarized in Fig. 1:

  • the backpropagation of error algorithm (BP),
  • feedback alignment (FA) [Lillicrap et al., Nat. Comms., 2016],
  • direct feedback alignment (DFA) [Nokland, NIPS, 2016],
  • the proposed direct random target projection (DRTP) algorithm, which solves both the weight transport and the update locking problems.

In order to reproduce our experiments in the associated paper (see below), the error-sign-based variant of DFA (sDFA) and shallow learning are also available.

In case you decide to use the source code for academic or commercial use, we would appreciate if you let us know; feedback is welcome. Upon usage of the source code, please cite the associated paper (available here):

C. Frenkel, M. Lefebvre and D. Bol, "Learning without feedback: Fixed Random Learning Signals Allow for Feedforward Training of Deep Neural Networks," Frontiers in Neuroscience, vol. 15, no. 629892, 2021. doi: 10.3389/fnins.2021.629892

Instructions on how to use the code are available in the main.py source file.

directrandomtargetprojection's People

Contributors

chfrenkel avatar

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.