Abstract
TARFVAE is a novel generative framework for long-term time series forecasting (LTSF) that bridges the gap between efficient Variational Autoencoders (VAEs) and expressive Normalizing Flows. By incorporating a Transformer-based Autoregressive Flow (TARFLOW) to refine the latent space during training, the model captures complex temporal dependencies without requiring slow autoregressive steps during inference. TARFVAE achieves state-of-the-art accuracy and uncertainty quantification while providing significant speedups—up to 85.6% faster than existing generative models—by enabling one-step generation of the entire forecast horizon.
Introduction
Long-term time series forecasting (LTSF) is critical for industrial applications, yet existing methods often force a trade-off between speed and probabilistic depth. Deterministic models like PatchTST or iTransformer are fast and accurate for point predictions but lack uncertainty quantification. Conversely, generative models such as Diffusion models or RNN-based VAEs provide probabilistic forecasts but are computationally expensive due to iterative denoising or step-by-step autoregressive generation. Furthermore, standard VAEs often suffer from the restrictive "Gaussian assumption" in the latent space, which fails to capture the intricate patterns of real-world data. TARFVAE addresses these challenges by combining a VAE foundation with an expressive TARFLOW module for efficient, one-step probabilistic forecasting.
Methods
The TARFVAE architecture consists of three primary components designed to maximize expressiveness while maintaining inference speed.
- Conditional VAE Foundation: The model maps historical data into a latent space and decodes it into a future forecast.
- TARFLOW Module: During training, a Transformer-based Autoregressive Flow "warps" the simple Gaussian prior into a complex, informative distribution. This allows the model to learn a nuanced representation of the time series.
- One-Step Generation: A key innovation is the training-inference asymmetry. While TARFLOW enhances the posterior during training, the inverse process is bypassed during inference. The model samples from the learned prior and passes it through the decoder once, generating the entire forecast horizon in a single step.
- MLP-Based Blocks: To demonstrate that the framework's efficacy stems from the latent space logic, the encoder and decoder are built using simple Multi-Layer Perceptron (MLP) blocks rather than heavy Transformer layers.
Results
The model was evaluated on eight real-world benchmarks, including ETT (ETTh1, ETTh2, ETTm1, ETTm2), Electricity, Exchange, Weather, and Solar-Energy datasets.
Key findings include:
- Superior Accuracy: TARFVAE achieved the lowest Mean Squared Error (MSE) in 5 out of 8 datasets compared to top-tier deterministic models like PatchTST and iTransformer.
- Generative Performance: When compared to other generative models (e.g., mr-Diff, TimeDiff), TARFVAE secured the top spot in 5 out of 10 metrics.
- Massive Speedup: TARFVAE reduced inference time by 85.6% compared to the previous state-of-the-art generative model (mr-Diff) for a horizon of 720. Its computation time remains nearly flat as the forecast window grows, unlike diffusion-based methods.
- Latent Space Expressiveness: By breaking the "Gaussian bottleneck," the model captures temporal dependencies that standard VAEs miss, proving that well-structured latent representations can outperform raw architectural complexity.
Conclusion
TARFVAE demonstrates that high-performance probabilistic forecasting can be achieved without the computational burden of iterative generation. While the current implementation uses uniform MLP blocks, the framework's success suggests that the latent space representation is a critical factor in LTSF performance. Future work may explore specialized architectures for the encoder and decoder to further enhance performance, alongside considerations for data privacy and human oversight in sensitive sectors.
Summary updated