Abstract
Naga is a novel deep State Space Model (SSM) architecture designed for long-term time-series forecasting. By integrating "Vedic Encoding"—a technique inspired by ancient Indian mathematics—Naga captures complex long-range dependencies through bidirectional representations and element-wise interactions. Despite having a compact footprint of only 2.1 million parameters, Naga outperforms 28 state-of-the-art models on major benchmarks, demonstrating superior efficiency and representational capacity for high-dimensional temporal data.
The Challenge of Long-Term Forecasting
Long-term time-series forecasting (LTSF) remains a significant challenge in machine learning, requiring models to capture patterns spanning thousands of time steps in domains like energy grid management and climate science. While traditional Transformers are effective, their quadratic computational cost relative to sequence length makes them prohibitive for very long sequences.
State Space Models (SSMs), such as the Mamba architecture, provide a linear-scaling alternative. However, standard SSMs often struggle with complex, non-linear interactions across distant time steps and can suffer from vanishing gradients. Naga addresses these limitations by imposing a structured inductive bias that enhances the model's ability to learn distant relationships without increasing parameter complexity.
Methods: Vedic Encoding Architecture
The defining feature of Naga is the Vedic Encoding layer, which enhances a Mamba-2 backbone. The name is derived from the Sutras of Vedic mathematics, specifically the "vertically and crosswise" method of multiplication that decomposes large operations into smaller, interacting components.
As illustrated in the architecture comparison above, the Naga process involves several key stages:
- Bidirectional Representation: The model generates a time-reversed version ($\tilde{X}$) of the input sequence $X$.
- Linear Projection: Both forward and reversed sequences are processed through independent linear layers.
- Hadamard Interaction: The resulting representations are combined using an element-wise (Hadamard) product. This coupling of each time index $t$ with its symmetric counterpart $T - t + 1$ creates a bilinear interaction that naturally captures long-range dependencies.
- Mamba-2 Processing: This encoded representation is fed into a Mamba-2 block for recursive state updates.
Key Insights and Theoretical Advantages
Naga's performance is rooted in several theoretical innovations:
- Bilinear Representational Power: The authors demonstrate that Naga’s element-wise multiplication allows the model to represent "second-order monomials" (quadratic forms). This enables it to model multiplicative cross-time interactions that purely linear encoders cannot capture.
- Gradient Shortcuts: The Hadamard structure provides a direct path for gradients. Instead of error signals vanishing as they propagate through every time step, the Vedic encoding allows gradients from distant time pairs to influence weights in a single backpropagation step.
- Extreme Efficiency: Naga achieves state-of-the-art (SOTA) results with only 2.1 million parameters, matching or exceeding the performance of transformer-based architectures that are 6 to 9 times larger. This makes it highly suitable for edge computing and hardware-constrained environments.
Experimental Results
The researchers evaluated Naga across seven standard LTSF benchmarks, including ETT (Electricity Transformer Temperature), Weather, Traffic (862 sensors), and ILI (Influenza-like Illness).
Naga consistently achieved top-tier results:
- Accuracy: It outperformed 28 SOTA models in Mean Squared Error (MSE). Notably, on the high-dimensional Traffic dataset, it achieved an MSE of 0.006.
- Ablation Studies: Removing the Vedic encoding component resulted in performance drops of up to 19%, confirming that the bidirectional interaction is the primary driver of the model's success.
- Resource Usage: Empirical data shows Naga occupying a "sweet spot" of minimal memory usage combined with the lowest error rates among its peers.
Conclusion and Future Directions
Naga demonstrates that sophisticated inductive biases inspired by classical mathematical principles can significantly enhance modern deep learning architectures. While the model is highly expressive, its capacity for complex interaction modeling requires careful regularization to prevent overfitting on smaller datasets. Future research may explore applying Vedic principles to Natural Language Processing (NLP) and conducting deeper spectral analyses of the model's optimization landscape.
Summary updated