N-HiTS

On this page 7

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.

ComponentFunctionEffect on the forecast
Max pooling layerDownsamples the input windowFocuses the block on one frequency range
MLP layersLearn nonlinear patternsMap history to coefficients
Backcast outputReconstructs the inputRemoves explained signal for later blocks
Forecast coefficientsFew points per horizonKeep output smooth and compact
Interpolation stepUpsamples coefficientsProduces values for every future step
Main components of an N-HiTS block

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.

HyperparameterTypical valueWhat it controls
Input size2 to 5 times the horizonAmount of history the model sees
Number of stacks3Number of frequency bands
Pooling kernel sizes16, 8, 1 or 2, 2, 1Smoothing of each stack input
Downsampling ratios24, 12, 1Coefficients per stack output
Hidden units256 or 512 per layerCapacity of each block
Interpolation modeLinear or nearestShape between coefficients
Typical N-HiTS settings for a long horizon

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 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.

ModelCore ideaRelative strength
N-HiTSMulti-rate MLP stacks with interpolationLong horizons, fast training
N-BEATSResidual MLP stacks, full-resolution outputShort and medium horizons
InformerSparse self-attention transformerLong sequences, higher compute
PatchTSTPatched channel-independent transformerStrong accuracy, more memory
DeepARAutoregressive recurrent networkNative probabilistic output
ETSExponential smoothing state spaceSmall data, interpretability
How N-HiTS differs from neighboring models

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.

SituationRecommendationReason
Hourly data, 1 to 4 week horizonStrong candidateMulti-rate stacks capture nested cycles
Thousands of related seriesTrain as a global modelShared weights generalize well
Few short seriesPrefer ETS or ThetaToo little data for a neural model
Need for prediction intervalsUse quantile or distribution lossDefault point loss gives no uncertainty
Strong known future driversAdd exogenous inputsBase model sees only history
Decision guide for choosing N-HiTS

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.