GithubHelp home page GithubHelp logo

mr-residual-net's Introduction

This repository contains my evaluations of Merge and Run in Binarized Residual Neural Work

Copyright: Xianda Xu [email protected]

Evaluation on Cifar-10

Accuracy Full-Precise (1) Binarized (1) Binarized (2) Netscope
ResNet-18 93.28% 90.50% Network
MR-ResNet-20 92.15% 87.77% 90.48% Network
MR-ResNet-32 93.39% 90.46% 92.58% Network

Style 1 does downsampling by using concatenation and convolusion (kernel_size=1, stride=2, padding=0)

Style 2 does downsampling by using concatenation and average pooling (kernel_size=2, stride=2)

Binarization Principle

  • Keep full-precision on the first convolutional layer and the last linear layer.

  • In binarized convolutional layers, all weights are binarized and scaled in propagation (https://arxiv.org/abs/1603.05279). But here, the scale factors are not learnt but all set to 1.

  • BatchNorms in binarized blocks have no affine weights and bias parameters.

  • Since activations are not binarized, ReLU is used instead of HardTanh (https://arxiv.org/pdf/1602.02830).

Baseline

Model: ResNet-18

Paper: (https://arxiv.org/abs/1512.03385)

Netscope: Network

Full-Precise Accuracy on Cifar-10: 93.28% with 80 epoches

Binarized Accuracy on Cifar-10: 90.50% with 80 epoches

Merge and Run

Model: MR-ResNet-20 (the number of layers is almost identical to the baseline ResNet-18 model)

Paper: (https://arxiv.org/abs/1611.07718)

Netscope: Network

Full-Precise Accuracy on Cifar-10: 92.15% with 80 epoches

Binarized Accuracy on Cifar-10: 87.77% with 80 epoches

  • Downsampling is done by firstly concatenating left-branch and right-branch and secondly using a convolusion (kernel-size:1, stride:2, padding:0)

Binarized Accuracy on Cifar-10: 90.48% with 80 epoches

  • Downsampling is done by firstly concatenating left-branch and right-branch and secondly using a average pooling (kernel_size:2, stride:2)

Model: MR-ResNet-32 (the depth is identical to the baseline ResNet-18 model)

Paper: (https://arxiv.org/abs/1611.07718)

Netscope: Network

Full-Precise Accuracy on Cifar-10: 93.39% with 80 epoches

Binarized Accuracy on Cifar-10: 90.46% with 80 epoches

  • Downsampling is done by firstly concatenating left-branch and right-branch and secondly using a convolusion (kernel-size:1, stride:2, padding:0)

Binarized Accuracy on Cifar-10: 92.58% with 80 epoches

  • Downsampling is done by firstly concatenating left-branch and right-branch and secondly using a average pooling (kernel_size:2, stride:2)

mr-residual-net's People

Contributors

brycexu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

mr-residual-net's Issues

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.