Modeling Time Series Dynamics with Fourier Ordinary Differential Equations
Muhao Guo, Yang Weng
TL;DR
The paper tackles the challenge that time-domain Neural ODEs struggle to model global periodic structures and discretely sampled data. It introduces Fourier Ordinary Differential Equations (FODEs), which learn dynamics in the frequency domain via FFT/IFFT and use a learnable Hadamard filter to remain aligned with discrete observations, formalized as $\dfrac{dx}{dt} = f_{FODE}(x,t;\theta_g) = \mathrm{IFFT}(\mathcal{M}(g(\mathcal{P}(\mathrm{FFT}(x)), t; \theta_g)))$. Key contributions include a concrete Fourier-domain construction with conjugate-symmetry enforcement, Lipschitz guarantees for well-posedness, adjoint-based training, and extensive experiments showing improvements in forecasting, classification, and physical dynamics tasks. The results demonstrate that combining spectral dynamics with a data-driven filter yields robust, efficient time-series models capable of capturing both long- and short-term patterns across diverse domains.
Abstract
Neural ODEs (NODEs) have emerged as powerful tools for modeling time series data, offering the flexibility to adapt to varying input scales and capture complex dynamics. However, they face significant challenges: first, their reliance on time-domain representations often limits their ability to capture long-term dependencies and periodic structures; second, the inherent mismatch between their continuous-time formulation and the discrete nature of real-world data can lead to loss of granularity and predictive accuracy. To address these limitations, we propose Fourier Ordinary Differential Equations (FODEs), an approach that embeds the dynamics in the Fourier domain. By transforming time-series data into the frequency domain using the Fast Fourier Transform (FFT), FODEs uncover global patterns and periodic behaviors that remain elusive in the time domain. Additionally, we introduce a learnable element-wise filtering mechanism that aligns continuous model outputs with discrete observations, preserving granularity and enhancing accuracy. Experiments on various time series datasets demonstrate that FODEs outperform existing methods in terms of both accuracy and efficiency. By effectively capturing both long- and short-term patterns, FODEs provide a robust framework for modeling time series dynamics.
