NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sequence Modeling with Spectral Mean Flows

Jinwoo Kim, Max Beier, Petar Bevanda, Nayun Kim, Seunghoon Hong

Abstract

Modeling complex sequences requires capturing both nonlinear dynamics and stochastic transitions, a task that often faces the "curse of dimensionality" when representing joint probability distributions. This paper introduces Spectral Mean Flows (SMF), a framework that leverages operator theory to represent sequence distributions as linear operators in Hilbert spaces. By employing spectral decomposition and tensor network structures, SMF reduces the exponential complexity of sequence modeling to linear growth. Furthermore, the authors introduce a simulation-free training objective by bridging Maximum Mean Discrepancy (MMD) gradient flows with flow matching techniques. Experimental results across diverse benchmarks—including financial, physical, and biological datasets—demonstrate that SMF achieves state-of-the-art performance in generative accuracy and computational efficiency.

Introduction

Sequence modeling is a cornerstone of modern machine learning, with applications ranging from financial forecasting to physical system simulation. However, practitioners often face a trade-off between two paradigms. Autoregressive models are effective at capturing probability distributions but suffer from slow, sequential generation. Conversely, linear recurrence models like State Space Models (SSMs) offer high speed and parallelizability but often struggle to natively incorporate stochasticity without complex architectural overhead.

At the heart of this difficulty is the mathematical representation of a sequence's joint distribution. Representing such a distribution as a high-dimensional tensor leads to exponential growth in memory requirements as sequence length increases. This paper proposes a novel path forward: treating sequence modeling through the lens of operator theory and spectral decomposition to maintain both expressivity and efficiency.

Methodology

Operator-Theoretic Foundations

The authors re-envision the Hidden Markov Model (HMM) by projecting its dynamics into a Hilbert space. In this framework, nonlinear state transitions are represented as linear operators acting on "mean embedding" vectors. This projection allows complex, stochastic behavior to be manipulated using the tools of linear algebra, simplifying the underlying mathematics of the generative process.

Spectral Decomposition and Tensor Networks

To solve the dimensionality problem, the framework decomposes transition operators into their spectral components (eigenvalues and eigenfunctions). By representing the sequence distribution as a Tensor Network, the model avoids the need for a single, monolithic tensor. Instead, it utilizes a chain of matrix multiplications, ensuring that computational complexity scales linearly ($O(N)$) with sequence length. This approach allows the model to handle long-range dependencies that would otherwise exceed the memory limits of modern hardware.

Simulation-Free Flow Matching

Traditionally, generating samples from mean embeddings required MMD gradient flows, which are often slow to converge due to their iterative nature. The authors overcome this by extending MMD flows to time-dependent Hilbert spaces and integrating them with Flow Matching. This creates a simulation-free training objective where the model learns a vector field that maps simple noise to complex data distributions in a fixed time interval ($t=1$). This innovation transforms a slow, asymptotic sampling process into a fast, trainable generative model.

Experimental Results

Performance Benchmarks

Spectral Mean Flows were evaluated against established baselines, including Diffusion-TS and TimeGAN, across six standard time-series datasets (Google Stocks, ETTh, Energy, fMRI, Sines, and MuJoCo). SMF achieved state-of-the-art results in 18 out of 24 metrics, demonstrating superior generative quality across diverse domains.

Efficiency and Scalability

The memory efficiency of the tensor network approach was particularly evident in long-sequence tasks. In a comparative test for a sequence of length 5, a naive distributional representation required nearly 100GB of VRAM, whereas the SMF approach required less than 0.1GB. This efficiency enabled the model to perform effectively on long-range datasets like FRED-MD and NN5 Daily, which feature sequences up to 791 steps.

Robustness and Physical Constraints

The model demonstrated significant robustness in "Irregular to Regular" tasks, where it successfully reconstructed full sequences from data with 30% to 70% missing values. Additionally, the authors showed that SMF can incorporate physical priors. By constraining the eigenvalues of the learned operator to be $\leq 1$, the model successfully learned stable trajectories for a nonlinear pendulum, avoiding the "exploding" trajectories common in unconstrained neural networks.

Discussion and Future Work

While Spectral Mean Flows represent a significant step forward in probabilistic sequence modeling, several avenues for future research remain. Currently, the model excels at unconditional generation; developing a mathematically principled method for conditional generation (e.g., forecasting) is a primary objective. Furthermore, while the use of eigenfunctions provides a theoretical basis for the model, interpreting these functions within the context of a deep neural network remains a challenge. Finally, scaling these spectral flows to the massive datasets typically reserved for Transformers will be a key test of the framework's long-term viability.

Conclusion

By combining operator theory with flow matching, Spectral Mean Flows offer a mathematically rigorous yet computationally efficient framework for sequence modeling. Its ability to linearize nonlinear dynamics and bypass the curse of dimensionality makes it a powerful tool for the next generation of generative models in time-series analysis and beyond.

Summary updated

BibTeX
@inproceedings{kim2025sequence,
  author = {Jinwoo Kim and Max Beier and Petar Bevanda and Nayun Kim and Seunghoon Hong},
  title = {{Sequence Modeling with Spectral Mean Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=e2WesV6Voe},
}
Figure