N-BEATS (Neural Basis Expansion Analysis for Time Series) is a deep learning architecture that performs univariate point forecasting by decomposing a time series into a trend and seasonality basis without any domain-specific feature engineering or input scaling. The model consists of a stack of fully connected blocks, each containing a basis expansion layer that projects the input onto polynomial or harmonic functions, forcing the network to learn interpretable structural components rather than arbitrary patterns.
Glossary
N-BEATS

What is N-BEATS?
N-BEATS is a deep learning architecture for univariate time-series forecasting that uses a pure basis expansion with no feature engineering, decomposing a signal into trend and seasonality blocks.
Unlike traditional statistical methods like ARIMA or hybrid deep learning models, N-BEATS operates purely on the target history and produces both a backcast (reconstruction) and forecast output at each block. The architecture's doubly residual stacking topology allows subsequent blocks to model the error of preceding ones, making it highly effective for high-frequency financial time series where capturing cyclical volatility and long-term drift simultaneously is critical for algorithmic trading signal generation.
Key Features of N-BEATS
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a deep learning architecture that achieves state-of-the-art univariate forecasting without feature engineering by decomposing a signal into interpretable trend and seasonality blocks.
Pure Basis Expansion Architecture
N-BEATS does not use any time-series-specific feature engineering or input scaling. The model learns a hierarchical decomposition of the signal directly from the target history. Each block outputs a backcast (to remove explained signal) and a forecast (partial prediction), which are aggregated across blocks. This design eliminates the need for domain-specific pre-processing like Fourier transforms or moving averages.
Interpretable Trend and Seasonality Decomposition
The architecture enforces interpretable basis functions within its blocks:
- Trend block: Uses a polynomial basis to model monotonic or slowly-varying patterns, constrained to a small degree p (e.g., p=2 for linear, p=3 for quadratic).
- Seasonality block: Uses a Fourier basis with sine and cosine waveforms to capture periodic fluctuations. This structural inductive bias makes the model's internal decomposition human-readable, unlike black-box RNNs or Transformers.
Doubly Residual Stacking Topology
N-BEATS organizes blocks into stacks, each specializing in a signal component. The architecture uses two residual connections per block:
- The backcast residual subtracts the block's approximation of the input, passing the unexplained remainder to the next block.
- The forecast residual aggregates partial forecasts from all blocks to form the final prediction. This topology allows deep stacking (e.g., 30 blocks) without vanishing gradients, enabling the model to iteratively refine its decomposition.
Generic vs. Interpretable Configuration
N-BEATS offers two operational modes:
- Generic mode: All blocks use a fully-learned basis, maximizing predictive accuracy without enforcing interpretability. This variant won the M4 forecasting competition.
- Interpretable mode: Blocks are explicitly assigned to trend or seasonality stacks with constrained basis functions, enabling analysts to inspect and validate the decomposition logic. The choice depends on whether the use case prioritizes raw accuracy or model transparency for regulatory or risk management purposes.
Fully Connected Block Internals
Each N-BEATS block contains a simple multi-layer perceptron (MLP) with fully connected layers and ReLU activations. The MLP takes the input window and generates expansion coefficients (theta), which are then projected onto the block's basis functions to produce backcast and forecast signals. This design is computationally efficient, leveraging matrix multiplications that are highly optimized on GPUs, and avoids the sequential bottlenecks of recurrent architectures.
M4 Competition Winner
N-BEATS achieved first place in the M4 forecasting competition (2018), outperforming both statistical benchmarks and hybrid ML approaches across 100,000 diverse time series. The winning configuration used a generic model with 30 blocks and no time-series-specific pre-processing. This result demonstrated that a pure deep learning approach, with the right architectural priors, can surpass heavily engineered ensembles of exponential smoothing and ARIMA models.
Frequently Asked Questions
Clear, technical answers to the most common questions about the Neural Basis Expansion Analysis for Time Series (N-BEATS) architecture, its mechanisms, and its application in high-frequency financial forecasting.
N-BEATS (Neural Basis Expansion Analysis for Time Series) is a pure deep learning architecture for univariate time-series forecasting that uses a doubly residual stacking of fully connected layers to decompose a signal into interpretable basis functions, requiring no feature engineering or domain-specific scaling. The architecture operates by organizing its computation into a series of blocks, which are further grouped into stacks. Each block receives the input signal and produces two outputs: a backcast (an approximation of the input that is subtracted from the residual signal) and a forecast (a partial prediction of the future horizon). The backcast is removed from the block's input, and the residual is passed to the next block, creating a hierarchical decomposition. The forecasts from all blocks are summed to produce the final prediction. Internally, each block consists of a series of fully connected layers with ReLU activations that map the input lookback window into expansion coefficients, which are then projected onto a set of learned basis functions to generate the backcast and forecast. This design enforces a functional decomposition of the signal without any statistical assumptions, allowing the network to learn trend and seasonality components automatically.
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
Explore the core components, competing architectures, and evaluation methodologies that define the N-BEATS ecosystem for univariate time-series forecasting.
Basis Expansion Architecture
N-BEATS uses a pure deep learning architecture with no feature engineering, time-series-specific components, or handcrafted inputs. The network learns a hierarchical basis expansion where each block produces a partial forecast by projecting the input onto learned basis functions. The architecture consists of:
- Trend blocks: Model low-frequency, monotonic components using polynomial basis functions
- Seasonality blocks: Capture cyclical patterns using Fourier-like harmonic basis functions
- Generic blocks: Learn arbitrary basis functions when decomposition is not enforced The final forecast is the sum of all block outputs, creating an interpretable additive decomposition without any statistical assumptions.
Double Residual Stacking
N-BEATS employs a doubly residual topology that enables hierarchical decomposition of the forecasting signal. Each block receives the backcast (residual of the input signal) from the previous block and outputs both a forecast and a backcast. The architecture operates as follows:
- Block input: Receives the residual signal not explained by previous blocks
- Block output 1 (backcast): The portion of the input signal explained by this block, subtracted from the input for the next block
- Block output 2 (forecast): The block's contribution to the final prediction, summed across all blocks This topology ensures each subsequent block focuses on the unexplained residual, preventing redundancy and enabling clean signal decomposition.
Fully Connected Block Structure
Each N-BEATS block contains a simple multi-layer perceptron (MLP) with fully connected layers and ReLU activations. The block's final layer projects the hidden representation into expansion coefficients for the basis functions. Key design choices:
- No recurrent connections: Enables parallel training across the entire sequence
- No attention mechanisms: Avoids quadratic complexity while maintaining performance
- Shared block structure: All blocks have identical architecture but learn different basis functions
- Theta parameters: Each block learns both expansion coefficients (theta_f for forecast, theta_b for backcast) from the same hidden representation This simplicity allows N-BEATS to train faster than recurrent or transformer-based alternatives while achieving state-of-the-art accuracy on M3, M4, and TOURISM competitions.
Interpretable Decomposition Mode
N-BEATS offers a configurable inductive bias through its interpretable architecture variant. When configured for decomposition, the network enforces a clean separation of signal components:
- Trend basis: Uses polynomial functions (e.g., linear, quadratic) to model slow-moving directional components. The trend is constrained to be monotonic or slowly varying.
- Seasonality basis: Uses periodic sine and cosine functions with learned frequencies and phases to capture repeating patterns.
- Stack organization: Multiple trend blocks followed by seasonality blocks create a hierarchical decomposition from low to high frequency. This interpretable mode allows practitioners to inspect and validate each component separately, making the model suitable for regulated financial applications where explainability is mandatory.
M4 Competition Performance
N-BEATS achieved state-of-the-art results in the M4 forecasting competition, a benchmark spanning 100,000 time series across diverse domains. Key performance metrics:
- Overall winner in the pure machine learning category
- 3% improvement in symmetric mean absolute percentage error (sMAPE) over the statistical benchmark
- First pure DL model to outperform statistical ensembles on this benchmark
- Demonstrated cross-domain generalization without any domain-specific tuning The model's success validated that a generic, purely data-driven architecture could outperform carefully engineered statistical methods across business, finance, demographics, and economics domains without any feature engineering.
N-BEATS vs Transformer Models
While transformers dominate NLP, N-BEATS offers distinct advantages for univariate time-series forecasting:
- Computational efficiency: O(n) complexity vs O(n²) for self-attention, enabling faster training on long sequences
- No positional encoding needed: The sequential nature is implicit in the residual stacking
- Interpretable outputs: Direct signal decomposition vs attention weight inspection
- Lower data requirements: MLP-based architecture trains effectively on smaller datasets However, transformers excel at multivariate forecasting and capturing cross-series dependencies. For pure univariate tasks, N-BEATS often matches or exceeds transformer performance with significantly less compute. The choice depends on whether cross-series interactions are critical to the forecasting problem.

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