Research Article

ATPAM: Adversarial Temporal Pattern Attention Mechanism

Luyao Huang*
School of Southwest Jiao Tong University, Chengdu, China

* Corresponding author: [email protected]

Abstract

Time series forecasting has a large number of applications in daily life, for instance the prediction of stock prices, electricity consumption, exchange rate changes etc. However, the existing time series prediction methods have limitations. The most significant one is that when all the prediction models get the predicted value, a new round of iteration starts after the loss function is calculated with the corresponding real data. This may cause the accumulation of errors, since there is only one loss function to measure the difference between the predicted value and the ground truth, it will make the connection weak and mainly depend on the accuracy of the prediction model. Unfortunately, there are few time series prediction models with high accuracy in reality. To solve the issue, in this paper, we propose a new time series forecasting model – Adversarial Temporal Pattern Attention Mechanism (ATPAM), which based on Generative Adversarial Nets (GANs). ATPAM adopts a Temporal Pattern Attention model as the generator to learn time-invariant temporal patterns, and use a discriminator to improve the prediction performance and do auxiliary adversarial training. Extensive experiments on several real-world datasets show the effectiveness of our method.

Keywords: time series forecasting; neural networks; generative adversarial networks; temporal pattern attention.
Published: November 1, 2024
DOI: 10.54254/2753-8818/53/20240150
Volume: TNS Vol.53
pp. 90-97
Download PDF

References

  1. David J Bartholomew. Time series analysis forecasting and control., 1971.
  2. Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
  3. Kyunghyun Cho, Bart Van Merriënboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: Encoder-decoder approaches.arXiv preprint arXiv:1409.1259, 2014.
  4. David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting, 36(3):1181–1191, 2020.
  5. Guokun Lai, Wei-Cheng Chang, Yiming Yang, and Hanxiao Liu. Modeling long-and short-term temporal patterns with deep neural networks. In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, pages 95–104, 2018.
  6. Shun-Yao Shih, Fan-Keng Sun, and Hung-yi Lee. Temporal pattern attention for multivariate time series forecasting. Machine Learning, 108(8):1421–1441, 2019.
  7. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
  8. Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. Advances in Neural Information Processing Systems, 32, 2019.
  9. Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of AAAI, 2021.
  10. Sifan Wu, Xi Xiao, Qianggang Ding, Peilin Zhao, Ying Wei, and Junzhou Huang. Adversarial sparse transformer for time series forecasting. Advances in Neural Information Processing Systems, 33:17105–17115, 2020.
  11. Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014.
  12. Jeffrey R Russell and Robert F Engle. A discrete-state continuous-time model of financial transactions prices and times: The autoregressive conditional multinomial–autoregressive conditional duration model. Journal of Business & Economic Statistics, 23(2):166–180, 2005.
  13. GI Taylor. Proceedings of the royal society of london. series a, containing papers of a mathematical and physical character. The formation of emulsions in definable fields of flow, pages 501–523, 1934.