ParallelTime: Dynamically Weighting the Balance of Short- and Long-Term Temporal Dependencies

Itay Katav, Aryeh Kontorovich
7/18/2025
cs.LG

Official code: itay1551/ParallelTime (20 stars, MIT, last commit 2026-02-22).

Abstract

Modern multivariate time series forecasting primarily relies on two architectures: the Transformer with attention mechanism and Mamba. In natural language processing, an approach has been used that combines local window attention for capturing short-term dependencies and Mamba for capturing long-term dependencies, with their outputs averaged to assign equal weight to both. We find that for time-series forecasting tasks, assigning equal weight to long-term and short-term dependencies is not optimal. To mitigate this, we propose a dynamic weighting mechanism, ParallelTime Weighter, which calculates interdependent weights for long-term and short-term dependencies for each token based on the input and the model's knowledge. Furthermore, we introduce the ParallelTime architecture, which incorporates the ParallelTime Weighter mechanism to deliver state-of-the-art performance across diverse benchmarks. Our architecture demonstrates robustness, achieves lower FLOPs, requires fewer parameters, scales effectively to longer prediction horizons, and significantly outperforms existing methods. These advances highlight a promising path for future developments of parallel Attention-Mamba in time series forecasting. The implementation is readily available at: \href{https://github.com/itay1551/ParallelTime}{GitHub}.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implimitation of ParallelTime: Dynamically Weighting the Balance of Short- and Long-Term Temporal Dependencies. https://www.arxiv.org/abs/2507.13998

201Shell, PythonMay 22, 20258 months agoMIT

Similar Papers

Cite this paper

@article{katav2025paralleltime,
  title  = {ParallelTime: Dynamically Weighting the Balance of Short- and Long-Term Temporal Dependencies},
  author = {Itay Katav and Aryeh Kontorovich},
  year   = {2025},
  eprint = {2507.13998},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.13998v2}
}

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

Discussion