Masked Generative Modeling with Enhanced Sampling Scheme

Daesoo Lee, Erlend Aune, Sara Malacarne
9/14/2023
cs.LGcs.AIstat.ML

Official code: ML4ITS/TimeVQVAE (165 stars, MIT, PyTorch, last commit 2026-03-01).

Abstract

This paper presents a novel sampling scheme for masked non-autoregressive generative modeling. We identify the limitations of TimeVQVAE, MaskGIT, and Token-Critic in their sampling processes, and propose Enhanced Sampling Scheme (ESS) to overcome these limitations. ESS explicitly ensures both sample diversity and fidelity, and consists of three stages: Naive Iterative Decoding, Critical Reverse Sampling, and Critical Resampling. ESS starts by sampling a token set using the naive iterative decoding as proposed in MaskGIT, ensuring sample diversity. Then, the token set undergoes the critical reverse sampling, masking tokens leading to unrealistic samples. After that, critical resampling reconstructs masked tokens until the final sampling step is reached to ensure high fidelity. Critical resampling uses confidence scores obtained from a self-Token-Critic to better measure the realism of sampled tokens, while critical reverse sampling uses the structure of the quantized latent vector space to discover unrealistic sample paths. We demonstrate significant performance gains of ESS in both unconditional sampling and class-conditional sampling using all the 128 datasets in the UCR Time Series archive.

View on arXivView PDF

Code Implementations(1)

ML4ITS/TimeVQVAEOfficial100%
PyTorchMIT

[official] PyTorch implementation of TimeVQVAE from the paper ["Vector Quantized Time Series Generation with a Bidirectional Prior Model", AISTATS 2023]

16516Shell, PythonJan 30, 20237 months agoMIT
pytorchsynthetic-time-seriestime-seriestime-series-generationtimevqvae+1 more

Cite this paper

@article{lee2023masked,
  title  = {Masked Generative Modeling with Enhanced Sampling Scheme},
  author = {Daesoo Lee and Erlend Aune and Sara Malacarne},
  year   = {2023},
  eprint = {2309.07945},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.07945v1}
}

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/2309.07945.svg)](https://codeofpaper.com/paper/2309.07945)

Discussion