Positional Encoding in Transformer-Based Time Series Models: A Survey

Habib Irani, Vangelis Metsis
2/17/2025
cs.LG

No official code found. Best implementation: imics-lab/positional-encoding-benchmark (25 stars, MIT, last commit 2025-11-04).

Abstract

Recent advancements in transformer-based models have greatly improved time series analysis, providing robust solutions for tasks such as forecasting, anomaly detection, and classification. A crucial element of these models is positional encoding, which allows transformers to capture the intrinsic sequential nature of time series data. This survey systematically examines existing techniques for positional encoding in transformer-based time series models. We investigate a variety of methods, including fixed, learnable, relative, and hybrid approaches, and evaluate their effectiveness in different time series classification tasks. Our findings indicate that data characteristics like sequence length, signal complexity, and dimensionality significantly influence method effectiveness. Advanced positional encoding methods exhibit performance gains in terms of prediction accuracy, however, they come at the cost of increased computational complexity. Furthermore, we outline key challenges and suggest potential research directions to enhance positional encoding strategies. By delivering a comprehensive overview and quantitative benchmarking, this survey intends to assist researchers and practitioners in selecting and designing effective positional encoding methods for transformer-based time series models.

View on arXivView PDF

Code Implementations(1)

MIT

This repository offers a comprehensive overview and quantitative benchmarking of positional encoding methods in transformer-based time series models.

256Python, Jupyter NotebookJun 3, 202411 months agoMIT
positional-encodingtime-seriestransformer

Similar Papers

Cite this paper

@article{irani2025positional,
  title  = {Positional Encoding in Transformer-Based Time Series Models: A Survey},
  author = {Habib Irani and Vangelis Metsis},
  year   = {2025},
  eprint = {2502.12370},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12370v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12370.svg)](https://codeofpaper.com/paper/2502.12370)

Discussion