CLaST: Context-aware Contrastive VAE for Probabilistic Time Series Forecasting

arXiv cs.LG Papers

Summary

CLaST introduces a context-aware contrastive VAE framework for probabilistic multivariate time series forecasting, demonstrating significant performance improvements over baseline methods on multiple benchmarks.

arXiv:2608.20025v1 Announce Type: new Abstract: Probabilistic forecasting models are widely used for time series forecasting in domains such as energy systems, finance, medicine, and transportation. In recent years, deep generative models have shown strong results on probabilistic forecasting, yet many conventional approaches struggle to capture internal temporal dependencies, leading to latent representations with limited expressive power. To address this limitation, we propose \textit{CLaST}, a VAE framework for probabilistic multivariate time series forecasting. Unlike existing generative models, CLaST learns embeddings that preserve contextual similarity between observations through our contrastive loss function. Experiments across nine widely adopted benchmarks demonstrate that CLaST consistently surpasses strong baseline methods. In short-term forecasting tasks, our approach achieves improvements of up to $16.4\%$ in CRPS and $14.4\%$ in NMAE over the second-best method. Furthermore, in long-term prediction CLaST attains superior overall performance, exceeding the second-best method by up to $48.6\%$ and $25.1\%$ in CRPS and NMAE, respectively.
Original Article
View Cached Full Text

Cached at: 08/21/26, 10:31 AM

# CLaST: Context-aware Contrastive VAE for Probabilistic Time Series Forecasting
Source: [https://arxiv.org/html/2608.20025](https://arxiv.org/html/2608.20025)
1stAlexander MarusovAffiliation:Applied AI Institute Moscow, Russia4thAleksandr YugayAffiliation:Applied AI Institute Moscow, Russia2ndDmitry AnikinAffiliation:Applied AI Institute Moscow, Russia5thPetr SokerinAffiliation:Applied AI Institute Moscow, Russia7thAlexey ZaytsevAffiliation:Applied AI Institute Moscow, Russia3rdVitaliy PozdnyakovAffiliation:Applied AI Institute Moscow, Russia6thIlya KuleshovAffiliation:Applied AI Institute Moscow, Russia

###### Abstract

Probabilistic forecasting models are widely used for time series forecasting in domains such as energy systems, finance, medicine, and transportation\. In recent years, deep generative models have shown strong results on probabilistic forecasting, yet many conventional approaches struggle to capture internal temporal dependencies, leading to latent representations with limited expressive power\. To address this limitation, we proposeCLaST, a VAE framework for probabilistic multivariate time series forecasting\. Unlike existing generative models, CLaST learns embeddings that preserve contextual similarity between observations through our contrastive loss function\. Experiments across nine widely adopted benchmarks demonstrate that CLaST consistently surpasses strong baseline methods\. In short\-term forecasting tasks, our approach achieves improvements of up to16\.4%16\.4\\%in CRPS and14\.4%14\.4\\%in NMAE over the second\-best method\. Furthermore, in long\-term prediction CLaST attains superior overall performance, exceeding the second\-best method by up to48\.6%48\.6\\%and25\.1%25\.1\\%in CRPS and NMAE, respectively\.

###### Index Terms:

probabilistic time series forecasting, similarity learning, generative models, contrastive learning

## IIntroduction

Time series analysis presents a unique set of challenges: temporal dependencies, non\-stationarity, multimodality, missing data, and the need to quantify predictive uncertainty\. A central task in this domain is time\-series forecasting, in which models are required to infer future dynamics from imperfect and often volatile historical data\. In a wide range of applications, leveraging deep generative models has consistently improved predictive performance\. Recurrent \(DeepAR\[[26](https://arxiv.org/html/2608.20025#bib.bib13)\]\), attention\-based \(PatchTST\[[23](https://arxiv.org/html/2608.20025#bib.bib28)\]\), diffusion \(TSDiff\-Cond\[[19](https://arxiv.org/html/2608.20025#bib.bib23)\]\), and flow\-based \(TFM\[[38](https://arxiv.org/html/2608.20025#bib.bib24)\]\) approaches offer strong predictive performance\. VAE\-based methods likeK2K^\{2\}VAE\[[34](https://arxiv.org/html/2608.20025#bib.bib4)\]and LaST\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\]further structure latents using dynamical systems or trend/seasonal decomposition\.

However, learning informative latent representations remains a significant challenge\. While estimating mutual information \(MI\) between input observations and their representations offers a promising approach to enhance embedding informativeness, existing neural MI estimators—such as MINE\[[3](https://arxiv.org/html/2608.20025#bib.bib35)\], CLUB\[[9](https://arxiv.org/html/2608.20025#bib.bib36)\], and STUB\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\]—are computationally intensive, prone to high variance, and exhibit slow convergence in high\-dimensional settings\[[28](https://arxiv.org/html/2608.20025#bib.bib33),[12](https://arxiv.org/html/2608.20025#bib.bib34),[7](https://arxiv.org/html/2608.20025#bib.bib32)\]\. Such instability undermines the optimization process and ultimately restricts the quality of the learned representations\.

Furthermore, current approaches often fail to capture latent temporal dependencies embedded within the contextual structure of sequential data\. Herecontextual similarityreflects how closely two observations align in terms of their semantics\. For instance, July 1 and July 2 temperature readings share a summer heat contextual regime, whereas July 1 and January 1 belong to distinct seasonal regimes\. Crucially, this notion diverges from conventional statistical correlation: variables may co\-vary due to shared confounders yet remain contextually distinct\. For example, electricity demand and ice cream sales often peak simultaneously in summer, but they describe fundamentally different physical processes and thus occupy separate contextual domains\.

To address these limitations, we proposeCLaST, a variational autoencoder framework for probabilistic time series forecasting that explicitly preserves contextual structure\. To adequately capture contextual similarity, we consider a class of time series in which the covariance between observations depends solely on the temporal lagδ\\delta\(i\.e\.,cov⁡\(𝐱t,𝐱t\+δ\)=f⁡\(δ\)\\mathrm\{cov\}\(\\mathbf\{x\}\_\{t\},\\mathbf\{x\}\_\{t\+\\delta\}\)=f\(\\delta\)\), while a time\-varying mean maintains overall non\-stationarity\. Although classic statistical literature has implicitly addressed such processes, to the best of our knowledge, they lack a unified nomenclature\. We therefore introduce the termLag\-Invariant Non\-stationary Time Series \(LINTS\) process\. Unlike strict stationarity assumptions that frequently limit applicability to real\-world data, the LINTS formulation retains realistic temporal dynamics through its evolving mean while imposing only a single, interpretable constraint on the dependence structure\. Under the LINTS process our approach leverages similarity matrices—a cornerstone of contrastive self\-supervised learning\[[2](https://arxiv.org/html/2608.20025#bib.bib27)\]—to model the degree of closeness between observations in time\. Specifically, we constrain the latent similarity matrices to mirror the structural patterns inherent in the input sequences\. Extending the LaST architecture, we replace conventional mutual information \(MI\) estimators, which are prone to instability, with a contrastive\-based penalty that preserves contextual similarity between objects\. This formulation simultaneously enhances training stability and facilitates a more robust capture of underlying similarity dependencies\.

The main contributions of this work are as follows:

- •CLaST: Context\-aware Contrastive VAE for Probabilistic Time Series Forecasting\.To enhance probabilistic forecasting performance, we introduce a variational autoencoder \(VAE\) framework grounded in a novel objective function that explicitly accounts for the contextual similarity between samples\. Our method ensures that the learned embeddings preserve meaningful sequential dependencies while effectively capturing intrinsic temporal relationships\.
- •Theoretical properties of our loss function\.We derive the proposed objective function analytically under the LINTS process\. Notably, Theorem[III\.3](https://arxiv.org/html/2608.20025#S3.Thmtheorem3)establishes the theoretical optimality of our loss function within the specified class of similarity matrices\. By formalizing lag\-structured priors within the optimization objective, the loss injects structural knowledge into the learning pipeline\. Given sufficiently high\-capacity encoders, this formulation compels the model to extract representations that preserve the lag\-aware information of the input time series\.
- •Empirical validation\. Extensive experiments on both short\- and long\-term forecasting across nine established datasets from diverse domains, including Electricity, ETT, and Weather, demonstrate that CLaST generalizes effectively across heterogeneous time\-series modalities\. For the short\-term setting it consistently outperforms strong baselines, achieving up to16\.4%16\.4\\%relative improvement in CRPS and14\.4%14\.4\\%in NMAE\. Regarding the long\-term predictions our approach surpasses second\-best result up to48\.6%48\.6\\%and25\.1%25\.1\\%in CRPS and NMAE correspondingly\. We provide the code implementation of the proposed method:[https://anonymous\.4open\.science/r/CLaST\-3407/README\.md](https://anonymous.4open.science/r/CLaST-3407/README.md)\.

## IIRelated Work

##### Classic and deep learning methods\.

Classic approaches \(ARIMA\[[5](https://arxiv.org/html/2608.20025#bib.bib8)\], VAR\[[4](https://arxiv.org/html/2608.20025#bib.bib9)\], SVR\[[6](https://arxiv.org/html/2608.20025#bib.bib10)\], exponential smoothing\[[32](https://arxiv.org/html/2608.20025#bib.bib11)\]\) struggle with high\-dimensional, nonlinear dynamics\[[16](https://arxiv.org/html/2608.20025#bib.bib12)\]\. Deep learning models address this: RNNs like LSTM\[[15](https://arxiv.org/html/2608.20025#bib.bib22)\]enable probabilistic forecasting \(e\.g\., DeepAR\[[26](https://arxiv.org/html/2608.20025#bib.bib13)\]\), while Transformers like PatchTST\[[23](https://arxiv.org/html/2608.20025#bib.bib28)\]capture long\-range dependencies via patch\-based attention\. Conversely, linear models like DLinear\[[36](https://arxiv.org/html/2608.20025#bib.bib29)\]remain strong baselines by decomposing series into trend and seasonal components\.

##### Variational Autoencoders\.

VAEs\[[18](https://arxiv.org/html/2608.20025#bib.bib14)\]offer probabilistic forecasting but often yield unstructured latents\. Structured variants address this: LaST\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\]factorizes latents into trend/seasonal components with MI regularization, whileK2K^\{2\}VAE\[[34](https://arxiv.org/html/2608.20025#bib.bib4)\]combines VAEs with Koopman operators and Kalman filtering to explicitly model temporal dynamics and improve long\-horizon accuracy\.

##### Ordinary Differential Equations\.

Continuous\-time models \(Neural ODE\[[8](https://arxiv.org/html/2608.20025#bib.bib16)\], Latent ODE\[[25](https://arxiv.org/html/2608.20025#bib.bib17)\], GRU\-ODE\[[10](https://arxiv.org/html/2608.20025#bib.bib18)\]\) handle irregular sampling naturally but incur high computational costs and lack latent regularization\. Flow\-based alternatives like Trajectory Flow Matching \(TFM\)\[[38](https://arxiv.org/html/2608.20025#bib.bib24)\]efficiently learn conditional trajectory derivatives via continuous normalizing flows without stochastic simulation\. DeNOTS\[[20](https://arxiv.org/html/2608.20025#bib.bib2)\]introduces a negative feedback mechanism to stabilize vector fields, thereby enabling the modeling of long\-term dependencies\.

##### Diffusion models\.

Diffusion\[[14](https://arxiv.org/html/2608.20025#bib.bib19)\]generates probabilistic forecasts by reversing a noise process conditioned on past observations\. While effective for multi\-horizon forecasting\[[24](https://arxiv.org/html/2608.20025#bib.bib20)\]and imputation\[[29](https://arxiv.org/html/2608.20025#bib.bib21)\], they are computationally intensive and lack latent interpretability\. TSDiff\-Cond\[[19](https://arxiv.org/html/2608.20025#bib.bib23)\]improves scalability by integrating S4 layers with convolutional channel mixing in an SSSD\-based architecture\.

Following the literature review, we chose LaST\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\],K2K^\{2\}VAE\[[34](https://arxiv.org/html/2608.20025#bib.bib4)\], DeNOTS\[[20](https://arxiv.org/html/2608.20025#bib.bib2)\], DeepAR\[[26](https://arxiv.org/html/2608.20025#bib.bib13)\], TFM\[[38](https://arxiv.org/html/2608.20025#bib.bib24)\], TSDiff\[[19](https://arxiv.org/html/2608.20025#bib.bib23)\], and PatchTST\[[23](https://arxiv.org/html/2608.20025#bib.bib28)\]as baseline models due to their strong reported performance across their respective categories\.

## IIIMethod

To present our proposed method, we first start with the problem statement\. Then we outline the overall pipeline of the CLaST approach, followed by a detailed description of its key components\. The notation appears throughout the text as needed for clarity\. For a complete list of notation used throughout the paper, we refer the reader to the online documentation available on our[GitHub repository](https://anonymous.4open.science/r/CLaST-3407/docs/notations.png)\.

### III\-AProblem Statement\.

We study probabilistic forecasting for multivariate time series\. Let𝐱t∈ℝF\\mathbf\{x\}\_\{t\}\\in\\mathbb\{R\}^\{F\}denote the observations ofFFvariables at timett\. Given a historical window𝐱t−N\+1:t\\mathbf\{x\}\_\{t\-N\+1:t\}of lengthNN, the task is to predict the future sequence𝐱t\+1:t\+L\\mathbf\{x\}\_\{t\+1:t\+L\}over a horizonLL\. In the probabilistic setting, the model outputs a predictive distributionp\(𝐱t\+1:t\+L∣𝐱t−N\+1:t\)p\(\\mathbf\{x\}\_\{t\+1:t\+L\}\\mid\\mathbf\{x\}\_\{t\-N\+1:t\}\), which captures both future values and their uncertainty\.

### III\-BCLaST

We now introduce*CLaST \(Contrastive LaST\)*, a generative–contrastive model for probabilistic time series forecasting\. CLaST builds upon the LaST architecture\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\]while fundamentally revising its latent regularization strategy\.

To address data non\-stationarity, LaST employs dedicated seasonal and trend encoders and decoders, providing informative representations for each component\. Thus, LaST separately produces latent representations for trend𝐙t\\mathbf\{Z\}^\{t\}and seasonality𝐙s\\mathbf\{Z\}^\{s\}, along with a predictor module that uses the Discrete Fourier Transform \(DFT\) for seasonal forecasting\.

A central component of LaST is its loss function\. The evidence lower bound \(ELBO\) termℒELBO\\mathcal\{L\}\_\{\\mathrm\{ELBO\}\}ensures that the learned trend and seasonal embeddings are sufficiently informative to both reconstruct the input time series and enable accurate predictions\. The authors employ a slightly modified MINE\-based mutual information estimator to maximize the amount of information preserved from the original input𝐗\\mathbf\{X\}in the trend and seasonal representations,𝐙t\\mathbf\{Z\}^\{t\}and𝐙s\\mathbf\{Z\}^\{s\}\. The corresponding objectives are denoted asIMINE​\(𝐗,𝐙t\)I\_\{\\text\{MINE\}\}\(\\mathbf\{X\},\\mathbf\{Z\}^\{t\}\)andIMINE​\(𝐗,𝐙s\)I\_\{\\text\{MINE\}\}\(\\mathbf\{X\},\\mathbf\{Z\}^\{s\}\), respectively\. Meanwhile, the termISTUB​\(𝐙s,𝐙t\)I\_\{\\text\{STUB\}\}\(\\mathbf\{Z\}^\{s\},\\mathbf\{Z\}^\{t\}\)promotes disentanglement between the trend and seasonal representations, encouraging them to capture complementary, non\-overlapping information\. The final loss function for LaST is defined in eq\.[1](https://arxiv.org/html/2608.20025#S3.E1)\.

ℒLaST=ℒELBO\+IMINE​\(𝐗,𝐙s\)\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{LaST\}\}=\{\}\\mathcal\{L\}\_\{\\mathrm\{ELBO\}\}\+I\_\{\\mathrm\{MINE\}\}\(\\mathbf\{X\},\\mathbf\{Z\}^\{s\}\)\+IMINE​\(𝐗,𝐙t\)\\displaystyle\+I\_\{\\mathrm\{MINE\}\}\(\\mathbf\{X\},\\mathbf\{Z\}^\{t\}\)\(1\)−ISTUB​\(𝐙s,𝐙t\)\.\\displaystyle\-I\_\{\\mathrm\{STUB\}\}\(\\mathbf\{Z\}^\{s\},\\mathbf\{Z\}^\{t\}\)\.
However, as discussed earlier, MI estimations could be unstable in practice\. We replace the MI\-based objective with a contextual similarity alignment loss that encourages latent representations to preserve the contextual structure of the input time series\. The central idea is to align theestimated similarity matrix𝐆^​\(𝐙\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)with the data\-induced similarity matrix𝐆=𝐆⁡\(𝐗\)\\mathbf\{G\}=\\mathbf\{G\}\(\\mathbf\{X\}\), which is calledground truth similarity matrix\. Here,𝐆^​\(𝐙\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)is computed from the trend and seasonal representations𝐙t\\mathbf\{Z\}^\{t\}and𝐙s\\mathbf\{Z\}^\{s\}, while𝐆\\mathbf\{G\}serves as the similarity matrix\.

Although the similarity matrices estimated from trend embeddings,𝐆^​\(𝐙t\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}^\{t\}\), and seasonal embeddings,𝐆^​\(𝐙s\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}^\{s\}\), both approximate the same ground\-truth matrix𝐆\\mathbf\{G\}, the corresponding representations remain separable in the embedding space, as illustrated in our experiments111[https://anonymous\.4open\.science/r/CLaST\-3407/figs/trend\_seasonal\.png](https://anonymous.4open.science/r/CLaST-3407/figs/trend_seasonal.png)\. This separation arises because the LaST framework explicitly models trend and seasonal components as distinct components\.

All other parts include the LaST’s core architecture, in particular, separate trend and seasonal latents, and the DFT\-based predictor would remain the same\. The full CLaST objective with three terms is then given by

ℒCLaST=ℒELBO\+∥𝐆−𝐆^\(𝐙t\)∥ℱ2\+∥𝐆−𝐆^\(𝐙s\)∥ℱ2\.\\mathcal\{L\}\_\{\\text\{CLaST\}\}=\\mathcal\{L\}\_\{\\text\{ELBO\}\}\+\\bigl\\lVert\\mathbf\{G\}\-\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}^\{t\}\)\\bigr\\lVert^\{2\}\_\{\\mathcal\{F\}\}\+\\bigl\\lVert\\mathbf\{G\}\-\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}^\{s\}\)\\bigr\\lVert^\{2\}\_\{\\mathcal\{F\}\}\.\(2\)Here,

∥𝐆−𝐆^\(𝐙\)∥ℱ2=∑i,j\(gi​j−g^i​j\(f𝜽\)\)2\.\\bigl\\lVert\\mathbf\{G\}\-\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)\\bigr\\rVert^\{2\}\_\{\\mathcal\{F\}\}=\\sum\_\{i,j\}\\bigl\(g\_\{ij\}\-\\widehat\{g\}\_\{ij\}\(f\_\{\\boldsymbol\{\\theta\}\}\)\\bigr\)^\{2\}\.\(3\)Detailed definitions and discussions of these estimated and ground truth similarity matrices are postponed to Section[III\-D](https://arxiv.org/html/2608.20025#S3.SS4)\.

### III\-CMethod Overview

In Section[III\-D](https://arxiv.org/html/2608.20025#S3.SS4), we formally define the ground\-truth𝐆\\mathbf\{G\}and estimated similarity matrices𝐆^\\widehat\{\\mathbf\{G\}\}that underpin our loss function\.

Our approach for constructing the ground truth similarity matrix𝐆\\mathbf\{G\}from time series is described in Section[III\-E](https://arxiv.org/html/2608.20025#S3.SS5)\. We start from a correlation matrix𝐑\\mathbf\{R\}, which captures the statistical dependencies in the data\. Since correlations do not directly reflect similarity relationships, we introduce a mapping that transforms the correlation space into a similarity space, yielding the matrix𝐆\\mathbf\{G\}with elementsgi​jg\_\{ij\}presented in eq\. \([6](https://arxiv.org/html/2608.20025#S3.E6)\)\.

In Section[III\-F](https://arxiv.org/html/2608.20025#S3.SS6), we derive a closed\-form expression for the estimated similarity matrix𝐆^\\widehat\{\\mathbf\{G\}\}by formulating and solving a corresponding optimization problem\. In[TheoremIII\.3](https://arxiv.org/html/2608.20025#S3.Thmtheorem3)we define the elementsg^i​j​\(f𝜽\)\\widehat\{g\}\_\{ij\}\(f\_\{\\boldsymbol\{\\theta\}\}\)of𝐆^\\widehat\{\\mathbf\{G\}\}\. We prove that this closed\-form solution is the unique global minimizer\.

Substituting the ground truth matrix𝐆\\mathbf\{G\}\(eq\. \([6](https://arxiv.org/html/2608.20025#S3.E6)\)\) and the estimated matrix𝐆^​\(𝐙\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)\(Thm\.[III\.3](https://arxiv.org/html/2608.20025#S3.Thmtheorem3)\) into the equation \([3](https://arxiv.org/html/2608.20025#S3.E3)\) yields the final loss function \([2](https://arxiv.org/html/2608.20025#S3.E2)\)\.

### III\-DTheoretical Background

To explain our method, we consider a multivariate time series consisting ofNNobservations\{𝐱i\}i=1N\\\{\\mathbf\{x\}\_\{i\}\\\}\_\{i=1\}^\{N\}, where each𝐱i∈ℝF\\mathbf\{x\}\_\{i\}\\in\\mathbb\{R\}^\{F\}represents theFF\-dimensional observation at time stepii\. The time series can thus be represented as a matrix𝐗∈ℝN×F\\mathbf\{X\}\\in\\mathbb\{R\}^\{N\\times F\}\.

To utilize a loss function based on pairwise comparisons, we introduce two complementary matrices: a*ground truth similarity*matrix and an*estimated similarity matrix*that are core concepts in contrastive self\-supervised learning\[[2](https://arxiv.org/html/2608.20025#bib.bib27)\]\.

The*ground truth similarity matrix*𝐆=\{gi​j\}i,j=1N∈ℝN×N\\mathbf\{G\}=\\\{g\_\{ij\}\\\}\_\{i,j=1\}^\{N\}\\in\\mathbb\{R\}^\{N\\times N\}encodes prior knowledge about the contextual structure of the time series\. Each entrygi​jg\_\{ij\}represents the desired level of similarity closeness between observations collected at time momentsi∈\[1;N\]i\\in\[1;N\]andj∈\[1;N\]j\\in\[1;N\]\. This matrix, therefore, defines the target relational structure that the learned representations are expected to preserve\.

The*estimated similarity matrix*𝐆^​\(𝐙\)=\{g^i​j\}i,j=1N∈ℝN×N\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)=\\\{\\hat\{g\}\_\{ij\}\\\}\_\{i,j=1\}^\{N\}\\in\\mathbb\{R\}^\{N\\times N\}, on the other hand, captures the similarities inferred by the model itself\. The matrix𝐆^​\(𝐙\)\\widehat\{\\mathbf\{G\}\}\(\\mathbf\{Z\}\)is computed from the embedding matrix𝐙=\{𝐳i\}i=1N∈ℝN×h\\mathbf\{Z\}=\\\{\\mathbf\{z\}\_\{i\}\\\}\_\{i=1\}^\{N\}\\in\\mathbb\{R\}^\{N\\times h\}, where each representation𝐳i=fθ​\(𝐱i\)∈ℝh\\mathbf\{z\}\_\{i\}=f\_\{\\theta\}\(\\mathbf\{x\}\_\{i\}\)\\in\\mathbb\{R\}^\{h\}is obtained by applying an encoder functionfθf\_\{\\theta\}to the input signal𝐱i\\mathbf\{x\}\_\{i\}\. As a result,𝐆^\\widehat\{\\mathbf\{G\}\}reflects how close the samples are in the learned representation space\.

By comparing𝐆^\\widehat\{\\mathbf\{G\}\}with the ground truth matrix𝐆\\mathbf\{G\}, we obtain a natural objective for training the encoder\. Minimizing the discrepancy between these two matrices encourages the learned embeddings to preserve the contextual relationships specified by the prior knowledge encoded in𝐆\\mathbf\{G\}:

∑i,j\(gi​j−g^i​j​\(f𝜽\)\)2→min𝜽\.\\sum\_\{i,j\}\(g\_\{ij\}\-\\widehat\{g\}\_\{ij\}\(f\_\{\\boldsymbol\{\\theta\}\}\)\)^\{2\}\\rightarrow\\min\_\{\\boldsymbol\{\\theta\}\}\.\(4\)We use objective function[4](https://arxiv.org/html/2608.20025#S3.E4)as our penalty in eq\. \([3](https://arxiv.org/html/2608.20025#S3.E3)\) for trend and seasonal components\. Defining this penalty requires specifying the ground truth matrix𝐆\\mathbf\{G\}\(Section[III\-E](https://arxiv.org/html/2608.20025#S3.SS5)\) and the estimated matrix𝐆^\\widehat\{\\mathbf\{G\}\}\(Section[III\-F](https://arxiv.org/html/2608.20025#S3.SS6)\)\.

### III\-EGround Truth Similarity Matrix𝐆\\mathbf\{G\}

#### III\-E1Correlation As A Contextual Proxy

To define the matrix𝐆\\mathbf\{G\}, we will rely on statistical correlations between observations\. In particular, we consider a multivariate time series\{𝐱i\}i=1N\\\{\\mathbf\{x\}\_\{i\}\\\}\_\{i=1\}^\{N\}modeled as aLag\-Invariant Non\-stationary Time Series \(LINTS\)\. In this framework, the inter\-observation covariance depends exclusively on the temporal lag:cov⁡\(𝐱i,𝐱i\+δ\)=f⁡\(δ\)\\mathrm\{cov\}\(\\mathbf\{x\}\_\{i\},\\mathbf\{x\}\_\{i\+\\delta\}\)=f\(\\delta\)\. While the dependence kernel is shift\-invariant, the process itself remains non\-stationary due to its time\-varying mean\.

The sample correlation matrix𝐑\\mathbf\{R\}is constructed as follows\.

1. 1\.Centering and normalizing\.For each time pointi∈\[1;N\]i\\in\[1;N\], subtract a location estimate𝐱¯i=1F​∑j=1Fxi\(j\)\\overline\{\\mathbf\{x\}\}\_\{i\}=\\frac\{1\}\{F\}\\sum\_\{j=1\}^\{F\}x\_\{i\}^\{\(j\)\}to obtain the centered vector, then normalize it to unit Euclidean length: 𝐱~i=𝐱i−𝐱¯i‖𝐱i−𝐱¯i‖2\.\\tilde\{\\mathbf\{x\}\}\_\{i\}=\\frac\{\\mathbf\{x\}\_\{i\}\-\\overline\{\\mathbf\{x\}\}\_\{i\}\}\{\\\|\\mathbf\{x\}\_\{i\}\-\\overline\{\\mathbf\{x\}\}\_\{i\}\\\|\_\{2\}\}\.This yields observations𝐱~i\\tilde\{\\mathbf\{x\}\}\_\{i\}that lie on the unit sphere inℝF\\mathbb\{R\}^\{F\}\.
2. 2\.Computing pairwise similarities\.The correlation matrix𝐑~\\widetilde\{\\mathbf\{R\}\}is obtained as the Gram matrix of𝐗~=\[𝐱~1⊤,…,𝐱~N⊤\]\\widetilde\{\\mathbf\{X\}\}=\[\\tilde\{\\mathbf\{x\}\}^\{\\top\}\_\{1\},\\ldots,\\tilde\{\\mathbf\{x\}\}^\{\\top\}\_\{N\}\]: 𝐑~=𝐗~​𝐗~⊤∈ℝN×N\.\\widetilde\{\\mathbf\{R\}\}=\\widetilde\{\\mathbf\{X\}\}\\widetilde\{\\mathbf\{X\}\}^\{\\top\}\\in\\mathbb\{R\}^\{N\\times N\}\.
3. 3\.Symmetric Toeplitz structure\.For each lagδ∈\{0,…,N−1\}\\delta\\in\\\{0,\\ldots,N\-1\\\}we compute the median empirical correlation rδ=median⁡\{r~i​j:\|i−j\|=δ\}\.r\_\{\\delta\}=\\operatorname\{median\}\\left\\\{\\widetilde\{r\}\_\{ij\}:\|i\-j\|=\\delta\\right\\\}\.Replacing each entryr~i​j\\widetilde\{r\}\_\{ij\}byr\|i−j\|r\_\{\|i\-j\|\}yields a symmetric Toeplitz matrix𝐑\\mathbf\{R\}whose\(i,j\)\(i,j\)\-entry depends only on the time lag\|i−j\|\|i\-j\|: ri​j=r\|i−j\|,i,j=1,…,N\.r\_\{ij\}=r\_\{\|i\-j\|\},\\qquad i,j=1,\\ldots,N\.

Thus the entire correlation structure is summarized by theNNnumbersr0,r1,…,rN−1r\_\{0\},r\_\{1\},\\dots,r\_\{N\-1\}, withr0=1r\_\{0\}=1since𝐑i​i=1\\mathbf\{R\}\_\{ii\}=1\. The Toeplitz property reflects that covariance depends only on lag, while the symmetry𝐑~i​j=𝐑~j​i\\widetilde\{\\mathbf\{R\}\}\_\{ij\}=\\widetilde\{\\mathbf\{R\}\}\_\{ji\}follows from the definition of correlation\.

We now define a matrix𝐆\\mathbf\{G\}derived from the correlation matrix𝐑\\mathbf\{R\}\. Each entrygi​j∈\[0,1\]g\_\{ij\}\\in\[0,1\]quantifies the degree to which observations collected at time pointsiiandjjplay similar roles within the underlying dynamical process\. Because the correlationsri​jr\_\{ij\}lie in\[−1;1\]\[\-1;1\], we need a mappingm:\[−1;1\]→\[0;1\]m:\[\-1;1\]\\to\[0;1\]that converts correlation values into probabilities of similarity\. Following\[[2](https://arxiv.org/html/2608.20025#bib.bib27)\], we set the main diagonal of𝐆\\mathbf\{G\}to zero, as these entries correspond to the trivial self\-similarity of each sample\.

We seek a principled mapping from correlations to similarity scores\.[TheoremIII\.1](https://arxiv.org/html/2608.20025#S3.Thmtheorem1)is derived using classical Bayesian decision theory under Gaussian class\-conditional assumptions\. We show that for LINTS\-process, the Bayes\-optimal posterior mapping from the observed lag\-τ\\taucorrelation to contextual similarity is logistic \(sigmoid\)\. For simplicity, Theorem[III\.1](https://arxiv.org/html/2608.20025#S3.Thmtheorem1)is stated for the univariate case\.

###### Theorem III\.1\(Optimal mapping from feature to similarity space\)\.

Let\{xi\}i=1N\\\{x\_\{i\}\\\}\_\{i=1\}^\{N\}be a LINTS\-process: covariance depends only on the fixed lagδ≥0\\delta\\geq 0, socov⁡\(xi,xi\+δ\)=f⁡\(δ\)\\mathrm\{cov\}\(x\_\{i\},x\_\{i\+\\delta\}\)=f\(\\delta\)\. LetYδ∈\{0,1\}Y\_\{\\delta\}\\in\\\{0,1\\\}be a similarity indicator, and letρy∈\(−1,1\)\\rho\_\{y\}\\in\(\-1,1\)denote the population lag\-δ\\deltacorrelation associated withYδ=yY\_\{\\delta\}=y\.

Assume:

\(A1\)there exists continuously differentiable functiong∈C1​\(\(,,,\)\)​such that​zδ:=g⁡\(rδ\)​satisfies\\displaystyle g\\in C^\{1\}\(\(\-1;1\)\)\\text\{ such that \}z\_\{\\delta\}:=g\(r\_\{\\delta\}\)\\text\{ satisfies\}p⁡\(zδ∣Yδ=y\)=12​π​σ2​exp⁡\(−\(zδ−μy\)22​σ2\),\\displaystyle p\(z\_\{\\delta\}\\mid Y\_\{\\delta\}=y\)=\\frac\{1\}\{\\sqrt\{2\\pi\\sigma^\{2\}\}\}\\exp\\\!\\left\(\-\\frac\{\(z\_\{\\delta\}\-\\mu\_\{y\}\)^\{2\}\}\{2\\sigma^\{2\}\}\\right\),μy:=g⁡\(ρy\),σ2​independent of​y;\\displaystyle\\mu\_\{y\}:=g\(\\rho\_\{y\}\),\\quad\\sigma^\{2\}\\text\{ independent of \}y;\(A2\)ρ0≠ρ1\.\\displaystyle\\rho\_\{0\}\\neq\\rho\_\{1\}\.
Then, in the small\-correlation regime\|rδ\|≪1\|r\_\{\\delta\}\|\\ll 1,

P⁡\(Yδ=1∣rδ\)=σ⁡\(α​rδ\+β\),P\(Y\_\{\\delta\}=1\\mid r\_\{\\delta\}\)=\\sigma\(\\alpha r\_\{\\delta\}\+\\beta\),\(5\)for someα,β∈ℝ\\alpha,\\beta\\in\\mathbb\{R\}, whereσ⁡\(x\)=\(1\+e−x\)−1\\sigma\(x\)=\(1\+e^\{\-x\}\)^\{\-1\}\.

The proof of the[TheoremIII\.1](https://arxiv.org/html/2608.20025#S3.Thmtheorem1)can be found in the Appendix[\-A](https://arxiv.org/html/2608.20025#A0.SS1)\.

![Refer to caption](https://arxiv.org/html/2608.20025v1/sigmoid_v3.png)Fig\. 1:Connection between the original feature space and the contextual similarity space\.In the feature space,xtx\_\{t\}is the observation at the current time step, andxt\+1x\_\{t\+1\}andxt\+2x\_\{t\+2\}are the inputs at the subsequent time steps\. In our formulation, the correlation coefficientrrbetween normalized observations corresponds to the cosine of the angle between them \(r=cos⁡θr=\\cos\\theta\)\. Correlations are mapped to contextual similarity scores via a sigmoid with a lower boundsmins\_\{\\min\}, yielding a smooth notion of contextual proximity\.
#### III\-E2Target contextual Similarity

The intuition underlying the connection between the data space and the similarity space, formalized in[TheoremIII\.1](https://arxiv.org/html/2608.20025#S3.Thmtheorem1), is illustrated in Figure[1](https://arxiv.org/html/2608.20025#S3.F1)\. Accordingly, the entries of the true dependency matrix𝐆\\mathbf\{G\}are defined using a sigmoid function as follows:

gi​j=\{smin\+\(1−smin\)​σ​\(α​r\|i−j\|\),i≠j,0,i=j,g\_\{ij\}=\\begin\{cases\}s\_\{\\min\}\+\(1\-s\_\{\\min\}\)\\,\\sigma\(\\alpha r\_\{\|i\-j\|\}\),&i\\neq j,\\\\\[4\.0pt\] 0,&i=j,\\end\{cases\}\(6\)wheresmin∈\(0,0\.5\)s\_\{\\min\}\\in\(0,0\.5\)specifies a lower bound on contextual affinity andα∈\[1,10\]\\alpha\\in\[1,10\]controls the sensitivity of dependency to variations in correlation\.

We introducesmins\_\{\\min\}to reflect the assumption that even maximally negatively correlated vectors still share structural information and should not have zero contextual similarity\. Our ablation studies[A\-A](https://arxiv.org/html/2608.20025#A1.SS1)demonstrate that the sigmoid function provides the optimal mapping from correlation space to similarity space, a result validated both theoretically and empirically\.

### III\-FEstimated Similarity Matrix𝐆^\\widehat\{\\mathbf\{G\}\}

Now we need to derive an expression of the estimated similarity matrix𝐆^\\widehat\{\\mathbf\{G\}\}\. To do this, we consider the optimization problem of learning an estimated similarity matrix𝐆^∈ℝN×N\\widehat\{\\mathbf\{G\}\}\\in\\mathbb\{R\}^\{N\\times N\}from a symmetric distance matrix𝐃=\{di​j\}i,j=1N∈ℝN×N\\mathbf\{D\}=\\\{d\_\{ij\}\\\}\_\{i,j=1\}^\{N\}\\in\\mathbb\{R\}^\{N\\times N\}, wheredi​i=0d\_\{ii\}=0\. Heredi​j=d⁡\(zi,zj\)d\_\{ij\}=d\(z\_\{i\},z\_\{j\}\)denotes the distance \(e\.g\. euclidean\) between representationsziz\_\{i\}andzjz\_\{j\}at time momentsiiandjj\. The matrix𝐆^\\widehat\{\\mathbf\{G\}\}is assumed to be*Toeplitz*, i\.e\., its entries depend only on the temporal lag\|i−j\|\|i\-j\|\.

Following\[[2](https://arxiv.org/html/2608.20025#bib.bib27)\], we cast the problem of estimating the similarity matrix𝐆^\\widehat\{\\mathbf\{G\}\}as a Laplacian estimation task in graph signal processing\[[11](https://arxiv.org/html/2608.20025#bib.bib30),[17](https://arxiv.org/html/2608.20025#bib.bib31)\]\. We therefore obtain𝐆^\\widehat\{\\mathbf\{G\}\}by solving an optimization problem specifically tailored to time\-series data, restricting the search space to𝒢\\mathcal\{G\}, the set of symmetric, non\-negative Toeplitz matrices with a zero main diagonal\.

Tr⁡\(𝐃​𝐆^\)\\displaystyle\\mathrm\{Tr\}\(\\mathbf\{D\}\\widehat\{\\mathbf\{G\}\}\)\+ℛlog​\(𝐆^\)→min𝐆^∈𝒢,\\displaystyle\+\\mathcal\{R\}\_\{\\log\}\(\\widehat\{\\mathbf\{G\}\}\)\\rightarrow\\min\_\{\\widehat\{\\mathbf\{G\}\}\\in\\mathcal\{G\}\},\(7\)whereℛlog​\(𝐆^\)=τ​∑i≠jg^i​j​\(ln⁡\(g^i​j\)−1\)\\mathcal\{R\}\_\{\\log\}\(\\widehat\{\\mathbf\{G\}\}\)=\\tau\\sum\_\{i\\neq j\}\\hat\{g\}\_\{ij\}\\bigl\(\\ln\(\\hat\{g\}\_\{ij\}\)\-1\\bigr\)is a logarithmic regularizer\.

###### Theorem III\.3\.

\(Necessary and sufficient conditions\)\. Let𝐃\\mathbf\{D\}be the matrix of pairwise distances, and the regularizerℛlog​\(𝐆^\)=τ​∑i≠jg^i​j​\(ln⁡\(g^i​j\)−1\)\\mathcal\{R\_\{\\log\}\}\(\\widehat\{\\mathbf\{G\}\}\)=\\tau\\sum\_\{i\\neq j\}\\hat\{g\}\_\{ij\}\(\\ln\(\\hat\{g\}\_\{ij\}\)\-1\)\. The matrix𝐆^\\widehat\{\\mathbf\{G\}\}with elements

g^i​j=exp\(−ϕ\|i−j\|τ\)𝟙\{i≠j\},\\displaystyle\\widehat\{g\}\_\{ij\}=\\exp\\\!\\left\(\-\\dfrac\{\\phi\_\{\|i\-j\|\}\}\{\\tau\}\\right\)\\mathbbm\{1\}\_\{\\\{i\\neq j\\\}\},withϕk=1N−k​∑\|i−j\|=kdi​j\\phi\_\{k\}=\\frac\{1\}\{N\-k\}\\sum\_\{\|i\-j\|=k\}d\_\{ij\}is the unique global minimizer for the optimization problem \([7](https://arxiv.org/html/2608.20025#S3.E7)\)\.

The detailed derivation and proof of[TheoremIII\.3](https://arxiv.org/html/2608.20025#S3.Thmtheorem3)are given in Appendix[\-B](https://arxiv.org/html/2608.20025#A0.SS2)\.

## IVExperimental Results

### IV\-AExperiments Setup

##### Datasets

##### Metrics\.

We evaluate the forecasts using two commonly used metrics: the Continuous Ranked Probability Score \(CRPS\) and the Normalized Mean Absolute Error \(NMAE\) that correspond to the quality of uncertainty estimation and forecasting correspondingly\. The detailed descriptions of the metrics are in the Appendix[\-D](https://arxiv.org/html/2608.20025#A0.SS4)\.

TABLE I:Comparison of short\-term probabilistic time series forecasting performance\(N=96N=96,L=24L=24\) across various real\-world datasets\. Lower CRPS and NMAE scores indicate superior forecasting accuracy\. Reported results show themean values and standard errors, computed fromthree independent runsinvolving model retraining and evaluation\.Boldfacehighlights the best\-performing method, whileunderliningdenotes the second\-best result\.TABLE II:Comparison of long\-term probabilistic time series forecasting performance\(N=96,L=720N=96,L=720\) across various real\-world datasets\. Lower CRPS and NMAE scores indicate superior forecasting accuracy\. Reported results show themean values and standard errors, computed fromthree independent runsinvolving model retraining and evaluation\.Boldfacehighlights the best\-performing method, whileunderliningdenotes the second\-best result\.
##### Baselines\.

We compare our approach against several generative models, including modernK2K^\{2\}VAE\[[34](https://arxiv.org/html/2608.20025#bib.bib4)\], LaST\[[30](https://arxiv.org/html/2608.20025#bib.bib15)\], TSDiff\[[19](https://arxiv.org/html/2608.20025#bib.bib23)\], and TFM\[[38](https://arxiv.org/html/2608.20025#bib.bib24)\]\. Additionally, we include PatchTST\[[22](https://arxiv.org/html/2608.20025#bib.bib25)\], a point\-wise forecasting model, for reference\.

##### Backbone\.

To choose an appropriate backbone encoder, we considered three types of backbone architectures: DLinear, MLP and PatchTST\. The hyperparameters for the selected backbones are detailed in Appendix[\-E](https://arxiv.org/html/2608.20025#A0.SS5)\. For both short\- and long\-term forecasting tasks, we consistently employ PatchTST as the backbone encoder\.

### IV\-BMain Results

##### Short\-term forecasting \(N=96,L=24N=96,L=24\)

For short\-term prediction, all experiments are performed with a forecasting horizon ofL=24L=24and an context length ofN=96N=96\.

As shown in Table[I](https://arxiv.org/html/2608.20025#S4.T1), CLaST delivers the best performance across several datasets, highlighting its effectiveness for probabilistic forecasting\. It consistently outperforms the second\-best method on datasets ETTh1, ETTh2, ETTm1, ETTm2, and Weather, achieving relative improvements of0\.9​–​16\.4%0\.9–16\.4\\%in CRPS and4\.4​–​14\.4%4\.4–14\.4\\%in NMAE\. Our comparative analysis reveals that when PatchTST is trained within the CLaST generative framework, it demonstrably surpasses its pointwise\-trained counterpart across every benchmark dataset, as measured by the NMAE\. The observed performance gains range from a minimum improvement of5\.86%5\.86\\%on the Traffic dataset to a substantial maximum of26\.97%26\.97\\%on ETTh2, underscoring the significant advantage conferred by our CLaST generative learning paradigm\.

##### Long\-term forecasting \(N=96,L=720N=96,L=720\)

As presented in Table[II](https://arxiv.org/html/2608.20025#S4.T2), CLaST achieves superior CRPS and NMAE performance on the demanding ETTh2 and ETTm2 datasets, yielding reductions of up to48\.6%48\.6\\%in CRPS on ETTh2 and25\.1%25\.1\\%in NMAE on ETTm2\. Integrating PatchTST into the CLaST framework yields substantial NMAE improvements across most benchmarks, with relative gains ranging from6\.41%6\.41\\%on Electricity to61\.84%61\.84\\%on ETTh2\.

The exceptionally high dimensionality of the Traffic \(862 channels\) and Electricity \(321 channels\) datasets renders long\-term forecasting particularly challenging\. Consequently, we extended our evaluation to two additional energy\-domain datasets, Solar and ERCOT\[[27](https://arxiv.org/html/2608.20025#bib.bib40)\]\. Due to the substantial computational resources already expended on the main Table[II](https://arxiv.org/html/2608.20025#S4.T2)for long\-term experiments running architectures like diffusion\-based \(TSDiff\), attention\-based \(PatchTST\), flow\-based \(TFM\), and ODE\-based \(e\.g\. DeNOTS\) was not feasible within our remaining budget\. We therefore restrict this comparison to the two most relevant VAE\-based baselines:K2​V​A​EK^\{2\}VAE, the strongest empirical competitor on the main benchmarks, and LaST, the foundational architecture upon which CLaST is built\. As demonstrated in Table[III](https://arxiv.org/html/2608.20025#S4.T3), CLaST consistently attains the best long\-term forecasting results, outperforming the second\-best model by margins of up to12\.9%12\.9\\%in CRPS and11%11\\%in NMAE\. As shown in Figure[3](https://arxiv.org/html/2608.20025#A1.F3)our CLasT effectively models both trend and seasonal components\.

TABLE III:Comparison of long\-term probabilistic time series forecasting performance on Solar and ERCOT datasets\(N=96N=96,L=720L=720\)\. Lower CRPS and NMAE scores indicate superior forecasting accuracy\. Reported results show themean values and standard errors, computed fromthree independent runsinvolving model retraining and evaluation\.Boldfacehighlights the best\-performing method, whileunderliningdenotes the second\-best result\.DatasetMetricCLaST \(ours\)K2VAELaSTERCOTCRPS0\.080±0\.001\\mathbf\{0\.080\\pm 0\.001\}0\.084±0\.0010\.084\\pm 0\.0010\.095±0\.0040\.095\\pm 0\.004NMAE0\.090±0\.002\\mathbf\{0\.090\\pm 0\.002\}0\.103±0\.0020\.103\\pm 0\.0020\.106±0\.0050\.106\\pm 0\.005SolarCRPS0\.529±0\.010\\mathbf\{0\.529\\pm 0\.010\}0\.696±0\.0200\.696\\pm 0\.0200\.607±0\.0150\.607\\pm 0\.015NMAE0\.573±0\.016\\mathbf\{0\.573\\pm 0\.016\}0\.637±0\.0060\.637\\pm 0\.0060\.644±0\.0110\.644\\pm 0\.011
##### Ablation studies

To verify that the observed performance gains stem from our regularization strategy rather than the choice of encoder, we conduct additional ablation experiments on three datasets \(ETTh1, ETTh2, Weather\) using different backbone architectures\. With PatchTST as the backbone, CLaST improves both CRPS and NMAE by up to 46\.8% and 45\.6%, respectively444[https://anonymous\.4open\.science/r/CLaST\-3407/tables/last\_clast\_patchtst\.md](https://anonymous.4open.science/r/CLaST-3407/tables/last_clast_patchtst.md)\. When using the original FeedNet backbone from LaST, the gains reach 46\.17% \(CRPS\) and 52\.37% \(NMAE\)555[https://anonymous\.4open\.science/r/CLaST\-3407/tables/last\_clast\_feednet\.md](https://anonymous.4open.science/r/CLaST-3407/tables/last_clast_feednet.md)\.

We conducted a detailed ablation study to understand the model analysis\. In particular to examine the effect of hyperparameter choices, we present a sensitivity analysis in Appendix[A\-B](https://arxiv.org/html/2608.20025#A1.SS2)\. Appendix[A\-B1](https://arxiv.org/html/2608.20025#A1.SS2.SSS1)studies the effect of the latent space dimensionality while Appendix[A\-B2](https://arxiv.org/html/2608.20025#A1.SS2.SSS2)analyzes the impact of the context length\. Additionally, we study how well temporal structure is preserved in the latent space\. Our results in Appendix[A\-C](https://arxiv.org/html/2608.20025#A1.SS3)indicate that the learned embeddings retain temporal dependencies\. The implementation details are provided in the Appendix[A](https://arxiv.org/html/2608.20025#A1)\.

## VDiscussion

How the proposed loss enhances forecasting\.Accurate probabilistic forecasting requires capturing diverse temporal dynamics and quantifying uncertainty\. When latent representations collapse, decoders produce over\-smoothed predictions and degraded CRPS\. Our loss prevents this by structuring the latent space to preserve lag\-decay correlations, keeping temporally distinct inputs separable and enabling sharper, better\-calibrated forecasts \(Fig\.[2](https://arxiv.org/html/2608.20025#A1.F2), Fig\.[3](https://arxiv.org/html/2608.20025#A1.F3)\)\. The resulting gains in CRPS and NMAE directly reflect this principled temporal regularisation\.

Theoretical limitations\.CLaST assumes inter\-observation covariance depends solely on temporal lag, not absolute time\. This aligns with many real\-world domains where dependency structures remain stable despite non\-stationary means: climatological series with long\-term trends, financial indicators under trend\-stationary models\[[13](https://arxiv.org/html/2608.20025#bib.bib1)\], and industrial sensor data with invariant physical dynamics\[[31](https://arxiv.org/html/2608.20025#bib.bib3)\]\.

Practical limitations\.The contextual similarity alignment loss incurs𝒪⁡\(N2\)\\mathcal\{O\}\(N^\{2\}\)complexity due to full similarity\-matrix construction\. In practice, this overhead is modest: LaST trains∼\\sim28% faster per epoch than CLaST666[https://anonymous\.4open\.science/r/CLaST\-3407/tables/time\.md](https://anonymous.4open.science/r/CLaST-3407/tables/time.md), yet CLaST delivers substantially better performance\. As we mentioned earlier in our main results with PatchTST backbone, CLaST improves CRPS/NMAE by up to 46\.8%/45\.6% Using the FeedNet, gains reach 46\.17%/52\.37 This marginal computational cost is strongly justified by the consistent, backbone\-agnostic improvements in predictive quality\.

## VIConclusion

This paper presentedCLaST, a Context\-aware VAE framework for probabilistic time series forecasting\. Standard generative objectives often fail to encourage informative latent representations, particularly in sequential settings\. CLaST mitigates this issue by introducing a natural theoretically\-grounded loss function that accounts for contextual similarity between observations\. It transfers temporal structure from the input space to the latent space using theoretically grounded loss functions, ensuring that the embeddings preserve contextual structure of dependent data\.

Across a range of benchmarks covering diverse domains such as Electricity, ETT, and Weather, the proposed method demonstrates consistent and meaningful gains over strong baselines\. These improvements reflect CLaST’s ability to capture intrinsic temporal relationships while maintaining the flexibility of latent\-variable models\. In short\-term forecasting tasks, our approach achieves improvements of up to16\.4%16\.4\\%in CRPS and14\.4%14\.4\\%in NMAE\. Furthermore, for the long\-term forecasting CLaST attains superior overall performance, exceeding the second\-best method by up to48\.6%48\.6\\%and25\.1%25\.1\\%in CRPS and NMAE, respectively, indicating enhanced uncertainty quantification and reduced forecasting error without undermining prior modeling advances\.

## References

- \[1\]T\. Akiba, S\. Sano, T\. Yanase, T\. Ohta, and M\. Koyama\(2019\)Optuna: a next\-generation hyperparameter optimization framework\.InProceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining,pp\. 2623–2631\.Cited by:[§\-E](https://arxiv.org/html/2608.20025#A0.SS5.p1.1)\.
- \[2\]R\. Balestriero and Y\. LeCun\(2022\)Contrastive and non\-contrastive self\-supervised learning recover global and local spectral embedding methods\.InAdvances in Neural Information Processing Systems \(NeurIPS 2022\),pp\. 26671–26685\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p4.1),[§III\-D](https://arxiv.org/html/2608.20025#S3.SS4.p2.1),[§III\-E1](https://arxiv.org/html/2608.20025#S3.SS5.SSS1.p3.1),[§III\-F](https://arxiv.org/html/2608.20025#S3.SS6.p2.1)\.
- \[3\]M\. I\. Belghazi, A\. Baratin, S\. Rajeshwar, S\. Ozair, Y\. Bengio, A\. Courville, and D\. Hjelm\(2018\)Mutual information neural estimation\.InInternational conference on machine learning,pp\. 531–540\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p2.1)\.
- \[4\]B\. Biller and B\. L\. Nelson\(2003\)Modeling and generating multivariate time\-series input processes using a vector autoregressive technique\.ACM Transactions on Modeling and Computer Simulation \(TOMACS\)13\(3\),pp\. 211–237\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[5\]G\. E\. Box and D\. A\. Pierce\(1970\)Distribution of residual autocorrelations in autoregressive\-integrated moving average time series models\.Journal of the American statistical Association65\(332\),pp\. 1509–1526\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[6\]L\. Cao and F\. E\. H\. Tay\(2003\)Support vector machine with adaptive parameters in financial time series forecasting\.IEEE Transactions on neural networks14\(6\),pp\. 1506–1518\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[7\]C\. Chan, A\. Al\-Bashabsheh, H\. P\. Huang, M\. Lim, D\. S\. H\. Tam, and C\. Zhao\(2019\)Neural entropic estimation: a faster path to mutual information estimation\.arXiv preprint arXiv:1905\.12957\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p2.1)\.
- \[8\]R\. T\. Chen, Y\. Rubanova, J\. Bettencourt, and D\. K\. Duvenaud\(2018\)Neural ordinary differential equations\.Advances in neural information processing systems31\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px3.p1.1)\.
- \[9\]P\. Cheng, W\. Hao, S\. Dai, J\. Liu, Z\. Gan, and L\. Carin\(2020\)CLUB: a contrastive log\-ratio upper bound of mutual information\.InProceedings of the 37th International Conference on Machine Learning,H\. D\. III and A\. Singh \(Eds\.\),Proceedings of Machine Learning Research, Vol\.119,pp\. 1779–1788\.External Links:[Link](https://proceedings.mlr.press/v119/cheng20b.html)Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p2.1)\.
- \[10\]E\. De Brouwer, J\. Simm, A\. Arany, and Y\. Moreau\(2019\)GRU\-ode\-bayes: continuous modeling of sporadically\-observed time series\.Advances in neural information processing systems32\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px3.p1.1)\.
- \[11\]X\. Dong, D\. Thanou, P\. Frossard, and P\. Vandergheynst\(2016\)Learning laplacian matrix in smooth graph signal representations\.IEEE Transactions on Signal Processing64\(23\),pp\. 6160–6173\.Cited by:[§III\-F](https://arxiv.org/html/2608.20025#S3.SS6.p2.1)\.
- \[12\]Q\. Guo, J\. Chen, D\. Wang, Y\. Yang, X\. Deng, J\. Huang, L\. Carin, F\. Li, and C\. Tao\(2022\)Tight mutual information estimation with contrastive fenchel\-legendre optimization\.Advances in Neural Information Processing Systems35,pp\. 28319–28334\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p2.1)\.
- \[13\]J\. D\. Hamilton\(2020\)Time series analysis\.Princeton university press\.Cited by:[§V](https://arxiv.org/html/2608.20025#S5.p2.1)\.
- \[14\]J\. Ho, A\. Jain, and P\. Abbeel\(2020\)Denoising diffusion probabilistic models\.Advances in neural information processing systems33,pp\. 6840–6851\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p1.1)\.
- \[15\]S\. Hochreiter and J\. Schmidhuber\(1997\)Long short\-term memory\.Neural computation9\(8\),pp\. 1735–1780\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[16\]M\. Jin, H\. Y\. Koh, Q\. Wen, D\. Zambon, C\. Alippi, G\. I\. Webb, I\. King, and S\. Pan\(2024\)A survey on graph neural networks for time series: forecasting, classification, imputation, and anomaly detection\.IEEE Transactions on Pattern Analysis and Machine Intelligence\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[17\]V\. Kalofolias\(2016\)How to learn a graph from smooth signals\.InArtificial intelligence and statistics,pp\. 920–929\.Cited by:[§III\-F](https://arxiv.org/html/2608.20025#S3.SS6.p2.1)\.
- \[18\]D\. P\. Kingma and M\. Welling\(2013\)Auto\-encoding variational bayes\.arXiv e\-prints,pp\. arXiv–1312\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px2.p1.1)\.
- \[19\]M\. Kollovieh, A\. F\. Ansari, M\. Bohlke\-Schneider, J\. Zschiegner, H\. Wang, and Y\. B\. Wang\(2023\)Predict, refine, synthesize: self\-guiding diffusion models for probabilistic time series forecasting\.Advances in Neural Information Processing Systems36,pp\. 28341–28364\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1),[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px3.p1.1)\.
- \[20\]I\. Kuleshov, E\. Romanenkova, V\. A\. Zhuzhel, G\. Boeva, E\. Vorsin, and A\. Zaytsev\(2026\)DeNOTS: stable deep neural ODEs for time series\.InThe Fourteenth International Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=SFoDJZ1sSk)Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px3.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1)\.
- \[21\]G\. Lai, W\. Chang, Y\. Yang, and H\. Liu\(2018\)Modeling long\-and short\-term temporal patterns with deep neural networks\.InThe 41st international ACM SIGIR conference on research & development in information retrieval,pp\. 95–104\.Cited by:[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px1.p1.1)\.
- \[22\]Y\. Nie\(2022\)A time series is worth 64words: long\-term forecasting with transformers\.arXiv preprint arXiv:2211\.14730\.Cited by:[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px3.p1.1)\.
- \[23\]Y\. Nie, N\. H\. Nguyen, P\. Sinthong, and J\. Kalagnanam\(2023\)A time series is worth 64 words: long\-term forecasting with transformers\.InInternational Conference on Learning Representations,Cited by:[§\-E](https://arxiv.org/html/2608.20025#A0.SS5.p4.1),[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1)\.
- \[24\]K\. Rasul, C\. Seward, I\. Schuster, and R\. Vollgraf\(2021\)Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting\.InInternational conference on machine learning,pp\. 8857–8868\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p1.1)\.
- \[25\]Y\. Rubanova, R\. T\. Chen, and D\. K\. Duvenaud\(2019\)Latent ordinary differential equations for irregularly\-sampled time series\.Advances in neural information processing systems32\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px3.p1.1)\.
- \[26\]D\. Salinas, V\. Flunkert, J\. Gasthaus, and T\. Januschowski\(2020\)DeepAR: probabilistic forecasting with autoregressive recurrent networks\.International journal of forecasting36\(3\),pp\. 1181–1191\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1)\.
- \[27\]O\. Shchur, A\. F\. Ansari, C\. Turkmen, L\. Stella, N\. Erickson, P\. Guerron\-Quintana, M\. Bohlke\-Schneider, and Y\. Wang\(2025\)Fev\-bench: a realistic benchmark for time series forecasting\.Technical reportBoston College Department of Economics\.Cited by:[§\-C](https://arxiv.org/html/2608.20025#A0.SS3.p1.1),[§IV\-B](https://arxiv.org/html/2608.20025#S4.SS2.SSS0.Px2.p2.1)\.
- \[28\]D\. Shin and H\. Kim\(2024\)An experimental study of neural estimators of the mutual information between random vectors modeling power spectrum features\.EURASIP Journal on Advances in Signal Processing2024,pp\.\.External Links:[Document](https://dx.doi.org/10.1186/s13634-023-01092-1)Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p2.1)\.
- \[29\]Y\. Tashiro, J\. Song, Y\. Song, and S\. Ermon\(2021\)Csdi: conditional score\-based diffusion models for probabilistic time series imputation\.Advances in neural information processing systems34,pp\. 24804–24816\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p1.1)\.
- \[30\]Z\. Wang, X\. Xu, W\. Zhang, G\. Trajcevski, T\. Zhong, and F\. Zhou\(2022\)Learning latent seasonal\-trend representations for time series forecasting\.Advances in Neural Information Processing Systems35,pp\. 38775–38787\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§I](https://arxiv.org/html/2608.20025#S1.p2.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px2.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1),[§III\-B](https://arxiv.org/html/2608.20025#S3.SS2.p1.1),[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px3.p1.1)\.
- \[31\]C\. K\. Williams and C\. E\. Rasmussen\(2006\)Gaussian processes for machine learning\.Vol\.2,MIT press Cambridge, MA\.Cited by:[§V](https://arxiv.org/html/2608.20025#S5.p2.1)\.
- \[32\]P\. R\. Winters\(1960\)Forecasting sales by exponentially weighted moving averages\.Management science6\(3\),pp\. 324–342\.Cited by:[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[33\]H\. Wu, J\. Xu, J\. Wang, and M\. Long\(2021\)Autoformer: decomposition transformers with auto\-correlation for long\-term series forecasting\.Advances in neural information processing systems34,pp\. 22419–22430\.Cited by:[§\-C](https://arxiv.org/html/2608.20025#A0.SS3.p1.1)\.
- \[34\]X\. Wu, X\. Qiu, H\. Gao, J\. Hu, B\. Yang, and C\. Guo\(2025\)K2VAE: a koopman\-kalman enhanced variational autoencoder for probabilistic time series forecasting\.arXiv preprint arXiv:2505\.23017\.Cited by:[§\-C](https://arxiv.org/html/2608.20025#A0.SS3.p1.1),[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px2.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1),[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px3.p1.1)\.
- \[35\]M\. Zamo and P\. Naveau\(2018\)Estimation of the continuous ranked probability score with limited information and applications to ensemble weather forecasts\.Mathematical Geosciences50\(2\),pp\. 209–234\.Cited by:[§\-D](https://arxiv.org/html/2608.20025#A0.SS4.p1.3)\.
- \[36\]A\. Zeng, M\. Chen, L\. Zhang, and Q\. Xu\(2022\)Are transformers effective for time series forecasting?\.arXiv preprint arXiv:2205\.13504\.Cited by:[§\-E](https://arxiv.org/html/2608.20025#A0.SS5.p2.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px1.p1.1)\.
- \[37\]J\. Zhang, X\. Wen, Z\. Zhang, S\. Zheng, J\. Li, and J\. Bian\(2024\)ProbTS: benchmarking point and distributional forecasting across diverse prediction horizons\.Advances in Neural Information Processing Systems37,pp\. 48045–48082\.Cited by:[§\-C](https://arxiv.org/html/2608.20025#A0.SS3.p1.1)\.
- \[38\]X\. N\. Zhang, Y\. Pu, Y\. Kawamura, A\. Loza, Y\. Bengio, D\. Shung, and A\. Tong\(2024\)Trajectory flow matching with applications to clinical time series modelling\.Advances in Neural Information Processing Systems37,pp\. 107198–107224\.Cited by:[§I](https://arxiv.org/html/2608.20025#S1.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px3.p1.1),[§II](https://arxiv.org/html/2608.20025#S2.SS0.SSS0.Px4.p2.1),[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px3.p1.1)\.
- \[39\]H\. Zhou, S\. Zhang, J\. Peng, S\. Zhang, J\. Li, H\. Xiong, and W\. Zhang\(2021\)Informer: beyond efficient transformer for long sequence time\-series forecasting\.InThe Thirty\-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Virtual Conference,Vol\.35,pp\. 11106–11115\.Cited by:[§IV\-A](https://arxiv.org/html/2608.20025#S4.SS1.SSS0.Px1.p1.1)\.
- \[40\]H\. Zhou, S\. Zhang, J\. Peng, S\. Zhang, J\. Li, H\. Xiong, and W\. Zhang\(2021\)Informer: beyond efficient transformer for long sequence time\-series forecasting\.InProceedings of the AAAI conference on artificial intelligence,Vol\.35,pp\. 11106–11115\.Cited by:[§\-C](https://arxiv.org/html/2608.20025#A0.SS3.p1.1)\.

Below, we provide the complete mathematical derivations, lemma proofs, and reductions used to obtain the final closed\-form solution\.

### \-AOptimal mapping from feature to similarity space

###### Proof\.

By Assumptions[A1](https://arxiv.org/html/2608.20025#ass..A1)–[A2](https://arxiv.org/html/2608.20025#ass..A2),zδ:=g⁡\(rδ\)z\_\{\\delta\}:=g\(r\_\{\\delta\}\)is Gaussian with class\-conditional meansμy=g⁡\(ρy\)\\mu\_\{y\}=g\(\\rho\_\{y\}\)\(μ0≠μ1\\mu\_\{0\}\\neq\\mu\_\{1\}\) and common varianceσ2\\sigma^\{2\}\. The log\-likelihood ratio is linear:

Λ⁡\(zδ\)=log⁡p⁡\(zδ∣Yδ=1\)p⁡\(zδ∣Yδ=0\)=α​zδ\+β′,α:=μ1−μ0σ2\.\\Lambda\(z\_\{\\delta\}\)=\\log\\frac\{p\(z\_\{\\delta\}\\mid Y\_\{\\delta\}=1\)\}\{p\(z\_\{\\delta\}\\mid Y\_\{\\delta\}=0\)\}=\\alpha z\_\{\\delta\}\+\\beta^\{\\prime\},\\quad\\alpha:=\\frac\{\\mu\_\{1\}\-\\mu\_\{0\}\}\{\\sigma^\{2\}\}\.By Bayes’ rule, the posterior isP⁡\(Yδ=1∣zδ\)=σ⁡\(α​zδ\+β\)P\(Y\_\{\\delta\}=1\\mid z\_\{\\delta\}\)=\\sigma\(\\alpha z\_\{\\delta\}\+\\beta\)withβ:=β′\+log⁡\(π1/π0\)\\beta:=\\beta^\{\\prime\}\+\\log\(\\pi\_\{1\}/\\pi\_\{0\}\)\. For smallrδr\_\{\\delta\}, a first\-order Taylor expansiong⁡\(rδ\)=g⁡\(0\)\+g′​\(0\)​rδ\+o⁡\(rδ\)g\(r\_\{\\delta\}\)=g\(0\)\+g^\{\\prime\}\(0\)r\_\{\\delta\}\+o\(r\_\{\\delta\}\)yields

P⁡\(Yδ=1∣rδ\)=σ⁡\(α~​rδ\+β~\)\+o⁡\(rδ\),\\displaystyle P\(Y\_\{\\delta\}=1\\mid r\_\{\\delta\}\)=\\sigma\(\\tilde\{\\alpha\}r\_\{\\delta\}\+\\tilde\{\\beta\}\)\+o\(r\_\{\\delta\}\),α~:=αg′\(0\),β~:=β\+αg\(0\),\\displaystyle\\tilde\{\\alpha\}:=\\alpha g^\{\\prime\}\(0\),\\;\\quad\\tilde\{\\beta\}:=\\beta\+\\alpha g\(0\),completing the proof\. ∎

### \-BNecessary and sufficient conditions

###### Proof\.

Since𝒢\\mathcal\{G\}consists of symmetric, non\-negative Toeplitz matrices with zero diagonal, any𝐆^∈𝒢\\widehat\{\\mathbf\{G\}\}\\in\\mathcal\{G\}is parameterized byg^=\(g^1,…,g^N−1\)\\widehat\{g\}=\(\\widehat\{g\}\_\{1\},\\dots,\\widehat\{g\}\_\{N\-1\}\)withg^k≥0\\widehat\{g\}\_\{k\}\\geq 0, whereg^i​j=g^\|i−j\|\\widehat\{g\}\_\{ij\}=\\widehat\{g\}\_\{\|i\-j\|\}\. Defining the lag\-averaged distanceϕk≔1N−k​∑\|i−j\|=kdi​j\\phi\_\{k\}\\coloneqq\\frac\{1\}\{N\-k\}\\sum\_\{\|i\-j\|=k\}d\_\{ij\}, problem \([7](https://arxiv.org/html/2608.20025#S3.E7)\) reduces to

ming^k\>0⁡𝒥⁡\(g^\)=2​∑k=1N−1\(N−k\)​\[ϕk​g^k\+τ​g^k​\(ln⁡g^k−1\)\]\.\\min\_\{\\widehat\{g\}\_\{k\}\>0\}\\;\\mathcal\{J\}\(\\widehat\{g\}\)=2\\sum\_\{k=1\}^\{N\-1\}\(N\-k\)\\bigl\[\\phi\_\{k\}\\widehat\{g\}\_\{k\}\+\\tau\\widehat\{g\}\_\{k\}\(\\ln\\widehat\{g\}\_\{k\}\-1\)\\bigr\]\.\(8\)𝒥\\mathcal\{J\}is separable and strictly convex on\{g^k\>0\}\\\{\\widehat\{g\}\_\{k\}\>0\\\}because each term has second derivative2​τ​\(N−k\)/g^k\>02\\tau\(N\-k\)/\\widehat\{g\}\_\{k\}\>0\. Setting∂𝒥/∂g^k=0\\partial\\mathcal\{J\}/\\partial\\widehat\{g\}\_\{k\}=0yields the unique stationary point

g^k⋆=exp\(−ϕk/τ\),k=1,…,N−1,\\widehat\{g\}\_\{k\}^\{\\star\}=\\exp\(\-\\phi\_\{k\}/\\tau\),\\qquad k=1,\\dots,N\-1,which, by strict convexity, is the unique global minimizer of \([8](https://arxiv.org/html/2608.20025#A0.E8)\)\. The corresponding Toeplitz matrix𝐆^\\widehat\{\\mathbf\{G\}\}is therefore the unique solution to \([7](https://arxiv.org/html/2608.20025#S3.E7)\)\.

∎

### \-CDatasets Description

We evaluate on nine standard multivariate time\-series benchmarks: ETTh1/2 and ETTm1/2 \(hourly/15\-min transformer measurements, 2016–2018\), Electricity \(hourly consumption for 321 users, 2012–2014\), Weather \(10\-min meteorological records, 2020\), Traffic \(hourly road occupancy across 862 sensors, 2015–2016\), Solar \(hourly energy consumption and weather data with solar irradiance and meteorological variables\), and ERCOT \(hourly electricity load across 8 U\.S\. regions, 2004–2021\)\[[34](https://arxiv.org/html/2608.20025#bib.bib4),[37](https://arxiv.org/html/2608.20025#bib.bib5),[40](https://arxiv.org/html/2608.20025#bib.bib6),[33](https://arxiv.org/html/2608.20025#bib.bib7),[27](https://arxiv.org/html/2608.20025#bib.bib40)\]\. These datasets span diverse temporal resolutions, dimensionalities, and seasonal patterns\. To encode temporal context, we append 11 auxiliary features: sinusoidal embeddings\(cos⁡\(2​π​t\),sin⁡\(2​π​t\)\)\(\\cos\(2\\pi t\),\\sin\(2\\pi t\)\)for year, quarter, month, week, and day cycles, plus a normalized inter\-sample interval\(ti−ti−1\)/Δ​t\(t\_\{i\}\-t\_\{i\-1\}\)/\\Delta t\. All series are chronologically partitioned into 70% training, 10% validation, and 20% testing splits\.

### \-DEvaluation Metrics

We report forecast performance using two standard metrics: Normalized Mean Absolute Error \(NMAE\) for point accuracy and Continuous Ranked Probability Score \(CRPS\) for probabilistic calibration\. NMAE is computed as

NMAE⁡\(x,x^\)=1N​∑n=1N∑i=1F\|xin−x^in\|∑i=1F\|xin\|,\\mathrm\{NMAE\}\(x,\\hat\{x\}\)=\\frac\{1\}\{N\}\\sum\_\{n=1\}^\{N\}\\frac\{\\sum\_\{i=1\}^\{F\}\\lvert x^\{n\}\_\{i\}\-\\hat\{x\}^\{n\}\_\{i\}\\rvert\}\{\\sum\_\{i=1\}^\{F\}\\lvert x^\{n\}\_\{i\}\\rvert\},wherex^\\hat\{x\}denotes the median of 100 sampled trajectories\. CRPS measures the discrepancy between the predictive CDFF⁡\(z\)F\(z\)and the observationxx:

CRPS=∫ℝ\(F\(z\)−𝕀\{x≤z\}\)2dz,\\mathrm\{CRPS\}=\\int\_\{\\mathbb\{R\}\}\\bigl\(F\(z\)\-\\mathbb\{I\}\\\{x\\leq z\\\}\\bigr\)^\{2\}dz,approximated via Monte Carlo sampling\[[35](https://arxiv.org/html/2608.20025#bib.bib26)\]\. For both metrics, lower values indicate better performance\.

### \-EImplementation Details

We tune CLaST hyperparameters on the validation set via Optuna\[[1](https://arxiv.org/html/2608.20025#bib.bib39)\], searchingα∈\[1,10\]\\alpha\\in\[1,10\],smin∈\(0,0\.5\)s\_\{\\min\}\\in\(0,0\.5\), andτ∈\(0\.01,10\)\\tau\\in\(0\.01,10\)\. We evaluate three encoder backbones:

DLinear: We modify the original architecture\[[36](https://arxiv.org/html/2608.20025#bib.bib29)\]to project trend/seasonal components into latent space \(dim 64, or 128 for Electricity/Traffic\) using a running\-mean window of 25\.

MLP: A two\-layer ReLU MLP with hidden dimension tuned over\{64,128,256\}\\\{64,128,256\\\}and fixed latent output dimension 64\.

PatchTST: Separate PatchTST encoders\[[23](https://arxiv.org/html/2608.20025#bib.bib28)\]model trend and seasonal components, each followed by linear heads for latent mean/variance estimation\. Patch length and stride are fixed to 16 and 8; latent dimension is 64 \(128 for Electricity/Traffic\)\. Remaining hyperparameters are optimized via Optuna777[https://anonymous\.4open\.science/r/CLaST\-3407/tables/patchtst\_backbone\.md](https://anonymous.4open.science/r/CLaST-3407/tables/patchtst_backbone.md)or follow the original implementation888[https://github\.com/yuqinie98/PatchTST](https://github.com/yuqinie98/PatchTST)\.

## Appendix ACLaST Analysis

![Refer to caption](https://arxiv.org/html/2608.20025v1/similarity_heatmaps.png)Fig\. 2:Average cosine similarity between embeddings of input data across time steps for LaST and CLaST on the Weather dataset with context length and horizonN=L=24N=L=24\.### A\-AMapping functions from correlation to similarity space

We evaluate the impact of different mappings from the correlation space to the similarity space\. Specifically, we compare the theoretically motivatedsigmoidmapping with alternative choices, including ReLU, absolute value, and a parabolic transformation\. As shown in the Table[IV](https://arxiv.org/html/2608.20025#A1.T4), the sigmoid mapping consistently yields the best performance across both datasets \(Electricity and Traffic\) according to both CRPS and NMAE\.

TABLE IV:Impact of mapping functions from correlation to similarity spaceon probabilistic forecasting performance for Electricity and Traffic datasets\. Lower CRPS and NMAE indicate better performance\. Results are reported as mean±\\pmstandard error\.

### A\-BSensitivity Analysis

#### A\-B1Sensitivity to Latent Space Dimensionality

The dimensionality of the latent space is selected based on validation set optimization\. However, it is important to assess the model’s sensitivity to this parameter, as a stable model should not exhibit significant performance degradation when using comparable dimensionalities\. Our empirical results999[https://anonymous\.4open\.science/r/CLaST\-3407/tables/dim\_abl\.png](https://anonymous.4open.science/r/CLaST-3407/tables/dim_abl.png)demonstrate that CLaST achieves consistent forecasting performance across latent dimensions of 32, 64, 128, and 256\.

#### A\-B2Backbone Sensitivity to Context Length

All encoders are tested with different context lengths of 24, 48, 96, 192, and 384 time steps\. The impact of the encoder choice and the context length is provided in our supplementary materials101010[https://anonymous\.4open\.science/r/CLaST\-3407/tables/backbones\.png](https://anonymous.4open.science/r/CLaST-3407/tables/backbones.png)\. The Transformer\-based CLaST model generally performs best, with the MLP backbone typically ranking second\. However, for some long\-horizon forecasts–particularly on the Traffic and ETTh1 datasets–the MLP model can outperform the Transformer\. On the other hand, for the Weather dataset, the Transformer model achieves better results than the MLP in certain long\-horizon settings, while underperforming in others\.

### A\-CTemporal Structure in Learned Embeddings

To better understand the effect of the proposed training objective on the learned representations, we analyze the temporal structure of the resulting embedding space\.

Figure[2](https://arxiv.org/html/2608.20025#A1.F2)presents the average pairwise cosine similarity of input embeddings across different temporal positions for LaST and CLaST\. Both approaches exhibit a diagonal structure in the resulting similarity matrices, indicating that embeddings corresponding to temporally adjacent timestamps are more similar, while similarity decreases with increasing temporal distance\. However, LaST shows uniformly high average cosine similarity across the matrix, suggesting overly smooth representations with limited discriminability between distant timestamps\. In contrast, CLaST yields lower and more heterogeneous similarity values, leading to a more pronounced diagonal pattern and improved preservation of temporal structure, due to the contrastive regularization and temporal bias imposed by the training loss\.

\(a\)ETTm2\.\(b\)Electricity\.
Fig\. 3:CLaST decomposed forecasts \(N=96N=96,L=720L=720\)\. Each figure shows ground truth, seasonal, and trend with 90% confidence intervals from 100 samples\.

Similar Articles