Sundial: A Family of Highly Capable Time Series Foundation Models

Yong Liu, Guo Qin, Zhiyuan Shi, Zhi Chen, Caiyi Yang, Xiangdong Huang, Jianmin Wang, Mingsheng Long

arXiv:2502.00816 · 2026-07-27 공개 · arXiv · PDF

transformer flow-matching foundation-models synthetic-data generative-modeling time-series probabilistic-forecasting timeflow-loss

Abstract

We introduce Sundial, a family of native, flexible, and scalable time series foundation models. To predict the next-patch's distribution, we propose a TimeFlow Loss based on flow-matching, which facilitates native pre-training of Transformers on continuous-valued time series without discrete tokenization. Conditioned on arbitrary-length time series, our models are pre-trained without specifying any prior distribution and can generate multiple probable predictions, achieving more flexibility in representation learning than using parametric densities. Towards time series foundation models, we leverage minimal but crucial adaptations of Transformers and curate TimeBench with one trillion time points, comprising mostly real-world datasets and synthetic data. By mitigating mode collapse via TimeFlow Loss, we pre-train a family of Sundial models on TimeBench, which achieve unprecedented model capacity and generalization performance. In addition to excellent scalability, Sundial achieves state-of-the-art results on both point and probabilistic forecasting benchmarks with a just-in-time inference speed, i.e., making zero-shot predictions within a few milliseconds. We believe that Sundial's pioneering generative forecasting capability can improve model reliability in real-world decision-making. Code is available at: https://github.com/thuml/Sundial.

한국어 요약

한 줄 요약

Sundial은 TimeFlow Loss를 도입한 확장성 높은 시계열 생성 모델로, 1조 개의 시계열 포인트로 사전 학습되어 최신 성능을 달성한다.

핵심 기여도

핵심 아이디어

기존 시계열 생성 모델은 이산 토큰화를 통해 예측 분포를 학습하지만, 이는 연속값 시계열의 본질적 특성을 제한할 수 있다. Sundial은 **TimeFlow Loss**를 도입하여, 연속값 시계열을 이산화 없이 학습하고, **모드 콜랩스**(mode collapse)를 완화함으로써 더 유연한 분포를 학습한다. 이는 확률적 예측에서 더 높은 신뢰도를 제공한다. 또한, **RoPE, Pre-LN, FlashAttention, KV Cache** 등의 Transformer 최적화 기법을 적용하여, 긴 문맥 처리와 빠른 추론을 가능하게 한다. 이는 기존 시계열 기초 모델에서 일반적으로 간과되었던 핵심 기술적 개선이다.

기술적 접근법

주요 결과

의의 및 한계

Sundial은 시계열 기초 모델에서 **생성적 예측**(generative forecasting)을 본격적으로 도입한 첫 사례로, 확률적 예측의 신뢰도를 높이는 데 기여한다. 또한, **TimeBench**는 시계열 기초 모델 연구에 중요한 데이터 자산을 제공한다. 그러나, 모델의 **확장성**(예: Ultra 버전 미포함)과 **실제 세계 데이터셋에 대한 일반화 능력**은 추가 연구가 필요하다. 또한, 일부 데이터셋(예: ECL)에서는 성능이 명시되지 않아 완전한 평가가 어려울 수 있다.

실용적 활용

Sundial은 금융, 에너지, 의료 등 **실시간 시계열 예측이 필요한 산업**에 적용 가능하다. 특히, **확률적 예측**을 통해 불확실성 관리를 요구하는 의사결정 시스템에서 유용하며, **zero-shot 성능**은 사전 학습 모델의 즉시 활용 가능성을 높인다.