Introduction
We express regression and classification problems using the following general framework:
predict y ∈ M 1 ⊂ Y given x ∈ M 2 ⊂ X , (1) \text{predict } y \in\mathcal{M}_1 \subset\mathcal{Y} \text{ given } x \in\mathcal{M}_2 \subset\mathcal{X}, \tag*{(1)} predict y ∈ M 1 ⊂ Y given x ∈ M 2 ⊂ X , (1)
where the available input-target pairs ( y , x ) ∈ M 1 × M 2 (y,x) \in\mathcal{M}_1 \times\mathcal{M}_2 ( y , x ) ∈ M 1 × M 2 are given by a finite dataset of tuples D M = { ( y m , x m ) } m = 1 M ⊂ M 1 × M 2 D_M = \{(y_m,x_m)\}_{m=1}^{M} \subset\mathcal{M}_1 \times\mathcal{M}_2 D M = {( y m , x m ) } m = 1 M ⊂ M 1 × M 2 for some M ∈ N M \in\mathbb{N} M ∈ N . Here, y y y represents the data of interest, while x x x denotes the available data from which we wish to predict y y y . The sets M 1 ⊂ Y \mathcal{M}_1 \subset\mathcal{Y} M 1 ⊂ Y and M 2 ⊂ X \mathcal{M}_2 \subset\mathcal{X} M 2 ⊂ X describe the sets of target and input signals of interest. The dataset D M D_M D M is deliberately defined in this general way to encompass many known cases and settings. For example, the ambient input set X \mathcal{X} X may consist of tensors for image-based regression and classification problems or of a structure supporting tabular data, and the set M 2 ⊂ X \mathcal{M}_2 \subset\mathcal{X} M 2 ⊂ X may consist of all admissible images.
Figure 1. Accuracy bounds: from data ambiguity to a reference scale on the constructed dataset. For an input x x x , the thresholds define a feasible set F x F_x F x (Definition 1.1 ) of target values lying within the worst-case noise distance. The target values within this set may differ. The average kernel size, K K K , provides a reference scale for the best achievable empirical error on a finite constructed dataset; the term “average kernel size” is motivated by its namesake in inverse problems Gottschling et al. [ [34 ] , but here we define it directly from the constructed dataset without requiring a forward model. In this schematic, the optimal error on the constructed dataset lies between K / 2 K/2 K /2 and K K K . Model errors reported on the original dataset are shown for descriptive comparison. Both the finite feasible sets and the value of K K K depend on the chosen pseudo-metric, metric, and thresholds. For models evaluated only on the original dataset, such comparisons are heuristic unless additional assumptions, such as those in Proposition 2.13 , are invoked.
For classification, the ambient target set Y \mathcal{Y} Y consists of one-hot encoded vectors or more generally Y = { y ∈ [ 0 , 1 ] C : ∑ c = 1 C y c = 1 } \mathcal{Y} = \{y \in[0, 1]^C : \sum_{c=1}^{C} y_c = 1\} Y = { y ∈ [ 0 , 1 ] C : ∑ c = 1 C y c = 1 } for C ∈ N C \in\mathbb{N} C ∈ N classes.
In applications, an input may correspond to multiple admissible targets, even if the observed dataset D M D_M D M contains a unique target for that input. To characterize such ambiguity, we introduce a multiset of admissible input-target pairs R \mathcal{R} R satisfying D M ⊂ R D_M \subset\mathcal{R} D M ⊂ R . For a fixed input x x x , we define its feasible set in the following Definition 1.1 . If, for a fixed input x x x , the targets are ambiguous, then the feasible set can be a non-singleton. As the disjoint union preserves multiplicities, it can be a multiset, which is an unordered collection of elements where each element can appear more than once.
Definition 1.1 (Feasible sets). Let R \mathcal{R} R be an underlying admissible input-target multiset. For an input x x x obtained from a sample ( y , x ) ∈ R (y,x) \in\mathcal{R} ( y , x ) ∈ R let the feasible set F x F_x F x be defined as
F x : = ⋃ ˙ ( y , x ) ∈ R { y } ⊂ M 1 . (2) F_x := \mathop{\dot{\bigcup}}_{(y,x)\in\mathcal{R}} \{y\} \subset\mathcal{M}_1. \tag*{(2)} F x := ⋃ ˙ ( y , x ) ∈ R { y } ⊂ M 1 . (2) As ∪ ˙ \dot{\cup} ∪ ˙ is the disjoint union, the feasible set F x F_x F x is a multiset.
A non-singleton feasible set indicates that multiple targets are admissibly associated with the same input. If y , y ′ ∈ F x y,y' \in F_x y , y ′ ∈ F x with y ≠ y ′ y \ne y' y = y ′ , then ( y , x ) , ( y ′ , x ) ∈ R (y,x),(y',x) \in\mathcal{R} ( y , x ) , ( y ′ , x ) ∈ R although these pairs need not both be contained in the observed finite dataset D M D_M D M . Such ambiguity may arise, for example, from noisy observations, where it is generally impossible for a given sample to determine whether the input, target, or both have been corrupted, or to identify the underlying noise mechanism. Consequently, for an individual input-target sample we generally cannot determine whether the sample has been corrupted by noise. To account for this ambiguity, we consider an admissible enlargement D M ′ D_{M'} D M ′ of the observed dataset and impose the following assumption.
Assumption 1.2 (Existence of an admissible enlargement). We assume that there exists a multiset of admissible input-target pairs R \mathcal{R} R with D M ⊂ R D_M \subset\mathcal{R} D M ⊂ R . Relative to this admissible multiset, we assume that there exists a multiset
D M ′ = { ( y m , x m ) } m = 1 M ′ ⊂ R (3) D_{M'} = \{(y_m,x_m)\}_{m=1}^{M'} \subset\mathcal{R} \tag*{(3)} D M ′ = {( y m , x m ) } m = 1 M ′ ⊂ R (3) such that D M ⊂ D M ′ D_M \subset D_{M'} D M ⊂ D M ′ and, for some x ∈ M 2 x \in\mathcal{M}_2 x ∈ M 2 , there exist distinct y , y ′ ∈ M 1 y,y' \in\mathcal{M}_1 y , y ′ ∈ M 1 with y , y ′ ∈ F x y,y' \in F_x y , y ′ ∈ F x .
Here, D M ′ D_{M'} D M ′ is not meant to be uniquely determined or algorithmically recovered from D M D_M D M ; it is an admissible enlargement of the observed sample used to represent latent ambiguity in the input-target relation. The condition that some F x F_x F x contains two distinct values y ≠ y ′ y \ne y' y = y ′ excludes trivial cases and ensures a genuinely ambiguous regime.
The goal of solving regression and classification problems of the form (1.1) is to produce an approximation or set of approximations y ^ ⊂ Y \hat{y} \subset\mathcal{Y} y ^ ⊂ Y to the true target y y y from an input x x x . Any algorithm or method that produces a potentially set-valued regressor or classifier mapping data points x x x in M 2 \mathcal{M}_2 M 2 to approximations of the true target y y y is denoted by
ϕ : M 2 ⇒ Y , \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y}, ϕ : M 2 ⇒ Y ,
with ϕ ( x ) = y ^ ⊂ Y \phi(x) = \hat{y} \subset\mathcal{Y} ϕ ( x ) = y ^ ⊂ Y . Examples include optimization-based methods, such as random forests, Segal [2004], Shwartz-Ziv and Armon [2022], McElfresh et al. [2023] which in some cases outperform deep neural networks on tabular data, and supervised or unsupervised deep learning methods Lathuilière et al. [2019], such as transformer-based architectures Han et al. [2022].
The empirical error of a (set-valued) regressor ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y for approximately solving (1.1) is often quantified by the empirical root-p p p mean of the residuals between the predictions and targets over the M ∈ N M \in\mathbb{N} M ∈ N samples D M = { ( y m , x m ) } m = 1 M D_M = \{(y_m,x_m)\}_{m=1}^{M} D M = {( y m , x m ) } m = 1 M , and can be denoted by
L ( D M , ϕ , p ) = ( 1 M ∑ m = 1 M d Y H ( { y m } , ϕ ( x m ) ) p ) 1 / p , (4) \mathcal{L}(D_M,\phi,p) = \left(\frac{1}{M}\sum_{m=1}^{M}d_{\mathcal{Y}}^{H}(\{y_m\},\phi(x_m))^p\right)^{1/p}, \tag*{(4)} L ( D M , ϕ , p ) = ( M 1 m = 1 ∑ M d Y H ({ y m } , ϕ ( x m ) ) p ) 1/ p , (4)
for some p ∈ [ 1 , ∞ ) p \in[1,\infty) p ∈ [ 1 , ∞ ) and a metric d Y d_{\mathcal{Y}} d Y on M 1 \mathcal{M}_1 M 1 , where the Hausdorff distance is defined by d Y H ( { y } , ϕ ( x ) ) : = sup z ∈ ϕ ( x ) d Y ( y , z ) d_{\mathcal{Y}}^{H}(\{y\},\phi(x)) := \sup_{z \in\phi(x)} d_{\mathcal{Y}}(y,z) d Y H ({ y } , ϕ ( x )) := sup z ∈ ϕ ( x ) d Y ( y , z ) . For p = 1 p = 1 p = 1 , this is the mean absolute error (MAE), and for p = 2 p = 2 p = 2 , it corresponds to the root-mean-squared error (RMSE); its square is the empirical risk or also mean squared loss. The MAE and RMSE are commonly used to evaluate the error of regressors, see, e.g., [13 Chapter 1] and [53 Chapter 1] .
For classification, the empirical accuracy of a (set-valued) classifier ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y can be measured by the Hausdorff distance induced by the normalized Hamming metric d H d_H d H , so that
Acc ( D M , ϕ ) = 1 − 1 M ∑ m = 1 M d H H ( { y m } , ϕ ( x m ) ) . (5) \operatorname{Acc}(D_M,\phi) = 1 - \frac{1}{M}\sum_{m=1}^{M}d_H^{H}(\{y_m\},\phi(x_m)). \tag*{(5)} Acc ( D M , ϕ ) = 1 − M 1 m = 1 ∑ M d H H ({ y m } , ϕ ( x m )) . (5)
The normalization of the Hamming metric is introduced in detail in § 2.1 .
A common objective in regression problems across various applications is to find a regressor that minimizes the loss (1.4) in a given class of functions, such as finding the optimal architecture and parameter values for deep neural networks or, for example, in least squares regression Arlot and Massart [2009]. In classification problems, this changes to maximizing the accuracy in (1.5). This is commonly referred to as empirical risk minimization , where the ”[…] true goal is to minimize the expected loss on future data that we have not yet seen. That is, we want to generalize, rather than just do well on the training set.”, [53 Chapter 1] . Under additional assumptions, the hope is that this procedure solves regression and classification problems of the form (1.1) and that the resulting regressors and classifiers produce, for any input x x x , an approximation or set of approximations y ^ \hat{y} y ^ to the true target y y y .
Challenges
Before summarizing the related work, we highlight three challenges that motivate the framework developed here.
(i) Non-uniqueness of the target given the observed input. In many regression and classification problems, the available input does not determine a unique target, satisfying Assumption 1.2. This may occur because of measurement noise, omitted variables, or annotation uncertainty and is commonly referred to as aleatoric uncertainty in the field of machine learning, see Murphy [2022], Der Kiureghian and Ditlevsen [2009], Gawlikowski et al. [2023]. In such settings, even an ideal regressor or classifier cannot recover a single deterministic response from the observed input alone. Consequently, part of the prediction error is intrinsic to the data-generating relation and cannot be removed by choosing a more expressive model class or a better optimization method.
(ii) The need for computable, model-independent bounds on finite datasets. In computationally demanding settings, it is useful to estimate achievable empirical error and accuracy before extensive model selection and training. This motivates finite-sample bounds that are computable from the dataset itself and independent of a specific model class. To the best of our knowledge, related work does not provide such bounds in this form; see Table 1 and § 1.3 .
Table 1. The average kernel size and its distributional analogue play different roles and are distinguished explicitly.
(iii) Expressive regressors and classifiers do not evade intrinsic accuracy limits. A third challenge is that expressive regressors and classifiers can fit the training dataset without resolving ambiguity inherent in the input-target relation. For example, for a finite dataset D M \mathcal{D}_{M} D M with no ambiguous targets that have the same input, interpolation by a large enough model is possible, but may come at the cost of poor generalization or overfitting, [53 Chapter 1] and Zhang et al. [2016, 2021], and potentially a large Lipschitz constant. Hence, approximation power alone does not determine the best achievable test error and accuracy.
Contributions
We develop a framework for computing deterministic bounds on achievable regression and classification accuracy from finite datasets. Here, we introduce a metric-space framework that encodes input-target ambiguity through data-dependent feasible sets, with pseudo-metrics on inputs and metrics on targets. The main contributions are as follows.
We establish an accuracy-stability trade-off , Proposition 2.5. We show that a too small pointwise error on separated, ambiguous targets at nearby, but distinct, inputs forces a large (local) Lipschitz constant and that ambiguous targets produce a pointwise error floor.
We derive computable, deterministic, non-asymptotic lower and upper bounds on the best achievable empirical error and accuracy on datasets defined in Assumption 1.2. The lower bounds in Theorem 2.9 and Corollary 2.11 hold for all regressors and classifiers, while for distinct inputs the upper bound holds and the optimum is attained by an upper hemicontinuous compact-valued regressor or classifier. Using a graph-based argument, we show that for Lipschitz continuous regressors and classifiers, the difference between empirical error, respectively accuracy, on the constructed and original datasets is bounded in terms of the Lipschitz constant and input-target ambiguity for finite feasible sets of equal cardinality (Proposition 2.13).
Under standard Borel assumptions, we show that regressors and classifiers achieving errors below the conditional ambiguity scale, necessarily incur a strictly positive generalization gap (Proposition 2.18). Under Euclidean squared loss, the Bayes squared risk equals one half the squared distributional analogue average kernel size.
Under an ideal two-stage design with inputs sampled from the input law and conditionally independent repeated targets, we prove a finite-sample concentration bound for the empirical average kernel size estimator (Proposition 2.19). This differs from the average kernel size computed by Algorithm 1, which is a data-dependent geometric quantity unless additional sampling assumptions are imposed.
We provide open-source code for reproducibility and experiments illustrating the computation of the deterministic bounds across regression and classification tasks, their dependence on the chosen pseudo-metric, thresholds, and feasible set sizes, and their comparison with benchmark models and locally trained models. The experiments examine whether the bounds are nontrivial, how selected model performances compare numerically with the resulting intervals, and how sensitive the intervals are to the finite feasible sets (Section 3). Figures 2 and 3 provide descriptive visual comparisons with selected model errors and accuracies; detailed qualifications are deferred to Section 3.
Figure 2. Deterministic regression accuracy intervals and regressor errors. The theoretical interval from Theorem 2.9 is [ 1 / 2 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] [1/2\operatorname{Kersize}(\mathcal{D}_{M'},p)_{K},\operatorname{Kersize}(\mathcal{D}_{M'},p)_{K}] [ 1/2 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] . All scores are RMSE values in the units of the target variables of three regressors on the test datasets D M t e s t \mathcal{D}_{M_{\mathrm{test}}} D M test . Theoretical intervals apply to the admissible enlarged dataset D M ′ \mathcal{D}_{M'} D M ′ constructed from the observed dataset D M \mathcal{D}_{M} D M ; plotted RMSE values are on D M t e s t \mathcal{D}_{M_{\mathrm{test}}} D M test . Numerical values and details are provided in Table 3 in § 3 .
Figure 3. Deterministic classification accuracy intervals and classifier accuracies. Theoretical intervals from Corollary 2.11 are reported as percentages; explicitly, the interval is 100 [ 1 − Kersize ( D M ′ , 1 ) K , 1 − 1 / 2 Kersize ( D M ′ , 1 ) K ] 100[1-\operatorname{Kersize}(\mathcal{D}_{M'},1)_{K},1-1/2\operatorname{Kersize}(\mathcal{D}_{M'},1)_{K}] 100 [ 1 − Kersize ( D M ′ , 1 ) K , 1 − 1/2 Kersize ( D M ′ , 1 ) K ] . Accuracies are reported on the [ 0 , 100 ] [0,100] [ 0 , 100 ] scale and from classifiers on the test datasets D M t e s t \mathcal{D}_{M_{\mathrm{test}}} D M test . Intervals are for D M ′ \mathcal{D}_{M'} D M ′ ; plotted benchmark accuracies are on D M \mathcal{D}_{M} D M and may use different splits/protocols, so they are descriptive only. For CIFAR-10 the order of classifier names is changed relative to the numerical values provided in Table 5 in § 3 .
Scope of the bounds. The proposed bounds are not intrinsic properties of the dataset alone, but depend on the chosen pseudo-metric on the input space, the evaluation metric on the target space, and the finite-sample feasible set construction based on the thresholds from input and target noise. In the experimental section, whenever prior information on input (and/or target) measurement uncertainty was available, the thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y were set to conservative worst-case values implied by the corresponding noise models. In this setting the framework isolates a model-independent component of prediction difficulty, but does not directly account for optimization difficulty, finite model capacity, or model misspecification.
Relation to previous work
The proposed framework to tackle the three challenges in § 1.1 is related to several existing lines of work, including optimal recovery, approximation theory, statistical learning theory, and modern deep learning.
Optimal recovery and worst-case approximation. Classical approximation-theoretic frameworks quantify best achievable worst-case error in settings related to (1) . For noiseless linear problems, examples include Gelfand widths Pinkus [ [61 ] and best k k k -term approximation Cohen et al. [ [21 ] . Worst-case bounds for set-valued recovery maps were established on Banach spaces in Arestov [ [5 ] and extended to metric spaces in Magaril-Il’yaev and Osipenko [ [48 ] . For noisy problems, Binev et al. [ [14 ] introduced optimal learning and upper bounds based on the Chebyshev radius, while Cohen et al. [ [22 ] studied the optimal accuracy of nonlinear approximation methods; see also the radius of information in Traub et al. [ [71 ] and the survey Micchelli and Rivlin [ [52 ] . These works show that non-uniqueness can impose unavoidable error. Our approach differs in using metric and Hausdorff distances on feasible sets and optimal (set-valued) regressors and classifiers, without requiring a nested family of approximate prediction sets, and in providing a computable finite-dataset perspective relevant to modern machine learning.
Statistical learning theory and model-dependent bounds. Another line of work studies regressor and classifier error through sampling assumptions, hypothesis-class complexity, or specific model classes, including neural-network architectural restrictions. For example, Zhang [ [83 ] derives sharp bounds for parameter estimation in linear regression under specific assumptions, and Qi et al. [ [62 ] gives upper bounds for the mean absolute error of neural-network regressors under architectural assumptions. Vapnik–Chervonenkis (VC) theory, see Vapnik [ [75 , 76 ] , and related measures such as Rademacher complexity, see Bartlett and Mendelson [ [10 ] , provide generalization bounds for restricted model classes, while Cherkassky et al. [ [20 ] show the usefulness of VC-type bounds for model selection in small i.i.d. datasets and linear regression. However, such bounds are typically not directly computable for arbitrary finite datasets and broad model classes, and they often rely on assumptions, such as i.i.d. sampling, that may fail in practice or be difficult to verify Arnold [ [7 ] .
Modern deep learning and the limits of classical explanations. Neural networks are universal approximators, see Hornik et al. [ [41 ] , Maiorov and Pinkus [ [49 ] , Bach [ [9 ] , Beck et al. [ [11 ] , Petersen and Voigtlaender [ [60 ] , Yarotsky [ [78 ] , but, as emphasized in Adcock and Dexter [ [1 ] , approximation-theoretic expressivity does not by itself provide guarantees on trainability or practical error and accuracy. Zhang et al. [ [81 , 82 ] show that deep networks can fit datasets with random labels, and argue that classical notions such as VC dimension, Rademacher complexity, and uniform stability do not explain the generalization behavior of state-of-the-art neural networks. Separately, Northcutt et al. [ [56 ] identified substantial label errors in widely used datasets, such as CIFAR-10, highlighting that both label uncertainty and annotation errors can limit measurable test accuracy. In some applications, deep learning is not even the best empirical choice: for instance, tree-based methods can outperform deep neural networks on tabular data Grinsztajn et al. [ [35 ] . These observations motivate the search for accuracy limits that depend on the task and dataset rather than on the expressive power of a specific model family. The perspective of this paper is closest to geometric and recovery-based approaches that quantify ambiguity in the input-target relation. It is complementary to information-theoretic minimax lower bounds, such as Fano and Le Cam methods Tsybakov [ [73 ] , Le Cam [ [46 ] , Fano and Hawkins [ [28 ] , and to bias-variance decompositions of prediction tion risk [31 ] .
Bayes risk, irreducible error, and Bayes-error estimation. In statistical decision theory, the model-independent benchmark under distribution μ \mu μ for a loss ℓ \ell ℓ is the Bayes risk inf φ E μ [ ℓ ( Y , φ ( X ) ) ] \inf_{\varphi}\mathbb{E}_{\mu}[\ell(Y,\varphi(X))] inf φ E μ [ ℓ ( Y , φ ( X ))] , where the infimum is over measurable decision rules φ \varphi φ , see [12 ] and [53 ] , which could be either regressors or classifiers. Under Euclidean squared loss, the Bayes rule is the conditional mean and the irreducible term is the expected conditional variance. Cover and Hart [ [23 ] showed that the asymptotic error of a nearest-neighbor classifier is bounded above by twice the Bayes error; in their conditional sampling formulation, this error is characterized by pairwise disagreement between conditionally independent labels, which is the distributional analogue average kernel size in our setting. The problem of estimating this irreducible squared-loss term, often called the residual variance, has also been studied in nonparametric regression under i.i.d. sampling assumptions; see, for example, Devroye et al. [ [26 ] , who analyze a nearest-neighbor estimator together with asymptotic normality and concentration results. Our distributional analogue average kernel size gives an equivalent pairwise representation, as its square is exactly twice the Bayes squared risk. Recent work develops statistical estimators of Bayes error and optimal classification error and accuracy, including multiclass and computationally efficient approaches, see [17 ] , [42 ] , [18 ] , [74 ] . These methods estimate distribution-level limits under probabilistic sampling assumptions, such as i.i.d. sampling. Related empirical studies refine the classical bias-variance picture in overparameterized regimes; see, for example, [55 ] , [77 ] . In contrast, our bounds are deterministic and finite-sample, apply to the realized empirical loss on the constructed dataset from Assumption 1.2, extend to metric or pseudo-metric target spaces, and do not require i.i.d. sampling.
Nonparametric estimation of conditional structure. Estimating conditional means, conditional variances, and Bayes risk from finite data is a central problem in nonparametric statistics, see [69 ] , [37 ] . Such estimators typically rely on i.i.d. sampling together with smoothness assumptions. Here the bounds are computed from deterministic and geometric finite feasible sets with a chosen pseudo-metric and threshold rule. It should be distinguished from an estimator based on genuine conditionally i.i.d. replicates. The convergence theorem connects the deterministic bounds to such an ideal sampling design.
Stability and generalization. Classical algorithmic-stability results control expected generalization error by studying how a learning rule changes when observations in the training sample are replaced Bousquet and Elisseeff [ [15 ] . The accuracy-stability result concerns a different notion: the metric regularity of the fitted regressors and classifiers as a function of their input, which is a deterministic geometric obstruction. If nearby inputs are paired with well-separated targets, a regressor or classifier that fits both targets accurately must have a large local Lipschitz constant, independently of how the regressor or classifier was trained.
Dimensionality reduction and geometric preservation. Results such as the Johnson-Lindenstrauss lemma Johnson and Lindenstrauss [ [43 ] show that low-dimensional embeddings can approximately preserve pairwise geometry, but this does not by itself quantify achievable prediction accuracy or ambiguity in the input-target relation.
Positioning of the present work. We use a feasible-set geometry to derive computable, deterministic, non-asymptotic lower and upper bounds on the best achievable empirical error on a realized, finite, constructed dataset. The bounds are model-class independent and apply to upper hemicontinuous compact-valued regressors and classifiers, a class containing single-valued, continuous regressors and classifiers. The input space has a pseudo-metric and the target space a metric, so the construction is not restricted to Euclidean regression. The provided distribution dependent results show that, they relate conditional target ambiguity to Bayes risk and to generalization gaps under probabilistic assumptions.
Outlook and impact
An important practical feature of the proposed framework is that the bounds on empirical error on the constructed dataset D M ′ D_{M'} D M ′ from Assumption 1.2 are computable before model optimization and training. As the bounds depend on the dataset, the chosen metric structure, and the finite samples used in the analysis, they provide task-dependent information prior to model selection and optimization. The framework can therefore help answer questions such as: Is the available data sufficiently informative for the task under the chosen evaluation metric? and How much improvement remains possible before the observed empirical error reaches the model-independent floor induced by the chosen input space pseudo-metric and finite feasible sets? The bounds quantify this remaining room for improvement in empirical error, but they do not imply that additional tuning, a different architecture, or a particular optimization method will attain it. Although the proof of Theorem 2.9 is constructive and provides an explicit variational formula for the regressor obtaining the best achievable empirical error, this regressor is computationally expensive as it requires solving an optimization problem for each input. The analogous formula and conclusion apply to classification.
This makes the bounds potentially useful for dataset assessment, model selection, and training diagnostics. More broadly, they provide a principled way to distinguish limitations imposed by the data from limitations imposed by a specific learning method.
Outline
The remainder of the paper is organized into three logically distinct parts. First, we develop deterministic finite-sample bounds on empirical loss and accuracy for a constructed dataset derived from feasible-set geometry. Second, under additional probabilistic assumptions, we relate the distributional analogue of the average kernel size to Bayes risk and generalization gaps. Here Section 2 develops the framework and assumptions and presents the main theoretical results, including the algorithm used to compute the accuracy bounds. Third, we provide experiments illustrating the behavior of the deterministic construction across several datasets and choices of evaluation metric. Here Section 3 presents the experimental results. Proofs are deferred to the end of the manuscript, while additional material for reproducibility, including implementation details and descriptions of the datasets considered, is provided in the Appendix. Our code is publicly available at this GitHub repository.
Main results
In the following subsections, we first define a minimal framework for regression and classification problems that is required to present the corresponding main theoretical results. Then, we present the main deterministic and finite-sample results, hereafter we introduce additional probabilistic assumptions required to present the distribution level results.
Problem formulation
We model a regression or classification problem by a dataset of tuples
D M ⊂ M 1 × M 2 ⊂ Y × X , \mathcal{D}_M \subset\mathcal{M}_1 \times\mathcal{M}_2 \subset\mathcal{Y} \times\mathcal{X}, D M ⊂ M 1 × M 2 ⊂ Y × X ,
for some M ∈ N M \in\mathbb{N} M ∈ N , together with the prediction task (1) . The ambient input space X \mathcal{X} X is equipped with a pseudo-metric d X d_{\mathcal{X}} d X , and the ambient target space Y \mathcal{Y} Y is equipped with a metric d Y d_{\mathcal{Y}} d Y . For image-based regression and classification tasks in § 3 we chose a metric based on wavelet transforms concatenated with the ℓ 2 \ell_2 ℓ 2 norm. We endow X \mathcal{X} X and Y \mathcal{Y} Y with the corresponding topologies generated by the open balls
B d X ( x , r ) = { z ∈ X : d X ( x , z ) < r } , B d Y ( y , r ) = { z ∈ Y : d Y ( y , z ) < r } , B_{d_{\mathcal{X}}}(x,r) = \{z \in\mathcal{X} : d_{\mathcal{X}}(x,z) < r\}, \qquad B_{d_{\mathcal{Y}}}(y,r) = \{z \in\mathcal{Y} : d_{\mathcal{Y}}(y,z) < r\}, B d X ( x , r ) = { z ∈ X : d X ( x , z ) < r } , B d Y ( y , r ) = { z ∈ Y : d Y ( y , z ) < r } ,
for r > 0 r > 0 r > 0 . We equip M 2 \mathcal{M}_2 M 2 with the induced subspace topology. In addition, we assume the following.
Assumption 2.1 (Heine-Borel property). The metric space ( Y , d Y ) (\mathcal{Y},d_{\mathcal{Y}}) ( Y , d Y ) satisfies the Heine-Borel property, that is, every closed and bounded subset of Y \mathcal{Y} Y is compact.
Throughout the paper, we denote by π 1 : M 1 × M 2 → M 1 \pi_1 : \mathcal{M}_1 \times\mathcal{M}_2 \to\mathcal{M}_1 π 1 : M 1 × M 2 → M 1 the projection ( y , x ) ↦ y (y,x) \mapsto y ( y , x ) ↦ y and by π 2 : M 1 × M 2 → M 2 \pi_2 : \mathcal{M}_1 \times\mathcal{M}_2 \to\mathcal{M}_2 π 2 : M 1 × M 2 → M 2 the projection ( y , x ) ↦ x (y,x) \mapsto x ( y , x ) ↦ x . The disjoint union of sets A , B ⊂ X A,B \subset X A , B ⊂ X is denoted by A ∪ ˙ B A \mathbin{\dot\cup} B A ∪ ˙ B . A regressor or classifier is modeled by a set-valued map
ϕ : M 2 ⇒ Y , x ↦ ϕ ( x ) = y ^ . (6) \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y}, \qquad x \mapsto\phi(x) = \hat{y}. \tag*{(6)} ϕ : M 2 ⇒ Y , x ↦ ϕ ( x ) = y ^ . (6)
For S ⊂ M 2 S \subset\mathcal{M}_2 S ⊂ M 2 , we define the image of S S S under ϕ \phi ϕ by
ϕ ( S ) = ⋃ x ∈ S ϕ ( x ) . \phi(S) = \bigcup_{x \in S} \phi(x). ϕ ( S ) = x ∈ S ⋃ ϕ ( x ) .
To accommodate set-valued regressors and classifiers, we extend the metric d Y d_{\mathcal{Y}} d Y by the Hausdorff distance. For bounded sets S 1 , S 2 ⊂ Y S_1,S_2 \subset\mathcal{Y} S 1 , S 2 ⊂ Y , define
d Y H ( S 1 , S 2 ) = max { sup z ∈ S 1 inf y ∈ S 2 d Y ( z , y ) , sup z ∈ S 2 inf y ∈ S 1 d Y ( z , y ) } . d_{\mathcal{Y}}^{H}(S_1,S_2) = \max\left\{ \sup_{z \in S_1}\inf_{y \in S_2} d_{\mathcal{Y}}(z,y),\ \sup_{z \in S_2}\inf_{y \in S_1} d_{\mathcal{Y}}(z,y) \right\}. d Y H ( S 1 , S 2 ) = max { z ∈ S 1 sup y ∈ S 2 inf d Y ( z , y ) , z ∈ S 2 sup y ∈ S 1 inf d Y ( z , y ) } .
which is well-defined for nonempty compact sets. Considering set-valued regressors and classifiers allows us to include stochastic models, such as diffusion-based generative models. For example, a finite collection of predictions { y ℓ } ℓ = 1 L \{y_\ell\}_{\ell=1}^{L} { y ℓ } ℓ = 1 L produced for a given input x x x , yields a prediction set ϕ ( x ) = { y ℓ } ℓ = 1 L \phi(x) = \{y_\ell\}_{\ell=1}^{L} ϕ ( x ) = { y ℓ } ℓ = 1 L . For a dataset D M = { ( y m , x m ) } m = 1 M \mathcal{D}_M = \{(y_m,x_m)\}_{m=1}^{M} D M = {( y m , x m ) } m = 1 M and p ∈ [ 1 , ∞ ) p \in[1,\infty) p ∈ [ 1 , ∞ ) , the empirical regression error of ϕ \phi ϕ is defined by (1.4), which depends only on the sampled pairs in D M \mathcal{D}_M D M .
For classification problems with C ∈ N C \in\mathbb{N} C ∈ N classes, we use the normalized Hamming distance and restrict the target ambient space Y \mathcal{Y} Y as follows.
Assumption 2.2 (Classification decisions and loss). For classification, the target and decision space is Y C = { e 1 , … , e C } \mathcal{Y}_C = \{e_1,\ldots,e_C\} Y C = { e 1 , … , e C } , equipped with its power-set sigma-algebra and the normalized Hamming metric
d H ( e c , e c ′ ) = 1 { c ≠ c ′ } . d_H(e_c,e_{c'}) = \mathbf{1}_{\{c \ne c'\}}. d H ( e c , e c ′ ) = 1 { c = c ′ } . If a model outputs a score or probability vector in Δ C − 1 \Delta^{C-1} Δ C − 1 , it is converted to a one-hot decision by a fixed Borel-measurable tie-breaking arg max rule.
Given a classifier ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y , the empirical accuracy is defined by (1.5) with d Y = d H d_{\mathcal{Y}} = d_H d Y = d H .
Remark 2.3 (Loss convention for set-valued predictors). Our loss uses the Hausdorff distance defined with the supremum over the prediction set and therefore measures average prediction error over pointwise worst-case distances. This convention is natural when a set-valued prediction is used in a downstream decision problem requiring error and accuracy to be controlled uniformly over the outcomes regarded as possible, as in robust or minimax decision theory Gilboa and Schmeidler [ [32 ] , Chamberlain [ [16 ] . Here, enlarging the prediction set cannot reduce the loss, and only provide benefits in downstream decision problems. This differs from coverage-oriented conventions, such as those used in conformal prediction Angelopoulos and Bates [ [4 ] , where a prediction set is rewarded for containing the realized target. Under such a convention, sufficiently large prediction sets could attain zero loss, so the lower bounds developed here would not directly apply.
We quantify the stability of a regressor or classifier ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y by local and global Lipschitz constants. For ϵ > 0 \epsilon> 0 ϵ > 0 and x ∈ M 2 x \in\mathcal{M}_2 x ∈ M 2 , the local ϵ \epsilon ϵ -Lipschitz constant is defined by
L ϵ ( ϕ , x ) = sup z ∈ M 2 0 < d X ( x , z ) ≤ ϵ d Y H ( ϕ ( x ) , ϕ ( z ) ) d X ( x , z ) . L^{\epsilon}(\phi,x) = \sup_{\substack{z \in\mathcal{M}_2 \\ 0 < d_{\mathcal{X}}(x,z) \le\epsilon}} \frac{d_{\mathcal{Y}}^{H}(\phi(x),\phi(z))}{d_{\mathcal{X}}(x,z)}. L ϵ ( ϕ , x ) = z ∈ M 2 0 < d X ( x , z ) ≤ ϵ sup d X ( x , z ) d Y H ( ϕ ( x ) , ϕ ( z )) .
where in the classification setting d Y = d H d_{\mathcal{Y}} = d_H d Y = d H . The global Lipschitz constant is defined by
L ( ϕ ) = sup x , z ∈ M 2 0 < d X ( x , z ) d Y H ( ϕ ( x ) , ϕ ( z ) ) d X ( x , z ) . L(\phi) = \sup_{\substack{x,z \in\mathcal{M}_2 \\ 0 < d_{\mathcal{X}}(x,z)}} \frac{d_{\mathcal{Y}}^{H}(\phi(x),\phi(z))}{d_{\mathcal{X}}(x,z)}. L ( ϕ ) = x , z ∈ M 2 0 < d X ( x , z ) sup d X ( x , z ) d Y H ( ϕ ( x ) , ϕ ( z )) .
Related notions of Lipschitz continuity for set-valued maps may be found in Li [ [47 ] , Aubin [ [8 ] .
Following [3 Definition 17.2] we define upper hemicontinuity of a set-valued regressor or classifier ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y . For this we define the upper inverse ϕ u \phi^u ϕ u of a subset A ⊂ Y A \subset\mathcal{Y} A ⊂ Y by
ϕ u ( A ) = { x ∈ M 2 : ϕ ( x ) ⊂ A } . \phi^u(A) = \{x \in\mathcal{M}_2 : \phi(x) \subset A\}. ϕ u ( A ) = { x ∈ M 2 : ϕ ( x ) ⊂ A } .
Then, ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y is upper hemicontinuous at x x x if for every neighborhood U U U of ϕ ( x ) \phi(x) ϕ ( x ) , there is a neighborhood V V V of x x x such that z ∈ V z \in V z ∈ V implies ϕ ( z ) ⊂ U \phi(z) \subset U ϕ ( z ) ⊂ U or, equivalently, if ϕ u ( U ) \phi^u(U) ϕ u ( U ) is a neighborhood of x x x in X \mathcal{X} X . As with functions, we say ϕ \phi ϕ is upper hemicontinuous on M 2 \mathcal{M}_2 M 2 , if it is upper hemicontinuous at every point of M 2 \mathcal{M}_2 M 2 . For more context, see § 8 .
Dataset-level stability and accuracy bounds
Motivated by the accuracy-stability trade-off for single-valued decoders solving inverse problems in Gottschling et al. [ [33 ] , we begin with an accuracy-stability trade-off showing that, when distinct targets correspond to nearby or identical inputs, a highly accurate regressor or classifier must become locally unstable. This observation motivates the lower bounds developed below.
Proposition 2.5 (Accuracy–stability trade-off). Let η , τ X > 0 \eta, \tau_X > 0 η , τ X > 0 , let M ∈ N M \in\mathbb{N} M ∈ N , let D M ⊂ M 1 × M 2 D_M \subset\mathcal{M}_1 \times\mathcal{M}_2 D M ⊂ M 1 × M 2 be a dataset, and let ϕ : M 2 ⇒ Y \phi: \mathcal{M}_2 \Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y be an upper hemicontinuous regressor or classifier with nonempty compact values and let d X d_X d X be a metric. Suppose there exist ( y , x ) , ( y ′ , x ′ ) , ( y ′ ′ , x ′ ′ ) ∈ D M (y, x), (y', x'), (y'', x'') \in D_M ( y , x ) , ( y ′ , x ′ ) , ( y ′′ , x ′′ ) ∈ D M such that
d Y H ( ϕ ( x ) , { y } ) < η , d Y H ( ϕ ( x ′ ) , { y ′ ′ } ) < η , 0 < d X ( x , x ′ ) < τ X . (7) d_Y^H(\phi(x), \{y\}) < \eta,\qquad d_Y^H(\phi(x'), \{y''\}) < \eta,\qquad0 < d_X(x,x') < \tau_X. \tag*{(7)} d Y H ( ϕ ( x ) , { y }) < η , d Y H ( ϕ ( x ′ ) , { y ′′ }) < η , 0 < d X ( x , x ′ ) < τ X . (7) Then, there exists an open ball B ⊂ M 2 B \subset\mathcal{M}_2 B ⊂ M 2 centered at x x x such that, for every ϵ > 0 \epsilon> 0 ϵ > 0 with τ X ≤ ϵ \tau_X \le\epsilon τ X ≤ ϵ , the local ϵ \epsilon ϵ -Lipschitz constant satisfies
L ϵ ( ϕ , x ~ ) ≥ 1 τ X ( d Y ( y , y ′ ′ ) − 2 η ) for all x ~ ∈ B . L^\epsilon(\phi,\tilde{x}) \ge\frac{1}{\tau_X}\bigl(d_Y(y,y'') - 2\eta\bigr)\qquad\text{for all }\tilde{x} \in B. L ϵ ( ϕ , x ~ ) ≥ τ X 1 ( d Y ( y , y ′′ ) − 2 η ) for all x ~ ∈ B .
While the proposition is, in essence, a geometric statement about an upper hemicontinuous ϕ \phi ϕ , we formulate it using dataset points to situate it in the data-dependent framework used throughout the paper. The use of three dataset pairs in (2.2) is deliberate. The dataset contains ( y , x ) , ( y ′ , x ′ ) ∈ D M (y,x), (y',x') \in D_M ( y , x ) , ( y ′ , x ′ ) ∈ D M and, ( y ′ ′ , x ′ ′ ) ∈ D M (y'',x'') \in D_M ( y ′′ , x ′′ ) ∈ D M , but the second accuracy condition evaluates the prediction at x ′ x' x ′ against the target y ′ ′ y'' y ′′ , rather than against the target y ′ y' y ′ paired with x ′ x' x ′ . Thus, the proposition does not require ϕ ( x ′ ) \phi(x') ϕ ( x ′ ) to predict the target observed at x ′ x' x ′ . It only requires that the prediction at the nearby input x ′ x' x ′ be close to some target y ′ ′ y'' y ′′ that occurs in the dataset, possibly paired with a different input x ′ ′ x'' x ′′ . The more restrictive paired-target assumption is recovered by imposing y ′ ′ = y ′ y'' = y' y ′′ = y ′ . Since the proposition allows y ′ ′ ≠ y ′ y'' \ne y' y ′′ = y ′ , it applies under a strictly weaker assumption and is therefore more general.
Under the assumptions of Proposition 2.5, the global Lipschitz constant satisfies
L ( ϕ ) ≥ sup x ~ ∈ M 2 L ϵ ( ϕ , x ~ ) ≥ 1 τ X ( d Y ( y , y ′ ′ ) − 2 η ) . L(\phi) \ge\sup_{\tilde{x}\in\mathcal{M}_2} L^\epsilon(\phi,\tilde{x}) \ge\frac{1}{\tau_X}\bigl(d_Y(y,y'') - 2\eta\bigr). L ( ϕ ) ≥ x ~ ∈ M 2 sup L ϵ ( ϕ , x ~ ) ≥ τ X 1 ( d Y ( y , y ′′ ) − 2 η ) .
Hence, if d Y ( y , y ′ ′ ) − 2 η ≥ C > 0 d_Y(y,y'') - 2\eta\ge C > 0 d Y ( y , y ′′ ) − 2 η ≥ C > 0 , then letting τ X → 0 + \tau_X \to0^+ τ X → 0 + forces L ( ϕ ) → ∞ L(\phi) \to\infty L ( ϕ ) → ∞ . If two distinct targets are feasible for inputs with a very small distance, then uniformly small pointwise error is incompatible with global stability.
If two targets y , y ~ ∈ F x y,\tilde{y} \in F_x y , y ~ ∈ F x share exactly the same input and both are predicted with a pointwise error at most η \eta η , then as d Y ( y , y ~ ) ≤ d Y H ( { y } , ϕ ( x ) ) + d Y H ( { y ~ } , ϕ ( x ) ) ≤ 2 η d_Y(y,\tilde{y}) \le d_Y^H(\{y\},\phi(x))+d_Y^H(\{\tilde{y}\},\phi(x)) \le2\eta d Y ( y , y ~ ) ≤ d Y H ({ y } , ϕ ( x )) + d Y H ({ y ~ } , ϕ ( x )) ≤ 2 η , necessarily η ≥ 1 2 d Y ( y , y ~ ) \eta\ge\frac{1}{2}d_Y(y,\tilde{y}) η ≥ 2 1 d Y ( y , y ~ ) . In worst-case form, this gives
η ≥ 1 2 diam ( F x ) , diam ( F x ) : = sup y , y ~ ∈ F x d Y ( y , y ~ ) . \eta\ge\frac{1}{2}\operatorname{diam}(F_x),\qquad\operatorname{diam}(F_x) := \sup_{y,\tilde{y}\in F_x} d_Y(y,\tilde{y}). η ≥ 2 1 diam ( F x ) , diam ( F x ) := y , y ~ ∈ F x sup d Y ( y , y ~ ) .
While this yields a worst-case obstruction, in statistical learning it is often more informative to quantify the typical ambiguity of the prediction task. This leads to the average kernel size and the computable empirical bounds below. The average kernel size is computed with the help of Algorithm 1 which constructs finite-sample feasible sets from Definition 1.1. It takes as input a collection of anchor points in M 2 \mathcal{M}_2 M 2 , a dataset D M ⊂ M 1 × M 2 \mathcal{D}_M \subset\mathcal{M}_1 \times\mathcal{M}_2 D M ⊂ M 1 × M 2 and threshold functions τ X : M 2 → ( 0 , ∞ ) \tau_X : \mathcal{M}_2 \to(0,\infty) τ X : M 2 → ( 0 , ∞ ) and τ Y : M 1 → ( 0 , ∞ ) \tau_Y : \mathcal{M}_1 \to(0,\infty) τ Y : M 1 → ( 0 , ∞ ) , that satisfy the following assumption.
Assumption 2.6 (Threshold compatibility with admissibility). We assume that the threshold functions τ X : M 2 → ( 0 , ∞ ) \tau_X : \mathcal{M}_2 \to(0,\infty) τ X : M 2 → ( 0 , ∞ ) and τ Y : M 1 → ( 0 , ∞ ) \tau_Y : \mathcal{M}_1 \to(0,\infty) τ Y : M 1 → ( 0 , ∞ ) are such that for all candidate pairs ( y k , x k ) , ( y k , n , x k , n ) ∈ D M (y_k,x_k),(y_{k,n},x_{k,n}) \in\mathcal{D}_M ( y k , x k ) , ( y k , n , x k , n ) ∈ D M whenever
d Y ( y k , n , y k ) ≤ τ Y ( y k ) or d X ( x k , n , x k ) ≤ τ X ( x k ) , (8) d_Y(y_{k,n},y_k) \le\tau_Y(y_k) \quad\text{or} \quad d_X(x_{k,n},x_k) \le\tau_X(x_k), \tag*{(8)} d Y ( y k , n , y k ) ≤ τ Y ( y k ) or d X ( x k , n , x k ) ≤ τ X ( x k ) , (8) then
( y k , n , x k ) ∈ R , (y_{k,n},x_k) \in\mathcal{R}, ( y k , n , x k ) ∈ R , where R \mathcal{R} R is the underlying admissible input-target multiset from Assumption 1.2.
Assumption 2.6 is a compatibility condition between the threshold-based feasible-set rule (2.3) and the underlying admissibility: it does not assume that R \mathcal{R} R is recovered from ( τ X , τ Y ) (\tau_X,\tau_Y) ( τ X , τ Y ) , but that the chosen thresholds are chosen such that reassignments remain in the multiset R \mathcal{R} R . For a given sample, we generally cannot determine whether the observed input or target has been corrupted, nor which noise mechanism is responsible. Worst-case magnitudes from input-noise and target-/measurement-noise models motivate candidate choices for τ X \tau_X τ X and τ Y \tau_Y τ Y ; see § 3 for examples. Their use in Algorithm 1 is justified only when Assumption 2.6 also holds, i.e. when the threshold-based reassignments are compatible with the underlying admissible multiset R \mathcal{R} R . The assumption requires that, for observed pairs already contained in D M ⊂ R \mathcal{D}_M \subset\mathcal{R} D M ⊂ R , a distance-based replacement of the input or target according to the corresponding threshold also yields an element of R \mathcal{R} R . The disjunctive rule in Assumption 2.6 and Algorithm 1 reflects uncertainty about the source of corruption: a candidate pair is admitted whenever it is compatible by either the input-threshold or the target-threshold criterion. Thus, the “or” does not mean that proximity in input and target space is equivalent; it reflects that the source of corruption is unknown at the sample level. Unless the noise is heteroskedastic, see [2023], the threshold functions τ X \tau_X τ X and τ Y \tau_Y τ Y are constant. If no reliable prior information is available for choosing τ X \tau_X τ X , another choice is to calibrate it using Proposition 2.5 .
Algorithm 1 returns finite multisets { F x k N ( k ) } k = 1 K \{F_{x_k}^{N(k)}\}_{k=1}^{K} { F x k N ( k ) } k = 1 K , the finite feasible sets, together with their cardinalities { N ( k ) } k = 1 K \{N(k)\}_{k=1}^{K} { N ( k ) } k = 1 K and a constructed dataset
D M ′ = { ( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k ) } , M ′ = ∑ k = 1 K N ( k ) . \mathcal{D}_{M'} = \{(y_{k,n},x_k) : 1 \le k \le K,\ 1 \le n \le N(k)\}, \qquad M' = \sum_{k=1}^{K} N(k). D M ′ = {( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k )} , M ′ = k = 1 ∑ K N ( k ) .
If threshold functions τ X \tau_X τ X and τ Y \tau_Y τ Y satisfy Assumption 2.6 and additionally we chose the number of anchor samples such that K = M K=M K = M and if each anchor’s own pair is in its feasible set and at least one set must be non-degenerate, then, as the anchors are sampled without replacement, the constructed dataset D M ′ \mathcal{D}_{M'} D M ′ from Algorithm 1 satisfies Assumption 1.2 and makes this additional assumption obsolete. The sampling procedure in the algorithm is intentionally left open and may be implemented, for example, by brute-force search, Monte Carlo methods, or nearest-neighbor queries, depending on the application. In our minimal implementation and examples in § 3 , we adopt queries based on nearest-neighbor distance matrices.
With the outputs from Algorithm 1 we define the quantity that is central to the lower and upper bounds on empirical accuracy and error.
Algorithm 1 Approximation of feasible sets
Require: K K K , N max f ∈ N N_{\max}^{f} \in\mathbb{N} N m a x f ∈ N , dataset D M \mathcal{D}_{M} D M Require: threshold functions τ X ( ⋅ ) > 0 \tau_{X}(\cdot)>0 τ X ( ⋅ ) > 0 , τ Y ( ⋅ ) > 0 \tau_{Y}(\cdot)>0 τ Y ( ⋅ ) > 0
D M ′ ← ∅ \mathcal{D}_{M'} \leftarrow\varnothing D M ′ ← ∅
for k = 1 , … , K k=1,\ldots,K k = 1 , … , K do
choose an anchor ( y k , x k ) ∈ D M (y_{k},x_{k})\in\mathcal{D}_{M} ( y k , x k ) ∈ D M ▷ Sample without replacement.
F x k N ( k ) ← ∅ F_{x_{k}}^{N(k)} \leftarrow\varnothing F x k N ( k ) ← ∅ , N ( k ) ← 0 N(k)\leftarrow0 N ( k ) ← 0
while N ( k ) < N max f N(k)<N_{\max}^{f} N ( k ) < N m a x f do ▷ Sample without replacement; until N ( k ) ≥ N max f N(k)\geq N_{\max}^{f} N ( k ) ≥ N m a x f or D M \mathcal{D}_{M} D M is empty.
sample ( y k , n , x k , n ) ∈ D M (y_{k,n},x_{k,n})\in\mathcal{D}_{M} ( y k , n , x k , n ) ∈ D M
if d Y ( y k , n , y k ) ≤ τ Y ( y k ) d_{Y}(y_{k,n},y_{k})\leq\tau_{Y}(y_{k}) d Y ( y k , n , y k ) ≤ τ Y ( y k ) or d X ( x k , n , x k ) ≤ τ X ( x k ) d_{X}(x_{k,n},x_{k})\leq\tau_{X}(x_{k}) d X ( x k , n , x k ) ≤ τ X ( x k ) then
F_{x_{k}}^{N(k)}\leftarrow F_{x_{k}}^{N(k)}\mathbin{\mathaccent\cdot\cup}\{y_{k,n}\} ▷ “\mathbin{\mathaccent\cdot\cup} ” denotes the disjoint union.
\mathcal{D}_{M'}\leftarrow\mathcal{D}_{M'}\mathbin{\mathaccent\cdot\cup}\{(y_{k,n},x_{k})\}
N ( k ) ← N ( k ) + 1 N(k)\leftarrow N(k)+1 N ( k ) ← N ( k ) + 1
end if
end while
end for
return { F x k N ( k ) } k = 1 K \{F_{x_{k}}^{N(k)}\}_{k=1}^{K} { F x k N ( k ) } k = 1 K , { N ( k ) } k = 1 K \{N(k)\}_{k=1}^{K} { N ( k ) } k = 1 K , and D M ′ \mathcal{D}_{M'} D M ′
Definition 2.8 (Average kernel size). Let p ∈ [ 1 , ∞ ) p\in[1,\infty) p ∈ [ 1 , ∞ ) , let D M \mathcal{D}_{M} D M be a dataset, and fix K , N max f ∈ N K,N_{\max}^{f}\in\mathbb{N} K , N m a x f ∈ N . Apply Algorithm 1 to obtain finite feasible sets
{ F x k N ( k ) } k = 1 K = { { y k , n } n = 1 N ( k ) } k = 1 K \{F_{x_{k}}^{N(k)}\}_{k=1}^{K}=\{\{y_{k,n}\}_{n=1}^{N(k)}\}_{k=1}^{K} { F x k N ( k ) } k = 1 K = {{ y k , n } n = 1 N ( k ) } k = 1 K and let M ′ = ∑ k = 1 K N ( k ) M'=\sum_{k=1}^{K}N(k) M ′ = ∑ k = 1 K N ( k ) . The average kernel size is defined by
Kersize ( D M ′ , p ) K = ( 1 M ′ ∑ k = 1 K 21 { N ( k ) > 1 } N ( k ) − 1 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p ) 1 / p . (9) \operatorname{Kersize}(\mathcal{D}_{M'},p)_{K}=\left(\frac{1}{M'}\sum_{k=1}^{K}\frac{2\mathbf{1}_{\{N(k)>1\}}}{N(k)-1}\sum_{1\leq n<n'\leq N(k)}d_{Y}(y_{k,n},y_{k,n'})^{p}\right)^{1/p}. \tag*{(9)} Kersize ( D M ′ , p ) K = M ′ 1 k = 1 ∑ K N ( k ) − 1 2 1 { N ( k ) > 1 } 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p 1/ p . (9) The diagonal terms d Y ( y k , n , y k , n ) = 0 d_{Y}(y_{k,n},y_{k,n})=0 d Y ( y k , n , y k , n ) = 0 are omitted, and the normalization averages pairwise distances within each feasible set before averaging across all allocated samples. Thus, Kersize ( D M ′ , p ) K \operatorname{Kersize}(\mathcal{D}_{M'},p)_{K} Kersize ( D M ′ , p ) K measures the typical spread of targets associated with locally indistinguishable inputs and is a sample-weighted within-group average pairwise distance. The average kernel size provides the following finite sample, deterministic lower and upper bounds on the empirical error of regressors.
Theorem 2.9 (Deterministic accuracy bounds and upper-hemicontinuous attainment). Let p ∈ [ 1 , ∞ ) p\in[1,\infty) p ∈ [ 1 , ∞ ) , assume Assumptions 1.2 and 2.1, and let D M ′ = { ( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k ) } \mathcal{D}_{M'}=\{(y_{k,n},x_{k}):1\leq k\leq K,1\leq n\leq N(k)\} D M ′ = {( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k )} , with M ′ = ∑ k = 1 K N ( k ) M'=\sum_{k=1}^{K}N(k) M ′ = ∑ k = 1 K N ( k ) , be the constructed dataset returned by Algorithm 1 and where N ( k ) ≥ 1 N(k)\geq1 N ( k ) ≥ 1 for every k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } . Then, every regressor ϕ : M 2 ⇒ Y \phi:\mathcal{M}_{2}\Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y with nonempty values satisfies
1 2 Kersize ( D M ′ , p ) K ≤ L ( D M ′ , ϕ , p ) . \frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{M'},p)_{K}\leq\mathcal{L}(\mathcal{D}_{M'},\phi,p). 2 1 Kersize ( D M ′ , p ) K ≤ L ( D M ′ , ϕ , p ) . If additionally d X ( x k , x k ′ ) > 0 d_{X}(x_{k},x_{k'})>0 d X ( x k , x k ′ ) > 0 for all k ≠ k ′ k\neq k' k = k ′ , then
1 2 Kersize ( D M ′ , p ) K ≤ inf ϕ u h c L ( D M ′ , ϕ u h c , p ) = inf ϕ L ( D M ′ , ϕ , p ) ≤ Kersize ( D M ′ , p ) K , \frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{M'},p)_{K}\leq\inf_{\phi_{\mathrm{uhc}}}\mathcal{L}(\mathcal{D}_{M'},\phi_{\mathrm{uhc}},p)=\inf_{\phi}\mathcal{L}(\mathcal{D}_{M'},\phi,p)\leq\operatorname{Kersize}(\mathcal{D}_{M'},p)_{K}, 2 1 Kersize ( D M ′ , p ) K ≤ ϕ uhc inf L ( D M ′ , ϕ uhc , p ) = ϕ inf L ( D M ′ , ϕ , p ) ≤ Kersize ( D M ′ , p ) K , where the first infimum is taken over all upper hemicontinuous regressors with nonempty, compact values and the second over all maps with nonempty bounded values. The infimum is attained by an upper hemicontinuous regressor with nonempty compact values. The attaining regressor can be chosen singleton-valued on a neighborhood of every anchor x k x_{k} x k .
Theorem 2.9 shows that enlarging the admissible model class to include discontinuous set-valued regressors does not improve the optimal empirical error on the constructed dataset. This supports the intuition that the average kernel size quantifies the residual variation in the target given a fixed pseudo-metric on the input space. If this quantity is nonzero, then part of the prediction error is intrinsic to the task and cannot be removed by changing the model or learning architecture alone. Although Theorem 2.9 holds for all sample sizes M , K ∈ N M,K\in\mathbb{N} M , K ∈ N and all feasible set cardinalities N ( k ) ∈ N N(k)\in\mathbb{N} N ( k ) ∈ N for all k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } , in the numerical experiments in Section 3 to ensure the average kernel size is representative of the whole dataset with size M ∈ N M\in\mathbb{N} M ∈ N , if possible we chose K = M K=M K = M . The feasible set cardinalities N ( k ) ∈ N N(k)\in\mathbb{N} N ( k ) ∈ N are determined by the thresholds, which we chose to satisfy Assumption 2.6.
Under additional assumptions on the target ambient space the minimizer admits a continuous single-valued extension via a standard bump function construction.
Corollary 2.10 (Continuous attainment under linear extension assumptions). Assume, in addition to the assumptions made in Theorem 2.9 including that d X ( x k , x k ′ ) > 0 d_{\mathcal{X}}(x_k,x_{k'})>0 d X ( x k , x k ′ ) > 0 for all k ≠ k ′ k\ne k' k = k ′ , that Y \mathcal{Y} Y is a convex subset of a normed linear space and that d Y d_{\mathcal{Y}} d Y is a norm. Then, the finite assignment x k ↦ z k x_k\mapsto z_k x k ↦ z k admits a continuous single-valued extension θ : M 2 → Y \theta:\mathcal{M}_2\to\mathcal{Y} θ : M 2 → Y , and θ \theta θ attains the unrestricted empirical minimum on M 2 \mathcal{M}_2 M 2 .
In the scalar-valued case, where Y ⊂ R \mathcal{Y}\subset\mathbb{R} Y ⊂ R , the minimizer admits a Lipschitz-continuous single-valued extension via the extension theorem from McShane [1934]. For classification, we define the average kernel size by using the Hamming distance in (2.4) with p = 1 p=1 p = 1 . Since accuracy is an affine transformation of a metric rather than a metric itself, the classification statement is formulated as an upper bound on achievable accuracy and we obtain the upper bound in Corollary 2.11 under the additional Assumption 2.2, as an immediate consequence of Theorem 2.9.
Corollary 2.11 (Accuracy bounds for upper hemicontinuous classifiers). Assume Assumptions 1.2 and 2.1 and 2.2, with p = 1 p=1 p = 1 , d Y = d H d_{\mathcal{Y}}=d_H d Y = d H , and let D M ′ = { ( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k ) } D_{M'}=\{(y_{k,n},x_k):1\le k\le K,\ 1\le n\le N(k)\} D M ′ = {( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k )} with M ′ = ∑ k = 1 K N ( k ) M'=\sum_{k=1}^{K}N(k) M ′ = ∑ k = 1 K N ( k ) be the dataset returned by Algorithm 1 and where N ( k ) ≥ 1 N(k)\ge1 N ( k ) ≥ 1 for every k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } . Then, every classifier ϕ : M 2 ⇒ Y \phi:\mathcal{M}_2\Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y with nonempty values satisfies
Acc ( D M ′ , ϕ ) ≤ 1 − 1 2 Kersize ( D M ′ , 1 ) K . \operatorname{Acc}(D_{M'},\phi)\le1-\frac{1}{2}\operatorname{Kersize}(D_{M'},1)K. Acc ( D M ′ , ϕ ) ≤ 1 − 2 1 Kersize ( D M ′ , 1 ) K . If additionally d X ( x k , x k ′ ) > 0 d_{\mathcal{X}}(x_k,x_{k'})>0 d X ( x k , x k ′ ) > 0 for all k ≠ k ′ k\ne k' k = k ′ , then
1 − Kersize ( D M ′ , 1 ) K ≤ sup ϕ u h c Acc ( D M ′ , ϕ u h c ) = sup ϕ Acc ( D M ′ , ϕ ) ≤ 1 − 1 2 Kersize ( D M ′ , 1 ) K . 1-\operatorname{Kersize}(D_{M'},1)K\le\sup_{\phi_{\mathrm{uhc}}}\operatorname{Acc}(D_{M'},\phi_{\mathrm{uhc}})=\sup_{\phi}\operatorname{Acc}(D_{M'},\phi)\le1-\frac{1}{2}\operatorname{Kersize}(D_{M'},1)K. 1 − Kersize ( D M ′ , 1 ) K ≤ ϕ uhc sup Acc ( D M ′ , ϕ uhc ) = ϕ sup Acc ( D M ′ , ϕ ) ≤ 1 − 2 1 Kersize ( D M ′ , 1 ) K . The common supremum is attained by an upper hemicontinuous classifier with nonempty finite values.
Remark 2.12 (Classification target set extension). Since no classifier attaining the best accuracy needs to be constructed for the upper bound, the upper-bound statement in Corollary 2.11 also holds when the target space in Assumption 2.2 is replaced by
Y = Δ C − 1 = { p ∈ R C : p i ≥ 0 , i = 1 , … , C , ∑ i = 1 C p i = 1 } , \mathcal{Y}=\Delta^{C-1}=\left\{p\in\mathbb{R}^{C}:p_i\ge0,\ i=1,\ldots,C,\ \sum_{i=1}^{C}p_i=1\right\}, Y = Δ C − 1 = { p ∈ R C : p i ≥ 0 , i = 1 , … , C , i = 1 ∑ C p i = 1 } ,
equipped with the metric d Y ( y , y ′ ) : = 1 2 ∥ y − y ′ ∥ 1 d_{\mathcal{Y}}(y,y'):=\frac{1}{2}\lVert y-y'\rVert_1 d Y ( y , y ′ ) := 2 1 ∥ y − y ′ ∥ 1 .
Theorem 2.9 and Corollary 2.11 provide lower, respectively upper, bounds to the error, or respectively accuracy, of any model evaluated on a dataset constructed with Algorithm 1. A natural question is, whether the error, or accuracy, on the constructed dataset are near the error or accuracy on the original dataset. In the following we provide a deterministic comparison bound of these two quantities where we utilize a graph-based argument. Let E ⊂ { 1 , … , M } 2 E\subset\{1,\ldots,M\}^2 E ⊂ { 1 , … , M } 2 denote the collection of reassignment edges generated by Algorithm 1. An edge e = ( k , j ) ∈ E e=(k,j)\in E e = ( k , j ) ∈ E indicates that the target y j y_j y j is reassigned to the anchor input x k x_k x k . Thus, M ′ = ∣ E ∣ M'=|E| M ′ = ∣ E ∣ , and the constructed dataset empirical loss can be written as an average over e ∈ E e \in E e ∈ E . For m ∈ { 1 , … , M } m \in\{1,\ldots,M\} m ∈ { 1 , … , M } , define the original pointwise loss by
ℓ m ( ϕ ) : = d Y H ( { y m } , ϕ ( x m ) ) . \ell_m(\phi) := d_Y^H(\{y_m\},\phi(x_m)). ℓ m ( ϕ ) := d Y H ({ y m } , ϕ ( x m )) .
For each edge e = ( k , j ) ∈ E e=(k,j)\in E e = ( k , j ) ∈ E , we associate a reference index r ( e ) ∈ { 1 , … , M } r(e)\in\{1,\ldots,M\} r ( e ) ∈ { 1 , … , M } and a corresponding reassignment error γ e \gamma_e γ e . If e e e is generated by the input distance criterion, we set
r ( e ) = j , γ e : = d Y H ( ϕ ( x k ) , ϕ ( x j ) ) . r(e)=j,\qquad\gamma_e := d_Y^H(\phi(x_k),\phi(x_j)). r ( e ) = j , γ e := d Y H ( ϕ ( x k ) , ϕ ( x j )) .
If ϕ \phi ϕ is L L L -Lipschitz, then γ e ≤ L d X ( x k , x j ) \gamma_e\le Ld_X(x_k,x_j) γ e ≤ L d X ( x k , x j ) . If e e e is generated by the target distance criterion, we instead set
r ( e ) = k , γ e : = d Y ( y j , y k ) . r(e)=k,\qquad\gamma_e := d_Y(y_j,y_k). r ( e ) = k , γ e := d Y ( y j , y k ) .
If both criteria apply, we choose the reference index corresponding to the smaller of the two available upper bounds. With this choice, the reverse triangle inequality for the Hausdorff metric gives, for every e = ( k , j ) ∈ E e=(k,j)\in E e = ( k , j ) ∈ E ,
∣ d Y H ( { y j } , ϕ ( x k ) ) − ℓ r ( e ) ( ϕ ) ∣ ≤ γ e . \left|d_Y^H(\{y_j\},\phi(x_k))-\ell_{r(e)}(\phi)\right|\le\gamma_e. d Y H ({ y j } , ϕ ( x k )) − ℓ r ( e ) ( ϕ ) ≤ γ e .
We define the induced reference weights by
w m : = 1 M ′ # { e ∈ E : r ( e ) = m } , m = 1 , … , M . w_m:=\frac{1}{M'}\#\{e\in E:r(e)=m\},\qquad m=1,\ldots,M. w m := M ′ 1 # { e ∈ E : r ( e ) = m } , m = 1 , … , M .
Thus w m w_m w m is the fraction of constructed tuples whose reference index is m m m . ∑ m = 1 M w m = 1 \sum_{m=1}^M w_m=1 ∑ m = 1 M w m = 1 and if N ( m ) N(m) N ( m ) denotes the number of constructed tuples for which m m m is the reference index, then
w m = N ( m ) M ′ . w_m=\frac{N(m)}{M'}. w m = M ′ N ( m ) .
Finally, define
Γ p ( ϕ ) : = ( 1 M ′ ∑ e ∈ E γ e p ) 1 / p , B ϕ : = max 1 ≤ m ≤ M ℓ m ( ϕ ) . \Gamma_p(\phi):=\left(\frac{1}{M'}\sum_{e\in E}\gamma_e^p\right)^{1/p},\qquad B_\phi:=\max_{1\le m\le M}\ell_m(\phi). Γ p ( ϕ ) := ( M ′ 1 e ∈ E ∑ γ e p ) 1/ p , B ϕ := 1 ≤ m ≤ M max ℓ m ( ϕ ) .
The quantity Γ p ( ϕ ) \Gamma_p(\phi) Γ p ( ϕ ) measures the average geometric error introduced by the reassignments, while the weights w m w_m w m quantify the frequency with which the original observations are represented through the reference construction.
Proposition 2.13 (Original versus constructed dataset empirical loss). Assume Assumptions 1.2 and 2.1, and let D M ′ = { ( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k ) } D_{M'}=\{(y_{k,n},x_k):1\le k\le K,\ 1\le n\le N(k)\} D M ′ = {( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k )} with M ′ = ∑ k = 1 K N ( k ) M'=\sum_{k=1}^K N(k) M ′ = ∑ k = 1 K N ( k ) be the dataset returned by Algorithm 1 and where N ( k ) ≥ 1 N(k)\ge1 N ( k ) ≥ 1 for every k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } . For every p ∈ [ 1 , ∞ ) p\in[1,\infty) p ∈ [ 1 , ∞ ) and every regressor ϕ : M 2 ⇒ Y \phi:\mathcal{M}_2\Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y with nonempty values,
∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ Γ p ( ϕ ) + B ϕ ( ∑ m = 1 M ∣ w m − 1 M ∣ ) 1 / p . \left|\mathcal{L}(D_{M'},\phi,p)-\mathcal{L}(D_M,\phi,p)\right|
\le\Gamma_p(\phi)+B_\phi\left(\sum_{m=1}^M\left|w_m-\frac{1}{M}\right|\right)^{1/p}. ∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ Γ p ( ϕ ) + B ϕ ( m = 1 ∑ M w m − M 1 ) 1/ p .
Remark 2.14 (Role of the thresholds). The thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y control the geometric term Γ p ( ϕ ) \Gamma_p(\phi) Γ p ( ϕ ) in Proposition 2.13. By definition of Algorithm 1 for an input edge e = ( k , j ) e=(k,j) e = ( k , j ) , we have that d X ( x k , x j ) ≤ τ X ( x k ) d_X(x_k,x_j)\le\tau_X(x_k) d X ( x k , x j ) ≤ τ X ( x k ) and, if ϕ \phi ϕ is L L L -Lipschitz, γ e = d Y H ( ϕ ( x k ) , ϕ ( x j ) ) ≤ L τ X ( x k ) \gamma_e=d_Y^H(\phi(x_k),\phi(x_j))\le L\tau_X(x_k) γ e = d Y H ( ϕ ( x k ) , ϕ ( x j )) ≤ L τ X ( x k ) . For a target edge, we have that γ e = d Y ( y j , y k ) ≤ τ Y ( y k ) \gamma_e=d_Y(y_j,y_k)\le\tau_Y(y_k) γ e = d Y ( y j , y k ) ≤ τ Y ( y k ) . Consequently, if τ X ( x ) ≤ τ ‾ X \tau_X(x)\le\overline{\tau}_X τ X ( x ) ≤ τ X and τ Y ( y ) ≤ τ ‾ Y \tau_Y(y)\le\overline{\tau}_Y τ Y ( y ) ≤ τ Y , then Γ p ( ϕ ) ≤ max { L τ ‾ X , τ ‾ Y } \Gamma_p(\phi)\le\max\{L\overline{\tau}_X,\overline{\tau}_Y\} Γ p ( ϕ ) ≤ max { L τ X , τ Y } . If additionally the reference weights are balanced; meaning that
w m = N ( m ) M ′ = 1 M w_m=\frac{N(m)}{M'}=\frac{1}{M} w m = M ′ N ( m ) = M 1
for all m ∈ { 1 , … , M } m\in\{1,\ldots,M\} m ∈ { 1 , … , M } , then Proposition 2.13 implies that
∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ max { L τ ‾ X , τ ‾ Y } . \left|\mathcal{L}(D_{M'},\phi,p)-\mathcal{L}(D_M,\phi,p)\right|
\le\max\{L\overline{\tau}_X,\overline{\tau}_Y\}. ∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ max { L τ X , τ Y } .
The thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y therefore control the geometric error. Control of Γ p ( ϕ ) \Gamma_p(\phi) Γ p ( ϕ ) by τ X \tau_X τ X and τ Y \tau_Y τ Y does not by itself imply a nontrivial transfer of lower bounds from D M ′ D_{M'} D M ′ to D M D_M D M . For predominantly target-based reassignments, Γ p ( ϕ ) \Gamma_p(\phi) Γ p ( ϕ ) may already absorb the ambiguity on D M ′ D_{M'} D M ′ , so the induced accuracy bounds on D M D_M D M can be vacuous. Note that no independence assumption appears anywhere in the proposition.
Non-Vanishing Generalization Gaps
Up to this point, all statements have been deterministic and require only a dataset together with a metric structure. Extending the work on inverse problems in Gottschling et al. [2026] to regression and classification problems, we introduce a probabilistic setting to interpret the average kernel size as a model-independent component of irreducible prediction error. This requires measurability assumptions and the existence of conditional laws. For simplicity we consider single-valued measurable maps in the following and leave extensions to set-valued measurable regressors and classifiers to future work.
Assumption 2.15 (Standard Borel quotient setting). Let x ∼ x ′ x \sim x' x ∼ x ′ if and only if d X ( x , x ′ ) = 0 d_{\mathcal{X}}(x,x')=0 d X ( x , x ′ ) = 0 , let
M ‾ 2 : = M 2 / ∼ , \overline{\mathcal{M}}_2 := \mathcal{M}_2/\sim, M 2 := M 2 / ∼ , and let q : M 2 → M ‾ 2 q:\mathcal{M}_2 \to\overline{\mathcal{M}}_2 q : M 2 → M 2 be the quotient map. We assume that M ‾ 2 \overline{\mathcal{M}}_2 M 2 and Y \mathcal{Y} Y are standard Borel spaces. For example, it suffices that they are Polish spaces equipped with their Borel sigma-algebras. We also assume that ( y , y ′ ) ↦ d Y ( y , y ′ ) p (y,y') \mapsto d_{\mathcal{Y}}(y,y')^p ( y , y ′ ) ↦ d Y ( y , y ′ ) p is Borel measurable.
Assumption 2.16 (Data-generating law). Let ( Ω , F , P ) (\Omega,\mathcal{F},\mathbb{P}) ( Ω , F , P ) be a probability space. Equip M 2 \mathcal{M}_2 M 2 with the Borel sigma-algebra of its pseudo-metric topology, and let X : Ω → M 2 X:\Omega\to\mathcal{M}_2 X : Ω → M 2 and Y : Ω → Y Y:\Omega\to\mathcal{Y} Y : Ω → Y be measurable. The quotient map q q q is Borel measurable, so we may define the quotient input random variable
X ‾ : = q ( X ) . \overline{X}:=q(X). X := q ( X ) . Let μ \mu μ denote the joint law of ( Y , X ‾ ) (Y,\overline{X}) ( Y , X ) .
Under Assumption 2.16, Theorem 8.3 implies that there exists a regular conditional law
μ x ‾ ( A ) : = P ( Y ∈ A ∣ X ‾ = x ‾ ) , A ∈ B ( Y ) , \mu_{\overline{x}}(A):=\mathbb{P}(Y\in A\mid\overline{X}=\overline{x}),\qquad A\in\mathcal{B}(\mathcal{Y}), μ x ( A ) := P ( Y ∈ A ∣ X = x ) , A ∈ B ( Y ) , defined for μ X ‾ \mu_{\overline{X}} μ X -almost every x ‾ \overline{x} x . Now let Y Y Y and Y ′ Y' Y ′ be conditionally independent with common conditional law μ X ‾ \mu_{\overline{X}} μ X given X ‾ \overline{X} X . Similar to the deterministic analog of the average kernel size in (9) , we define the distributional analogue average kernel size by
Kersize ( D μ , p ) : = ( E X ‾ E Y , Y ′ ∣ X ‾ [ d Y ( Y , Y ′ ) p ] ) 1 / p . \operatorname{Kersize}(\mathcal{D}_{\mu},p):=\left(\mathbb{E}_{\overline{X}}\mathbb{E}_{Y,Y'\mid\overline{X}}\left[d_{\mathcal{Y}}(Y,Y')^p\right]\right)^{1/p}. Kersize ( D μ , p ) := ( E X E Y , Y ′ ∣ X [ d Y ( Y , Y ′ ) p ] ) 1/ p . For classification, we define the distributional analogue average kernel size analogously, replacing d Y d_{\mathcal{Y}} d Y by the Hamming distance d H d_H d H and taking p = 1 p=1 p = 1 . In the Euclidean setting we can show that the distributional analogue average kernel size also quantifies the irreducible error, akin to the bias-variance decomposition introduced in Geman et al. [1992].
Proposition 2.17 (Exact Euclidean squared-loss identity). Assume Assumptions 2.15 and 2.16, Y = R d \mathcal{Y}=\mathbb{R}^d Y = R d , d Y ( y , y ′ ) = ∥ y − y ′ ∥ 2 d_{\mathcal{Y}}(y,y')=\lVert y-y'\rVert_2 d Y ( y , y ′ ) = ∥ y − y ′ ∥ 2 , and E ∥ Y ∥ 2 2 < ∞ \mathbb{E}\lVert Y\rVert_2^2<\infty E ∥ Y ∥ 2 2 < ∞ . Let m ( X ‾ ) : = E [ Y ∣ X ‾ ] m(\overline{X}):=\mathbb{E}[Y\mid\overline{X}] m ( X ) := E [ Y ∣ X ] denote the conditional mean. Then, every measurable ϕ ˉ : M 2 → R d \bar{\phi}:\mathcal{M}_2\to\mathbb{R}^d ϕ ˉ : M 2 → R d with finite squared risk satisfies
E ∥ Y − ϕ ˉ ( X ‾ ) ∥ 2 2 = 1 2 Kersize ( D μ , 2 ) 2 + E ∥ m ( X ‾ ) − ϕ ˉ ( X ‾ ) ∥ 2 2 . \mathbb{E}\lVert Y-\bar{\phi}(\overline{X})\rVert_2^2
=\frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{\mu},2)^2+\mathbb{E}\lVert m(\overline{X})-\bar{\phi}(\overline{X})\rVert_2^2. E ∥ Y − ϕ ˉ ( X ) ∥ 2 2 = 2 1 Kersize ( D μ , 2 ) 2 + E ∥ m ( X ) − ϕ ˉ ( X ) ∥ 2 2 . Consequently,
inf ϕ ˉ ( E ∥ Y − ϕ ˉ ( X ‾ ) ∥ 2 2 ) 1 / 2 = 1 2 Kersize ( D μ , 2 ) , \inf_{\bar{\phi}}\left(\mathbb{E}\lVert Y-\bar{\phi}(\overline{X})\rVert_2^2\right)^{1/2}
=\frac{1}{\sqrt{2}}\operatorname{Kersize}(\mathcal{D}_{\mu},2), ϕ ˉ inf ( E ∥ Y − ϕ ˉ ( X ) ∥ 2 2 ) 1/2 = 2 1 Kersize ( D μ , 2 ) , where the infimum is attained by the conditional mean m m m .
A large distributional analogue average kernel size therefore indicates that a substantial part of the prediction error is caused by aleatoric uncertainty or non-identifiability rather than by an inadequate model class. We define the generalized risk of a measurable regressor ϕ ˉ : M ‾ 2 → Y \bar{\phi}:\overline{\mathcal{M}}_2\to\mathcal{Y} ϕ ˉ : M 2 → Y by
L ( D μ , ϕ ˉ , p ) : = ( E ( Y , X ‾ ) ∼ μ [ d Y ( ϕ ˉ ( X ‾ ) , Y ) p ] ) 1 / p , \mathcal{L}(\mathcal{D}_{\mu},\bar{\phi},p):=\left(\mathbb{E}_{(Y,\overline{X})\sim\mu}\left[d_{\mathcal{Y}}(\bar{\phi}(\overline{X}),Y)^p\right]\right)^{1/p}, L ( D μ , ϕ ˉ , p ) := ( E ( Y , X ) ∼ μ [ d Y ( ϕ ˉ ( X ) , Y ) p ] ) 1/ p ,
and, analogously, the generalized accuracy of a measurable classifier by
Acc ( D μ , ϕ ˉ ) : = 1 − E ( Y , X ˉ ) ∼ μ [ d H ( ϕ ˉ ( X ˉ ) , Y ) ] . \operatorname{Acc}(\mathcal{D}_{\mu},\bar{\phi}) := 1 - \mathbb{E}_{(Y,\bar{X})\sim\mu}\left[d_{\mathcal{H}}(\bar{\phi}(\bar{X}),Y)\right]. Acc ( D μ , ϕ ˉ ) := 1 − E ( Y , X ˉ ) ∼ μ [ d H ( ϕ ˉ ( X ˉ ) , Y ) ] .
This probabilistic interpretation also yields lower bounds on generalization gaps whenever the training error is substantially smaller than the ambiguity encoded by the conditional law.
Proposition 2.18 (Positive generalization gaps from conditional ambiguity). Assume Assumptions 2.15 and 2.16 and let M ∈ N M \in\mathbb{N} M ∈ N and D M = { ( y m , x m ) } m = 1 M ⊂ M 1 × M 2 D_M = \{(y_m,x_m)\}_{m=1}^{M} \subset\mathcal{M}_1 \times\mathcal{M}_2 D M = {( y m , x m ) } m = 1 M ⊂ M 1 × M 2 .
Regression. Let p ≥ 1 p \ge1 p ≥ 1 and ϵ ∈ ( 0 , 1 2 Kersize ( D μ , p ) ) \epsilon\in(0,\frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{\mu},p)) ϵ ∈ ( 0 , 2 1 Kersize ( D μ , p )) . Let ϕ ˉ : M 2 → Y \bar{\phi}:\mathcal{M}_2 \to\mathcal{Y} ϕ ˉ : M 2 → Y be measurable and let ϕ = ϕ ˉ ∘ q : M 2 → Y \phi= \bar{\phi} \circ q : \mathcal{M}_2 \to\mathcal{Y} ϕ = ϕ ˉ ∘ q : M 2 → Y with L ( D μ , ϕ ˉ , p ) < ∞ \mathcal{L}(\mathcal{D}_{\mu},\bar{\phi},p) < \infty L ( D μ , ϕ ˉ , p ) < ∞ . If its empirical training loss satisfies
L ( D M , ϕ , p ) ≤ ϵ , \mathcal{L}(D_M,\phi,p) \le\epsilon, L ( D M , ϕ , p ) ≤ ϵ , then
0 < 1 2 Kersize ( D μ , p ) − ϵ ≤ L ( D μ , ϕ ˉ , p ) − L ( D M , ϕ , p ) . 0 < \frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{\mu},p) - \epsilon\le\mathcal{L}(\mathcal{D}_{\mu},\bar{\phi},p) - \mathcal{L}(D_M,\phi,p). 0 < 2 1 Kersize ( D μ , p ) − ϵ ≤ L ( D μ , ϕ ˉ , p ) − L ( D M , ϕ , p ) . If p = 2 p=2 p = 2 and Y = R d \mathcal{Y}=\mathbb{R}^{d} Y = R d with Euclidean loss, then the sharper exact Bayes bound holds:
0 < 1 2 Kersize ( D μ , 2 ) − ϵ ≤ L ( D μ , ϕ ˉ , 2 ) − L ( D M , ϕ , 2 ) , 0 < \frac{1}{\sqrt{2}}\operatorname{Kersize}(\mathcal{D}_{\mu},2) - \epsilon\le\mathcal{L}(\mathcal{D}_{\mu},\bar{\phi},2) - \mathcal{L}(D_M,\phi,2), 0 < 2 1 Kersize ( D μ , 2 ) − ϵ ≤ L ( D μ , ϕ ˉ , 2 ) − L ( D M , ϕ , 2 ) , provided Kersize ( D μ , 2 ) > 2 ϵ \operatorname{Kersize}(\mathcal{D}_{\mu},2) > \sqrt{2}\epsilon Kersize ( D μ , 2 ) > 2 ϵ .
Classification. Let the target space be the finite one-hot set from Assumption 2.2 and let ϵ ∈ ( 0 , 1 2 Kersize ( D μ , 1 ) ) \epsilon\in(0,\frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{\mu},1)) ϵ ∈ ( 0 , 2 1 Kersize ( D μ , 1 )) . If a measurable quotient classifier satisfies
Acc ( D M , ϕ ) ≥ 1 − ϵ , \operatorname{Acc}(D_M,\phi) \ge1-\epsilon, Acc ( D M , ϕ ) ≥ 1 − ϵ , then
0 < 1 2 Kersize ( D μ , 1 ) − ϵ ≤ Acc ( D M , ϕ ) − Acc ( D μ , ϕ ˉ ) . 0 < \frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{\mu},1) - \epsilon\le\operatorname{Acc}(D_M,\phi) - \operatorname{Acc}(\mathcal{D}_{\mu},\bar{\phi}). 0 < 2 1 Kersize ( D μ , 1 ) − ϵ ≤ Acc ( D M , ϕ ) − Acc ( D μ , ϕ ˉ ) .
Under ideal sampling conditions the following theorem relates the distributional analogue average kernel size to a finite-sample estimator.
Proposition 2.19 (Concentration of the ideal conditional-sampling estimator). Assume Assumptions 2.15 and 2.16. Let p ∈ [ 1 , ∞ ) p \in[1,\infty) p ∈ [ 1 , ∞ ) and assume
v max : = sup y , y ′ ∈ Y d Y ( y , y ′ ) p < ∞ . v_{\max} := \sup_{y,y' \in\mathcal{Y}} d_{\mathcal{Y}}(y,y')^{p} < \infty. v m a x := y , y ′ ∈ Y sup d Y ( y , y ′ ) p < ∞. For k = 1 , … , K k=1,\ldots,K k = 1 , … , K , sample X ˉ k \bar{X}_k X ˉ k independently from μ X ˉ \mu_{\bar{X}} μ X ˉ . Let N K ≥ 2 N_K \ge2 N K ≥ 2 and conditional on all anchors ( X ˉ 1 , … , X ˉ K ) (\bar{X}_1,\ldots,\bar{X}_K) ( X ˉ 1 , … , X ˉ K ) , sample an array Y k , n Y_{k,n} Y k , n for n ∈ { 1 , … , N K } n \in\{1,\ldots,N_K\} n ∈ { 1 , … , N K } mutually independent from μ X ˉ k \mu_{\bar{X}_k} μ X ˉ k . Assume that the arrays Y k Y_k Y k and Y k ′ Y_{k'} Y k ′ are independent for every k ≠ k ′ k \ne k' k = k ′ , regardless of whether the corresponding anchors X ˉ k \bar{X}_k X ˉ k and X ˉ k ′ \bar{X}_{k'} X ˉ k ′ coincide. Define
κ ^ K , N K p : = 1 K ∑ k = 1 K 2 N K ( N K − 1 ) ∑ 1 ≤ n < n ′ ≤ N K d Y ( Y k , n , Y k , n ′ ) p . \widehat{\kappa}^{p}_{K,N_K} := \frac{1}{K}\sum_{k=1}^{K}\frac{2}{N_K(N_K-1)}\sum_{1\le n<n'\le N_K}d_{\mathcal{Y}}(Y_{k,n},Y_{k,n'})^{p}. κ K , N K p := K 1 k = 1 ∑ K N K ( N K − 1 ) 2 1 ≤ n < n ′ ≤ N K ∑ d Y ( Y k , n , Y k , n ′ ) p . Then, for every δ > 0 \delta>0 δ > 0 ,
P ( ∣ κ ^ K , N K p − Kersize ( D μ , p ) p ∣ ≥ δ ) ≤ 2 exp ( − 2 K δ 2 v max 2 ) . \mathbb{P}\left(\left|\widehat{\kappa}^{p}_{K,N_K}-\operatorname{Kersize}(\mathcal{D}_{\mu},p)^{p}\right|\ge\delta\right)\le2\exp\left(-\frac{2K\delta^{2}}{v_{\max}^{2}}\right). P ( κ K , N K p − Kersize ( D μ , p ) p ≥ δ ) ≤ 2 exp ( − v m a x 2 2 K δ 2 ) . κ ^ K , N K p \widehat{\kappa}^{p}_{K,N_K} κ K , N K p converges in probability to Kersize ( D μ , p ) p \operatorname{Kersize}(\mathcal{D}_{\mu},p)^{p} Kersize ( D μ , p ) p as K → ∞ K\to\infty K → ∞ , for any choice $N_K\ge 2.
Remark 2.20 (Ideal conditional sampling versus Algorithm 1). The estimator in Proposition 2.19 assumes an ideal two-stage design: anchor inputs are sampled from the quotient input law and, at every anchor, repeated targets are sampled conditionally independently from the exact law of Y ∣ X ˉ = x ˉ Y \mid\bar{X}=\bar{x} Y ∣ X ˉ = x ˉ . Algorithm 1 does not require generating such samples, as it selects and is allowed to reuse observations from one finite dataset according to input- and target-distance thresholds; feasible sets can overlap and their elements can be dependent. The average kernel size returned by Algorithm 1 is a deterministic, data-dependent geometric surrogate. Proposition 2.19 should not be read as a consistency theorem for that surrogate, as such a result would require additional assumptions controlling neighborhood shrinkage, effective within-neighborhood sample sizes, continuity of the conditional law, sample reuse, and the weights induced by the selection rule.
Applications
In the following we provide an outline of experiments and implementation, however, comprehensive details on the implementation and considered datasets are in the Appendix in § 9.1 . We applied the framework to a range of tabular and image-regression tasks and image-classification tasks. For each experiment, we sampled finite feasible sets, constructed the dataset D M ′ \mathcal{D}_{M'} D M ′ , computed the average kernel size, and used Theorem 2.9 and Corollary 2.11 to obtain model-independent bounds on the optimal empirical regression loss and classification error, respectively. The experiments are intended as illustrations of the deterministic construction. They address three empirical questions: i i i ) whether the lower bound is nontrivial across domains, i i ii ii ) how reported or measured model performance compares numerically with the resulting interval, and i i i iii iii ) how sensitive the bound is to the threshold and parameters used for the feasible set construction. We compared the theoretical intervals with the error and accuracy of several regressors and classifiers evaluated on both the original datasets and, where the models are available, on constructed datasets. We used a synthetic regression example to study how the accuracy bounds interact with the accuracy-stability trade-off from Proposition 2.5 .
Across all experiments, the threshold-selection rule was as follows: when an input-noise model or target/label measurement-noise model was available, we set τ X \tau_X τ X and τ Y \tau_Y τ Y equal to conservative worst-case noise magnitudes implied by that model. If such knowledge was not available, for the input threshold τ X \tau_X τ X we followed a practical empirical heuristic based on quantiles detailed in the Appendix in § 9.1.2 and assumed ideal, noiseless targets with τ Y = 0 \tau_Y = 0 τ Y = 0 . For τ Y = 0 \tau_Y = 0 τ Y = 0 the target criterion in the ”or”-condition Algorithm 1 was not included. We used a wavelet-based metric with a conversion to float32 for all image inputs described in the Appendix in § 9.1.1 ; for images represented in float64, this induces a pseudo-metric. All details on the datasets, wavelet-based metric and feasible set sampling are in the Appendix in § 9.1 .
Theoretical assumptions and guarantees versus experimental procedure
In all experiments, if an input-noise model or target/label measurement-noise model was available, then τ X \tau_X τ X and τ Y \tau_Y τ Y were set to conservative worst-case values implied by that model; this first choice satisfies a part of Assumption 2.6 without taking into account the correct frequencies in the underlying admissible multiset.
For smaller datasets, (M ≈ 1 k M \approx1k M ≈ 1 k ), we computed the bounds on the full dataset and did not compute these separately on the train and test splits. For large and high-dimensional datasets, such as Tropical Cyclone and RESISC45, with a full dataset size in the range M ≈ 100 k M \approx100k M ≈ 100 k and/or inputs with higher dimension, we computed the bounds on random subsets of anchor samples with size K = 1 k K = 1k K = 1 k or K = 3 k K = 3k K = 3 k from the train or test splits over 20 different random seeds. As K < M K < M K < M Assumption 2.6 is not satisfied. Here we reported the mean and standard deviation of the resulting bounds. For even larger datasets M ≫ 100 k M \gg100k M ≫ 100 k where a sample number K ≈ 3 k K \approx3k K ≈ 3 k is not representative of the dataset, the implementation of Algorithm 1 using nearest neighbors may not be feasible. Extending Algorithm 1 to be applicable to this scale is beyond the scope of this work.
Comparison to theoretical assumptions and guarantees: Theorem 2.9 and Corollary 2.11 only provide bounds on the error, respectively accuracy, on the constructed dataset D M ′ \mathcal{D}_{M'} D M ′ from Algorithm 1. We explicitly computed the accuracy on the original and constructed dataset to validate the bounds for the synthetic regression example, MNIST, CIFAR-10 and EUROSAT. For the remaining datasets we did not compute the regressor errors or classifier accuracies on the constructed dataset D M ′ \mathcal{D}_{M'} D M ′ from Algorithm 1 and instead report errors and accuracies from benchmark dataset challenges and published state-of-the-art models on the same datasets. In these cases, for CIFAR-10 and RESISC45, differing evaluation protocols make published results not directly comparable to the D M ′ \mathcal{D}_{M'} D M ′ -based bounds and thus not violations of them. We did not compare the average kernel size against empirical conditional variance as a general baseline, as it is only directly estimable with additional assumptions, such as i.i.d. samples, in Euclidean regression settings with repeated or conditionally repeated observations. For the same reason, we did not compute the conditional mean, which is optimal according to Proposition 2.17 .
Regression tasks
For all regression datasets considered, the accuracy bounds provided by Theorem 2.9 in conjunction with Algorithm 1 are provided in Table 3 and the parameters used for computation are provided in Table 2 . We followed the procedure summarized above and outlined in the Appendix in § 9.1.2 . We computed the bounds on a synthetic regression dataset, the Tropical Cyclone open-source dataset from Huggingface, the UCI Energy Efficiency open-source datasets Tsanas and Xifara [2012] from UCI, the UCI Concrete Compressive Strength open-source dataset Yeh [1998] from UCI and the KAERI Critical Heat Flux (CHF) open-source dataset with uniform axial heating Park [2000] from Kaggle. Detailed dataset descriptions, as well as the RMSE of the optimal regressor on the constructed test dataset from the proof of Theorem 2.9 , are in Appendix in § 9.1.3 .
Table 2. Parameters for the regression tasks. Here, M M M denotes the original dataset size, M ′ M^{\prime} M ′ the constructed dataset size generated by Algorithm 1, K K K the number of anchors, N max N_{\max} N m a x the maximum number of nearest neighbors and N ‾ ( k ) \overline{N}(k) N ( k ) the mean size of the feasible sets from the test dataset. *: for tropical cyclone the mean ± \pm ± the standard deviation of τ X \tau_X τ X across 20 subsets of size 1 k 1k 1 k are: ( τ X ‾ ) t r a i n = 284.7 ± 11.5 (\overline{\tau_X})_{\mathrm{train}} = 284.7 \pm11.5 ( τ X ) train = 284.7 ± 11.5 , ( τ X ‾ ) t e s t = 227.7 ± 8.9 (\overline{\tau_X})_{\mathrm{test}} = 227.7 \pm8.9 ( τ X ) test = 227.7 ± 8.9 , N ‾ ( k ) = 169.4 ± 2.7 \overline{N}(k) = 169.4 \pm2.7 N ( k ) = 169.4 ± 2.7
Table 3. Optimal regression accuracy intervals and regressor errors. The theoretical interval from Theorem 2.9 is [ 1 / 2 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] [1/2\operatorname{Kersize}(D_{M^{\prime}},p)_{K},\operatorname{Kersize}(D_{M^{\prime}},p)_{K}] [ 1/2 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] . All scores for models ϕ n \phi_n ϕ n with n ∈ { 1 , 2 , 3 } n \in\{1,2,3\} n ∈ { 1 , 2 , 3 } are RMSE values, L ( D M , ϕ , 2 ) \mathcal{L}(D_M,\phi,2) L ( D M , ϕ , 2 ) , in the units of the target variable reported in the three right columns. (1): models evaluated on a different test split. *: for tropical cyclone the mean bounds across 20 subsets of size 1 k 1k 1 k are reported.
Relation to the accuracy-stability trade-off
We studied the accuracy-stability trade-off from Proposition 2.5 for the synthetic regression problem f ( x 1 , x 2 ) = sin ( 1 + 0.9 x 1 2 + x 2 2 ) f(x_1,x_2)=\sin\left(1+0.9\sqrt{x_1^2+x_2^2}\right) f ( x 1 , x 2 ) = sin ( 1 + 0.9 x 1 2 + x 2 2 ) with input noise U ( [ 0 , 0.01 ] 2 ) U([0,0.01]^2) U ([ 0 , 0.01 ] 2 ) and target noise U ( [ 0 , 0.03 ] ) U([0,0.03]) U ([ 0 , 0.03 ]) . The accuracy stability trade-off is visualized in Figure 4 . We trained two versions of each of the two regressors to approximate the target function f f f from samples in a train dataset D M t r a i n D_{M_{\mathrm{train}}} D M train to obtain errors below half of the average kernel size and above on the train dataset, the latter attaining the accuracy within the bounds from Theorem 2.9 . We considered two Gaussian Process regressors, and two Support Vector Regression (SVR) models with a radial basis function (RBF) kernel and optimized the model hyperparameters with a brute-force grid search to meet the accuracy bounds conditions. We report the RMSE of each model on both the original train and test datasets and the constructed test dataset generated by Algorithm 1 and a lower bound to the Lipschitz constant of all models on the test dataset in the Appendix in Table 6 . For noiseless inputs f f f is 0.9-Lipschitz with respect to the Euclidean metric, since r ( x ) = ∥ x ∥ 2 r(x)=\lVert x\rVert_2 r ( x ) = ∥ x ∥ 2 is 1-Lipschitz and g ( r ) = sin ( 1 + 0.9 r ) g(r)=\sin(1+0.9r) g ( r ) = sin ( 1 + 0.9 r ) is 0.9-Lipschitz, and hence, by composition, f = g ∘ r f=g\circ r f = g ∘ r is 0.9-Lipschitz. Inspired by Proposition 2.5, we compute 1 τ X ( τ Y − 2 R M S E t r a i n ( ϕ o , D M t r a i n ) ) \frac{1}{\tau_X}(\tau_Y-2\mathrm{RMSE}_{\mathrm{train}}(\phi^o,D_{M_{\mathrm{train}}})) τ X 1 ( τ Y − 2 RMSE train ( ϕ o , D M train )) and compare it to the empirical Lipschitz constant of the unstable regressors, see Table 7 in the Appendix.
Figure 4. Accuracy-stability trade-off. The empirical Lipschitz constant compared against the RMSE of GP and SVR regressors on the train and test dataset. The average kernel size was computed from the reference dataset D M t r a i n ′ D_{M'_{\mathrm{train}}} D M train ′ . Regression models ϕ o \phi^o ϕ o satisfy R M S E t r a i n ( ϕ o , D M t r a i n ) < 1 2 K e r s i z e ( D M t r a i n ′ , 2 ) \mathrm{RMSE}_{\mathrm{train}}(\phi^o,D_{M_{\mathrm{train}}}) < \frac{1}{2}\mathrm{Kersize}(D_{M'_{\mathrm{train}}},2) RMSE train ( ϕ o , D M train ) < 2 1 Kersize ( D M train ′ , 2 ) , whereas models ϕ n \phi_n ϕ n satisfy 1 2 K e r s i z e ( D M t r a i n ′ , 2 ) ≤ R M S E t r a i n ( ϕ n , D M t r a i n ) ≤ K e r s i z e ( D M t r a i n ′ , 2 ) \frac{1}{2}\mathrm{Kersize}(D_{M'_{\mathrm{train}}},2) \le\mathrm{RMSE}_{\mathrm{train}}(\phi_n,D_{M_{\mathrm{train}}}) \le\mathrm{Kersize}(D_{M'_{\mathrm{train}}},2) 2 1 Kersize ( D M train ′ , 2 ) ≤ RMSE train ( ϕ n , D M train ) ≤ Kersize ( D M train ′ , 2 ) . The parameters for computing the average kernel size were N max = 300 N_{\max}=300 N m a x = 300 , τ X = 0.014 \tau_X=0.014 τ X = 0.014 and τ Y = 0.03 \tau_Y=0.03 τ Y = 0.03 . The exact numerical values and errors on the constructed test dataset are reported in the Appendix in Table 6 .
Table 6. Different regressors errors in RMSE. The average kernel size is computed from the reference dataset D M t r a i n ′ D_{M'_{\mathrm{train}}} D M train ′ . Models ϕ n \phi_n ϕ n , the GP and SVR, satisfy R M S E t r a i n < 1 2 K e r s i z e \mathrm{RMSE}_{\mathrm{train}} < \frac{1}{2}\mathrm{Kersize} RMSE train < 2 1 Kersize , whereas models ϕ n \phi_n ϕ n satisfy 1 2 K e r s i z e ≤ R M S E t r a i n ≤ K e r s i z e \frac{1}{2}\mathrm{Kersize} \le\mathrm{RMSE}_{\mathrm{train}} \le\mathrm{Kersize} 2 1 Kersize ≤ RMSE train ≤ Kersize . The table reports the training RMSE, the test RMSE, the RMSE on the constructed dataset D M t e s t ′ D_{M'_{\mathrm{test}}} D M test ′ , and the empirical Lipschitz estimate L ^ \hat{L} L ^ . M t r a i n = 90 M_{\mathrm{train}}=90 M train = 90 , M t e s t = 810 M_{\mathrm{test}}=810 M test = 810 , M t r a i n ′ = 650 M'_{\mathrm{train}}=650 M train ′ = 650 and M t e s t ′ = 42.9 k M'_{\mathrm{test}}=42.9\mathrm{k} M test ′ = 42.9 k .
Table 7. We set η = R M S E t r a i n \eta=\mathrm{RMSE}_{\mathrm{train}} η = RMSE train and compute the quantity 1 τ X ( τ Y − 2 η ) \frac{1}{\tau_X}(\tau_Y-2\eta) τ X 1 ( τ Y − 2 η ) which relates to the lower bound in Proposition 2.5 by taking the worst-case distance of similar targets and instead of the pointwise error the average error.
Sensitivity of the average kernel size to noise
In Figure 5 and Figure 6 we illustrate the effect of increasing input and target noise of the synthetic regression problem on the average kernel size. For this we chose a larger dataset size of M = 2.5 k M=2.5k M = 2.5 k and increase the thresholds for feasible set sampling according to the increasing noise level on inputs or outputs. In § 9.1.3 in the Appendix, we report the average kernel size for a noiseless control setting, evaluated the effect of misspecified thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y and compare the empirical average kernel size with the Bayes RMSE under an additional independence assumption, as well as evaluate Assumption 2.6 on admissible-pairs.
Figure 5. Average kernel size as a function of input noise level σ x \sigma_x σ x . Constant N max = 300 N_{\max}=300 N m a x = 300 and τ Y = 0.03 \tau_Y=0.03 τ Y = 0.03 , τ X = 2 σ x \tau_X=\sqrt{2}\sigma_x τ X = 2 σ x . Corresponding values of M ′ M' M ′ and τ X \tau_X τ X are in Table 8 in the Appendix.
Table 8. Average kernel size, A K AK A K or also Kersize ( D M ′ , 2 ) K \operatorname{Kersize}(D_{M'},2)_{K} Kersize ( D M ′ , 2 ) K , for increasing input noise levels.
Figure 6. Average kernel size as a function of target noise level σ y \sigma_y σ y . Constant N max = 300 N_{\max}=300 N m a x = 300 and τ X = 0.01414 \tau_X=0.01414 τ X = 0.01414 , and τ Y = σ y \tau_Y=\sigma_y τ Y = σ y . Corresponding values of M ′ M' M ′ are in Table 9 in the Appendix.
Table 9. Average kernel size, A K AK A K or also Kersize ( D M ′ , 2 ) K \operatorname{Kersize}(D_{M'},2)_{K} Kersize ( D M ′ , 2 ) K , for increasing target noise levels.
Classification tasks
For all classification datasets considered, the accuracy bounds provided by Corollary 2.11 in conjunction with Algorithm 1 are provided in Table 5 and the parameters used for computation are provided in Table 4 below. We followed the procedure summarized above and outlined in the Appendix in § 9.1.2 . We computed the bounds on the MNIST open-source dataset from Torch Vision, the CIFAR-10 open-source dataset from Torch Vision, the RESISC45 open-source dataset Cheng et al. [ [19 ] from TorchGeo and the EUROSAT open-source dataset Helber et al. [ [39 ] from Torch Vision. Detailed dataset descriptions, as well as the accuracy of the optimal classifier on the constructed test dataset from Corollary 2.11 , are in Appendix in § 9.1.4 .
Table 4.
Table 5.
Table 4 : Parameters for the classification tasks. Here, M M M denotes the original dataset size, M ′ M' M ′ the constructed dataset size generated by Algorithm 1, K K K the number of anchors, N max N_{\max} N m a x the maximum number of nearest neighbors and N ‾ ( k ) \overline{N}(k) N ( k ) the mean size of the feasible sets from the test dataset. *: for RESISC45 the mean ± the standard deviation across 20 subsets of size 3 k 3k 3 k are: ( τ X ) t r a i n = 31.5 ± 0.5 (\tau_X)_{\mathrm{train}}=31.5\pm0.5 ( τ X ) train = 31.5 ± 0.5 , ( τ X ) t e s t = 31.8 ± 0.7 (\tau_X)_{\mathrm{test}}=31.8\pm0.7 ( τ X ) test = 31.8 ± 0.7 , N ‾ ( k ) = 1.58 ± 0.08 \overline{N}(k)=1.58\pm0.08 N ( k ) = 1.58 ± 0.08 .
Table 5 : Optimal classification accuracy intervals and classifier accuracies. Theoretical intervals from Corollary 2.11 are reported as percentages; explicitly, the interval is 100 × [ 1 − Kersize ( D M ′ , 1 ) K , 1 − 1 / 2 Kersize ( D M ′ , 1 ) K ] 100\times[1-\operatorname{Kersize}(D_{M'},1)_K,1-1/2\operatorname{Kersize}(D_{M'},1)_K] 100 × [ 1 − Kersize ( D M ′ , 1 ) K , 1 − 1/2 Kersize ( D M ′ , 1 ) K ] . Accuracies, Acc ( D M , ϕ ) \operatorname{Acc}(D_M,\phi) Acc ( D M , ϕ ) , for models ϕ n \phi_n ϕ n with n ∈ { 1 , 2 , 3 } n\in\{1,2,3\} n ∈ { 1 , 2 , 3 } are reported on the [ 0 , 100 ] [0,100] [ 0 , 100 ] scale in the three right columns. (1): model(s) evaluated on a different test split. *: for RESISC45 the mean bounds across 20 subsets of size 3 k 3k 3 k are reported.
Aleatoric uncertainty: dataset dependence and model independence of the accuracy bounds
Figure 7 compares the accuracy of networks trained on noisy versions of EUROSAT and MNIST with the ambiguity-based accuracy intervals derived from the average kernel size. We changed the labels of σ y \sigma_y σ y -fractions of the datasets to a different, random labels. In both datasets, adding label noise shifts the admissible accuracy range downward. On MNIST, the clean-data accuracy bounds are close to perfect accuracy, indicating that the task is nearly unambiguous under the chosen pseudo-metric on the input space, while the noisy-data accuracy bounds closely match the observed degradation in train and test accuracy. On EUROSAT, the clean-data accuracy bounds are already noticeably below 1 and reflect a higher baseline level of ambiguity.
Figure 7. Accuracy of models trained on train datasets of EUROSAT and MNIST with noisy labels with σ y = 0.2 \sigma_y = 0.2 σ y = 0.2 . The models trained on noisy datasets are evaluated on both the clean and noisy test and train datasets. The lower and upper bounds from Corollary 2.11 , abbreviated as [ 1 − A K , 1 − 1 / 2 A K ] [1 - AK, 1 - 1/2AK] [ 1 − A K , 1 − 1/2 A K ] , are computed on the noisy, σ y = 0.2 \sigma_y = 0.2 σ y = 0.2 , and clean, σ y = 0 \sigma_y = 0 σ y = 0 , train and test datasets. The number of anchor samples K K K and the quantiles for computing τ X ( q ) \tau_X(q) τ X ( q ) are in Table 4 . The average kernel size is computed with a larger N max = 200 N_{\max} = 200 N m a x = 200 .
Discussion
The deterministic bounds from Theorem 2.9 and Corollary 2.11 hold for the dataset constructed in Algorithm 1. Where a priori knowledge of the input and target noise is unavailable, we selected input thresholds so the average kernel size remained stable with changes in feasible set size. In these cases, for both regression and classification datasets, our stability analysis across quantiles for choosing input threshold τ X \tau_X τ X based on a practical empirical heuristic and feasible set size demonstrated that the bounds can be chosen to be relatively stable. We emphasize that the resulting kernel-size accuracy intervals are not an intrinsic property of the dataset alone, but rather, a property of the triple ( D M , d X , d Y ) (D_M, d_X, d_Y) ( D M , d X , d Y ) , and its interpretability depends on how well d X d_X d X captures task-relevant indistinguishability and which evaluation metric d Y d_Y d Y is used. After all, the evaluation metric can be optimized to obtain arbitrarily good accuracy Redmon and Farhadi [ [63 ] . We chose a wavelet-based pseudo-metric for all image-based tasks to ensure comparability across tasks; however, other metrics may be more relevant to object classification tasks, such as MNIST or CIFAR-10.
Regression accuracy bounds: Table 2 shows that the framework is applicable to a range of datasets of different sizes and ranging from image to tabular regression tasks. The bounds in Theorem 2.9 and the regressor errors in Table 3 show that the proposed intervals can be nontrivial and, in several cases, are numerically comparable to the performance reported for strong benchmark and published models. Figure 4 illustrates the accuracy-stability trade-off predicted by Proposition 2.5 . The high-accuracy models have training errors smaller than half of the average kernel size, but this comes at the cost of significantly larger test errors and higher empirical Lipschitz constant estimates, L ^ \hat{L} L ^ , substantially exceeding the Lipschitz constant of the noiseless function generating the dataset. The models that satisfy the prescribed accuracy interval on the training set from Theorem 2.9 , achieve lower test errors while maintaining L ^ \hat{L} L ^ close to the true regularity of the underlying data-generating function, see Table 6 in the Appendix.
Classification accuracy bounds: Table 4 shows that the framework is applicable to a range of datasets of different sizes and image classification tasks. The accuracy bounds in Corollary 2.11 and the classifier accuracies in Table 5 show that the proposed intervals can be nontrivial and, in several cases, provide a descriptive reference scale, but benchmark accuracies on D M D_M D M , especially under different splits or protocols, are not directly comparable to the bounds on D M ′ D_{M'} D M ′ . The train and test accuracies of the best model for the task of mapping images (I) to random classes (RC), reported in [81 Table 1] , illustrate the lower bound on the generalization gap for classification in Proposition 2.18 .
Average kernel sizes and aleatoric uncertainty: For the synthetic regression example, Figure 5 and Figure 6 show that the average kernel sizes increase with increasing input and target noise. Combined with the model-independent bounds on empirical error in Theorem 2.9 , this indicates that the average kernel sizes capture increasing aleatoric uncertainty in the regression task. For MNIST and EUROSAT, Figure 9 shows that the average kernel sizes increase with increasing label noise. Together with Corollary 2.11 and Figure 7 , this suggests that, under the chosen pseudo-metric and feasible-set construction, the resulting accuracy bounds capture a data-dependent component of aleatoric uncertainty. Here we note that, in the examples provided whenever we assumed ideal, noiseless targets with τ Y = 0 \tau_Y = 0 τ Y = 0 , our results may underestimate the aleatoric uncertainty of the corresponding tasks.
Figure 9. EUROSAT and MNIST train datasets plots of average kernel size for different label noise levels versus the quantile q q q used for computing the threshold τ X ( q ) \tau_X(q) τ X ( q ) . The number of anchor samples K K K is the full train set size (cmp. Table 4 ) and the average kernel size is computed with N max = 200 N_{\max}=200 N m a x = 200 .
Limitations & Future Work
As shown above, the proposed framework can provide realistic accuracy bounds for a wide range of applications and tasks. Nevertheless, several open points limit its functionality in certain aspects and could be investigated further in future work.
First, the resulting bounds depend on the pair ( D M , d X ) (D_M, d_X) ( D M , d X ) and the chosen evaluation metric d Y d_Y d Y . The interpretability of the feasible sets and the resulting average kernel size depend on whether the chosen pseudo-metric d X d_X d X captures task-relevant indistinguishability. A poor metric may either merge unrelated inputs or fail to detect genuine ambiguity. In this work, we found that relatively simple metrics can already yield nontrivial bounds. For image data, metrics induced by transforms need not align with semantic similarity. Investigating different kinds of metrics, universal feature extractors (e.g., pretrained foundation models), or expert knowledge-based feature extractors could enable targeting the task-relevant features for the bounds more explicitly.
Second, the feasible set construction depends on the threshold parameters τ X \tau_X τ X and τ Y \tau_Y τ Y . Ideally, these can be selected from prior knowledge of input and target noise and otherwise, alternatives are selecting the input threshold τ X \tau_X τ X with a practical empirical heuristic based on quantiles or selecting the thresholds in order to guarantee a sufficiently small lower bound to the Lipschitz constant in the accuracy-stability trade-off from Proposition 2.5 ; however, Assumption 2.6 may be difficult to verify in practice and further properties or rules for selecting the thresholds in the absence of prior knowledge on input and target noise should be evaluated at a larger scale.
Third, Algorithm 1 provides finite-sample approximations of the feasible sets. If the dataset under-samples rare but valid targets for a given input, then the empirical average kernel size may underestimate the true spread. Hence, the lower bound is data-dependent and may be conservative when the dataset significantly under-samples rare but valid targets. An important next step is to provide construction diagnostics with guarantees, including feasible-set size distributions, singleton fractions, in order to distinguish ambiguity arising from local input neighborhoods from ambiguity induced primarily by the target tolerance. Here a theoretical direction for future work is to bridge the gap between the ideal distributional analogue quantity and the finite-sample average kernel size. This includes consistency of Algorithm 1 as τ X → 0 \tau_X \to0 τ X → 0 with growing local sample counts, and an accuracy-stability frontier obtained by minimizing empirical loss over predictors with prescribed Lipschitz constant.
Fourth, the optimal accuracy intervals, as in Theorem 2.9 , [ 1 2 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] \left[\frac{1}{2}\operatorname{Kersize}(D_{M'}, p)_K, \operatorname{Kersize}(D_{M'}, p)_K\right] [ 2 1 Kersize ( D M ′ , p ) K , Kersize ( D M ′ , p ) K ] , can be non-sharp in some applications where additional assumptions that yield sharper bounds are satisfied. While these provide a nontrivial model-independent accuracy range, they may not always identify the exact optimal empirical error due to the reasons outlined above. The proposed bounds quantify only one component of prediction difficulty, namely the ambiguity of the input-target multiset in the chosen (pseudo-)metric spaces. They do not account directly for optimization difficulty or finite model capacity. The optimum regressor or classifier is explicit in some special cases, in which we provide the corresponding error and accuracy in the Appendix, yet the bounds remain applicable in general metric settings where the anchor-wise minimization need not admit a closed form and may require solving a separate optimization problem for each anchor.
Conclusion
We introduced a geometric framework for deriving deterministic, non-asymptotic bounds on achievable empirical error and accuracy in regression and classification on general metric and pseudo-metric spaces. The central quantity, the average kernel size, measures target dispersion within finite feasible sets and yields a model-independent reference scale for empirical prediction difficulty on the constructed dataset. A complementary deterministic comparison bound relates empirical loss on the constructed dataset to empirical loss on the original dataset through a graph-based reassignment error, showing how the discrepancy is controlled by the thresholds, the predictor regularity, and the induced reference weights. Together with the stability result, the framework shows that fitting ambiguous targets below this scale entails increased local instability. Under additional probabilistic assumptions, the distributional analogue average kernel size is related to Bayes risk, implies positive generalization gaps below the ambiguity-compatible level, and admits a finite-sample concentration guarantee under an ideal conditional-sampling design. The average kernel size computed by Algorithm 1 should therefore be interpreted as a computable geometric surrogate for this ideal quantity unless further assumptions justify a statistical consistency claim. Important directions for future work include task-dependent pseudo-metric design and bridging the gap between the ideal sampling theory and the finite-sample construction used in practice.
Acknowledgements
N. M. Gottschling acknowledges research sponsored by the Laboratory Directed Research and Development Program of Oak Ridge National Laboratory, managed by UT-Battelle, LLC, for the U. S. Department of Energy. J. Gawlikowski acknowledges the funding provided by the German Aerospace Center from the department EO Data Science at the Earth Observation Center. This work was supported by the Helmholtz Association’s Initiative and Networking Fund on the HAICORE (at) FZJ partition. M. Caprio gratefully acknowledges support from the Prob_AI Hub and the London Mathematical Society. ChatGPT 5.6 Sol was used to assist with proofreading.
Proofs
After introducing preliminaries, we prove the main results. Each set-valued mapping ϕ : X ⇒ Y \phi:\mathcal{X}\Rightarrow\mathcal{Y} ϕ : X ⇒ Y has two natural inverses. The upper inverse ϕ u \phi^{u} ϕ u (also called the strong inverse ) of a subset A A A of Y \mathcal{Y} Y is defined by
ϕ u ( A ) = { x ∈ X : ϕ ( x ) ⊂ A } . \phi^{u}(A)=\{x\in\mathcal{X}:\phi(x)\subset A\}. ϕ u ( A ) = { x ∈ X : ϕ ( x ) ⊂ A } .
The lower inverse ϕ l \phi^{l} ϕ l (also called the weak inverse ) is defined by
ϕ l ( A ) = { x ∈ X : ϕ ( x ) ∩ A ≠ ∅ } . \phi^{l}(A)=\{x\in\mathcal{X}:\phi(x)\cap A\ne\varnothing\}. ϕ l ( A ) = { x ∈ X : ϕ ( x ) ∩ A = ∅ } .
Recall that a neighborhood of a set A A A is any set B B B for which there is an open set V V V satisfying A ⊂ V ⊂ B A\subset V\subset B A ⊂ V ⊂ B . Any open set V V V that satisfies A ⊂ V A\subset V A ⊂ V is called an open neighborhood of A A A .
Definition 8.1 ([3 Definition 17.2] ). A set-valued mapping ϕ : X ⇒ Y \phi:\mathcal{X}\Rightarrow\mathcal{Y} ϕ : X ⇒ Y between topological spaces is:
upper hemicontinuous at x x x if for every neighborhood U U U of ϕ ( x ) \phi(x) ϕ ( x ) , there is a neighborhood V V V of x x x such that z ∈ V z\in V z ∈ V implies ϕ ( z ) ⊂ U \phi(z)\subset U ϕ ( z ) ⊂ U or, equivalently, if ϕ u ( U ) \phi^{u}(U) ϕ u ( U ) is a neighborhood of x x x in X \mathcal{X} X .
lower hemicontinuous at x x x if for every open set U U U that meets ϕ ( x ) \phi(x) ϕ ( x ) , i.e. ϕ ( x ) ∩ U ≠ ∅ \phi(x)\cap U\ne\varnothing ϕ ( x ) ∩ U = ∅ , there is a neighborhood V V V of x x x such that z ∈ V z\in V z ∈ V implies ϕ ( z ) ∩ U ≠ ∅ \phi(z)\cap U\ne\varnothing ϕ ( z ) ∩ U = ∅ , equivalently, the lower inverse image ϕ l ( U ) \phi^{l}(U) ϕ l ( U ) is a neighborhood of x x x .
continuous at x x x if it is both upper and lower hemicontinuous at x x x .
As with functions, we say ϕ \phi ϕ is upper or lower hemicontinuous on X X X , if it is upper or lower hemicontinuous at every point of X X X . It is continuous if it is continuous at each point.
Definition 8.2 (Regular conditional distribution). Let Z : Ω → S Z:\Omega\to S Z : Ω → S and Y : Ω → T Y:\Omega\to T Y : Ω → T be random variables, where S S S and T T T are measurable spaces with σ \sigma σ -algebras B ( S ) \mathcal{B}(S) B ( S ) and B ( T ) \mathcal{B}(T) B ( T ) , respectively. A regular conditional distribution of Y Y Y given Z Z Z is a Markov kernel
K : S × B ( T ) → [ 0 , 1 ] K:S\times\mathcal{B}(T)\to[0,1] K : S × B ( T ) → [ 0 , 1 ] such that
for every z ∈ S z\in S z ∈ S , the map A ↦ K ( z , A ) A\mapsto K(z,A) A ↦ K ( z , A ) is a probability measure on ( T , B ( T ) ) (T,\mathcal{B}(T)) ( T , B ( T )) ;
for every A ∈ B ( T ) A\in\mathcal{B}(T) A ∈ B ( T ) , the map z ↦ K ( z , A ) z\mapsto K(z,A) z ↦ K ( z , A ) is B ( S ) \mathcal{B}(S) B ( S ) -measurable;
for every A ∈ B ( T ) A\in\mathcal{B}(T) A ∈ B ( T ) and B ∈ B ( S ) B\in\mathcal{B}(S) B ∈ B ( S ) ,
P ( Y ∈ A , Z ∈ B ) = ∫ B K ( z , A ) P Z ( d z ) . \mathbb{P}(Y\in A,\ Z\in B)=\int_B K(z,A)\mathbb{P}_Z(dz). P ( Y ∈ A , Z ∈ B ) = ∫ B K ( z , A ) P Z ( d z ) .
Regular conditional distributions do not always exist. The following positive result guarantees that a regular conditional distribution exists, see Kallenberg [ [44 ] .
Theorem 8.3 (Existence of regular conditional distributions). If S S S and T T T are standard Borel spaces, then a regular conditional distribution of Y Y Y given Z Z Z exists and is unique up to P Z \mathbb{P}_Z P Z -almost everywhere equality.
Proof of Proposition 2.5
Proof. Since d Y H ( ϕ ( x ) , { y } ) < η d_Y^H(\phi(x),\{y\})<\eta d Y H ( ϕ ( x ) , { y }) < η , we choose δ > 0 \delta>0 δ > 0 such that d Y H ( ϕ ( x ) , { y } ) + δ < η d_Y^H(\phi(x),\{y\})+\delta<\eta d Y H ( ϕ ( x ) , { y }) + δ < η . The set
U δ : = { v ∈ Y : inf z ∈ ϕ ( x ) d Y ( v , z ) < δ } U_\delta:=\left\{v\in\mathcal{Y}:\inf_{z\in\phi(x)}d_Y(v,z)<\delta\right\} U δ := { v ∈ Y : z ∈ ϕ ( x ) inf d Y ( v , z ) < δ }
is an open neighborhood of ϕ ( x ) \phi(x) ϕ ( x ) . By upper hemicontinuity of ϕ \phi ϕ at x x x , there exists a neighborhood B 1 ⊂ M 2 B_1\subset\mathcal{M}_2 B 1 ⊂ M 2 of x x x such that ϕ ( x ~ ) ⊂ U δ \phi(\tilde{x})\subset U_\delta ϕ ( x ~ ) ⊂ U δ for all x ~ ∈ B 1 \tilde{x}\in B_1 x ~ ∈ B 1 . Hence
sup u ∈ ϕ ( x ~ ) d Y ( u , y ) < η for all x ~ ∈ B 1 . \sup_{u\in\phi(\tilde{x})}d_Y(u,y)<\eta\qquad\text{for all }\tilde{x}\in B_1. u ∈ ϕ ( x ~ ) sup d Y ( u , y ) < η for all x ~ ∈ B 1 .
Together with sup v ∈ ϕ ( x ′ ) d Y ( v , y ′ ′ ) < η \sup_{v\in\phi(x')} d_Y(v,y'')<\eta sup v ∈ ϕ ( x ′ ) d Y ( v , y ′′ ) < η , the reverse triangle inequality gives, for every x ~ ∈ B 1 \tilde{x}\in B_1 x ~ ∈ B 1 ,
d Y H ( ϕ ( x ~ ) , ϕ ( x ′ ) ) ≥ d Y ( y , y ′ ′ ) − sup u ∈ ϕ ( x ~ ) d Y ( u , y ) − sup v ∈ ϕ ( x ′ ) d Y ( v , y ′ ′ ) > d Y ( y , y ′ ′ ) − 2 η . d_Y^H(\phi(\tilde{x}),\phi(x'))\ge d_Y(y,y'')-\sup_{u\in\phi(\tilde{x})}d_Y(u,y)-\sup_{v\in\phi(x')}d_Y(v,y'')>d_Y(y,y'')-2\eta. d Y H ( ϕ ( x ~ ) , ϕ ( x ′ )) ≥ d Y ( y , y ′′ ) − u ∈ ϕ ( x ~ ) sup d Y ( u , y ) − v ∈ ϕ ( x ′ ) sup d Y ( v , y ′′ ) > d Y ( y , y ′′ ) − 2 η .
Since d X ( x , x ′ ) < τ X d_X(x,x')<\tau_X d X ( x , x ′ ) < τ X , there exists an open ball B 2 B_2 B 2 centered at x x x such that x ′ ∉ B 2 x'\notin B_2 x ′ ∈ / B 2 and d X ( x ~ , x ′ ) < τ X d_X(\tilde{x},x')<\tau_X d X ( x ~ , x ′ ) < τ X for all x ~ ∈ B 2 \tilde{x}\in B_2 x ~ ∈ B 2 . Set B : = B 1 ∩ B 2 B:=B_1\cap B_2 B := B 1 ∩ B 2 , which is not empty as x ∈ B x\in B x ∈ B . Then, for every x ~ ∈ B \tilde{x}\in B x ~ ∈ B and every ϵ ≥ τ X \epsilon\ge\tau_X ϵ ≥ τ X , we have that 0 < d X ( x ~ , x ′ ) < τ X 0<d_X(\tilde{x},x')<\tau_X 0 < d X ( x ~ , x ′ ) < τ X , as x ′ ∉ B 2 x'\notin B_2 x ′ ∈ / B 2 and x ~ ∈ B ⊂ B 2 \tilde{x}\in B\subset B_2 x ~ ∈ B ⊂ B 2 and d X d_X d X is a metric. Thus, the point x ′ x' x ′ is admissible in the definition of L ϵ ( ϕ , x ~ ) L^\epsilon(\phi,\tilde{x}) L ϵ ( ϕ , x ~ ) . Therefore,
L ϵ ( ϕ , x ~ ) ≥ d Y H ( ϕ ( x ~ ) , ϕ ( x ′ ) ) d X ( x ~ , x ′ ) > d Y ( y , y ′ ′ ) − 2 η τ X . L^\epsilon(\phi,\tilde{x})\ge\frac{d_Y^H(\phi(\tilde{x}),\phi(x'))}{d_X(\tilde{x},x')}>\frac{d_Y(y,y'')-2\eta}{\tau_X}. L ϵ ( ϕ , x ~ ) ≥ d X ( x ~ , x ′ ) d Y H ( ϕ ( x ~ ) , ϕ ( x ′ )) > τ X d Y ( y , y ′′ ) − 2 η .
which proves the result.
Proof of Theorem 2.9
Proof. Let
F x k N ( k ) = { y k , n } n = 1 N ( k ) , k = 1 , … , K , F_{x_k}^{N(k)}=\{y_{k,n}\}_{n=1}^{N(k)},\qquad k=1,\ldots,K, F x k N ( k ) = { y k , n } n = 1 N ( k ) , k = 1 , … , K ,
be the finite feasible sets returned by Algorithm 1, and let D M ′ = { ( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k ) } \mathcal{D}_{M'}=\{(y_{k,n},x_k):1\le k\le K,\ 1\le n\le N(k)\} D M ′ = {( y k , n , x k ) : 1 ≤ k ≤ K , 1 ≤ n ≤ N ( k )} with M ′ = ∑ k = 1 K N ( k ) M'=\sum_{k=1}^{K}N(k) M ′ = ∑ k = 1 K N ( k ) . Let ϕ : M 2 ⇒ Y \phi:\mathcal{M}_2\Rightarrow\mathcal{Y} ϕ : M 2 ⇒ Y be any regressor.
Step 1: Lower bound by half of the average kernel size. Fix k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } and 1 ≤ n < n ′ ≤ N ( k ) 1\le n<n'\le N(k) 1 ≤ n < n ′ ≤ N ( k ) . For any z ˉ ∈ ϕ ( x k ) \bar{z}\in\phi(x_k) z ˉ ∈ ϕ ( x k ) , the triangle inequality gives
d Y ( y k , n , y k , n ′ ) ≤ d Y ( y k , n , z ˉ ) + d Y ( z ˉ , y k , n ′ ) . d_Y(y_{k,n},y_{k,n'})\le d_Y(y_{k,n},\bar{z})+d_Y(\bar{z},y_{k,n'}). d Y ( y k , n , y k , n ′ ) ≤ d Y ( y k , n , z ˉ ) + d Y ( z ˉ , y k , n ′ ) .
Since
d Y H ( { y k , n } , ϕ ( x k ) ) = sup z ˉ ∈ ϕ ( x k ) d Y ( y k , n , z ˉ ) , d_Y^H(\{y_{k,n}\},\phi(x_k))=\sup_{\bar{z}\in\phi(x_k)}d_Y(y_{k,n},\bar{z}), d Y H ({ y k , n } , ϕ ( x k )) = z ˉ ∈ ϕ ( x k ) sup d Y ( y k , n , z ˉ ) ,
we obtain
d Y ( y k , n , y k , n ′ ) ≤ d Y H ( { y k , n } , ϕ ( x k ) ) + d Y H ( { y k , n ′ } , ϕ ( x k ) ) . d_Y(y_{k,n},y_{k,n'})\le d_Y^H(\{y_{k,n}\},\phi(x_k))+d_Y^H(\{y_{k,n'}\},\phi(x_k)). d Y ( y k , n , y k , n ′ ) ≤ d Y H ({ y k , n } , ϕ ( x k )) + d Y H ({ y k , n ′ } , ϕ ( x k )) .
For p ≥ 1 p\ge1 p ≥ 1 , the convexity of a ↦ a p a\mapsto a^p a ↦ a p implies ( a + b ) p ≤ 2 p − 1 ( a p + b p ) (a+b)^p\le2^{p-1}(a^p+b^p) ( a + b ) p ≤ 2 p − 1 ( a p + b p ) for a , b ≥ 0 a,b\ge0 a , b ≥ 0 . Consequently,
d Y ( y k , n , y k , n ′ ) p ≤ 2 p − 1 ( d Y H ( { y k , n } , ϕ ( x k ) ) p + d Y H ( { y k , n ′ } , ϕ ( x k ) ) p ) . d_Y(y_{k,n},y_{k,n'})^p\le2^{p-1}\left(d_Y^H(\{y_{k,n}\},\phi(x_k))^p+d_Y^H(\{y_{k,n'}\},\phi(x_k))^p\right). d Y ( y k , n , y k , n ′ ) p ≤ 2 p − 1 ( d Y H ({ y k , n } , ϕ ( x k ) ) p + d Y H ({ y k , n ′ } , ϕ ( x k ) ) p ) .
Summing over all unordered pairs 1 ≤ n < n ′ ≤ N ( k ) 1\le n<n'\le N(k) 1 ≤ n < n ′ ≤ N ( k ) , and observing that each index n n n occurs in exactly N ( k ) − 1 N(k)-1 N ( k ) − 1 such pairs, gives
21 { N ( k ) > 1 } N ( k ) − 1 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p ≤ 2 p ∑ n = 1 N ( k ) d Y H ( { y k , n } , ϕ ( x k ) ) p . \frac{2\mathbf{1}_{\{N(k)>1\}}}{N(k)-1}\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p\le2^p\sum_{n=1}^{N(k)}d_Y^H(\{y_{k,n}\},\phi(x_k))^p. N ( k ) − 1 2 1 { N ( k ) > 1 } 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p ≤ 2 p n = 1 ∑ N ( k ) d Y H ({ y k , n } , ϕ ( x k ) ) p .
When N ( k ) ≤ 1 N(k)\le1 N ( k ) ≤ 1 , the left-hand side is zero by definition, so the inequality remains valid. Summing over k = 1 , … , K k=1,\ldots,K k = 1 , … , K and dividing by 2 p M ′ 2^pM' 2 p M ′ , we obtain
1 2 p M ′ ∑ k = 1 K 21 { N ( k ) > 1 } N ( k ) − 1 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p ≤ 1 M ′ ∑ k = 1 K ∑ n = 1 N ( k ) d Y H ( { y k , n } , ϕ ( x k ) ) p . \frac{1}{2^pM'}\sum_{k=1}^{K}\frac{2\mathbf{1}_{\{N(k)>1\}}}{N(k)-1}\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p\le\frac{1}{M'}\sum_{k=1}^{K}\sum_{n=1}^{N(k)}d_Y^H(\{y_{k,n}\},\phi(x_k))^p. 2 p M ′ 1 k = 1 ∑ K N ( k ) − 1 2 1 { N ( k ) > 1 } 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p ≤ M ′ 1 k = 1 ∑ K n = 1 ∑ N ( k ) d Y H ({ y k , n } , ϕ ( x k ) ) p .
By the definition of the empirical loss and of the average kernel size, this is
1 2 p Kersize ( D M ′ , p ) K p ≤ L ( D M ′ , ϕ , p ) p . \frac{1}{2^p}\operatorname{Kersize}(\mathcal{D}_{M'},p)_K^p\le\mathcal{L}(\mathcal{D}_{M'},\phi,p)^p. 2 p 1 Kersize ( D M ′ , p ) K p ≤ L ( D M ′ , ϕ , p ) p .
Taking p p p -th roots yields
1 2 Kersize ( D M ′ , p ) K ≤ L ( D M ′ , ϕ , p ) . \frac{1}{2}\operatorname{Kersize}(\mathcal{D}_{M'},p)_K\le\mathcal{L}(\mathcal{D}_{M'},\phi,p). 2 1 Kersize ( D M ′ , p ) K ≤ L ( D M ′ , ϕ , p ) .
Since ϕ \phi ϕ was arbitrary, the first claim follows.
Step 2: Existence of an optimal regressor. For each k ∈ { 1 , … , K } k \in\{1,\ldots,K\} k ∈ { 1 , … , K } , define
f k ( z ) : = 1 N ( k ) ∑ n = 1 N ( k ) d Y ( y k , n , z ) p , z ∈ Y . f_k(z) := \frac{1}{N(k)} \sum_{n=1}^{N(k)} d_{\mathcal{Y}}(y_{k,n},z)^p,\qquad z \in\mathcal{Y}. f k ( z ) := N ( k ) 1 n = 1 ∑ N ( k ) d Y ( y k , n , z ) p , z ∈ Y .
The function f k f_k f k is continuous. We next show that it attains its minimum. Let
r k : = max 1 ≤ n , n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) . r_k := \max_{1\le n,n'\le N(k)} d_{\mathcal{Y}}(y_{k,n},y_{k,n'}). r k := 1 ≤ n , n ′ ≤ N ( k ) max d Y ( y k , n , y k , n ′ ) .
Since the group is finite, r k < ∞ r_k < \infty r k < ∞ . If d Y ( z , y k , 1 ) > 2 r k d_{\mathcal{Y}}(z,y_{k,1}) > 2r_k d Y ( z , y k , 1 ) > 2 r k , then, for every n n n ,
d Y ( z , y k , n ) ≥ d Y ( z , y k , 1 ) − d Y ( y k , 1 , y k , n ) > 2 r k − r k = r k . d_{\mathcal{Y}}(z,y_{k,n}) \ge d_{\mathcal{Y}}(z,y_{k,1}) - d_{\mathcal{Y}}(y_{k,1},y_{k,n}) > 2r_k-r_k=r_k. d Y ( z , y k , n ) ≥ d Y ( z , y k , 1 ) − d Y ( y k , 1 , y k , n ) > 2 r k − r k = r k .
Hence, f k ( z ) > r k p f_k(z)>r_k^p f k ( z ) > r k p . On the other hand,
f k ( y k , 1 ) = 1 N ( k ) ∑ n = 1 N ( k ) d Y ( y k , n , y k , 1 ) p ≤ r k p . f_k(y_{k,1})=\frac{1}{N(k)}\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},y_{k,1})^p\le r_k^p. f k ( y k , 1 ) = N ( k ) 1 n = 1 ∑ N ( k ) d Y ( y k , n , y k , 1 ) p ≤ r k p .
Therefore every minimizer of f k f_k f k lies in the closed ball B ‾ d Y ( y k , 1 , 2 r k ) \overline{B}_{d_{\mathcal{Y}}}(y_{k,1},2r_k) B d Y ( y k , 1 , 2 r k ) . This ball is closed and bounded, and hence compact by Assumption 2.1. Since f k f_k f k is continuous, it attains its minimum on this compact set. Thus, we may choose
z k ∈ arg min z ∈ Y f k ( z ) . z_k \in\underset{z\in\mathcal{Y}}{\arg\min}\ f_k(z). z k ∈ z ∈ Y arg min f k ( z ) .
Step 3: Characterization of the unrestricted empirical optimal regressor. Fix k k k . For any nonempty prediction set A ⊂ Y A\subset\mathcal{Y} A ⊂ Y ,
d Y H ( { y k , n } , A ) ≥ inf z ∈ A d Y ( y k , n , z ) d_{\mathcal{Y}}^H(\{y_{k,n}\},A)\ge\inf_{z\in A}d_{\mathcal{Y}}(y_{k,n},z) d Y H ({ y k , n } , A ) ≥ z ∈ A inf d Y ( y k , n , z )
for each n n n . More importantly, since
d Y H ( { y k , n } , A ) = max { inf a ∈ A d Y ( y k , n , a ) , sup a ∈ A d Y ( y k , n , a ) } , d_{\mathcal{Y}}^H(\{y_{k,n}\},A)=\max\left\{\inf_{a\in A}d_{\mathcal{Y}}(y_{k,n},a),\sup_{a\in A}d_{\mathcal{Y}}(y_{k,n},a)\right\}, d Y H ({ y k , n } , A ) = max { a ∈ A inf d Y ( y k , n , a ) , a ∈ A sup d Y ( y k , n , a ) } ,
we have, for every n n n ,
d Y H ( { y k , n } , A ) ≥ d Y ( y k , n , a ) d_{\mathcal{Y}}^H(\{y_{k,n}\},A)\ge d_{\mathcal{Y}}(y_{k,n},a) d Y H ({ y k , n } , A ) ≥ d Y ( y k , n , a )
for every a ∈ A a\in A a ∈ A . Consequently,
∑ n = 1 N ( k ) d Y H ( { y k , n } , A ) p ≥ ∑ n = 1 N ( k ) d Y ( y k , n , a ) p \sum_{n=1}^{N(k)}d_{\mathcal{Y}}^H(\{y_{k,n}\},A)^p\ge\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},a)^p n = 1 ∑ N ( k ) d Y H ({ y k , n } , A ) p ≥ n = 1 ∑ N ( k ) d Y ( y k , n , a ) p
for every a ∈ A a\in A a ∈ A , and therefore
∑ n = 1 N ( k ) d Y H ( { y k , n } , A ) p ≥ inf z ∈ Y ∑ n = 1 N ( k ) d Y ( y k , n , z ) p . \sum_{n=1}^{N(k)}d_{\mathcal{Y}}^H(\{y_{k,n}\},A)^p\ge\inf_{z\in\mathcal{Y}}\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},z)^p. n = 1 ∑ N ( k ) d Y H ({ y k , n } , A ) p ≥ z ∈ Y inf n = 1 ∑ N ( k ) d Y ( y k , n , z ) p .
By the definition of z k z_k z k ,
inf z ∈ Y ∑ n = 1 N ( k ) d Y ( y k , n , z ) p = ∑ n = 1 N ( k ) d Y ( y k , n , z k ) p . \inf_{z\in\mathcal{Y}}\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},z)^p=\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},z_k)^p. z ∈ Y inf n = 1 ∑ N ( k ) d Y ( y k , n , z ) p = n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p .
Equality is attained by the singleton prediction set A = { z k } A=\{z_k\} A = { z k } . Since the anchor points x 1 , … , x K x_1,\ldots,x_K x 1 , … , x K are pairwise positively separated, the values of a regressor at the different anchors can be prescribed independently. Hence the unrestricted empirical optimal regressor attains
R ∗ p : = inf ϕ L ( D M ′ , ϕ , p ) p = 1 M ′ ∑ k = 1 K ∑ n = 1 N ( k ) d Y ( y k , n , z k ) p . R_*^p:=\inf_{\phi}\mathcal{L}(D_{M'},\phi,p)^p=\frac{1}{M'}\sum_{k=1}^{K}\sum_{n=1}^{N(k)}d_{\mathcal{Y}}(y_{k,n},z_k)^p. R ∗ p := ϕ inf L ( D M ′ , ϕ , p ) p = M ′ 1 k = 1 ∑ K n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p .
Step 4: Upper bound by the average kernel size. Fix k k k with N ( k ) ≥ 2 N(k) \ge2 N ( k ) ≥ 2 . By the minimizing property of z k z_k z k , for every j ∈ { 1 , … , N ( k ) } j \in\{1,\ldots,N(k)\} j ∈ { 1 , … , N ( k )} ,
∑ n = 1 N ( k ) d Y ( y k , n , z k ) p ≤ ∑ n = 1 N ( k ) d Y ( y k , n , y k , j ) p . \sum_{n=1}^{N(k)} d_Y(y_{k,n},z_k)^p \le\sum_{n=1}^{N(k)} d_Y(y_{k,n},y_{k,j})^p. n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p ≤ n = 1 ∑ N ( k ) d Y ( y k , n , y k , j ) p .
Averaging this inequality over j = 1 , … , N ( k ) j=1,\ldots,N(k) j = 1 , … , N ( k ) gives
∑ n = 1 N ( k ) d Y ( y k , n , z k ) p ≤ 1 N ( k ) ∑ j = 1 N ( k ) ∑ n = 1 N ( k ) d Y ( y k , n , y k , j ) p . \sum_{n=1}^{N(k)} d_Y(y_{k,n},z_k)^p \le\frac{1}{N(k)}\sum_{j=1}^{N(k)}\sum_{n=1}^{N(k)}d_Y(y_{k,n},y_{k,j})^p. n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p ≤ N ( k ) 1 j = 1 ∑ N ( k ) n = 1 ∑ N ( k ) d Y ( y k , n , y k , j ) p .
The diagonal terms vanish, and symmetry of the metric implies
∑ j = 1 N ( k ) ∑ n = 1 N ( k ) d Y ( y k , n , y k , j ) p = 2 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p . \sum_{j=1}^{N(k)}\sum_{n=1}^{N(k)}d_Y(y_{k,n},y_{k,j})^p=2\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p. j = 1 ∑ N ( k ) n = 1 ∑ N ( k ) d Y ( y k , n , y k , j ) p = 2 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p .
Therefore,
∑ n = 1 N ( k ) d Y ( y k , n , z k ) p ≤ 2 N ( k ) ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p . \sum_{n=1}^{N(k)}d_Y(y_{k,n},z_k)^p\le\frac{2}{N(k)}\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p. n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p ≤ N ( k ) 2 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p .
Since N ( k ) ≥ 2 N(k)\ge2 N ( k ) ≥ 2 , 2 N ( k ) ≤ 2 N ( k ) − 1 \frac{2}{N(k)}\le\frac{2}{N(k)-1} N ( k ) 2 ≤ N ( k ) − 1 2 , and hence
∑ n = 1 N ( k ) d Y ( y k , n , z k ) p ≤ 2 N ( k ) − 1 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p . \sum_{n=1}^{N(k)}d_Y(y_{k,n},z_k)^p\le\frac{2}{N(k)-1}\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p. n = 1 ∑ N ( k ) d Y ( y k , n , z k ) p ≤ N ( k ) − 1 2 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p .
For N ( k ) = 1 N(k)=1 N ( k ) = 1 , the left-hand side is zero as z k = y k , 1 z_k=y_{k,1} z k = y k , 1 is an exact minimizer, while the corresponding kernel contribution is zero by definition. Summing over k k k and dividing by M ′ M' M ′ , we obtain
R ∗ p ≤ 1 M ′ ∑ k = 1 K 21 { N ( k ) > 1 } N ( k ) − 1 ∑ 1 ≤ n < n ′ ≤ N ( k ) d Y ( y k , n , y k , n ′ ) p . R_*^p\le\frac{1}{M'}\sum_{k=1}^{K}\frac{2\mathbf{1}_{\{N(k)>1\}}}{N(k)-1}\sum_{1\le n<n'\le N(k)}d_Y(y_{k,n},y_{k,n'})^p. R ∗ p ≤ M ′ 1 k = 1 ∑ K N ( k ) − 1 2 1 { N ( k ) > 1 } 1 ≤ n < n ′ ≤ N ( k ) ∑ d Y ( y k , n , y k , n ′ ) p .
Thus, R ∗ ≤ Kersize ( D M ′ , p ) K R_*\le\operatorname{Kersize}(D_{M'},p)_K R ∗ ≤ Kersize ( D M ′ , p ) K . Together with Step 1, this gives
1 2 Kersize ( D M ′ , p ) K ≤ inf ϕ L ( D M ′ , ϕ , p ) ≤ Kersize ( D M ′ , p ) K . \frac{1}{2}\operatorname{Kersize}(D_{M'},p)_K\le\inf_{\phi}\mathcal{L}(D_{M'},\phi,p)\le\operatorname{Kersize}(D_{M'},p)_K. 2 1 Kersize ( D M ′ , p ) K ≤ ϕ inf L ( D M ′ , ϕ , p ) ≤ Kersize ( D M ′ , p ) K .
Step 5: Construction of an upper hemicontinuous minimizer. It remains to show that the unrestricted empirical optimum can be attained by an upper hemicontinuous map with nonempty compact values. Assume first that K ≥ 2 K\ge2 K ≥ 2 , and define r : = 1 3 min k ≠ k ′ d X ( x k , x k ′ ) > 0 r:=\frac{1}{3}\min_{k\ne k'}d_X(x_k,x_{k'})>0 r := 3 1 min k = k ′ d X ( x k , x k ′ ) > 0 . For k = 1 , … , K k=1,\ldots,K k = 1 , … , K , let C k : = B ‾ d X ( x k , r ) C_k:=\overline{B}_{d_X}(x_k,r) C k := B d X ( x k , r ) . For k ≠ k ′ k\ne k' k = k ′ , the triangle inequality implies d X ( C k , C k ′ ) ≥ d X ( x k , x k ′ ) − 2 r > 0 d_X(C_k,C_{k'})\ge d_X(x_k,x_{k'})-2r>0 d X ( C k , C k ′ ) ≥ d X ( x k , x k ′ ) − 2 r > 0 . Hence the sets C 1 , … , C K C_1,\ldots,C_K C 1 , … , C K are pairwise disjoint. If K = 1 K=1 K = 1 , choose any r > 0 r>0 r > 0 and define C 1 C_1 C 1 in the same way. Choose an arbitrary z 0 ∈ Y z_0\in\mathcal{Y} z 0 ∈ Y , and define
Φ ( x ) = { { z k } , x ∈ int ( C k ) , { z 0 , z k } , x ∈ ∂ C k , { z 0 } , x ∉ ⋃ k = 1 K C k . \Phi(x)=
\begin{cases}
\{z_k\}, & x\in\operatorname{int}(C_k),\\
\{z_0,z_k\}, & x\in\partial C_k,\\
\{z_0\}, & x\notin\bigcup_{k=1}^{K}C_k.
\end{cases} Φ ( x ) = ⎩ ⎨ ⎧ { z k } , { z 0 , z k } , { z 0 } , x ∈ int ( C k ) , x ∈ ∂ C k , x ∈ / ⋃ k = 1 K C k .
Every value of Φ \Phi Φ is nonempty and finite, and hence compact. We claim that Φ \Phi Φ is upper hemicontinuous. Away from the boundaries ∂ C k \partial C_k ∂ C k , the map is locally constant and is therefore upper hemicontinuous. Now let x ∈ ∂ C k x\in\partial C_k x ∈ ∂ C k . Since the sets C k C_k C k are positively separated, there exists a neighborhood U U U of x x x that intersects no C k ′ C_{k'} C k ′ with k ′ ≠ k k'\ne k k ′ = k . Thus, for every x ′ ∈ U x'\in U x ′ ∈ U , Φ ( x ′ ) ∈ { { z k } , { z 0 } , { z 0 , z k } } \Phi(x') \in\{\{z_k\}, \{z_0\}, \{z_0,z_k\}\} Φ ( x ′ ) ∈ {{ z k } , { z 0 } , { z 0 , z k }} . Let V ⊂ Y V \subset\mathcal{Y} V ⊂ Y be any open set containing Φ ( x ) = { z 0 , z k } \Phi(x) = \{z_0,z_k\} Φ ( x ) = { z 0 , z k } . Then z 0 , z k ∈ V z_0,z_k \in V z 0 , z k ∈ V , and consequently
{ z k } ⊂ V , { z 0 } ⊂ V , { z 0 , z k } ⊂ V . \{z_k\} \subset V,\qquad\{z_0\} \subset V,\qquad\{z_0,z_k\} \subset V. { z k } ⊂ V , { z 0 } ⊂ V , { z 0 , z k } ⊂ V .
Hence, after possibly shrinking U U U , Φ ( x ′ ) ⊂ V \Phi(x') \subset V Φ ( x ′ ) ⊂ V for all x ′ ∈ U x' \in U x ′ ∈ U . This proves upper hemicontinuity at x x x , and therefore Φ \Phi Φ is upper hemicontinuous on M 2 \mathcal{M}_2 M 2 . Finally, since x k ∈ int ( C k ) x_k \in\operatorname{int}(C_k) x k ∈ int ( C k ) , Φ ( x k ) = { z k } \Phi(x_k) = \{z_k\} Φ ( x k ) = { z k } for k = 1 , … , K k = 1,\ldots,K k = 1 , … , K . Therefore,
L ( D M ′ , Φ , p ) = 1 M ′ ∑ k = 1 K ∑ n = 1 N ( k ) d ( y k , n , z k ) p = R ∗ p . \mathcal{L}(D_{M'},\Phi,p) = \frac{1}{M'}\sum_{k=1}^{K}\sum_{n=1}^{N^{(k)}}d(y_{k,n},z_k)^p = R_*^p. L ( D M ′ , Φ , p ) = M ′ 1 k = 1 ∑ K n = 1 ∑ N ( k ) d ( y k , n , z k ) p = R ∗ p .
Thus the unrestricted empirical infimum is attained by an upper hemicontinuous map with nonempty finite, hence compact, values. Φ \Phi Φ is singleton-valued on the open neighborhood int ( C k ) \operatorname{int}(C_k) int ( C k ) of every anchor x k x_k x k . Consequently,
inf ϕ u h c L ( D M ′ , ϕ u h c , p ) = inf ϕ L ( D M ′ , ϕ , p ) , \inf_{\phi_{\mathrm{uhc}}}\mathcal{L}(D_{M'},\phi_{\mathrm{uhc}},p)=\inf_{\phi}\mathcal{L}(D_{M'},\phi,p), ϕ uhc inf L ( D M ′ , ϕ uhc , p ) = ϕ inf L ( D M ′ , ϕ , p ) ,
and both infima lie between the lower and upper bound from steps 1 and 4. This completes the proof.
Proof of Proposition 2.13
Proof. For each edge e = ( k , j ) ∈ E e=(k,j)\in E e = ( k , j ) ∈ E , define a e : = d Y H ( { y j } , ϕ ( x k ) ) a_e := d^H_{\mathcal{Y}}(\{y_j\},\phi(x_k)) a e := d Y H ({ y j } , ϕ ( x k )) and b e : = ℓ r ( e ) ( ϕ ) b_e := \ell_{r(e)}(\phi) b e := ℓ r ( e ) ( ϕ ) . By the choice of the reference index r ( e ) r(e) r ( e ) , we have ∣ a e − b e ∣ ≤ γ e |a_e-b_e|\leq\gamma_e ∣ a e − b e ∣ ≤ γ e . Since M ′ = ∣ E ∣ M'=|E| M ′ = ∣ E ∣ ,
L ( D M ′ , ϕ , p ) = ( 1 M ′ ∑ e ∈ E a e p ) 1 / p . \mathcal{L}(D_{M'},\phi,p)=\left(\frac{1}{M'}\sum_{e\in E}a_e^p\right)^{1/p}. L ( D M ′ , ϕ , p ) = ( M ′ 1 e ∈ E ∑ a e p ) 1/ p .
By the reverse triangle inequality for the ℓ p \ell_p ℓ p -norm,
∣ L ( D M ′ , ϕ , p ) − ( 1 M ′ ∑ e ∈ E b e p ) 1 / p ∣ ≤ ( 1 M ′ ∑ e ∈ E ∣ a e − b e ∣ p ) 1 / p ≤ ( 1 M ′ ∑ e ∈ E γ e p ) 1 / p = Γ p ( ϕ ) . \left|\mathcal{L}(D_{M'},\phi,p)-\left(\frac{1}{M'}\sum_{e\in E}b_e^p\right)^{1/p}\right|
\leq\left(\frac{1}{M'}\sum_{e\in E}|a_e-b_e|^p\right)^{1/p}
\leq\left(\frac{1}{M'}\sum_{e\in E}\gamma_e^p\right)^{1/p}
=\Gamma_p(\phi). L ( D M ′ , ϕ , p ) − ( M ′ 1 e ∈ E ∑ b e p ) 1/ p ≤ ( M ′ 1 e ∈ E ∑ ∣ a e − b e ∣ p ) 1/ p ≤ ( M ′ 1 e ∈ E ∑ γ e p ) 1/ p = Γ p ( ϕ ) .
Next, by the definition of the reference weights w i w_i w i ,
1 M ′ ∑ e ∈ E b e p = 1 M ′ ∑ e ∈ E ℓ r ( e ) ( ϕ ) p = ∑ m = 1 M w m ℓ m ( ϕ ) p . \frac{1}{M'}\sum_{e\in E}b_e^p=\frac{1}{M'}\sum_{e\in E}\ell_{r(e)}(\phi)^p=\sum_{m=1}^{M}w_m\ell_m(\phi)^p. M ′ 1 e ∈ E ∑ b e p = M ′ 1 e ∈ E ∑ ℓ r ( e ) ( ϕ ) p = m = 1 ∑ M w m ℓ m ( ϕ ) p .
Hence, using 0 ≤ ℓ m ( ϕ ) ≤ B ϕ 0\leq\ell_m(\phi)\leq B_\phi 0 ≤ ℓ m ( ϕ ) ≤ B ϕ for all m ∈ { 1 , … , M } m\in\{1,\ldots,M\} m ∈ { 1 , … , M } ,
∣ ∑ m = 1 M w m ℓ m ( ϕ ) p − 1 M ∑ m = 1 M ℓ m ( ϕ ) p ∣ = ∣ ∑ m = 1 M ( w m − 1 M ) ℓ m ( ϕ ) p ∣ ≤ ∑ m = 1 M ∣ w m − 1 M ∣ ℓ m ( ϕ ) p ≤ B ϕ p ∑ m = 1 M ∣ w m − 1 M ∣ . \left|\sum_{m=1}^{M}w_m\ell_m(\phi)^p-\frac{1}{M}\sum_{m=1}^{M}\ell_m(\phi)^p\right|
=\left|\sum_{m=1}^{M}\left(w_m-\frac{1}{M}\right)\ell_m(\phi)^p\right|
\leq\sum_{m=1}^{M}\left|w_m-\frac{1}{M}\right|\ell_m(\phi)^p
\leq B_\phi^p\sum_{m=1}^{M}\left|w_m-\frac{1}{M}\right|. m = 1 ∑ M w m ℓ m ( ϕ ) p − M 1 m = 1 ∑ M ℓ m ( ϕ ) p = m = 1 ∑ M ( w m − M 1 ) ℓ m ( ϕ ) p ≤ m = 1 ∑ M w m − M 1 ℓ m ( ϕ ) p ≤ B ϕ p m = 1 ∑ M w m − M 1 .
For nonnegative s , t s,t s , t and p ≥ 1 p\geq1 p ≥ 1 , the map u ↦ u 1 / p u\mapsto u^{1/p} u ↦ u 1/ p satisfies ∣ s 1 / p − t 1 / p ∣ ≤ ∣ s − t ∣ 1 / p |s^{1/p}-t^{1/p}|\leq|s-t|^{1/p} ∣ s 1/ p − t 1/ p ∣ ≤ ∣ s − t ∣ 1/ p . Therefore,
∣ ( ∑ m = 1 M w m ℓ m ( ϕ ) p ) 1 / p − ( 1 M ∑ m = 1 M ℓ m ( ϕ ) p ) 1 / p ∣ ≤ B ϕ ( ∑ m = 1 M ∣ w m − 1 M ∣ ) 1 / p . \left|\left(\sum_{m=1}^{M}w_m\ell_m(\phi)^p\right)^{1/p}
-\left(\frac{1}{M}\sum_{m=1}^{M}\ell_m(\phi)^p\right)^{1/p}\right|
\leq B_\phi\left(\sum_{m=1}^{M}\left|w_m-\frac{1}{M}\right|\right)^{1/p}. ( m = 1 ∑ M w m ℓ m ( ϕ ) p ) 1/ p − ( M 1 m = 1 ∑ M ℓ m ( ϕ ) p ) 1/ p ≤ B ϕ ( m = 1 ∑ M w m − M 1 ) 1/ p .
Combining the preceding two inequalities with the triangle inequality gives the claimed bound
∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ Γ p ( ϕ ) + B ϕ ( ∑ m = 1 M ∣ w m − 1 M ∣ ) 1 / p . |\mathcal{L}(D_{M'},\phi,p)-\mathcal{L}(D_M,\phi,p)|
\leq\Gamma_p(\phi)+B_\phi\left(\sum_{m=1}^{M}\left|w_m-\frac{1}{M}\right|\right)^{1/p}. ∣ L ( D M ′ , ϕ , p ) − L ( D M , ϕ , p ) ∣ ≤ Γ p ( ϕ ) + B ϕ ( m = 1 ∑ M w m − M 1 ) 1/ p .
Proof of Proposition 2.17
Proof. Conditional on X ‾ \overline{X} X , let Y ′ Y' Y ′ be an independent copy of Y Y Y . Then E [ ∥ Y − Y ′ ∥ 2 2 ∣ X ‾ ] = 2 E [ ∥ Y − m ( X ‾ ) ∥ 2 2 ∣ X ‾ ] \mathbb{E}[\lVert Y-Y'\rVert_{2}^{2}\mid\overline{X}]=2\mathbb{E}[\lVert Y-m(\overline{X})\rVert_{2}^{2}\mid\overline{X}] E [∥ Y − Y ′ ∥ 2 2 ∣ X ] = 2 E [∥ Y − m ( X ) ∥ 2 2 ∣ X ] . The conditional Pythagorean identity gives E [ ∥ Y − ϕ ‾ ( X ‾ ) ∥ 2 2 ∣ X ‾ ] = E [ ∥ Y − m ( X ‾ ) ∥ 2 2 ∣ X ‾ ] + ∥ m ( X ‾ ) − ϕ ‾ ( X ‾ ) ∥ 2 2 \mathbb{E}[\lVert Y-\overline{\phi}(\overline{X})\rVert_{2}^{2}\mid\overline{X}]=\mathbb{E}[\lVert Y-m(\overline{X})\rVert_{2}^{2}\mid\overline{X}]+\lVert m(\overline{X})-\overline{\phi}(\overline{X})\rVert_{2}^{2} E [∥ Y − ϕ ( X ) ∥ 2 2 ∣ X ] = E [∥ Y − m ( X ) ∥ 2 2 ∣ X ] + ∥ m ( X ) − ϕ ( X ) ∥ 2 2 . Taking expectations proves the result.
Proof of Proposition 2.18
Proof. Regression generalization gap: Let ϕ ‾ : M ‾ 2 → Y ‾ \overline{\phi}:\overline{\mathcal{M}}_{2}\to\overline{\mathcal{Y}} ϕ : M 2 → Y be a measurable regressor such that L ( D μ , ϕ ‾ , p ) < ∞ \mathcal{L}(\mathcal{D}_{\mu},\overline{\phi},p)<\infty L ( D μ , ϕ , p ) < ∞ . Fix X ‾ \overline{X} X . Let Y , Y ′ ∼ i . i . d . μ ( ⋅ ∣ X ‾ ) Y,Y'\mathrel{\overset{i.i.d.}{\sim}}\mu(\cdot\mid\overline{X}) Y , Y ′ ∼ i . i . d . μ ( ⋅ ∣ X ) . By the triangle inequality, d Y ( Y , Y ′ ) ≤ d Y ( Y , ϕ ‾ ( X ‾ ) ) + d Y ( ϕ ‾ ( X ‾ ) , Y ′ ) d_{\mathcal{Y}}(Y,Y')\le d_{\mathcal{Y}}(Y,\overline{\phi}(\overline{X}))+d_{\mathcal{Y}}(\overline{\phi}(\overline{X}),Y') d Y ( Y , Y ′ ) ≤ d Y ( Y , ϕ ( X )) + d Y ( ϕ ( X ) , Y ′ ) . Applying ( a + b ) p ≤ 2 p − 1 ( a p + b p ) (a+b)^{p}\le2^{p-1}(a^{p}+b^{p}) ( a + b ) p ≤ 2 p − 1 ( a p + b p ) gives d Y ( Y , Y ′ ) p ≤ 2 p − 1 ( d Y ( Y , ϕ ‾ ( X ‾ ) ) p + d Y ( Y ′ , ϕ ‾ ( X ‾ ) ) p ) d_{\mathcal{Y}}(Y,Y')^{p}\le2^{p-1}(d_{\mathcal{Y}}(Y,\overline{\phi}(\overline{X}))^{p}+d_{\mathcal{Y}}(Y',\overline{\phi}(\overline{X}))^{p}) d Y ( Y , Y ′ ) p ≤ 2 p − 1 ( d Y ( Y , ϕ ( X ) ) p + d Y ( Y ′ , ϕ ( X ) ) p ) . Now taking the conditional expectation given X ‾ \overline{X} X , gives
E [ d Y ( Y , Y ′ ) p ∣ X ‾ ] ≤ 2 p − 1 ( E [ d Y ( Y , ϕ ‾ ( X ‾ ) ) p ∣ X ‾ ] + E [ d Y ( Y ′ , ϕ ‾ ( X ‾ ) ) p ∣ X ‾ ] ) . \mathbb{E}[d_{\mathcal{Y}}(Y,Y')^{p}\mid\overline{X}]\le2^{p-1}\left(\mathbb{E}[d_{\mathcal{Y}}(Y,\overline{\phi}(\overline{X}))^{p}\mid\overline{X}]+\mathbb{E}[d_{\mathcal{Y}}(Y',\overline{\phi}(\overline{X}))^{p}\mid\overline{X}]\right). E [ d Y ( Y , Y ′ ) p ∣ X ] ≤ 2 p − 1 ( E [ d Y ( Y , ϕ ( X ) ) p ∣ X ] + E [ d Y ( Y ′ , ϕ ( X ) ) p ∣ X ] ) .
Since Y Y Y and Y ′ Y' Y ′ are i.i.d. conditional on X ‾ \overline{X} X , E [ d Y ( Y ′ , ϕ ‾ ( X ‾ ) ) p ∣ X ‾ ] = E [ d Y ( Y , ϕ ‾ ( X ‾ ) ) p ∣ X ‾ ] \mathbb{E}[d_{\mathcal{Y}}(Y',\overline{\phi}(\overline{X}))^{p}\mid\overline{X}]=\mathbb{E}[d_{\mathcal{Y}}(Y,\overline{\phi}(\overline{X}))^{p}\mid\overline{X}] E [ d Y ( Y ′ , ϕ ( X ) ) p ∣ X ] = E [ d Y ( Y , ϕ ( X ) ) p ∣ X ] . Hence, 2 1 − p E [ d Y ( Y , Y ′ ) p ∣ X ‾ ] ≤ E [ d Y ( Y , ϕ ‾ ( X ‾ ) ) p ∣ X ‾ ] 2^{1-p}\mathbb{E}[d_{\mathcal{Y}}(Y,Y')^{p}\mid\overline{X}]\le\mathbb{E}[d_{\mathcal{Y}}(Y,\overline{\phi}(\overline{X}))^{p}\mid\overline{X}] 2 1 − p E [ d Y ( Y , Y ′ ) p ∣ X ] ≤ E [ d Y ( Y , ϕ ( X ) ) p ∣ X ] . Taking the expectation over X ‾ \overline{X} X and using the tower property on the right hand side, yields
2 1 − p E X ‾ E Y , Y ′ ∣ X ‾ [ d Y ( Y , Y ′ ) p ] ≤ E ( Y , X ‾ ) [ d Y ( ϕ ‾ ( X ‾ ) , Y ) p ] . 2^{1-p}\mathbb{E}_{\overline{X}}\mathbb{E}_{Y,Y'\mid\overline{X}}[d_{\mathcal{Y}}(Y,Y')^{p}]\le\mathbb{E}_{(Y,\overline{X})}[d_{\mathcal{Y}}(\overline{\phi}(\overline{X}),Y)^{p}]. 2 1 − p E X E Y , Y ′ ∣ X [ d Y ( Y , Y ′ ) p ] ≤ E ( Y , X ) [ d Y ( ϕ ( X ) , Y ) p ] .
Now taking the 1 / p 1/p 1/ p -th power on both sides yields
2 − 1 ( E X ‾ E Y , Y ′ ∣ X ‾ [ d Y ( Y , Y ′ ) p ] ) 1 / p ≤ E ( Y , X ‾ ) [ d Y ( ϕ ‾ ( X ‾ ) , Y ) p ] 1 / p . 2^{-1}\left(\mathbb{E}_{\overline{X}}\mathbb{E}_{Y,Y'\mid\overline{X}}[d_{\mathcal{Y}}(Y,Y')^{p}]\right)^{1/p}\le\mathbb{E}_{(Y,\overline{X})}[d_{\mathcal{Y}}(\overline{\phi}(\overline{X}),Y)^{p}]^{1/p}. 2 − 1 ( E X E Y , Y ′ ∣ X [ d Y ( Y , Y ′ ) p ] ) 1/ p ≤ E ( Y , X ) [ d Y ( ϕ ( X ) , Y ) p ] 1/ p .
Thus, as Kersize ( D μ , p ) : = ( E X ‾ E Y , Y ′ ∣ X ‾ [ d Y ( Y , Y ′ ) p ] ) 1 / p \operatorname{Kersize}(\mathcal{D}_{\mu},p):=\left(\mathbb{E}_{\overline{X}}\mathbb{E}_{Y,Y'\mid\overline{X}}[d_{\mathcal{Y}}(Y,Y')^{p}]\right)^{1/p} Kersize ( D μ , p ) := ( E X E Y , Y ′ ∣ X [ d Y ( Y , Y ′ ) p ] ) 1/ p we have that 2 − 1 Kersize ( D μ , p ) ≤ L ( D μ , ϕ ‾ , p ) 2^{-1}\operatorname{Kersize}(\mathcal{D}_{\mu},p)\le\mathcal{L}(\mathcal{D}_{\mu},\overline{\phi},p) 2 − 1 Kersize ( D μ , p ) ≤ L ( D μ , ϕ , p ) . Finally, since empirical risk is bounded by ϵ \epsilon ϵ , we have that − ϵ ≤ − L ( D M , ϕ ‾ , p ) -\epsilon\le-\mathcal{L}(\mathcal{D}_{M},\overline{\phi},p) − ϵ ≤ − L ( D M , ϕ , p ) , and, thus 2 − 1 Kersize ( D μ , p ) − ϵ ≤ L ( D μ , ϕ ‾ , p ) − L ( D M , ϕ ‾ , p ) 2^{-1}\operatorname{Kersize}(\mathcal{D}_{\mu},p)-\epsilon\le\mathcal{L}(\mathcal{D}_{\mu},\overline{\phi},p)-\mathcal{L}(\mathcal{D}_{M},\overline{\phi},p) 2 − 1 Kersize ( D μ , p ) − ϵ ≤ L ( D μ , ϕ , p ) − L ( D M , ϕ , p ) . The Euclidean sharpening follows from Proposition 2.17. Classification generalization gap: The proof follows the same structure as for the regression case by bounding Acc ( D μ , ϕ ‾ ) : = 1 − E ( Y , X ‾ ) ∼ μ [ d H ( Y , ϕ ‾ ( X ‾ ) ) ] \operatorname{Acc}(\mathcal{D}_{\mu},\overline{\phi}):=1-\mathbb{E}_{(Y,\overline{X})\sim\mu}[d_{\mathcal{H}}(Y,\overline{\phi}(\overline{X}))] Acc ( D μ , ϕ ) := 1 − E ( Y , X ) ∼ μ [ d H ( Y , ϕ ( X ))] from above.
Proof of Proposition 2.19
Proof. For each k k k , let
U k : = 2 N K ( N K − 1 ) ∑ 1 ≤ n < n ′ ≤ N K d Y ( Y k , n , Y k , n ′ ) p . U_{k}:=\frac{2}{N_{K}(N_{K}-1)}\sum_{1\le n<n'\le N_{K}}d_{\mathcal{Y}}(Y_{k,n},Y_{k,n'})^{p}. U k := N K ( N K − 1 ) 2 1 ≤ n < n ′ ≤ N K ∑ d Y ( Y k , n , Y k , n ′ ) p .
Conditional on X ‾ k \overline{X}_{k} X k , the order-two U-statistic is unbiased, so E [ U k ∣ X ‾ k ] = E [ d Y ( Y , Y ′ ) p ∣ X ‾ k ] \mathbb{E}[U_{k}\mid\overline{X}_{k}]=\mathbb{E}[d_{\mathcal{Y}}(Y,Y')^{p}\mid\overline{X}_{k}] E [ U k ∣ X k ] = E [ d Y ( Y , Y ′ ) p ∣ X k ] . Taking expectations gives E U k = Kersize ( D μ , p ) p \mathbb{E}U_{k}=\operatorname{Kersize}(\mathcal{D}_{\mu},p)^{p} E U k = Kersize ( D μ , p ) p . The variables U 1 , … , U K U_{1},\ldots,U_{K} U 1 , … , U K are independent and satisfy 0 ≤ U k ≤ v max 0\le U_{k}\le v_{\max} 0 ≤ U k ≤ v m a x . Since κ ^ K , N K = K − 1 ∑ k = 1 K U k \widehat{\kappa}_{K,N_{K}}=K^{-1}\sum_{k=1}^{K}U_{k} κ K , N K = K − 1 ∑ k = 1 K U k , Hoeffding’s inequality [40 ] gives the stated bound.
Appendix
Experiment details
Pseudo-metric on image data
Across all image-based tasks we used the same metric to ensure comparability of image-based features. The metric on images was the composition of the ℓ 2 \ell_2 ℓ 2 norm with discrete wavelet features g g g . The image feature was obtained by the concatenation of the four subbands obtained from a single-level two-dimensional discrete wavelet transform (DWT) applied independently to each channel Daubechies [ [24 ] . Given an image x ∈ R C × H × W x \in\mathbb{R}^{C \times H \times W} x ∈ R C × H × W , the resulting feature vector is denoted by g w a v ( x ) ∈ R D g_{\mathrm{wav}}(x) \in\mathbb{R}^{D} g wav ( x ) ∈ R D . The DWT was computed using a chosen wavelet basis; in all experiments, we used the Haar wavelet basis. Specifically, for each channel, the transform decomposes the image into an approximation subband, denoted by LL (low-low), and three detail subbands: LH (low-high), HL (high-low), and HH (high-high). These subbands correspond to the responses of low- and high-frequency filters applied along the two spatial dimensions. The four resulting subbands were flattened and concatenated to form the final feature, g w a v ( x ) g_{\mathrm{wav}}(x) g wav ( x ) . For wavelets with standard dyadic downsampling and even spatial dimensions, the resulting feature dimension is D = C H W D = CHW D = C H W . The image similarity was measured by the metric
d X ( x , x ′ ) = ∥ g ( x ) − g ( x ′ ) ∥ 2 . (10) d_X(x,x') = \lVert g(x) - g(x') \rVert_2 . \tag*{(10)} d X ( x , x ′ ) = ∥ g ( x ) − g ( x ′ ) ∥ 2 . (10)
More generally, this construction can be viewed as a feature-induced pseudo-metric on the original image space: if the feature map g g g is not injective, distinct images may have identical feature representations and therefore zero distance. For the specific implementation considered here, all four subbands of the Haar DWT are retained, so the transform is invertible under the corresponding DWT conventions. The pseudo-metric terminology is therefore primarily relevant to the general feature-map formulation, particularly when g g g is replaced by a potentially non-injective feature encoder.
Feasible set construction
We sampled finite feasible sets using Algorithm 1. For image-based experiments, neighboring inputs were identified using the wavelet-induced distance d X d_X d X in (10) . Threshold choice followed a fixed rule throughout the experiments; whenever prior knowledge supplied an input-noise model and/or a target/label measurement-noise model, we set the thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y to the corresponding conservative worst-case noise bounds. If such prior information was unavailable, we estimated τ X \tau_X τ X using the nearest-neighbor quantile rule in (11) and set τ Y = 0 \tau_Y = 0 τ Y = 0 unless target-noise information was available. Given the thresholds τ X \tau_X τ X and τ Y \tau_Y τ Y and an anchor ( y k , x k ) ∈ D M (y_k,x_k) \in\mathcal{D}_M ( y k , x k ) ∈ D M , the target y k , n ∈ π Y ( D M ) y_{k,n} \in\pi_Y(\mathcal{D}_M) y k , n ∈ π Y ( D M ) of a sample ( y k , n , x k , n ) ∈ D M (y_{k,n},x_{k,n}) \in\mathcal{D}_M ( y k , n , x k , n ) ∈ D M was admitted to the feasible set F x k N ( k ) F_{x_k}^{N(k)} F x k N ( k ) whenever d X ( x k , n , x k ) ≤ τ X ( x k ) d_X(x_{k,n},x_k) \leq\tau_X(x_k) d X ( x k , n , x k ) ≤ τ X ( x k ) or d Y ( y k , n , y k ) ≤ τ Y ( y k ) d_Y(y_{k,n},y_k) \leq\tau_Y(y_k) d Y ( y k , n , y k ) ≤ τ Y ( y k ) . Thus, F x k N ( k ) F_{x_k}^{N(k)} F x k N ( k ) contains targets associated with samples that are close to the anchor either in input space or in target space. For one-hot labels, we set τ Y = 0 \tau_Y = 0 τ Y = 0 . In the case that prior knowledge did not supply an input-noise model, we used the following dataset-dependent procedure for the input threshold
τ X ( q ) = Quantile q ( { d X ( x m , x ( 1 ) ( m ) ) } m = 1 M ) , (11) \tau_X(q) = \operatorname{Quantile}_q\left(\left\{d_X(x_m,x_{(1)}^{(m)})\right\}_{m=1}^{M}\right), \tag*{(11)} τ X ( q ) = Quantile q ( { d X ( x m , x ( 1 ) ( m ) ) } m = 1 M ) , (11)
where x ( 1 ) ( m ) x_{(1)}^{(m)} x ( 1 ) ( m ) denotes the closest non-self neighbor of x m x_m x m . The nearest neighbors for the dataset-dependent input threshold selection were computed with the nearest neighbor algorithm from Pedregosa et al. [ [59 ] .2 We used the standard settings, the metric corresponding to the choice of d X d_X d X and reported the maximum number of nearest neighbors N max N_{\max} N m a x used in nearest neighbor algorithm from Pedregosa et al. [2011] in the experiments.3 Additionally, we chose the maximum number of nearest neighbors N max N_{\max} N m a x such that the average kernel size converged with an ablation study outlined below. If the worst-case noise threshold was unknown, in our experiments we did not estimate τ Y \tau_Y τ Y via quantiles and set τ Y = 0 \tau_Y = 0 τ Y = 0 , thereby assuming noiseless targets.
The quantile parameter q q q for choosing the threshold τ X ( q ) \tau_X(q) τ X ( q ) in (9.2) determines the locality scale at which samples are treated as indistinguishable with respect to the pseudo-metric d X d_X d X : smaller values of q q q enforce more local feasible sets, whereas larger values increase sample support but may merge points that are no longer similar. To focus on local neighborhoods we restricted the quantile to q ∈ [ 0.01 , 0.1 ] q \in[0.01, 0.1] q ∈ [ 0.01 , 0.1 ] , that is, to the lower tail of the nearest-neighbor distance distribution. Within this range, q q q was chosen by a bandwidth stability heuristic rather than by an optimality criterion: we selected the smallest q q q lying in a region where the estimated average kernel size changed only mildly across neighboring values of q q q . We identified such a region by requiring both small relative changes in the average kernel size and approximately small local curvature, and then choose the smallest q q q in that plateau. This favors the most local scale at which the estimated ambiguity is not unduly sensitive to the threshold choice. We emphasize that this is a practical empirical heuristic for selecting a stable locality scale, not a claim of statistical optimality. To make the dependence on q q q transparent, we reported full sensitivity curves in Section 9.2 below, which contains additional ablation studies, and verified that the average kernel size remained qualitatively stable throughout the selected range.
The values of q q q , τ X \tau_X τ X , and τ Y \tau_Y τ Y and the average feasible set size N ‾ ( k ) \overline{N}(k) N ( k ) , as well as M ′ M' M ′ and the number of anchor samples K K K , are reported for each experiment.
Ablation study on maximum number of nearest neighbors and quantiles: We assessed sensitivity to the quantile q q q and maximum number of nearest neighbors N max N_{\max} N m a x used in nearest neighbor algorithm from Pedregosa et al. [2011] for computing the threshold τ X ( q ) \tau_X(q) τ X ( q ) and varied q ∈ { 0.01 , 0.02 , 0.03 , 0.05 , 0.06 , 0.08 , 0.1 } q \in\{0.01, 0.02, 0.03, 0.05, 0.06, 0.08, 0.1\} q ∈ { 0.01 , 0.02 , 0.03 , 0.05 , 0.06 , 0.08 , 0.1 } and N max ∈ { 10 , 20 , 30 , 40 , 50 , 100 , 200 , 300 , 450 } N_{\max} \in\{10, 20, 30, 40, 50, 100, 200, 300, 450\} N m a x ∈ { 10 , 20 , 30 , 40 , 50 , 100 , 200 , 300 , 450 } . In the ablation over the neighborhood size we selected N max N_{\max} N m a x such that the average kernel size remained constant for larger N max N_{\max} N m a x . For varying the neighborhood size we set a convergence criterion at 10 − 4 10^{-4} 1 0 − 4 . For completeness, we extended the ablation study on quantiles to
q ∈ { 0.01 , 0.02 , 0.03 , 0.05 , 0.06 , 0.08 , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 , 0.9 , 1.0 } , q \in\{0.01, 0.02, 0.03, 0.05, 0.06, 0.08, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0\}, q ∈ { 0.01 , 0.02 , 0.03 , 0.05 , 0.06 , 0.08 , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 , 0.9 , 1.0 } ,
although we do not recommend extending beyond the quantile q = 0.1 q = 0.1 q = 0.1 , as the resulting threshold τ X ( q ) \tau_X(q) τ X ( q ) is unlikely to satisfy Assumption 2.6 for larger quantiles. For each parameter choice, we recomputed the nearest-neighbor graph, threshold τ X \tau_X τ X , feasible sets, and average kernel size. This provides an empirical assessment of the stability of the resulting feasible-set geometry and is reported in Section 9.2.
Regression dataset details
For the synthetic regression dataset, we computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 300 N_{\max} = 300 N m a x = 300 , see Figure 10 . We generated a mesh grid of M = 900 M = 900 M = 900 noisy input points ( x 1 , x 2 ) ∈ [ − 1 , 1 ] 2 (x_1,x_2) \in[-1,1]^2 ( x 1 , x 2 ) ∈ [ − 1 , 1 ] 2 and a noisy surface from the regression target function f ( x 1 , x 2 ) = sin ( 1 + 0.9 x 1 2 + x 2 2 ) f(x_1,x_2) = \sin\left(1 + 0.9\sqrt{x_1^2 + x_2^2}\right) f ( x 1 , x 2 ) = sin ( 1 + 0.9 x 1 2 + x 2 2 ) evaluated on the mesh grid of input points, where we added uniform input noise U ( [ 0 , 0.01 ] 2 ) U([0,0.01]^2) U ([ 0 , 0.01 ] 2 ) and target noise U ( [ 0 , 0.03 ] ) U([0,0.03]) U ([ 0 , 0.03 ]) . Because bounded input and target noise were prescribed in the data-generation process, we set τ X \tau_X τ X and τ Y \tau_Y τ Y equal to the corresponding worst-case noise magnitudes. Thus, we chose τ X = 0.014 = 0.01 2 + 0.01 2 \tau_X = 0.014 = \sqrt{0.01^2 + 0.01^2} τ X = 0.014 = 0.0 1 2 + 0.0 1 2 and τ Y = 0.03 \tau_Y = 0.03 τ Y = 0.03 . We trained three regressors to approximate the target function f f f from samples in a train dataset D M t r a i n D_{M_{\mathrm{train}}} D M train and evaluated their predictive error on held-out test data. We considered a Gaussian Process regressor ϕ 1 s t \phi_{1st} ϕ 1 s t , a multilayer perceptron (MLP) regressor ϕ 2 n d \phi_{2nd} ϕ 2 n d , and a Support Vector Regression (SVR) model with a radial basis function (RBF) kernel, denoted by ϕ 3 r d \phi_{3rd} ϕ 3 r d . We report the RMSE of each model on both the original test dataset D M t e s t D_{M_{\mathrm{test}}} D M test and the constructed test dataset D M t e s t ′ D_{M'_{\mathrm{test}}} D M test ′ generated by Algorithm 1. The error of the optimal regressor on D M t e s t ′ D_{M'_{\mathrm{test}}} D M test ′ is given by R ∗ = 0.01656 R_* = 0.01656 R ∗ = 0.01656 .
Figure 10. Average kernel size, A K AK A K or also Kersize ( D M ′ , 2 ) K \operatorname{Kersize}(D_{M^{\prime}},2)_{K} Kersize ( D M ′ , 2 ) K , for regression datasets as a function of the maximum number of nearest neighbors N max N_{\max} N m a x used in the threshold τ X \tau_{X} τ X and feasible set computation. For synthetic regression the thresholds are chosen based on the worst-case noise and otherwise, the input threshold is chosen as the q t h q^{\mathrm{th}} q th quantile of the nearest-neighbor distances according to (11) . The quantile q q q and number of anchor samples K K K for train and test splits can be found in Table 2 .
As a noiseless control, we repeated the feasible-set construction on data generated from the deterministic relation Y = f ( X ) Y = f(X) Y = f ( X ) , for which the Bayes RMSE is zero. For all tested positive input thresholds with τ Y = 0 \tau_Y = 0 τ Y = 0 , the empirical average kernel size was also zero on both train and test splits. Hence, in this setting the geometric threshold construction did not itself induce target ambiguity.
For a comparison to the Bayes risk, we assume the additive noise model
Y = f ( X ) + ϵ , ϵ ∼ U ( [ 0 , 0.03 ] ) , Y = f(X) + \epsilon, \qquad\epsilon\sim U([0, 0.03]), Y = f ( X ) + ϵ , ϵ ∼ U ([ 0 , 0.03 ]) ,
with ϵ \epsilon ϵ independent of X X X . Hence Var ( Y ∣ X ) = Var ( ϵ ) = 0.03 2 12 \operatorname{Var}(Y \mid X) = \operatorname{Var}(\epsilon) = \frac{0.03^2}{12} Var ( Y ∣ X ) = Var ( ϵ ) = 12 0.0 3 2 , so the Bayes RMSE is 0.03 12 ≈ 0.00866 \frac{0.03}{\sqrt{12}} \approx0.00866 12 0.03 ≈ 0.00866 . By Proposition 2.17, the corresponding population comparison quantity is 1 2 Kersize ( D μ , 2 ) \frac{1}{\sqrt{2}}\operatorname{Kersize}(D_\mu, 2) 2 1 Kersize ( D μ , 2 ) . As we do not observe D μ D_\mu D μ , we compute the empirical proxy 1 2 Kersize ( D M t e s t ′ , 2 ) K \frac{1}{\sqrt{2}}\operatorname{Kersize}(D_{M'_{\mathrm{test}}}, 2)_K 2 1 Kersize ( D M test ′ , 2 ) K .
For τ X ∈ { 10 − 5 , 0.01 , 0.04 , 0.1 } \tau_X \in\{10^{-5}, 0.01, 0.04, 0.1\} τ X ∈ { 1 0 − 5 , 0.01 , 0.04 , 0.1 } , the empirical results are identical, indicating that the input-threshold criterion is inactive in this regime. The corresponding test values of the average kernel size are
0.007509 , 0.011363 , 0.015147 , 0.022562 0.007509,\qquad0.011363,\qquad0.015147,\qquad0.022562 0.007509 , 0.011363 , 0.015147 , 0.022562
for corresponding values of τ Y = 0.01 , 0.015 , 0.02 , 0.03 \tau_Y = 0.01, 0.015, 0.02, 0.03 τ Y = 0.01 , 0.015 , 0.02 , 0.03 , respectively. Comparing with the Bayes benchmark under the assumption that the noise is independently sampled of the input, 0.00866, we find that for τ Y = 0.01 \tau_Y = 0.01 τ Y = 0.01 the average kernel size the closest, whereas larger output thresholds increasingly overestimate the irreducible error under this independence assumption. Under target threshold misspecification for τ Y = 0.01 , 0.015 , 0.02 , 0.03 \tau_Y = 0.01, 0.015, 0.02, 0.03 τ Y = 0.01 , 0.015 , 0.02 , 0.03 , we tested Assumption 2.6 as follows: a candidate reassignment ( j , k ) (j, k) ( j , k ) is called admissible if the observed target value y j y_j y j lies in the model-consistent interval associated with the anchor input X k X_k X k , namely
f ( X k ) ≤ y j ≤ f ( X k ) + 0.03. f(X_k) \le y_j \le f(X_k) + 0.03. f ( X k ) ≤ y j ≤ f ( X k ) + 0.03.
Accordingly, the test precision is defined as
Precision t e s t = # { accepted test pairs ( j , k ) that are admissible } # { accepted test pairs ( j , k ) } . \operatorname{Precision}_{\mathrm{test}} =
\frac{\#\{\text{accepted test pairs }(j,k)\text{ that are admissible}\}}
{\#\{\text{accepted test pairs }(j,k)\}}. Precision test = # { accepted test pairs ( j , k )} # { accepted test pairs ( j , k ) that are admissible } .
Its empirical value decreases from
0.8760 to 0.8082 , 0.7314 , 0.5700 0.8760 \quad\text{to} \quad0.8082,\ 0.7314,\ 0.5700 0.8760 to 0.8082 , 0.7314 , 0.5700
as τ Y \tau_Y τ Y increases.
For the Tropical Cyclone open-source dataset from Huggingface, the input images were converted to tensors. We did not assume an explicit image-space noise model and therefore chose τ X \tau_X τ X with the quantile heuristic. For the wind-speed targets, we used a heteroskedastic measurement-noise model outlined below and set τ Y ( y ) \tau_Y(y) τ Y ( y ) accordingly. We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 300 N_{\max} = 300 N m a x = 300 , see Figure 10 . For the ablation over quantiles see Figure 12 . For the tropical cyclone regression tasks in Table 3 , the maximum sustained wind speed is predicted from a triplet of consecutive satellite images or from the storm category (SC) defined by the Saffir–Simpson scale [1974]. We report the optimal accuracy intervals from Theorem 2.9 mean over 20 random subsets of size K = 1 k K = 1k K = 1 k sampled from the train and test sets, Kersize t r a i n = 7.65 ± 0.19 \operatorname{Kersize}_{\mathrm{train}} = 7.65 \pm0.19 Kersize train = 7.65 ± 0.19 , Kersize t e s t = 6.76 ± 0.15 \operatorname{Kersize}_{\mathrm{test}} = 6.76 \pm0.15 Kersize test = 6.76 ± 0.15 . The RMSE values, in knots, of the leaderboard winning models of DrivenData [2021] were computed on the test dataset. The dataset consists of single-channel long-wave infrared satellite images acquired every 15 minutes, paired with one-minute maximum sustained wind speeds in knots. Using the challenge’s storm-level splits and TorchGeo data loader Stewart et al. [2025], we obtained approximately 70k training and 44k test samples. We resized images to 366 × 366 366 \times366 366 × 366 pixels and standardized the wavelet features on the train and test splits. The wind-speed annotations are from National Aeronautics and Space Administration [2024]. As these annotations are operational intensity estimates rather than direct point measurements, we modeled their noise as heteroskedastic, with uncertainty increasing with wind speed. This is motivated by previous studies of tropical-cyclone intensity and wind-speed retrieval uncertainty Torn and Snyder [ [70 ] , Ruf et al. [ [64 ] , including approximately 1.4 m s− 1 ^{-1} − 1 low-wind and 17.2% high-wind uncertainties Ruf et al. [ [64 ] . With wind speed y y y measured in knots, we used the phenomenological uncertainty model
Figure 12. Average kernel size, A K A_K A K or also Kersize ( D M ′ , 2 ) K \operatorname{Kersize}(\mathcal{D}_{M'},2)_K Kersize ( D M ′ , 2 ) K , and scaled thresholds τ X ( q ) \tau_X(q) τ X ( q ) as functions of the quantile parameter q q q for the regression datasets. Computed on subsets of K = 1 k K=1k K = 1 k samples from the tropical cyclone training and test datasets. The threshold τ X ( q ) \tau_X(q) τ X ( q ) is computed for each quantile q q q . The number of anchor samples K K K and N max N_{\max} N m a x are in Table 2 .
τ Y ( y ) = { 2.7 , y < 39 , 0.17 y , y ≥ 39 , \tau_Y(y) =
\begin{cases}
2.7, & y < 39, \\
0.17y, & y \ge39,
\end{cases} τ Y ( y ) = { 2.7 , 0.17 y , y < 39 , y ≥ 39 ,
where 39 knots approximates 20 m s− 1 ^{-1} − 1 , 2.7 knots corresponds to approximately 1.39 m s− 1 ^{-1} − 1 , and the high-wind branch represents approximately 17% relative uncertainty. These values motivated our label-noise model but are not intended as a direct recalibration of the uncertainty estimates. For τ X = 0.0 \tau_X = 0.0 τ X = 0.0 and the same heteroskedastic noise model for τ Y \tau_Y τ Y with otherwise the same parameters, we have that Kersize ( D M t e s t ′ , 2 ) K = 5.91 \operatorname{Kersize}(\mathcal{D}_{M'_{\mathrm{test}}}, 2)_{\mathcal{K}} = 5.91 Kersize ( D M test ′ , 2 ) K = 5.91 kts. For the same input threshold and τ Y = 0.01 \tau_Y = 0.01 τ Y = 0.01 with otherwise the same parameters, we have that Kersize ( D M t e s t ′ , 2 ) K = 2.36 \operatorname{Kersize}(\mathcal{D}_{M'_{\mathrm{test}}}, 2)_{\mathcal{K}} = 2.36 Kersize ( D M test ′ , 2 ) K = 2.36 kts. The error of the optimal regressor on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by R ∗ = 4.3215 ± 0.1095 R_* = 4.3215 \pm0.1095 R ∗ = 4.3215 ± 0.1095 .
As a sanity check, we considered the Tropical Cyclone Storm Categories (SC) dataset, we used only the labels from the tropical cyclone open-source dataset from Huggingface and consider the task of predicting the wind speed from the hurricane and storm categories of the Saffir-Simpson scale Simpson [ [67 ] . We computed the average kernel size from the input of the storm category and bins containing the associated wind speeds in the train and test datasets. We assumed noiseless targets and set τ Y = 0 \tau_Y = 0 τ Y = 0 . Here we obtained accuracy bounds on the train dataset of [3.34, 6.68] and [3.23, 6.45] on the test dataset. Note that these intervals are in the same order of magnitude as the ones computed on the tropical cyclone dataset reported in Table 3 .
For UCI Energy Efficiency open-source datasets Tsanas and Xifara [ [72 ] from UCI with targets Y 1 Y_1 Y 1 and Y 2 Y_2 Y 2 , we standardized the input variables using the full set. No measurement-noise models were available, so τ X \tau_X τ X was selected by the quantile-based rule and τ Y = 0 \tau_Y = 0 τ Y = 0 . We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 100 N_{\max} = 100 N m a x = 100 , see Figure 10 . For the ablation over quantiles see Figure 12 . This dataset Tsanas and Xifara [ [72 ] contains eight input variables (relative compactness, surface area, wall area, roof area, overall height, orientation, glazing area, glazing area distribution) and two target variables, the heating load (Y 1 Y_1 Y 1 ) and cooling load (Y 2 Y_2 Y 2 ). The best model errors in RMSE were from Žegklitz and Pošík, 2017, Table 5. We assumed noiseless targets and set τ Y = 0 \tau_Y = 0 τ Y = 0 , which means that the target criterion was inactive in Algorithm 1. The error of the optimal regressor on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by R ∗ = 0.2767 R_* = 0.2767 R ∗ = 0.2767 for Y 1 Y_1 Y 1 and by R ∗ = 0.7734 R_* = 0.7734 R ∗ = 0.7734 for Y 2 Y_2 Y 2 .
For the UCI Concrete Compressive Strength open-source dataset Yeh [ [79 ] from UCI, we standardized the input variables using the full dataset. No measurement-noise models were available, so τ X \tau_X τ X was selected by the quantile-based rule and τ Y = 0 \tau_Y = 0 τ Y = 0 . We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 50 N_{\max} = 50 N m a x = 50 , see Figure 11 . For the ablation over quantiles see Figure 12 . For this dataset Yeh [ [79 ] there are eight input variables (cement, blast furnace slag, fly ash, water, superplasticizer, coarse aggregate, fine aggregate, and age) and one target variable, the concrete compressive strength. The best model errors in RMSE were from the benchmark results reported in [57 Table 10] . The error of the optimal regressor on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by R ∗ = 1.7136 R_* = 1.7136 R ∗ = 1.7136 .
Figure 11. Average kernel size, A K AK A K or also Kersize ( D M ′ , 2 ) K \operatorname{Kersize}(D_{M'},2)_{K} Kersize ( D M ′ , 2 ) K , for regression datasets as a function of the maximum number of nearest neighbors N max N_{\max} N m a x used in the threshold τ X \tau_X τ X and feasible set computation. For CHF the thresholds are chosen based on the worst-case noise and for concrete strength the input threshold is chosen as the q t h q^{\mathrm{th}} q th quantile of the nearest-neighbor distances according to (11) . The quantile q q q and number of anchor samples K K K for train and test splits can be found in Table 2 .
For the KAERI Critical Heat Flux (CHF) open-source dataset with uniform axial heating Park [ [58 ] from Kaggle, we standardized the input variables using the full set. We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 50 N_{\max} = 50 N m a x = 50 , see Figure 11 . We used five input variables (diameter, heated length, pressure, mass flux, and equilibrium quality) and one target variable, the critical heat flux. We set τ Y \tau_Y τ Y equal to the worst-case noise magnitude of a heteroskedastic noise model. To account for input measurement uncertainty, we assigned uncertainties of ± 1 % \pm1\% ± 1% for diameter and length, ± 0.5 % \pm0.5\% ± 0.5% for pressure, ± 2 % \pm2\% ± 2% for mass flux, and ±0.01 absolute for equilibrium quality. For observation k k k , the resulting input uncertainty radius was computed using τ X , k = ( ∑ i ( σ i , k / s i ) 2 ) 1 / 2 \tau_{X,k} = \left(\sum_i \left(\sigma_{i,k}/s_i\right)^2\right)^{1/2} τ X , k = ( ∑ i ( σ i , k / s i ) 2 ) 1/2 , where σ i , k \sigma_{i,k} σ i , k denotes the assumed physical measurement uncertainty of feature i i i for observation k k k , and s i s_i s i denotes the standard deviation of feature i i i computed on the full dataset. We used the dimensionless worst-case threshold τ X = max k τ X , k = 0.171840 \tau_X = \max_k \tau_{X,k} = 0.171840 τ X = max k τ X , k = 0.171840 . We modeled target measurement uncertainty as heteroskedastic, where for a critical heat flux measurement y y y in kW/m2 ^2 2 , we define
τ Y ( y ) = σ f l o o r 2 + ( r y ) 2 , \tau_Y(y) = \sqrt{\sigma_{\mathrm{floor}}^2 + (ry)^2}, τ Y ( y ) = σ floor 2 + ( r y ) 2 ,
where σ f l o o r = 1 \sigma_{\mathrm{floor}} = 1 σ floor = 1 kW/m2 ^2 2 represents a constant absolute uncertainty and r = 0.1 r = 0.1 r = 0.1 represents a 10% relative uncertainty between targets as reported in [36 Section 2.4] . This is an approximate heteroskedastic measurement model and should not be interpreted as independently verified measurement uncertainties. The best model errors were from Extra Trees, Random Forest, and Histogram Gradient Boosting regressors trained on M t r a i n = 521 M_{\mathrm{train}} = 521 M train = 521 samples and tested on M t e s t = 130 M_{\mathrm{test}} = 130 M test = 130 samples. As we compute the average kernel size on the full dataset we do not obtain a constructed dataset solely for the test dataset and, thus, do not report the models’ errors on this. For τ X = 0.0 \tau_X = 0.0 τ X = 0.0 and the same heteroskedastic noise model for τ Y \tau_Y τ Y with otherwise the same parameters, we have that Kersize ( D M ′ , 2 ) M = 191.9 \operatorname{Kersize}(\mathcal{D}_{M'}, 2)_M = 191.9 Kersize ( D M ′ , 2 ) M = 191.9 kW/m2 ^2 2 . For τ X = 0.171840 \tau_X = 0.171840 τ X = 0.171840 and τ Y = 0.01 \tau_Y = 0.01 τ Y = 0.01 with otherwise the same parameters, we have that Kersize ( D M ′ , 2 ) M = 341.4 \operatorname{Kersize}(\mathcal{D}_{M'}, 2)_M = 341.4 Kersize ( D M ′ , 2 ) M = 341.4 kW/m2 ^2 2 . The larger average kernel size for τ Y = 0.01 \tau_Y = 0.01 τ Y = 0.01 may be due to aggregation pathologies. The error of the optimal regressor on D M ′ \mathcal{D}_{M'} D M ′ is given by R ∗ = 149.574 R_* = 149.574 R ∗ = 149.574 kW/m2 ^2 2 .
Classification dataset details
For the MNIST open-source dataset from Torch Vision, we converted the input images to tensors and normalized them using the MNIST training-set channel means and standard deviations. We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 50 N_{\max} = 50 N m a x = 50 ; see Figure 13 . MNIST contains single-channel grayscale images of handwritten digits of size 28 × 28 28 \times28 28 × 28 from 0 to 9. For MNIST, we computed the accuracies on the test set and the constructed test set for an EfficientNet B0, ϕ 2 n d \phi_{2nd} ϕ 2 n d and ϕ 3 r d \phi_{3rd} ϕ 3 r d with further random initializations of this model. The accuracy of the optimal classifier on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by A c c ∗ = 100.00 \mathrm{Acc}_* = 100.00 Acc ∗ = 100.00 .
Figure 13. Average kernel size, A K AK A K or also Kersize ( D M ′ , 1 ) K \operatorname{Kersize}(D_{M'},1)_{K} Kersize ( D M ′ , 1 ) K , for classification datasets as a function of the maximum number of nearest neighbors N max N_{\max} N m a x used in the threshold τ X \tau_X τ X computation. The threshold is chosen as the q t h q^{\mathrm{th}} q th quantile of the nearest-neighbor distances according to (11) . The quantile q q q and number of anchor samples K K K for train and test splits can be found in Table 4 .
For the CIFAR-10 open-source dataset from Torch Vision, we converted the input images to tensors and normalized them using the CIFAR-10 training-set channel means and standard deviations. We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 50 N_{\max} = 50 N m a x = 50 , see Figure 13 . CIFAR-10 contains three-channel color images of objects of size 32 × 32 32 \times32 32 × 32 from 10 different classes. For CIFAR-10, we computed the accuracies on the test set and the constructed test set for a pretrained ResNet56, ϕ 2 n d \phi_{2nd} ϕ 2 n d , and pretrained ShuffleNetV2, ϕ 3 r d \phi_{3rd} ϕ 3 r d , from [29 ] and retrained on the train dataset. The accuracy for ϕ 1 s t \phi_{1st} ϕ 1 s t is reported from the CIFAR-10 Kaggle leaderboard. The accuracy of the optimal classifier on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by A c c ∗ = 88.43 \mathrm{Acc}_* = 88.43 Acc ∗ = 88.43 .
For the RESISC45 open-source dataset Cheng et al. [2017] from TorchGeo, the input images were converted to tensors. We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence with threshold 10 − 4 10^{-4} 1 0 − 4 at N max = 200 N_{\max} = 200 N m a x = 200 , see Figure 13 . The RESISC45 dataset Cheng et al. [2017] is a publicly available benchmark for remote-sensing scene classification. It contains approximately 31.5 k 31.5k 31.5 k images spanning 45 land-use and scene categories, with substantial variation in spatial resolution, viewpoint, illumination, and background. The task is to map each RGB image of size 256 × 256 256 \times256 256 × 256 to one of the 45 landcover classes. The accuracies on the test dataset with a 20/80 train/test split are from the best models from [19 Table 6] . For RESISC45, the train and test intervals were computed from the mean average kernel sizes over 20 randomly selected subsets of 3k samples, 100 Kersize t r a i n = 16.15 ± 2.37 % 100\operatorname{Kersize}_{\mathrm{train}} = 16.15 \pm2.37\% 100 Kersize train = 16.15 ± 2.37% and 100 Kersize t e s t = 17.64 ± 1.73 % 100\operatorname{Kersize}_{\mathrm{test}} = 17.64 \pm1.73\% 100 Kersize test = 17.64 ± 1.73% . The values shown in the ablation figures, such as Figure 8 , correspond to individual subsets and are not used directly to compute these intervals. The accuracy of the optimal classifier on D M t e s t ′ \mathcal{D}_{M'_{\mathrm{test}}} D M test ′ is given by A c c ∗ = 91.33 \mathrm{Acc}_* = 91.33 Acc ∗ = 91.33 .
Figure 8. Average kernel size, K e r s i z e ( D M ′ , 1 ) K Kersize(D_{M'},1)_K K er s i z e ( D M ′ , 1 ) K (AK), as a function of the quantile q q q for the classification datasets. The additional ticks on the x-axis indicate the quantiles for the computation of τ X ( q ) \tau_X(q) τ X ( q ) . The number of anchor samples K K K are in Table 4 .
For the EUROSAT open-source dataset Helber et al. [ [39 ] we used the RGB version of the dataset provided by TorchGeo on HuggingFace together with the provided split into training, validation and testing. The input images were converted to tensors and normalized to to [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . We computed the average kernel size from feasible sets as a function of the maximum number of nearest neighbors and reached convergence at N max = 200 N_{\max}=200 N m a x = 200 , see Figure 13 . The EUROSAT dataset Helber et al. [ [39 ] is a publicly available benchmark for land-use and land-cover classification based on Sentinel-2 satellite imagery. It contains 27k labeled image patches distributed across 10 classes, including forests, residential areas, agricultural land, rivers, and industrial sites. The dataset provides both RGB and multispectral imagery and captures substantial variation in geographic location, land-cover structure, and spectral characteristics. We chose the classification task mapping RGB images of size 64 × 64 64 \times64 64 × 64 to 10 different landcover classes. The best model’s test-set accuracies is from [2 Table 5] and a locally trained DNNs. The accuracy of the optimal classifier on D t e s t M ′ D^{M'}_{\mathrm{test}} D test M ′ is given by A c c ∗ = 97.94 \mathrm{Acc}_{*}=97.94 Acc ∗ = 97.94 .
In addition to Figure 8 indicating the choice of quantiles for the input space thresholds τ X \tau_X τ X , the Figure 14 contains a full ablation across all quantiles q ∈ [ 0 , 1 ] q \in[0,1] q ∈ [ 0 , 1 ] .
Figure 14. Average kernel size, A K AK A K or also Kersize ( D M ′ , 1 ) K \operatorname{Kersize}(\mathcal{D}_{M'},1)_{K} Kersize ( D M ′ , 1 ) K , and τ X ( q ) \tau_X(q) τ X ( q ) as a function of the quantile parameter q q q for the different classification datasets, MNIST (MN), CIFAR-10 (C10), EUROSAT (ES) and RESISC45 (RS). The threshold τ X ( q ) \tau_X(q) τ X ( q ) is chosen for each quantile q q q according to (11) . The number of anchor samples K K K for train and test splits can be found in Table 4 .
Sensitivity of the average kernel size to noise
We applied different levels of label noise on MNIST and EUROSAT and computed the average kernel sizes across quantiles. Figure 9 shows the estimated average kernel size as a function of the quantile q q q used to compute the threshold τ X ( q ) \tau_X(q) τ X ( q ) . For both datasets, the average kernel size increases with both the quantile q q q and the target noise level σ y \sigma_y σ y . Larger quantiles produce larger thresholds τ X ( q ) \tau_X(q) τ X ( q ) , thus Algorithm 1 yields larger feasible sets and therefore more heterogeneous targets in a given feasible set, while larger noise levels increase label dispersion within these sets. The MNIST σ y = 0 \sigma_y=0 σ y = 0 curve in Figure 9 remains near zero for small quantiles. In contrast, EUROSAT exhibits substantial average kernel size already at moderate quantiles, indicating greater intrinsic ambiguity under the chosen pseudo-metric. Overall, the plots show that the average kernel size increases consistently with increasing aleatoric label uncertainty.
Ablation studies