Hyunsuk Kim, Isaac Gibbs, Michael W. Mahoney, Ryan J. Tibshirani
Abstract
The task of constructing a predictor that is simultaneously accurate under multiple evaluation metrics has been popularized recently under the name omniprediction. Prior work in this area has largely focused on binary prediction tasks, and existing results for multiclass and continuous outcomes typically suffer from slow error rates. In this paper, we consider forecasts expressed as a set of quantiles over a discrete but otherwise arbitrary set of probability levels. We develop sample-efficient algorithms for constructing forecasts that are accurate simultaneously across all proper losses that satisfy mild regularity conditions, where proper losses are those minimized by predicting the true quantiles. Our algorithms are online and can operate in a dynamic environment, while simultaneously taking multiple losses into account, and their forecasts offer the potential to provide diverse end-users with rich information for evaluating risk and informing a range of practical decision-making tasks. As an example, we demonstrate how our procedure can be used to ensemble quantile forecasts of COVID-19 hospitalizations made by experts during the pandemic. Code is available at https://github.com/hysk79/online-quantile-omniprediction.
1 Introduction
Probabilistic forecasting, i.e., forecasting the distribution of a target variable, has become a popular framework across a variety of prediction tasks [GK14, VBD +21, SWM +18, CRL +22]. In contrast to point predictions, probabilistic forecasts provide a richer description of uncertainty and offer end-users greater information with which to evaluate risk and guide effective decision-making [Raf16]. This flexibility is particularly valuable in settings in which a single prediction is shown to a diverse set of users with varying and unknown objectives, as it allows users to extract the information most relevant to their needs.
A conventional approach for training and evaluating a probabilistic forecast is to measure its distance from the true distribution using a proper loss [GRWG05, GR07]. In general, we say that a loss is proper if (in expectation) it is minimized by predicting the true distribution of the outcome. There are a number of popular proper losses in the literature, and a key difficulty is determining which loss one should use for training. Indeed, while all proper losses share the same global optimum, they penalize distance from the ground truth asymmetrically, and thus obtaining a near minimizer in one loss does not guarantee good performance for other losses [BRT25].
In response to this, a recent line of work aims to construct “omnipredictors” that achieve optimal performance on multiple losses simultaneously [GKR +22, GKR23, GJRR24, GOR +24, NRRX25,
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
LRS25, OKK25, GT26]. Much of this work has focused on binary prediction tasks. In that context, it has been shown that, given a baseline class of prediction functions, one can construct a single unified predictor that approximately matches the performance of the best baseline on every proper loss simultaneously [GJRR24, OKK25, GT26]. Notably, the error rates achieved in these works are identical (up to logarithmic factors) to the standard error rates for minimizing a single loss function: (O~(1/T) in the online setting over T timesteps; and O~(1/n) in the offline setting over n samples). Thus, omniprediction offers the potential to provide a practical path to improving existing learning algorithms.
In contrast to this work on binary prediction tasks, results for multiclass and continuous targets are much more modest. Prior work in [GKR +22, GOR +24, LRS25] gives algorithms for multiclass or continuous outcome omniprediction over restricted classes of losses satisfying various convexity and Lipschitz conditions, while [NRRX25] considers multiclass Bregman losses that are separable in the predicted probability for each class. In all of these cases, omniprediction is achieved at significantly slower rates than in the binary setting. For more general losses, [HTY26] propose a method for obtaining omniprediction over all proper losses in the multiclass setting. However, its error rate deteriorates rapidly as the number of classes grows, with realized rates of (k/n)1/(k+1) and (k/T)1/(k+1) for online/offline k-class classification, respectively.
To achieve more practical methods, we pursue omniprediction guarantees for simplified probabilistic forecasts expressed as dense grids of quantile predictions for the outcome. Our motivation for considering such quantile forecasts is two-fold. First, on a technical level, proper losses for quantiles admit a decomposition as mixtures over a smaller two-parameter class of elementary losses. This will allow us to focus our algorithms on a small, tractable set of losses and thus enable the development of efficient omniprediction algorithms that mirror those for the binary prediction setting. Second, quantile forecasts are a popular way to summarize uncertainty in many real-world forecasting domains [HF16, CRL +22]. As a demonstration, we will show how our methods can be used to improve quantile-level forecasts of COVID-19 hospitalizations made by expert forecasting groups during the pandemic.
The remainder of this paper is structured as follows. Section 2 formally defines our prediction framework and presents the key structural results for proper quantile losses used throughout this paper. Section 3 develops our main method, which is an online forecasting algorithm for constructing quantile predictions that achieve low regret on all (sufficiently smooth) proper losses simultaneously. Analogous to results for the binary setting, we show that the omniprediction error of this method over T timesteps scales as O~(1/T) and thus matches rates for learning under a single loss (up to logarithmic factors). Section 4 gives our main empirical results, where we show that our procedure can be used to improve quantile forecasts made during the COVID-19 pandemic. We conclude in Section 5 with a discussion of limitations and directions for future work. Additional technical details, including proofs of all theoretical results, efficient subroutines for faster implementation of our algorithm, and additional empirical results and plots, are deferred to the appendix.
2 Preliminaries
2.1 Problem statement
We consider an online adversarial setting in which at each timestep t∈[T] the goal is to forecast an outcome Yt whose distribution is allowed to depend on the entire history of previous outcomes and predictions. For simplicity, we assume that Yt lies in [0,1], although our results readily extend to any bounded interval by translation and rescaling.
Given quantile levels 0<τ1<τ2<⋯<τN<1, our forecasts take the form of a vector q(t)=(q1(t),…,qN(t)) where qn(t) denotes our estimate of the τn quantile of Yt. We evaluate the performance of these predictions by comparing them to a finite set of B base forecasters F={{fbn(t)}n∈[N],t∈[T]:b∈[B]}, where fbn(t)∈[0,1] denotes the forecast of the τn-quantile made by base forecaster fb at timestep t.
As motivating examples, one may consider problems in which F is a collection of parametric functions mapping some covariates Xt to Yt or problems in which F contains candidate forecasts from many different baseline learning algorithms. In either case, at every timestep t, we will observe the previous sequence of outcomes (Ys)s<t and the current and preceding base forecasts {{fbn(s)}n∈[N],s≤t:
b∈[B]}, and our goal will be to construct q(t) so that it matches the performance of the best base forecaster on every loss ℓ in some collection L. More precisely, following [GKR+22], we aim to minimize the omniprediction error, defined as
where F={fb}b=1B and fb(t):=(fb1(t),...,fbN(t)). It is important to emphasize that in this definition the comparator forecaster in F is allowed to depend on the loss ℓ∈L. As a result, to achieve low omniprediction error it is not sufficient to set q(t) to be a fixed element of F, as the best base forecaster may vary between losses.
We will be interested in pursuing low omniprediction error with respect to the class of proper losses. Broadly, we say that a loss function is proper for forecasting a given set of quantiles if it is minimized by forecasting the true quantiles of the target. 1 This is formalized in the following definition.
Definition 1 (Proper loss for quantile levels). For a distribution Py on [0,1], denote its τ-level quantile by qτ∗(Py):=inf{q∈[0,1]:PY∼Py(Y≥q)≥τ}. A loss function ℓ:[0,1]N×[0,1]→R≥0 is referred to as a proper loss for quantile levels 0<τ1<τ2<⋯<τN<1 if
By definition, the class of proper losses is the largest class of losses that share the true quantiles as their common minimizer, and thus it is the largest class over which we can reasonably expect to achieve low omniprediction error.
2.2 Existing characterizations of proper losses
In order to make our omniprediction objective tractable, we will rely on structural characterizations of proper losses for quantiles. Such characterizations have a long history in the forecasting literature, dating back to the pioneering work of [Sav71]. We will in particular rely on results for quantiles developed in [Tho79, Sae00, Gne11, EGJK16] which show that any (sufficiently smooth) proper loss for a single quantile level can be decomposed as a mixture over a one-dimensional family of elementary losses. To outline this result, [EGJK16] summarizes the characterization of proper loss for single quantile level from previous works as follows:
Characterization. For any non-decreasing function g:[0,1]→R, the loss function ℓ:[0,1]×[0,1]→R≥0 given by
ℓ(q,y)=(1(y<q)−τ)(g(q)−g(y))(2)
is proper for the τ-level quantile. Moreover, this representation is exhaustive, in the sense that any proper loss function for the τ-level quantile that satisfies the mild regularity conditions: (L0) ℓ(q,y)≥0 with equality if q=y; (L1) ℓ is continuous; and (L2) ℓ is twice continuously differentiable for q=y can be expressed in this form.
Let Lτ denote the class of loss functions of the form (2) with g being a left-continuous, non-decreasing function. Then, [EGJK16] shows that every loss in Lτ can be decomposed as a mixture of so-called elementary losses as follows.
Theorem 1 (Theorem 1a in [EGJK16]). Fix any τ∈(0,1). For any loss function ℓ∈Lτ, there exists a non-negative Lebesgue–Stieltjes measure H on [0,1], given by dH(θ)=dg(θ), such that for all q,y∈[0,1],
ℓ(q,y)=∫01ℓτ,θ(q,y)dH(θ),(3)
where for any θ∈[0,1], ℓτ,θ is the elementary loss
1Losses with this property are also sometimes referred to as consistent losses or consistent scoring functions.
It may be instructive to note that for any τ,θ∈[0,1] the elementary loss ℓτ,θ is itself proper. To see this, fix any τ,θ∈(0,1)2 and note that by definition ℓτ,θ essentially only admits two forecasts: namely, we may either forecast a value q>θ or a value q≤θ. Which of these forecasts is optimal will depend on the sign of
which is nonnegative (resp. nonpositive) exactly when θ is below (resp. above) the τ-quantile of Py.
Decision-making interpretation of elementary losses. Following the exposition in [MIT+25], one may also interpret ℓτ,θ in terms of a decision-making task in which one must decide whether to take a preventative action against an adverse event. More formally, let C denote the cost of taking this action (e.g., expanding hospital capacity) and L denote the price paid if the adverse event occurs (e.g., COVID-19 cases surge) and no preventative action was taken. Let a=1{action taken} and o=1{adverse event occurs} denote binary indicators for the action and outcome, respectively, and define a utility s expressing the payoffs for these outcomes as in Table 1. Finally, suppose the adverse event occurs exactly when some outcome Y (e.g., COVID-19 cases) exceeds a given threshold θ (e.g., the hospital's current capacity). Then, if we take the preventative action if and only if the forecast quantile q exceeds θ, one can check that
and thus up to renormalization correctly forecasting the (1−C/L)-level quantile of Y is equivalent to choosing the correct action.
To extend beyond single quantile forecasts we will use a result of [FZ16] which shows that proper losses for vectors of quantiles decompose as sums of proper losses for single quantiles.
Theorem 2 (Simplified version of Proposition 4.2 in [FZ16]). Fix any 0<τ1<⋯<τN<1 and let ℓ:[0,1]N×[0,1]→R≥0 be a proper loss for quantile levels {τn}n=1N that satisfies mild regularity conditions (See Appendix F.1). Then, there exists losses ℓ1,…,ℓN:[0,1]×[0,1]→R≥0 such that ℓn is a proper loss for the τn-level quantile and
ℓ(q1,…,qN,y)=n=1∑Nℓn(qn,y).(5)
Now, define the following two classes of loss functions ℓ:[0,1]N×[0,1]→R≥0:
where each gn is non-decreasing and left-continuous. Putting the results above together, any loss function ℓ∈L can be expressed as ℓ(q1,…,qN,y)=∑n=1N∫−∞∞ℓτn,θ(qn,y)dHn(θ) for some non-negative mixing measures Hn and is a proper loss for quantile levels {τn}n=1N. Moreover, this representation is exhaustive: L contains all proper losses for quantile levels {τn}n=1N that satisfies mild regularity conditions. Finally, we add the additional restriction in L1 that ℓ is bounded because this will give a common scale to our definition of omniprediction and will ensure that the mixing distributions have bounded total measure.
3 Main theoretical results
We now turn to our main theoretical results which develop an algorithm for constructing quantile forecasts that achieves low omniprediction error with respect to the loss class L1.
2 The cases τ∈{0,1} and θ∈{0,1} can be proven similarly and are omitted.
Figure 1: Visualization of the discretization on the real line. Outcomes Yt and forecasts fbn(t) take values in the grid {0,1/m,...,1} that is interleaved by the values of θi.
3.1 Discretization
Our first step towards deriving our main method will be to reduce from optimization over all losses in L1 to optimization over a finite class. To accomplish this, we will combine the characterizations of proper losses from Section 2 with a discretization lemma that reduces the number of elementary losses that we need to consider to a finite set. For simplicity, we will assume that the outcomes Yt and base forecasts fbn(t) lie in the discrete grid {0,m1,…,1}, for some large fixed value m∈N. This assumption is relatively minor and is made primarily for technical convenience to avoid edge cases in which the elementary loss ℓτ,θ varies significantly at nearby values of θ. In our experiments we will enforce these conditions explicitly by rounding the base forecasters and target outcomes to an appropriate grid. More broadly, our results can be readily extended to other sets of assumptions. For example, if Yt is continuously distributed with a bounded density the same discretization lemma holds up to an extra additive error of size O(1/m).
Now, let θi=mi−2m1 for i∈[m]. The following lemma shows that to control the omniprediction error over the class L1, it suffices to control the error over the finite collection of elementary losses {ℓτn,θi}i∈[m],n∈[N]. This discretization scheme is visualized in Figure 1; and a proof of this result can be found in Appendix A.1.
Lemma 1. Let L1 denote the class of bounded proper losses defined in (6) and suppose Yt,qn(t),fbn(t)∈{0,1/m,...,1} for all t∈[T],n∈[N], and b∈[B]. Then,
Results analogous to Lemma 1 have been used in many places in the omniprediction problem to simplify an infinite class of losses to a more tractable finite set. Most similar to our work, [GT26] gives a similar discretization result for binary outcomes Y∈{0,1} and the class of bounded proper losses for the probability that Y=1. In all cases, the key conclusion is that in order to achieve low omniprediction error it suffices to work with the discretized collection of losses. In particular, in our problem it suffices to minimize the objective
To accomplish this, we will apply an algorithmic framework for multiobjective learning developed in [LNPR22] and popularized in a number of recent works on omniprediction and related problems [e.g., NRRX25, GJRR24, LRS25, GT26]. The core idea proposed by [LNPR22] is to consider a two-player game in which one player constructs a mixture of the elementary loss functions ℓτn,θi and the other player best responds with a (randomized) predictor that minimizes the worst-case loss gap on the mixture. Following that work, in Algorithm 1, this is implemented by having the first player use the well-known Hedge algorithm [Vov90, LW94, FS97] to learn weights wibn(t) over the quantiles levels τn, parameters θi, and baselines fbn appearing in (7), so that the time-average weighted mixture loss,
is guaranteed to be close to the supremum in (7). Then, letting Δm denote the set of distributions over [m], the second player constructs their (randomized) forecast as q(t)=(qn(t))n=1N∼P^(t), where P^(t):=(P^n(t))n=1N solves the minmax program,
By definition, this forecast minimizes the mixture loss over the worst-case (and potentially adversarially chosen) value of Yt.
The following theorem shows that Algorithm 1 achieves our desired omniprediction guarantee; and the proof of this result can be found in Appendix A.3.
Theorem 3. Suppose target values Yt, forecaster predictions fbn(t) for t∈[T], n∈[N], b∈[B] each takes values in a uniform grid of size m. With learning rate η=c(logmNB)/T, the predictions P^(t)=(P^n(t))n=1N from Algorithm 1 achieve the omniprediction error bound
A critical issue when implementing Algorithm 1 is solving the minmax program (8) in an efficient manner. Our detailed procedure for accomplishing this is given in Appendix B. As a summary of those results, the following theorem states the key structural properties of our computed solution. Briefly, the first property states that although P^(t) is randomized, this randomization is supported on only two nearby values; the second property states that the quantile forecasts produced by P^(t) follow the anticipated order q1(t)≤⋯≤qN(t); and the third property gives a bound on the range of P^(t)'s support. We provide more details and the proof of this theorem in Appendix A.2.
Theorem 4. There exists a solution for P^(t)=(P^n(t))n=1N in Algorithm 1 such that:
For all n∈[N], P^n(t) is supported on a maximum of two values.
There exists a coupling of (P^1(t),…,P^n(t)) such that any sampled value q(t)∼P^(t) is ordered as q1(t)≤⋯≤qN(t).
For all n∈[N], P^n(t) is supported on [minn∈[N],b∈[B]fbn(t),maxn∈[N],b∈[B]fbn(t)].
Theorem 4 demonstrates that P^(t) produces sensible quantile forecasts with minimal randomization.
Our second key result shows that P^(t) can be computed in a highly efficient manner. This is crucial because although the minimax program in (8) is convex-concave, it involves optimization over a high-dimensional parameter space consisting of N distributions on [m], making standard solution methods computationally intractable. As above, our detailed method for computing P^(t) is deferred to Appendix B, where we also provide an empirical runtime analysis that confirms the linear scaling in m, N, and B.
Proposition 1. At each step of Algorithm 1, P^(t) can be computed in O(mNB) time. Consequently, Algorithm 1 can be implemented in O(mNB) time complexity per step.
The next proposition shows that Algorithm 1's forecasts depend on the discretization only through its resolution 1/m, not through the interval one starts with. Consequently, the data range need not be known in advance: one may start on any interval and, whenever an out-of-range value appears, enlarge the grid. Additional detail and the proof is deferred to Appendix A.4.
Proposition 2 (Consistency under grid expansion). Consider two runs of Algorithm 1 on the same data stream and at the same resolution 1/m, differing only in their initial discretization interval, the second being an enlargement of the first. Suppose that up to round t every forecast fbn(s) and every target Ys ( s≤t) lies in the smaller interval. Then the two runs produce identical outputs P^(s) for all s≤t.
3.3 Comparison with Separate Optimization of Quantile Levels
Here, we illustrate an advantage of optimizing multiple quantile levels jointly as in Algorithm 1. In particular, in light of Theorem 2, one might ask whether running a separate omniprediction algorithm, analogous to Algorithm 1, for each quantile level individually would suffice. In that case, the minimax program (9) would be replaced by
By Theorem 4, Algorithm 1 outputs a vector of quantile estimates that is ordered according to the quantile levels. In contrast, no such guarantee holds when each quantile level is optimized separately. Moreover, simple procedures such as post-sorting the resulting quantile estimates may increase the loss and thus fail to provide an omniprediction guarantee (see Appendix E).
4 Empirical example
To illustrate Algorithm 1, we consider a real epidemiological forecasting task from the COVID-19 forecasting hub, a repository of real-time forecasts made during the COVID-19 pandemic [CHW +22]. In particular, we consider forecasting weekly aggregated COVID-19 hospitalizations across 51 state-level series (50 states + DC) and the U.S. aggregate (US-agg), at N = 23 quantile levels and horizons of h∈{1,2,3,4} weeks ahead. We evaluate performance across all location–horizon pairs (each defining a time series). During the pandemic, research groups throughout the country submitted forecasts to this repository. We use the predictions from B = 18 of these groups as the base forecasts for our algorithm. We compare our method against two ensembles constructed from the submitted forecasts by researchers during the pandemic, COVIDhub-Ens and JHUAPL-SLPEns, as well as Algorithm 6 (Hedge-QL, in Appendix C). Hedge-QL applies the Hedge algorithm independently at each quantile level, forming predictions as weighted averages of base forecasts with weights chosen to minimize the pinball loss. This method acts as a simple baseline for ensembling quantile forecasts against which we compare our omniprediction procedure. We use 127 weeks of data from December 2020 to June 2023. Additional details about the data can be found in Appendix D.1.
Metrics. We evaluate performance using three metrics. The first is the approximate cumulative omniprediction error at time t (referred to as the omni-error at time t):
Figure 2: Omni-error (Eq. (11)) over time for 1- to 4-week-ahead forecasting horizons (left to right panels) on the US-agg data for *Our algorithm (blue), *Hedge-QL (green) and the COVIDhub-Ens and JHUAPL-SLPEns ensembles (both black). The values of cH, cO shown in the legend of each panel correspond to the learning rate which achieved the lowest total omni-error. The red line shows the results of our algorithm with a fixed learning rate constant cO=1. Lower values indicate better performance.
Note that Lemma 1 shows that this quantity approximates the true omniprediction error (Eq. (1)) within a factor of 2. The second is the cumulative quantile loss at time t, defined as
where ρτ(x)=τx−min{x,0} is the canonical pinball loss for the τ-quantile and Ymax is the maximum value of the ground truth in the given time-series. To clarify terminology, we refer to the omni-error and cumulative quantile loss at the final time step T as the total omni-error and total quantile loss, respectively. Finally, as our last metric, we also consider the instantaneous normalized quantile loss at time t: Yt1∑n=1NEqn∼P^n(t)[ρτn(Yt−qn)].
Discretization. As introduced in Section 3.1, we discretize both the predictions and the ground truth into a finite set of values. We use grid spacings from {2,5,10,20,50,100,500} depending on the range of forecast values. This results in more than 500 grid points for all 208=52×4 time-series, and more than 1,000 grid points for over 150 time-series. Additional details on the choice of discretization are provided in Appendix D.1.
Learning rates. Our algorithm and Hedge-QL each use a learning rate hyperparameter. Rather than tuning it explicitly, we evaluate each method over a range of learning rates, and we report results for the best-performing value on each metric, along with a sensitivity analysis showing how performance varies with learning rate. In plots and legends, the best performing learning rates are denoted by *Our algorithm and *Hedge-QL. For some plots, we also report results using a fixed learning rate. Finally, consistent with our theory, when referring to an instance of our algorithm with learning rate constant cO, this corresponds to an implemented learning rate of η=cO(logmNB)/T. Similarly, for Hedge-QL with constant cH, the learning rate is set as η=cH(logB)/T/Ymax. We evaluate our algorithm over cO∈{10i/4∣i=−8,…,5} and Hedge-QL over cH∈{10i/4∣i=−4,…,12} (note that larger constants are needed for Hedge-QL to account for the normalization by 1/Ymax which gives it a smaller effective learning rate).
Results. We present plots of omni-error over time, as well as total omni-error and total quantile loss for our algorithm and baseline ensembles. We also provide a sensitivity analysis with respect to the learning rate. Overall, the results show that our algorithm is comparable to or outperforms the baseline ensembles, with particularly strong performance on more difficult prediction tasks. Additional plots, including comparisons of quantile forecast trajectories and distributions of ranks of each model at each (horizon, location, time) tuple, are provided in Appendix D.2.
As a first evaluation, Figure 2 shows the omni-error over time for our algorithm, Hedge-QL, and the two existing ensembling models on the US-agg data. We find that our algorithm outperforms the COVIDhub-Ens and JHUAPL-SLPEns ensembles across all time horizons, with larger performance gaps occurring at longer time horizons where forecasting is more challenging. On the other hand, Hedge-QL performs similarly to our algorithm, with the precise relative performance varying across horizons and learning rates. As a sensitivity check, this figure shows results for our algorithm obtained with both the best performing learning rate in hindsight and a fixed value of cO=1. This latter value was chosen as it minimizes the theoretical bound given in Theorem 3. Across all time horizons, forecasts from our algorithm with cO=1 perform as well as or better than the baseline ensembles.
To evaluate the generalizability of these results, the left panel of Figure 3 shows the differences in total omni-error (left column) and total quantile loss (right column) between our algorithm and each of the three comparators (rows). Similar to the results for US-agg, we find that our algorithm consistently outperforms the COVIDhub-Ens and JHUAPL-SLPEns across all time horizons with greater gaps being observed for longer horizons. In comparison to Hedge-QL, we find that our algorithm has a small advantage in terms of the total omni-error and realizes a much bigger performance improvement in terms of the total quantile error, especially at three and four week horizons.
The preceding results indicate that our algorithm shows the biggest performance gains on larger time horizons where forecasting is most difficult. To further investigate this trend, the right panel of Figure 3 displays the instantaneous quantile losses realized by our algorithm and Hedge-QL at each timestep. The color spectrum in this plot represents the difficulty of prediction at a given (horizon, location, time) tuple as measured by the average pinball loss of the base forecasters, Yt1BN1∑n=1N∑b=1Bρτn(Yt−fbn(t)). We find that more difficult (darker red) points are predominantly located above the y=x line indicating that our algorithm achieves lower quantile loss than Hedge-QL on harder prediction instances.
Omni. error rel. to *our alg. Quantile loss rel. to *our alg.
Figure 3: Left: State-level comparison of performance relative to *Our algorithm. Rows show comparisons with three baseline ensembles. Each curve shows a Gaussian kernel density estimate of the difference in total omni-error (left column) or total quantile error (right column) across the 51 state-level time series for a given forecasting horizon. Values to the right of zero (vertical black dotted line) indicate better performance of our algorithm. Right: Comparison of instantaneous quantile loss realized by *Our algorithm (x-axis) and *Hedge-QL (y-axis). See text for detailed descriptions.
We conclude this section with a sensitivity analysis evaluating how the performance of our algorithm varies with the learning rate. Figure 4 shows the realized total omni-error and total quantile loss realized by our algorithm for 1- to 4-week-ahead horizons on the US-agg data with learning rate constants cO∈{10i/4∣i=−8,…,5}. We see that across almost all horizons and learning rates our algorithm outperforms COVIDhub-Ens and JHUAPL-SLPEns and matches or improves on the performance of Hedge-QL. In general, we find that the total quantile loss varies more smoothly with respect to the learning rate than the total omni-error, although neither metric appears to be significantly sensitive to its value. A similar sensitivity plot for Hedge-QL is given in Appendix D.2.
Figure 4: Sensitivity of our algorithm to the choice of learning rate. Each panel shows the performance of our algorithm as a function of the learning rate (blue curve) as measured by the total omni-error (top row) or total quantile loss relative to best base forecaster (bottom row) on the US-agg data. Panels from left to right show results at 1- to 4-week time horizons, while horizontal lines indicate the performance of three baseline methods. Lower values indicate better performance.
5 Limitations and future work
In this paper, we develop computationally and sample efficient omniprediction methods for continuous prediction targets. To make this problem tractable, our results focus on bounded proper losses for a finite set of quantile levels. While this setting captures a broad and practically relevant class of evaluation criteria, it does not cover unbounded losses or proper losses defined on the full predictive distribution. For example, the log-loss ℓ(f,y)=−logf(y) falls into both categories and requires access to a forecasted density f. In general, quantile-based representations may be insufficient to evaluate such density-based proper losses, suggesting the need for new representations and algorithms beyond quantile aggregation. Exploring alternative aggregation criteria and determining the full scope of tractable omniprediction problems remain interesting directions for future work.
Acknowledgments and Disclosure of Funding
MWM would like to acknowledge DARPA, NSF, the DOE Competitive Portfolios grant, and the DOE SciGPT grant for partial support of this work.
References
[BRT25] Erez Buchweitz, João Vitor Romano, and Ryan J. Tibshirani. Asymmetric penalties underlie proper loss functions in probabilistic forecasting, 2025.
[CHW +22] Estee Y Cramer, Yuxin Huang, Yijin Wang, Evan L Ray, Matthew Cornell, Johannes Bracher, Andrea Brennen, Alvaro J Castro Rivadeneira, Aaron Gerding, Katie House, Dasuni Jayawardena, Abdul H Kanji, Ayush Khandelwal, Khoa Le, Jarad Niemi, Ariane Stark, Apurv Shah, Nutcha Wattanachit, Martha W Zorn, Nicholas G Reich, and US COVID-19 Forecast Hub Consortium. The united states covid-19 forecast hub dataset. Scientific Data, 2022.
[CRL +22] Estee Y Cramer, Evan L Ray, Velma K Lopez, Johannes Bracher, Andrea Brennen, Alvaro J Castro Rivadeneira, Aaron Gerding, Tilmann Gneiting, Katie H House, Yuxin Huang, et al. Evaluation of individual and ensemble probabilistic forecasts of covid-19 mortality in the united states. Proceedings of the National Academy of Sciences, 119(15):e2113561119, 2022.
[EGJK16] Werner Ehm, Tilmann Gneiting, Alexander Jordan, and Fabian Krüger. Of quantiles and expectiles: consistent scoring functions, choquet representations and forecast rankings. Journal of the Royal Statistical Society Series B: Statistical Methodology, 78(3):505–562, 2016.
[FKM +23] Rasool Fakoor, Taesup Kim, Jonas Mueller, Alexander J Smola, and Ryan J Tibshirani. Flexible model aggregation for quantile regression. Journal of Machine Learning Research, 24(162):1–45, 2023.
[FS97] Yoav Freund and Robert E. Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1):119–139, 1997.
[FZ16] Tobias Fissler and Johanna F. Ziegel. Higher order elicitability and osband's principle. The Annals of Statistics, 44(4), August 2016.
[GJRR24] Sumegha Garg, Christopher Jung, Omer Reingold, and Aaron Roth. Oracle efficient online multicalibration and omniprediction. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2725–2792. SIAM, 2024.
[GK14] Tilmann Gneiting and Matthias Katzfuss. Probabilistic forecasting. Annual Review of Statistics and Its Application, 1(Volume 1, 2014):125–151, 2014.
[GKR +22] Parikshit Gopalan, Adam Tauman Kalai, Omer Reingold, Vatsal Sharan, and Udi Wieder. Omnipredictors. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), pages 79–1. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2022.
[GKR23] Parikshit Gopalan, Michael Kim, and Omer Reingold. Swap agnostic learning, or characterizing omniprediction via multicalibration. Advances in Neural Information Processing Systems, 36:39936–39956, 2023.
[Gne11] Tilmann Gneiting. Making and evaluating point forecasts. Journal of the American Statistical Association, 106(494):746–762, 2011.
[GOR +24] Parikshit Gopalan, Princewill Okoroafor, Prasad Raghavendra, Abhishek Shetty, and Mihir Singhal. Omnipredictors for regression and the approximate rank of convex functions, 2024.
[GR07] Tilmann Gneiting and Adrian E Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007.
[GRWG05] Tilmann Gneiting, Adrian E. Raftery, Anton H. Westveld, and Tom Goldman. Calibrated probabilistic forecasting using ensemble model output statistics and minimum crps estimation. Monthly Weather Review, 133(5):1098 – 1118, 2005.
[GT26] Isaac Gibbs and Ryan J. Tibshirani. Sample-efficient omniprediction for proper losses. In Proceedings of the 39th Annual Conference on Learning Theory (COLT), volume 336, pages 2679–2719. PMLR, 2026.
[HF16] Tao Hong and Shu Fan. Probabilistic electric load forecasting: A tutorial review. International Journal of Forecasting, 32(3):914–938, 2016.
[HTY26] Lunjia Hu, Kevin Tian, and Chutong Yang. Simultaneous blackwell approachability and applications to multiclass omniprediction, 2026.
[LJGCW13] Kenneth C Lichtendahl Jr, Yael Grushka-Cockayne, and Robert L Winkler. Is it better to average probabilities or quantiles? Management Science, 59(7):1594–1611, 2013.
[LNPR22] Daniel Lee, Georgy Noarov, Mallesh Pai, and Aaron Roth. Online minimax multiobjective optimization: Multicalibeating and other applications. In Advances in Neural Information Processing Systems, 2022.
[LRS25] Jiuyao Lu, Aaron Roth, and Mirah Shi. Sample efficient omniprediction and downstream swap regret for non-linear losses, 2025.
[LW94] Nick Littlestone and Manfred K. Warmuth. The weighted majority algorithm. Information and Computation, 108(2):212–261, 1994.
[MIT +25] Cathal Mills, Nicholas J Irons, Joseph L-H Tsui, Sarah Sparrow, Luiz M Carvalho, Adam J Kucharski, Oliver Ratmann, Ben Lambert, Christl A Donnelly, and Moritz UG Kraemer. From metric to action: An evaluation framework to translate infectious disease forecasts into policy decisions. medRxiv, pages 2025–07, 2025.
[NRRX25] Georgy Noarov, Ramya Ramalingam, Aaron Roth, and Stephan Xie. High-dimensional prediction for sequential decision making. In Forty-second International Conference on Machine Learning, 2025.
[OKK25] Princewill Okoroafor, Robert Kleinberg, and Michael P Kim. Near-optimal algorithms for omniprediction. arXiv preprint arXiv:2501.17205, 2025.
[Raf16] Adrian E. Raftery. Use and communication of probabilistic forecasts. Statistical analysis and data mining, 9(6):397–410, 2016.
[Sae00] M. Saerens. Building cost functions minimizing to some summary statistics. IEEE Transactions on Neural Networks, 11(6):1263–1271, 2000.
[Sav71] Leonard J Savage. Elicitation of personal probabilities and expectations. Journal of the American Statistical Association, 66(336):783–801, 1971.
[SWM +18] Danijel Schorlemmer, Maximilian J Werner, Warner Marzocchi, Thomas H Jordan, Yosihiko Ogata, David D Jackson, Sum Mak, David A Rhoades, Matthew C Gerstenberger, Naoshi Hirata, et al. The collaboratory for the study of earthquake predictability: Achievements and priorities. Seismological Research Letters, 89(4):1305–1313, 2018.
[Tho79] William Thomson. Eliciting production possibilities from a well-informed manager. Journal of Economic Theory, 20(3):360–380, 1979.
[VBD +21] Stéphane Vannitsem, John Bjørnar Bremnes, Jonathan Demaeyer, Gavin R Evans, Jonathan Flowerdew, Stephan Hemri, Sebastian Lerch, Nigel Roberts, Susanne Theis, Aitor Atencia, et al. Statistical postprocessing for weather forecasts: Review, challenges, and avenues in a big data world. Bulletin of the American Meteorological Society, 102(3):E681–E699, 2021.
[Vov90] Volodimir Vovk. Aggregating strategies. In Proceedings of the Workshop on Computational Learning Theory, 1990.
A Proofs of Theoretical Results
A.1 Proof of Lemma 1
Proof. Let θi∗∈{θi}i=1m be the closest value from θ, where the ties are broken by rounding up. Observe that 1(θ<a)=1(θi∗<a) for a∈{mj}j=0m. This gives
Note that gn(1)−gn(0)=Hn([0,1)) from left-continuity of gn. Since maxℓ is larger than ℓ(0,...,0,1) and ℓ(1,...,1,0), it's also larger than the average of these two, which is (1/2)∑n=1NHn([0,1)). Putting together with the condition ∣ℓ∣≤1, we have ∑n=1NHn([0,1))≤2, and this proves
It remains to prove that the ratio above is at least 1. It follows from the fact that ℓτn,θi∈L1.
A.2 Proof of Theorem 4
In this proof, we denote P^(t)=(P^n(t))n=1N by (Pn∗)n=1. We introduce one lemma and two propositions that are essential for proving that the minimax solution Pn∗ satisfies the monotonicity constraint (Property 2 in the theorem statement). First, Lemma 2 defines a quantity Vn∗, on which our closed-form solution Pn∗ depends, for each n∈[N−1], and shows that there exists a non-decreasing sequence {jn∗}n=1N−1, where each jn∗ is an index that minimizes Vn(j).
Lemma 2. Denote [m]0:=[m]∪{0} and define a function Vn(j) and a quantity Vn∗ for n∈[N−1] as
Note that Dj is non-decreasing in j and Ej is non-increasing in j. Since jn∗ and jn+1∗ are the indices that minimize the Vn(j) and Vn+1(j), respectively, we have Cjn∗+Djn∗≤Cjn+1∗+Djn+1∗ and Cjn∗+Ejn∗≥Cjn+1∗+Ejn+1∗. This implies that
Ejn+1∗−Ejn∗≤Cjn∗−Cjn+1∗≤Djn+1∗−Djn∗.
Because of the monotonicity of Dj and Ej and the assumption that jn∗>jn+1∗, the leftmost term should be non-negative and the rightmost term should be non-positive. Therefore, we obtain
By choosing jn+1∗ as a minimizer of Vn(j) and jn∗ as a minimizer of Vn+1(j), we resolve the unsorted pair of indices. Repeating this process yields a sorted sequence 0=j0∗≤j1∗≤…≤jN−1∗≤jN∗=m and this proves the existence of sorted sequence.
Due to its existence, we can simply obtain a sorted sequence by choosing jn∗=minJn∗ for all n∈[N].
Next, we introduce two propositions. The first proposition (Proposition 3) constructs (Pn∗)n=1N and prove their properties. The second proposition (Proposition 4) then show this (Pn∗)n=1N is indeed a solution for the minimax program (9) in Algorithm 1. Note that Property 1 in 3 statement below proves Property 1 in the original theorem (Theorem 4) statement.
Proposition 3. Given a sorted sequence 0=j0∗≤j1∗≤…≤jN−1∗≤jN∗=m from Lemma 2, there exists a distribution Pn∗ for n∈[N] of the form
Pn∗=(1−Cn)δkn/m+Cnδ(kn+1)/m,(13)
such that the following properties hold:
jn−1∗≤kn
kn<jn∗ if jn−1∗=jn∗ and kn=jn∗ with Cn=0 if jn−1∗=jn∗.
The support of Pn∗ is contained in [jn−1∗/m,jn∗/m].
Proof of Proposition 3. We use the notation wis, 1is, and 1B from the proof of Lemma 2. Note that the quantity Vn∗ defined in Lemma 2 is equal to Vn(jn∗) for all n∈[N−1] and that Vn(j)≥Vn(jn∗) for all j∈[m]0.
Using the fact that 1{θi<k/m}=1{i≤k}, the last property in the proposition statement is equivalent to
where we used the identity ∑i=1mwin⋅1in+Vn−1(j)=∑i=1jwin⋅1B+Vn(j) evaluated at j=jn−1∗.
Now we divide the cases into three cases. First, consider the case where jn−1∗=jn∗. In this case, simply kn=jn−1∗ with Cn=0 satisfies the equation (14). Therefore, Pn∗=δjn−1∗/m satisfies the conditions. Second, consider the case where jn−1∗<jn∗ but Vn(jn−1∗)=Vn(jn∗). kn=jn−1∗ with Cn=0 again satisfies the equation (14) and kn=jn−1∗<jn∗ in this case. Lastly, consider the case where Vn(jn−1∗)>Vn(jn∗). We have
where two equalities used the identity ∑i=1mwin⋅1in+Vn−1(j)=∑i=1jwin⋅1B+Vn(j) evaluated at j=jn∗−1 and j=jn∗ respectively. This implies that there exists a jn−1∗≤kn<jn∗ such that
and this satisfies supp(Pn∗)∈[jn−1∗/m,jn∗/m] since kn+1≤jn∗.
The following theorem shows that (Pn∗)n=1 is a solution for the minimax program (9) in Algorithm 1.
Proposition 4. Given quantile levels τ1<τ2<…<τN and quantile forecasts fbn(t) for b∈[B], n∈[N], define Vn∗ for n∈[N−1] as in equation (12), with V0∗=VN∗:=0. Due to Lemma 2, there exists an increasing sequence {jn∗}n=1N−1 where jn∗ is an index that minimizes Vn(j). Define j0∗=0 and jN∗=m.
Then, Pn∗ for n∈[N] given by (13) with
Py∗=τ1δ0+(1−τN)δ1+n=1∑N−1(τn+1−τn)δjn∗/m
is a solution of the minimax program (9) and the value of the minimax program is
−n=1∑N−1(τn+1−τn)Vn∗≤0.
Proof of Proposition 4. Denote the minimax objective function by
It suffices to show that Py∗ maximizes O((Pn∗)n=1N,Py) over Py, and that (Pn∗)n=1N minimizes O((Pn)n=1N,Py∗) over Pn∈Δm, n∈[N]. We start with decomposing O((Pn)n=1N,Py). First, observe the following equality:
(18) where Cn=τn∑i=1m∑b=1Bwibn1{θi<fbn(t)} which does not depend on Pn or Py.
Using this decomposition, we prove O\left((P_n^*)_{n=1}^N, P^y^*\right) = \max_{P^y} O\left((P_n^*)_{n=1}^N, P^y\right). Let pyj=Py(mj) for j=0,...,m. Then, again using the notation wis, 1is, and 1B from the proof of Lemma 2, O((Pn∗)n=1N,Py) is rephrased as the following:
Notice that Aj is non-increasing on j≤k1 and non-decreasing on j>kN. A0=0 and Am=0 is the maximum value of Aj in these ranges, respectively. Next, observe that Aj≤0 for all j=0,1,...,m since Vn∗ is the minimum value that ∑s=1n∑i=j+1mwis⋅1is+∑s=n+1N∑i=1jwis⋅(1B−1is) can achieve by its definition. It suffices to show that Ajn∗=0 for n∈[N−1] since P^y^* only puts mass on these points. Note that Aj0=A0=0 and AjN=Am=0.
From the first and second properties in the statement of Proposition 3, we have kn<jn∗≤kn+1 if jn−1∗=jn∗ and jn−1∗=jn∗=kn if jν−1∗=jν∗, for n∈[N−1]. In the former case, we obtain Ajn∗=0 from j∈(kn,kn+1] case in the definition of Aj above. In the latter case, jn∗=kn does not fall into the range (kn,kn+1]. Still, from j∈(kn−1,kn] case ( j≤k1 case if n=1) in the definition of Aj, we have
where Vn(j) is defined as equation (12). Therefore, Ajn∗=0 for all n∈[N−1] and O\left((P_n^*)_{n=1}^N, P^y^*\right) = \max_{P^y} O\left((P_n^*)_{n=1}^N, P^y\right).
Next, we show that O\left((P_n^*)_{n=1}^N, P^y^*\right) = \min_{P_n \in \Delta_m, n \in [N]} O\left((P_n)^N_{n=1}, P^y^*\right). This follows directly from the propriety of ℓτn,θi losses and the third property in Proposition 3. Any point in the support of Pn∗ is τn-level quantile of P^y^* since P^y^*(Y \leq j_{n-1}^*/m) = \tau_n and P^y^*(Y \geq j_n^*/m) = \tau_n.
Lastly, we compute the value of the minimax program. Decomposition (19) can be rewritten as
O((Pn∗)n=1N,Py)=j=0∑mpyjAj+n=1∑NC(Pn∗).
Since Py∗ only puts mass on points j/m such that Aj=0, plugging in Py∗ into the equation above yields
where the second from the last equality used the fourth property in Proposition 3.
Lastly, we prove the second and third property in Theorem 4 statement using Proposition 3 and Proposition 4.
Proof of Property 2 in Theorem 4. It suffices to prove that Pn+1 is stochastically larger than Pn since we can couple these two by U∼Unif(0,1) and Pn=FPn−1(U) and Pn+1=FPn+1−1(U) where FX−1 denotes a inverse of cumulative distribution function of X.
Combining the first three properties in the statement in Proposition 3, we have kn<jn∗≤kn+1 if jn−1∗=jn∗. In this case, Pn+1∗ is stochastically larger than Pn∗ since Pn∗ is supported on {kn/m,(kn+1)/m} and kn+1>kn. In case jn−1∗=jn∗, Pn∗≡jn∗ and Pn+1 is stochastically larger than Pn since kn+1≥jn∗.
Proof of Property 3 in Theorem 4. Since Pn∗ is stochastically ordered, it suffices to prove that P1∗≥m1/m and PN∗≤m2/m almost surely. First we prove that P1∗≥m1/m almost surely. Observe that, for i≤m1, 1{θi<fbn(t)}=1 for all b∈[B] and n∈[N]. This implies that 1in=1B for all n∈[N] and i≤m1. Therefore, for j≤m1,
since 1is=1B for i≤m1 and V0∗=0. In case the inequality is strict, k1 that satisfies the condition (15) should be at least m1, which proves P1∗≥m1/m almost surely. In case the equality holds, k1+1=m1 since wm11⋅1B=∑b=1Bwm11>0 from the corollary condition. However, C1=1 in this case and P1∗=δm1/m which satisfies P1∗≥m1/m almost surely.
Next, we prove that PN∗≤m2/m almost surely in a similar manner. For i>m2, 1{θi<fbn(t)}=0 for all b∈[B] and n∈[N]. This implies that 1in=1B for all n∈[N] and i>m2. Therefore, for j≥m2,
since 1iN=0 for i>m2 and VN∗=0. Because wm2N⋅1B=∑b=1Bwm2N>0 from the corollary condition, kn that satisfies the condition (15) should satisfy kN<m2, which proves PN∗≤m2/m almost surely.
A.3 Proof of Theorem 3
Theorem 5 (Full statement of Theorem 3). For a set of quantile levels τ1<τ2<…<τN, let L1 denote the class of proper losses for multiple quantile levels defined as equation (6). Consider base forecasters {fb}b=1B where each forecaster fb provides {τn}n=1N-level quantile forecasts {fbn(t)}n=1N at each time t∈[T]. With the target values Yt, forecaster predictions fbn(t) for t∈[T], n∈[N], b∈[B] each taking values in a uniform grid of size m, and the learning rate η=c(logmNB)/T, the output P^(t)=(P^n(t))n=1N from Algorithm 1 achieves the following omniprediction error:
Proof. Observe that ℓτn,θi(x,y)∈{0,τn,1−τn} and thus ∣ℓτn,θi(x1,y1)−Sτn,θi(x2,y2)∣≤1. Without loss of generality, we assume that Yt,fb(t)∈{0,m1,...,1} for all t∈[T],b∈[B], as this construction extends to any bounded interval [−Bℓ,Bu] via rescaling.
The regret bound of hedge algorithm (Theorem 7) gives the following:
where ℓibn(s):=Eqn∼P^n(s)[ℓτn,θi(qn,Ys)]−ℓτn,θi(fbn(s),Ys) is the update exponent in equation (10), and the analogous u~,U~ use initial mass (m+1)NB1. Note that uibn(t)=wibn(t)U(t) and that U(t+1)=U(t)D(t), where D(t)=∑i,b,nwibn(t)eηℓibn(t) is the normalizing denominator already computed in equation (10); thus maintaining U(t) requires only one additional computation.
In-range equivalence. We proceed by induction. We claim the following:
First, (a) holds for s=1 since w≡mNB1 and w~≡(m+1)NB1. Next, we show that if (a) holds at round s, then (b) holds at round s. Property 4 of Proposition 3 states that
Since fbn(t)≤1<θm+1, we have 1{θm+1<fbn(t)}=0, so index m+1 contributes nothing to V~n(j) (eq. (12)) for j≤m, and V~n(m+1)−V~n(m)=∑s=n+1N∑bw~m+1,bs>0. This gives j~n∗=jn∗ and V~n∗=c(s)Vn∗ at round s. The proof of Proposition 3 implies k~n=kn≤m and C~n=Cn (eq. (16)), and thus (b) holds at round s. Lastly, we show that if (b) holds at round s and (fbn(s))b,n,Ys≤1, then (a) holds at round s+1. This follows from the fact that, for all i∈[m] and all b,n, wibn(s) and w~ibn(s) are multiplied by the same quantity, ℓibn(s)=ℓ~ibn(s), in the weight update (eq. (10)). This closes the induction and proves in-range equivalence.
Reconstruction. Note that ℓ~m+1,bn(s)=0 for s≤t, and thus u~m+1,bn(s)=(m+1)NB1 for s≤t. Also note that
With uibn(s)=U(s)wibn(s), we can recover w~(s) from w(s).
Expansion protocol. Within a round, the forecasts fbn(t) (hence P^(t)) precede the target Yt (hence the weight update). If the first out-of-range value is a target Yt, then P^(t) was computed in range and carries no mass at mm+1. We reconstruct w~(t) from w(t) before updating. If the first out-of-range value is a forecast fbn(t), the enlarged grid is already needed at prediction time, so we reconstruct w~(t) at the start of round t.
A.5 Single quantile level case
In case N = 1 with single quantile level τ, the minimax program (9) in Algorithm 1 is replaced by
solves equation (22), and the value of the minimax program is 0.
Proof. Let O(P,Py):=∑i=1m∑b=1BwibEq∼P,Y∼Py[ℓτ,θi(q,Y)−ℓτ,θi(fb(t),Y)]. It suffices to prove that O(P^*, P^y^*) = \max_{P^y} O(P^*, P^y) = \min_P O(P, P^y^*). Using the decomposition result from equation (17), we have
where C(P∗) is a value that does not depend on Py and we ignore the term hereafter.
Now observe that Akj:=∑i=j+1k∑b=1Bwib−∑i=j+1m∑b=1Bwib1(θi<fb(t)) is non-increasing on j≤k and non-decreasing on j∈[k,m) since 1(θi<fb(t)) is 0 or 1. Also note that Ak0≥Akm−1 if k=m and Akm=0≥Akm−1 if k=m. Therefore, Akj achieves maximum at j=0 or j=m:
which does not depend on P. Thus, O(P∗,Py∗)=minPO(P,Py∗).
B Additional algorithmic details
In this section, we provide additional algorithmic details. To start, Algorithm 2 provides the full description of our main omniprediction algorithm, Algorithm 1. Appendix B.1 discusses an efficient subroutine for computing Vn∗ and jn∗, defined in equations (25); and Appendix B.2 discusses an efficient subroutine for computing θn∗, defined in equations (27).
Algorithm 2 Full description of Algorithm 1
1: Data: Data stream (Yt)t=1T, quantile levels τ1<τ2<…<τN, Grid size m∈N, Learning rate η>0, Base forecasters: {fb}b=1B where fb outputs fbn(t) as τn-level quantile estimate at time t;
This subsection introduces Algorithm 3, an efficient subroutine to compute Vn∗ and jn∗ for each n∈[N−1] in O(mNB) time. Recall the definition of Vn∗ from Lemma 2:
This subsection introduces Algorithm 4 that computes {θn∗}n=0N in O(Klog(K)) time, where K is number of unique values in {fbn(t)}b,n. With this algorithm, now the computational bottleneck lies in computing Vn∗=Vn(θn∗) for each n∈[N−1], which takes O(N2B) in total. To reduce the time complexity even further, we introduce Algorithm 5 that computes Vn−1∗−Vn∗ for all n∈[N−1], which is all we need to compute the minimax solution qnG(t) (See Proposition 6), in O(NB) time.
Algorithm 3 Efficient computation of Vn and its minimizer jn∗
1: Input: Weights (wibs)s∈[N],i∈[m],b∈[B], indicators (1{θi<fbs(t)})s∈[N],i∈[m],b∈[B]
2: Output: Values (Vn)n=1N−1 and minimizers (jn∗)n=1N−1
3: 1) Compute aggregated weights and indicators:
9: for j=jn−1∗+1,…,m do
10: cost[j]=cost[j−1]−FrontSum[n,j−1]+BackSum[n,j−1]
11: Vn←min(Vn,cost[j])
12: end for
13: jn∗=argminjn−1∗≤j≤mcost[j]
14: end for
15: Return: (Vn)n=1N−1 and (jn∗)n=1N−1
We begin with introducing an efficient algorithm to compute {θn∗}n=0N in O(Klog(K)) time. Recall the definition of Vn∗ in Proposition 6:
The key point in efficiently computing Vn∗ is that Vn(θ) is a sum of piecewise linear functions (hinge functions) in θ. This implies that the minimizer θn∗ is the point where the slope of Vn(θ) changes from negative to positive. Another key observation is that the slope of Vn(θ) only changes at {fbs(t)}b,s and it increases by wbs. More precisely, the change of slope at fbs(t) is ∑{(x,z):fxz(t)=fbs(t)}wxz. It is important to note that the amount of change at each fbs(t) is same for all Vn(θ),n∈[N−1].
Then, we observe that the slope of Vn(θ) at θ<minb,nfbn(t) is −∑s=1n∑b=1Bwbs. This implies that finding θn∗ reduces to finding the smallest fbs(t) such that cumulative slope increase is larger than or equal to ∑s=1n∑b=1Bwbs. Formally, θn∗ equals to the smallest fbs(t) such that ∑{(x,z):fxz(t)≤fbs(t)}wxz≥∑s=1n∑b=1Bwbs.
Next, we introduce an algorithm that computes Vn−1∗−Vn∗ for all n∈[N−1] in O(NB) time. Note that naive computation of Vn∗ using θn∗ takes O(NB) time and thus O(N2B) in total. Before
Each component results in different values depending on whether fbn(t)<θn−1∗ or θn−1∗≤fbn(t)<θn∗ or θn∗≤fbn(t). Fortunately, some calculations on the quantity above (divide cases, etc.) gives the following simple formula:
Observe that most quantities can be precomputed in O(NB) time. Algorithm 5 shows the details.
B.3 Runtime analysis
Figure 5: Runtime of Algorithm 1 with cO=1 on U.S.-aggregate, 4-week-ahead prediction data versus grid size m (Left), number of quantile levels N (Middle), and number of base forecasters B (Right). Middle and right plots use grid size 500.
We empirically verify the O(mNB) per-step complexity established in Proposition 1. Figure 5 shows the runtime of Algorithm 1 while varying one of grid size m, number of quantile levels N,
Algorithm 5 Efficient computation of Vn−1∗−Vn∗ for all n∈[N−1]
or number of base forecasters B and holding the other two fixed. In each case the runtime grows linearly, consistent with the result of Proposition 1.
C Omniprediction under weighted quantile losses
In this section, we develop omnipredictors for the restricted subset of proper loss functions that can be expressed as weighted combinations of pinball losses. Although this is a much smaller set than the set of all proper losses for multiple quantile levels, which we discussed in Section 3, it has the advantage of not requiring any discretization of the target outcome or base forecasters' predictions.
We introduce two algorithms for omniprediction for weighted quantile losses. In Appendix C.1, we discuss the first algorithm which runs the Hedge algorithm on each quantile level then combines quantile estimates from each level. In Appendix C.2, we introduce a two-player game based algorithm that has a similar form to the omniprediction algorithm for multiple quantile levels given in Algorithm 1. Finally, in Appendix C.3, we compare the two algorithm in terms of time complexity, quantile crossing, and omniprediction error bound.
Notation. Define the pinball loss at quantile level τ as ρτ(x):=τx1{x≥0}+(1−τ)∣x∣1{x<0}=(τ−1{x<0})x. The weighted quantile loss at quantile levels {τn}n=1N is defined as
ℓ((xn)n=1N,y):=n=1∑Nwnρτn(y−xn),
where wn is the weight for the τn-level quantile prediction and ∑n=1Nwn=1. We denote Lwql as the set of all weighted quantile loss functions and use ρn(x,y) to denote ρτn(y−x) for n∈[N]. We define fmin(t)=minn∈[N],b∈[B]fbn(t) and fmax(t)=maxn∈[N],b∈[B]fbn(t) for each time t.
We aim to come up with q(t)=(qn(t))n=1N that minimizes the following omniprediction objective:
In this subsection, we introduce the first algorithm that essentially runs Hedge algorithm on each quantile level then provide the omniprediction error bound for this algorithm. We denote the output from Algorithm 6 by qH(t):=(qnH(t))n=1, where the superscript H denotes it is from the Hedge algorithm.
Algorithm 6 Hedge algorithm for multiple quantile levels in parallel
1: Data: Data stream (Yt)t=1T, Quantile levels {τn}n=1N, Learning rate η>0, Base forecasters: {fb}b=1B where fb outputs fbn(t) as τn-level quantile estimate at time t;
2: Initialize: wbn(1)=B1, ∀b∈[B],n∈[N];
3: for t=1,…,T do
4: Output: Output qH(t):=(qnH(t))n=1N where qnH(t)=∑b=1Bwbn(t)fbn(t);
where the first inequality is due to convexity of ρτ and the second inequality is due to the regret bound of the Hedge algorithm (Theorem 7). This gives the omniprediction error bound for Algorithm 6 as follows:
In this subsection, we introduce a second algorithm that is based on two-player game that is similar to Algorithm 1 in Section 3, and then we provide the omniprediction error bound for this algorithm. In the process, we prove that the output from this algorithm does not exhibit quantile crossing. We denote the output from Algorithm 7 by qG(t):=(qnG(t))n=1, where the superscript G denotes it is from the two-player Game based algorithm.
We show that (qnG(t))n=1 does not exhibit quantile crossing.
Proposition 6. Define a function Vn(θ) and a quantity Vn∗ for n∈[N−1] as
Algorithm 7 Two-player game based omniprediction for weighted quantile losses
1: Data: Data stream (Yt)t=1T, quantile levels τ1<τ2<…<τN, Learning rate η>0, Base forecasters: {fb}b=1B where fb outputs fbn(t) as τn-level quantile estimate at time t;
2: Initialize: wbn(1)=NB1, ∀n∈[N],b∈[B];
3: for t=1,…,T do
4: 1) Make prediction at time t:
5: Define V0∗=VN∗=0, θ0∗=fmin(t), θN∗=fmax(t);
6: for n=1,…,N−1 do
7: Define Vn(θ) as:
Vn(θ)=∑s=1n∑b=1Bwbsmax(fbs(t)−θ,0)+∑s=n+1N∑b=1Bwbsmax(θ−fbs(t),0)
8: Compute Vn∗ and θn∗:
Vn∗:=minθ∈[fmin(t),fmax(t)]Vn(θ), θn∗=min{θ∣θ∈[θn−1∗,fmax(t)],Vn(θ)=Vn∗} (27)
9: end for
10: Output qG(t):=(qnG(t))n=1N where
qnG(t)=∑b=1Bwbn(t)1(∑b=1Bwbn(t)fbn(t)+Vn−1∗−Vn∗);
11: 2) Update the weights for each ρn and fb:
wbn(t+1)=∑n=1N∑b=1Bwbn(t)exp(η[ρn(qnG(t),Yt)−ρn(fbn(t),Yt)])wbn(t)exp(η[ρn(qnG(t),Yt)−ρn(fbn(t),Yt)]),∀n∈[N],b∈[B];
12: end for
and V0∗=VN∗=0. Let Jn∗ be the set of θs that minimizes the Vn(θ). Then, there exists a sorted sequence fmin(t)≤θ0∗≤θ1∗≤…≤θN−1∗≤θN∗=fmax(t) such that θn∗∈Jn∗ for n∈[N−1].
satisfies θn−1∗≤qn≤θn∗ for n∈[N−1], and thus fmin(t)≤q1≤q2…≤qN≤fmax(t) holds.
Proof. Since Vn(θ) shares the same structure with Vn(j) defined in equation (12), existence of a sorted sequence follows the same proof in Lemma 2. To prove that such θn∗ takes values in [fmin(t),fmax(t)] for all n∈[N−1], it suffices to show that Jn∗∩[fmin(t),fmax(t)]=∅ for all n∈[N−1]. On θ≤fmin(t), the second sum in Vn(θ) is simply zero and thus Vn(θ) is non-increasing. On θ≥fmax(t), the first sum in Vn(θ) is zero and thus Vn(θ) is non-decreasing. Therefore, Jn∗ cannot only contain values that are not in [fmin(t),fmax(t)].
Next, we prove that θn−1∗≤qn≤θn∗ for n∈[N−1]. Observe the identity:
Next, we show that (qn)n=1 are a solution to the minimax program.
Theorem 6. Given quantile levels τ1<τ2<…<τN and quantile forecasts fbn(t) for b∈[B], n∈[N], define Vn∗ and θn∗ for n∈[N]∩{0} as in Proposition 6 and define pn∗, n∈[N] as in equation (28). Then, Pn∗≡qn for n∈[N] with
In the interval (−∞,q1), the quantity is maximized at y=θ0∗=fmin(t), and its maximum value is 0. In interval [qn,qn+1), the quantity is maximized at y=θn∗ (contained in the interval as shown in Proposition 6), and its maximum value is 0. In interval (qN−1,∞), the quantity is maximized at y=θN∗=fmax(t), and its maximum value is 0. Since P^y^* only puts mass on the points {θn∗}n=0N, O\left((P_n^*)_{n=1}^N, P^y^*\right) = \max_{P^y} O\left((P_n^*)_{n=1}^N, P^y\right) = C = -\sum_{n=1}^{N-1}(\tau_{n+1} - \tau_n) V_n^* \leq 0.
Next, O\left((P_n^*)_{n=1}^N, P^y^*\right) = \min_{P_n \in \mathcal{P}(\mathbb{R}), n \in [N]} O\left((P_n)^N_{n=1}, P^y^*\right) follows directly from the propri-
ety of ρτ and the fact that qn is τn-level quantile of P^y^*.
Putting all these together, the omniprediction error bound for Algorithm 7 is the following:
We conclude the section by comparing the two algorithms in terms of time complexity, quantile crossing, and omniprediction error bound.
Time complexity. The time complexity of Algorithm 6 is O(NB) per time step. Algorithm 7 is more complicated, where the main computational bottleneck lies in computing Vn∗ and θn∗ for each n∈[N−1] (see Equation (27)). A naive computation of the minimizers {θn∗} requires O(N3B2) per each time step. Appendix B.2 introduces a subroutine that computes all {θn∗} and {Vn∗} in O(KlogK+NB) time, where K is the number of unique values in {fbn(t)}b,n, by exploiting the structure of (Vn∗)n=0.
Quantile crossing. Due to Proposition 6, quantile forecasts from Algorithm 7 do not exhibit quantile crossing. On the other hand, Algorithm 6 does not guarantee such a property, and post-sorting the resulting quantile does not always decrease the loss. Appendix E provides examples where post-sorting rather increases the loss.
Omniprediction error bound. Comparing the omniprediction error bound (26) and (29), we notice that the former bound is a function of the error of base forecasters, ρn(fbn(t),Yt), while the latter bound is a function of relative error of two-player game based algorithm output with respect to base forecasters, ρn(qnG(t),Yt)−ρn(fbn(t),Yt). This suggests that the two-player based algorithm would achieve a better omniprediction error for harder prediction tasks since the error of base forecasters is likely to be larger compared to the relative error.
D Experiment details and additional plots
D.1 Experiment details
During the pandemic, the United States Center for Disease Control and Prevention solicited forecasts of future disease outcomes from research groups throughout the country [CHW +22]. In our empirical illustration of our method, we focus in particular on forecasts of the future number of people that will be hospitalized with Covid-19 on a given day. Below is the detailed information about the data:
• Horizon: 1, 2, 3, 4 weeks ahead
• Location (total 52): 51 state-level series (50 states + DC) and the U.S. aggregate series
We choose the grid spacing for each region so that the resulting discretization yields sufficiently fine resolution across time series based on their respective ranges. In particular, this choice ensures more than 500 grid points for all 208=52×4 time series, and more than 1,000 grid points for over 150 time series. The corresponding grid spacing used for each region is as follows:
• RI, ND, AK, VT, WY: 2
• NM, ID, NE, WV, HI, NH, ME, DE, SD: 5
• OR, UT, NV, IA, KS, MS, MT, DC: 10
• VA, WA, AZ, TN, MA, IN, MO, MD, CO, WI, MN, SC, AL, LA, KY, OK, CT, AR: 20
• PA, IL, OH, GA, NC, MI, NJ: 50
• CA, TX, FL, NY: 100
• US: 500
D.2 Additional plots
Figure 6 compares quantile forecasts for US-agg hospitalizations. During the pandemic, COVIDhub-Ens was constructed as a weighted average of the quantile estimates of the base forecasters, whereas JHUAPL-SLPEns was obtained by first constructing predictive distributions and then averaging the resulting CDFs [Mul24]. Hedge-QL also aggregates quantile estimates via weighted averaging. It is well-known that averaging quantile forecasts produces sharper intervals than averaging predictive distributions [LJGCW13]. Consistent with this, COVIDhub-Ens and Hedge-QL produce relatively sharp prediction bands, whereas JHUAPL-SLPEns yields wider intervals. Interestingly, although our algorithm only uses quantile forecasts, it produces intervals that are slightly wider than those of COVIDhub-Ens and Hedge-QL, yet noticeably sharper than JHUAPL-SLPEns, while still closely tracking the observed trajectory.
Figure 7, analogous to Figure 4, shows how the performance of Hedge-QL varies with the learning rate. The figure shows the realized total omni-error and total quantile loss realized by Hedge-QL for 1- to 4-week-ahead horizons on the US-agg data with learning rate constants cH∈{10i/4∣i=−4,…,12}. In addition, the bottom row shows that the quantile crossing of quantile estimates of Hedge-QL could be substantial, especially for large cHs. Our algorithm, by construction, never produces crossings.
Figure 8 shows the effect of the grid resolution, which determines the trade-off between the computational cost of our algorithm (Proposition 1) and the granularity of its predictions. Across all four horizons, the total quantile loss of our algorithm with a fixed learning rate constant cO varies little with the grid unit. This indicates that a coarse grid, and hence a small m, suffices in practice: the accuracy of our method is largely insensitive to this discretization choice.
Lastly, Figure 9 summarizes performance of all algorithms, including 18 base forecasters using standardized ranks. Models in the column of the figure are ordered by their first-quartile performance (lowest quartile of standardized rank), with higher placement indicating better performance. Besides
(a) 1-week-ahead prediction.
(b) 4-week-ahead prediction.
Figure 6: Quantile forecasts for US-agg weekly COVID-19 hospitalizations at 1-week-ahead and 4-week-ahead horizons. The learning rate for *Hedge-QL and *Our algorithm is selected to achieve the best total omni-error. The black curve shows the observed hospitalizations. The blue shaded regions show nested quantile prediction bands: darker regions correspond to more central quantile intervals, while lighter regions correspond to wider intervals.
COVIDhub-Ens
JHUAPL-SLPEns
*Our alg.
Hedge-QL
Learning rate (log(c_H))
Learning rate (log(c_H))
Learning rate (log(c_H))
Figure 7: Sensitivity of Hedge-QL to the choice of learning rate. Each panel shows the performance of Hedge-QL as a function of the learning rate (green curve) as measured by the total omni-error (top row) or total quantile loss relative to best base forecaster (middle row) on the US-agg data. Panels from left to right shows results at one to four week time horizons, while horizontal lines indicate the performance of *Our algorithm and the two baseline ensembles. Lower values indicate better performance. The bottom row shows the percentage of time steps at which the quantile estimates of Hedge-QL exhibit quantile crossing.
Figure 8: Sensitivity of our algorithm to the grid resolution. Each panel shows the total quantile loss relative to the best base forecaster on the US-agg data as a function of the grid unit {1000,500,250,100,50,25} (a smaller unit yields a larger grid size m). Lower values indicate better performance.
Figure 9: Distribution of standardized ranks of instantaneous quantile loss across all (horizon, location, time) tuples for the 51 state-level series. For each tuple, we rank the available forecasts by quantile loss and normalize the ranks to [0,1]. The colored segments represent the empirical distribution of ranks grouped into quartiles.
*Our algorithm and *Hedge-QL, multiple instances of our algorithm with a fixed learning rate are ranked higher than COVIDHUB-Ens and JHUAPL-SLPEns as well as all of the base forecasters. In particular, the both the first and third quartile of standardized ranks of all instances of our algorithm are comparable to or higher than the two ensemble models. This implies that our method, for a wide range of learning rates, can be viewed as better and more robust model compared to existing ensemble models, COVIDHUB-Ens and JHUAPL-SLPEns.
E The effect of post-sorting on proper loss functions
Prior work [FKM +23] showed that post-sorting never increases the loss for unweighted sums of pinball losses at different quantile levels. Unfortunately, the same does not hold for weighted sums of pinball losses. We present two results in this section. First, for a class of weighted sums of pinball losses at two quantile levels, we fully characterize the conditions under which post-sorting always decreases the loss. Conversely, when these conditions fail, there exists an instance (Y,x1,x2) for which post-sorting increases the loss. Second, we present a subclass of loss functions where post-sorting does not increase the loss.
Define the pinball loss at quantile level τ as ρτ(x):=τx1{x≥0}+(1−τ)∣x∣1{x<0}=(τ−1{x<0})x.
Proposition 7. For (α,β)∈(0,1)2 with α<β, define a weighted quantile loss as
ℓ(x1,x2):=EY[wαρα(Y−x1)+wβρβ(Y−x2)].
If (wα,wβ) satisfies one of the following conditions, then post-sorting does not increase the loss:
wα=wβ
wα<wβ and (1−α)wα≥(1−β)wβ
wα>wβ and βwβ≥αwα.
Conversely, if (wα,wβ) does not satisfy any of the above conditions, then there exists (Y,x1,x2) such that post-sorting increases the loss.
Proof. Choose any x1>x2. The loss before post-sorting is ℓ(x1,x2) and the loss after post-sorting is ℓ(x2,x1).
Denote the coefficient of wα,wβ as cα,cβ respectively. Notice that cα+cβ=(β−α)(x1−x2)>0. Therefore ℓ(x1,x2)−ℓ(x2,x1)>0 if wα=wβ (Condition I).
Now, we consider Condition II: wα<wβ and (1−α)wα≥(1−β)wβ. Denote A=P(Y<x2), B=P(x2≤Y<x1) and observe that EY1{x2≤Y<x1}(x1−Y)∈[0,B(x1−x2)]. Then the difference in loss is written as:
Note that the second inequality used βwβ−αwα≥wβ−wα which follows from Condition II and A+B=P(Y<x1)≤1. Condition III can be proved in a similar manner.
Next, we prove that there exists (Y,x1,x2) such that post-sorting increases the loss if (wα,wβ) does not satisfy any of three conditions. First consider the case wα<wβ and (1−α)wα<(1−β)wβ. Let Y≡x2 almost surely. Then A=0, B=1, and EY1{x2≤Y<x1}(x1−Y)=x1−x2. Therefore,
Therefore, post-sorting increases the loss. Next, consider the case where wα>wβ and βwβ<αwα. Let Y≡x1 almost surely. Similar calculation shows that post-sorting increases the loss.
We prove another subclass of proper loss functions where post-sorting does not increase the loss. From Theorem 1 and Theorem 2, a proper loss for multiple quantile levels can be written as the following form under mild regularity conditions:
where gn is a non-decreasing left-continuous function, for n∈[N].
Proposition 8. If a loss function ℓ defined as (30) satisfies gn(x)=g(x) for all i∈[N], then post-sorting does not increase the loss.
Proof. Due to additivity of the loss function, it suffices to show ℓ(x1,x2,y)−ℓ(x2,x1,y)≥0 for x1>x2 where xn corresponds to the τn-level quantile estimate.
Now using the fact that g1≡g2≡g, most of the terms cancel out and we have
ℓ(x1,x2)−ℓ(x2,x1)=(τ2−τ1)(g(x1)−g(x2))≥0.
☐
F Additional details
F.1 Regularity conditions
This subsection provides details of the regularity conditions in Theorem 2. In Proposition 4.2 in [FZ16], the conditions are stated in terms of the identification function V and its expectation over Y, Vˉ (see Definition 2.2 in [FZ16]). For the τ-level quantile functional, the identification function on q,y∈[0,1] and F a cdf supported on [0,1] is as follows:
V(q,y)=1(y≤x)−τandVˉ(q,F):=EY∼FV(q,Y)=F(q)−τ.
For multiple quantile levels, {τn}n=1N, the identification function is as follows:
We now state the regularity conditions for Theorem 2. The conditions are referred to as (V1), (V3), (V4), (VS1), (S2), and (F1) in [FZ16]. Among these, it is straightforward to check that (V1), (V3), (V4), and (F1) hold for quantile functionals. We state the remaining conditions (S2) and (VS1), which are conditions on the loss function, below.
Assumption (S2) For every continuously differentiable cumulative distribution function F supported on [0,1], the function ℓˉ(⋅,F):=EY∼Fℓ(⋅,Y) is continuously differentiable, and its gradient is locally Lipschitz continuous. Furthermore, ℓˉ(⋅,F) is twice continuously differentiable at (xn)n=1N=(qτn(F))n=1N.
F.2 Omniprediction for multi-horizon forecast
We note that our omniprediction framework can be extended to multi-horizon prediction task, where the ground truth Yt and base forecasters' predictions fbn(t) are not scalars but vectors. By denoting such vector ground truth and vector predictions as Yt=(Yt,1,...,Yt,H) and fbn(t)=(fbn(t,1),...,fbn(t,H)), respectively, we can define the omniprediction objective for multiple-horizon prediction as
which means we want to minimize the maximum of regret for each horizon rather than the average of regret over all horizons, which is commonly used in practice. Then, with Algorithm 1 in hand, the task reduces into solving the following minimax program:
and this reduces into solving H minimax program of form (9), solution of which is provided in Theorem 3, separately for each horizon. Therefore, running Algorithm 1 for each horizon separately, and combining the solutions together, will solve the omniprediction problem for multiple-horizon prediction.
F.3 Regret bound of Hedge algorithm
We provide the well-known regret bound of the Hedge algorithm, which is used frequently applied in the proofs of this paper.
Theorem 7 (Regret of Hedge (e.g., Theorem 1.5 of [Haz19])). Consider an online learning problem with B experts receiving bounded losses {ℓb(t)}b∈[B],t∈[T].
Suppose that at time step t we make the same prediction as expert i with probability