Time-Transformer: Integrating Local and Global Features for Better Time Series Generation (Extended Version)

Yuansan Liu, Sudanthi Wijewickrema, Ang Li, Christofer Bester, Stephen O'Leary +1 more
12/18/2023
20 citations
cs.LGcs.AI
transformer-attention

Official code: Lysarthas/Time-Transformer (17 stars, Jupyter Notebook, MIT, last commit 2025-09-30).

Abstract

Generating time series data is a promising approach to address data deficiency problems. However, it is also challenging due to the complex temporal properties of time series data, including local correlations as well as global dependencies.

Show full abstract

Most existing generative models have failed to effectively learn both the local and global properties of time series data. To address this open problem, we propose a novel time series generative model named 'Time-Transformer AAE', which consists of an adversarial autoencoder (AAE) and a newly designed architecture named 'Time-Transformer' within the decoder. The Time-Transformer first simultaneously learns local and global features in a layer-wise parallel design, combining the abilities of Temporal Convolutional Networks and Transformer in extracting local features and global dependencies respectively. Second, a bidirectional cross attention is proposed to provide complementary guidance across the two branches and achieve proper fusion between local and global features. Experimental results demonstrate that our model can outperform existing state-of-the-art models in 5 out of 6 datasets, specifically on those with data containing both global and local properties. Furthermore, we highlight our model's advantage on handling this kind of data via an artificial dataset. Finally, we show our model's ability to address a real-world problem: data augmentation to support learning with small datasets and imbalanced datasets.

View on arXivView PDF

Code Implementations(1)

MIT

[SDM24] Official code for "Time-Transformer"

173Jupyter Notebook, PythonDec 23, 20231 years agoMIT
generative-aineural-networkstime-series-analysistransformer

Similar Papers

Cite this paper

@article{liu2023timetransformer,
  title  = {Time-Transformer: Integrating Local and Global Features for Better Time Series Generation (Extended Version)},
  author = {Yuansan Liu and Sudanthi Wijewickrema and Ang Li and Christofer Bester and Stephen O'Leary and James Bailey},
  year   = {2023},
  eprint = {2312.11714},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.11714v4}
}

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/2312.11714.svg)](https://codeofpaper.com/paper/2312.11714)

Discussion