Coder Social home page Coder Social logo

Comments (3)

XiangLi1999 avatar XiangLi1999 commented on July 4, 2024

Hi, this is not a bug. We need to backdrop gradient signal from these two losses to the embedding function in order to jointly train.

from diffusion-lm.

summmeer avatar summmeer commented on July 4, 2024

@XiangLi1999 Hi, I'm curious about the loss funtion too. I can not understand why we need to compute decoder_nll using x_start in decoder_nll = self.token_discrete_loss(x_start, get_logits, input_ids). I think x_start is the word embedding added with extra noise, and this decode loss is trying to recover the noise, and this has no relation with diffusion model. Besides, this is not consistent with the formulation in loss function, in the \log p_theta (w|x_0) part. Why can't we replace x_start to the predicted model_out_x_start? Is this more reasonable? (But the experiment results is not good)

from diffusion-lm.

AlonzoLeeeooo avatar AlonzoLeeeooo commented on July 4, 2024

@XiangLi1999 Hi, I'm curious about the loss funtion too. I can not understand why we need to compute decoder_nll using x_start in decoder_nll = self.token_discrete_loss(x_start, get_logits, input_ids). I think x_start is the word embedding added with extra noise, and this decode loss is trying to recover the noise, and this has no relation with diffusion model. Besides, this is not consistent with the formulation in loss function, in the \log p_theta (w|x_0) part. Why can't we replace x_start to the predicted model_out_x_start? Is this more reasonable? (But the experiment results is not good)

Hi @summmeer ,
I also share the same feelings about this problem. It seems that decoder_nll has less correlation with the training of diffusion models. And I wonder how is it performing during your experiments? As I was training the model, I found that NLL loss equals to zero for a long training period (about 8k iterations). At about 10k training steps, the NLL loss occurs with increasing values. Have you ever encountered the similar situation? How is the NLL loss during your experiments?

Thanks for your reply in advance. It would help me a lot.

Best,

from diffusion-lm.

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.