TL;DR
PathFM is a new generative foundation model for time series that moves beyond simple point and quantile forecasts to generate complete, high-fidelity future trajectories. By combining conditional flow matching with efficient distillation and history caching, PathFM produces diverse, joint multivariate forecasts in roughly the same time traditional models take to generate a single quantile, setting new state-of-the-art benchmarks for trajectory-dependent tasks.
What Problem Does This Paper Address?
Most modern Time Series Foundation Models (TSFMs) are optimized for marginal accuracy—predicting the range of possible values at each individual time step. While useful, this approach ignores the dependence structure of future paths.
If you need to know the cumulative demand over a month, the timing of a peak load, or the probability of a threshold crossing, marginal quantiles aren't enough. You need to know how values at time $t$ relate to values at time $t+1$. Traditional models often suffer from "regression-to-the-mean," where they predict the average behavior but fail to capture the realistic variability and "wiggles" of real-world data. As shown in Figure 1, standard models like Chronos-2 can collapse toward a single point in complex dynamical systems, whereas PathFM maintains the characteristic structure of the data.
Methods
PathFM utilizes Conditional Flow Matching (CFM) to learn a velocity field that transforms simple Gaussian noise into complex future trajectories. To make this practical for real-world engineering, the authors introduce several key innovations:
- Parallel Decoding Distillation (PDD): Standard flow models require dozens of sequential steps to generate a sample. PathFM distills the teacher model into a student that can generate a path in just one or two steps, drastically reducing latency.
- History Attention Caching: Since the "history" of a time series is constant across multiple sampled "futures," PathFM computes the history representation once and reuses it across all draws. This makes generating an ensemble of 32 paths nearly as fast as generating one.
- Calibration with Fair CRPS: The authors add a calibration stage that directly optimizes the Continuous Ranked Probability Score (CRPS) on the generated samples. This ensures that the generated trajectories aren't just realistic-looking, but also statistically accurate.
- Stratified Sampling: Instead of pure random noise, they use stratified Gaussian noise to ensure better coverage of the distribution even with a small number of samples.
Datasets
The model was trained on a massive 83M-row dataset of real-world and synthetic time series. Evaluation was conducted across several major benchmarks:
- fev-bench: A realistic benchmark for general forecasting.
- TIME: A benchmark for zero-shot forecasting on fresh datasets.
- fps-bench (Forecast Path Score Bench): A newly introduced benchmark by the authors. It augments existing tasks with energy and variogram scores to specifically measure how well models capture temporal and cross-variable dependencies.
- DYSTS: A collection of 135 chaotic dynamical systems used to test long-run physical fidelity.
Key Insights and Ideas
- Marginal Accuracy is a Mask: A model can look great on standard error metrics (like MASE) while producing physically impossible trajectories. PathFM shows that you don't have to sacrifice one for the other.
- Distillation as an Optimizer: Beyond speed, distillation makes the sampling process differentiable. This allows the authors to "fine-tune" the generative process using a calibration loss, which is usually impossible with multi-step diffusion models.
- Efficiency is the Enabler: By getting the cost of a path down to ~50ms (see Figure 4), generative forecasting becomes a viable drop-in replacement for quantile-based production systems.
Key Results
- Path Quality: PathFM-300M ranks 1st on the new fps-bench, outperforming strong baselines like TimesFM-3 and Chronos-2 in capturing temporal structure.
- Marginal Accuracy: It remains highly competitive, ranking 2nd on fev-bench for marginal scores.
- Speed: On an NVIDIA L4, PathFM generates 32 paths in just 51.6 ms.
- Chaotic Fidelity: In tests on the Lorenz oscillator, PathFM reduced long-term diagnostic errors by 49–69% compared to PANDA, the previous state-of-the-art for chaotic systems. As seen in Figure 6, PathFM scales effectively, with the 300M parameter model showing consistent improvements in training and evaluation loss.
Limitations and Future Work
While PathFM is a significant step forward, the authors note a few areas for growth:
- Multimodal Conditioning: Currently, the model only conditions on time series data and covariates. Future versions could incorporate text or image embeddings (e.g., weather maps or news reports).
- Invariant Distributions: While PathFM is much better than baselines at following chaotic attractors, it still doesn't perfectly recover the "true" invariant distribution of these systems over infinite horizons.
- Scaling: The scaling curves suggest that even larger models and more data will continue to push the boundaries of generative forecasting.
Summary updated