Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

LTSF-Linear

AI GitHub ReposAI Models & LLMsOpen source · Linux, macOS, Windows

LTSF-Linear is an official PyTorch implementation for "Are Transformers Effective for Time Series Forecasting?". It introduces a family of linear models (Linear, DLinear, NLinear) that outperform transformers on long-term time series forecasting tasks, offering high efficiency and interpretability.

View Repository
Share
View Repository
Share

LTSF-Linear provides the official PyTorch implementation for the research paper "Are Transformers Effective for Time Series Forecasting?", presented at AAAI-2023. This repository focuses on a family of linear models designed to address the challenges of long-term time series forecasting (LTSF), demonstrating superior performance compared to transformer-based architectures.

Read More

The LTSF-Linear family includes three core models: Linear, NLinear, and DLinear. The basic Linear model is a single-layer linear model that surprisingly outperforms complex transformers. NLinear enhances performance by normalizing inputs to handle distribution shifts between training and testing sets. DLinear combines a decomposition scheme with linear layers, separating data into trend and seasonal components for more robust forecasting.

Key advantages of LTSF-Linear include its O(1) maximum signal traversing path length, enabling effective capture of both short-range and long-range temporal dependencies. The models are highly efficient, requiring less memory, fewer parameters, and offering faster inference speeds than transformers. Furthermore, LTSF-Linear models are interpretable, allowing for weight visualization to gain insights into predictions, and are easy to use without extensive hyper-parameter tuning.

The repository also serves as a benchmark for LTSF, supporting both univariate and multivariate forecasting. It includes implementations of several prominent forecasting transformers (Transformer, Informer, Autoformer, Pyraformer, FEDformer) for comparative analysis. Detailed scripts are provided for various experimental setups, including long-term forecasting, the impact of look-back window sizes, and embedding strategies.

This project is valuable for researchers and practitioners in time series analysis, machine learning, and forecasting who are looking for efficient, interpretable, and high-performing solutions for long-term predictions. The inclusion of a benchmark and comparative implementations makes it a comprehensive resource for evaluating forecasting models.

  • CategoryAI Models & LLMs
  • Pricing ModelOpen source
  • DeploymentCloud, Self-hosted
  • PlatformsLinux, macOS, Windows

  • Official PyTorch implementation of LTSF-Linear models

  • Includes Linear, NLinear, and DLinear models

  • Outperforms transformer-based methods in long-term time series forecasting

  • Supports univariate and multivariate forecasting

  • High-efficiency with lower memory and faster inference

  • O(1) maximum signal traversing path length for dependency capture

  • Weight visualization for interpretability

  • Includes benchmark for long-term time series forecasting

  • Provides implementations of Transformer, Informer, Autoformer, Pyraformer, FEDformer

  • Scripts for various experimental setups (long-term forecasting, look-back window study)

  • Easy to use without extensive hyper-parameter tuning

  1. Set up environment: Install Conda, create a virtual environment, and install requirements.

  2. Data preparation: Download benchmark datasets and place them in the './dataset' directory.

  3. Training: Execute provided shell scripts in the './scripts' directory for specific models and datasets.

  4. Model selection: Specify the desired model (Linear, DLinear, NLinear) within the training scripts.

  5. Experimentation: Utilize scripts for long-term forecasting, look-back window studies, and embedding strategies.

  6. Visualization: Run weight plotting scripts to interpret model behavior.

  7. Integration: Adapt training and inference scripts for custom time series forecasting tasks.

  • Long-term forecasting
  • Univariate forecasting
  • Multivariate forecasting
  • Trend and seasonality analysis
  • Model performance benchmarking
  • Interpretable AI

LTSF-Linear Reviews

Loading...

Popular AI Tools Like LTSF-Linear

FEDformer

AI GitHub Repos

FEDformer is a Frequency Enhanced Decomposed Transformer designed for efficient long-term time series forecasting. It achieves linear complexity with sequence length,…

AI Models & LLMs
View Tool

AI GitHub Repos

Frequency Enhanced Decomposed Transformer designed for efficient long-term time series forecasting. It achieves linear complexity with sequence length,…FEDformer is a Frequency Enhanced Decomposed Transformer designed for efficient long-term time series forecasting. It achieves linear complexity with sequence length,…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Autoformer

AI GitHub Repos

Autoformer is an AI model for long-term time series forecasting, leveraging decomposition transformers and auto-correlation mechanisms. It achieves state-of-the-art results across…

AI Models & LLMs
View Tool

AI GitHub Repos

AI model for long-term time series forecasting, leveraging decomposition transformers and auto-correlation mechanisms. It achieves state-of-the-art results across…Autoformer is an AI model for long-term time series forecasting, leveraging decomposition transformers and auto-correlation mechanisms. It achieves state-of-the-art results across…

AI Models & LLMs
See the Top 250 AI GitHub Repos

PatchTST

AI Models

PatchTST is an official implementation of a Transformer-based model for long-term time series forecasting. It segments time series into patches and processes them independently,…

AI Models & LLMs
View Tool

AI Models

Official implementation of a Transformer-based model for long-term time series forecasting. It segments time series into patches and processes them independently,…PatchTST is an official implementation of a Transformer-based model for long-term time series forecasting. It segments time series into patches and processes them independently,…

AI Models & LLMs
See the Top 5 AI Models

LSTNet

AI GitHub Repos

LSTNet is a deep learning model designed for time series forecasting. It effectively models both long-term and short-term temporal patterns using a combination of recurrent neural…

AI Models & LLMs
View Tool

AI GitHub Repos

Deep learning model designed for time series forecasting. It effectively models both long-term and short-term temporal patterns using a combination of recurrent neural…LSTNet is a deep learning model designed for time series forecasting. It effectively models both long-term and short-term temporal patterns using a combination of recurrent neural…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Informer2020

AI GitHub Repos

The Informer2020 GitHub repository provides the PyTorch implementation for the Informer model, designed for efficient long sequence time-series forecasting. It features ProbSparse…

AI Models & LLMs
View Tool

AI GitHub Repos

The Informer2020 GitHub repository provides the PyTorch implementation for the Informer model, designed for efficient long sequence time-series forecasting. It features ProbSparse…

AI Models & LLMs
See the Top 250 AI GitHub Repos

GluonTS

AI Frameworks

GluonTS is a Python package for probabilistic time series modeling, leveraging deep learning models built on PyTorch and MXNet. It facilitates accurate forecasting by generating…

AI Models & LLMs
View Tool

AI Frameworks

Python package for probabilistic time series modeling, leveraging deep learning models built on PyTorch and MXNet. It facilitates accurate forecasting by generating…GluonTS is a Python package for probabilistic time series modeling, leveraging deep learning models built on PyTorch and MXNet. It facilitates accurate forecasting by generating…

AI Models & LLMs
See the Top 50 AI Frameworks

Chronos-2 is a 120M-parameter encoder-only time series foundation model designed for zero-shot forecasting. It supports various forecasting tasks and is efficient, delivering over…

Forecasting & Predictive Analytics
View Tool

120M-parameter encoder-only time series foundation model designed for zero-shot forecasting. It supports various forecasting tasks and is efficient, delivering over…Chronos-2 is a 120M-parameter encoder-only time series foundation model designed for zero-shot forecasting. It supports various forecasting tasks and is efficient, delivering over…

FeaturedForecasting & Predictive Analytics
See the Top 5 AI Models

N-BEATS

AI GitHub Repos

N-BEATS is a neural-network based model for univariate time-series forecasting. Developed by ServiceNow Research, it implements the N-BEATS algorithm for reproducible experimental…

AI Models & LLMs
View Tool

AI GitHub Repos

Neural-network based model for univariate time-series forecasting. Developed by ServiceNow Research, it implements the N-BEATS algorithm for reproducible experimental…N-BEATS is a neural-network based model for univariate time-series forecasting. Developed by ServiceNow Research, it implements the N-BEATS algorithm for reproducible experimental…

AI Models & LLMs
See the Top 250 AI GitHub Repos
1 of 8