Elamur Research

A Multi-Horizon Quantile Recurrent Forecaster

Paper · 2017 · Ruofeng Wen, Kari Torkkola, Balakrishnan Narayanaswamy et al.

Summary

A useful forecast frequently needs to say more than what will probably happen next. A retailer may need demand estimates for many future weeks, including an upper estimate that helps assess the risk of running out of stock. An electricity operator may need uncertainty estimates for every hour of an upcoming period. In both cases, the system must connect past observations with information already known about the future: calendar effects, planned promotions or expected electricity demand. This paper proposes a framework that produces those forecasts together. Its central design combines a neural sequence encoder, direct prediction across several future horizons and quantile regression, which estimates selected positions in the distribution of possible outcomes.

The recurrent version is called MQ-RNN; a version with a convolutional encoder is called MQ-CNN. Both use the same basic division of work. An encoder summarizes the observed history. A decoder combines that summary with future inputs and produces the requested quantiles at each horizon. These forecasts do not depend on feeding an earlier prediction back into the system. The architecture therefore avoids a common source of error in recursive forecasting, where an imperfect prediction becomes an input to later predictions. It also avoids requiring a particular probability distribution, such as a Gaussian, to describe every forecast’s uncertainty. Instead, the training objective directly rewards accurate quantile estimates.

A second contribution concerns how the network learns. Forecasts are typically needed repeatedly as time advances, rather than only at the end of a sequence. The authors reflect that requirement in a training scheme called forking-sequences. At each observed time point, a decoder predicts the corresponding future horizons; all these decoders share their parameters. Training can therefore collect errors from many forecast creation times while passing through a series. The architecture also distinguishes information shared across the forecast period from information specific to an individual horizon. This separation lets a future holiday or promotion influence both the overall forecast and the particular dates when its effect should appear.

The evidence comes from Amazon demand forecasting and the electricity price and load tasks of GEFCom2014. The Amazon study uses around 60,000 products and compares controlled variations of the loss, training scheme and forecasting architecture. Its results support direct quantile prediction and forking-sequences, while extensions show that lagged observations and a convolutional encoder can improve accuracy further. In the electricity tasks, MQ-RNN achieves average quantile losses of 2.63 for price and 7.43 for load, compared with 2.72 and 7.45 for the respective competition winners. These are retrospective comparisons: the authors say their results would have ranked first. The paper establishes a practical way to forecast marginal quantiles across many horizons; it leaves the joint distribution across horizons and explicit multivariate forecasting for future investigation.

Interesting ideas

Predict the decision-relevant quantity. The paper starts from the observation that different forecasting errors can have different consequences. An upper demand estimate may matter more than an estimate of the average when the immediate concern is insufficient inventory. Quantile regression makes that preference part of the learning objective, rather than asking a downstream application to recover it from a point forecast. The reusable idea is to identify the statistical quantity a decision actually consumes and train for it directly. This applies wherever uncertainty must be expressed through particular thresholds or intervals, especially when overprediction and underprediction have unequal costs. The paper’s evidence concerns forecasting, but the design principle is broader than a particular encoder.

Separate history from future knowledge. Observations about the past and plans for the future answer different questions. Past demand helps establish a product’s recent behavior; an upcoming promotion indicates a possible change that history alone cannot reveal. MQ-RNN gives these information sources distinct architectural roles, then combines them when generating forecasts. This is useful whenever a prediction concerns a future situation whose inputs are partly known already. The important condition is that those future inputs must actually be available when the prediction is made. A feature’s presence in a historical dataset does not by itself make it legitimate future knowledge.

Give each horizon its own context. A shared historical summary need not carry the same meaning for every future date. The decoder therefore constructs a context associated with each horizon, alongside a context shared across horizons. This provides an explicit representation of distance from the forecast creation time without requiring a chain of recursive predictions. The idea applies to tasks that produce a structured group of outputs from a common history: some information belongs to the whole group, while other information depends on a particular output position. Keeping both forms of context can make the division of work clearer than forcing a single representation to serve every purpose.

Train where the system will be used. Forking-sequences makes forecasting at successive time points part of the network’s training structure. Each historical position can contribute the prediction task that would have existed there. This uses the repeated nature of forecasting rather than treating every selected cutoff as an unrelated example requiring a separate encoding of overlapping history. The transferable insight is to align supervision with recurring deployment decisions. When a sequential system must act repeatedly, intermediate states can be trained against the outputs required at those moments. The paper also shows why this is more than a computational convenience: the grouped updates give a steadier learning process in its comparison with randomly cut sequences.

Keep incomplete targets useful. Near the end of a training period, observations exist for some future horizons but not for all of them. The authors mask unavailable errors and retain the losses that can still be evaluated. This avoids throwing away an otherwise useful forecast creation time merely because its complete target vector is missing. The same idea applies to structured prediction with partially observed outputs, provided the missing targets are handled explicitly. Masking changes which losses contribute to learning; it does not create the absent observations or justify evaluating predictions against information that was unavailable.

Try direct access to useful history. A recurrent state is intended to summarize earlier observations, but that does not mean every valuable historical signal must reach the decoder only through memory. In the encoder comparisons, supplying lagged demand values as inputs works better than the tested extension that combines past hidden states. This suggests a practical research habit: before making the internal memory mechanism more elaborate, test whether a simple, well-motivated path from relevant observations improves the task. The result is specific to the experiments, yet the comparison is informative because it distinguishes remembering a signal from making that signal readily available.

Deep dive: A Multi-Horizon Quantile Recurrent Forecaster

How multi-horizon quantile forecasting combines sequence encoders, future information and shared training to predict demand and electricity. · about 34 minutes to read

How Mova uses it

For Mova, a small transparent language system written in Rust, this paper offers architectural ideas instead of an established forecasting component. There is no basis for claiming that Mova already implements MQ-RNN, trains quantile decoders or uses the Amazon forecasting setup. The useful connection is more specific: the paper shows how a system can keep different kinds of information separate, combine them at an explicit decision point and expose uncertainty in the form an application needs.

A possible Mova extension would concern a numerical sequence associated with the system’s operation. If such a sequence needed forecasts at several future positions, a separate forecasting component could distinguish observed history, known future conditions and attributes that remain constant across the sequence. That would preserve the paper’s information boundaries. It would also make a forecast easier to inspect: a user could see which inputs described past behavior and which represented an announced future condition. The paper does not establish a particular sequence that Mova should forecast, so choosing that application remains an engineering question.

The decoder’s separation of common and position-specific context is another possible borrowing. A transparent implementation could make the two roles explicit in its data structures: one representation for information relevant to the whole prediction period, another for the conditions attached to an individual position. In a language system, that separation should be treated as a design analogy. The forecasting results do not establish that the same decoder improves linguistic analysis, language generation or any other language task.

Quantile outputs would be relevant only where Mova predicts a numerical quantity with a meaningful ordering. A lower estimate, a median and an upper estimate could communicate uncertainty about that quantity more usefully than a single value. They would not automatically provide confidence estimates for arbitrary language decisions. The paper’s quantile loss concerns numerical outcomes, and its interpretation depends on comparing predicted thresholds with observed values. Applying the vocabulary of quantiles to a different kind of output would require a separate definition and evaluation.

Forking-sequences also suggests a training principle that could be examined independently of the full neural architecture. If a future Mova component learns from sequences and must make repeated predictions as those sequences unfold, supervision could be attached to the corresponding intermediate states. Whether that is useful would depend on the task, the available targets and the training mechanism. An implementation in Rust would still need its own evidence for correctness, cost and behavior. The honest takeaway for Mova is therefore a set of concrete possibilities: explicit input roles, shared and local contexts, decision-relevant numerical uncertainty, and training aligned with repeated use.

The problem and its context

Forecasting is more than predicting the next observation

The paper begins with a familiar forecasting problem: use a series of past measurements to predict the next one. That formulation is useful, but it omits several requirements of operational forecasting. There may be many related series instead of a single sequence. The inputs may include more than previous target values. Forecasts may be needed across a long period, and uncertainty may matter as much as the central estimate.

Retail demand illustrates how these requirements interact. A product has its own observed sales history and catalog attributes. A planned promotion can change its future behavior. Seasonal effects may occur far from the most recent observations, and a holiday’s position in the calendar may shift. A newly introduced product may have little history at all. A forecasting system must use whatever evidence is available while sharing useful information across products without pretending that they are identical.

The authors frame their contribution as a combination of existing strengths. Neural sequence encoders can learn nonlinear representations of temporal information. Direct multi-horizon forecasting can predict a future vector without repeatedly consuming its own estimates. Quantile regression can express selected aspects of uncertainty without specifying a complete parametric distribution. The central question is how to make these capabilities work together efficiently.

This places the paper within machine learning, but its argument is driven by the structure of the forecasting task. The architecture is not proposed simply because recurrent networks can process sequences. Its parts address distinct practical requirements: long histories, repeated forecast creation, known future inputs, related series and asymmetric decision costs.

Why recursive forecasts were a concern

The paper describes recursive prediction as a common strategy in neural forecasting. A system learns to predict the next observation. To reach a later horizon, it consumes its own earlier prediction and repeats the process. This resembles the sequential production of an output sequence and makes a next-step predictor usable for longer forecasts.

The difficulty is that training and prediction can expose the system to different inputs. During training, a later step may receive the actual previous observation. During forecasting, that observation does not yet exist, so the system receives an estimate. Errors can then influence subsequent estimates. The authors connect this issue to the discussions of scheduled sampling by Bengio and colleagues and professor forcing by Lamb and colleagues.

The alternative is direct prediction. Instead of reaching a distant horizon through a chain of intermediate estimates, a system learns to predict that horizon from the observed history. The paper cites Chevillon’s analysis in support of the stability and robustness of direct forecasting. It also discusses Taieb and Atiya’s comparison of multi-step strategies, which favors direct multi-horizon prediction with a shared output vector.

That shared vector matters. Independent predictors for separate horizons would discard opportunities to share parameters. A multi-horizon system instead learns the future outputs together. MQ-RNN adopts this arrangement, allowing a common encoder and decoder structure to support the whole forecast period.

The distinction should not be exaggerated into a universal claim that recursion always fails at distant horizons. The paper’s own experiment gives a more qualified picture: its recursive baseline does not show the expected long-horizon disadvantage, although its forecast shapes are often too flat. The motivation comes from a recognized failure mechanism; the experimental outcome depends on the particular system and data.

Why uncertainty should match the decision

A point forecast gives a central answer, often associated with the conditional mean. That can be insufficient when the cost of an error depends on its direction. In the paper’s examples, risk management and electricity capacity decisions require information beyond a central estimate. Retail decisions have a similar need when the consequences of too much inventory differ from those of too little.

One route to probabilistic forecasting is to assume a distribution for forecast errors and estimate its parameters. The paper discusses Gaussian residual assumptions as a traditional example. Such an approach supplies a complete mathematical form, but the form may fit some aspects of the data poorly. A mismatch in tail behavior is particularly relevant when an application needs an upper quantile.

Quantile regression takes another route. It estimates thresholds associated with specified cumulative probabilities. The median is a central threshold; an upper quantile describes a higher part of the outcome distribution. Several quantiles can describe an interval and provide decision-relevant alternatives without committing to a single distributional family.

The authors do not present this as the invention of neural quantile estimation. They discuss Taylor’s use of a multilayer perceptron for financial quantile forecasts and Xu and colleagues’ quantile autoregressive network. Their proposed distinction is the combination with temporal encoders, direct multi-horizon output and a training scheme designed for recurrent forecast creation.

How the paper positions earlier sequence architectures

The historical account connects recurrent networks with nonlinear autoregressive forecasting and describes LSTM as a way to preserve information over longer dependencies. It also draws on encoder-decoder sequence architectures: an encoder produces a representation of observed input, and a decoder uses it to generate future output.

The paper contrasts its approach particularly with DeepAR. In the account given here, DeepAR predicts parameters of a Negative Binomial distribution, learns through likelihood and teacher forcing, and generates forecast paths through repeated sampling. MQ-RNN instead targets quantiles directly and predicts all requested horizons without that recursive sampling procedure.

Convolutional encoders provide another strand of context. The authors discuss WaveNet’s dilated causal convolutions and earlier applications of such structures to forecasting. Their framework allows a temporal convolutional encoder to replace the recurrent encoder while preserving the decoder and training principles. This is why the paper is broader than its recurrent title might suggest.

The resulting contribution is a coordinated design instead of a claim that any individual ingredient solves forecasting alone. The loss determines what uncertainty is learned. The encoder determines how history becomes available. The decoder aligns that history with future conditions. The training scheme determines how repeated forecasting opportunities contribute to optimization.

The method, step by step

Define what is known when a forecast is created

A forecast creation time is the point at which the system must predict the future using the information then available. The paper abbreviates this as FCT. Everything in the architecture is organized relative to that point: a historical input lies before or at it, a future horizon lies after it, and a target is an observation that training can compare with the corresponding forecast.

The simplest forecasting notation is:

y_:t = (y_t, …, y_0)

Here, y_t is the observed target at time t, and y_:t denotes the history available through t. The ordering follows the paper’s notation, beginning with the most recent observation. A next-step forecast concerns y at the following time, while a multi-horizon forecast concerns several later observations.

The paper expresses the broader forecasting problem as:

p(y_(t+k,i), …, y_(t+1,i) | y_(:t,i), x^(h)_(:t,i), x^(f)_(t:,i), x^(s)_i)

The symbol p denotes a conditional probability distribution. The index i identifies a series, such as the demand sequence of a particular product. The index t is its forecast creation time, and k indicates a future horizon. The y terms on the left are future targets. On the right, y_(:t,i) is observed target history; x^(h)(:t,i) contains historical covariates; x^(f)(t:,i) contains known future inputs; and x^(s)_i contains attributes that remain fixed for that series.

This expression describes the broad task, but the implemented output is more limited than a complete joint distribution of all future observations. MQ-RNN produces a set of marginal quantiles at each horizon. Its shared representations connect the prediction tasks, yet the paper explicitly leaves joint forecasting across horizons as an extension.

For multiple related series, the same network parameters are used across samples. This allows information learned from one series to contribute to another. Static attributes give the shared system a way to distinguish series, while their observed histories supply evidence about current behavior.

From observed history to multi-horizon quantiles

The steps in order.

From observed history to multi-horizon quantilesStep 1: Separate historical, future and static inputs1. Separate historical, future and static inputsStep 2: Encode observations into temporal states2. Encode observations into temporal statesStep 3: Combine each state with future information3. Combine each state with future informationStep 4: Build shared and horizon-specific contexts4. Build shared and horizon-specific contextsStep 5: Predict quantiles with a shared local decoder5. Predict quantiles with a shared local decoderStep 6: Mask unavailable targets and combine losses6. Mask unavailable targets and combine lossesStep 7: Update parameters across forecast creation times7. Update parameters across forecast creation times

Choose quantiles as the training targets

A conditional quantile is a threshold associated with a probability level. The paper writes the relationship as:

P(y_(t+k) ≤ y^(q)_(t+k) | y_:t) = q

P denotes probability, q is the requested quantile level, and y^(q)(t+k) is the corresponding threshold for the future observation y(t+k). The vertical bar means that the probability is conditioned on the observed history. The architecture also accepts covariates, even though this introductory expression shows only target history.

For demand forecasting, the authors request q values of 0.1, 0.5 and 0.9. These correspond to P10, P50 and P90. P50 is the median forecast. The lower and upper forecasts describe different parts of the outcome distribution rather than alternative estimates of the same central quantity.

Training uses quantile loss:

L_q(y, ŷ) = q(y − ŷ)_+ + (1 − q)(ŷ − y)_+

L_q is the loss for quantile level q. The symbol y denotes the observed target, and ŷ is the predicted quantile. A subscript plus means that only a positive value contributes. The first term applies when the observation exceeds the prediction; the second applies when the prediction exceeds the observation.

The positive-part operation is:

(a)_+ = max(0, a)

Here, a is any real-valued argument, and max selects the larger of its arguments. This operation lets the loss distinguish the direction of an error. As q changes, the relative penalties change, moving the preferred prediction towards the requested part of the distribution.

At q = 0.5, the penalties are symmetric, and minimizing the loss targets the median. The paper associates this case with mean absolute error. More precisely, the displayed quantile-loss expression is proportional to absolute error at that setting, so it has the same minimizing prediction.

The complete forecast output is:

Ŷ = [ŷ^(q)_(t+k)]_(k,q)

Ŷ is the matrix of predicted quantiles. Its row index k runs over the K forecast horizons, and its column index q runs over the Q requested quantile levels. Each entry is therefore tied to both a future position and a probability level.

The paper summarizes the forecasting function as:

Ŷ = g(y_:t, x, θ)

The function g is the parameterized predictor, θ represents its trainable parameters, and x collects the relevant covariates. The historical target sequence y_:t and the covariates determine the forecast matrix.

The training objective combines the individual losses:

L_total = ∑_t ∑_q ∑_k L_q(y_(t+k), ŷ^(q)_(t+k))

L_total denotes the overall objective. The sums run over forecast creation times t, requested quantiles q and horizons k. The target y_(t+k) is the observation corresponding to a particular forecast entry. The authors also allow different weights for parts of this sum when an application needs to emphasize particular horizons or quantiles.

This objective is additive across the requested outputs. It directly rewards useful marginal forecasts, but it does not by itself define how uncertain outcomes at separate horizons move together. That distinction becomes important when interpreting what the framework’s probabilistic output can support.

Encode the observed sequence

The basic recurrent encoder is an LSTM. As it processes observations, it produces a hidden state at each time point. That state is the representation available to the decoder for the forecast created at that point.

The paper writes this operation as:

h_t = encoder(x_:t, y_:t)

The symbol h_t denotes the hidden representation at time t. The encoder consumes the target history y_:t and the input history x_:t. Its parameters are shared across time. The expression describes the information available at that forecast creation time, instead of a separate encoder trained for every cutoff.

The role of h_t is compression: it carries a learned account of historical behavior into the forecasting stage. That is useful when the history is long and contains interacting patterns. It also creates a challenge, because valuable older observations must remain accessible through a finite representation. The encoder extensions later in the paper address that challenge.

Static attributes enter through a learned lower-dimensional representation. The authors use a fully connected layer for this transformation, then supply the resulting representation across time. Static information can therefore influence how observations are interpreted without being mistaken for a changing measurement.

For retail demand, this matters when the shared network encounters products with limited history. A product’s attributes can connect it with behavior learned elsewhere. The paper presents that as a mechanism for cold-start forecasting, while its experimental evidence for the cold-start case is primarily qualitative.

Build contexts for the whole forecast period

The decoder begins with a global multilayer perceptron, or MLP. It receives the encoded history and the known future inputs. Its output includes both a context for each horizon and a context shared across horizons:

(c_(t+1), …, c_(t+K), c_a) = m_G(h_t, x^(f)_(t:))

The function m_G is the global MLP. Its inputs are the historical state h_t and the future covariates x^(f)(t:). Each c(t+k) is a horizon-specific context, while c_a is a horizon-independent context. K is the number of forecast horizons. The contexts are learned vectors whose dimensions are design choices.

The distinction between these contexts is functional. A horizon-specific context gives the network an explicit way to represent where an output lies relative to the forecast creation time. A shared context carries information that need not change across the prediction period.

The future-input summary also allows an event at a later date to influence an earlier horizon. The authors describe anticipation effects: knowledge of an approaching holiday can matter before the holiday itself. A decoder that considered only the feature attached to the current output date would have a less direct route to that information.

This is an architectural capacity, not a guarantee that every learned anticipation effect is correct. Its value depends on recurring evidence in training and on the future feature being informative. The paper’s contribution is to make such interactions expressible within the direct forecasting structure.

Produce each horizon’s quantiles locally

A second MLP generates the output for an individual horizon:

(ŷ^(q₁)_(t+k), …, ŷ^(q_Q)_(t+k)) = m_L(c_(t+k), c_a, x^(f)_(t+k))

The function m_L is the local MLP. It receives the context c_(t+k) for the selected horizon, the shared context c_a and the future covariates x^(f)_(t+k) associated with that date. The outputs are the Q quantile estimates requested for that horizon. The symbols q₁ through q_Q identify those quantile levels.

The local MLP shares its parameters across horizons. It can therefore learn a common response to an event feature, while the contexts determine how that response fits the specific forecast. This combination is central to the paper’s explanation of sharp changes around known events.

There is no recursive chain from an earlier predicted target to a later one. All horizons use the encoded history and future information through the decoder. This avoids asking a quantile prediction to stand in for an unknown observation at the next step.

The authors also argue against replacing the local MLP with another recurrent decoder merely because the parameters are shared. Their global context already communicates temporal information for direct prediction. An additional recurrent stage would add cost without being necessary for that role.

When useful future inputs are absent, or sharply varying output is not wanted, the paper permits a simpler decoder:

vec(Ŷ) = m_G(h_t, x^(f)_(t:))

The operation vec turns the forecast matrix Ŷ into a vector. The global MLP m_G then predicts that vector directly from the historical state and future inputs. This removes the local MLP while retaining the direct multi-horizon quantile objective and the compatible training structure.

Train forecasts from many historical positions together

In a cutting-sequences scheme, training selects a forecast creation time, cuts the input there and treats that history-and-target combination as an example. Repeating this at different cutoffs produces many overlapping examples. The recurrent encoder may consequently process much of the same history repeatedly.

Forking-sequences changes how those forecasting opportunities are arranged. The encoder runs through the sequence, and a shared decoder is attached to its state at each relevant time point. Each decoder predicts the future relative to its own position. The losses then contribute to the same training pass.

The decoder operation can be written as:

ŷ^(q)_(t:) = decoder(h_t, x^(f)_(t:))

The left side denotes the future quantile forecasts created at t. The decoder consumes h_t and the future covariates relative to that time. Its parameters remain the same as t changes, just as the encoder parameters are shared across the sequence.

This is not a collection of separately fitted forecasting systems. The same parameterized functions are reused at different temporal positions. What changes is the observed history represented by the encoder state and the future inputs associated with the cutoff.

The authors argue that gathering losses from nearby, highly related forecasting tasks stabilizes optimization. Their Amazon comparison supports this explanation through training curves: randomly cut training is more volatile and levels off earlier. The paper also claims substantial efficiency benefits from avoiding repeated sequence augmentation, although it does not give a numerical runtime benchmark.

Forking should not be confused with using future observations as inputs. Future observations provide targets during training. The encoder state at a forecast creation time still comes from information available up to that time, while known future features enter through their designated route.

Retain partial supervision near the boundary

A direct multi-horizon target becomes incomplete near the end of the observed training period. The short horizons may have known outcomes, while longer horizons extend beyond the available data.

The authors handle this by masking the unavailable loss terms. T denotes the end of the training period, and K denotes the forecast length. Forecast creation times between T−K and T can still contribute losses for the outcomes that have already been observed.

This preserves useful training information without inventing targets. It also generalizes to other cases where a particular output should not contribute to evaluation or learning. The mask determines which errors enter the objective; the rest of the shared architecture can continue to learn from available targets.

Extend the encoder without changing the forecasting task

The first extension combines several past hidden states before decoding:

h̃_t = m(h_t, …, h_(t−D))

The symbol h̃_t is the revised representation passed to the decoder. The function m is an extra linear transformation, and D controls how far back the collected hidden states reach. This NARX-inspired arrangement creates a more direct route from earlier states to the current forecast.

The next extension instead supplies past target observations as lagged inputs to the recurrent encoder. The authors interpret this as creating access to older information before the recurrent transformation rather than after it. In their Amazon experiment, this simpler arrangement performs better than the tested hidden-state extension.

Finally, MQ-CNN substitutes a stack of dilated causal convolutions for the recurrent encoder. Causality preserves the historical information boundary, while dilation lets higher layers reach farther into earlier observations. The temporal structure remains compatible with forecasts branching from successive positions. The framework’s common element is therefore the quantile decoder and training arrangement, not a requirement to use LSTM.

Experiments and results

Amazon demand: data and evaluation setup

The demand study uses weekly product series from the US marketplace. The sample contains around 60,000 products across different categories, with observations covering 2012 to 2017. Training uses data before 2016. During evaluation, forecasts are generated for all 52 weeks of 2016, with horizons ranging from 1 week to 52 weeks.

This is a repeated-origin evaluation. The question is not simply whether a forecast made at a single cutoff matches a later year. The system must generate a range of future predictions as the evaluation year advances. That matches the paper’s emphasis on forecasting as an activity repeated over time.

The covariates include historical demand, promotion information and static catalog attributes. Their roles differ: past demand belongs to observed history, promotions can supply future knowledge when scheduled, and catalog fields identify relatively persistent product characteristics. The experiment therefore exercises the architecture’s distinct input routes.

All compared systems produce P10, P50 and P90 forecasts. For quantile-trained variants, these are direct outputs. For likelihood-based variants, the quantiles are obtained from the predicted distribution. Quantile loss is then examined separately for the requested levels and across horizon length.

The paper’s demand figures show comparative curves and diagnostics, but the prose does not enumerate their plotted scores. The results therefore support statements about ordering, calibration and behavior without supplying a complete numerical leaderboard for this dataset.

What the demand baselines change

The principal MQ_RNN system uses the proposed direct quantile architecture and forking-sequences. ML_RNN retains the general forecasting arrangement but replaces quantile loss with a shifted Log-Gaussian likelihood:

log(y + 1) ∼ N(μ, σ²)

The variable y is the demand observation. The expression log(y + 1) is assumed to follow a Gaussian distribution, denoted N, with mean μ and variance σ². The likelihood-based network estimates the distribution parameters and obtains forecast quantiles from them.

MQ_RNN_cut changes the training organization. It uses sequence cuts at forecast creation times rather than the forking arrangement. Those cuts vary randomly across samples and epochs, helping the comparison use different portions of history.

Seq2SeqC changes more of the forecasting mechanism. It uses a recursive encoder-decoder structure, predicts Log-Gaussian parameters and feeds estimated means into later forecast steps. Training uses teacher forcing and cut sequences. It is an important practical baseline, but its comparison with MQ_RNN cannot isolate every architectural difference independently.

The authors also compare encoder extensions within the MQ framework. MQ_RNN_narx combines the last 52 hidden states; MQ_RNN_lag supplies the last 52 demand observations as inputs; MQ_CNN_wave replaces the recurrent encoder with dilated convolutions. These comparisons ask whether better access to historical information can improve the same basic prediction objective.

What the demand results establish

Among the principal controlled variations, MQ_RNN has the strongest accuracy across the evaluated horizons. The quantile-trained approaches are especially effective on P90 quantile loss. The authors connect that result with robustness to distributional mismatch, particularly in the upper tail.

The likelihood-based alternative has a somewhat biased calibration pattern, and its 80% forecast interval is described as almost twice the width of MQ_RNN’s interval. That comparison concerns interval sharpness: how narrowly the system expresses uncertainty. A narrow interval is useful only in conjunction with suitable calibration, so the paper examines both.

The cut-sequence variant learns less steadily. Its training curve fluctuates more and reaches an early plateau. Series-level inspection suggests that it frequently captures similar broad behavior to MQ_RNN, but less accurately. That finding supports a training effect instead of a claim that forking introduces a wholly different kind of forecast.

Seq2SeqC gives a more surprising result. The authors do not observe the anticipated deterioration at long horizons. Instead, they emphasize that its predicted curves are frequently flat. Their suggested explanation is excessive dependence on the recursively supplied mean estimate. The distinction matters: an aggregate loss comparison and a forecast-shape diagnosis reveal different aspects of behavior.

Encoder extensions improve the outcome further. The lag-input recurrent variant is the strongest recurrent version, and MQ_CNN_wave has the highest accuracy overall in that comparison. The authors caution that the convolutional system is not a minimal change to the recurrent baseline, so hyper-parameter choices may influence the result.

The product examples illustrate seasonal behavior, trend, a cold start and a promotion spike. They make the output interpretable as a forecast band with a median trajectory. They do not provide separate quantitative estimates of performance for those situations.

Electricity price: a numerical competition comparison

The GEFCom2014 price task forecasts hourly electricity prices for a zone over a 24-hour period. Available future information includes forecasts of zonal and total load. The authors add calendar features describing position within the year and day, together with weekday and US holiday indicators.

The competition evaluates 99 percentiles. MQ-RNN is trained at quantile levels 0.01, 0.25, 0.5, 0.75 and 0.99, then uses linear interpolation to obtain the required output grid. The final score averages the quantile-loss criterion over 12 forecast creation dates.

GEFCom2014 electricity price, average quantile loss

MQ-RNN scores below the reported leading competition entries.

GEFCom2014 electricity price, average quantile lossCompetition winner: 2.72Competition winner2.72Competition second place: 2.73Competition second place2.73Competition third place: 2.82Competition third place2.82MQ-RNN (this paper): 2.63MQ-RNN (this paper)2.63
The numbers
System or settingaverage quantile loss
Competition winner2.72
Competition second place2.73
Competition third place2.82
MQ-RNN (this paper)2.63

The authors describe this result as sufficient to have won the price competition. The wording is conditional because the paper reports a later application to the competition task, rather than an actual submitted winning entry.

For price, the encoder processes 168 hours of history and has a state dimension of 30. Its input also includes lagged values covering 168 past hours. These settings show that the competition result uses the lag-input extension instead of relying only on a basic recurrent state.

Electricity load: a different horizon and encoder grain

The load task concerns hourly demand for a US utility over a future month, with 744 hourly forecast positions. The known future information is calendar-based. Historical temperature observations are available from 25 weather stations, but those historical measurements should not be mistaken for future weather inputs.

The encoder operates at daily resolution while the decoder outputs hourly forecasts. This lets the system represent a longer historical period without an equally long hourly recurrence. It is a useful demonstration that the input sequence’s timestep and the forecast output’s timestep need not match.

GEFCom2014 electricity load, average quantile loss

MQ-RNN scores below the reported leading competition entries.

GEFCom2014 electricity load, average quantile lossCompetition winner: 7.45Competition winner7.45Competition second place: 7.51Competition second place7.51Competition third place: 7.83Competition third place7.83MQ-RNN (this paper): 7.43MQ-RNN (this paper)7.43
The numbers
System or settingaverage quantile loss
Competition winner7.45
Competition second place7.51
Competition third place7.83
MQ-RNN (this paper)7.43

For load, the historical duration is 56 days, the recurrent state dimension is 30, and lagged inputs cover 7 days. As in the price experiment, the authors use the sparse trained quantile set and interpolate to the competition’s 99 percentiles.

Training uses random historical slices whose duration matches the chosen encoder length. Forking-sequences is applied within each slice. At every forecast creation date, only earlier data is used for fitting, and the network is trained again from scratch for the next date.

The paper says these settings came from limited initial trials rather than intensive tuning. That supports the claim that the framework can work across different forecasting settings without an elaborate task-specific search. It does not establish that the reported configuration is optimal, or quantify the cost of the repeated training procedure.

What the ablations show

Direct quantile fitting helps under the tested distribution mismatch

The loss comparison is especially informative because it asks whether uncertainty should be learned through a specified distribution or through the quantiles used in evaluation. ML_RNN predicts a shifted Log-Gaussian distribution. MQ_RNN predicts the desired quantiles directly.

Their difference is not simply that one system produces uncertainty and the other does not. Both do. The issue is how that uncertainty is constrained. In ML_RNN, the quantiles must agree with the chosen distributional form. In MQ_RNN, the loss directly adjusts the requested thresholds.

The demand results favor quantile fitting, particularly for the upper quantile. The wider interval and calibration bias of ML_RNN are consistent with the authors’ explanation that the assumed distribution does not capture the data adequately. They specifically suggest a mismatch in tail behavior as a possible cause.

This is an empirical argument for flexibility in that setting. It is not evidence that every likelihood-based approach would perform worse. The comparison tests a particular distributional assumption and parameterization. A different assumption, transformation or uncertainty construction would require its own evaluation.

It also does not mean that direct quantile fitting makes calibration automatic. Quantile loss supplies an appropriate target for the requested thresholds, but the learned outputs still depend on data, capacity and optimization. The experiment is valuable because it examines observed calibration alongside the training objective.

Forking-sequences changes optimization, not the available history

The comparison between MQ_RNN and MQ_RNN_cut tests the training scheme more directly. The cut variant has access to varying forecast creation times because cuts are randomized across examples and epochs. It is therefore not restricted to a single fixed endpoint.

Even so, its training curve is less stable and stops improving earlier. The forking version gathers errors from many temporal positions into shared updates. The paper’s interpretation is that this makes better use of the related prediction tasks and regularizes learning.

The series-level diagnostics reinforce that reading. Both variants can show similar general forecast behavior, yet the cut version performs worse. This suggests that the benefit is not necessarily a new representational capability. The same broad architecture can be trained more effectively when supervision is organized around the repeated structure of the task.

There are limits to what this analysis measures. The paper does not provide a numerical breakdown of computation saved by reusing encoder states, nor a separate memory-cost comparison. Its strongest direct evidence is the combination of learning-curve behavior and forecasting accuracy.

The general lesson is that training examples need not be defined solely by how a dataset is stored. A long sequence contains many prediction opportunities. How those opportunities are grouped into parameter updates can materially affect learning, even when their information content overlaps.

The recursive baseline complicates a simple error-accumulation story

The paper motivates direct prediction partly through the risk of recursive error accumulation. Its experiment does not reduce to a clean demonstration that recursive forecasts always become worse as the horizon grows.

Seq2SeqC is not at a special disadvantage on long horizons in the reported comparison. Instead, its outputs are frequently overly flat. The authors suspect that using the predicted mean as the next input encourages dependence on a smoothed trajectory.

That distinction helps separate the intended mechanism from the observed failure. Recursive feedback can produce poor behavior without necessarily causing a visibly increasing loss gap at the farthest horizons. A forecast may lose local variation or event structure while remaining competitive on some aggregate errors.

The comparison also changes several components together. Seq2SeqC uses recursive decoding, likelihood outputs, teacher forcing and cut sequences. MQ_RNN uses direct quantile outputs and forking. The result supports the complete design, but it cannot assign the whole difference to recursion alone.

The more controlled loss and training comparisons help resolve parts of that uncertainty. Together, the studies offer a stronger argument than the recursive comparison would on its own, while still falling short of a fully isolated test of every design choice.

Older observations can help through several routes

The encoder analysis compares different ways of exposing distant history to the forecasting decoder. A plain recurrent state must preserve useful information as it advances. The NARX-inspired extension supplies access to earlier hidden states, reducing reliance on that single route.

That extension improves accuracy, but feeding lagged observations into the recurrent encoder works better in the reported demand comparison. The authors suggest that the target’s historical values are especially predictive, making direct access to them an effective approximation to a richer long-memory mechanism.

This is a practical finding about information placement. A useful signal can be available in principle yet difficult for the network to retain or reconstruct. Supplying it explicitly changes the burden placed on the recurrent state.

The convolutional encoder achieves the strongest overall accuracy in the encoder study. Its dilated structure provides another route to a broad historical context. However, the paper flags the comparison as less tightly controlled because the convolutional configuration is not merely a small alteration of the recurrent system.

These findings support encoder flexibility within the framework. They do not identify a universally best temporal architecture. The common decoder and loss make it possible to investigate those choices without abandoning the overall forecasting formulation.

Some architectural explanations remain qualitative

The authors report that a shared, horizon-independent context improves learning stability and forecast smoothness. They also explain why the local decoder should help align event features and generate sharp changes. These are useful design observations, but they are not accompanied by separately enumerated numerical ablations in the text.

Similarly, cold-start and promotional behavior appear through selected product examples. Those examples show the intended capability in recognizable cases. They do not measure average cold-start performance or isolate the causal contribution of static attributes.

The paper therefore contains a mixture of evidence: controlled variants, encoder comparisons, training diagnostics and illustrative forecasts. Reading them together gives a coherent account of why the framework works. Treating every explanation as equally quantified would overstate the experimental record.

Limitations

The authors leave joint forecasting unresolved

The clearest stated boundary concerns the relationship among future outputs. MQ-RNN predicts quantiles for individual horizons, but the authors do not develop a joint probability distribution over the complete forecast trajectory.

This matters because a collection of marginal intervals does not describe every property of a future path. Knowing the uncertainty at each date does not, on its own, establish how errors at different dates depend on one another. Shared parameters and contexts can coordinate predictions, yet they are not a substitute for an explicitly specified joint distribution.

The paper’s initial probability notation is therefore broader than its implemented quantile output. The practical results concern marginal forecasts evaluated with sums of quantile losses. They should not be read as demonstrating a complete probabilistic account of every possible multi-step trajectory.

The authors also identify explicit multivariate forecasting as unfinished work. Training a shared network on many series is not the same as predicting their joint evolution. Cross-series learning shares statistical strength; explicit multivariate forecasting would require an account of the relationships among the forecasted variables.

The Amazon numerical record is incomplete

A careful reader can identify another limit in the way the demand results are reported. The prose provides the experimental setup and qualitative rankings, while the principal accuracy and diagnostic comparisons appear as plots. It does not enumerate the plotted quantile-loss values.

That prevents a precise numerical statement of the gain on the Amazon sample. The evidence supports the direction of several comparisons, but it does not support a newly calculated percentage improvement or an exact demand-loss margin.

The interval-width description is similarly approximate. The authors characterize the likelihood-based interval as nearly twice as wide. That is informative about the scale of the difference, but it is not an exact ratio that can be reused as a measured constant.

The product forecasts are also selected examples. The seasonal and trend cases illustrate recognizable behavior, while the cold-start and promotion cases demonstrate intended uses. They do not establish how often those behaviors occur across the full product sample or whether difficult subgroups have comparable accuracy.

Not every component is isolated

The authors make an explicit effort to keep the main variants similar, but some comparisons still change several things at once. The contrast with Seq2SeqC combines differences in output objective, decoder structure, feedback and training organization.

That means the experiment supports the complete MQ-RNN package more clearly than it measures the individual contribution of direct forecasting alone. The separate likelihood and cut-sequence variants improve interpretability, but they do not form a complete factorial investigation of every interaction.

The convolutional comparison has an additional author-stated caveat: hyper-parameter choices may confound the encoder result. MQ_CNN_wave performs best in that experiment, but it is not a minimal recurrent-baseline modification. Its ranking should motivate further comparison rather than settle the architectural question universally.

There is also no separately quantified removal study for every future-feature or context mechanism. The paper explains their intended roles and reports useful qualitative behavior, but a reader should distinguish that explanation from a numerical estimate of each component’s effect.

Known future information is a condition of use

The architecture can use future events because some events are known before their outcomes occur. A promotion can be planned; a calendar position can be determined. Those inputs are different from future measurements that become available only after the fact.

The framework’s flexibility does not remove that distinction. If an application lacks informative future covariates, it cannot obtain their benefits simply by adopting the same decoder. The authors offer a simplified decoder for situations where future information contributes little.

Event-response learning also depends on evidence. The paper says event effects can be learned when the events occur sufficiently frequently in training. A planned event with no relevant precedent is therefore outside the strongest part of that argument.

Cold starts have a similar qualification. Static features and shared training can provide information when target history is scarce. The quality of that information depends on whether the attributes connect the new series with useful patterns already learned. The paper illustrates the capability but does not supply a comprehensive cold-start benchmark.

Competition leadership has a specific scope

The electricity results are strong numerical evidence for the tested tasks. They do not establish dominance across every task in GEFCom2014. The authors choose electricity price and load because their probabilistic, multi-horizon structure and future inputs match the framework well.

The reported comparisons also lack uncertainty estimates for variation across training runs. The paper gives average competition scores, but it does not report a statistical test or a distribution of outcomes from repeated fitting. The ranking can be stated directly; the reliability of that ranking under repeated training remains unquantified.

The limited tuning is useful evidence of practical adaptability, yet it is not a controlled measurement of tuning effort. The text describes the final choices as emerging from initial trials. It does not give a search budget that would support a precise efficiency comparison with other methods.

For each forecast creation date, the network is retrained from scratch using earlier observations. That is part of the demonstrated procedure. A continuously updated deployment would involve additional choices whose accuracy and operational cost are not evaluated here.

Uncertainty outputs have further structural limits

A careful reader can also ask whether independently predicted quantile outputs are guaranteed to remain ordered. The architecture produces several quantiles through an MLP, and the paper does not specify a constraint that enforces their ordering.

This does not establish that crossing occurs in the reported forecasts. It identifies a property that the described objective and architecture do not explicitly guarantee. The same distinction applies to calibration: optimizing quantile loss is well aligned with the desired output, but it does not make every finite-data prediction perfectly calibrated.

Interpolation in the competition experiments introduces another boundary. The network directly learns the selected quantile levels, while intermediate percentiles are produced by linear interpolation. The reported score validates the resulting forecasts on those tasks, but it does not show that every percentile was independently learned.

Finally, the industrial efficiency claim is broader than the numerical runtime evidence presented. The authors describe use at a scale of millions of series and explain why the training structure avoids repeated work. They do not provide detailed measurements of runtime, memory use or serving latency. The paper establishes an effective forecasting design and an efficiency rationale, while leaving those deployment costs less fully documented.

What came after

The paper’s forward-looking agenda is to extend the framework beyond marginal quantiles at separate horizons. It identifies explicit multivariate forecasting and a joint distribution across horizons as the main unresolved directions. Those extensions would address relationships that shared training and coordinated decoder contexts do not fully specify.

No subsequent study is identified for discussion. It would therefore be unsupported to attribute a later architecture, benchmark result or forecasting practice to this work. The established contribution remains the combination demonstrated here: temporal encoding, direct multi-horizon quantile output, future-aligned decoding and supervision distributed across forecast creation times. Its lasting research question is how far that efficient marginal forecasting design can be extended while preserving a clear account of uncertainty across the complete forecast.

Cite

Cite as Ruofeng Wen, Kari Torkkola, Balakrishnan Narayanaswamy and Dhruv Madeka. 2017. A Multi-Horizon Quantile Recurrent Forecaster. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1711.11053 · arXiv 1711.11053

@misc{wen2017multi,
  title = {{A Multi-Horizon Quantile Recurrent Forecaster}},
  author = {Ruofeng Wen, Kari Torkkola, Balakrishnan Narayanaswamy and Dhruv Madeka},
  year = {2017},
  doi = {10.48550/arxiv.1711.11053},
  eprint = {1711.11053},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1711.11053}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/wen-2017-multi-horizon-quantile-recurrent-forecaster/