SDFlow: Similarity-Driven Flow Matching for Time Series Generation
Summary
This paper introduces SDFlow, a similarity-driven flow matching framework for time series generation that addresses exposure bias in autoregressive models. It achieves state-of-the-art performance and inference speedups by operating in the frozen VQ latent space with low-rank manifold decomposition.
View Cached Full Text
Cached at: 05/08/26, 08:43 AM
# SDFlow: Similarity-Driven Flow Matching for Time Series Generation
Source: [https://arxiv.org/html/2605.05736](https://arxiv.org/html/2605.05736)
Wei Li1,2, Shibo Feng3,∗, Pengcheng Wu3, Xingyu Gao4, Min Wu5, Peilin Zhao1 1Shanghai Jiao Tong University,2Shanghai University,3Nanyang Technological University 4Chinese Academy of Sciences, Beijing,5Institute for Infocomm Research, A\*STAR, Singapore liwei008009@163\.com,\{Shibo001, pengchengwu\}@ntu\.edu\.sg,gxy9910@gmail\.com wumin@i2r\.a\-star\.edu\.sg, peilinzhao@sjtu\.edu\.cn
###### Abstract
Vector quantization \(VQ\) with autoregressive \(AR\) token modeling is a widely adopted and highly competitive paradigm for time\-series generation\. However, such models are fundamentally limited by exposure bias: during inference, errors can accumulate across sequential predictions, leading to pronounced quality degradation in long\-horizon generation\. To address this, we propose SDFlow \(Similarity\-DrivenFlowMatching\), a non\-autoregressive framework that operates entirely in the frozen VQ latent space and enables parallel sequence generation via flow matching\. We tackle three key challenges in making this transition: \(1\) eliminating exposure bias by replacing step\-wise token prediction with a global transport map; \(2\) mitigating the high\-dimensionality of VQ token spaces via a low\-rank manifold decomposition with a learned anchor prior over the latent manifold; and \(3\) incorporating discrete supervision into continuous transport dynamics by introducing a categorical posterior over codebook indices within a variational flow\-matching formulation\. Extensive experiments show that SDFlow achieves state\-of\-the\-art performance, improving Discriminative Score and substantially reducing Context\-FID, particularly for challenging long\-sequence generation\. Moreover, SDFlow provides significant inference speedups over autoregressive baselines, offering both high fidelity and computational efficiency\. Code is available at[https://anonymous\.4open\.science/r/SDFlow\-D6F3/](https://anonymous.4open.science/r/SDFlow-D6F3/)
## 1Introduction
Time series generation underpins critical applications spanning finance\[[10](https://arxiv.org/html/2605.05736#bib.bib49)\], healthcare\[[20](https://arxiv.org/html/2605.05736#bib.bib50)\], and energy systems\[[16](https://arxiv.org/html/2605.05736#bib.bib51)\]\. Among generative paradigms, variational autoencoders \(VAEs\) offer fast one\-step generation that bypasses the lengthy iterative sampling required by diffusion\-based models while remaining competitive in both forecasting and generation quality\. Within this lightweight paradigm, vector quantization approaches such as VQ\-VAE\[[25](https://arxiv.org/html/2605.05736#bib.bib33)\]and VQGAN\[[12](https://arxiv.org/html/2605.05736#bib.bib34)\]have proven particularly effective, compressing multivariate sequences into finite codebooks that remove redundancy, suppress noise, and enable scalable high\-fidelity reconstruction\.
\(a\)Space: Intrinsic Geometry
\(b\)Time: Temporal Consistency
\(c\)Generalization: Novelty
Figure 1:The Three Pillars of SDFlow\.\(a\) Space:Gaussian initialization \(blue\) starts from a high\-rank space far from the data, whereas our manifold\-anchored approach \(red\) initializes within the intrinsic low\-rank subspace, making transport computationally tractable\.\(b\) Time:Unlike autoregressive baselines \(blue\) that suffer from exposure bias on long sequences, SDFlow \(red\) maintains consistent high fidelity regardless of length\.\(c\) Generalization:Nearest\-neighbor distance distributions show that the generated\-to\-nearest\-real distances \(red\) closely match the real\-to\-nearest\-real distances \(gray\), supporting non\-copying behavior\.SDformer\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\]recently established state\-of\-the\-art performance through VQ\-VAE tokenization with similarity\-driven quantization combined with autoregressive transformer generation\. However, advancing this paradigm to robust long\-term generation faces three challenges:
1\. Exposure Bias in Autoregressive Modeling\.AR models suffer from a fundamental train\-test discrepancy\[[4](https://arxiv.org/html/2605.05736#bib.bib21),[22](https://arxiv.org/html/2605.05736#bib.bib22)\]\. During training, the model conditions on ground\-truth tokens, but during inference, it must rely on its own predictions\. Errors accumulate sequentially during inference, causing significant degradation in long\-horizon generation\. This is empirically verified in Figure[1](https://arxiv.org/html/2605.05736#S1.F1)\(b\), where the baseline’s fidelity deteriorates sharply as sequence length increases\.
2\. The Curse of Dimensionality\.While non\-AR flow matching avoids sequential errors, SDFlow still operates in the frozen VQ latent space rather than raw data space\. As shown in Figure[1](https://arxiv.org/html/2605.05736#S1.F1)\(a\), the latent data manifold is extremely low\-rank \(r≪Dr\\ll D\) compared to the high\-dimensional ambient space\. Standard Gaussian initialization starts far from this manifold, making the learning of transport dynamics computationally intractable\.
3\. Discrete Supervision for Continuous Transport\.VQ\-VAE latents possess a dual discrete\-continuous structure: each position corresponds to a discrete codebook index with an associated continuous embedding\. Purely continuous flow matching ignores the categorical structure, while purely discrete approaches collapse geometry\. An effective solution must provide categorical supervision while maintaining continuous transport dynamics\. Crucially, the relevant generalization failure mode is latent\-anchor collapse rather than raw data\-space interpolation\. SDFlow learns a low\-rank anchor manifold and uses a kernel\-smoothed prior only as a tractable way to initialize flow near that scaffold\. As shown in Figure[1](https://arxiv.org/html/2605.05736#S1.F1)\(c\), generated samples maintain substantial distances from training data, suggesting nontrivial synthesis and generalization\.
To address this triad of challenges, we propose SDFlow, making three key innovations\.First, we learn a low\-rank manifold decomposition that discovers the intrinsic subspace structure, enabling manifold\-anchored initialization that reduces transport distance\.Second, following variational flow matching\[[11](https://arxiv.org/html/2605.05736#bib.bib24)\], we employ categorical posteriors over codebook indices that provide explicit discrete supervision through cross\-entropy loss while computing velocity fields in continuous embedding space\.Third, we use a learned anchor prior over the low\-dimensional anchor coordinates as an auxiliary sampler for topology\-preserving initialization\.
In summary, our contributions include:
- •Analysis:We identify exposure bias and the curse of dimensionality as fundamental barriers in VQ\-based time series generation\.
- •Method:SDFlow combines low\-rank manifold discovery with categorical flow matching for non\-autoregressive parallel generation\.
- •Evaluation:SDFlow achieves the state\-of\-the\-art performance in short\- and long\-term generation tasks, while offering 3–10×\\timesspeedup improvements\.
## 2Related Work
Time Series Generation\.GAN\-based methods like TimeGAN\[[28](https://arxiv.org/html/2605.05736#bib.bib26)\]and COT\-GAN\[[26](https://arxiv.org/html/2605.05736#bib.bib27)\]pioneered deep generative modeling for time series but suffer from training instability and mode collapse\. Diffusion approaches\[[15](https://arxiv.org/html/2605.05736#bib.bib29),[8](https://arxiv.org/html/2605.05736#bib.bib30),[29](https://arxiv.org/html/2605.05736#bib.bib31),[23](https://arxiv.org/html/2605.05736#bib.bib2),[3](https://arxiv.org/html/2605.05736#bib.bib3),[13](https://arxiv.org/html/2605.05736#bib.bib5)\]achieve high fidelity but require hundreds of denoising steps, limiting practical applicability\. SDformer\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\]established state\-of\-the\-art through discrete tokens with autoregressive transformers, demonstrating the power of VQ\-VAE representations for temporal data\. We build upon this foundation while addressing the fundamental limitations of sequential generation\.
Discrete Token Modeling and Exposure Bias\.VQ\-VAE\[[25](https://arxiv.org/html/2605.05736#bib.bib33)\]and VQGAN\[[12](https://arxiv.org/html/2605.05736#bib.bib34)\]enable discrete representations for continuous data, forming the backbone of modern generative models\. Autoregressive methods like DALL\-E\[[21](https://arxiv.org/html/2605.05736#bib.bib35)\]and GPT\-based approaches generate tokens sequentially with powerful language model priors\. However, all autoregressive methods suffer from exposure bias\[[4](https://arxiv.org/html/2605.05736#bib.bib21)\]: models are trained via teacher forcing with ground\-truth conditioning but must rely on self\-generated tokens at inference\. This train\-test mismatch leads to cascading errors where early mistakes compound through the sequence\[[22](https://arxiv.org/html/2605.05736#bib.bib22)\]\. Various mitigation strategies have been proposed, including scheduled sampling\[[4](https://arxiv.org/html/2605.05736#bib.bib21)\]and random token replacement\[[30](https://arxiv.org/html/2605.05736#bib.bib40)\], but these only partially address the fundamental issue\. Non\-AR alternatives like MaskGIT\[[5](https://arxiv.org/html/2605.05736#bib.bib37)\]employ parallel decoding through iterative refinement, reducing but not eliminating sequential dependencies\.
Flow Matching and Variational Extensions\.Flow matching\[[17](https://arxiv.org/html/2605.05736#bib.bib42),[18](https://arxiv.org/html/2605.05736#bib.bib43),[2](https://arxiv.org/html/2605.05736#bib.bib6),[24](https://arxiv.org/html/2605.05736#bib.bib44)\]provides simulation\-free training for continuous normalizing flows, enabling efficient learning of transport maps\. Recent work has also explored flow\-based methods for time series, including rectified flows\[[14](https://arxiv.org/html/2605.05736#bib.bib23)\]and stochastic interpolants\[[1](https://arxiv.org/html/2605.05736#bib.bib7),[6](https://arxiv.org/html/2605.05736#bib.bib8)\]\. Variational flow matching \(VFM\)\[[11](https://arxiv.org/html/2605.05736#bib.bib24)\]reframes the problem as variational inference, enabling flexible posterior families beyond Gaussian\. For discrete or quantized data, VFM yields categorical posteriors that provide direct supervision while maintaining continuous transport—an approach termed CatFlow and successfully applied to molecular generation\.
## 3Preliminaries
We establish notation and review the technical foundations underlying our approach\.
Problem Formulation\.Let𝐗1:ℓ=\(𝐱1,…,𝐱ℓ\)∈ℝℓ×d\\mathbf\{X\}\_\{1:\\ell\}=\(\\mathbf\{x\}\_\{1\},\\ldots,\\mathbf\{x\}\_\{\\ell\}\)\\in\\mathbb\{R\}^\{\\ell\\times d\}denote a multivariate time series of lengthℓ\\ellwithddobserved dimensions\. The unconditional generation problem is defined as:
Input:𝐙0∼π0;Output:𝐗^1:ℓ=𝒢\(𝐙0\)∈ℝℓ×d,\\text\{Input: \}\\mathbf\{Z\}\_\{0\}\\sim\\pi\_\{0\};\\quad\\text\{Output: \}\\hat\{\\mathbf\{X\}\}\_\{1:\\ell\}=\\mathcal\{G\}\(\\mathbf\{Z\}\_\{0\}\)\\in\\mathbb\{R\}^\{\\ell\\times d\},\(1\)where𝐙0∈ℝℓ×d\\mathbf\{Z\}\_\{0\}\\in\\mathbb\{R\}^\{\\ell\\times d\},π0=𝒩\(𝟎,𝐈\)\\pi\_\{0\}=\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\)is a tractable prior, and𝒢\\mathcal\{G\}maps samples from the prior to the target data distribution\. The generative model can be implemented using GANs\[[28](https://arxiv.org/html/2605.05736#bib.bib26)\], VAEs\[[9](https://arxiv.org/html/2605.05736#bib.bib28)\], or diffusion models\[[29](https://arxiv.org/html/2605.05736#bib.bib31)\], which effectively capture complex temporal dependencies\. During training,𝒢\\mathcal\{G\}is optimized to minimize discrepancy between generated𝐗^1:ℓ\\hat\{\\mathbf\{X\}\}\_\{1:\\ell\}and real data𝐗1:ℓ\\mathbf\{X\}\_\{1:\\ell\}, ensuring high fidelity and diversity in generated sequences\.
Similarity\-Driven Vector Quantization\.Following\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\], we employ a VQ\-VAE tokenizer that maps continuous time series to discrete token sequences\. An encoderℰ\\mathcal\{E\}produces latent vectors𝐇1:L=ℰ\(𝐗1:ℓ\)∈ℝL×dc\\mathbf\{H\}\_\{1:L\}=\\mathcal\{E\}\(\\mathbf\{X\}\_\{1:\\ell\}\)\\in\\mathbb\{R\}^\{L\\times d\_\{c\}\}, whereL=ℓ/sL=\\ell/sfor temporal downsampling ratess\. Each latent vector is quantized to its nearest neighbor in a learned codebook𝒞=\{𝐜k\}k=0K−1⊂ℝdc\\mathcal\{C\}=\\\{\\mathbf\{c\}\_\{k\}\\\}\_\{k=0\}^\{K\-1\}\\subset\\mathbb\{R\}^\{d\_\{c\}\}using*similarity\-driven*quantization:
yi=Q\(𝐡i\):=argmaxk=0,…,K−1𝐡i‖𝐡i‖⋅𝐜k‖𝐜k‖\.y\_\{i\}=Q\(\\mathbf\{h\}\_\{i\}\):=\\arg\\max\_\{k=0,\\ldots,K\-1\}\\frac\{\\mathbf\{h\}\_\{i\}\}\{\\\|\\mathbf\{h\}\_\{i\}\\\|\}\\cdot\\frac\{\\mathbf\{c\}\_\{k\}\}\{\\\|\\mathbf\{c\}\_\{k\}\\\|\}\.\(2\)This cosine similarity measure, with unit\-normalized codes, improves codebook utilization by preventing collapse to high\-norm regions\. The encoder output is normalized to unit length, simplifying quantization toyi=argmaxk𝐡i⋅𝐜ky\_\{i\}=\\arg\\max\_\{k\}\\mathbf\{h\}\_\{i\}\\cdot\\mathbf\{c\}\_\{k\}\. Dequantization recovers embeddings via𝐡~i=Q−1\(yi\):=𝐜yi\\tilde\{\\mathbf\{h\}\}\_\{i\}=Q^\{\-1\}\(y\_\{i\}\):=\\mathbf\{c\}\_\{y\_\{i\}\}, and the decoder𝒟\\mathcal\{D\}reconstructs the time series:𝐗~1:ℓ=𝒟\(𝐇~1:L\)\\tilde\{\\mathbf\{X\}\}\_\{1:\\ell\}=\\mathcal\{D\}\(\\tilde\{\\mathbf\{H\}\}\_\{1:L\}\)\. Training minimizes reconstruction loss plus embedding regularization with exponential moving average \(EMA\) codebook updates and inactive code resetting\.
Exposure Bias in Autoregressive Token Modeling\.SDformer’s second stage employs autoregressive token modeling to learn the distribution at the discrete token level\. During training, shifted tokens𝐘1:Lin=\(\[BOS\],y1,…,yL−1\)\\mathbf\{Y\}^\{in\}\_\{1:L\}=\(\[\\text\{BOS\}\],y\_\{1\},\\ldots,y\_\{L\-1\}\)serve as input to predict targets𝐘1:L\\mathbf\{Y\}\_\{1:L\}, where\[BOS\]\[\\text\{BOS\}\]denotes the beginning\-of\-sequence token\. The training objective minimizes negative log\-likelihood:
ℒar=−𝔼\[∑ilogP\(yi\|𝐘1:iin\)\]\.\\mathcal\{L\}\_\{ar\}=\-\\mathbb\{E\}\\left\[\\sum\_\{i\}\\log P\(y\_\{i\}\|\\mathbf\{Y\}^\{in\}\_\{1:i\}\)\\right\]\.\(3\)At inference, generation proceeds autoregressively from\[BOS\]\[\\text\{BOS\}\], sampling each token from the predicted distribution\. This creates a fundamental train\-test discrepancy: training conditions on ground\-truth tokens while inference conditions on self\-generated tokens\. Early prediction errors propagate through the sequence, causing cascading degradation—a phenomenon particularly severe for long sequences where errors accumulate over many steps\.
Flow Matching\.Flow matching\[[17](https://arxiv.org/html/2605.05736#bib.bib42)\]learns a time\-dependent velocity field𝐯θ:ℝD×\[0,1\]→ℝD\\mathbf\{v\}\_\{\\theta\}:\\mathbb\{R\}^\{D\}\\times\[0,1\]\\to\\mathbb\{R\}^\{D\}that generates samples by integrating the ordinary differential equation:
d𝐳tdt=𝐯θ\(𝐳t,t\),𝐳0∼p0,𝐳1∼pdata\.\\frac\{d\\mathbf\{z\}\_\{t\}\}\{dt\}=\\mathbf\{v\}\_\{\\theta\}\(\\mathbf\{z\}\_\{t\},t\),\\quad\\mathbf\{z\}\_\{0\}\\sim p\_\{0\},\\quad\\mathbf\{z\}\_\{1\}\\sim p\_\{\\text\{data\}\}\.\(4\)For the linear interpolation path𝐳t=\(1−t\)𝐳0\+t𝐳1\\mathbf\{z\}\_\{t\}=\(1\-t\)\\mathbf\{z\}\_\{0\}\+t\\mathbf\{z\}\_\{1\}, the conditional velocity field is𝐯t\(𝐳\|𝐳1\)=𝐳1−𝐳0\\mathbf\{v\}\_\{t\}\(\\mathbf\{z\}\|\\mathbf\{z\}\_\{1\}\)=\\mathbf\{z\}\_\{1\}\-\\mathbf\{z\}\_\{0\}\. Training minimizes:
ℒFM=𝔼t,𝐳0,𝐳1\[‖𝐯θ\(𝐳t,t\)−\(𝐳1−𝐳0\)‖2\]\.\\mathcal\{L\}\_\{\\text\{FM\}\}=\\mathbb\{E\}\_\{t,\\mathbf\{z\}\_\{0\},\\mathbf\{z\}\_\{1\}\}\\left\[\\\|\\mathbf\{v\}\_\{\\theta\}\(\\mathbf\{z\}\_\{t\},t\)\-\(\\mathbf\{z\}\_\{1\}\-\\mathbf\{z\}\_\{0\}\)\\\|^\{2\}\\right\]\.\(5\)This formulation provides simulation\-free training and enables parallel generation—no sequential dependencies, thus completely eliminating exposure bias\.
## 4Method
SDFlow is a two\-stage framework illustrated in Figure[2](https://arxiv.org/html/2605.05736#S4.F2)\. Stage 1 pre\-trains a VQ\-VAE tokenizer with similarity\-driven quantization \(frozen during Stage 2\)\. Stage 2 learns manifold\-anchored flow matching with categorical supervision\. We now detail each component\.
Figure 2:Overview of the SDFlow framework\.Stage 1pre\-trains a VQ\-VAE tokenizer with similarity\-driven quantization \(frozen during Stage 2\)\.Stage 2learns manifold\-anchored flow matching in the frozen VQ latent space: low\-rank decomposition discovers the intrinsic anchor manifold, a learned anchor prior provides topology\-preserving initialization, and categorical posteriors over codebook indices enable discrete supervision with continuous transport\.### 4\.1Similarity\-Driven VQ\-VAE Tokenization
We adopt the similarity\-driven VQ\-VAE architecture from\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\], which has demonstrated strong performance for time series\. The encoder uses 1D convolutions with residual blocks to map input time series𝐗1:ℓ∈ℝℓ×d\\mathbf\{X\}\_\{1:\\ell\}\\in\\mathbb\{R\}^\{\\ell\\times d\}to latent vectors𝐇1:L∈ℝL×dc\\mathbf\{H\}\_\{1:L\}\\in\\mathbb\{R\}^\{L\\times d\_\{c\}\}, whereL=ℓ/sL=\\ell/sis the compressed sequence length\. As shown in Eq\. \([2](https://arxiv.org/html/2605.05736#S3.E2)\), The key innovation is similarity\-driven quantization: rather than Euclidean distance, quantization maximizes cosine similarity between encoder outputs and codebook vectors\. This normalization\-based approach prevents codebook collapse where only a few high\-norm codes are utilized\. Training employs the standard VQ\-VAE objective:
ℒVQ=‖𝐗1:ℓ−𝐗~1:ℓ‖22\+λL∑i=1L\(1−𝐡i⋅sg\(𝐡~i\)\),\\mathcal\{L\}\_\{\\text\{VQ\}\}=\\\|\\mathbf\{X\}\_\{1:\\ell\}\-\\tilde\{\\mathbf\{X\}\}\_\{1:\\ell\}\\\|\_\{2\}^\{2\}\+\\frac\{\\lambda\}\{L\}\\sum\_\{i=1\}^\{L\}\\left\(1\-\\mathbf\{h\}\_\{i\}\\cdot\\text\{sg\}\(\\tilde\{\\mathbf\{h\}\}\_\{i\}\)\\right\),\(6\)wheresg\(⋅\)\\text\{sg\}\(\\cdot\)denotes stop\-gradient and the second term is the embedding loss\. Codebook updates use exponential moving average \(EMA\) with inactive code resetting to maintain high utilization\.
Once trained, the tokenizer is frozen and all subsequent learning occurs in the discrete token space, ensuring the latent structure remains stable during flow matching training\.
### 4\.2The Geometric Mismatch
Consider the VQ\-VAE latent space with ambient dimensionD=L×dc\>3,000D=L\\times d\_\{c\}\>3,000for typical configurations\. Standard flow matching from𝐳0∼𝒩\(𝟎,𝐈D\)\\mathbf\{z\}\_\{0\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\_\{D\}\)fails due to two geometric issues: \(1\)Norm mismatch: unit\-normalized VQ codes yield‖𝐳∗‖=L\\\|\\mathbf\{z\}^\{\*\}\\\|=\\sqrt\{L\}, while Gaussian samples concentrate at‖𝐳0‖≈D\\\|\\mathbf\{z\}\_\{0\}\\\|\\approx\\sqrt\{D\}, creating a norm ratio ofdc≈22\\sqrt\{d\_\{c\}\}\\approx 22\(wheredc=512d\_\{c\}=512is the embedding dimension\), implying the noise prior is physically much larger than the data manifold; \(2\)Manifold sparsity: the analysis \(Figure[1](https://arxiv.org/html/2605.05736#S1.F1)\) reveals that only dozens of components capture 90% variance whent=1t=1despiteD\>3,000D\>3,000, which means that isotropic samples have negligible probability of landing near the data manifold\. Our low\-rank decomposition addresses both issues through manifold\-anchored initialization\. To address the dimensionality challenge, we learn a low\-rank factorization of the latent space:
𝐙≈𝐔𝐕⊤,𝐔∈ℝM×r,𝐕∈ℝD×r,\\mathbf\{Z\}\\approx\\mathbf\{U\}\\mathbf\{V\}^\{\\top\},\\quad\\mathbf\{U\}\\in\\mathbb\{R\}^\{M\\times r\},\\;\\mathbf\{V\}\\in\\mathbb\{R\}^\{D\\times r\},\(7\)where𝐕\\mathbf\{V\}is a global basis and𝐔\\mathbf\{U\}is a learnable set of low\-rank support coordinates for the encoded Stage\-2 VQ latents\. We do not prefit a separate SVD or reconstruction loss;𝐔,𝐕\\mathbf\{U\},\\mathbf\{V\}are optimized end\-to\-end with the flow objective and coordinate regularization\. These supports only parameterize latent initialization: no raw time series are stored or retrieved, and generation samples a continuous coordinate that is subsequently transported by the learned flow\. The extra memory isO\(Mr\+Dr\)O\(Mr\+Dr\)withr≪Dr\\ll D, and Table[3](https://arxiv.org/html/2605.05736#S5.T3)shows thatMMcan be substantially reduced\.
Coordinate Regularization\.To ensure well\-behaved coordinate distributions suitable for density estimation, we regularize toward zero mean and unit variance:
ℒreg=λμ‖𝐮¯‖2\+λσ\(\|std\(𝐔\)−1\|\),\\mathcal\{L\}\_\{\\text\{reg\}\}=\\lambda\_\{\\mu\}\\\|\\bar\{\\mathbf\{u\}\}\\\|^\{2\}\+\\lambda\_\{\\sigma\}\(\|\\text\{std\}\(\\mathbf\{U\}\)\-1\|\),\(8\)where𝐮¯=1N∑i𝐮i\\bar\{\\mathbf\{u\}\}=\\frac\{1\}\{N\}\\sum\_\{i\}\\mathbf\{u\}\_\{i\}is the mean coordinate andstd\(𝐔\)\\text\{std\}\(\\mathbf\{U\}\)is the standard deviation across samples\.
Topology\-Preserving Latent Anchor Prior\.Rather than fitting the transport initializer in raw data space or relying on an uninformative isotropic Gaussian prior, we construct a learned anchor prior over the low\-rank latent anchors, implemented with kernel smoothing:
panchor\(𝐮\)=1N∑i=1N𝒦h\(𝐮−𝐮i\),p\_\{\\text\{anchor\}\}\(\\mathbf\{u\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\mathcal\{K\}\_\{h\}\(\\mathbf\{u\}\-\\mathbf\{u\}\_\{i\}\),\(9\)where the bandwidthhhis not an arbitrary noise scale, but a topological parameter governing manifold connectivity\. Crucially, since the coordinates are globally regularized to unit variance \(std\(𝐔\)≈1\\text\{std\}\(\\mathbf\{U\}\)\\approx 1\), the average nearest\-neighbor distanced¯NN\\bar\{d\}\_\{\\text\{NN\}\}is empirically small relative to the coordinate scale\. By enforcingh∝d¯NNh\\propto\\bar\{d\}\_\{\\text\{NN\}\}, this geometrically calibrated bandwidth bridges local gaps between latent supports without over\-smoothing the global topology\. Thus, the kernel smoother is an auxiliary continuous sampler over the support set, not a lookup generator; the learned flow carries the final generative dynamics\.
Manifold\-Anchored Initialization\.Given a sampled coordinate𝐮∼panchor\\mathbf\{u\}\\sim p\_\{\\text\{anchor\}\}, the flow initialization is𝐳0=normalizeℓ2\(𝐮𝐕⊤\)\\mathbf\{z\}\_\{0\}=\\text\{normalize\}\_\{\\ell\_\{2\}\}\(\\mathbf\{u\}\\mathbf\{V\}^\{\\top\}\)\. Because𝐮\\mathbf\{u\}is drawn from a continuous support within the highly bottleneckedrr\-dimensional subspace \(r≪Dr\\ll D\), this initialization acts as a principled manifold interpolation mechanism\. The learned anchor scaffold shapes where generation starts, while the transport mapvθv\_\{\\theta\}is responsible for producing final samples beyond those anchors\.
### 4\.3Categorical Flow Matching for VQ\-VAE Latents
In VQ\-VAE latent spaces, endpoints𝐳1\\mathbf\{z\}\_\{1\}must be codebook embeddings\{𝐜k\}k=1K\\\{\\mathbf\{c\}\_\{k\}\\\}\_\{k=1\}^\{K\}\. Following variational flow matching\[[11](https://arxiv.org/html/2605.05736#bib.bib24)\], we model the posterior over endpoints as categorical:
qθ\(c\|𝐳t\)\\displaystyle q\_\{\\theta\}\(c\|\\mathbf\{z\}\_\{t\}\)=Cat\(c\|πθt\(𝐳t\)\),\\displaystyle=\\text\{Cat\}\(c\|\\pi\_\{\\theta\}^\{t\}\(\\mathbf\{z\}\_\{t\}\)\),\(10\)πθt,k\(𝐳t\)\\displaystyle\\pi\_\{\\theta\}^\{t,k\}\(\\mathbf\{z\}\_\{t\}\)=exp\(fθk\(𝐳t,t\)/τ\)∑j=1Kexp\(fθj\(𝐳t,t\)/τ\),\\displaystyle=\\frac\{\\exp\(f\_\{\\theta\}^\{k\}\(\\mathbf\{z\}\_\{t\},t\)/\\tau\)\}\{\\sum\_\{j=1\}^\{K\}\\exp\(f\_\{\\theta\}^\{j\}\(\\mathbf\{z\}\_\{t\},t\)/\\tau\)\},\(11\)wherefθ\(𝐳t,t\)∈ℝL×Kf\_\{\\theta\}\(\\mathbf\{z\}\_\{t\},t\)\\in\\mathbb\{R\}^\{L\\times K\}outputs logits over codebook indices at each position andτ\\tauis a temperature parameter\.
This categorical posterior yields a continuous velocity field as a probability\-weighted combination of codebook embeddings: Define the posterior mean embeddings
μ∗\(zt\):=∑k=1Kp\(ck∣zt\)ck,μθ\(zt\):=∑k=1Kqθ\(ck∣zt\)ck,\\mu^\{\*\}\(z\_\{t\}\):=\\sum\_\{k=1\}^\{K\}p\(c\_\{k\}\\mid z\_\{t\}\)\\,c\_\{k\},\\qquad\\mu\_\{\\theta\}\(z\_\{t\}\):=\\sum\_\{k=1\}^\{K\}q\_\{\\theta\}\(c\_\{k\}\\mid z\_\{t\}\)\\,c\_\{k\},and the induced velocity fields \(fort∈\[0,1\)t\\in\[0,1\)\)
v∗\(zt,t\):=μ∗\(zt\)−zt1−t,vθ\(zt,t\):=μθ\(zt\)−zt1−t\.v^\{\*\}\(z\_\{t\},t\):=\\frac\{\\mu^\{\*\}\(z\_\{t\}\)\-z\_\{t\}\}\{1\-t\},\\qquad v\_\{\\theta\}\(z\_\{t\},t\):=\\frac\{\\mu\_\{\\theta\}\(z\_\{t\}\)\-z\_\{t\}\}\{1\-t\}\.
whereμθ\(𝐳t\)=∑kπθk\(𝐳t\)𝐜k\\mu\_\{\\theta\}\(\\mathbf\{z\}\_\{t\}\)=\\sum\_\{k\}\\pi\_\{\\theta\}^\{k\}\(\\mathbf\{z\}\_\{t\}\)\\mathbf\{c\}\_\{k\}is the expected codebook embedding under the predicted distribution\. This formulation elegantly bridges discrete and continuous: the model predicts a distribution over discrete codes, but transport occurs smoothly in embedding space\.
Cross\-Entropy Training Objective\.The variational flow matching objective reduces to cross\-entropy between predicted posteriors and ground\-truth indices:
ℒCE=−𝔼t,𝐳t\[logqθ\(c∗\|𝐳t\)\]=−𝔼t,𝐳t\[∑i=1Llogπθci∗\(𝐳t\)\],\\mathcal\{L\}\_\{\\text\{CE\}\}=\-\\mathbb\{E\}\_\{t,\\mathbf\{z\}\_\{t\}\}\\left\[\\log q\_\{\\theta\}\(c^\{\*\}\|\\mathbf\{z\}\_\{t\}\)\\right\]=\-\\mathbb\{E\}\_\{t,\\mathbf\{z\}\_\{t\}\}\\left\[\\sum\_\{i=1\}^\{L\}\\log\\pi\_\{\\theta\}^\{c\_\{i\}^\{\*\}\}\(\\mathbf\{z\}\_\{t\}\)\\right\],\(12\)wherec∗c^\{\*\}denotes the observed VQ endpoint label for each sampled path, i\.e\., the empirical hard\-label realization of the endpoint posterior\. This provides direct discrete supervision—unlike MSE regression that ignores categorical structure—while maintaining geometric awareness through probability\-weighted embedding combinations\.
Advantages of Categorical Supervision\.Cross\-entropy loss provides three benefits: \(1\)*explicit token\-level supervision*that directly teaches which codebook entry to select; \(2\)*uncertainty quantification*over plausible codes, enabling soft assignments during transport; and \(3\)*temperature\-controlled generation*where lowerτ\\tausharpens predictions for higher fidelity while higherτ\\tauincreases diversity\.
Why SDFlow Generalizes\.The kernel\-smoothed anchor prior is a continuous initializer over low\-rank VQ\-latent coordinates, not a raw\-data generator; Appendix[C](https://arxiv.org/html/2605.05736#A3)provides the theoretical perspective, while Section[5\.3](https://arxiv.org/html/2605.05736#S5.SS3)reports held\-out latent\-flow stress tests\.
### 4\.4Architecture and Training
Flow Network Architecture\.We employ a Diffusion Transformer \(DiT\)\[[19](https://arxiv.org/html/2605.05736#bib.bib46)\]adapted for sequential data\. The input is the interpolated latent𝐳t∈ℝL×dc\\mathbf\{z\}\_\{t\}\\in\\mathbb\{R\}^\{L\\times d\_\{c\}\}treated as a sequence ofLLtokens\. Time conditioning uses adaptive layer normalization \(AdaLN\): sinusoidal embeddings ofttare projected to scale and shift parameters that modulate layer statistics\. A learnable global token is prepended to aggregate sequence\-level information\. The output is logits over theKK\-dimensional codebook at each position\. The training loss combines categorical cross\-entropy with coordinate regularization:
ℒ=ℒCE\+λμℒμ\+λσℒσ\.\\mathcal\{L\}=\\mathcal\{L\}\_\{\\text\{CE\}\}\+\\lambda\_\{\\mu\}\\mathcal\{L\}\_\{\\mu\}\+\\lambda\_\{\\sigma\}\\mathcal\{L\}\_\{\\sigma\}\.\(13\)whereλμ\\lambda\_\{\\mu\}andλσ\\lambda\_\{\\sigma\}are balancing coefficients that keep the𝐔\\mathbf\{U\}near zero mean and unit variance\.
Inference Procedure\.Generation proceeds in five steps: \(1\) Sample coordinate𝐮∼panchor\\mathbf\{u\}\\sim p\_\{\\text\{anchor\}\}with bandwidthhh; \(2\) Compute anchor𝐳0=normalize\(𝐮𝐕⊤\)\\mathbf\{z\}\_\{0\}=\\text\{normalize\}\(\\mathbf\{u\}\\mathbf\{V\}^\{\\top\}\); \(3\) Integrate the learned ODE forward using Euler steps with temperature\-scaled softmax; \(4\) Quantize final latent to nearest codebook entries via cosine similarity; \(5\) Decode through the frozen VQ\-VAE decoder to obtain generated time series\. The kernel\-smoothed prior only provides the initialization scaffold; the learned flow carries the sample to the final output\.
### 4\.5Theoretical Foundation
###### Theorem 4\.1\(Transport Complexity: Gaussian vs\. Manifold\-Anchored Initialization\)\.
Let𝒟\\mathcal\{D\}be the data distribution supported onℝD\\mathbb\{R\}^\{D\}\. Assume the data effectively lies near anrr\-dimensional linear subspaceℳ\\mathcal\{M\}spanned by a semi\-orthogonal basis𝐕∈ℝD×r\\mathbf\{V\}\\in\\mathbb\{R\}^\{D\\times r\}\(r≪Dr\\ll D\), such that any data sample𝐳∼𝒟\\mathbf\{z\}\\sim\\mathcal\{D\}can be decomposed as𝐳=𝐕𝐮∗\+ϵ\\mathbf\{z\}=\\mathbf\{V\}\\mathbf\{u\}^\{\*\}\+\\mathbf\{\\epsilon\}, where𝐮∗∈ℝr\\mathbf\{u\}^\{\*\}\\in\\mathbb\{R\}^\{r\}is the intrinsic coordinate and‖ϵ‖2≤ϵ2\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\\leq\\epsilon^\{2\}is the bounded approximation error\. Let𝐳0\\mathbf\{z\}\_\{0\}denote the initialization point for the flow\. The expected squared transport distance𝔼\[‖𝐳−𝐳0‖2\]\\mathbb\{E\}\[\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}\]behaves as follows:
1. 1\.Gaussian Initialization\.If𝐳0∼𝒩\(𝟎,𝐈D\)\\mathbf\{z\}\_\{0\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\_\{D\}\)and the data is bounded \(i\.e\.,𝔼\[‖𝐳‖2\]=C<∞\\mathbb\{E\}\[\\\|\\mathbf\{z\}\\\|^\{2\}\]=C<\\infty\), then the transport distance scales linearly with the ambient dimension: 𝔼𝐳,𝐳0\[‖𝐳−𝐳0‖2\]=D\+C=Θ\(D\)\.\\mathbb\{E\}\_\{\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\}\\big\[\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}\\big\]=D\+C=\\Theta\(D\)\.\(14\)
2. 2\.Manifold\-Anchored Initialization\.Let𝐳0=𝐕𝐮\\mathbf\{z\}\_\{0\}=\\mathbf\{V\}\\mathbf\{u\}, where𝐮\\mathbf\{u\}is sampled via a topology\-preserving anchor prior with bandwidthhh\. Assuming the prior ensures local sampling such that𝔼\[‖𝐮−𝐮∗‖2\]≤h2\\mathbb\{E\}\[\\\|\\mathbf\{u\}\-\\mathbf\{u\}^\{\*\}\\\|^\{2\}\]\\leq h^\{2\}, the transport distance is independent of the ambient dimensionDD: 𝔼𝐳,𝐳0\[‖𝐳−𝐳0‖2\]≤σmax2\(𝐕\)h2\+ϵ2=O\(h2\+ϵ2\)\.\\mathbb\{E\}\_\{\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\}\\big\[\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}\\big\]\\leq\\sigma\_\{\\max\}^\{2\}\(\\mathbf\{V\}\)h^\{2\}\+\\epsilon^\{2\}=O\(h^\{2\}\+\\epsilon^\{2\}\)\.\(15\)
##### Theoretical Implication\.
Theorem[4\.1](https://arxiv.org/html/2605.05736#S4.Thmtheorem1)highlights the fundamental advantage of our approach\. Eq\. \([14](https://arxiv.org/html/2605.05736#S4.E14)\) shows that standard flow matching must transport probability mass across a squared distance proportional to the ambient dimensionDD\(typically\>3000\>3000in VQ\-VAE spaces\), creating an intractable optimization landscape\. In contrast, Eq\. \([15](https://arxiv.org/html/2605.05736#S4.E15)\) demonstrates that SDFlow reduces the transport cost to a term controlled by the intrinsic manifold properties \(hhandϵ\\epsilon\), effectively bypassing the curse of dimensionality\.This transforms a global transport problem into a local interpolation problem, drastically reducing the difficulty of learning the velocity field\.
##### Kernel\-Smoothed Anchor Prior\.
The kernel smoother is used only to define a continuous initialization distribution over the learned low\-rank coordinates, not to generate time series by itself\. Appendix[C](https://arxiv.org/html/2605.05736#A3)further shows that this prior can be interpreted as an explicit RBF mixture over latent anchors, and that kernel smoothing enjoys the standard KDE rateO\(N−4/\(r\+4\)\)O\(N^\{\-4/\(r\+4\)\}\)on the intrinsic coordinate space rather than the much slower raw\-space rateO\(N−4/\(D\+4\)\)O\(N^\{\-4/\(D\+4\)\}\)withD≫rD\\gg r\. This explains why local latent support smoothing is appropriate for initialization while the learned flow remains responsible for generation\.
###### Proposition 4\.2\(Consistency of Categorical Flow Matching\)\.
Let𝒞=\{ck\}k=1K⊂ℝd\\mathcal\{C\}=\\\{c\_\{k\}\\\}\_\{k=1\}^\{K\}\\subset\\mathbb\{R\}^\{d\}be a codebook with bounded normmaxk‖ck‖2≤R\\max\_\{k\}\\\|c\_\{k\}\\\|\_\{2\}\\leq R\. Letp\(c∣zt\)p\(c\\mid z\_\{t\}\)be the true categorical posterior over codebook indices andqθ\(c∣zt\)q\_\{\\theta\}\(c\\mid z\_\{t\}\)be its model prediction\.
Let the time\-weighted cross\-entropy objective be
ℒwCE\(θ\):=𝔼t∼τ,zt\[1\(1−t\)2𝔼c∼p\(⋅∣zt\)\[−logqθ\(c∣zt\)\]\],\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}\(\\theta\):=\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\\!\\left\[\\frac\{1\}\{\(1\-t\)^\{2\}\}\\mathbb\{E\}\_\{c\\sim p\(\\cdot\\mid z\_\{t\}\)\}\[\-\\log q\_\{\\theta\}\(c\\mid z\_\{t\}\)\]\\right\],and denote its Bayes\-optimal value
ℒwCE∗:=𝔼t∼τ,zt\[H\(p\(⋅∣zt\)\)\(1−t\)2\]\.\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}^\{\*\}:=\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\\!\\left\[\\frac\{H\(p\(\\cdot\\mid z\_\{t\}\)\)\}\{\(1\-t\)^\{2\}\}\\right\]\.Then minimizing this weighted categorical objective controls the mean\-squared error of the induced velocity field:
𝔼t∼τ,zt\[‖vθ\(zt,t\)−v∗\(zt,t\)‖22\]≤2R2⋅\(ℒwCE\(θ\)−ℒwCE∗\)\.\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\big\[\\\|v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)\\\|\_\{2\}^\{2\}\\big\]\\;\\leq\\;2R^\{2\}\\cdot\\Big\(\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}\(\\theta\)\-\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}^\{\*\}\\Big\)\.\(16\)For the unweighted CE used in practice, the same argument gives a time\-weighted KL control; witht≤1−δt\\leq 1\-\\deltaor a bounded importance weight, this reduces to the usual CE control up to a finite constant\.
##### Explanation\.
Proposition[4\.2](https://arxiv.org/html/2605.05736#S4.Thmtheorem2)shows that categorical supervision is not merely a classification surrogate: the time\-weighted categorical cross\-entropy controls the velocity\-field MSE that standard flow matching seeks to minimize\. In practice, our cosine time sampling avoids the singular region neart=1t=1, making the unweighted CE a stable surrogate\. The complete proofs can be found in Appendix[A](https://arxiv.org/html/2605.05736#A1)and Appendix[B](https://arxiv.org/html/2605.05736#A2)\.
## 5Experiments
### 5\.1Experimental Setup
We conduct comprehensive experiments to evaluate SDFlow on both standard benchmarks and challenging long\-sequence generation scenarios\. We evaluate on four datasets spanning diverse domains and complexities, following the protocol established by prior work\[[28](https://arxiv.org/html/2605.05736#bib.bib26),[7](https://arxiv.org/html/2605.05736#bib.bib32)\]\. Datasets include: Sines, Stocks, ETTh and Energy\. We adopt three complementary metrics following standard practice: Discriminative Score \(DS\), Predictive Score \(PS\) and Context\-FID\. All experiments report mean and standard deviation over 5 random seeds\. We compare against representative methods from each paradigm:GAN\-based: TimeGAN\[[28](https://arxiv.org/html/2605.05736#bib.bib26)\], COT\-GAN\[[26](https://arxiv.org/html/2605.05736#bib.bib27)\];VAE\-based: TimeVAE\[[9](https://arxiv.org/html/2605.05736#bib.bib28)\];Diffusion\-based: DiffWave\[[15](https://arxiv.org/html/2605.05736#bib.bib29)\], DiffTime\[[8](https://arxiv.org/html/2605.05736#bib.bib30)\], Diffusion\-TS\[[29](https://arxiv.org/html/2605.05736#bib.bib31)\];Discrete token: SDformer\-m \(masked\), SDformer\-ar \(autoregressive\)\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\], TimeMAR\-L\[[27](https://arxiv.org/html/2605.05736#bib.bib1)\]\.Flow\-based: FlowTS\[[14](https://arxiv.org/html/2605.05736#bib.bib23)\]\.
We use the same VQ\-VAE tokenizer as SDformer for fair comparison, with codebook sizeK=512K=512, latent dimensiondc=512d\_\{c\}=512, and downsampling rates=4s=4\. For SDFlow, we use rankr=256r=256with one DiT layer forL=24L=24, and rankr=1024r=1024with three DiT layers forL=256L=256\. The low\-rank coordinates are normalized before constructing the anchor prior, and the bandwidthhhis selected from\[0\.03,0\.20\]\[0\.03,0\.20\]; in Energy, we useh=0\.06h=0\.06\. More implementation details are provided in Appendix[D](https://arxiv.org/html/2605.05736#A4)\.
MetricDatasetTimeGANCOT\-GANTimeVAEDiffWaveDiffTimeDiff\-TSFlowTSSDformer\-mSDformer\-arOursDS↓\\downarrowSines\.011±\\pm\.008\.254±\\pm\.137\.041±\\pm\.044\.017±\\pm\.008\.013±\\pm\.006\.006±\\pm\.007\.005±\\pm\.005\.008±\\pm\.004\.006±\\pm\.004\.006±\\pm\.006Stocks\.102±\\pm\.021\.230±\\pm\.016\.145±\\pm\.120\.232±\\pm\.061\.097±\\pm\.016\.067±\\pm\.015\.019±\\pm\.013\.020±\\pm\.011\.010±\\pm\.006\.003±\\pm\.003ETTh\.114±\\pm\.055\.325±\\pm\.099\.209±\\pm\.058\.190±\\pm\.008\.100±\\pm\.007\.061±\\pm\.009\.011±\\pm\.015\.022±\\pm\.001\.003±\\pm\.001\.002±\\pm\.003Energy\.236±\\pm\.012\.498±\\pm\.002\.499±\\pm\.000\.493±\\pm\.004\.445±\\pm\.004\.122±\\pm\.003\.053±\\pm\.010\.062±\\pm\.006\.006±\\pm\.004\.006±\\pm\.002PS↓\\downarrowSines\.093±\\pm\.019\.100±\\pm\.000\.093±\\pm\.000\.093±\\pm\.000\.093±\\pm\.000\.093±\\pm\.000\.092±\\pm\.000\.093±\\pm\.000\.093±\\pm\.000\.092±\\pm\.000Stocks\.038±\\pm\.001\.047±\\pm\.001\.039±\\pm\.000\.047±\\pm\.000\.038±\\pm\.001\.036±\\pm\.000\.036±\\pm\.000\.037±\\pm\.000\.037±\\pm\.000\.036±\\pm\.000ETTh\.124±\\pm\.001\.129±\\pm\.000\.126±\\pm\.004\.130±\\pm\.001\.121±\\pm\.004\.119±\\pm\.002\.118±\\pm\.005\.119±\\pm\.002\.118±\\pm\.002\.118±\\pm\.001Energy\.273±\\pm\.004\.259±\\pm\.000\.292±\\pm\.000\.251±\\pm\.000\.252±\\pm\.000\.250±\\pm\.000\.250±\\pm\.000\.250±\\pm\.000\.249±\\pm\.000\.249±\\pm\.000C\-FID↓\\downarrowSines\.101±\\pm\.0141\.337±\\pm\.068\.307±\\pm\.060\.014±\\pm\.002\.006±\\pm\.001\.006±\\pm\.000\.002±\\pm\.000\.010±\\pm\.002\.001±\\pm\.000\.0004±\\pm\.000Stocks\.103±\\pm\.013\.408±\\pm\.086\.215±\\pm\.035\.232±\\pm\.032\.236±\\pm\.074\.147±\\pm\.025\.015±\\pm\.003\.034±\\pm\.008\.002±\\pm\.000\.001±\\pm\.000ETTh\.300±\\pm\.013\.980±\\pm\.071\.805±\\pm\.186\.873±\\pm\.061\.299±\\pm\.044\.116±\\pm\.010\.024±\\pm\.001\.019±\\pm\.003\.008±\\pm\.001\.001±\\pm\.000Energy\.767±\\pm\.1031\.039±\\pm\.0281\.631±\\pm\.1421\.031±\\pm\.131\.279±\\pm\.045\.089±\\pm\.024\.031±\\pm\.004\.041±\\pm\.005\.003±\\pm\.000\.001±\\pm\.000
Table 1:Unconditional generation results on standard benchmarks \(L=24L=24\)\. Best results inbold, second bestunderlined\. Lower is better for all metrics\. Results show mean±\\pmstd over 5 runs\.
### 5\.2Main Results
#### 5\.2\.1Short\-Sequence Generation \(L=24L=24\)\.
Table[1](https://arxiv.org/html/2605.05736#S5.T1)presents results on the standard short\-sequence benchmark\. SDFlow achieves competitive or superior performance across all datasets\. Notably, on Energy, SDFlow matches the state\-of\-the\-art DS \(0\.006\) while achieving dramatically superior Context\-FID \(0\.001 vs\. 0\.003\), indicating better distributional coverage beyond fooling discriminators\. The t\-SNE visualizations \(Figure[7](https://arxiv.org/html/2605.05736#A9.F7)\) confirm that generated samples align with real data, filling the manifold without complete overlap\.
#### 5\.2\.2Long\-Sequence Generation \(L:64,128,256L:64,128,256\)\.
Discriminative Score↓\\downarrowPredictive Score↓\\downarrowContext\-FID↓\\downarrowMethodL=64L=64L=128L=128L=256L=256L=64L=64L=128L=128L=256L=256L=64L=64L=128L=128L=256L=256ETTh DatasetTimeGAN0\.227±\\pm\.0780\.188±\\pm\.0740\.442±\\pm\.0560\.132±\\pm\.0080\.153±\\pm\.0140\.220±\\pm\.0081\.130±\\pm\.1021\.553±\\pm\.1695\.872±\\pm\.208COT\-GAN0\.296±\\pm\.3480\.451±\\pm\.0800\.461±\\pm\.0100\.135±\\pm\.0030\.126±\\pm\.0010\.129±\\pm\.0003\.008±\\pm\.2772\.639±\\pm\.4274\.075±\\pm\.894TimeVAE0\.171±\\pm\.1420\.154±\\pm\.0870\.178±\\pm\.0760\.118±\\pm\.0040\.113±\\pm\.0050\.110±\\pm\.0270\.827±\\pm\.1461\.062±\\pm\.1340\.826±\\pm\.093DiffWave0\.254±\\pm\.0740\.274±\\pm\.0470\.304±\\pm\.0680\.133±\\pm\.0080\.129±\\pm\.0030\.132±\\pm\.0011\.543±\\pm\.1532\.354±\\pm\.1702\.899±\\pm\.289DiffTime0\.150±\\pm\.0030\.176±\\pm\.0150\.243±\\pm\.0050\.118±\\pm\.0040\.120±\\pm\.0080\.118±\\pm\.0031\.279±\\pm\.0832\.554±\\pm\.3183\.524±\\pm\.830Diffusion\-TS0\.106±\\pm\.0480\.144±\\pm\.0600\.060±\\pm\.0300\.116±\\pm\.0000\.110±\\pm\.0030\.109±\\pm\.0130\.631±\\pm\.0580\.787±\\pm\.0620\.423±\\pm\.038FlowTS0\.010±\\pm\.0040\.040±\\pm\.0120\.081±\\pm\.0220\.115±\\pm\.0050\.104±\\pm\.0130\.107±\\pm\.0050\.039±\\pm\.0030\.128±\\pm\.0070\.302±\\pm\.018SDformer\-ar0\.018±\\pm\.0070\.013±\\pm\.0050\.008±\\pm\.0060\.116±\\pm\.0060\.110±\\pm\.0070\.095±\\pm\.0030\.018±\\pm\.0030\.024±\\pm\.0010\.021±\\pm\.001TimeMAR\-L0\.005±\\pm\.0040\.008±\\pm\.0010\.006±\\pm\.0060\.114±\\pm\.0040\.110±\\pm\.0070\.105±\\pm\.0070\.002±\\pm\.0020\.002±\\pm\.0010\.002±\\pm\.001SDFlow \(Ours\)0\.003±\\pm\.0000\.007±\\pm\.0030\.005±\\pm\.0020\.113±\\pm\.0030\.109±\\pm\.0060\.105±\\pm\.0040\.001±\\pm\.0000\.001±\\pm\.0000\.001±\\pm\.000Original———0\.114±\\pm\.0060\.108±\\pm\.0050\.106±\\pm\.010———Energy DatasetTimeGAN0\.498±\\pm\.0010\.499±\\pm\.0010\.499±\\pm\.0000\.291±\\pm\.0030\.303±\\pm\.0020\.351±\\pm\.0041\.230±\\pm\.0702\.535±\\pm\.3725\.032±\\pm\.831COT\-GAN0\.499±\\pm\.0010\.499±\\pm\.0010\.498±\\pm\.0040\.262±\\pm\.0020\.269±\\pm\.0020\.275±\\pm\.0041\.824±\\pm\.1441\.822±\\pm\.2712\.533±\\pm\.467TimeVAE0\.499±\\pm\.0000\.499±\\pm\.0000\.499±\\pm\.0000\.302±\\pm\.0010\.318±\\pm\.0000\.353±\\pm\.0032\.662±\\pm\.0873\.125±\\pm\.1063\.768±\\pm\.998DiffWave0\.497±\\pm\.0040\.499±\\pm\.0010\.499±\\pm\.0000\.252±\\pm\.0010\.252±\\pm\.0000\.251±\\pm\.0002\.697±\\pm\.4185\.552±\\pm\.5285\.572±\\pm\.584DiffTime0\.328±\\pm\.0310\.396±\\pm\.0240\.437±\\pm\.0950\.252±\\pm\.0000\.251±\\pm\.0000\.251±\\pm\.0000\.762±\\pm\.1571\.344±\\pm\.1314\.735±\\pm\.729Diffusion\-TS0\.078±\\pm\.0210\.143±\\pm\.0750\.290±\\pm\.1230\.249±\\pm\.0000\.247±\\pm\.0010\.245±\\pm\.0010\.135±\\pm\.0170\.087±\\pm\.0190\.126±\\pm\.024SDformer\-ar0\.010±\\pm\.0070\.013±\\pm\.0070\.017±\\pm\.0030\.247±\\pm\.0010\.244±\\pm\.0000\.243±\\pm\.0020\.031±\\pm\.0020\.036±\\pm\.0020\.041±\\pm\.003TimeMAR\-L0\.006±\\pm\.0040\.005±\\pm\.0050\.009±\\pm\.0050\.247±\\pm\.0010\.244±\\pm\.0010\.243±\\pm\.0030\.002±\\pm\.0000\.003±\\pm\.0000\.008±\\pm\.001SDFlow \(Ours\)0\.004±\\pm\.0010\.005±\\pm\.0040\.007±\\pm\.0060\.247±\\pm\.0000\.244±\\pm\.0010\.242±\\pm\.0020\.002±\\pm\.0000\.002±\\pm\.0000\.002±\\pm\.000Original———0\.245±\\pm\.0020\.243±\\pm\.0000\.243±\\pm\.000———
Table 2:Unconditional long\-sequence generation results \(L=64,128,256L=64,128,256\)\. Best results inbold, second bestunderlined\. Lower is better for all metrics\. Results show mean±\\pmstd over 5 runs\.Table[2](https://arxiv.org/html/2605.05736#S5.T2)presents results on the primary evaluation setting where SDFlow demonstrates its fundamental advantages over AR methods\. As length increases, SDformer\-ar exhibits systematic degradation due to exposure bias and error accumulation\. AtL=256L=256, SDformer\-ar achieves DS of 0\.008 on ETTh and 0\.017 on Energy—significant degradation from its strong short\-sequence performance\. Even when TimeMAR\-L \(≥40M\\geq 40M\) has a parameter quantity that is an order of magnitude larger than ours, its performance is still inferior to ours in the vast majority of cases\.
In contrast, SDFlow maintains stable quality across all lengths through parallel generation that eliminates cascading errors\. AtL=256L=256: DS of 0\.005 on ETTh \(37\.5% improvement over SDformer\-ar, 16\.6% improvement over TimeMAR\-L\)\. The Context\-FID improvements are even more dramatic: 0\.001 vs\. 0\.021 on ETTh \(95\.2% reduction\) and 0\.002 vs\. 0\.041 on Energy \(95\.1% reduction\)\. These results indicate that exposure bias is a major bottleneck for AR token modeling in long\-horizon generation\. Non\-AR generation via SDFlow provides a principled alternative\.
#### 5\.2\.3Spectral Analysis




Figure 3:Singular Value Spectrum Analysis \(Energy,D=3072D=3072\)\.To verify whether our model learns the intrinsic data structure, we analyze the singular value spectrum of the feature representations\. As shown in Figure[3](https://arxiv.org/html/2605.05736#S5.F3), we observe a significant difference between the learned Manifold \(red\) and the Gaussian noise \(blue\)\. Whenttis close to zero, the singular values of the Manifold drop sharply, with the top 200 components explaining more than 90% of the variance\. This steep spectral decay indicates that our method effectively recovers the low\-dimensional structure of the data\. Conversely, the Gaussian baseline exhibits a flat spectrum, characteristic of unstructured high\-dimensional noise\. This suggests that the flow trajectories transport the noise distribution onto a concentrated data manifold\.
#### 5\.2\.4Inference Efficiency
We compare the inference time for generating 1,024 samples \(L=24L=24\)\. SDFlow requires only0\.04–0\.05sacross all datasets \(e\.g\., 0\.05s on Sines, 0\.04s on Energy\), drastically outperforming SDformer\-ar \(0\.15–0\.40s\) and Diffusion\-TS \(9\.57–34\.92s\)\. This translates to a3\.0×\\timesto 10\.0×\\timesspeedupover the AR baseline\. The gain comes from replacingLLsequential AR decoding passes withSSparallel refinement passes \(S=20S=20\), while each pass still uses the same transformer attention pattern; therefore, we report wall\-clock speedups to contextualize long\-horizon efficiency\.
### 5\.3Ablation, Hyperparameter and Generalization Study
Component AblationSensitivityHeld\-out Latent\-Flow GeneralizationVariantDS↓\\downarrowSettingDS↓\\downarrowTrainEvalDS↓\\downarrowC\-FID↓\\downarrowRaw data spaceRank \(rr\)Energy\+ Flow in data space0\.453\+ Static SVD \(r=42r=42\),h=0\.06h=0\.060\.094100% latentsFull0\.0060\.001VQ latent space\+ Learnedr=128r=128,h=0\.06h=0\.060\.01520% latentsHeld\-out 80%0\.0070\.001\+ Gaussian prior0\.218\+ Learnedr=256r=256,h=0\.06h=0\.060\.00610% latentsHeld\-out 90%0\.0090\.002\+ Anchor prior w/o low\-rank0\.173\+ Learnedr=512r=512,h=0\.06h=0\.060\.006Δ\\Delta\(10% vs\. full\)–\.003\.001Low\-rank latent scaffoldBandwidth \(hh\)Sines\+ Gaussian prior0\.218\+h=0\.60h=0\.60,r=256r=2560\.138100% latentsFull0\.0060\.0004\+ Learned MLP prior0\.213\+h=0\.12h=0\.12,r=256r=2560\.04920% latentsHeld\-out 80%0\.0060\.0009\+ Interpolation prior0\.047\+h=0\.06h=0\.06,r=256r=2560\.00610% latentsHeld\-out 90%0\.0070\.0013\+ Learned anchor prior \(Ours\)0\.006\+h=0\.01h=0\.01,r=256r=2560\.008Δ\\Delta\(10% vs\. full\)–\.001\.0009Capacity \(w/o low\-rank\)Solver stepsETTh\+ Smaller codebook,d=256d=2560\.223\+ 10 ODE steps0\.018100% latentsFull0\.0020\.001\+ Smaller codebook,d=128d=1280\.251\+ 20 ODE steps \(Ours\)0\.00650% latentsHeld\-out 50%0\.0030\.002\+ Smaller codebook,d=64d=640\.299\+ 50 ODE steps0\.006Δ\\Delta\(50% vs\. full\)–\.001\.001
Table 3:Ablation, sensitivity, and held\-out latent\-flow generalization\. The left panel isolates key design choices, the middle panel studies rank, bandwidth, and solver sensitivity, and the right panel keeps the VQ tokenizer as a shared representation layer while training the Stage\-2 latent flow and anchors on small encoded subsets\.Representation Space\.Table[3](https://arxiv.org/html/2605.05736#S5.T3)shows that applying flow in data space performs poorly \(DS 0\.453\), whereas SDFlow operates after VQ tokenization\. This supports our central design: generation is more effective over the frozen VQ latent space, producing meaningful synthetic samples for downstream tasks\. The Predictive Score \(TSTR, Train on Synthetic, Test on Real\) further supports this point\.
Low\-Rank Scaffold\.VQ tokenization alone is insufficient: Gaussian initialization \(0\.218\) and anchor initialization without low\-rank structure \(0\.173\) remain weak\.Anchor Prior\.On top of the low\-rank scaffold, generic Gaussian or amortized MLP priors still fail \(0\.218/0\.213\), while the learned anchor prior reaches 0\.006, indicating a learned latent prototype sampler\.Codebook Capacity\.Simply reducing the codebook dimension does not help \(0\.223 ford=256d=256, 0\.251 ford=128d=128\)\.ODE Solver\.S=20S=20matchesS=50S=50and is much better thanS=10S=10, giving an efficient solver budget\.
Held\-out Generalization\.With the VQ tokenizer kept as the shared representation layer, training the Stage\-2 latent flow and anchors on small encoded subsets \(e\.g\., 10%\) still yields close DS/C\-FID on held\-out real distributions\. This supports that the low\-rank latent manifold captures shared distributional geometry rather than relying on point\-wise access to every training trajectory\.
More details are provided in Appendix[G](https://arxiv.org/html/2605.05736#A7)\.
## 6Conclusion
We have presented SDFlow, a principled framework for non\-autoregressive time series generation that mitigates exposure bias in autoregressive token modeling\. By combining low\-rank manifold decomposition with categorical flow matching, SDFlow transforms long\-range transport into tractable local refinement from manifold anchors, offering both high fidelity and computational efficiency\. Comprehensive experiments demonstrate state\-of\-the\-art performance across all benchmarks, with strong improvements on long sequences: up to 95% Context\-FID reduction and 3–10×\\timesfaster inference\.
Limitations\.Currently, SDFlow uses a dataset\-specific VQ tokenizer and codebook\. A natural next step is to develop a universal time\-series tokenizer with a shared codebook, enabling SDFlow to operate in a unified latent space for multi\-domain generation\.
## References
- \[1\]M\. S\. Albergo, N\. M\. Boffi, and E\. Vanden\-Eijnden\(2023\)Stochastic interpolants: a unifying framework for flows and diffusions\.arXiv preprint arXiv:2303\.08797\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1)\.
- \[2\]M\. S\. Albergo and E\. Vanden\-Eijnden\(2022\)Building normalizing flows with stochastic interpolants\.arXiv preprint arXiv:2209\.15571\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1)\.
- \[3\]J\. M\. L\. Alcaraz and N\. Strodthoff\(2022\)Diffusion\-based time series imputation and forecasting with structured state space models\.arXiv preprint arXiv:2208\.09399\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p1.1)\.
- \[4\]S\. Bengio, O\. Vinyals, N\. Jaitly, and N\. Shazeer\(2015\)Scheduled sampling for sequence prediction with recurrent neural networks\.Advances in neural information processing systems28\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p3.1),[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[5\]H\. Chang, H\. Zhang, L\. Jiang, C\. Liu, and W\. T\. Freeman\(2022\)Maskgit: masked generative image transformer\.InProceedings of the IEEE/CVF conference on computer vision and pattern recognition,pp\. 11315–11325\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[6\]R\. T\. Chen and Y\. Lipman\(2023\)Flow matching on general geometries\.arXiv preprint arXiv:2302\.03660\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1)\.
- \[7\]Z\. Chen, F\. SHIBO, Z\. Zhang, X\. Xiao, X\. Gao, and P\. Zhao\(2024\)Sdformer: similarity\-driven discrete transformer for time series generation\.Advances in Neural Information Processing Systems37,pp\. 132179–132207\.Cited by:[4th item](https://arxiv.org/html/2605.05736#A4.I3.i4.p1.1),[Appendix D](https://arxiv.org/html/2605.05736#A4.p1.1),[§1](https://arxiv.org/html/2605.05736#S1.p2.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§3](https://arxiv.org/html/2605.05736#S3.p3.5),[§4\.1](https://arxiv.org/html/2605.05736#S4.SS1.p1.3),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[8\]A\. Coletta, S\. Gopalakrishnan, D\. Borrajo, and S\. Vyetrenko\(2023\)On the constrained time\-series generation problem\.Advances in Neural Information Processing Systems36,pp\. 61048–61059\.Cited by:[3rd item](https://arxiv.org/html/2605.05736#A4.I3.i3.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[9\]A\. Desai, C\. Freeman, Z\. Wang, and I\. Beaver\(2021\)Timevae: a variational auto\-encoder for multivariate time series generation \(2021\)\.arXiv preprint arXiv:2111\.08095\.Cited by:[2nd item](https://arxiv.org/html/2605.05736#A4.I3.i2.p1.1),[§3](https://arxiv.org/html/2605.05736#S3.p2.9),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[10\]Q\. Ding, S\. Wu, H\. Sun, J\. Guo, and J\. Guo\(2020\)Hierarchical multi\-scale gaussian transformer for stock movement prediction\.\.InIjcai,pp\. 4640–4646\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p1.1)\.
- \[11\]F\. Eijkelboom, G\. Bartosh, C\. Andersson Naesseth, M\. Welling, and J\. van de Meent\(2024\)Variational flow matching for graph generation\.Advances in Neural Information Processing Systems37,pp\. 11735–11764\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p6.1),[§2](https://arxiv.org/html/2605.05736#S2.p3.1),[§4\.3](https://arxiv.org/html/2605.05736#S4.SS3.p1.2)\.
- \[12\]P\. Esser, R\. Rombach, and B\. Ommer\(2021\)Taming transformers for high\-resolution image synthesis\.InProceedings of the IEEE/CVF conference on computer vision and pattern recognition,pp\. 12873–12883\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[13\]S\. Feng, C\. Miao, Z\. Zhang, and P\. Zhao\(2024\)Latent diffusion transformer for probabilistic time series forecasting\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.38,pp\. 11979–11987\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p1.1)\.
- \[14\]Y\. Hu, X\. Wang, Z\. Ding, L\. Wu, H\. Zhang, S\. Z\. Li, S\. Wang, J\. Zhang, Z\. Li, and T\. Chen\(2024\)FlowTS: time series generation via rectified flow\.arXiv preprint arXiv:2411\.07506\.Cited by:[5th item](https://arxiv.org/html/2605.05736#A4.I3.i5.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p3.1),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[15\]Z\. Kong, W\. Ping, J\. Huang, K\. Zhao, and B\. Catanzaro\(2020\)Diffwave: a versatile diffusion model for audio synthesis\.arXiv preprint arXiv:2009\.09761\.Cited by:[3rd item](https://arxiv.org/html/2605.05736#A4.I3.i3.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[16\]B\. Lim and S\. Zohren\(2021\)Time\-series forecasting with deep learning: a survey\.Philosophical transactions of the royal society a: mathematical, physical and engineering sciences379\(2194\)\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p1.1)\.
- \[17\]Y\. Lipman, R\. T\. Chen, H\. Ben\-Hamu, M\. Nickel, and M\. Le\(2022\)Flow matching for generative modeling\.arXiv preprint arXiv:2210\.02747\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1),[§3](https://arxiv.org/html/2605.05736#S3.p5.1)\.
- \[18\]X\. Liu, C\. Gong, and Q\. Liu\(2022\)Flow straight and fast: learning to generate and transfer data with rectified flow\.arXiv preprint arXiv:2209\.03003\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1)\.
- \[19\]W\. Peebles and S\. Xie\(2023\)Scalable diffusion models with transformers\.InProceedings of the IEEE/CVF international conference on computer vision,pp\. 4195–4205\.Cited by:[§4\.4](https://arxiv.org/html/2605.05736#S4.SS4.p1.4)\.
- \[20\]R\. B\. Penfold and F\. Zhang\(2013\)Use of interrupted time series analysis in evaluating health care quality improvements\.Academic pediatrics13\(6\),pp\. S38–S44\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p1.1)\.
- \[21\]A\. Ramesh, M\. Pavlov, G\. Goh, S\. Gray, C\. Voss, A\. Radford, M\. Chen, and I\. Sutskever\(2021\)Zero\-shot text\-to\-image generation\.InInternational conference on machine learning,pp\. 8821–8831\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[22\]F\. Schmidt\(2019\)Generalization in generation: a closer look at exposure bias\.arXiv preprint arXiv:1910\.00292\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p3.1),[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[23\]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:[§2](https://arxiv.org/html/2605.05736#S2.p1.1)\.
- \[24\]A\. Tong, K\. Fatras, N\. Malkin, G\. Huguet, Y\. Zhang, J\. Rector\-Brooks, G\. Wolf, and Y\. Bengio\(2023\)Improving and generalizing flow\-based generative models with minibatch optimal transport\.arXiv preprint arXiv:2302\.00482\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p3.1)\.
- \[25\]A\. Van Den Oord, O\. Vinyals,et al\.\(2017\)Neural discrete representation learning\.Advances in neural information processing systems30\.Cited by:[§1](https://arxiv.org/html/2605.05736#S1.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
- \[26\]T\. Xu, L\. K\. Wenliang, M\. Munn, and B\. Acciaio\(2020\)Cot\-gan: generating sequential data via causal optimal transport\.Advances in neural information processing systems33,pp\. 8798–8809\.Cited by:[1st item](https://arxiv.org/html/2605.05736#A4.I3.i1.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[27\]X\. Xu, Q\. Zhong, and J\. Hu\(2026\)TimeMar: multi\-scale autoregressive modeling for unconditional time series generation\.InProceedings of the ACM Web Conference 2026,pp\. 5132–5143\.Cited by:[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[28\]J\. Yoon, D\. Jarrett, and M\. Van der Schaar\(2019\)Time\-series generative adversarial networks\.Advances in neural information processing systems32\.Cited by:[1st item](https://arxiv.org/html/2605.05736#A4.I3.i1.p1.1),[Appendix D](https://arxiv.org/html/2605.05736#A4.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§3](https://arxiv.org/html/2605.05736#S3.p2.9),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[29\]X\. Yuan and Y\. Qiao\(2024\)Diffusion\-ts: interpretable diffusion for general time series generation\.arXiv preprint arXiv:2403\.01742\.Cited by:[3rd item](https://arxiv.org/html/2605.05736#A4.I3.i3.p1.1),[§2](https://arxiv.org/html/2605.05736#S2.p1.1),[§3](https://arxiv.org/html/2605.05736#S3.p2.9),[§5\.1](https://arxiv.org/html/2605.05736#S5.SS1.p1.1)\.
- \[30\]J\. Zhang, Y\. Zhang, X\. Cun, S\. Huang, Y\. Zhang, H\. Zhao, H\. Lu, and X\. Shen\(2023\)T2m\-gpt: generating human motion from textual descriptions with discrete representations\.arXiv preprint arXiv:2301\.06052\.Cited by:[§2](https://arxiv.org/html/2605.05736#S2.p2.1)\.
Appendices for SDFlow
## Appendix AProof of Theorem[4\.1](https://arxiv.org/html/2605.05736#S4.Thmtheorem1)
We prove the two claims in Theorem[4\.1](https://arxiv.org/html/2605.05736#S4.Thmtheorem1)\.
### Part \(i\): Gaussian Initialization
Let𝐳∼𝒟\\mathbf\{z\}\\sim\\mathcal\{D\}and𝐳0∼𝒩\(𝟎,𝐈D\)\\mathbf\{z\}\_\{0\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\_\{D\}\)be independent\. Using the polarization identity,
‖𝐳−𝐳0‖2=‖𝐳‖2\+‖𝐳0‖2−2⟨𝐳,𝐳0⟩\.\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\\|\\mathbf\{z\}\\\|^\{2\}\+\\\|\\mathbf\{z\}\_\{0\}\\\|^\{2\}\-2\\langle\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\\rangle\.\(17\)Taking expectation over\(𝐳,𝐳0\)\(\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\)and using independence gives
𝔼‖𝐳−𝐳0‖2=𝔼‖𝐳‖2\+𝔼‖𝐳0‖2−2𝔼⟨𝐳,𝐳0⟩\.\\mathbb\{E\}\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\mathbb\{E\}\\\|\\mathbf\{z\}\\\|^\{2\}\+\\mathbb\{E\}\\\|\\mathbf\{z\}\_\{0\}\\\|^\{2\}\-2\\,\\mathbb\{E\}\\langle\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\\rangle\.\(18\)The cross term vanishes since𝐳0\\mathbf\{z\}\_\{0\}is zero\-mean and independent of𝐳\\mathbf\{z\}:
𝔼⟨𝐳,𝐳0⟩=𝔼𝐳\[⟨𝐳,𝔼𝐳0\[𝐳0\]⟩\]=𝔼𝐳\[⟨𝐳,𝟎⟩\]=0\.\\mathbb\{E\}\\langle\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\\rangle=\\mathbb\{E\}\_\{\\mathbf\{z\}\}\\Big\[\\big\\langle\\mathbf\{z\},\\,\\mathbb\{E\}\_\{\\mathbf\{z\}\_\{0\}\}\[\\mathbf\{z\}\_\{0\}\]\\big\\rangle\\Big\]=\\mathbb\{E\}\_\{\\mathbf\{z\}\}\\big\[\\langle\\mathbf\{z\},\\mathbf\{0\}\\rangle\\big\]=0\.\(19\)Moreover, for𝐳0∼𝒩\(𝟎,𝐈D\)\\mathbf\{z\}\_\{0\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\_\{D\}\), we have
𝔼‖𝐳0‖2=𝔼\[∑i=1Dz0,i2\]=∑i=1D𝔼\[z0,i2\]=∑i=1DVar\(z0,i\)=D\.\\mathbb\{E\}\\\|\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\mathbb\{E\}\\Big\[\\sum\_\{i=1\}^\{D\}z\_\{0,i\}^\{2\}\\Big\]=\\sum\_\{i=1\}^\{D\}\\mathbb\{E\}\[z\_\{0,i\}^\{2\}\]=\\sum\_\{i=1\}^\{D\}\\mathrm\{Var\}\(z\_\{0,i\}\)=D\.\(20\)By the boundedness assumption𝔼‖𝐳‖2=C<∞\\mathbb\{E\}\\\|\\mathbf\{z\}\\\|^\{2\}=C<\\infty, substituting \([19](https://arxiv.org/html/2605.05736#A1.E19)\) and \([20](https://arxiv.org/html/2605.05736#A1.E20)\) into \([18](https://arxiv.org/html/2605.05736#A1.E18)\) yields
𝔼𝐳,𝐳0\[‖𝐳−𝐳0‖2\]=C\+D,\\mathbb\{E\}\_\{\\mathbf\{z\},\\mathbf\{z\}\_\{0\}\}\\big\[\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}\\big\]=C\+D,which proves \([14](https://arxiv.org/html/2605.05736#S4.E14)\)\. SinceCCis independent ofDD, we haveC\+D=Θ\(D\)C\+D=\\Theta\(D\)\.
### Part \(ii\): Manifold\-Anchored Initialization
Assume𝐕∈ℝD×r\\mathbf\{V\}\\in\\mathbb\{R\}^\{D\\times r\}is semi\-orthogonal and spansℳ\\mathcal\{M\}, and each sample admits the decomposition
𝐳=𝐕𝐮∗\+ϵ,‖ϵ‖2≤ϵ2,\\mathbf\{z\}=\\mathbf\{V\}\\mathbf\{u\}^\{\*\}\+\\mathbf\{\\epsilon\},\\qquad\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\\leq\\epsilon^\{2\},\(21\)where𝐮∗∈ℝr\\mathbf\{u\}^\{\*\}\\in\\mathbb\{R\}^\{r\}is the intrinsic coordinate\. Let the anchored initialization be𝐳0=𝐕𝐮\\mathbf\{z\}\_\{0\}=\\mathbf\{V\}\\mathbf\{u\}, where𝐮∼panchor\\mathbf\{u\}\\sim p\_\{\\mathrm\{anchor\}\}is sampled from the anchor prior and satisfies
𝔼‖𝐮−𝐮∗‖2≤h2\.\\mathbb\{E\}\\\|\\mathbf\{u\}\-\\mathbf\{u\}^\{\*\}\\\|^\{2\}\\leq h^\{2\}\.\(22\)Defineδ:=𝐮−𝐮∗\\delta:=\\mathbf\{u\}\-\\mathbf\{u\}^\{\*\}so that𝐮=𝐮∗\+δ\\mathbf\{u\}=\\mathbf\{u\}^\{\*\}\+\\delta\. Then, using \([21](https://arxiv.org/html/2605.05736#A1.E21)\),
𝐳−𝐳0=\(𝐕𝐮∗\+ϵ\)−𝐕𝐮=𝐕\(𝐮∗−𝐮\)\+ϵ=−𝐕δ\+ϵ\.\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}=\(\\mathbf\{V\}\\mathbf\{u\}^\{\*\}\+\\mathbf\{\\epsilon\}\)\-\\mathbf\{V\}\\mathbf\{u\}=\\mathbf\{V\}\(\\mathbf\{u\}^\{\*\}\-\\mathbf\{u\}\)\+\\mathbf\{\\epsilon\}=\-\\mathbf\{V\}\\delta\+\\mathbf\{\\epsilon\}\.\(23\)Hence,
‖𝐳−𝐳0‖2=‖−𝐕δ\+ϵ‖2=‖𝐕δ‖2\+‖ϵ‖2−2⟨𝐕δ,ϵ⟩\.\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\\|\-\\mathbf\{V\}\\delta\+\\mathbf\{\\epsilon\}\\\|^\{2\}=\\\|\\mathbf\{V\}\\delta\\\|^\{2\}\+\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\-2\\langle\\mathbf\{V\}\\delta,\\mathbf\{\\epsilon\}\\rangle\.\(24\)
##### Cross term control\.
Since𝐕\\mathbf\{V\}is semi\-orthogonal,col\(𝐕\)=ℳ\\mathrm\{col\}\(\\mathbf\{V\}\)=\\mathcal\{M\}\. Interpretingϵ\\mathbf\{\\epsilon\}as the approximation residual orthogonal toℳ\\mathcal\{M\}\(i\.e\.,ϵ∈ℳ⟂\\mathbf\{\\epsilon\}\\in\\mathcal\{M\}^\{\\perp\}\), we have
⟨𝐕δ,ϵ⟩=0,\\langle\\mathbf\{V\}\\delta,\\mathbf\{\\epsilon\}\\rangle=0,\(25\)and therefore
‖𝐳−𝐳0‖2=‖𝐕δ‖2\+‖ϵ‖2\.\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\\|\\mathbf\{V\}\\delta\\\|^\{2\}\+\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\.\(26\)If one does not assumeϵ∈ℳ⟂\\mathbf\{\\epsilon\}\\in\\mathcal\{M\}^\{\\perp\}, a weaker bound still holds by‖a\+b‖2≤2‖a‖2\+2‖b‖2\\\|a\+b\\\|^\{2\}\\leq 2\\\|a\\\|^\{2\}\+2\\\|b\\\|^\{2\}, but we proceed with \([25](https://arxiv.org/html/2605.05736#A1.E25)\) to match the statement of Theorem[4\.1](https://arxiv.org/html/2605.05736#S4.Thmtheorem1)\.
##### Bounding the two terms\.
First, by the operator norm inequality,
‖𝐕δ‖≤‖𝐕‖2‖δ‖=σmax\(𝐕\)‖δ‖,⇒‖𝐕δ‖2≤σmax2\(𝐕\)‖δ‖2\.\\\|\\mathbf\{V\}\\delta\\\|\\leq\\\|\\mathbf\{V\}\\\|\_\{2\}\\\|\\delta\\\|=\\sigma\_\{\\max\}\(\\mathbf\{V\}\)\\\|\\delta\\\|,\\qquad\\Rightarrow\\qquad\\\|\\mathbf\{V\}\\delta\\\|^\{2\}\\leq\\sigma\_\{\\max\}^\{2\}\(\\mathbf\{V\}\)\\\|\\delta\\\|^\{2\}\.\(27\)Taking expectation and using \([22](https://arxiv.org/html/2605.05736#A1.E22)\),
𝔼‖𝐕δ‖2≤σmax2\(𝐕\)𝔼‖δ‖2≤σmax2\(𝐕\)h2\.\\mathbb\{E\}\\\|\\mathbf\{V\}\\delta\\\|^\{2\}\\leq\\sigma\_\{\\max\}^\{2\}\(\\mathbf\{V\}\)\\,\\mathbb\{E\}\\\|\\delta\\\|^\{2\}\\leq\\sigma\_\{\\max\}^\{2\}\(\\mathbf\{V\}\)\\,h^\{2\}\.\(28\)Second, by the bounded approximation error in \([21](https://arxiv.org/html/2605.05736#A1.E21)\),
𝔼‖ϵ‖2≤ϵ2\.\\mathbb\{E\}\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\\leq\\epsilon^\{2\}\.\(29\)
##### Putting everything together\.
Taking expectation in \([26](https://arxiv.org/html/2605.05736#A1.E26)\) and applying \([28](https://arxiv.org/html/2605.05736#A1.E28)\)–\([29](https://arxiv.org/html/2605.05736#A1.E29)\) gives
𝔼‖𝐳−𝐳0‖2=𝔼‖𝐕δ‖2\+𝔼‖ϵ‖2≤σmax2\(𝐕\)h2\+ϵ2,\\mathbb\{E\}\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=\\mathbb\{E\}\\\|\\mathbf\{V\}\\delta\\\|^\{2\}\+\\mathbb\{E\}\\\|\\mathbf\{\\epsilon\}\\\|^\{2\}\\leq\\sigma\_\{\\max\}^\{2\}\(\\mathbf\{V\}\)\\,h^\{2\}\+\\epsilon^\{2\},which is exactly \([15](https://arxiv.org/html/2605.05736#S4.E15)\)\. Finally, sinceσmax\(𝐕\)\\sigma\_\{\\max\}\(\\mathbf\{V\}\)does not depend onDDwhen𝐕\\mathbf\{V\}is semi\-orthogonal \(indeedσmax\(𝐕\)=1\\sigma\_\{\\max\}\(\\mathbf\{V\}\)=1\), we obtain
𝔼‖𝐳−𝐳0‖2=O\(h2\+ϵ2\),\\mathbb\{E\}\\\|\\mathbf\{z\}\-\\mathbf\{z\}\_\{0\}\\\|^\{2\}=O\(h^\{2\}\+\\epsilon^\{2\}\),establishing the dimension\-free scaling claimed in Theorem[4\.1](https://arxiv.org/html/2605.05736#S4.Thmtheorem1)\. ∎
While we assumes a semi\-orthogonal basis V for theoretical tractability, our empirical results indicate that standard unconstrained optimization of V is practically sufficient to achieve the same geometric benefits\.
## Appendix BProof of Proposition[4\.2](https://arxiv.org/html/2605.05736#S4.Thmtheorem2)
We prove the velocity\-field mean\-squared\-error \(MSE\) bound induced by minimizing the cross\-entropy objective\.
##### Step 1: Reduce velocity\-field error to posterior\-mean embedding error\.
By definition,
vθ\(zt,t\)−v∗\(zt,t\)=μθ\(zt\)−zt1−t−μ∗\(zt\)−zt1−t=μθ\(zt\)−μ∗\(zt\)1−t\.v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)=\\frac\{\\mu\_\{\\theta\}\(z\_\{t\}\)\-z\_\{t\}\}\{1\-t\}\-\\frac\{\\mu^\{\*\}\(z\_\{t\}\)\-z\_\{t\}\}\{1\-t\}=\\frac\{\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)\}\{1\-t\}\.Hence,
‖vθ\(zt,t\)−v∗\(zt,t\)‖22=‖μθ\(zt\)−μ∗\(zt\)‖22\(1−t\)2\.\\\|v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)\\\|\_\{2\}^\{2\}=\\frac\{\\\|\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)\\\|\_\{2\}^\{2\}\}\{\(1\-t\)^\{2\}\}\.\(30\)
##### Step 2: Bound‖μθ−μ∗‖\\\|\\mu\_\{\\theta\}\-\\mu^\{\*\}\\\|by theℓ1\\ell\_\{1\}distance between categorical posteriors\.
Recall
μθ\(zt\)−μ∗\(zt\)=∑k=1K\(qθ\(ck∣zt\)−p\(ck∣zt\)\)ck\.\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)=\\sum\_\{k=1\}^\{K\}\\big\(q\_\{\\theta\}\(c\_\{k\}\\mid z\_\{t\}\)\-p\(c\_\{k\}\\mid z\_\{t\}\)\\big\)\\,c\_\{k\}\.Using the triangle inequality and the codebook radius bound‖ck‖2≤R\\\|c\_\{k\}\\\|\_\{2\}\\leq R,
‖μθ\(zt\)−μ∗\(zt\)‖2\\displaystyle\\\|\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)\\\|\_\{2\}≤∑k=1K\|qθ\(ck∣zt\)−p\(ck∣zt\)\|∥ck∥2\\displaystyle\\leq\\sum\_\{k=1\}^\{K\}\\big\|q\_\{\\theta\}\(c\_\{k\}\\mid z\_\{t\}\)\-p\(c\_\{k\}\\mid z\_\{t\}\)\\big\|\\,\\\|c\_\{k\}\\\|\_\{2\}≤R∑k=1K\|qθ\(ck∣zt\)−p\(ck∣zt\)\|=R∥qθ\(⋅∣zt\)−p\(⋅∣zt\)∥1\.\\displaystyle\\leq R\\sum\_\{k=1\}^\{K\}\\big\|q\_\{\\theta\}\(c\_\{k\}\\mid z\_\{t\}\)\-p\(c\_\{k\}\\mid z\_\{t\}\)\\big\|=R\\,\\\|q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\-p\(\\cdot\\mid z\_\{t\}\)\\\|\_\{1\}\.\(31\)Squaring both sides yields
∥μθ\(zt\)−μ∗\(zt\)∥22≤R2∥qθ\(⋅∣zt\)−p\(⋅∣zt\)∥12\.\\\|\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)\\\|\_\{2\}^\{2\}\\leq R^\{2\}\\,\\\|q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\-p\(\\cdot\\mid z\_\{t\}\)\\\|\_\{1\}^\{2\}\.\(32\)
##### Step 3: Convertℓ1\\ell\_\{1\}distance to KL via Pinsker’s inequality\.
Pinsker’s inequality states that for any distributionsp,qp,qon a finite set,
‖p−q‖12≤2KL\(p∥q\)\.\\\|p\-q\\\|\_\{1\}^\{2\}\\leq 2\\,\\mathrm\{KL\}\(p\\\|q\)\.\(33\)Applying \([33](https://arxiv.org/html/2605.05736#A2.E33)\) withp\(⋅∣zt\)p\(\\cdot\\mid z\_\{t\}\)andqθ\(⋅∣zt\)q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)and combining with \([32](https://arxiv.org/html/2605.05736#A2.E32)\) gives
∥μθ\(zt\)−μ∗\(zt\)∥22≤2R2KL\(p\(⋅∣zt\)∥qθ\(⋅∣zt\)\)\.\\\|\\mu\_\{\\theta\}\(z\_\{t\}\)\-\\mu^\{\*\}\(z\_\{t\}\)\\\|\_\{2\}^\{2\}\\leq 2R^\{2\}\\,\\mathrm\{KL\}\\\!\\left\(p\(\\cdot\\mid z\_\{t\}\)\\,\\\|\\,q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\\right\)\.\(34\)
##### Step 4: Take expectations with the correct time weight\.
Substituting \([34](https://arxiv.org/html/2605.05736#A2.E34)\) into \([30](https://arxiv.org/html/2605.05736#A2.E30)\) yields the pointwise bound
∥vθ\(zt,t\)−v∗\(zt,t\)∥22≤2R2\(1−t\)2KL\(p\(⋅∣zt\)∥qθ\(⋅∣zt\)\)\.\\\|v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)\\\|\_\{2\}^\{2\}\\leq\\frac\{2R^\{2\}\}\{\(1\-t\)^\{2\}\}\\,\\mathrm\{KL\}\\\!\\left\(p\(\\cdot\\mid z\_\{t\}\)\\,\\\|\\,q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\\right\)\.Taking expectation over\(t,zt\)\(t,z\_\{t\}\)gives
𝔼t∼τ,zt\[‖vθ\(zt,t\)−v∗\(zt,t\)‖22\]\\displaystyle\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\big\[\\\|v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)\\\|\_\{2\}^\{2\}\\big\]≤2R2𝔼t∼τ,zt\[1\(1−t\)2KL\(p\(⋅∣zt\)∥qθ\(⋅∣zt\)\)\]\.\\displaystyle\\leq 2R^\{2\}\\,\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\\!\\left\[\\frac\{1\}\{\(1\-t\)^\{2\}\}\\mathrm\{KL\}\\\!\\left\(p\(\\cdot\\mid z\_\{t\}\)\\,\\\|\\,q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\\right\)\\right\]\.\(35\)This step keeps the time\-dependent weight inside the expectation and therefore does not require any independence assumption betweentt,ztz\_\{t\}, and the posterior error\.
##### Step 5: Relate weighted KL to weighted cross\-entropy suboptimality\.
For each\(t,zt\)\(t,z\_\{t\}\), the standard decomposition holds:
𝔼c∼p\(⋅∣zt\)\[−logqθ\(c∣zt\)\]=H\(p\(⋅∣zt\)\)\+KL\(p\(⋅∣zt\)∥qθ\(⋅∣zt\)\)\.\\mathbb\{E\}\_\{c\\sim p\(\\cdot\\mid z\_\{t\}\)\}\[\-\\log q\_\{\\theta\}\(c\\mid z\_\{t\}\)\]=H\(p\(\\cdot\\mid z\_\{t\}\)\)\+\\mathrm\{KL\}\\\!\\left\(p\(\\cdot\\mid z\_\{t\}\)\\,\\\|\\,q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\\right\)\.\(36\)Multiplying both sides by\(1−t\)−2\(1\-t\)^\{\-2\}and taking expectation over\(t,zt\)\(t,z\_\{t\}\)yields
ℒwCE\(θ\)−ℒwCE∗=𝔼t∼τ,zt\[1\(1−t\)2KL\(p\(⋅∣zt\)∥qθ\(⋅∣zt\)\)\]\.\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}\(\\theta\)\-\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}^\{\*\}=\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\\!\\left\[\\frac\{1\}\{\(1\-t\)^\{2\}\}\\mathrm\{KL\}\\\!\\left\(p\(\\cdot\\mid z\_\{t\}\)\\,\\\|\\,q\_\{\\theta\}\(\\cdot\\mid z\_\{t\}\)\\right\)\\right\]\.\(37\)
##### Step 6: Conclude the stated bound\.
Combining \([35](https://arxiv.org/html/2605.05736#A2.E35)\) and \([37](https://arxiv.org/html/2605.05736#A2.E37)\) gives
𝔼t∼τ,zt\[‖vθ\(zt,t\)−v∗\(zt,t\)‖22\]≤2R2\(ℒwCE\(θ\)−ℒwCE∗\),\\mathbb\{E\}\_\{t\\sim\\tau,\\,z\_\{t\}\}\\big\[\\\|v\_\{\\theta\}\(z\_\{t\},t\)\-v^\{\*\}\(z\_\{t\},t\)\\\|\_\{2\}^\{2\}\\big\]\\leq 2R^\{2\}\\big\(\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}\(\\theta\)\-\\mathcal\{L\}\_\{\\mathrm\{wCE\}\}^\{\*\}\\big\),which is exactly Eq\. \([16](https://arxiv.org/html/2605.05736#S4.E16)\)\. ∎
## Appendix CTheoretical Perspective on the Kernel\-Smoothed Anchor Prior
This section explains why the anchor prior in SDFlow is implemented as a kernel\-smoothed distribution over learned low\-rank latent coordinates\. The purpose of this prior is intentionally limited: it provides a smooth initialization distribution for the subsequent categorical flow, rather than serving as a standalone generator in raw time\-series space\.
##### Kernel smoothing as an explicit RBF mixture\.
Let\{𝐮i\}i=1N⊂ℝr\\\{\\mathbf\{u\}\_\{i\}\\\}\_\{i=1\}^\{N\}\\subset\\mathbb\{R\}^\{r\}denote the learned coordinates of VQ\-latent anchors\. The anchor prior used by SDFlow is
panchor\(𝐮\)=1N∑i=1NKh\(𝐮−𝐮i\),p\_\{\\mathrm\{anchor\}\}\(\\mathbf\{u\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}K\_\{h\}\(\\mathbf\{u\}\-\\mathbf\{u\}\_\{i\}\),\(38\)whereKh\(𝐮\)=h−rK\(𝐮/h\)K\_\{h\}\(\\mathbf\{u\}\)=h^\{\-r\}K\(\\mathbf\{u\}/h\)is a Gaussian kernel with bandwidthhh\. Eq\. \([38](https://arxiv.org/html/2605.05736#A3.E38)\) can be viewed as an equally weighted RBF mixture whose centers are the learned latent anchors\. Thus, instead of training an additional neural density estimator to recover the support of the anchor distribution, SDFlow uses the corresponding closed\-form smoother directly\. This avoids an extra non\-convex optimization problem and makes the role of the prior transparent: it locally smooths the latent anchor support before the learned flow dynamics take over\.
##### Why a learned neural prior is unnecessary here\.
A flexible neural prior could in principle be trained to approximate the same anchor distribution\. However, doing so would introduce an additional modeling problem whose optimum is not needed for our objective\. The initializer only needs to place mass near the low\-rank VQ\-latent scaffold; it does not need to decode samples or model temporal dynamics\. A kernel mixture with centers fixed at the learned anchors is therefore the direct non\-parametric estimator of this local support\. The learned velocity fieldvθv\_\{\\theta\}, not the kernel prior, is responsible for transporting initialized points to valid VQ endpoints and for producing final samples\.
##### Effective dimension of latent smoothing\.
The statistical benefit of kernel smoothing depends on the dimension of the support on which it is applied\. Assume that the anchor coordinates are sampled from a twice continuously differentiable densityf0f\_\{0\}supported on an intrinsicrr\-dimensional latent coordinate manifold, and that the kernel has finite second moment\. The standard bias–variance decomposition for kernel density estimation gives
MISE\(h\):=𝔼\[∫\(panchor\(𝐮\)−f0\(𝐮\)\)2𝑑𝐮\]=O\(h4\)\+O\(1Nhr\)\.\\mathrm\{MISE\}\(h\):=\\mathbb\{E\}\\\!\\left\[\\int\\big\(p\_\{\\mathrm\{anchor\}\}\(\\mathbf\{u\}\)\-f\_\{0\}\(\\mathbf\{u\}\)\\big\)^\{2\}d\\mathbf\{u\}\\right\]=O\(h^\{4\}\)\+O\\\!\\left\(\\frac\{1\}\{Nh^\{r\}\}\\right\)\.\(39\)Balancing the bias termO\(h4\)O\(h^\{4\}\)and the variance termO\(\(Nhr\)−1\)O\(\(Nh^\{r\}\)^\{\-1\}\)yields the usual bandwidth scalingh≍N−1/\(r\+4\)h\\asymp N^\{\-1/\(r\+4\)\}and the rate
MISElatent=O\(N−4r\+4\)\.\\mathrm\{MISE\}\_\{\\mathrm\{latent\}\}=O\\\!\\left\(N^\{\-\\frac\{4\}\{r\+4\}\}\\right\)\.\(40\)If the same kernel smoother were applied directly in the ambient raw trajectory space of dimensionDD, the corresponding rate would be
MISEraw=O\(N−4D\+4\),\\mathrm\{MISE\}\_\{\\mathrm\{raw\}\}=O\\\!\\left\(N^\{\-\\frac\{4\}\{D\+4\}\}\\right\),\(41\)which is substantially slower whenD≫rD\\gg r\. It shows why SDFlow performs smoothing in the learned low\-rank latent coordinate space, where local neighborhoods are statistically meaningful, instead of in raw time\-series space\.
##### Role in SDFlow\.
The kernel prior should be understood as*latent support smoothing*, not as sample retrieval\. Sampling frompanchorp\_\{\\mathrm\{anchor\}\}produces an initialization𝐳0=normalize\(𝐮𝐕⊤\)\\mathbf\{z\}\_\{0\}=\\mathrm\{normalize\}\(\\mathbf\{u\}\\mathbf\{V\}^\{\\top\}\)near the shared low\-rank scaffold\. The final sample is then obtained only after integrating the learned categorical velocity field and decoding through the VQ representation\. Consequently, any potential anchor\-level collapse must be evaluated at the level of the complete generator, not by inspecting the kernel prior in isolation\. This is why we complement the theoretical perspective above with three empirical checks: the KDE\-only baseline, raw\-space nearest\-neighbor audit, and held\-out latent\-flow generalization study\.
## Appendix DExperimental Setup Details
Datasets\.We evaluate on four datasets spanning diverse domains and complexities, following the protocol established by prior work\[[28](https://arxiv.org/html/2605.05736#bib.bib26),[7](https://arxiv.org/html/2605.05736#bib.bib32)\]:
- •Sines: Synthetic sinusoidal sequences with varying frequencies and phases, 5 features\. This serves as a sanity check for basic temporal pattern capture\.
- •Stocks: Daily Google stock prices from 2004–2019, including open/close/high/low prices and volume, 6 features\. Real financial data with complex non\-stationary dynamics\.
- •ETTh: Hourly electrical transformer temperature measurements, 7 features\. Industrial time series with periodic patterns and trend components\.
- •Energy: UCI appliance energy use dataset with weather and environmental sensors, 28 features\. High\-dimensional multivariate series with complex cross\-correlations\.
Evaluation Metrics\.We adopt three complementary metrics following standard practice:
- •Discriminative Score \(DS\): A post\-hoc 2\-layer LSTM classifier is trained to distinguish real from synthetic sequences using a 80/20 train/test split\. DS=\|accuracy−0\.5\|=\|\\text\{accuracy\}\-0\.5\|, where lower values indicate synthetic data indistinguishable from real \(optimal is 0\)\.
- •Predictive Score \(PS\): A sequence model is trained on synthetic data to predict the next step, then evaluated on real test data\. Lower prediction error indicates synthetic data preserves predictive structure\.
- •Context\-FID: Fréchet Inception Distance computed on contextualized embeddings from a pre\-trained TS2Vec encoder\. Lower values indicate distributional similarity\.
Baselines\.We compare against representative methods from each paradigm:
- •*GAN\-based*: TimeGAN\[[28](https://arxiv.org/html/2605.05736#bib.bib26)\]\(uses generative adversarial networks with an embedding function and supervised loss to capture temporal dynamics\); COT\-GAN\[[26](https://arxiv.org/html/2605.05736#bib.bib27)\]\(combines GAN with causal optimal transport principles for efficient and stable generation of time series data\);
- •*VAE\-based*: TimeVAE\[[9](https://arxiv.org/html/2605.05736#bib.bib28)\]\(employs variational autoencoders with an interpretable temporal structure for time series synthesis\);
- •*Diffusion\-based*: DiffWave\[[15](https://arxiv.org/html/2605.05736#bib.bib29)\]\(directly applies denoising diffusion probabilistic models to waveform generation\); DiffTime\[[8](https://arxiv.org/html/2605.05736#bib.bib30)\]\(harnesses score\-based diffusion models for time series generation\); Diffusion\-TS\[[29](https://arxiv.org/html/2605.05736#bib.bib31)\]\(utilizes an encoder\-decoder transformer with disentangled temporal representations for diffusion\-based generation\);
- •*Discrete token*: SDformer\-m \(masked\)\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\]\(uses masked token modeling with random masking and iterative decoding\); SDformer\-ar \(autoregressive\)\[[7](https://arxiv.org/html/2605.05736#bib.bib32)\]\(uses autoregressive token modeling with random replacement to mitigate training\-inference inconsistency\);
- •*Flow\-based*: FlowTS\[[14](https://arxiv.org/html/2605.05736#bib.bib23)\]\(employs the Rectified Flow framework, learn the linear transmission path in the probability space\)\.
Implementation Details\.We use identical VQ\-VAE tokenizers to SDformer for fair comparison: codebook sizeK=512K=512, latent dimensiondc=512d\_\{c\}=512, downsampling rates=4s=4\. For SDFlow:L=24L=24uses rankr=256r=256, 1 DiT layer;L=256L=256uses rankr=1024r=1024, 3 DiT layers\. The anchor\-prior bandwidth ish=0\.06h=0\.06for Energy\. All experiments report mean and standard deviation over 5 random seeds\.
### D\.1Hyperparameter Configurations
Table[4](https://arxiv.org/html/2605.05736#A4.T4)and Table[5](https://arxiv.org/html/2605.05736#A4.T5)provides complete hyperparameter configurations for SDFlow across different sequence lengths\.
Table 4:VQ\-VAE hyperparameter configurations for SDFlow across sequence lengths\.SettingHidden dimEnc/Dec LayersKdcd\_\{c\}λ\\lambdadown\. rateL=24L=245122512/1024256/5120\.01/0\.5/2\.02/4L=64L=645122512/1024256/5120\.01/0\.5/2\.04L=128L=1285122512/1024256/5120\.01/0\.5/2\.04L=256L=2565122512/1024256/5120\.01/0\.5/2\.04
Table 5:Flow Matching hyperparameter configurations for SDFlow across sequence lengths\.SettingODE StepsRankdmodeld\_\{\\text\{model\}\}LayersHeadsλμ\\lambda\_\{\\mu\}λσ\\lambda\_\{\\sigma\}L=24L=24202565121160\.110\.0L=64L=6420256/51210243160\.110\.0L=128L=1282051210243160\.110\.0L=256L=25620102410243160\.110\.0
## Appendix ECore Algorithms
Algorithm[1](https://arxiv.org/html/2605.05736#alg1)and Algorithm[2](https://arxiv.org/html/2605.05736#alg2)are the core algorithms for our model training and inference\.
Algorithm 1SDFlow Training: Manifold\-Anchored Categorical Flow Matching1:Input:VQ\-VAE codebook
𝒞=\{ck\}k=1K\\mathcal\{C\}=\\\{c\_\{k\}\\\}\_\{k=1\}^\{K\}, training indices
\{yi\}i=1N\\\{y\_\{i\}\\\}\_\{i=1\}^\{N\}
2:Parameters:Rank
rr, regularization coefficients
λμ,λσ\\lambda\_\{\\mu\},\\lambda\_\{\\sigma\}
3:Output:Trained flow network
vθv\_\{\\theta\}, low\-rank factors
U,VU,V
4:
5:// Stage 1: VQ\-VAE Tokenization \(Frozen\)
6:Pre\-train VQ\-VAE with similarity\-driven quantization
7:Extract codebook embeddings:
Z=\[cy1,…,cyN\]∈ℝN×DZ=\[c\_\{y\_\{1\}\},\\ldots,c\_\{y\_\{N\}\}\]\\in\\mathbb\{R\}^\{N\\times D\}
8:
9:// Stage 2: Manifold\-Anchored Flow Matching
10:Initialize:
11:Flow network
θ\\theta\(DiT architecture\)
12:
U∈ℝM×r∼𝒩\(0,0\.012I\)U\\in\\mathbb\{R\}^\{M\\times r\}\\sim\\mathcal\{N\}\(0,0\.01^\{2\}I\)\# Manifold support anchors
13:
V∈ℝD×r∼𝒩\(0,0\.012I\)V\\in\\mathbb\{R\}^\{D\\times r\}\\sim\\mathcal\{N\}\(0,0\.01^\{2\}I\)\# Subspace basis
14:forepoch
=1=1to
TmaxT\_\{\\text\{max\}\}do
15:Sample batch indices
ℬ=\{i1,…,iB\}\\mathcal\{B\}=\\\{i\_\{1\},\\ldots,i\_\{B\}\\\}
16:Sample time
t∼Beta\(2,5\)t\\sim\\text\{Beta\}\(2,5\)\# Concentrate neart=0t=0
17:// Construct Flow Path
18:Retrieve coordinates:
Uℬ=\[ui1,…,uiB\]⊤∈ℝB×rU\_\{\\mathcal\{B\}\}=\[u\_\{i\_\{1\}\},\\ldots,u\_\{i\_\{B\}\}\]^\{\\top\}\\in\\mathbb\{R\}^\{B\\times r\}
19:Retrieve targets:
Zℬ=\[zi1,…,ziB\]⊤∈ℝB×DZ\_\{\\mathcal\{B\}\}=\[z\_\{i\_\{1\}\},\\ldots,z\_\{i\_\{B\}\}\]^\{\\top\}\\in\\mathbb\{R\}^\{B\\times D\}
20:// Low\-rank Manifold Anchoring
21:
Z0=UℬV⊤∈ℝB×DZ\_\{0\}=U\_\{\\mathcal\{B\}\}V^\{\\top\}\\in\\mathbb\{R\}^\{B\\times D\}\# Project to subspace
22:
Z0←Z0/‖Z0‖2Z\_\{0\}\\leftarrow Z\_\{0\}/\\\|Z\_\{0\}\\\|\_\{2\}\# Unit normalization
23:
Zt←\(1−t\)Z0\+t⋅ZℬZ\_\{t\}\\leftarrow\(1\-t\)Z\_\{0\}\+t\\cdot Z\_\{\\mathcal\{B\}\}\# Linear interpolation
24:// Categorical Flow Prediction
25:
logits←vθ\(Zt,t\)\\text\{logits\}\\leftarrow v\_\{\\theta\}\(Z\_\{t\},t\)\# Shape:\[B,L,K\]\[B,L,K\]
26:// Cross\-Entropy Loss with Regularization
27:
ℒCE←−1BL∑i,ℓlogsoftmax\(logitsi,ℓ\)\[yi,ℓ\]\\mathcal\{L\}\_\{\\text\{CE\}\}\\leftarrow\-\\frac\{1\}\{BL\}\\sum\_\{i,\\ell\}\\log\\text\{softmax\}\(\\text\{logits\}\_\{i,\\ell\}\)\[y\_\{i,\\ell\}\]
28:
ℒμ←‖𝔼i\[ui\]‖2\\mathcal\{L\}\_\{\\mu\}\\leftarrow\\\|\\mathbb\{E\}\_\{i\}\[u\_\{i\}\]\\\|\_\{2\}\# Mean regularization
29:
ℒσ←‖Stdi\(ui\)−1‖1\\mathcal\{L\}\_\{\\sigma\}\\leftarrow\\\|\\text\{Std\}\_\{i\}\(u\_\{i\}\)\-1\\\|\_\{1\}\# Variance regularization
30:
ℒ←ℒCE\+λμℒμ\+λσℒσ\\mathcal\{L\}\\leftarrow\\mathcal\{L\}\_\{\\text\{CE\}\}\+\\lambda\_\{\\mu\}\\mathcal\{L\}\_\{\\mu\}\+\\lambda\_\{\\sigma\}\\mathcal\{L\}\_\{\\sigma\}
31:// Optimization
32:Update
θ\\thetawith learning rate
ηθ=10−4\\eta\_\{\\theta\}=10^\{\-4\}
33:Update
U,VU,Vwith learning rate
ηUV=10−3\\eta\_\{UV\}=10^\{\-3\}
34:endfor
35:return
vθ,U,Vv\_\{\\theta\},U,V
Algorithm 2SDFlow Inference: Parallel Time Series Generation1:Input:Trained flow
vθv\_\{\\theta\}, coordinates
UU, basis
VV, codebook
𝒞\\mathcal\{C\}
2:Parameters:Bandwidth factor
α\\alpha, temperature
τ\\tau, steps
SS
3:Output:Generated time series
\{X^i\}i=1Ngen\\\{\\hat\{X\}\_\{i\}\\\}\_\{i=1\}^\{N\_\{\\text\{gen\}\}\}
4:
5:// Anchor Prior Construction
6:Compute pairwise distances:
di=minj≠i‖ui−uj‖2d\_\{i\}=\\min\_\{j\\neq i\}\\\|u\_\{i\}\-u\_\{j\}\\\|\_\{2\}for
i=1,…,Ni=1,\\ldots,N
7:Set bandwidth:
h=α⋅1N∑i=1Ndih=\\alpha\\cdot\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}d\_\{i\}
8:
9:// Parallel Generation \(No Sequential Dependency\)
10:for
i=1i=1to
NgenN\_\{\\text\{gen\}\}do
11:Sample center index:
j∼Uniform\(1,N\)j\\sim\\text\{Uniform\}\(1,N\)
12:Sample noise:
ϵ∼𝒩\(0,h2Ir\)\\epsilon\\sim\\mathcal\{N\}\(0,h^\{2\}I\_\{r\}\)
13:
unew←uj\+ϵu\_\{\\text\{new\}\}\\leftarrow u\_\{j\}\+\\epsilon\# Kernel\-smoothed anchor sampling
14:
z0←normalize\(unewV⊤\)z\_\{0\}\\leftarrow\\text\{normalize\}\(u\_\{\\text\{new\}\}V^\{\\top\}\)\# Manifold anchor
15:// ODE Integration
16:for
s=0s=0to
S−1S\-1do
17:
t←s/St\\leftarrow s/S
18:
logits←vθ\(zt,t\)\\text\{logits\}\\leftarrow v\_\{\\theta\}\(z\_\{t\},t\)
19:
π←softmax\(logits/τ\)\\pi\\leftarrow\\text\{softmax\}\(\\text\{logits\}/\\tau\)
20:
μ←∑kπk⋅ck\\mu\\leftarrow\\sum\_\{k\}\\pi\_\{k\}\\cdot c\_\{k\}\# Expected embedding
21:
v←\(μ−zt\)/\(1−t\)v\\leftarrow\(\\mu\-z\_\{t\}\)/\(1\-t\)
22:
zt\+1/S←zt\+v/Sz\_\{t\+1/S\}\\leftarrow z\_\{t\}\+v/S
23:endfor
24:// Quantization and Decoding
25:
y^i←argmaxkz1⋅ck\\hat\{y\}\_\{i\}\\leftarrow\\arg\\max\_\{k\}\\,z\_\{1\}\\cdot c\_\{k\}\# Nearest codebook
26:
X^i←𝒟\(y^i\)\\hat\{X\}\_\{i\}\\leftarrow\\mathcal\{D\}\(\\hat\{y\}\_\{i\}\)\# VQ\-VAE decoder
27:endfor
28:return
\{X^i\}i=1Ngen\\\{\\hat\{X\}\_\{i\}\\\}\_\{i=1\}^\{N\_\{\\text\{gen\}\}\}
## Appendix FManifold Analysis
Our analysis reveals that Gaussian initialization requires severe 45×\\timescompression from high\-dimensional space \(rank 1900\) to the target manifold \(rank 50\), creating a difficult optimization problem \(Figure[1](https://arxiv.org/html/2605.05736#S1.F1), Figure[4](https://arxiv.org/html/2605.05736#A6.F4), Figure[5](https://arxiv.org/html/2605.05736#A6.F5), and Figure[6](https://arxiv.org/html/2605.05736#A6.F6)\)\. In contrast, our manifold\-anchored approach starts near the data manifold \(rank 180\), requiring only smooth 3\.6×\\timescompression\. This 11×\\timesreduction in compression ratio makes the transport problem substantially easier and supports the importance of initialization distance\.
Figure 4:Dimension compression ratio during flow transport\.Figure 5:Cumulative variance detailed\.\(a\)Sine \(rank = 7\)
\(b\)Stock \(rank = 7\)
\(c\)ETTh \(rank = 22\)
\(d\)Energy \(rank = 42\)
Figure 6:SVD analysis of VQ\-VAE latent codes across datasets\.
## Appendix GDetailed Ablation, Sensitivity, and Held\-out Generalization Analysis
Table[3](https://arxiv.org/html/2605.05736#S5.T3)studies three aspects of SDFlow: component necessity, hyperparameter sensitivity, and held\-out latent\-flow generalization\. We provide additional interpretation here to clarify how each result supports the design of SDFlow\.
##### Representation Space and Low\-Rank Scaffold\.
Directly applying flow matching in raw data space performs poorly \(DS 0\.453\), confirming that high\-dimensional raw trajectories are not a suitable space for Stage\-2 transport\. After VQ tokenization, however, a standard Gaussian prior in the full latent space still remains weak \(DS 0\.218\), and using anchors without low\-rank structure only partially helps \(DS 0\.173\)\. These results show that VQ tokenization alone is insufficient: the latent space must also be organized into a tractable low\-rank coordinate system\. The learned low\-rank scaffold provides this geometry, turning sparse high\-dimensional VQ codes into a smoother coordinate space for flow matching\.
##### Anchor Prior Design\.
On top of the low\-rank scaffold, the initialization prior is crucial\. Generic alternatives such as Gaussian sampling \(DS 0\.218\) and an amortized MLP prior \(DS 0\.213\) fail to capture the latent topology\. Simple interpolation improves performance \(DS 0\.047\), suggesting that respecting local latent geometry is important, but it remains far from the learned anchor prior \(DS 0\.006\)\. Thus, the kernel\-smoothed anchor prior should be interpreted as a manifold\-localized initializer over low\-rank VQ\-latent supports, while the learned categorical flow performs the actual generative transport\.
##### Codebook Capacity and Solver Steps\.
Naively reducing the VQ embedding dimension does not solve the transport problem: smaller codebooks without the low\-rank scaffold yield worse DS values \(0\.223 ford=256d=256, 0\.251 ford=128d=128, and 0\.299 ford=64d=64\)\. This indicates that simple compression sacrifices representation quality rather than producing useful geometry\. The solver\-step ablation further shows that the method does not rely on excessive numerical refinement:S=20S=20matchesS=50S=50\(both DS 0\.006\), whileS=10S=10is only moderately worse \(DS 0\.018\)\. We therefore useS=20S=20as an efficient quality–speed trade\-off\.
##### Rank and Bandwidth Sensitivity\.
The sensitivity study shows that performance is stable around the selected rank and bandwidth\. A static SVD rank \(r=42r=42\) is insufficient \(DS 0\.094\), while learned ranks improve substantially, withr=256r=256reaching DS 0\.006 andr=512r=512offering no further gain\. For the bandwidth, large values such ash=0\.60h=0\.60over\-smooth the latent support \(DS 0\.138\), whereas overly small values such ash=0\.01h=0\.01slightly weaken local connectivity \(DS 0\.008\)\. The best settingh=0\.06h=0\.06balances local smoothing and manifold preservation\.
##### Held\-out Latent\-Flow Generalization\.
To test whether Stage\-2 generation depends on access to all anchors, we train the latent flow and anchor prior using only subsets of encoded latents while keeping the VQ tokenizer frozen as a shared representation layer\. On Energy, using only 10% of latent anchors still achieves DS 0\.009 and C\-FID 0\.002 on the held\-out 90%; on Sines, the same 10% setting achieves DS 0\.007 and C\-FID 0\.0013; on ETTh, using 50% anchors gives DS 0\.003 and C\-FID 0\.002 on the held\-out 50%\. The small degradation from the full\-anchor setting suggests that the anchor set acts as a compact scaffold for shared latent geometry rather than naive interpolation over latent prototypes\.
Overall, the ablation confirms that SDFlow requires all three ingredients: VQ tokenization for representation, low\-rank scaffolding for tractable geometry, and anchor\-based initialization for local transport\. The sensitivity and held\-out studies further show that the method is not overly dependent on exact hyperparameter choices or complete anchor coverage, supporting SDFlow as a stable latent\-space non\-autoregressive generator\.
## Appendix HComprehensive Generalization Study
While our manifold\-anchored initialization efficiently bypasses the curse of dimensionality, a natural concern is whether the prior over latent anchors inadvertently leads to local resampling\. We therefore conduct memorization diagnostics from three complementary perspectives: an isolated KDE baseline, raw\-space nearest\-neighbor analysis, and an additional strict held\-out sanity check\.
### H\.1KDE is an Initializer, Not a Generator: KDE\-only Baseline
We emphasize that the KDE prior serves as a manifold\-localized initialization mechanism\. It is not intended to model the complex data distribution by itself\. To isolate the contribution of the categorical flow dynamics, we introduce aKDE\-only \(No Flow\)baseline\. In this setting, we sample an anchor coordinate𝐮∼pKDE\\mathbf\{u\}\\sim p\_\{\\text\{KDE\}\}, project it to the latent space𝐳0=normalize\(𝐮𝐕⊤\)\\mathbf\{z\}\_\{0\}=\\text\{normalize\}\(\\mathbf\{u\}\\mathbf\{V\}^\{\\top\}\), and directly quantize and decode itwithoutany ODE flow integration\.
As shown in Table[6](https://arxiv.org/html/2605.05736#A8.T6), the KDE\-only baseline fails to generate coherent sequences, yielding poor Discriminative Score \(DS\) and Context\-FID\. This indicates that the KDE prior alone is insufficient for generation; the learned categorical flow dynamics are needed to transport the initial anchors to valid, high\-fidelity distribution regions\.
Table 6:KDE\-only baseline vs\. Full SDFlow on Energy \(L=24L=24\)\. Bypassing the flow network leads to generation failure, indicating that the KDE prior acts as an initializer rather than a standalone generator\.MethodDiscriminative Score \(DS\)↓\\downarrowContext\-FID↓\\downarrowKDE\-only \(No Flow Integration\)0\.462±\\pm\.0153\.105±\\pm\.124SDFlow \(Full Model\)0\.006±\\pm\.0020\.001±\\pm\.000
### H\.2Raw\-Space Nearest\-Neighbor Memorization Audit
To assess whether generated samples are copies of the training data, we conduct a Nearest\-Neighbor \(NN\) audit directly in theraw time\-series space\(rather than the VQ latent space\)\. We compute Euclidean distances for three distributions: \(1\)Train→\\toTrain NN: Distance from each training sample to its nearest training neighbor; \(2\)Held\-out→\\toTrain NN: Distance from real held\-out sample to the nearest real train sample; \(3\)Generated→\\toTrain NN: Distance from generated samples to the nearest training sample\.
We define theCopy Rateas the proportion of generated samples that fall within the1st1^\{\\text\{st\}\}percentile of the Train→\\toTrain NN distance \(i\.e\., potential near\-duplicates\)\. As shown in Table[7](https://arxiv.org/html/2605.05736#A8.T7), generated samples have similar distances to the training set as real held\-out samples do\. Furthermore, the Copy Rate is consistently below1\.5%1\.5\\%\.
Table 7:Raw\-space Nearest\-Neighbor Audit on ETTh and Energy\. The generated samples maintain similar distances to the training set as real held\-out samples do, with low copy rates\.DatasetHeld\-out→\\toTrain NN Dist\.Generated→\\toTrain NN Dist\.Copy Threshold \(ϵ\\epsilon\)Copy Rate↓\\downarrowETTh \(L=24L=24\)0\.81±\\pm0\.120\.83±\\pm0\.140\.151\.2%Energy \(L=24L=24\)2\.25±\\pm0\.312\.30±\\pm0\.280\.450\.8%
### H\.3Additional Strict Held\-out Sanity Check
As an additional sanity check, we also consider a stricter split than the held\-out latent\-flow study in Table[3](https://arxiv.org/html/2605.05736#S5.T3)\. Here,neitherthe VQ\-VAE tokenizernorthe Stage\-2 latent flow and anchors are exposed to the held\-out split during training\.
We trained the entire SDFlow pipeline on only 80% of the data and evaluated the generative distributions against the unseen 20% test data\. The results yield a DS of 0\.008 and Context\-FID of 0\.001 on Sines, close to the full\-data setting\. This supplementary check is not used as the main evidence for our method, but further suggests that SDFlow does not require direct access to every training trajectory\.
## Appendix IAdditional Visualizations
Figure[7](https://arxiv.org/html/2605.05736#A9.F7)shows t\-SNE visualizations of the latent space across datasets\. The sample distribution generated by our method closely aligns with the real data distribution, filling the manifold without complete overlap, which is consistent with distribution\-level coverage\.
\(a\)Sine
\(b\)Stock
\(c\)ETTh
\(d\)Energy
Figure 7:t\-SNE visualization in the latent space across multiple datasets\.A comparative analysis of Context\-FID is provided in Figure[8](https://arxiv.org/html/2605.05736#A9.F8)\. The visualization shows that SDFlow attains markedly lower Context\-FID values than existing approaches\.
Figure 8:Context\-FID across different sequence lengths on ETTh and Energy datasets\.To assess our model’s capability in reconstructing the real indices via the specificusu\_\{s\}, we conducted an experiment by sampling directly from the trueusu\_\{s\}\(bypassing the anchor\-prior sampler\) and processing these samples through the DiT to generate the final indices\. The results in Figure[9](https://arxiv.org/html/2605.05736#A9.F9)show low MSE while retaining flexibility, supporting the model’s ability to cover the latent manifold\.









Figure 9:Visualizations of time series reconstruction samples using real coordinates instead of the anchor\-prior sampler\.
## Appendix JConditional Generation: Forecasting
Beyond generation, SDFlow naturally extends to forecasting by conditioning on historical latent coordinates\. We achieve the conversion from unconditional to conditional by concatenating the low\-dimensional manifold samples we have learned with real conditions\. Specifically, a complete sequence is sampled from the manifold distribution, then the first half is replaced with real history, and finally the second half is refined through dynamics to generate a coherent future prediction\.
Figure[10](https://arxiv.org/html/2605.05736#A10.F10)demonstrates zero\-shot forecasting where SDFlow predicts future time steps given only the first half\. Despite no forecasting\-specific training, our method achieves great MAE and MSE, with well\-calibrated 80% confidence intervals \(coverage 93%\)\.



Figure 10:Forecasting Results \(Energy,12→1212\\rightarrow 12\)\.This strong performance supports our hypothesis that the learned manifold structure captures not only spatial but also temporal dependencies of time series data\. However, more specific modifications in model architecture may further benefit Time Series Forecasting, which is a promising future direction\.
## Appendix KAdditional Ablations
Categorical vs\. Continuous Supervision\.We compare our categorical cross\-entropy objective against continuous MSE regression on embeddings\. As shown in Table[8](https://arxiv.org/html/2605.05736#A11.T8), the categorical objective yields superior performance\. Beyond performance gains, it offers crucial theoretical advantages: \(1\) explicit discrete supervision aligned with the VQ structure; \(2\) temperature\-controlled sampling at inference enabling quality\-diversity trade\-offs; and \(3\) interpretable uncertainty quantification over codebook indices\.
Table 8:Comparison of categorical cross\-entropy \(Ours\) against continuous MSE regression\.ObjectiveDS\-Sines↓\\downarrowDS\-ETTh↓\\downarrowMSE \(continuous\)0\.0090\.005CE \(categorical\)0\.0060\.002Rank Sensitivity\.Table[9](https://arxiv.org/html/2605.05736#A11.T9)analyzes sensitivity to the rank parameter on Energy \(L=24L=24\)\. Performance peaks atr=256r=256, which captures 99% of variance while maintaining parameter efficiency\. Lower ranks underfit the manifold structure, while higher ranks provide diminishing returns\. Notably, relying solely on SVD to determine optimal rank is ineffective, demonstrating the necessity of the learnable low\-rank decomposition\.
Table 9:Rank sensitivity analysis on Energy \(L=24L=24\)\. Performance peaks atr=256r=256, which captures 99% of variance while maintaining parameter efficiency\.RankDS↓\\downarrowFID↓\\downarrowParametersr=32r=320\.149±\\pm\.0120\.042±\\pm\.0050\.6MSVD\(r=42\)\(r=42\)0\.094±\\pm\.0090\.017±\\pm\.0020\.8Mr=64r=640\.062±\\pm\.0080\.015±\\pm\.0021\.2Mr=128r=1280\.015±\\pm\.0050\.006±\\pm\.0012\.4Mr=256r=2560\.006±\\pm\.0020\.001±\\pm\.0004\.8Mr=512r=5120\.006±\\pm\.0030\.001±\\pm\.0009\.6M
ODE Integration Steps\.Table[10](https://arxiv.org/html/2605.05736#A11.T10)examines sensitivity to the number of ODE integration steps\. 20 steps suffice for convergence; additional steps provide negligible improvement at increased computational cost\.
Table 10:ODE integration steps sensitivity on Energy \(L=24L=24\)\. 20 steps suffice for convergence; more steps provide negligible improvement\.StepsDS↓\\downarrowFID↓\\downarrowTime \(s\)100\.018±\\pm\.0060\.008±\\pm\.0020\.005150\.009±\\pm\.0030\.003±\\pm\.0010\.011200\.006±\\pm\.0020\.001±\\pm\.0000\.021500\.006±\\pm\.0020\.001±\\pm\.0000\.042
Table 11:Cross\-dataset ablation \(L=24L=24\)\. Both the low\-rank anchor scaffold and kernel\-smoothed prior are necessary on complex datasets \(Energy, ETTh\), while simpler datasets \(Sines\) are more tolerant\.ConfigurationPriorSinesStocksETThEnergyw/o Low\-RankGaussian0\.007±\\pm\.0060\.038±\\pm\.0090\.100±\\pm\.0150\.217±\\pm\.010w/o Low\-RankAnchor Prior0\.006±\\pm\.0080\.025±\\pm\.0100\.074±\\pm\.0170\.173±\\pm\.015w/ Low\-RankGaussian0\.008±\\pm\.0050\.031±\\pm\.0080\.089±\\pm\.0120\.218±\\pm\.004w/ Low\-RankAnchor Prior0\.006±\\pm\.0060\.003±\\pm\.0030\.002±\\pm\.0030\.006±\\pm\.002
\(a\)ETTh dataset
\(b\)Energy dataset
Figure 11:Nearest\-neighbor distance analysis\. Gray bars show the self\-distance distribution among real training samples \(baseline\), while red bars show distances from generated samples to their nearest training neighbors\. Generated samples maintain substantial distances from training data \(mean\>0\.8\>0\.8for ETTh,\>2\.0\>2\.0for Energy\), consistent with non\-copying behavior\.Cross\-Dataset Ablation\.Table[11](https://arxiv.org/html/2605.05736#A11.T11)extends the ablation study across all datasets\. Both low\-rank decomposition and the anchor prior are essential on complex datasets \(Energy, ETTh\), while simpler datasets \(Sines\) are more tolerant of suboptimal configurations\.
Nearest\-neighbor distance analysis\.Finally, to check whether generated sequences collapse to training examples, we conduct nearest\-neighbor retrieval against the training set\. Figure[11](https://arxiv.org/html/2605.05736#A11.F11)shows the distribution of Euclidean distances from generated samples to their nearest training neighbors in the VQ\-VAE latent space\.
Together, the held\-out latent\-flow, prior\-ablation, and nearest\-neighbor results suggest that the anchor prior is not merely copying individual training samples\. Instead, the learned manifold structure provides ageometric scaffoldthat guides generation while preserving diversity\.Similar Articles
PrismFlow: Residual Dynamics for Flow Matching in Time-Series Generation
PrismFlow introduces a Flow Matching method with Koopman-inspired dynamical experts to handle multimodal and multiscale time-series data, achieving state-of-the-art performance with significant improvements in Context-FID and Discriminative Score.
Capturing non-Markovian dynamics in non-equilibrium stochastic systems using flow matching
This paper develops a generative flow matching method to capture non-Markovian dynamics in non-equilibrium stochastic systems, demonstrating improved predictions for the Kramers first passage time problem compared to Markovian baselines.
Recursive Flow Matching
Introduces Recursive Flow Matching (RecFM), a generative framework for forecasting complex spatiotemporal dynamics that achieves high fidelity with fewer steps and improved accuracy and speed, including up to 20x speedup over diffusion-based emulators.
MeshFlow: Mesh Generation with Equivariant Flow Matching
MeshFlow introduces an equivariant optimal-transport flow matching model for direct triangle mesh generation, achieving state-of-the-art quality while providing approximately 18x inference speedup over autoregressive methods.
StateFlow: Dual-State Recurrent Modeling for Long-Horizon Time Series Forecasting
This paper introduces StateFlow, a recurrent forecasting framework that extends the Variability-Aware Recursive Neural Network (VARNN) to long-horizon multivariate time series forecasting by using a dual-state recurrent backbone and a chunk-based decoder, achieving competitive performance against strong baselines.