N-BEATS (Neural Basis Expansion Analysis for Interpretable Time Series) is a pure deep learning architecture that forecasts time series by decomposing the signal into a stack of fully connected blocks, each producing a backcast (for signal removal) and a forecast (for partial prediction). The model learns a hierarchical expansion of the time series into interpretable basis functions—specifically trend and seasonality components—without requiring manual feature engineering, differencing, or scaling. This design achieves state-of-the-art accuracy on the M3, M4, and TOURISM competition datasets while maintaining a simple, generic configuration.
Glossary
N-BEATS

What is N-BEATS?
N-BEATS is a deep neural architecture that decomposes univariate time series into a hierarchical basis of trend and seasonality functions, achieving state-of-the-art performance on forecasting benchmarks without any domain-specific feature engineering.
The architecture's dual residual topology is its defining innovation: each block predicts both a forward-looking forecast and a backward-looking reconstruction of the input window. The backcast is subtracted from the block's input, and the residual passes to the next block, forcing the stack to learn complementary signal components. The final forecast is the sum of all partial block forecasts. N-BEATS can be configured with interpretable basis layers that explicitly constrain outputs to polynomial trend and Fourier seasonality forms, or with generic layers that learn arbitrary waveforms for maximum accuracy.
Key Features of N-BEATS
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a deep neural architecture that achieves state-of-the-art performance on univariate forecasting benchmarks by decomposing time series into a hierarchical basis of trend and seasonality functions, without relying on any time-series-specific feature engineering.
Pure DL Approach with No Feature Engineering
N-BEATS operates directly on raw historical values without requiring manual extraction of trend, seasonality, or holiday effects. The architecture learns a hierarchical decomposition internally through stacked blocks of fully connected layers. Each block produces backcast and forecast signals; the backcast is subtracted from the input before passing to the next block, forcing the network to sequentially model residual patterns. This eliminates the need for domain-specific preprocessing and allows the model to discover latent structures automatically.
Interpretable Basis Expansion
The architecture can be configured with interpretable basis functions that enforce specific structural decompositions. In the interpretable configuration, each block's output is projected onto learned trend and seasonality bases:
- Trend basis: A polynomial function of time (e.g., degree p) that captures monotonic or slowly varying patterns
- Seasonality basis: A Fourier series that captures periodic fluctuations This constraint produces human-readable decompositions where each block's contribution can be visually inspected, addressing the black-box criticism of deep learning while maintaining predictive accuracy.
Doubly Residual Stacking Topology
N-BEATS employs a doubly residual stacking architecture with two distinct residual connections per block:
- Backcast residual: The block predicts the portion of the input it can explain and subtracts it, passing the unexplained remainder to the next block
- Forecast residual: Each block's partial forecast is summed to produce the final prediction This topology allows the network to decompose the signal hierarchically, with earlier blocks capturing dominant patterns and deeper blocks modeling finer residuals. The architecture naturally prevents gradient vanishing through its residual design.
Generic vs. Interpretable Configurations
N-BEATS offers two operational modes that trade off flexibility against explainability:
- Generic configuration: Blocks use unconstrained basis functions learned end-to-end, maximizing predictive performance on arbitrary time series
- Interpretable configuration: Blocks are constrained to trend and seasonality bases, producing decompositions that domain experts can validate Both configurations share the same doubly residual topology. The generic variant won the M4 forecasting competition, while the interpretable variant provides audit-ready outputs for regulated industries like pharmaceutical supply chains.
M4 Competition Winner
N-BEATS achieved state-of-the-art performance on the M4 forecasting competition, which includes 100,000 diverse time series across business, financial, and economic domains. The model outperformed both traditional statistical methods and hybrid ML approaches by a significant margin:
- sMAPE improvement: 3% reduction in symmetric mean absolute percentage error compared to the competition benchmark
- OWA improvement: Achieved the lowest overall weighted average across all forecasting horizons This victory validated pure deep learning as a viable alternative to statistical forecasting methods for univariate time series.
Ensemble Compatibility
N-BEATS integrates naturally into ensemble forecasting frameworks. Multiple N-BEATS instances can be trained with different:
- Horizon lengths: Specializing in short, medium, or long-range predictions
- Block counts: Varying model depth to capture different levels of signal complexity
- Basis configurations: Mixing generic and interpretable blocks
- Random initializations: Leveraging the stochastic nature of SGD training Averaging predictions across this diverse ensemble typically yields a Continuous Ranked Probability Score (CRPS) improvement of 5-10% over a single model, making it ideal for probabilistic demand forecasting where uncertainty quantification is critical.
N-BEATS vs. Other Forecasting Architectures
A technical comparison of N-BEATS against other prominent deep learning architectures for univariate time series forecasting.
| Feature | N-BEATS | DeepAR | Temporal Fusion Transformer |
|---|---|---|---|
Architecture Type | Pure MLP stack with doubly residual topology | Autoregressive RNN (LSTM) | Attention-based encoder-decoder with gating |
Probabilistic Output | |||
Interpretability | Explicit trend and seasonality basis decomposition | Black-box; requires post-hoc methods | Native variable selection and attention weights |
Handles Multiple Related Series | |||
Cold-Start Capability | |||
M4 Competition Accuracy (sMAPE) | 11.374% (Winner) | 12.2% (Estimate) | 11.9% (Estimate) |
Training Speed | Fast; no recurrence or attention | Slow; sequential recurrence | Moderate; attention is parallelizable |
Exogenous Variables |
Frequently Asked Questions
Explore the architecture, training, and application of N-BEATS, a pure deep learning model that achieves state-of-the-art performance on univariate time series forecasting without relying on traditional statistical feature engineering.
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a deep neural architecture that decomposes a univariate time series into a hierarchical basis of trend and seasonality functions. Unlike hybrid models that combine statistical components with neural networks, N-BEATS is a pure deep learning model that does not use any time-series-specific feature engineering. The architecture consists of a series of interconnected blocks organized into stacks. Each block receives the input signal and produces two outputs: a backcast (an approximation of the input signal, used to feed the next block) and a forecast (a partial prediction of the future). The final forecast is the sum of all partial block forecasts. The blocks are structured into stacks that specialize in modeling specific components—typically a trend stack and a seasonality stack—by constraining the functional form of their basis functions to polynomials or Fourier series, respectively. This inductive bias makes the model inherently interpretable, as you can isolate and visualize the trend and seasonal contributions to the final prediction.
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.
Related Terms
Core concepts that define the N-BEATS architecture and its role in modern time series forecasting.
Basis Expansion
The core mechanism of N-BEATS. Instead of predicting values directly, the network predicts expansion coefficients for a set of predefined basis functions. These functions represent generic patterns like trends and seasonality. The final forecast is the sum of these weighted basis functions, ensuring the output is a structured, interpretable decomposition rather than an arbitrary vector. This forces the network to learn a hierarchical decomposition of the signal.
Doubly Residual Stacking
The architectural backbone of N-BEATS. The network is organized into stacks, and each stack consists of multiple blocks. Each block produces two outputs: a partial forecast and a backcast. The backcast is subtracted from the input before passing it to the next block, and the partial forecasts are aggregated. This double residual principle allows deeper stacks to refine the signal by removing components already explained by earlier blocks, leading to state-of-the-art performance on univariate benchmarks.
Interpretable Configuration
A specific instantiation of N-BEATS where the basis functions are constrained to human-understandable forms. The architecture uses two stacks:
- Trend Stack: Uses polynomial basis functions to model monotonic or slowly varying behavior.
- Seasonality Stack: Uses Fourier series basis functions to model periodic, cyclical patterns. This configuration decomposes a time series into its structural components without sacrificing predictive accuracy, making it highly valuable for supply chain planners who need to explain forecasts.
Generic Configuration
An alternative N-BEATS instantiation where the basis functions are not pre-defined but are learned end-to-end from the data. The network learns its own latent basis for the signal. While this configuration can achieve slightly higher accuracy on some datasets by discovering non-standard patterns, it sacrifices the direct interpretability of the trend and seasonality decomposition. It is the preferred choice when raw predictive performance is the sole objective.
Univariate Forecasting
N-BEATS is a pure univariate model, meaning it forecasts a single time series based solely on its own history. It does not natively ingest exogenous covariates like price, promotions, or weather. This design choice is a deliberate departure from models like the Temporal Fusion Transformer. The architecture's strength lies in its ability to extract maximum signal from the target's own past, making it an ideal component in a larger ensemble where other models handle external drivers.
M-Competition Dominance
N-BEATS achieved a landmark victory in the M4 forecasting competition, a major benchmark for time series methods. It outperformed a large field of statistical and machine learning models by a statistically significant margin. This result validated the hypothesis that a pure deep learning architecture, without feature engineering or domain-specific scaling, could surpass heavily tuned traditional methods on a diverse set of univariate series, cementing its status as a foundational modern forecaster.

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