Generating high-quality time series data has emerged as a critical research topic due to its broad utility in supporting downstream time series mining tasks. A major challenge lies in modeling the intrinsic stochasticity of temporal dynamics, as real-world sequences often exhibit random fluctuations and localized variations. While diffusion models have achieved remarkable success, their generation process is computationally inefficient, often requiring hundreds to thousands of expensive function evaluations per sample. Flow matching has emerged as a more efficient paradigm, yet its conventional ordinary differential equation (ODE)-based formulation fails to explicitly capture stochasticity, thereby limiting the fidelity of generated sequences. By contrast, stochastic differential equation (SDE) are naturally suited for modeling randomness and uncertainty. Motivated by these insights, we propose TimeFlow, a novel SDE-based flow matching framework that integrates a encoder-only architecture. Specifically, we design a component-wise decomposed velocity field to capture the multi-faceted structure of time series and augment the vanilla flow-matching optimization with an additional stochastic term to enhance representational expressiveness. TimeFlow is flexible and general, supporting both unconditional and conditional generation tasks within a unified framework. Extensive experiments across diverse datasets demonstrate that our model consistently outperforms strong baselines in generation quality, diversity, and efficiency.
翻译:生成高质量时间序列数据已成为一个关键研究课题,因其在支持下游时间序列挖掘任务中具有广泛的应用价值。主要挑战在于建模时间动态的内在随机性,因为真实世界序列常表现出随机波动和局部变化。尽管扩散模型已取得显著成功,但其生成过程计算效率低下,通常每个样本需要数百至数千次昂贵的函数评估。流匹配作为一种更高效的范式应运而生,但其传统的基于常微分方程(ODE)的公式未能显式捕捉随机性,从而限制了生成序列的保真度。相比之下,随机微分方程(SDE)天然适合建模随机性和不确定性。基于这些洞见,我们提出了TimeFlow,一种新颖的基于SDE的流匹配框架,集成了仅编码器架构。具体而言,我们设计了一个分量分解的速度场以捕捉时间序列的多方面结构,并通过额外的随机项增强基础流匹配优化以提升表示表达能力。TimeFlow灵活且通用,在统一框架内支持无条件与条件生成任务。跨多个数据集的广泛实验表明,我们的模型在生成质量、多样性和效率方面持续优于强基线。