Skip to main content
QUICK REVIEW

[Paper Review] Vector Quantized Time Series Generation with a Bidirectional Prior Model

Dae-Soo Lee, Sara Malacarne|arXiv (Cornell University)|Mar 8, 2023
Time Series Analysis and ForecastingComputer Science10 citations
TL;DR

TimeVQVAE introduces a two-stage vector-quantized approach for time series generation, using time-frequency VQ-VAE with LF-HF separation and bidirectional transformer priors to improve global temporal consistency and sample quality.

ABSTRACT

Time series generation (TSG) studies have mainly focused on the use of Generative Adversarial Networks (GANs) combined with recurrent neural network (RNN) variants. However, the fundamental limitations and challenges of training GANs still remain. In addition, the RNN-family typically has difficulties with temporal consistency between distant timesteps. Motivated by the successes in the image generation (IMG) domain, we propose TimeVQVAE, the first work, to our knowledge, that uses vector quantization (VQ) techniques to address the TSG problem. Moreover, the priors of the discrete latent spaces are learned with bidirectional transformer models that can better capture global temporal consistency. We also propose VQ modeling in a time-frequency domain, separated into low-frequency (LF) and high-frequency (HF). This allows us to retain important characteristics of the time series and, in turn, generate new synthetic signals that are of better quality, with sharper changes in modularity, than its competing TSG methods. Our experimental evaluation is conducted on all datasets from the UCR archive, using well-established metrics in the IMG literature, such as Fréchet inception distance and inception scores. Our implementation on GitHub: \url{https://github.com/ML4ITS/TimeVQVAE}.

Motivation & Objective

  • Motivate improving time series generation beyond GAN-based methods and RNN limitations.
  • Introduce a two-stage VQ-based framework (VQ-VAE plus bidirectional priors) for TSG.
  • Exploit time-frequency representation andLF-HF latent separation to enhance quality and controllability.
  • Enable unconditional and class-conditional generation with efficient sampling.
  • Provide comprehensive evaluation on the UCR archive using IMG-style metrics (IS, FID, CAS).

Proposed method

  • Transform time series to time-frequency domain via STFT and split into LF and HF regions.
  • Use two separate VQ-VAE branches (LF and HF) with corresponding encoders, decoders, and codebooks.
  • Learn discrete latent spaces and train two bidirectional transformers as priors for LF and HF tokens.
  • Perform iterative double-pass decoding to sample LF first, then HF, and sum to form the final signal.
  • Implement iterative masking-based prior training inspired by MaskGIT with a double-pass scheme for LF and HF tokens.
  • Enable class-conditioned generation via a class token and classifier-free guidance for sampling.
  • Evaluate using IS, FID, and CAS on the full UCR archive and share pretrained FCN models for evaluation.

Experimental results

Research questions

  • RQ1Can TimeVQVAE outperform GAN/RNN-based TSG methods on unconditional and class-conditional generation across the UCR datasets?
  • RQ2Does time-frequency VQ modeling with LF-HF separation improve reconstruction and sample quality compared to time-domain VQ?
  • RQ3Do bidirectional transformer priors capture global temporal consistency more effectively than autoregressive priors in TSG?
  • RQ4Can guided class-conditional sampling and perceptual loss provide additional gains in sample realism and class fidelity?
  • RQ5What are the effects of LF-first HF-second sampling and iterative decoding on diversity and fidelity of generated time series?

Key findings

  • TimeVQVAE outperforms competing TSG models (GMMN, RCGAN, TimeGAN, SigCWGAN) in IS and FID on unconditional sampling across UCR datasets.
  • LF-HF separation in the time-frequency domain yields better quality and sharper changes in generated signals than time-domain VQ.
  • Learning two separate bidirectional transformers for LF and HF priors improves global temporal consistency.
  • Iterative double-pass decoding (LF first, HF second) with stochastic sampling improves realism and reduces training/inference gap.
  • Guided class-conditional sampling with a modest guidance scale yields crisper class boundaries and better CAS than baselines.
  • Perceptual loss using a pretrained FCN provides small but positive gains in sample quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.