ARMA Cell: A Modular and Effective Approach for Neural Autoregressive Modeling

Philipp Schiele, Christoph Berninger, David Rügamer · DOI

Abstract

The ARMA Cell is a novel recurrent neural network (RNN) building block that bridges the gap between classical statistical time series modeling and modern deep learning. By translating the Autoregressive Moving Average (ARMA) framework into a modular, differentiable layer, it provides a simpler and often more robust alternative to complex cells like LSTMs. This paper demonstrates that the ARMA Cell matches or exceeds the performance of state-of-the-art RNNs on various forecasting tasks while remaining easier to train and integrate into existing architectures.

Introduction

Time series forecasting has traditionally been divided into two distinct paradigms: classical statistics and deep learning. Classical models, such as ARMA and ARIMA, offer transparency and theoretical guarantees but struggle with scalability and integration into complex neural pipelines. Conversely, deep learning models like Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU) excel at capturing high-dimensional patterns but are often criticized for their complexity, instability during training, and potential for overfitting on shorter or noisier sequences.

The ARMA Cell addresses this "Great Divide" by implementing the core logic of classical ARMA models within a standard RNN framework. This modular approach allows practitioners to leverage the inductive bias of short-term recurrence—often sufficient for many real-world applications—without the overhead of intricate gating mechanisms.

Methods: The ARMA Cell Architecture

The fundamental innovation of this work is the reparameterization of the ARMA(p, q) model as a neural network cell. In classical statistics, an ARMA model predicts the next value based on $p$ previous observations (the autoregressive part) and $q$ previous forecast errors (the moving average part).

Architecture of the ARMA cell, illustrating the integration of lagged inputs and predictions.

As shown in Figure 1, the ARMA Cell tracks $p$ lagged inputs and $q$ lagged predictions. The cell computes a linear combination of these values, weighted by learnable parameters ($\alpha, \beta, \gamma$), and then applies a non-linear activation function $\sigma$ (such as ReLU or Sigmoid). This allows the model to capture non-linear temporal dependencies that classical linear ARMA models cannot.

Key features of the ARMA Cell include:

  • Differentiability: Unlike classical estimation methods, the ARMA Cell is trained via backpropagation through time (BPTT), making it compatible with any modern deep learning library.
  • Modularity: It follows the standard RNN interface, allowing it to be stacked into "DeepARMA" architectures or used as a drop-in replacement for LSTMs in frameworks like DeepAR.
  • Spatial Awareness: The authors also introduce "ConvARMA," a convolutional variant designed for tensor-variate data like video frames, where spatial and temporal correlations must be modeled simultaneously.

Experimental Evaluation

The researchers evaluated the ARMA Cell across a diverse set of benchmarks, ranging from synthetic data to large-scale real-world datasets.

Synthetic Benchmarks

To test the cell's ability to recover known statistical patterns, it was tested on eight data-generating processes, including Threshold Autoregressive (TAR) and Vector ARMA (VARMA) models. In these controlled environments, the "ShallowARMA" (single-layer) model consistently outperformed LSTMs and GRUs. For instance, on the TAR dataset, ShallowARMA achieved a Root Mean Squared Error (RMSE) of 1.09, significantly lower than the LSTM's 1.38.

Real-World Performance

The model's efficacy was further validated on several high-profile datasets:

  • M4 Competition: On hourly time series data, ARMA-based models showed superior accuracy compared to standard RNNs.
  • Traffic and Electricity: In modeling San Francisco traffic occupancy and global electricity consumption, the ARMA Cell proved to be more stable. Notably, while LSTM-based models occasionally failed to converge on the Electricity dataset, the ARMA-based versions remained robust and reliable.

Key Insights

  1. Optimization Robustness: Training ARMA models using stochastic gradient descent (SGD) often proves more effective than classical Maximum Likelihood Estimation, especially when dealing with noisy data.
  2. The Power of Simplicity: The success of ShallowARMA suggests that the complex "forget gates" of LSTMs can sometimes lead to overfitting. A simpler model with the right inductive bias can be more effective.
  3. Recurrence as Error Correction: By explicitly modeling past predictions, the ARMA Cell treats the "Moving Average" component as a form of learned error correction, enhancing its predictive power.

Conclusion and Future Work

The ARMA Cell represents a significant step toward unifying classical time series wisdom with deep learning. While it is primarily optimized for short-to-medium-term dependencies, its modularity and stability make it an attractive choice for many forecasting tasks. Future research will focus on automated lag selection ($p$ and $q$) and leveraging classical theory to provide formal uncertainty quantification for neural network outputs.

Summary updated

BibTeX
@misc{schiele2022arma,
  author = {Philipp Schiele and Christoph Berninger and David Rügamer},
  title = {{ARMA Cell: A Modular and Effective Approach for Neural Autoregressive Modeling}},
  year = {2022},
  eprint = {2208.14919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.14919},
}
Figure