README.md

October 31, 2025 · View on GitHub

A Fair and Scalable Time Series Analysis Benchmark and Toolkit.

English | 简体中文


EasyTorch LICENSE PyTorch PyTorch python lint

🎉 Getting Started | 💡 Overall Design

📦 Dataset | 🛠️ Scaler | 🧠 Model | 📉 Metrics | 🏃‍♂️ Runner | 📜 Config | 📜 Baselines

BasicTS (Basic Time Series) is a benchmark library and toolkit designed for time series analysis. It now supports a wide range of tasks and datasets such as spatial-temporal forecasting, long-term time series forecasting, classification, and imputation. It covers various types of algorithms such as statistical models, machine learning models, and deep learning models, making it an ideal tool for developing and evaluating time series analysis models. You can find detailed tutorials in Getting Started.

📢 Latest Updates

🎉 Update (Oct 2025): BasicTS now has built-in support for Selective Learning (NeurIPS'25), an effective training strategy to mitigate overfitting and enhance model performance and generalization. Users can import and use it directly from the callback module. Usage Guide

🎉 Update (Oct 2025): BasicTS version 1.0 is released! New Features:

  • 🚀 Quick Start with Three Lines of Code: Install via pip, minimal API design for rapid model training and evaluation.
  • 📦 Modular Components, Ready to Use: Provides plug-and-play components like Transformers and MLPs, allowing you to build your own model like building blocks.
  • 🔄 Multi-Task Support: Natively supports core tasks in time series analysis, including forecasting, classification, and imputation.
  • 🔧 Highly Extensible Architecture: Based on Taskflow and Callback mechanisms, enabling easy customization without modifying the Runner.

🎉 Update (May 2025): BasicTS now supports training universal forecasting models (e.g., TimeMoE and ChronosBolt) using the BLAST (KDD'25) corpus. BLAST enables faster convergence, significantly reduced computational costs, and achieves superior performance even with limited resources.

If you find this project helpful, please don't forget to give it a ⭐ Star to show your support. Thank you!

Important

If you find this repository helpful for your work, please consider citing the following benchmarking paper:

@article{shao2024exploring,
 title={Exploring progress in multivariate time series forecasting: Comprehensive benchmarking and heterogeneity analysis},
 author={Shao, Zezhi and Wang, Fei and Xu, Yongjun and Wei, Wei and Yu, Chengqing and Zhang, Zhao and Yao, Di and Sun, Tao and Jin, Guangyin and Cao, Xin and others},
 journal={IEEE Transactions on Knowledge and Data Engineering},
 year={2024},
 volume={37},
 number={1},
 pages={291-305},
 publisher={IEEE}
}

🔥🔥🔥 The paper has been accepted by IEEE TKDE! You can check it out here. 🔥🔥🔥

✨ Highlighted Features

On one hand, BasicTS provides a unified and standardized pipeline, offering a fair and comprehensive platform for reproducing and comparing popular models.

On the other hand, BasicTS offers a user-friendly and easily extensible interface, enabling quick design and evaluation of new models. Users can simply define their model structure and easily perform basic operations.

Fair Performance Review

Users can compare the performance of different models on arbitrary datasets fairly and exhaustively based on a unified and comprehensive pipeline.

Developing with BasicTS

Minimum Code Users only need to implement key codes such as model architecture and data pre/post-processing to build their own deep learning projects.
Everything Based on Config Users can control all the details of the pipeline through a config file, such as the hyperparameter of dataloaders, optimization, and other tricks (*e.g.*, curriculum learning).
Support All Devices BasicTS supports CPU, GPU and GPU distributed training (both single node multiple GPUs and multiple nodes) thanks to using EasyTorch as the backend. Users can use it by setting parameters without modifying any code.
Save Training Log Support `logging` log system and `Tensorboard`, and encapsulate it as a unified interface, users can save customized training logs by calling simple interfaces.

🚀 Installation and Quick Start

For detailed instructions, please refer to the Getting Started tutorial.

📦 Supported Baselines

BasicTS implements a wealth of models, including classic models, spatial-temporal forecasting models, and long-term time series forecasting model, and universal forecasting models.

You can find the implementation of these models in the baselines directory.

The code links (💻Code) in the table below point to the official implementations from these papers. Many thanks to the authors for open-sourcing their work!

Universal Forecasting Models

📊Baseline📝Title📄Paper💻Code🏛Venue🎯Task
TimeMoETime-MoE: Billion-Scale Time Series Foundation Models with Mixture of ExpertsLinkLinkICLR'25UFM
ChronosBoltChronos: Learning the Language of Time SeriesLinkLinkTMLR'24UFM
MOIRAI (inference)Unified Training of Universal Time Series Forecasting TransformersLinkLinkICML'24UFM

Spatial-Temporal Forecasting

📊Baseline📝Title📄Paper💻Code🏛Venue🎯Task
STDNSpatiotemporal-aware Trend-Seasonality Decomposition Network for Traffic Flow ForecastingLinkLinkAAAI'25STF
HimNetHeterogeneity-Informed Meta-Parameter Learning for Spatiotemporal Time Series ForecastingLinkLinkSIGKDD'24STF
DFDGCNDynamic Frequency Domain Graph Convolutional Network for Traffic ForecastingLinkLinkICASSP'24STF
STPGNNSpatio-Temporal Pivotal Graph Neural Networks for Traffic Flow ForecastingLinkLinkAAAI'24STF
BigSTLinear Complexity Spatio-Temporal Graph Neural Network for Traffic Forecasting on Large-Scale Road NetworksLinkLinkVLDB'24STF
STDMAESpatio-Temporal-Decoupled Masked Pre-training for Traffic ForecastingLinkLinkIJCAI'24STF
STWaveWhen Spatio-Temporal Meet Wavelets: Disentangled Traffic Forecasting via Efficient Spectral Graph Attention NetworksLinkLinkICDE'23STF
STAEformerSpatio-Temporal Adaptive Embedding Makes Vanilla Transformer SOTA for Traffic ForecastingLinkLinkCIKM'23STF
MegaCRNSpatio-Temporal Meta-Graph Learning for Traffic ForecastingLinkLinkAAAI'23STF
DGCRNDynamic Graph Convolutional Recurrent Network for Traffic Prediction: Benchmark and SolutionLinkLinkACM TKDD'23STF
STIDSpatial-Temporal Identity: A Simple yet Effective Baseline for Multivariate Time Series ForecastingLinkLinkCIKM'22STF
STEPPretraining Enhanced Spatial-temporal Graph Neural Network for Multivariate Time Series ForecastingLinkLinkSIGKDD'22STF
D2STGNNDecoupled Dynamic Spatial-Temporal Graph Neural Network for Traffic ForecastingLinkLinkVLDB'22STF
STNormSpatial and Temporal Normalization for Multi-variate Time Series ForecastingLinkLinkSIGKDD'21STF
STGODESpatial-Temporal Graph ODE Networks for Traffic Flow ForecastingLinkLinkSIGKDD'21STF
GTSDiscrete Graph Structure Learning for Forecasting Multiple Time SeriesLinkLinkICLR'21STF
StemGNNSpectral Temporal Graph Neural Network for Multivariate Time-series ForecastingLinkLinkNeurIPS'20STF
MTGNNConnecting the Dots: Multivariate Time Series Forecasting with Graph Neural NetworksLinkLinkSIGKDD'20STF
AGCRNAdaptive Graph Convolutional Recurrent Network for Traffic ForecastingLinkLinkNeurIPS'20STF
GWNetGraph WaveNet for Deep Spatial-Temporal Graph ModelingLinkLinkIJCAI'19STF
STGCNSpatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic ForecastingLinkLinkIJCAI'18STF
DCRNNDiffusion Convolutional Recurrent Neural Network: Data-Driven Traffic ForecastingLinkLink1, Link2ICLR'18STF

Long-Term Time Series Forecasting

📊Baseline📝Title📄Paper💻Code🏛Venue🎯Task
S-D-MambaIs Mamba Effective for Time Series Forecasting?LinkLinkNeuroComputing'24LTSF
Bi-MambaBi-Mamba+: Bidirectional Mamba for Time Series ForecastingLinkLinkarXiv'24LTSF
ModernTCNModernTCN: A Modern Pure Convolution Structure for General Time Series AnalysisLinkLinkICLR'24LTSF
TimeXerTimeXer: Empowering Transformers for Time Series Forecasting with Exogenous VariablesLinkLinkNeurIPS'24LTSF
CARDCARD: Channel Aligned Robust Blend Transformer for Time Series ForecastingLinkLinkICLR'24LTSF
SOFTSSOFTS: Efficient Multivariate Time Series Forecasting with Series-Core FusionLinkLinkNeurIPS'24LTSF
CATSAre Self-Attentions Effective for Time Series Forecasting?LinkLinkNeurIPS'24LTSF
SumbaStructured Matrix Basis for Multivariate Time Series Forecasting with Interpretable DynamicsLinkLinkNeurIPS'24LTSF
GLAFFRethinking the Power of Timestamps for Robust Time Series Forecasting: A Global-Local Fusion PerspectiveLinkLinkNeurIPS'24LTSF
CycleNetCycleNet: Enhancing Time Series Forecasting through Modeling Periodic Patterns ForecastingLinkLinkNeurIPS'24LTSF
FredformerFredformer: Frequency Debiased Transformer for Time Series ForecastingLinkLinkKDD'24LTSF
UMixerAn Unet-Mixer Architecture with Stationarity Correction for Time Series ForecastingLinkLinkAAAI'24LTSF
TimeMixerDecomposable Multiscale Mixing for Time Series ForecastingLinkLinkICLR'24LTSF
Time-LLMTime-LLM: Time Series Forecasting by Reprogramming Large Language ModelsLinkLinkICLR'24LTSF
SparseTSFModeling LTSF with 1k ParametersLinkLinkICML'24LTSF
iTrainsformerInverted Transformers Are Effective for Time Series ForecastingLinkLinkICLR'24LTSF
KoopaLearning Non-stationary Time Series Dynamics with Koopman PredictorsLinkLinkNeurIPS'24LTSF
CrossGNNCrossGNN: Confronting Noisy Multivariate Time Series Via Cross Interaction RefinementLinkLinkNeurIPS'23LTSF
NLinearAre Transformers Effective for Time Series Forecasting?LinkLinkAAAI'23LTSF
CrossformerTransformer Utilizing Cross-Dimension Dependency for Multivariate Time Series ForecastingLinkLinkICLR'23LTSF
DLinearAre Transformers Effective for Time Series Forecasting?LinkLinkAAAI'23LTSF
DSformerA Double Sampling Transformer for Multivariate Time Series Long-term PredictionLinkLinkCIKM'23LTSF
SegRNNSegment Recurrent Neural Network for Long-Term Time Series ForecastingLinkLinkarXivLTSF
MTS-MixersMultivariate Time Series Forecasting via Factorized Temporal and Channel MixingLinkLinkarXivLTSF
LightTSFast Multivariate Time Series Forecasting with Light Sampling-oriented MLPLinkLinkarXivLTSF
ETSformerExponential Smoothing Transformers for Time-series ForecastingLinkLinkarXivLTSF
NHiTSNeural Hierarchical Interpolation for Time Series ForecastingLinkLinkAAAI'23LTSF
PatchTSTA Time Series is Worth 64 Words: Long-term Forecasting with TransformersLinkLinkICLR'23LTSF
TiDELong-term Forecasting with TiDE: Time-series Dense EncoderLinkLinkTMLR'23LTSF
S4Efficiently Modeling Long Sequences with Structured State SpacesLinkLinkICLR'22LTSF
TimesNetTemporal 2D-Variation Modeling for General Time Series AnalysisLinkLinkICLR'23LTSF
TriformerTriangular, Variable-Specific Attentions for Long Sequence Multivariate Time Series ForecastingLinkLinkIJCAI'22LTSF
NSformerExploring the Stationarity in Time Series ForecastingLinkLinkNeurIPS'22LTSF
FiLMFrequency improved Legendre Memory Model for LTSFLinkLinkNeurIPS'22LTSF
FEDformerFrequency Enhanced Decomposed Transformer for Long-term Series ForecastingLinkLinkICML'22LTSF
PyraformerLow complexity pyramidal Attention For Long-range Time Series Modeling and ForecastingLinkLinkICLR'22LTSF
HIHistorical Inertia: A Powerful Baseline for Long Sequence Time-series ForecastingLinkNoneCIKM'21LTSF
AutoformerDecomposition Transformers with Auto-Correlation for Long-Term Series ForecastingLinkLinkNeurIPS'21LTSF
InformerBeyond Efficient Transformer for Long Sequence Time-Series ForecastingLinkLinkAAAI'21LTSF

Others

📊Baseline📝Title📄Paper💻Code🏛Venue🎯Task
CatBoostCatboost: unbiased boosting with categorical featuresLinkLinkNeurIPS'18Machine Learning
LightGBMLightGBM: A Highly Efficient Gradient Boosting Decision TreeLinkLinkNeurIPS'17Machine Learning
NBeatsNeural basis expansion analysis for interpretable time series forecastingLinkLink1, Link2ICLR'19Deep Time Series Forecasting
DeepARProbabilistic Forecasting with Autoregressive Recurrent NetworksLinkLink1, Link2, Link3Int. J. Forecast'20Probabilistic Time Series Forecasting
WaveNetWaveNet: A Generative Model for Raw Audio.LinkLink 1, Link 2arXivAudio
ARVII. On a method of investigating periodicities disturbed series, with special reference to Wolfer's sunspot numbersLinkLink1927Local Forecasting
MAOn periodicity in series of related termsLinkLink1931Local Forecasting
ARMASome recent advances in forecasting and controlLinkLinkApplied Statistics'1968Local Forecasting
ARIMAForecasting with exponential smoothing: the state space approachLinkLink2008Local Forecasting
SARIMAForecasting with exponential smoothing: the state space approachLinkLink2008Local Forecasting
ARCHConditional heteroscedasticity in time series of stock returns: Evidence and forecastsLinkLinkJournal of business'1989Local Forecasting
GARCHConditional heteroscedasticity in time series of stock returns: Evidence and forecastsLinkLinkJournal of business'1989Local Forecasting
ETSThe holt-winters forecasting procedureLinkLinkApplied Statistics'1978Local Forecasting
SESThe holt-winters forecasting procedureLinkLinkApplied Statistics'1978Local Forecasting
SVRSupport vector regression machinesLinkLinkNeurIPS'1996Machine Learning
PolySVRA training algorithm for optimal margin classifiersLinkLinkCOLT'1992Machine Learning

📦 Supported Datasets

BasicTS support a variety of datasets, including spatial-temporal forecasting, long-term time series forecasting, and large-scale datasets.

Spatial-Temporal Forecasting

🏷️Name🌐Domain📏Length📊Time Series Count🔄Graph⏱️Freq. (m)🎯Task
METR-LATraffic Speed34272207True5STF
PEMS-BAYTraffic Speed52116325True5STF
PEMS03Traffic Flow26208358True5STF
PEMS04Traffic Flow16992307True5STF
PEMS07Traffic Flow28224883True5STF
PEMS08Traffic Flow17856170True5STF

Long-Term Time Series Forecasting

🏷️Name🌐Domain📏Length📊Time Series Count🔄Graph⏱️Freq. (m)🎯Task
BeijingAirQualityBeijing Air Quality360007False60LTSF
ETTh1Electricity Transformer Temperature144007False60LTSF
ETTh2Electricity Transformer Temperature144007False60LTSF
ETTm1Electricity Transformer Temperature576007False15LTSF
ETTm2Electricity Transformer Temperature576007False15LTSF
ElectricityElectricity Consumption26304321False60LTSF
ExchangeRateExchange Rate75888False1440LTSF
IllnessIlness Data9667False10080LTSF
TrafficRoad Occupancy Rates17544862False60LTSF
WeatherWeather5269621False10LTSF

Large Scale Dataset

🏷️Name🌐Domain📏Length📊Time Series Count🔄Graph⏱️Freq. (m)🎯Task
CATraffic Flow350408600True15Large Scale
GBATraffic Flow350402352True15Large Scale
GLATraffic Flow350403834True15Large Scale
SDTraffic Flow35040716True15Large Scale

Pre-training Corpus

🏷️Name🌐Domain📏Length📊Time Series Count🔄Graph⏱️Freq.🎯Task
BLASTMultiple409620000000FalseMultipleUFM

📉 Main Results

See the paper Exploring Progress in Multivariate Time Series Forecasting: Comprehensive Benchmarking and Heterogeneity Analysis.

✨ Contributors

Thanks goes to these wonderful people (emoji key):

S22
S22

🚧 💻 🐛
finleywang
finleywang

🧑‍🏫
blisky-li
blisky-li

💻
LMissher
LMissher

💻 🐛
CNStark
CNStark

🚇
Azusa
Azusa

🐛
Yannick Wölker
Yannick Wölker

🐛
hlhang9527
hlhang9527

🐛
Chengqing Yu
Chengqing Yu

💻
Reborn14
Reborn14

📖 💻
TensorPulse
TensorPulse

🐛
superarthurlx
superarthurlx

💻 🐛
Yisong Fu
Yisong Fu

💻
Xubin
Xubin

📖
DU YIFAN
DU YIFAN

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

🔗 Acknowledgement

BasicTS is developed based on EasyTorch, an easy-to-use and powerful open-source neural network training framework.

📧 Contact

We invite you to join our official community to access comprehensive technical support.

Official Discord Server: Click here to join our Discord community

Official WeChat Group:

wechat