Giter Site home page Giter Site logo

Huge Autoencoder Scenario about eve HOT 3 CLOSED

oatml avatar oatml commented on September 26, 2024
Huge Autoencoder Scenario

from eve.

Comments (3)

pascalnotin avatar pascalnotin commented on September 26, 2024

Hi @Ahmadrezauf,
The hypothesis that "BCE on the training data converges to 0 for a large network" should be true for a deterministic autoencoder. However, there are two sources of regularization in a bayesian VAE that should prevent that from happening: 1) sampling from the approximate posterior z~q(z|x) (true for any VAE) 2) sampling from decoder parameters (true for bayesian VAEs). Did you set the KL coefficient to zero for both? How small was your learning rate (it should not be too small either to allow convergence)?

from eve.

Ahmadrezauf avatar Ahmadrezauf commented on September 26, 2024

Hi @pascalnotin Thanks a lot for your response. So I have set the KL to zero for both, and a very small learning rate such as 1e-5. The problem gets solved when removing the logsoftmax from the end of the decoder though. I don't understand that in the end as well, since the BCEwithLogits already applies a sigmoid to the create logits. With having that and a very small learning rate, the BCE doesn't go to zero.

from eve.

pascalnotin avatar pascalnotin commented on September 26, 2024

Interesting! Your response just reminded me that there is another reason why the BCE may not converge to zero (and why we use the BCEwithLogits): the vocabulary we use for modeling is comprised of the 20 standard amino acids. However, the sequences in the MSA that we use as our training data also contain gaps (dashes in the data), which we did no want to include in our output (we were mostly interested in predicting missense mutations; gaps in the MSA may have various explanations: indels, the sequence is only overlapping with a sub-domain, etc.). So whenever there is a position with a gap in the input, the resulting BCE will be non-zero regardless of the size of the VAE.

from eve.

Related Issues (8)

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.