All models

NeuralForecast N-HiTS

A stack of MLP blocks that forecasts long horizons with multi-rate input pooling and hierarchical interpolation.

Time series · 56 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (31 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
N-HiTS
Parameters
20.5K
Operations
56
Framework
PyTorch
Recurrent
No
Published
AAAI 2023
Authors
Cristian Challu, Kin G. Olivares, Boris N. Oreshkin and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1917
Graph hash
fdb7194715db1777fa8363279032d58bce93274915ed9b663ef4dee651fad0ac
Skeleton hash
a34d87358bfff0bf74130db2cdda06655419e0617b800501fafcd8919d25e040
Architecture hash
0d68601de6e61665960c562da8e9a21167ffb8386e135816d724bb0d4fac3546
Diagram SHA-256
6e695acfba30b52aa6126082aab8746a0e958bfa774efd83d0d43b8395b7ccf7
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model is the NHITS of the NeuralForecast library, which its README lists as the official implementation, published at AAAI 2023.

About this model's family

N-HiTS is a neural forecasting model for long horizons, where the paper names two common difficulties: the volatility of the predictions and their computational complexity. It redefines the fully-connected N-BEATS architecture, changing its input decomposition through multi-rate data sampling and its output synthesizer through multi-scale interpolation.

The model is built from blocks, each a multilayer perceptron that learns to produce coefficients for a backcast and a forecast output. A MaxPool layer at the input of each block removes high-frequency content, which makes the block concentrate on large-scale, low-frequency content. On the output side each block predicts a reduced set of coefficients, and temporal interpolation recovers the original sampling rate to predict every point of the horizon. The final forecast is assembled by summing the outputs of all blocks.

On long-horizon forecasting datasets, the paper reports an average accuracy improvement of almost 20% over the latest Transformer architectures of its time, with computation time reduced by an order of magnitude. The authors note that hierarchical interpolation is not unique to their model and can be incorporated in different architectures.

Key idea. N-HiTS synchronizes the rate of input sampling with the scale of output interpolation across blocks, so that each block specializes in forecasting its own frequency band of the signal.

  • n-hits
  • nhits
  • neural hierarchical interpolation for time series forecasting
  • long-horizon forecasting
  • time series forecasting
  • hierarchical interpolation
  • multi-rate data sampling
  • neural forecasting

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{challu2022nhitsneuralhierarchicalinterpolation,
      title={N-HiTS: Neural Hierarchical Interpolation for Time Series Forecasting}, 
      author={Cristian Challu and Kin G. Olivares and Boris N. Oreshkin and Federico Garza and Max Mergenthaler-Canseco and Artur Dubrawski},
      year={2022},
      eprint={2201.12886},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2201.12886}, 
}