Giter Club home page Giter Club logo

Comments (5)

senya-ashukha avatar senya-ashukha commented on August 17, 2024

Hi, Daniil!

It's absolutely the same construction. Besides clipping T.exp(log_alpha) * self.W * self.W can be replaced with T.exp(self.log_sigma2 - T.log(self.W ** 2)) * self.W * self.W that is exatly log_sigma_2.

The beautiful thing about ART is that you have to change the only parametrization while evaluation is the same.

from variational-dropout-sparsifies-dnn.

kefirski avatar kefirski commented on August 17, 2024

Yep, It's the same thing, but if we will look at this equation without local reparameterization we will see that in current implementation you have implied_weight = W + W^2 * alpha * eps and thus variance of gradient will remain the same

from variational-dropout-sparsifies-dnn.

senya-ashukha avatar senya-ashukha commented on August 17, 2024

Actually no. Let's move to math to see it clearly. We are interested in d implied_weight / d log_sigma2 :

implied_weight = W + W^2 * alpha * eps
implied_weight = w + w^2 * exp(log_sigma2) * 1/exp(T.log(self.W ** 2)) * eps 
implied_weight = w + exp(log_sigma2) * eps 

After several lines, we can see d implied_weight / d log_sigma2 does not depend on alpha that's why thought "additive reparameterization takes no effect in the case of big alpha" is wrong.

from variational-dropout-sparsifies-dnn.

kefirski avatar kefirski commented on August 17, 2024

Yep, you are absolutely right. I forgot that alpha is obtained from sigma and W.
Thank you for help!

from variational-dropout-sparsifies-dnn.

senya-ashukha avatar senya-ashukha commented on August 17, 2024

Wellcome!

from variational-dropout-sparsifies-dnn.

Related Issues (12)

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.