FLAME: Flow Enhanced Legendre Memory Models for General Time Series Forecasting

Xingjian Wu, Hanyin Cheng, Xiangfei Qiu, Zhengyu Li, Jilin Hu, Chenjuan Guo, Bin Yang · DOI

Abstract

FLAME (Flow Enhanced Legendre Memory Models) is a new family of "extremely lightweight" time series foundation models designed for high-performance zero-shot forecasting. By integrating classical Legendre Memory polynomials with modern Normalizing Flows, FLAME addresses the computational inefficiencies of large-scale models while providing robust probabilistic uncertainty quantification. FLAME achieves state-of-the-art results on major benchmarks with up to 240x fewer parameters than leading heavyweight models, offering a 900x speedup in inference and significantly reduced memory requirements.

Introduction

The current trajectory of Time Series Foundation Models (TSFMs) mirrors the scaling trends of Large Language Models, with some architectures reaching billions of parameters. While these "heavyweight" models demonstrate impressive zero-shot capabilities, they are often computationally prohibitive for real-time applications and struggle with Probabilistic Time Series Forecasting (PTSF)—the ability to quantify uncertainty rather than just predicting a single future value.

Existing models typically fall into two traps: massive Transformer-based architectures that are resource-intensive, or lightweight models that lack the architectural complexity to support multi-modal probability distributions, often relying on simple Gaussian assumptions. FLAME bridges this gap by proving that a model can be both tiny (10M parameters) and sophisticated enough to handle complex distributions across diverse domains.

Overview of the Time Series Foundation Model landscape and FLAME's positioning as a lightweight probabilistic forecaster.

Methodology

FLAME introduces several architectural innovations to maximize representational power while maintaining a small footprint:

  • Legendre Memory: Instead of standard attention, FLAME uses Legendre polynomials to compress historical data into fixed-size vectors. It employs LegT (translated) for local alignment and LegS (scaled) for long-range memory.
  • Local-Perception Module: To handle varying frequencies, FLAME uses a Fast Fourier Transform (FFT) to identify dominant periods in a data patch. The LegT module then aligns the local environment, helping the model handle different "rhythms" in the data.
  • SSD-Decoder: The architecture utilizes Structured State-Space Duality (SSD) layers, which provide the long-range modeling power of Transformers but with linear computational complexity.
  • Flow-based Head: This is the core of FLAME's probabilistic capability. By using Normalizing Flows, the model transforms a simple base distribution into an arbitrarily complex one, capturing intricate causality and uncertainty within each predicted time step.

Experimental Evaluation

FLAME was pretrained on a massive corpus compiled from the Monash, UEA, and UCR repositories, covering domains such as Energy, Nature, Health, Transport, Economics, and Web traffic. Evaluation focused on zero-shot performance across two primary benchmarks:

  • TSFM-Bench: Used for deterministic forecasting (e.g., Weather, Electricity, Traffic, Solar, Wind).
  • ProbTS: Used for probabilistic evaluation (e.g., Exchange rates, Illness (ILI), and ETT sets).

Key Results

  • Efficiency: FLAME Large (10.6M parameters) is approximately 900x faster in inference time and uses 80x less GPU memory than Chronos Large (700M).
  • Probabilistic Performance: On the ProbTS benchmark, FLAME Large achieved a 34.3% reduction in CRPS (Continuous Ranked Probability Score) compared to MOIRAI Large and an 18.1% reduction compared to Chronos Large.
  • Deterministic Performance: FLAME Small (2M parameters) achieved results competitive with Sundial Base (128M), while FLAME Large took the top spot in most zero-shot categories.

Conclusion

FLAME demonstrates that architectural inductive bias can outperform raw scale in time series forecasting. By leveraging the mathematical optimization of Legendre polynomials and the flexibility of Normalizing Flows, FLAME provides a high-performance, lightweight alternative to massive TSFMs. Future work aims to extend this architecture to anomaly detection, imputation, and classification to create a universal time series toolset.

Summary updated

BibTeX
@inproceedings{wu2026flame,
  author = {Xingjian Wu and Hanyin Cheng and Xiangfei Qiu and Zhengyu Li and Jilin Hu and Chenjuan Guo and Bin Yang},
  title = {{FLAME: Flow Enhanced Legendre Memory Models for General Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XKdNelCe2Q},
}
Figure