- Introduced by
- Yong Liu et al.
- Year
- 2023
- Type
- Koopman operator-based time-series forecasting model
- Family
- Time-series forecasting
What does it do?
Koopa is a deep learning model for time-series forecasting introduced by Yong Liu et al. at NeurIPS 2023.
It is designed for non-stationary series: it separates the input into components and models their evolution in a lifted feature space using a learned approximation of the Koopman operator, a framework that represents nonlinear dynamics through a linear operator acting on observable functions. The page's formulas describe a single series; how several variates are handled should be taken from the original paper.
The intuition behind the method
Many forecasting models implicitly assume that the statistical behaviour of a series is stable, and their accuracy can degrade when it drifts. Koopa is designed to address this by splitting each input window into components, predicting each part, and combining the results. For the lifted part, the model assumes that evolution from one step to the next is approximately linear, so multi-step prediction becomes repeated application of a linear operator rather than an iterated nonlinear recurrence. The formulas here are a schematic summary; the exact decomposition and component handling are defined in the original paper.
History
Koopa was presented at NeurIPS 2023 by Yong Liu et al. The method draws on Koopman operator theory, which represents nonlinear dynamics through a linear operator on observables and dates to Bernard Koopman's work in the 1930s. The paper frames non-stationarity as something the model architecture must handle, rather than only as a preprocessing step.
When to use it
Koopa is suited to forecasting over long horizons when the series shows shifts in level, variance or seasonal pattern over time. It rests on the assumption that the evolution of the series can be approximated linearly in a learned lifted space, which is a reasonable working assumption for some smooth or quasi-periodic signals but is not guaranteed for any given dataset. Avoid it when the series is short, when the dynamics are highly irregular or chaotic and no approximately linear lifting is plausible, or when there is no distribution shift for the decomposition to correct. Simpler linear baselines such as DLinear, patch-based attention models such as PatchTST, or state-space models are natural comparisons. Practitioners must choose the input window length, forecast horizon, latent dimension d and the decomposition settings; take recommended values from the original paper and tune them on validation data.
Limitations and considerations
- A linear lifting may be insufficient for chaotic or irregular series, where no finite-dimensional linear representation is plausible
- The split into slowly varying and residual components depends on the decomposition settings (for example a smoothing window); abrupt changes or structural breaks can leak across both components
- The latent dimension d is a sensitive choice, and because K is a d x d matrix, the number of operator parameters grows with the square of d
- A matrix of this size may overfit short series, so low-data settings call for careful validation
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The model is designed to handle non-stationarity through its decomposition of the input into components that are recombined at the output; benefits should be reproduced on the target data
- Multi-step prediction is expressed as repeated application of a linear operator in the lifted space, so predictions are not fed back through a nonlinear recurrent cell
- The operator K is an explicit matrix, which gives a concrete object for inspecting the latent dynamics
Applications
- Forecasting of series whose level or variance shifts over time, where separating slowly varying and residual components is a natural first step
- Long-horizon prediction tasks where error accumulation from iterated nonlinear prediction is a concern
- Comparative studies of linear-operator forecasters against attention-based forecasters under distribution shift
How it works
How it works
In the schematic formulas on this page, the input window is split into a slowly varying component x^(s) and a residual x^(n) = x - x^(s), here illustrated with a moving average; the two parts sum back to the original window. The original paper may use a different separation mechanism (for example a frequency-domain one), so the exact operator should be checked there before implementation.
Formula
\hat{x}_t = x_t^{(s)} + x_t^{(n)}, \quad x_t^{(s)} = \text{MovingAvg}(x_t), \quad x_t^{(n)} = x_t - x_t^{(s)}An MLP-based encoder maps the input into a latent observable space. In this space, the evolution from one time step to the next is written as a single matrix multiplication, phi(x_{t+1}) = K phi(x_t), where K is a d x d matrix. The Koopman operator is therefore a learned approximation to the true dynamics in the lifted space, not a quantity computed from the data.
Formula
\mathcal{K} \approx K \in \mathbb{R}^{d \times d}, \quad \phi(x_{t+1}) = K\, \phi(x_t)In this schematic, the h-step-ahead latent prediction is obtained by applying the operator K repeatedly to the current latent state, giving K^h phi(x_t). Whether the original model uses a single shared operator or separate or time-variant operators should be checked in the paper.
Formula
\hat{\phi}(x_{t+h}) = K^h\, \phi(x_t), \quad K^h = \prod_{i=1}^{h} K_iA decoder, written as the inverse mapping phi^{-1}, returns the predicted latent state to the observation space. The formula is a schematic summary: the final forecast combines the decoded prediction with a separately predicted slowly varying component. How each component's predictor is built is specified in the original paper.
Formula
\hat{x}_{t+h} = \phi^{-1}\!\left(\hat{\phi}(x_{t+h})\right) + \hat{x}_{t+h}^{(s)}Common pitfalls
- Applying Koopa to series without distribution shift adds a decomposition step that has little to correct, so simpler baselines are a fairer first test
- Choosing a large latent dimension adds parameters without guaranteeing a better approximation of the underlying dynamics
- A poorly chosen decomposition setting lets the two components absorb each other's variation, which undermines the decomposition
- Benchmark results are dataset-dependent; comparisons should be reproduced on the target data before conclusions are drawn
Frequently asked questions
How does Koopa differ from Transformer-based forecasting models like Autoformer or FEDformer?
Attention-based forecasters learn temporal dependencies through attention weights. Koopa instead separates the series into components and predicts through a learned linear operator in a lifted space. Whether this handles distribution shift better is an empirical question that depends on the data.
Is the Koopman operator actually learned, and how is it parameterized?
Yes. In the formulas, K is a learnable d x d matrix, and an MLP-based encoder produces the latent observables. The model is trained as a supervised forecaster, so the operator and the encoder are fitted to the forecasting objective. The formulas here do not specify a low-rank parameterization.
Can Koopa handle multivariate time series?
The formulas on this page are written for a single series x_t. How several variates are combined, for example whether the operator is shared across channels or defined per channel, should be taken from the original paper, since it affects both capacity and generalization.
Related methods
Sources
Liu, Y., Li, C., Wang, J., & Long, M. (2023). Koopa: Learning non-stationary time series dynamics with Koopman predictors. NeurIPS.
Open publication reference