betaFeedback

WorksComputer Science

A Hierarchy of Risk Certificates for Representation-Based Prediction

Abstract

Representation-based prediction underlies many machine-learning systems. Yet a fitted predictor's failure to meet an accuracy requirement does not establish that its representation-decoder class cannot meet it. We study optimal population mean squared error (MSE) over Lipschitz decoders acting on a fixed representation. For blocks of b≥2b\geq2 independent and identically distributed (iid) observations, we minimize total squared error (normalized by b−1b-1) under pairwise Lipschitz constraints. We prove that expected block scores form nondecreasing lower bounds on optimal class risk and converge to that risk on compact metric feature spaces, although no fixed block size provides a uniform relative guarantee. Verified dual lower bounds and iid calibration observations independent of model development, with bounded targets and predictions, yield simultaneous lower confidence bounds on optimal class risk and upper confidence bounds on fitted-predictor risk. These bounds can establish that every admissible decoder exceeds a prescribed MSE threshold or that an admissible fitted predictor meets it. Controlled experiments illustrate population-risk certification; fixed PTB-XL and Bike Sharing experiments provide deterministic empirical-risk conclusions. The results support principled assessment and selection of representation-decoder configurations. Efficient certification at scale and extensions to dependent observations remain open problems.

Introduction

Many prediction systems transform their inputs into feature representations and fit decoders to those features. A fitted predictor may have population mean squared error (MSE) above a prescribed threshold even when another decoder in the same representation-decoder class meets that threshold. We study the infimum of population MSE over decoders using a fixed representation and satisfying a prescribed Lipschitz constraint. We construct a hierarchy of lower bounds on this optimal class risk. If a certified lower bound exceeds the prescribed threshold, no decoder in the class can meet the requirement. In industrial predictive maintenance, such a certificate could motivate revising the sensor-history representation or decoder constraint used to forecast a machine-condition indicator rather than fitting further decoders within the excluded class. To illustrate the exclusion mechanism, consider the representation Γ(x)=(∣x1∣,∣x2∣)\Gamma(x) = (|x_1|, |x_2|) of a two-observation history x=(x1,x2)x = (x_1, x_2). Suppose the histories (−1,1)(-1,1) and (1,−1)(1,-1) each occur with probability 1/21/2, with respective deterministic targets 11 and −1-1. Both histories have representation (1,1)(1,1), so every decoder assigns them the same prediction cc. Its population MSE is

(1−c)2+(−1−c)22=1+c2≥1.\frac{(1-c)^2 + (-1-c)^2}{2} = 1 + c^2 \ge1.

©2026 Mohit Kumar and Somayeh Kargaran.

License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.

No decoder using this representation can meet an MSE threshold below one. Even without identical feature values, a Lipschitz constraint limits prediction differences between nearby feature vectors. If their targets differ by more than this limit, their two squared errors cannot both be zero. Our hierarchy applies these constraints jointly to blocks of independent and identically distributed (iid) observations.

Class risk and threshold decisions. Let XX be the observed history, YY the scalar prediction target, and U=Γ(X)U = \Gamma(X) the representation in a feature space U\mathcal{U} with a prescribed pseudometric dd. Assume that YY lies almost surely in a known bounded interval I=[y−,y+]I = [y_{-}, y_{+}]. For κ≥0\kappa\ge0, let Gκ(d)\mathcal{G}_{\kappa}(d) be the class of measurable decoders g:U→Ig : \mathcal{U} \to I satisfying ∣g(u)−g(v)∣≤κd(u,v)|g(u) - g(v)| \le\kappa d(u,v) for all u,v∈Uu,v \in\mathcal{U}. Under the specified evaluation law, define

R(g)=E[(Y−g(Γ(X)))2],Rκ∗=inf⁡g∈Gκ(d)R(g).R(g) = \mathbb{E}[(Y - g(\Gamma(X)))^2], \qquad R_{\kappa}^{*} = \inf_{g \in\mathcal{G}_{\kappa}(d)} R(g).

The optimal class risk Rκ∗R_{\kappa}^{*} depends on the representation, feature pseudometric, Lipschitz bound, and evaluation law. It therefore measures the capability of the specified representation-decoder class, not the predictive information in the representation alone. Let g^:U→I\widehat{g} : \mathcal{U} \to I be a measurable fitted decoder constructed using development data and fixed before calibration. For prespecified candidate classes and fitted decoders, we use independent iid calibration observations to construct simultaneous lower confidence bounds on optimal class risk and upper confidence bounds on fitted-predictor risk. These bounds incorporate conservative numerical estimates and prespecified failure-probability allocations. Writing the bounds as LL and UfitU_{\mathrm{fit}}, Theorem 6 establishes

L≤Rκ∗,R(g^)≤UfitL \le R_{\kappa}^{*}, \qquad R(\widehat{g}) \le U_{\mathrm{fit}}

simultaneously with probability at least 1−δ1 - \delta, without requiring g^\widehat{g} to satisfy the prescribed Lipschitz constraint. If g^∈Gκ(d)\widehat{g} \in\mathcal{G}_{\kappa}(d), these inequalities additionally give

L≤Rκ∗≤R(g^)≤Ufit.L \le R_{\kappa}^{*} \le R(\widehat{g}) \le U_{\mathrm{fit}}.

For a prespecified threshold τ\tau, the condition L>τL > \tau excludes every decoder in the class. If g^\widehat{g} is admissible, Ufit≤τU_{\mathrm{fit}} \le\tau establishes that the class meets the requirement. When neither conclusion is established, the certification decision remains unresolved. For a fixed dataset, verified optimization bounds concern the minimum empirical MSE on that dataset (Proposition 12).

The block hierarchy. For a block of b≥2b \ge2 iid feature–target observations, let TbT_b be the minimum total squared error under all pairwise Lipschitz constraints, divided by b−1b - 1. Writing Wb=E[Tb]W_b = \mathbb{E}[T_b], we prove

0≤W2≤W3≤⋯≤Rκ∗.0 \le W_2 \le W_3 \le\cdots\le R_{\kappa}^{*}.

On compact metric feature spaces, Wb→Rκ∗W_b \to R_{\kappa}^{*} as b→∞b \to\infty (Theorem 2). Thus, for each fixed problem and each τ<Rκ∗\tau< R_{\kappa}^{*}, some finite block size has Wb>τW_b > \tau. This convergence does not provide a uniform guarantee at any fixed block size: Wb/Rκ∗W_b/R_{\kappa}^{*} can be arbitrarily small across problems with Rκ∗>0R_{\kappa}^{*} > 0 (Proposition 3).

Computation and calibration. Evaluating the dual objective using numerical multipliers associated with selected pairwise Lipschitz constraints provides lower bounds on block minima and minimum empirical risk. These bounds remain valid without exact optimization (Proposition 4). We use these bounds in two calibration constructions. The first calibrates the expected block score from independent disjoint blocks using (16); the second calibrates optimal class risk from a lower bound on minimum empirical risk over all nn calibration observations using (17). The second construction can reuse block computations through (12), while retaining sample size nn in its confidence bound. In contrast, the first uses ⌊n/b⌋\lfloor n/b \rfloor independent blocks, so its confidence bound need not improve as bb increases. Before examining the calibration observations, we fix the candidate classes, fitted predictors, types of confidence bounds to be reported, and their failure-probability allocations. For direct block calibration, we also fix the block sizes and partitions. The simultaneous guarantees support threshold decisions and bounds on the minimum assigned cost among prespecified candidate classes (Corollary 8).

Relation to prior work. Existing work addresses Lipschitz regression ([7]), lower bounds based on sample-average optima ([15]), and confidence bounds on optimal population risk ([8, 16]). Let aba_b denote the minimum empirical MSE over a block of bb observations. Although E[ab]\mathbb{E}[a_b] is known to be nondecreasing with bb under iid sampling, this result does not establish monotonicity of our normalized block score Tb=bab/(b−1)T_b = ba_b/(b-1), because the factor b/(b−1)b/(b-1) decreases with bb. We prove that the expected normalized block scores are nevertheless nondecreasing and converge to optimal population class risk on compact metric feature spaces. We also establish that no fixed block size provides a uniform relative lower bound and develop class-risk certificates using verified optimization bounds and statistical calibration.

Empirical evaluation and scope. We evaluate representation–decoder classes based on Kernel Affine Hull Machines (KAHMs), raw histories, and Nystrom features. A finite-state experiment with a known evaluation distribution compares calibrated risk bounds with optimal population class risks. It also shows that a fitted predictor can meet the MSE threshold while violating the prescribed Lipschitz constraint. A separate feature-augmentation experiment examines how representation choice and calibration sample size affect class-exclusion and predictor-feasibility decisions. For the fixed PTB-XL dataset, a computed lower bound on minimum empirical MSE exceeds the prescribed threshold for the selected two-coordinate KAHM class with κ=1\kappa= 1. Consequently, no decoder in this class can meet the empirical MSE requirement, provided that the numerical upper bounds on feature distances are valid. For the fixed Bike Sharing dataset, feasible prediction vectors provide upper bounds on minimum empirical MSE that are below the corresponding thresholds for all 54 decoder classes formed from three prediction targets and 18 feature representations. Consequently, every class contains an admissible decoder that meets its empirical MSE requirement. However, in 39 of these classes, the empirical MSE of each of the two fitted predictors (the clipped affine ridge predictor and the clipped Lipschitz-extension predictor) exceeds the corresponding threshold. This finding shows that evaluating only fitted predictors can lead to the incorrect rejection of decoder classes that contain admissible predictors meeting the empirical MSE requirement. The PTB-XL and Bike Sharing results concern empirical MSE on the evaluated datasets and do not establish population-risk guarantees.

Related Work

Representations and prediction-risk bounds. Kernel Affine Hull Machines (KAHMs) construct features from local reconstruction models ([12, 13, 14]). Kumar and Kargaran (2026) derive lower confidence bounds on the minimum population root mean squared error when future feature vectors are predicted by linear maps with a prescribed spectral-norm bound. Their bounds use variation in future features among states sharing a reference label. In contrast, we study prediction of a common bounded scalar target from different fixed representations. We consider Lipschitz decoder classes defined by feature pseudometrics and derive a hierarchy of lower bounds on their optimal population MSE. The hierarchy is based on blockwise optimization under joint Lipschitz constraints, rather than bounds derived from variation in future feature vectors.

Lipschitz regression and pairwise error bounds. Gottlieb et al. [7] develop methods for Lipschitz regression in metric spaces, including approximate Lipschitz extensions and finite-sample prediction guarantees. In representation learning, Akash et al. [1] use a Lipschitz constraint to lower-bound the MSE of a predictor of an auxiliary continuous variable. Their bound relates differences in target values to the prediction differences permitted by the Lipschitz constraint. Our block optimization extends this pairwise comparison by enforcing the Lipschitz constraints jointly across all observations in a block. We establish the resulting hierarchy of expected lower bounds on optimal class risk (Theorem 2).

Sample-average minima and empirical variance. For stochastic optimization under iid sampling, Mak et al. [15] show that the expected minimum sample-average objective is a lower bound on the population optimum and is nondecreasing with sample size. If aba_b is the minimum empirical MSE for a block of bb observations, our normalized block score is Tb=bab/(b−1)T_b = ba_b/(b - 1). The factor b/(b−1)b/(b - 1) decreases with bb, so monotonicity of E[ab]\mathbb{E}[a_b] does not by itself establish monotonicity of E[Tb]\mathbb{E}[T_b]. We prove the latter property directly and characterize both the convergence of E[Tb]\mathbb{E}[T_b] to optimal class risk and the limitations of any fixed block size (Theorem 2 and Proposition 3). Belomestny et al. [3] analyze the excess population variance of functions chosen by empirical variance minimization. Our block score also equals the minimum sample variance of the residuals Yi−g(Ui)Y_i - g(U_i) over admissible Lipschitz decoders, using denominator b−1b - 1 (proof of Theorem 2). We use the expected minimum sample variance to lower-bound optimal population MSE, rather than to bound the excess variance of an empirically selected decoder.

Confidence bounds on optimal class risk. Guigues et al. [8] develop non-asymptotic confidence bounds on optimal values in stochastic optimization. Müller et al. [16] investigate lower bounds on minimum model-class risk and establish fundamental limitations of distribution-free empirical model falsification. We consider prescribed representation-decoder classes with bounded squared loss and Lipschitz constraints. Our normalized block optimization provides a hierarchy of lower bounds on optimal population class risk. Verified evaluation of the dual objective gives lower bounds on block and full-sample empirical minima without requiring exact optimization. Under independent iid calibration, Theorem 6 converts these numerical bounds into simultaneous lower confidence bounds on optimal population class risk.

Risk control and candidate-class selection. Angelopoulos et al. [2] use multiple testing to control the risks of selected prediction procedures, while Jiang et al. [10] use statistical tests to select state abstractions in model-based reinforcement learning. Our class-exclusion decision instead asks whether the minimum population MSE over a prescribed decoder class exceeds the required threshold. An upper confidence bound on the risk of an admissible fitted decoder can establish that its class meets the threshold. For finitely many prespecified candidate classes with assigned costs, the simultaneous bounds also give lower and upper bounds on the minimum cost of meeting the threshold, without requiring the classes to be nested (Corollary 8).

Prediction Risk and Representation Adequacy

Prediction task and evaluation law. Let X∈XX \in\mathcal{X} denote the observed history available at prediction time, and let YY denote the scalar future observation to be predicted. A measurable representation Γ:X→U\Gamma: \mathcal{X} \to\mathcal{U} maps the history to a feature vector U=Γ(X)U = \Gamma(X), where U\mathcal{U} is the feature space. Model development specifies the representation Γ\Gamma, a feature pseudometric dd, and a Lipschitz bound κ≥0\kappa\ge0 that constrains the admissible decoders defined below. We call the specified joint distribution of the prediction-time history XX and its future target YY the evaluation law. A decoder’s population risk is its expected squared prediction error under this law. The blockwise population-risk results use independent and identically distributed feature-target observations from the specified joint distribution. The confidence bounds in § 5 additionally require the evaluation observations to be independent of model-development data. The representation, feature metric, Lipschitz bound, and fitted predictor are selected using the development data and treated as fixed when computing the confidence bounds.

Allowed predictors and their risk. We equip the feature space U\mathcal{U} with a measurable, finite-valued pseudometric dd. It is nonnegative, symmetric, satisfies the triangle inequality, and obeys d(u,u)=0d(u,u)=0. Unlike a metric, a pseudometric may assign zero distance to distinct feature values. We assume that the target YY lies almost surely in a known finite interval I=[y−,y+]I = [y_-,y_+]. Let D=y+−y−>0D = y_+ - y_- > 0 and B=D2B = D^2. We exclude D=0D = 0, for which the target and all admissible predictions are constant and every squared prediction error is zero. For a prescribed Lipschitz bound κ≥0\kappa\ge0, we define the admissible decoder class and its prediction risks by

Gκ(d)={g:U→I measurable:∣g(u)−g(v)∣≤κd(u,v) for all u,v},(1)\mathcal{G}_{\kappa}(d) = \{g : \mathcal{U} \to I\ \text{measurable} : |g(u)-g(v)| \le\kappa d(u,v)\ \text{for all }u,v\}, \tag*{(1)}
R(g)=E[(Y−g(Γ(X)))2],Rκ∗=inf⁡g∈Gκ(d)R(g).(2)R(g) = \mathbb{E}[(Y-g(\Gamma(X)))^2], \qquad R_{\kappa}^{*} = \inf_{g\in\mathcal{G}_{\kappa}(d)} R(g). \tag*{(2)}

The Lipschitz constraint requires every admissible decoder to assign the same prediction to feature values at zero distance. Here, R(g)R(g) denotes the population mean squared error of an individual decoder, whereas Rκ∗R_{\kappa}^{*} is the infimum of the population risks over the entire admissible class. We assume that all infima and statistics used below are measurable. Restricting decoder outputs to II does not increase the minimum attainable risk. To see this, define clip⁡I(z)=min⁡{y+,max⁡{y−,z}}\operatorname{clip}_{I}(z) = \min\{y_+,\max\{y_-,z\}\}. Clipping the outputs of any real-valued Lipschitz decoder to II preserves its Lipschitz constraint and cannot increase squared error because Y∈IY \in I. Because both YY and g(U)g(U) lie in II, the squared prediction error is bounded by B=D2B = D^2. This bound is used to construct the confidence bounds in § 5. Moreover, the constant decoder g(u)=E[Y]g(u) = \mathbb{E}[Y] belongs to Gκ(d)\mathcal{G}_{\kappa}(d) and has population risk Var⁡(Y)\operatorname{Var}(Y). Consequently,

0≤Rκ∗≤Var⁡(Y)≤B/4,0 \le R_{\kappa}^{*} \le\operatorname{Var}(Y) \le B/4,

where the final inequality follows from the bounded range of YY. The optimal risk Rκ∗R_{\kappa}^{*} depends on the representation Γ\Gamma, the feature pseudometric dd, the Lipschitz bound κ\kappa, and the specified evaluation law. It therefore characterizes the predictive capability of a representation together with its admissible decoder class, rather than the representation alone.

Three sources of unavoidable class error. The optimal class risk reflects three sources of prediction error: uncertainty about the future target, information lost through the representation, and restrictions imposed by the decoder class. To distinguish these sources, define MX=E[Y∣X]M_X = \mathbb{E}[Y \mid X] and MU=E[Y∣U]M_U = \mathbb{E}[Y \mid U], where U=Γ(X)U = \Gamma(X). Under squared loss, MXM_X is the optimal prediction based on the full available history, whereas MUM_U is the optimal prediction based only on its representation, without imposing the Lipschitz constraint. For any admissible decoder gg, the prediction error can be written as

Y−g(U)=(Y−MX)+(MX−MU)+(MU−g(U)).Y-g(U) = (Y-M_X) + (M_X-M_U) + (M_U-g(U)).

The first residual has conditional mean zero given XX, and the second has conditional mean zero given UU. Consequently, all cross terms vanish when taking the expected squared error. Taking the infimum over admissible decoders gives

Rκ∗=E(Y−MX)2⏟future uncertainty+E(MX−MU)2⏟conditional-mean information loss+inf⁡g∈Gκ(d)E(MU−g(Γ(X)))2⏟Lipschitz approximation error.(3)R_{\kappa}^{*} = \underbrace{\mathbb{E}(Y-M_X)^2}_{\text{future uncertainty}} + \underbrace{\mathbb{E}(M_X-M_U)^2}_{\text{conditional-mean information loss}} + \inf_{g\in\mathcal{G}_{\kappa}(d)} \underbrace{\mathbb{E}(M_U-g(\Gamma(X)))^2}_{\text{Lipschitz approximation error}}. \tag*{(3)}

References

  1. [1]Aditya Kumar Akash, Vishnu Suresh Lokhande, Sathya N. Ravi, and Vikas Singh. Learning invariant representations using inverse contrastive loss. Proceedings of the AAAI Conference on Artificial Intelligence, 35(8):6582–6591, 2021. doi: 10.1609/aaai.v35i8.16815. URL https://ojs.aaai.org/index.php/AAAI/article/view/16815.
  2. [2]Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, and Lihua Lei. Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2):1641–1662, 2025. doi: 10.1214/24-AOAS1998. URL https://arxiv.org/abs/2110.01052.
  3. [3]Denis Belomestny, Leonid Iosipoi, Quentin Paris, and Nikita Zhivotovskiy. Empirical variance minimization with applications in variance reduction and optimal control. Bernoulli, 28(2):1382–1407, 2022. doi: 10.3150/21-BEJ1392. URL https://arxiv.org/abs/1712.04667.
  4. [4]Luis Candanedo. Appliances energy prediction. UCI Machine Learning Repository, 2017. URL https://archive.ics.uci.edu/dataset/374/appliances+energy+prediction. Dataset 374.
  5. [5]Song Chen. Beijing PM2.5. UCI Machine Learning Repository, 2015. URL https://archive.ics.uci.edu/dataset/381/beijing+pm2+5+data. Dataset 381.DOI
  6. [6]Hadi Fanaee-T. Bike sharing. UCI Machine Learning Repository, 2013. URL https://archive.ics.uci.edu/dataset/275/bike+sharing+dataset. Dataset 275.
  7. [7]Lee-Ad Gottlieb, Aryeh Kontorovich, and Robert Krauthgamer. Efficient regression in metric spaces via approximate lipschitz extension. IEEE Transactions on Information Theory, 63(8):4838–4849, 2017. doi: 10.1109/TIT.2017.2713820.DOI
  8. [8]Vincent Guigues, Anatoli Juditsky, and Arkadi Nemirovski. Non-asymptotic confidence bounds for the optimal value of a stochastic program. Optimization Methods and Software, 32(5):1033–1058, 2017. doi: 10.1080/10556788.2017.1350177. URL https://www2.isye.gatech.edu/~nemirovs/GuiJudNem2017.pdf.DOI
  9. [10]Nan Jiang, Alex Kulesza, and Satinder Singh. Abstraction selection in model-based reinforcement learning. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 179–188, 2015. URL https://proceedings.mlr.press/v37/jiang15.html.
  10. [12]Mohit Kumar, Bernhard A. Moser, and Lukas Fischer. On mitigating the utility-loss in differentially private learning: A new perspective by a geometrically inspired kernel approach. Journal of Artificial Intelligence Research, 79:515–567, 2024. doi: 10.1613/jair.1.15071. URL https://jair.org/index.php/jair/article/view/15071.DOI
  11. [13]Mohit Kumar, Alexander Valentintsch, Magdalena Fuchs, Mathias Brucker, Juliana Bowles, Adnan Husakovic, Ali Abbas, and Bernhard A. Moser. Geometrically inspired kernel machines for collaborative learning beyond gradient descent. Journal of Artificial Intelligence Research, 83 (16), 2025. doi: 10.1613/jair.1.16821. URL https://jair.org/index.php/jair/article/view/16821.
  12. [14]Mohit Kumar, Somayeh Kargaran, Bernhard A. Moser, and Manuela Geiß. Kernel affine hull machines as compute-efficient encoders for frozen semantic spaces. arXiv:2605.02950v2, 2026. URL https://arxiv.org/abs/2605.02950v2.
  13. [15]Wai-Kei Mak, David P. Morton, and R. Kevin Wood. Monte Carlo bounding techniques for determining solution quality in stochastic programs. Operations Research Letters, 24(1–2):47–56, 1999. doi: 10.1016/S0167637798000546. URL https://www.sciencedirect.com/science/article/pii/S0167637798000546.DOI
  14. [16]Manuel M. Müller, Yuetian Luo, and Rina Foygel Barber. Are all models wrong? fundamental limits in distribution-free empirical model falsification. In Proceedings of the 38th Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 4271–4308, 2025. URL https://proceedings.mlr.press/v291/muller25a.html.arxiv.org/abs/2502.06765
  15. [17]Patrick Wagner, Nils Strodthoff, Ralf-Dieter Bousseljot, Dieter Kreiseler, Fatima I. Lunze, Wojciech Samek, and Tobias Schaeffter. PTB-XL, a large publicly available electrocardiography dataset. Scientific Data, 7:154, 2020. doi: 10.1038/s41597-020-0495-6. URL https://www.nature.com/articles/s41597-020-0495-6.DOI
  16. [18]Patrick Wagner, Nils Strodthoff, Ralf-Dieter Bousseljot, Wojciech Samek, and Tobias Schaeffter. PTB-XL, a large publicly available electrocardiography dataset. PhysioNet, 2022. URL https://physionet.org/content/ptb-xl/1.0.3/. Version 1.0.3.

Paper details

vlnc:W_tnm546wc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents