ChunyuanLI / Optimus

Optimus: the first large-scale pre-trained VAE language model
368 stars 37 forks source link

Question Label-Conditional Text Generation #7

Open Diego999 opened 4 years ago

Diego999 commented 4 years ago

Dear authors,

First, thank you for sharing the code!

I was interested in the experiment of Label-Conditional Text Generation. I would have some questions about the losses.

  1. loss_lsd corresponds to equation 16 of the paper. and loss_lsg I guess complement the equation 16. Is there a reason why this is not mentioned in Eq 16?

  2. I have the feeling that loss_encode cancels out loss_lsc when added together in loss. Is it correct?

  3. What would be needed to change to handle, for example, 3 classes? Ony this ?

Thanks a lot for your answers!

eslambakr commented 2 years ago

Dear @Diego999

Thanks for your question, actually I benefit from it a lot.

I am trying to run the Label-Conditional Text Generation experiment too, but unfortunately, I didn't find the entry point for the training where there is no code call the class "Ctrl_Gen". Thus, if you managed to train it it would be appreciated if you can guide me.

Thanks in advance!