Giter VIP home page Giter VIP logo

wyu-du / gp-vae Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 3.0 11.48 MB

This repository contains the data and code for the paper "Diverse Text Generation via Variational Encoder-Decoder Models with Gaussian Process Priors" (SPNLP@ACL2022)

Home Page: http://arxiv.org/abs/2204.01227

License: Apache License 2.0

Shell 0.17% Python 99.83%
variational-autoencoder gaussian-processes text-generation t5-model pointer-generator lstm transformer style-transfer paraphrase-generation

gp-vae's People

Contributors

readmlll avatar wyu-du avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gp-vae's Issues

How to solve the problem of "zero kld!!!"?

When I am trying to train the t5-gpave, there is a problem of "zero kld!!!".
20220420102353
Also, the "zero kld!!!" is also in the training of the LSTM-based variational encoder-decoder with GP priors.
Thank you for your help and I am looking forward to hearing from you.

inference speed and diversity

Hi!
Thanks for your great work! I'm working on getting results on another paraphrase dataset under T5 + GP prior setting. I have the following two questions:

  • I found that the generation speed is relatively slow due to the inference batch size 1, and something get wrong if I change it. Is there any way to speed up the generation?
  • if I want to get a trade-off between quality and diversity, is it suitable to set the scalar to 7 just like it used in the paper for the paraphrasing task?

output data of your experiment

Hi! I need to do some comparative experiments. Could you please provide the output on the formal style transfer task (GYAFC dataset)?

prior_logvar should be 1 when calculating KL

Thank you for your great work! I am learning VAE recently, your paper have given me great inspiration.

In naive VAE, the KL divergence should be $KL(\mathcal{N}(\mu, \sigma), \mathcal{N}(0,1))$. But when reading your code, I found model/t5/t5_vae.py line 151, you set the prior_logvar as 0. Is there any mistake?

prior_mean = torch.zeros([hidden_states.size(0), posterior_mean.size(-1)]) \
    .to(posterior_mean.dtype).to(posterior_mean.device)
prior_logvar = torch.zeros([hidden_states.size(0), posterior_logvar.size(-1)]) \
      .to(posterior_logvar.dtype).to(posterior_logvar.device)

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.