Coder Social home page Coder Social logo

rpatrik96 / lod-wmm-2019 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 114 KB

Supplementary code for the paper "Stochastic Weight Matrix-based Regularization Methods for Deep Neural Networks" - an accepted paper of LOD2019

License: GNU Lesser General Public License v3.0

Python 100.00%
wmm weight-reinitialization weight-shuffling weight-matrix pytorch-implementation pytorch generalization overfitting regularization regularization-methods deep-neural-networks deep-learning deep-learning-algorithms

lod-wmm-2019's Introduction

Weight Matrix Modification - LOD2019 paper supplement

Authors: Patrik Reizinger & Bálint Gyires-Tóth

General description:

The project contains the source files (without the datasets) which implement WMM (Weight Matrix Modification,) a weight matrix-based regularization technique for Deep Neural Networks. In the following the proposed methods are shortly introduced, including the evaluation framework.

Weight shuffling

Weight shuffling is based on the assumption that locally the coefficients of a weight matrix are correlated. Based on this, we hypothesize that shuffling the weight within a rectangular window - which is under the beforementioned assumption a way of adding correlated noise to the weights - may help reduce overfitting.

Weight reinitialization

Weight reinitialization aims to reduce overfitting while partially reinitializing the weight matrix, thus in the case of a non-representative training set it may reduce the over-/underestimation of the significance regarding specific input data.

Usage:

The code can be run with typing the following command:

python ignite_main.py --model MODEL --dataset DS --num-trials TRIALS

Where MODEL can be one of following:

  • mnistnet
  • seqmnistnet
  • cifar10net
  • lstmnet
  • jsbchoralesnet

While DS should be (mismatch check is included in the code, the code structure was decided to be that way to enable the usage of multiple networks for the same dataset):

  • MNIST
  • CIFAR10
  • SIN (for the synthetic data) or SIN-NOISE (for noisy variant)

The default is to use Weight Shuffling, Weight Reinitialization can be selected by specifying --choose-reinit. TRIALS gives the number of runs by the hyper-optimization engine. The result of the hyper-optimization will be a .tsv file containing essential information about each training run.

More arguments concerning e.g. checkpointing or logging can be found in ignite_main.py.

The parameters of the optimizer (e.g. learning rate, momentum) can be set up in the ModelParameters class in descriptors.py.

Results

The 20 best results for each dataset and each method is included in the results directory, where the most important parameters are also included beside performance metrics.

lod-wmm-2019's People

Contributors

rpatrik96 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.