- Introduced by
- Cristian Challu
- Year
- 2023
- Type
- Neural network architecture
- Family
- Deep Learning, Time Series Forecasting
What does it do?
N-BEATSx extends N-BEATS, a neural forecasting model, so that it can use exogenous (external) variables alongside the historical target series.
Its architecture combines trend, seasonality and exogenous stages, implemented as stacked blocks, with the block outputs combined into the forecast. Whether it improves on N-BEATS depends on whether the external features carry predictive information for the target.
The intuition behind the method
N-BEATS builds forecasts from basis expansions, with separate trend and seasonality components. N-BEATSx adds a branch for exogenous variables, such as weather, holidays or economic indicators, whose influence on the target is learned rather than specified by hand. The trend and seasonality parts keep their explicit basis structure, while the exogenous part is a learned mapping and is less directly interpretable. The design aims to let the model use external drivers without giving up the basis-expansion structure.
History
N-BEATS is the neural forecasting model that N-BEATSx builds on. N-BEATSx extended the framework in 2023 to exogenous variables; the citation gives the source for this extension. Later adoption and benchmark results should be checked in the current literature.
When to use it
Choose N-BEATSx when there is a long enough history of the target series and reliable external variables that are plausibly related to it, such as weather for energy demand or calendar events for retail sales. Historical external variables must be available up to the forecast origin, and future-known variables must be known or separately forecast for every period of the horizon. If only the target's own history is available, the original N-BEATS is the more direct choice. When the series is short, or when a transparent classical model such as ARIMA is needed for explanation, N-BEATSx is less suitable.
Limitations and considerations
- Needs enough history to learn trend and seasonal patterns, and is likely to perform poorly on very short series.
- The exogenous branch is a learned mapping, so its contribution is less directly interpretable than the trend and seasonality components.
- The method does not select relevant external features; feature choice and alignment remain the user's responsibility.
- Accuracy gains over N-BEATS or classical methods are not established on this page and should be checked against the original publication.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Accepts exogenous features through dedicated cross-learner blocks, so external drivers enter the same forecasting architecture as the historical series.
- Models trend and seasonality with explicit basis functions, so the trend and seasonal contributions can be examined separately from the exogenous part.
- Extends the N-BEATS design without replacing it, so a model can be compared directly against the univariate version on the same series.
Applications
- Energy demand forecasting using weather, holiday and economic indicators as external inputs.
- Traffic flow prediction using historical patterns together with event information.
- Financial forecasting that combines price history with economic indicators.
- Retail sales forecasting using promotions, seasonal events and competitor information as external inputs.
How it works
How it works
A trend block produces the long-run component of the forecast by expanding it on basis functions with learned coefficients. This gives the model a slowly varying term that can be inspected separately from the other components.
A seasonality block adds a periodic component built from learnable basis functions, so repeating patterns at different frequencies can be represented. Its contribution is kept distinct from the trend contribution in the block outputs.
External variables are passed through cross-learner blocks that model their interaction with the historical series. Historical exogenous variables can be used only up to the forecast origin. Future-known variables must be known in advance or separately forecast for every period of the horizon. The original publication should be checked for the exact input rules.
Outputs of the stacked blocks are combined into the final forecast. The mechanics give no formula for this step, so the exact aggregation should be checked against the original publication.
Common pitfalls
- Irrelevant external features can degrade generalisation, so feature selection should be justified before training.
- Overfitting to the patterns of the training series is a risk. Regularisation, such as dropout or weight decay, can help limit it, and its settings should be tuned on a validation set rather than on the test data.
- Misaligned timestamps between the target and the exogenous features produce systematically poor forecasts, so the alignment of the two series should be checked before modelling.
- Evaluating on randomly shuffled splits leaks information from the future into training. Use time-ordered splits, such as rolling-origin evaluation, so that the model is tested only on periods after its training data.
Frequently asked questions
What are exogenous variables and why include them?
Exogenous variables are external features that influence the target variable but are not derived from the target itself. Examples include weather for energy demand, holidays for retail sales, or economic indicators for financial forecasting. They can improve forecasts when they carry real predictive information, because they capture dependencies beyond the target's own history.
How does N-BEATSx differ from classical forecasting with external features?
Classical regression models usually assume a specified, often linear, relationship between the target and its predictors. N-BEATSx learns the relationship through neural network blocks, so it can represent nonlinear interactions. The cross-learner blocks learn transformations of the exogenous features rather than using them unchanged.
What is basis expansion and why use it?
Basis expansion represents a complex function as a weighted combination of simpler basis functions. In N-BEATSx the trend and seasonality components are built this way, with the weights learned for the forecasting task. Because the forecast is decomposed into these components, each part can be inspected separately.
How should N-BEATSx be evaluated?
Use time-ordered validation, such as rolling-origin evaluation, so that each forecast is made only from data available before its forecast origin. Compare N-BEATSx against the univariate N-BEATS and a classical baseline on the same series to see whether the exogenous variables add value. Inspect the trend, seasonality and exogenous contributions to check that each component behaves as expected.
Related methods
Sources
Challu, C., Olivares, K. Q., Oreshkin, B., Garza, F., Mergenthaler-Canseco, M., & Dubrawski, A. (2023). N-BEATSx: Neural Basis Expansion Analysis for Interpretable Time Series Forecasting. In ICLR 2023 Workshop on Multimodal Learning for Science (p. 4).
Open publication reference