Parallelizing Autoregressive Generation with Variational State Space Models

Gaspard Lambrechts, Yann Claes, Pierre Geurts, Damien Ernst
7/11/2024
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

Attention-based models such as Transformers and recurrent models like state space models (SSMs) have emerged as successful methods for autoregressive sequence modeling. Although both enable parallel training, none enable parallel generation due to their autoregressiveness. We propose the variational SSM (VSSM), a variational autoencoder (VAE) where both the encoder and decoder are SSMs. Since sampling the latent variables and decoding them with the SSM can be parallelized, both training and generation can be conducted in parallel. Moreover, the decoder recurrence allows generation to be resumed without reprocessing the whole sequence. Finally, we propose the autoregressive VSSM that can be conditioned on a partial realization of the sequence, as is common in language generation tasks. Interestingly, the autoregressive VSSM still enables parallel generation. We highlight on toy problems (MNIST, CIFAR) the empirical gains in speed-up and show that it competes with traditional models in terms of generation quality (Transformer, Mamba SSM).

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lambrechts2024parallelizing,
  title  = {Parallelizing Autoregressive Generation with Variational State Space Models},
  author = {Gaspard Lambrechts and Yann Claes and Pierre Geurts and Damien Ernst},
  year   = {2024},
  eprint = {2407.08415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.08415v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.08415.svg)](https://codeofpaper.com/paper/2407.08415)

Discussion