N-BEATS (Neural Basis Expansion Analysis for Interpretable Time Series) is a pure deep learning architecture for univariate point forecasting that explicitly decomposes a time series into a backward residual and a forward residual stream. The architecture consists of a stack of fully connected blocks, each containing four layers, that sequentially predict and remove components of the signal. The first block predicts a backcast signal to reconstruct the input, while the forward residual is passed to the next block, forcing the network to learn a hierarchical decomposition of the underlying structure.
Glossary
N-BEATS

What is N-BEATS?
A deep learning architecture for univariate time series forecasting that uses a doubly residual stacking principle to decompose a signal into interpretable trend and seasonality basis functions without any time-series-specific feature engineering.
The architecture's key innovation is its basis expansion layer, which constrains the output to a learned combination of trend and seasonality basis functions, making the decomposition inherently interpretable. Unlike classical methods like ARIMA or even other neural approaches like DeepAR, N-BEATS requires no manual feature engineering, no scaling, and no domain-specific structural assumptions. It achieves state-of-the-art performance on the M4 competition dataset by learning a universal basis that generalizes across diverse forecasting domains, from retail demand to macroeconomic indicators.
Key Features of N-BEATS
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a pure deep learning architecture that eschews traditional statistical feature engineering. It decomposes a univariate time series into interpretable basis functions using a novel doubly residual stacking topology.
Doubly Residual Stacking
The core architectural innovation of N-BEATS is its doubly residual stacking principle. The architecture is composed of stacks, each containing multiple blocks. Each block receives the residual signal from the previous block's forecast, producing a partial forecast that is subtracted from the input. Simultaneously, the block's output is summed to produce the final global forecast. This dual residual flow—one backward through the input signal, one forward through the forecast aggregation—allows the network to iteratively refine its prediction without vanishing gradient issues.
Interpretable Basis Decomposition
N-BEATS enforces interpretability by constraining the output layer of each block to learn specific basis functions. In the generic architecture, blocks learn a polynomial approximation of the signal. In the interpretable configuration, stacks are specialized:
- Trend Stack: Constrained to learn a monotonic polynomial function, capturing long-term directional movement.
- Seasonality Stack: Constrained to learn a periodic Fourier series, capturing cyclical patterns. This explicit decomposition into trend and seasonality mimics classical time series decomposition but is learned end-to-end via gradient descent.
Fully Connected Block Structure
Each N-BEATS block is a simple yet effective multi-layer perceptron (MLP) with ReLU activations. The block takes the lookback window as input and passes it through four fully connected layers before branching into two output heads:
- Backcast (θb): The block's reconstruction of the input signal, used to compute the residual passed to the next block.
- Forecast (θf): The block's contribution to the final prediction at the specified horizon. This dual-output design is what enables the doubly residual topology, forcing each block to explain a portion of the signal before passing the unexplained remainder forward.
No Feature Engineering Required
Unlike classical methods like ARIMA or even hybrid deep learning approaches, N-BEATS does not require manual feature engineering or domain-specific preprocessing. The model ingests raw, univariate historical values directly. It learns to implicitly extract relevant patterns—trend, seasonality, and complex non-linear dynamics—purely from the data. This makes it highly portable across different forecasting domains, from retail demand to financial time series, without requiring the practitioner to handcraft lag features, moving averages, or holiday indicators.
State-of-the-Art Accuracy on M4
N-BEATS achieved state-of-the-art performance on the M4 competition dataset, a widely recognized benchmark for univariate time series forecasting. The model outperformed a large ensemble of classical statistical methods and other neural network architectures by a statistically significant margin. Key performance characteristics:
- Pure DL approach: No ensembling with statistical models required.
- Horizon flexibility: A single architecture handles multiple forecast horizons.
- Interpretability trade-off: The generic variant achieves highest accuracy; the interpretable variant sacrifices minimal accuracy for full decomposability.
Frequently Asked Questions
Clear, technical answers to the most common questions about the N-BEATS neural network architecture for univariate time series forecasting.
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a deep neural network architecture designed purely for univariate time series point forecasting. It works by structuring its network into a series of interconnected blocks, each containing a fully connected layer stack that generates expansion coefficients for a set of basis functions. The architecture's core innovation is its doubly residual stacking topology: each block receives the original input signal and produces a partial forecast, passing the unresolvable residual backward to the next block in the stack and the cumulative forecast forward. This forces the network to iteratively decompose the signal into distinct, interpretable components like trend and seasonality without any human feature engineering.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
N-BEATS vs. Other Forecasting Models
A feature-level comparison of N-BEATS against classical statistical, traditional deep learning, and state-of-the-art transformer-based forecasting architectures.
| Feature | N-BEATS | ARIMA | DeepAR | Temporal Fusion Transformer |
|---|---|---|---|---|
Architecture Type | Pure deep learning (MLP stack) | Classical statistical | Autoregressive RNN | Attention-based transformer |
Interpretable Decomposition | ||||
Native Probabilistic Output | ||||
Handles External Regressors | ||||
Multi-Horizon Forecasting | ||||
Cold-Start Capability | ||||
Basis Function Expansion | Trend & seasonality | Autocorrelation structure | Learned likelihood | Variable selection networks |
M4 Competition Accuracy (sMAPE) | 11.85% | 12.70% | 12.20% | 11.90% |
Related Terms
Explore the core mechanisms, design philosophy, and comparative context that define N-BEATS within the broader landscape of modern time series forecasting.
The Basis Expansion Principle
N-BEATS does not predict time steps directly. Instead, it learns to predict expansion coefficients that are projected onto a set of predefined basis functions.
- Trend basis: Models monotonic behavior using polynomial functions (e.g., a linear ramp).
- Seasonality basis: Models cyclical patterns using Fourier series (sine/cosine waves).
- This forces the network to decompose the signal structurally, acting as a learned, deep version of classical time series decomposition.
Doubly Residual Stacking
The architecture's core innovation is its doubly residual topology, which creates a clean, interpretable decomposition path.
- Backward residual: Each block receives the residual signal from the previous block, iteratively removing explainable structure.
- Forward residual: Each block outputs a partial forecast, and the sum of all partial forecasts across blocks forms the final prediction.
- This design prevents gradient interference and ensures each block specializes in a distinct signal component.
Generic vs. Interpretable Architecture
N-BEATS offers two distinct configurations, trading off flexibility for human-readability.
- Generic architecture: The basis functions are learned end-to-end by the network, maximizing predictive accuracy without human priors.
- Interpretable architecture: The basis functions are hard-coded as trend and seasonality waveforms, allowing practitioners to extract and visualize the exact decomposition the model learned.
- This dual-mode design makes it uniquely suited for both pure performance and auditable forecasting.
N-BEATS vs. Classical Methods
N-BEATS represents a paradigm shift from statistical to pure deep learning for univariate forecasting.
- vs. ARIMA/ETS: N-BEATS makes no assumptions about stationarity or data-generating processes; it learns the structural priors directly from data.
- vs. DeepAR: Unlike autoregressive RNNs, N-BEATS does not feed predictions back as inputs, avoiding error accumulation in multi-step forecasts.
- vs. TFT: N-BEATS is univariate by design and does not natively ingest static or known future covariates, making it ideal for large-scale, isolated SKU forecasting.
Meta-Learning Capabilities
N-BEATS can be trained as a meta-learner across many heterogeneous time series, enabling few-shot forecasting.
- Cross-series learning: A single N-BEATS model can learn shared structural patterns (e.g., weekly seasonality) from thousands of different SKUs.
- Fast adaptation: When a new time series with limited history is introduced, the model can generate a reasonable forecast by leveraging patterns learned from the broader dataset.
- This property directly addresses the cold-start problem in retail and inventory management.
Ensembling and Interpretability
The additive nature of the forward residual connections allows for direct visual inspection of the forecast composition.
- A final forecast is the sum of outputs from multiple stacks (e.g., Trend Stack + Seasonality Stack).
- Practitioners can plot each stack's output to see exactly how much of the prediction is driven by a long-term trend versus a weekly cycle.
- This provides a level of algorithmic explainability that is rare in deep learning, satisfying governance requirements for high-stakes supply chain decisions.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us