GithubHelp home page GithubHelp logo

Comments (4)

rbodo avatar rbodo commented on August 21, 2024

I've looked into the issue with low ANN accuracy after parsing, it's the same for me. Will not be able to fix this right now - hopefully later this week.

Regarding binary weights, this post should help:

#28 (comment)

from snn_toolbox.

sms821 avatar sms821 commented on August 21, 2024

Thank you for your reply.
I looked at #28 and have another question. If batch normalization is making the weights continuous again, will it be okay to re-cast them as binary during inference? Otherwise, they won't retain their binary characteristic and there won't be much to gain by constraining the weights to discrete {-1, +1} values during training.

from snn_toolbox.

rbodo avatar rbodo commented on August 21, 2024

It's difficult to give a definite answer here as these quantization methods are still actively researched. Of course you can try re-casting them as binary, which may very well work for MNIST, but probably not for CIFAR-10 (or not without significant drop in accuracy). You could also try to train the original model without batch-normalization (BN), but it will be tricky to get the network to converge like that.

It can be argued that "binary" networks that have BN layers in them are still efficient, especially when running on dedicated hardware, because even if the weight values are full precision again due to BN, they are at least discretized, which reduces the memory footprint. (Each layer has only as many different weight values as there are channels in the feature map.)

from snn_toolbox.

YiZhangNUDT avatar YiZhangNUDT commented on August 21, 2024

Hi @sms821,
I also meet a similar problem about the low accuracy of BinaryNet for CIFAR-10.
Do you find the method to fix it?
Thank you very much.
Yi

from snn_toolbox.

Related Issues (20)

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.