N-HiTS (Neural Hierarchical Interpolation for Time Series) is a deep-learning forecasting architecture built from stacks of simple multilayer perceptrons that specialize in different frequency bands of a series and interpolate low-resolution forecasts to the full horizon. In time series & forecasting, it is one of the strongest long-horizon neural forecasters, introduced in 2022 by Challu, Olivares and colleagues as an extension of N-BEATS.
The model addresses two problems of earlier deep forecasters: volatile predictions over long horizons and computational cost that grows with horizon length. By sampling the input at several rates and producing coarse forecasts that are then upsampled, N-HiTS reported accuracy gains of roughly 20% over transformer baselines on long-horizon benchmarks while training an order of magnitude faster.
How N-HiTS builds a forecast from stacks and blocks
N-HiTS processes a fixed lookback window of past values and outputs the entire forecast horizon at once, which makes it a direct multi-step forecaster. The network consists of several stacks, each containing one or more blocks, and every block is a small fully connected network with ReLU activations.
Blocks are connected by doubly residual links inherited from N-BEATS. Each block produces a backcast, its reconstruction of the input, which is subtracted before the input passes to the next block, and a partial forecast, which is added to the running total. Later blocks therefore model only what earlier blocks could not explain.
Two operations distinguish N-HiTS from its predecessor. Multi-rate signal sampling applies max pooling to the input of each block, so early blocks see a smoothed, low-frequency view and later blocks see fine detail. Hierarchical interpolation lets each block predict only a small number of coefficients, which are then interpolated to the full horizon length.
| Component | Function | Effect on the forecast |
|---|---|---|
| Max pooling layer | Downsamples the input window | Focuses the block on one frequency range |
| MLP layers | Learn nonlinear patterns | Map history to coefficients |
| Backcast output | Reconstructs the input | Removes explained signal for later blocks |
| Forecast coefficients | Few points per horizon | Keep output smooth and compact |
| Interpolation step | Upsamples coefficients | Produces values for every future step |
Key hyperparameters of N-HiTS
The behavior of N-HiTS depends mainly on pooling kernel sizes and downsampling ratios for each stack. A common configuration uses three stacks with one block each, ordered from coarse to fine, so the first stack captures trend, the second captures daily or weekly cycles, and the third captures short-term variation.
The expressiveness ratio sets how many coefficients a block outputs relative to the horizon. With a horizon of 96 steps and a ratio of 1/24, a block predicts only four points and interpolates the rest, which strongly regularizes the low-frequency stacks.
| Hyperparameter | Typical value | What it controls |
|---|---|---|
| Input size | 2 to 5 times the horizon | Amount of history the model sees |
| Number of stacks | 3 | Number of frequency bands |
| Pooling kernel sizes | 16, 8, 1 or 2, 2, 1 | Smoothing of each stack input |
| Downsampling ratios | 24, 12, 1 | Coefficients per stack output |
| Hidden units | 256 or 512 per layer | Capacity of each block |
| Interpolation mode | Linear or nearest | Shape between coefficients |
Ratios that are too aggressive can oversmooth sharp peaks, while ratios close to 1 remove the benefit of hierarchy and bring the model back toward N-BEATS behavior.
N-HiTS compared with related forecasters
N-HiTS sits among MLP-based global models that learn one set of weights across many series. It competes with transformer forecasters such as Informer, the Temporal Fusion Transformer and PatchTST, and with classical baselines such as ETS and ARIMA, which remain hard to beat on short, noisy series.
| Model | Core idea | Relative strength |
|---|---|---|
| N-HiTS | Multi-rate MLP stacks with interpolation | Long horizons, fast training |
| N-BEATS | Residual MLP stacks, full-resolution output | Short and medium horizons |
| Informer | Sparse self-attention transformer | Long sequences, higher compute |
| PatchTST | Patched channel-independent transformer | Strong accuracy, more memory |
| DeepAR | Autoregressive recurrent network | Native probabilistic output |
| ETS | Exponential smoothing state space | Small data, interpretability |
Because each stack targets a frequency band, the stack outputs can be inspected as a rough decomposition into slow and fast components, although this is a learned split rather than a formal STL decomposition.
When to use N-HiTS in practice
N-HiTS fits problems with long forecast horizons, high-frequency data and many related series, such as electricity load, traffic volumes or sensor readings. Open-source libraries such as NeuralForecast and Darts provide implementations with support for exogenous covariates, static features and probabilistic losses such as quantile or distribution heads.
| Situation | Recommendation | Reason |
|---|---|---|
| Hourly data, 1 to 4 week horizon | Strong candidate | Multi-rate stacks capture nested cycles |
| Thousands of related series | Train as a global model | Shared weights generalize well |
| Few short series | Prefer ETS or Theta | Too little data for a neural model |
| Need for prediction intervals | Use quantile or distribution loss | Default point loss gives no uncertainty |
| Strong known future drivers | Add exogenous inputs | Base model sees only history |
Evaluation should rely on rolling-origin cross-validation and scale-free metrics such as MASE, and results should always be compared with a seasonal naive baseline.
Limitations and common mistakes
N-HiTS assumes a fixed input and output length, so changing the horizon usually requires retraining. Its interpolation favors smooth trajectories, which can understate abrupt spikes, outages or promotional jumps. Typical errors include:
- Using a lookback window that is too short to contain the slowest seasonal cycle.
- Skipping input normalization, which destabilizes training across series of different scale.
- Comparing against transformers on one benchmark split and generalizing the result.
- Treating stack outputs as an exact decomposition of trend and seasonality.
Put simply
N-HiTS is a computer model that predicts future numbers, such as power use next week. It looks at the past in several levels of detail. One part sees only the big picture. Another sees daily ups and downs. The last part sees small wiggles.
Each part sketches a few key points of the future. The model then connects the dots to fill in every hour. This makes it fast and steady for long forecasts.
In practice
A regional grid operator needs hourly load forecasts for the next 7 days across 400 substations. The analytics team trains a single global N-HiTS model on three years of hourly data, with an input window of 672 hours, three stacks and downsampling ratios of 168, 24 and 1, plus temperature forecasts and calendar features as exogenous inputs.
In rolling backtests over 12 weeks, the model lowers MASE by about 15% compared with a tuned ETS baseline and trains in under an hour on one GPU. Holiday peaks remain the weakest point, so the team adds a holiday flag and keeps a manual review step for unusual days. The final outcome is a more stable week-ahead schedule for generator commitments.