arXiv(opens in a new tab)stat.MLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05212

PAC-Bayesian Reconstruction Guarantees for Time Series Variational Autoencoders

Chloé Hashimoto-Cullen, Ghislain Agoua, Benjamin Guedj, Sylvain Le Corff

Abstract

Forecasting time series accurately is critical for applications with complex data ranging from energy systems to healthcare and finance. Among current state of the art models, generative latent variable models are increasingly implemented; yet principled generalisation guarantees for modern latent variable models remain limited. In particular, while Variational AutoEncoders are widely used for sequential data, their theoretical analysis is largely restricted to i.i.d. settings. In this work, we develop a PAC-Bayesian framework for latent variables models applied to time series. Building on reconstruction-based bounds, we extend PAC-Bayesian guarantees to Markovian latent structures, capturing temporal dependencies through a sequential generative process. These guarantees do not grow with the length of the trajectory. Our bounds depend on assumptions which are common in the literature; we provide an example framework where they would be verified to show that they are not as restrictive as they may seem.

1 Introduction

Many sectors rely on accurate time series forecasts: examples of these include the financial world, the medical domain and the energy sector. Each application has its own constraints, which has given rise to the development of multiple algorithms. Approaches range from those taken in traditional statistics, such as the autoregressive family of algorithms (Mulla et al., 2024), to deep learning such as recurrent neural networks and variants thereof (Rumelhart et al., 1986; Hochreiter & Schmidhuber, 1997; Cho et al., 2014), and, more recently, to tabular and time series foundation models such as those of Nie et al. (2023); Ansari et al. (2024); Qu et al. (2025). Since time series data can be very long and have many covariates, it is sometimes necessary to rely on feature engineering (Cerqueira et al., 2024), or project them into a latent space (Wang et al., 2022; Weisser et al., 2026), for a model to output more precise predictions. Many approaches use an encoder-decoder architecture: for problems such as anomaly detection (Yokkampon et al., 2022) and data generation (Li et al., 2023), in domains ranging from medical time series to analysis of internet traffic (Li et al., 2021). Variational Autoencoders (VAEs, Kingma & Welling, 2014; Doersch, 2016; Kingma & Welling, 2019) provide many approaches for time series forecasting (Desai et al., 2021; Cai et al., 2023).

VAEs are widely used in many time series applications; however, few theoretical guarantees exist for this family of models. The theoretical works that exist include guarantees on the convergence of VAEs during training (Surendran et al., 2025), and for robustly trained VAEs (Camuto et al., 2021; Barrett et al., 2022). As for reconstruction guarantees, existing contributions are mainly PAC-Bayesian, in the works of Chérief-Abdellatif et al. (2022); Mbacke et al. (2023b). However, neither of these papers covers time series, which is one of the contributions of this work.

Most existing works on VAEs, as well as on PAC-Bayesian bounds, focus on settings with independent and identically distributed data, often restricted to static data such as images. This work addresses time series, specifically exploring scenarios where the chosen variational distribution introduces dependencies. This calls for additional mathematical decisions: among these, practitioners must choose appropriate ways to factorise the time series distribution. Classical approaches include mean-field approximation (Blei et al., 2017) and Markov chain factorisation (Douc et al., 2014, Part II). This raises specific questions concerning the factorisation and stability of the chosen variational approximation. In particular, Markovian and backward factorisations provide a natural way to represent such dependencies while retaining a tractable recursive structure. The main contribution of this paper is to develop PAC-Bayesian guarantees for sequential VAEs, with an explicit dependence on the sample size and on the stability properties of the structured variational distribution. Under suitable mixing and regularity assumptions, the resulting bounds remain controlled as the trajectory length increases.

To complement the theoretical analysis, we discuss a lightweight discrete-latent instantiation of the considered framework. The purpose of this construction is not to propose a new forecasting architecture, but to exhibit a simple setting in which the assumptions underlying the theoretical results can be verified and the different terms of the bounds can be interpreted explicitly. In the context of time series forecasting, where datasets can admit a latent discrete representation (Fortuin et al., 2019; Cohen et al., 2023), Vector-Quantised VAEs (VQ-VAEs, Van Den Oord et al., 2017) provide a relevant modelling approach. On a finite latent state space, uniformly positive transition probabilities ensure that the strong-mixing assumptions hold, while simple distance-based parametrisations of the variational distributions makes the sensitivity of the variational kernels controllable. We introduce a structured discrete variational distribution built from the predictions of a pre-trained forecasting model and a finite reference set of trajectories. It is intended as a concrete illustration of the PAC-Bayesian guarantees to a tractable sequential latent representation, not as an additional algorithmic contribution.

This paper provides the following contributions.

  • We establish PAC-Bayesian reconstruction guarantees for sequential VAEs with structured variational distributions. Building on the conditional PAC-Bayesian approach of Mbacke et al. (2023b), we obtain a sharp concentration bound and extend it to Markovian variational distributions through an explicit stability analysis. Under suitable assumptions, the additional structural contribution remains uniformly controlled with respect to the trajectory length. The proposed analysis goes beyond uniformly bounded losses through a sub-gamma formulation, allowing the framework to cover a broader class of losses relevant to VAEs.

  • We discuss a lightweight discrete-latent instantiation of the theoretical framework for which the Markovian structure and mixing assumptions can be made explicit. This construction is used as a proof of concept to illustrate how the theoretical conditions can guide the design of structured variational representations for time series.

Outline. The rest of this paper is organised as follows. Section 2 briefly introduces existing work on VAEs, PAC-Bayesian generalisation bounds and excess risk bounds for state space models. Section 3 introduces the assumptions under which we establish PAC-Bayesian reconstruction guarantees for VAEs, and then discusses a discrete-latent instantiation illustrating the resulting theoretical framework. We draw conclusions and discuss avenues of future work in Section 4.

References (62)

  • Simpler PAC-Bayesian bounds for hostile data
  • Chronos: Learning the language of time series
  • Certifiably Robust Variational Autoencoders
  • Differentiable PAC-Bayes objectives with partially aggregated neural networks
  • On margins and derandomisation in PAC-Bayes
  • Non-vacuous generalisation bounds for shallow neural networks
  • Variational inference: A review for statisticians
  • Hybrid variational autoencoder for time series forecasting
  • Online variational filtering and parameter learning
  • Towards a theoretical understanding of the robustness of variational autoencoders
  • Inference in hidden Markov models
  • VEST: automatic feature engineering for forecasting
  • Additive smoothing error in backward variational inference for general state-space models
  • Efficient online variational estimation via Monte Carlo sampling
  • On the Properties of Neural Machine Translation: Encoder–Decoder Approaches
  • On PAC-Bayesian reconstruction guarantees for VAEs
  • Diffusion bridges vector quantized variational autoencoders
  • Variational latent discrete representation for time series modelling, August 2023 (opens arXiv in a new tab)
  • Consistent estimation of the filtering and marginal smoothing distributions in nonparametric hidden markov models
  • TimeVAE: A variational auto-encoder for multivariate time series generation (opens arXiv in a new tab)
  • Carl Doersch. Tutorial on variational autoencoders. CoRR, abs/1606.05908, 2016. URL http://arxiv.org/abs/1606.05908. (opens arXiv in a new tab)
  • Asymptotic evaluation of certain Markov process expectations for large time—III (opens the publisher in a new tab)
  • Nonlinear time series: Theory, methods and applications with R examples
  • Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Data
  • Data-dependent PAC-Bayes priors via differential privacy
  • Generalizing score-based generative models for heavy-tailed distributions (opens arXiv in a new tab)
  • Deep self-organization: Interpretable discrete representation learning on time series
  • Variational excess risk bound for general state space models
  • Identifiability and consistent estimation of nonparametric translation hidden Markov models with general state space
  • A pseudo-marginal sequential Monte Carlo online smoothing algorithm
  • PAC-bayes generalisation bounds for heavy-tailed losses through supermartingales
  • PAC-Bayes unleashed: generalisation bounds with unbounded losses
  • Generalization Bounds: Perspectives from Information Theory and PAC-Bayes
  • β-VAE: Learning Basic Visual Concepts With A Constrained Variational Framework
  • Long short-term memory
  • Composing graphical models with neural networks for structured representations and fast inference
  • Empirical PAC-bayes bounds for markov chains
  • Variational autoencoders and nonlinear ICA: A unifying framework
  • Auto-Encoding Variational Bayes
  • Kingma and Max Welling
  • Lightweight online adaption for time series foundation model forecasts
  • Dichotomize and Generalize: PAC-Bayesian Binary Activated Deep Neural Networks
  • Causal Recurrent Variational Autoencoder for Medical Time Series Generation
  • Anomaly Detection of Time Series With Smoothness-Inducing Sequential Variational Auto-Encoder
  • Variational message passing with structured inference networks
  • A note on the convergence of denoising diffusion probabilistic models
  • PAC-Bayesian Generalization Bounds for Adversarial Generative Models
  • Statistical Guarantees for Variational Autoencoders using PAC-Bayesian theory
  • Times Series Forecasting of Monthly Rainfall using Seasonal Auto Regressive Integrated Moving Average with EXogenous Variables (SARIMAX) Model
  • A time series is worth 64 words: Long-term forecasting with transformers
  • Tighter risk certificates for neural networks
  • TabICL: A tabular foundation model for in-context learning on large data
  • PAC-Bayes Analysis Beyond the Usual Bounds
  • Learning representations by back-propagating errors
  • Theoretical convergence guarantees for variational autoencoders
  • On empirical Bayes variational autoencoder: An excess risk bound
  • Decoupling Local and Global Representations of Time Series
  • Neural discrete representation learning
  • Learning Latent Seasonal-Trend Representations for Time Series Forecasting
  • Cross-domain offshore wind power forecasting: Transfer learning through meteorological clusters (opens arXiv in a new tab)
  • Robust Unsupervised Anomaly Detection With Variational Autoencoder in Multivariate Time Series Data
  • Therefore, Hoeffding's lemma yields