
PyTorch Forecasting N-HiTS
Time series56 ops20.5K params
A stack of MLP blocks that forecasts long horizons with multi-rate input pooling and hierarchical interpolation.
Time series · 56 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}