DeepAR is a model that trains a single LSTM jointly on many related time series and forecasts the values of the forecast window from the lookback window as a "probability distribution", one step at a time. It was published on arXiv in 2017 by Salinas, Flunkert, and Gasthaus at Amazon, and a version with Januschowski added was published in the International Journal of Forecasting in 2020.
Until then, the mainstream approach to forecasting was to fit a separate model to each series, as with ARIMA or exponential smoothing. In retail demand forecasting, however, sales of tens of thousands to millions of items must be forecast at the same time. Building a model for each series is laborious, and items that have just been released and have short histories cannot be forecast well.
DeepAR solves this problem by learning similar series together.
- Learn one model across all series: seasonal patterns and the effects of price, day of the week, and so on can be learned from other series too. Even items with short histories can be forecast using the behavior of similar items as a guide.
- Forecast a distribution rather than a point: instead of "12 units next week", it forecasts something like "median 12 units, 20 or fewer with 90% probability". Decisions such as how much inventory to hold need the range of possible misses.
In this article, the past interval used as input for the forecast is called the lookback window, and the interval to be predicted is called the forecast window. In the paper's terms, they are the "conditioning range" and the "prediction range" . Training cuts out intervals where both windows have ground truth, while at prediction time the values of the forecast window are unknown.
The paper shows that the sales volumes of Amazon items follow a power law spanning several orders of magnitude (only a small fraction of items sell a lot, and most sell only a little), and it also proposes techniques suited to this skew (scaling and weighted sampling).

