[Paper Review] RWKV-TS: Beyond Traditional Recurrent Neural Network for Time Series Tasks
RWKV-TS is an efficient RNN-based time-series model with O(L) time and memory, achieving competitive performance to SOTA Transformers/CNNs while reducing latency and memory usage.
Traditional Recurrent Neural Network (RNN) architectures, such as LSTM and GRU, have historically held prominence in time series tasks. However, they have recently seen a decline in their dominant position across various time series tasks. As a result, recent advancements in time series forecasting have seen a notable shift away from RNNs towards alternative architectures such as Transformers, MLPs, and CNNs. To go beyond the limitations of traditional RNNs, we design an efficient RNN-based model for time series tasks, named RWKV-TS, with three distinctive features: (i) A novel RNN architecture characterized by $O(L)$ time complexity and memory usage. (ii) An enhanced ability to capture long-term sequence information compared to traditional RNNs. (iii) High computational efficiency coupled with the capacity to scale up effectively. Through extensive experimentation, our proposed RWKV-TS model demonstrates competitive performance when compared to state-of-the-art Transformer-based or CNN-based models. Notably, RWKV-TS exhibits not only comparable performance but also demonstrates reduced latency and memory utilization. The success of RWKV-TS encourages further exploration and innovation in leveraging RNN-based approaches within the domain of Time Series. The combination of competitive performance, low latency, and efficient memory usage positions RWKV-TS as a promising avenue for future research in time series tasks. Code is available at:\href{https://github.com/howard-hou/RWKV-TS}{ https://github.com/howard-hou/RWKV-TS}
Motivation & Objective
- Reconsider the role of RNNs in time series tasks despite Transformer dominance.
- Propose an RNN-based architecture (RWKV-TS) with linear time/space complexity for time series data.
- Empirically validate RWKV-TS across forecasting, imputation, anomaly detection, classification, and few-shot learning tasks.
- Demonstrate that RWKV-TS can achieve competitive accuracy while reducing latency and memory usage compared to SOTA models.
Proposed method
- Introduce instance normalization and patching to convert multivariate series into input tokens for RWKV-TS.
- Use RWKV backbone with time-mixing and channel-mixing sub-blocks, featuring a multi-head WKV operator for linear-time attention-like computations.
- Provide both parallel (primary) and recurrent modes, showing their formal equivalence and enabling efficient training and inference.
- Apply output gating with SiLU and layer normalization, and use a flattening projection followed by MSE loss for predictions.
- Analyze O(L) time/space complexity and encode-only architecture to avoid error accumulation typical of traditional RNNs.
Experimental results
Research questions
- RQ1Can RWKV-TS match or surpass state-of-the-art Transformer- or CNN-based models on diverse time series tasks?
- RQ2Does the linear-time RWKV-TS architecture offer practical advantages in training/inference latency and memory usage without sacrificing accuracy?
- RQ3How does RWKV-TS perform across long-term forecasting, short-term forecasting, imputation, anomaly detection, classification, and few-shot settings?
- RQ4Can RNN-based approaches remain competitive in time series with long-range dependencies when designed with time-mixing and channel-mixing mechanisms?
Key findings
- RWKV-TS achieves competitive performance compared to SOTA Transformer- and CNN-based models across multiple time-series tasks.
- On long-term forecasting, RWKV-TS shows an average MSE reduction of 12.58% and MAE reduction of 4.38% relative to TimesNet.
- In efficiency analyses, RWKV-TS-768 (24M parameters) shows training time 0.067s and inference time 0.018s per batch, outperforming several baselines in speed with similar or fewer parameters.
- RWKV-TS demonstrates strong results in short-term forecasting (M4) and few-shot forecasting, often outperforming prominent baselines and showing competitive margins to TimesNet and N-BEATS.
- In time series classification, RWKV-TS achieves high accuracy, averaging 73.10% on UEA datasets, close to TimesNet and surpassing most baselines.
- RWKV-TS maintains good anomaly detection performance, with averaged F1-scores near state-of-the-art levels across standard datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.