GithubHelp home page GithubHelp logo

farkaslayers's Introduction

FarkasLayers

Public repository for Farkas Layers, as described in Farkas Layers: Don't shift the data, fix the geometry.

Abstract: Successfully training deep neural networks often requires either batch normalization, appropriate weight initialization, both of which come with their own challenges. We propose an alternative, geometrically motivated method for training. Using elementary results from linear programming, we introduce Farkas layers: a method that ensures at least one neuron is active at a given layer. Focusing on residual networks with ReLU activation, we empirically demonstrate a significant improvement in training capacity in the absence of batch normalization or methods of initialization across a broad range of network sizes on benchmark datasets.

Using this repo:

This is coded using PyTorch 1.0. The "models" folder contains implementations of standard Residual Networks and FarkasNets, with the corresponding Farkas Blocks (Linear, Convolutional, Residual, etc). Simply modify "run.sh" in the experiment_template folder, and train a FarkasNet. In run.sh, you can tinker with the parameters (i.e. weight initialization, having the last block be zero, etc) to mimick our examples from the paper. To change the aggregation function, you can go into "models/farkas.py" and change the relevant "sum" calls to "mean" calls.

To Do

  1. Give option for mean or aggregation function in argparser

Citation

If you find the Farkas Layers useful in your scientific work, please cite as

@article{pooladian2019farkaslayers,
  title={Farkas Layers: Don't shift the data, fix the geometry},
  author={Pooladian, Aram-Alexandre and Finlay, Chris and Oberman, Adam M.},
  journal={arXiv preprint arXiv:1910.02840},
  year={2019},
  url={http://arxiv.org/abs/1910.02840},
  archivePrefix={arXiv},
  eprint={1910.02840},
}

farkaslayers's People

Contributors

apooladian avatar

Stargazers

Jiezhang Cao avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.