Prediction-Powered Inference Beyond Convex Losses

statisticsmachine learning

A zero population gradient can identify a local maximum or another stationary point when the loss is nonconvex. Inference on a global minimizer therefore requires a comparison of risks. The minimizer’s risk is no larger than the risk at any admissible benchmark, which gives an inequality that can be tested directly.

The exposition below is based on Section 4.1 of Angelopoulos et al. (2023). The authors use predictions to estimate both sides of this comparison. They choose a benchmark on one part of the unlabeled sample and evaluate it on the remaining observations. A parameter value is retained when a lower confidence bound for its risk does not exceed an upper confidence bound for the benchmark’s risk. At a population minimizer, rejection requires at least one of these bounds to fail.

1. Risk minimization and the benchmark

Let \(\Theta\) be a parameter space and let \(\ell_\theta(x,y)\) be a measurable loss. Define

\[ L(\theta)\triangleq\mathbb{E}[\ell_\theta(X,Y)], \qquad L^f(\theta)\triangleq\mathbb{E}[\ell_\theta(X,f(X))], \qquad \Delta(\theta)\triangleq L(\theta)-L^f(\theta). \tag{1}\]

Assume these expectations are finite at every parameter used below, and fix a population minimizer \(\theta^*\in\arg\min_{\theta\in\Theta}L(\theta)\). Neither convexity of the loss nor convexity of \(\Theta\) is required.

Observe an independent and identically distributed labeled sample \((X_i,Y_i)_{i=1}^n\) from \(P\) and an independent unlabeled sample whose observations are independent and identically distributed according to \(P_X\). Hold the prediction rule \(f\) fixed, or condition on independent training data. Split the unlabeled sample into a selection sample \(\mathcal U_1\) of size \(N_1\) and an evaluation sample \(\mathcal U_2\) of size \(N_2\).

Let \(\mathcal F_1\) denote the information in the selection sample and any independent training data. Choose a measurable benchmark \(b\in\Theta\) using only \(\mathcal F_1\). The paper uses a minimizer of predicted empirical loss,

\[ b\in\arg\min_{\theta\in\Theta} \frac1{N_1}\sum_{j\in\mathcal U_1}\ell_\theta(\widetilde X_j,f(\widetilde X_j)). \]

An approximate minimizer, or any other \(\mathcal F_1\)-measurable choice, also suffices for coverage. Conditional on \(\mathcal F_1\), the benchmark is fixed and the evaluation observations retain their sampling distributions.

Estimate the two components of the risk identity by

\[ \widetilde L^f(\theta)\triangleq\frac1{N_2}\sum_{j\in\mathcal U_2} \ell_\theta(\widetilde X_j,f(\widetilde X_j)), \qquad \widehat\Delta(\theta)\triangleq\frac1n\sum_i \{\ell_\theta(X_i,Y_i)-\ell_\theta(X_i,f(X_i))\}. \tag{2}\]

Write \(E_f(\theta)\triangleq\widetilde L^f(\theta)-L^f(\theta)\) for the error in estimating the predicted risk. Then

\[ L(\theta)=\widetilde L^f(\theta)+\Delta(\theta)-E_f(\theta). \tag{3}\]

The minus sign on \(E_f\) determines which one-sided bound is needed in the coverage proof.

2. Coverage from four one-sided bounds

Fix \(0<\delta<\alpha<1\). Let \(R^l(\theta)\) and \(R^u(\theta)\) be lower and upper bounds for \(\Delta(\theta)\), and let \(T^l(\theta)\) and \(T^u(\theta)\) bound \(E_f(\theta)\).

Assumption 1. (Conditional one-sided coverage.) Conditional on \(\mathcal F_1\), the following inequalities hold almost surely:

\[ \begin{aligned} \mathbb P\{R^l(\theta^*)\le\Delta(\theta^*)\mid\mathcal F_1\}&\ge1-\delta/2,\\ \mathbb P\{\Delta(b)\le R^u(b)\mid\mathcal F_1\}&\ge1-\delta/2,\\ \mathbb P\{E_f(\theta^*)\le T^u(\theta^*)\mid\mathcal F_1\}&\ge1-(\alpha-\delta)/2,\\ \mathbb P\{T^l(b)\le E_f(b)\mid\mathcal F_1\}&\ge1-(\alpha-\delta)/2. \end{aligned} \tag{4}\]

These are the four bounds needed at the target and benchmark. They can be obtained from bounds valid for every fixed parameter value under the conditional sampling distribution. Sample splitting permits evaluating such a bound at \(b\): after conditioning, the selected benchmark is fixed independently of the labeled and evaluation samples.

Define the lower and upper risk bounds

\[ \underline L(\theta)\triangleq\widetilde L^f(\theta)+R^l(\theta)-T^u(\theta), \qquad \overline L(\theta)\triangleq\widetilde L^f(\theta)+R^u(\theta)-T^l(\theta). \tag{5}\]

Theorem 2. (Coverage of a risk minimizer.) Under Assumption 1, the set

\[ \begin{aligned} C_\alpha &\triangleq\{\theta\in\Theta:\underline L(\theta)\le\overline L(b)\}\\ &=\left\{\theta\in\Theta:\widetilde L^f(\theta) \le\widetilde L^f(b)-R^l(\theta)+R^u(b)+T^u(\theta)-T^l(b)\right\} \end{aligned} \tag{6}\]

satisfies \(\mathbb P(\theta^*\in C_\alpha\mid\mathcal F_1)\ge1-\alpha\) almost surely. Consequently, \(\mathbb P(\theta^*\in C_\alpha)\ge1-\alpha\).

Proof. Conditional on \(\mathcal F_1\), the probability that at least one event in the four bounds fails is at most

\[ \frac\delta2+\frac\delta2 +\frac{\alpha-\delta}2+\frac{\alpha-\delta}2=\alpha. \]

On the event that all four bounds hold, the risk decomposition and population optimality give

\[ \underline L(\theta^*)\le L(\theta^*)\le L(b)\le\overline L(b). \tag{7}\]

Thus \(\theta^*\in C_\alpha\) on this event. Taking expectations of the conditional coverage inequality proves the unconditional statement. \(\square\)

All four bounds can be dependent. For example, the labeled sample is used at both \(\theta^*\) and \(b\). The union bound controls their combined failure probability. Selecting \(b\) with the evaluation sample would require confidence bounds that remain valid after that selection, such as simultaneous bounds over the possible benchmarks.

The theorem covers each specified population minimizer. If the target is the entire set of minimizers, the bounds at the minimizers must hold jointly over that set. The benchmark’s quality affects how many other parameters can be excluded. Let

\[ \eta\triangleq L(b)-L(\theta^*)\ge0. \]

With exact risk evaluation, the comparison retains precisely the sublevel set \(\{\theta:L(\theta)-L(\theta^*)\le\eta\}\). A benchmark with small excess risk therefore permits a more informative comparison, while the inequality protecting \(\theta^*\) holds for every admissible benchmark.

3. Bounded losses

Suppose a known constant \(B>0\) bounds both the observed and predicted losses:

\[ 0\le\ell_\theta(X,Y)\le B, \qquad 0\le\ell_\theta(X,f(X))\le B \]

almost surely, for every \(\theta\in\Theta\). Conditional on \(\mathcal F_1\), each labeled rectifier summand lies in \([-B,B]\). Hoeffding’s one-sided inequality gives

\[ \mathbb P\{\widehat\Delta(\theta)-\Delta(\theta)>t\mid\mathcal F_1\} \le\exp\{-nt^2/(2B^2)\}. \]

The same bound applies to the opposite tail. Each predicted loss lies in \([0,B]\), so

\[ \mathbb P\{\widetilde L^f(\theta)-L^f(\theta)>t\mid\mathcal F_1\} \le\exp\{-2N_2t^2/B^2\}, \]

with the same bound for its opposite tail. Set

\[ r_\Delta\triangleq B\sqrt{\frac{2\log(2/\delta)}n}, \qquad r_f\triangleq B\sqrt{\frac{\log\{2/(\alpha-\delta)\}}{2N_2}}. \tag{8}\]

Then \(R^l=\widehat\Delta-r_\Delta\), \(R^u=\widehat\Delta+r_\Delta\), \(T^l=-r_f\), and \(T^u=r_f\) satisfy Assumption 1. Each radius assigns the required probability to one tail.

Corollary 3. (Bounded-loss confidence set.) Under the sampling and boundedness conditions above, put \(\widehat L^{\mathrm{PP}}(\theta)\triangleq\widetilde L^f(\theta)+\widehat\Delta(\theta)\). The set

\[ C_\alpha=\left\{\theta\in\Theta: \widehat L^{\mathrm{PP}}(\theta)-\widehat L^{\mathrm{PP}}(b) \le2r_\Delta+2r_f\right\} \tag{9}\]

covers \(\theta^*\) with probability at least \(1-\alpha\), conditional on \(\mathcal F_1\) and unconditionally.

Proof. Substituting the four bounds into the risk-comparison set gives the displayed inequality. Theorem 2 supplies its coverage. \(\square\)

The two copies of each radius account for uncertainty at \(\theta\) and at the benchmark \(b\). Testing more parameter values does not increase the error budget needed to cover the fixed \(\theta^*\): the proof uses the bounds for \(\theta\) only at \(\theta^*\). For example, the loss \(\ell_\theta(y)=\mathbf1\{y\ne\theta\}\) on a finite outcome space is bounded by \(B=1\). Its risk is \(1-\mathbb P(Y=\theta)\), so the construction covers any specified population mode.

4. Paired risk differences

Separate bounds at \(\theta\) and at the benchmark \(b\) can be conservative when their estimation errors are positively correlated. Conditioning on \(\mathcal F_1\), define

\[ D_\theta(X,Y)\triangleq\ell_\theta(X,Y)-\ell_b(X,Y), \qquad D_\theta^f(X)\triangleq\ell_\theta(X,f(X))-\ell_b(X,f(X)). \]

Their expectations satisfy

\[ L(\theta)-L(b)=\mathbb{E}[D_\theta-D_\theta^f\mid\mathcal F_1] +\mathbb{E}[D_\theta^f\mid\mathcal F_1]. \]

The corresponding corrected difference is

\[ \widehat d(\theta)\triangleq\frac1n\sum_i \{D_\theta(X_i,Y_i)-D_\theta^f(X_i)\} +\frac1{N_2}\sum_{j\in\mathcal U_2}D_\theta^f(\widetilde X_j). \tag{10}\]

When the summands have finite second moments, independence of the evaluation samples gives

\[ \operatorname{Var}(\widehat d(\theta)\mid\mathcal F_1) =\frac{\operatorname{Var}(D_\theta-D_\theta^f\mid\mathcal F_1)}n +\frac{\operatorname{Var}(D_\theta^f\mid\mathcal F_1)}{N_2}. \tag{11}\]

To see the effect of pairing, write \(E_a\triangleq\ell_a(X,Y)-\ell_a(X,f(X))\). The labeled variance becomes

\[ \operatorname{Var}(E_\theta-E_b\mid\mathcal F_1) =\operatorname{Var}(E_\theta\mid\mathcal F_1) +\operatorname{Var}(E_b\mid\mathcal F_1) -2\operatorname{Cov}(E_\theta,E_b\mid\mathcal F_1). \]

Prediction errors shared by the two risk estimates reduce the variance of their difference. A direct bound for this difference can use that covariance.

Proposition 4. (Coverage from a risk difference.) Suppose \(\underline d(\theta)\) satisfies

\[ \mathbb P\{\underline d(\theta^*)\le L(\theta^*)-L(b)\mid\mathcal F_1\} \ge1-\alpha. \]

Then \(C_\alpha^{\mathrm{diff}}\triangleq\{\theta\in\Theta:\underline d(\theta)\le0\}\) covers \(\theta^*\) with conditional probability at least \(1-\alpha\).

Proof. On the event in the hypothesis, \(\underline d(\theta^*)\le L(\theta^*)-L(b)\le0\), so the target belongs to the reported set. \(\square\)

This follows directly from the risk inequality. A normal lower bound based on the paired variance requires a central limit theorem and a consistent variance estimator. If the benchmark changes with the sample sizes, those conditions must hold along the resulting sequence; conditional independence alone does not establish that approximation.

5. A nonconvex example

Take \(\Theta=\mathbb R\) and \(\ell_\theta(Y)=(\theta^2-Y)^2\), with \(\mathbb{E}[Y^2]<\infty\) and \(\mu\triangleq\mathbb{E}[Y]>0\). Expanding the risk gives

\[ L(\theta)=\theta^4-2\mu\theta^2+\mathbb{E}[Y^2], \qquad L'(\theta)=4\theta(\theta^2-\mu). \tag{12}\]

The stationary points are \(0\) and \(\pm\sqrt\mu\). Since

\[ L(\theta)-L(\sqrt\mu)=(\theta^2-\mu)^2, \]

only \(\pm\sqrt\mu\) minimize the risk. At zero, \(L''(0)=-4\mu<0\) and the excess risk is \(\mu^2\). The observation-level derivative \(4\theta(\theta^2-Y)\) is identically zero at \(\theta=0\). A test based solely on this derivative has no information with which to exclude zero.

The risk difference has a simpler form. For a benchmark \(b\) fixed by \(\mathcal F_1\),

\[ D_\theta(Y)=(\theta^2-b^2)(\theta^2+b^2-2Y), \qquad D_\theta-D_\theta^f=-2(\theta^2-b^2)\{Y-f(X)\}. \tag{13}\]

The squared outcomes cancel when the two losses are subtracted. If \(\mathbb{E}[f(X)^2]<\infty\), the paired difference can therefore be estimated using the corrected mean

\[ \widehat\mu^{\mathrm{PP}}\triangleq \frac1{N_2}\sum_{j\in\mathcal U_2}f(\widetilde X_j) +\frac1n\sum_i\{Y_i-f(X_i)\}. \]

Substitution into the paired estimator yields

\[ \widehat d(\theta)=(\theta^2-b^2)(\theta^2+b^2-2\widehat\mu^{\mathrm{PP}}), \]

and

\[ \operatorname{Var}(\widehat d(\theta)\mid\mathcal F_1) =4(\theta^2-b^2)^2 \left\{\frac{\operatorname{Var}(Y-f(X))}{n} +\frac{\operatorname{Var}(f(X))}{N_2}\right\}. \tag{14}\]

Thus second moments suffice for the paired variance, even though a variance calculation for each separate squared loss can require fourth moments.

A confidence interval for \(\mu\) also gives a lower bound for every risk difference. Suppose \([a,u]\) covers \(\mu\) with conditional probability at least \(1-\alpha\), and put \(c_\theta\triangleq\theta^2-b^2\). Minimizing \(c_\theta(\theta^2+b^2-2m)\) over \(m\in[a,u]\) gives

\[ \underline d(\theta)= \begin{cases} c_\theta(\theta^2+b^2-2u),&c_\theta\ge0,\\ c_\theta(\theta^2+b^2-2a),&c_\theta<0. \end{cases} \tag{15}\]

On the single event \(\mu\in[a,u]\), this bound is valid for all \(\theta\). The set \(\{\theta:\underline d(\theta)\le0\}\) consequently contains both population minimizers on that event. The normal mean interval from the companion post, computed with the evaluation sample size \(N_2\), supplies asymptotic coverage under its stated moment and variance conditions. The deterministic implication remains valid for any benchmark selected independently of these evaluation observations.

For a benchmark with \(b^2=\mu\), the lower bound at zero is \(\mu(2a-\mu)\). If the mean interval shrinks to \(\mu\), this converges to the positive risk gap \(\mu^2\), so zero is eventually excluded with probability approaching one. The comparison can therefore distinguish a global minimizer from a stationary point whose score is identically zero.

All sets above are defined over \(\Theta\). An approximate benchmark preserves the inequality \(L(\theta^*)\le L(b)\) used in the proof. Approximating the confidence set requires separate care: an implementation should return a set containing all parameter values accepted by the defining inequality, or establish a bound on the numerical approximation error.

Angelopoulos, Anastasios N., Stephen Bates, Clara Fannjiang, Michael I. Jordan, and Tijana Zrnic. 2023. “Prediction-Powered Inference.” arXiv. http://arxiv.org/abs/2301.09633.

← All posts