Manuscript Offprint
arXiv:2610.13442Learning by Compression: Risk Estimates Attain the Law-of-Large-Numbers Rate
Abstract
Compression schemes provide a general framework for deriving data-dependent risk bounds for learning algorithms. For learning rules based on preferent compression, existing results upper-bound the risk in terms of a sample-dependent complexity , defined as the cardinality of the compression augmented by the training examples on which the reconstructed hypothesis is inappropriate. These results, however, yield a margin of order above . In this paper, we establish that the logarithmic factor is not intrinsic. We prove that, for every fixed confidence level , the risk is bounded with probability at least by
uniformly over all possible values of . Thus, risk estimates for learning algorithms based on preferent compression attain the same law-of-large-numbers rate as the empirical estimate of the probability of a fixed event. We also show that the leading term is necessary and investigate its relation to the empirical risk. In particular, we identify regimes in which the empirical risk retains the convergence rate, as well as regimes in which it converges more slowly or ceases to be consistent, while the complexity-based estimator preserves the rate.
*Dipartimento di Elettronica, Informazione e Bioingegneria - Politecnico di Milano, piazza Leonardo da Vinci 32, 20133 Milano, Italia. E-mail: simone.garatti@polimi.it, web-site: https://garatti.faculty.polimi.it/
Dipartimento di Ingegneria dell'Informazione - Università di Brescia, via Branze 38, 25123 Brescia, Italia. E-mail: marco.campi@unibs.it, web-site: https://marco-campi.unibs.it/
1 Introduction
For a given event , the empirical mean computed over an independent and identically distributed (i.i.d.) sequence yields a consistent estimator of the event's probability . Moreover, adding a margin of to the empirical mean, where satisfies relation , provides an upper bound to with an asymptotic confidence of :
The rate of the margin is not improvable, and indeed any margin that goes to zero faster than is invalid for any choice of smaller than whenever is not zero or one. This fact can be expressed as “ is the correct rate for the margin”. In applications, this result is relevant to estimate the risk of falling in an undesirable event via a Monte-Carlo approach. For instance, the probability of failure in the transmission of strings through a communication channel can be estimated with asymptotic confidence using the observed empirical mean of corrupted strings augmented by the margin . A justification of these facts, indeed standard in probability theory and statistical learning, can be found in Appendix A.
Estimating the probability of a fixed event A, as discussed above, is a routine task. In Machine Learning (ML), data are used to design classifiers, predictors, and, more generally, hypotheses, and a crucial goal is to estimate the risk associated to these designs, for example the probability of misclassification of a classifier, [20]. This task of simultaneously designing and estimating the risk transcends, and is in fact far more complex than, estimating the probability of a fixed event A. This is because the event in which, for instance, a classifier fails depends on the classifier itself, which is a stochastic object constructed from the data.
Significant advances in the problem of estimating the risk associated to a variety of ML algorithms have been achieved over the past few decades through the use of compression schemes. While we will be more specific with precise definitions and technical results in the next Section 2, some fundamental concepts are briefly recalled here for the purposes of this introduction. According to a definition introduced in [21], given a learning algorithm A that maps training sets S into hypotheses (for example, classifiers), a compression scheme consists of (i) a compression function c, which maps any training set S into a sub-set , and (ii) a reconstruction function that
Throughout, boldface indicates random quantities. For example, indicates a random element while a specific value it takes is indicated by .
sends the compressed training set into the hypothesis generated by . An important feature of is its risk, which is defined as follows. Given a hypothesis (for example, a classifier or a predictor), one first defines a condition under which is deemed appropriate for an example . For instance, a classifier is appropriate for an example , where is an instance and the corresponding label, if ; that is, if applying to correctly predicts the label . With this premise, the risk of is the probability that is inappropriate for a new example .
In loose terms, most results in compression schemes relate the risk of to the cardinality of the compression. In the data-consistent framework (i.e., the hypothesis is appropriate for all data points in the training set) and under the assumption that the maximum cardinality of is bounded by an integer (this is called the “size” of the compression scheme), [21] and [11] establish results of the type: with high probability with respect to the generation of the training set , the risk of is below a known bound that depends only on the size of , and . Extensions to a non-consistent framework are provided in [14]. In a series of recent papers, compression schemes have been further investigated under a condition of stability, a concept natural in many learning contexts and that has its roots in [29], yielding tighter bounds than those obtained for general algorithms both in the consistent, [4], and the non-consistent, [15], settings.
The primary reference for this manuscript is [7], which provides the tightest results for bounding the risk under stability. Specifically, in a general, non-consistent framework and without any upper bound on the cardinality of , [7] proves that the risk can be upper bounded with probability by an explicitly defined function that takes as its argument the cardinality of plus the number of remaining examples for which the hypothesis is inappropriate. This sum is a statistic of the data, which will be denoted by symbol in what follows, and referred to as the complexity.
Building on the results of [7], this manuscript establishes the convergence rate of the risk estimates in any learning algorithm based on stable compression. Specifically, letting be the cardinality of , we show that any valid upper bound to the risk expressed as a function of must contain the term plus a margin, and prove that this margin tends to zero as , uniformly in the value taken by the statistic . When estimating the probability of a fixed
In [7], the notion of stability is called preference.
For instance, if the compressed training set has cardinality of 8, and the hypothesis is inappropriate for 3 additional examples (excluding the 8 examples in the compressed set to avoid double counting in case some of them correspond to inappropriateness), then the function’s argument is .
For a positive function , notation indicates a positive function such that .
event A, this result reduces to the known convergence rate of the empirical mean estimator in (1). This manuscript proves that the same convergence rate extends to all learning frameworks based on stable compression, a fact that may come as a significant surprise. In simple terms, this means that using the data to learn does not slow down the rate at which the risk can be estimated.
The paper is organized as follows. Section 2 presents relevant facts about stable compression schemes and their use in evaluating the risk in ML applications. The main result on the convergence rate is given in Section 3, where we also provide a detailed discussion of how our findings relate to the empirical risk. The proof of the main result is postponed to Section 4.
2.1 Notation
Examples z are elements from a set Z (for instance, in classification z are pairs where x is an instance and y is the corresponding label).
All compression functions are permutation invariant. Correspondingly, given a list of examples , we introduce the associated multiset written as , where the operator “ms” removes the ordering in the list, while maintaining repetitions. The set operations (union, intersection, and set difference) are easily extended to multisets using the notion of multiplicity function for a multiset , which counts how many times each element of occurs in . Then, , , and . Moreover, means that for all , and stands for the cardinality of a multiset where each example is counted as many times as is its multiplicity. A compression function is a map from any finite multiset of examples of any size to a sub-multiset: . We write as a shorthand for . Also, given a multiset and one more example , stands for . Similar notations apply to other maps having a multiset as argument.
Throughout, an example is modeled as a realization of a random element defined over a probability space . A training set of size is a multiset of observed examples generated as realizations of independent and identically distributed (i.i.d.) random elements . In ML applications, a learning algorithm is a map from training sets to a hypothesis in a set (in supervised binary classification, is a concept; in supervised learning with continuous label, is a predictor; in unsupervised learning, can, e.g., be a collection of clusters; etc.). We write to denote the hypothesis generated by when the input is the training set . We use a -valued function to indicate whether or not a hypothesis is appropriate for an example : signifies that is appropriate for , while corresponds to inappropriateness (for instance, in supervised classification, ). The statistical risk, or more simply the risk, of is , where is a random element distributed as each .
2.2 Change of compression and risk bounds
The probability of change of compression is defined in [7] as follows.
Definition 1 (probability of change of compression)
where z is a random element distributed as each .
★
The following is a standing assumption in the analysis of [7].
Property 1 (preference) For any multisets and such that , if , then for all .
As shown in [7], preference is a property that is satisfied by many compression-based ML techniques. As a consequence, the resulting generalization theory is broadly applicable, and [7] explicitly discusses Support Vector Machines (SVM), [10, 27, 6], the Guaranteed Error Machine (GEM), [5, 9], as well as a list of other methods including the Nearest-Neighbor (NN) algorithm, [28, 19, 18, 16], and the Total Recall (TR) algorithm, [17]. Moreover, building on an idea from [8], [22] and [23]
This means that is any version of the conditional probability on the right-hand side.
introduced a meta-algorithm that transforms any learning algorithm into a compression scheme that satisfies preference, thereby uncovering the remarkably broad applicability of Property 1.
Under preference, the probability of change of compression can be upper bounded by a function of the compression’s cardinality, as stated in the following Theorem 1. While the reader can find in [7] a complete description of the function appearing in the theorem’s statement, for the purposes of this paper this expression is inconsequential and, therefore, it is omitted in the interest of brevity.
Theorem 1 Assume the preference Property 1. For any , it holds that
where is the random variable obtained by the composition of (the cardinality of the multiset ) with , a function defined over the integers that satisfies relation
★
In [7], function is assigned through an implicit procedure, and the importance of (3) lies in that it explicitly reveals the dependence of the bound on and . It turns out that the first term (which, after substitution of the cardinality of the compressed set, gives the ratio ) serves as an estimator for the probability of change of compression at a confidence level provided that a margin (the second and third terms in the right-hand side of (3)) is added. As immediately seen, this margin goes to zero in as , uniformly in .
In [7], Theorem 1 is ported to the evaluation of the risk according to the following theorem.
Theorem 2 Consider a learning algorithm A and a compression function c that satisfies the preference Property 1. Assume that there exists a reconstruction function for , that is, for any multiset S. Then, for any , it holds that
The first part of this theorem is stated in [7] as Theorem 1 while result (3) is given in Proposition 8 of the same paper.
This result is presented in [7] as Theorem 17.
where is the same as in Theorem 1 and, using the shorthand notation , is defined as (i.e., is the cardinality of augmented with the examples that are not already in for which is inappropriate).
In view of (3), Theorem 2 shows that adding to a margin of yields an upper bound to the risk at a confidence level .
Toward the analysis of the tightness of this result, a first, fundamental fact is that the term is strictly necessary. In fact, any valid replacement of in (4) must necessarily take the form
when , in which appears increased by a suitable nonnegative margin. See Appendix B for a proof of this result. The core issue that we address in this paper is then: what is the structure of this “margin”?
An analysis of the result in [7] shows that, using the function there introduced, the margin of order given by (3) cannot be improved to . In other words, the presence of the term in the numerator is not due to any looseness in the evaluation (3), it is intrinsic in the structure of of the function in [7]. While this fact could be proven rigorously, we omit such a proof here to avoid unnecessarily length. The consequence of this observation is that the results in [7] leave the following question unanswered: can be bounded at confidence level using with a margin of ? While this conclusion cannot be drawn from the result in [7], it might nevertheless be attainable through a new theoretical approach that extends the analysis of that paper. This topic is the subject of the present contribution.
Turning back to the simple problem of establishing an upper bound for the probability of a fixed event , a positive answer to the above question would simply re-establish the result presented at the beginning of this introduction. To see this, one can take as the algorithm that always (that is, independently of what data have been collected) returns the hypothesis (the complement of ), as the compression function that always returns the empty multiset, while the reconstruction function sends the empty multiset to . is inappropriate for if , that is, . Then, . In this context, , so that ; hence, a positive answer to the above question would recover the fact that is a valid upper bound for with confidence , as already established at the beginning of the
In what follows, to avoid verbosity, we shall use shortened expressions like: “provides a bound to the risk” or “is a estimator of the risk”.
introduction. Moving toward more general compression-based ML techniques, such a result would demonstrate that serves as a universal estimator of the risk with again a margin of , which is perhaps surprising given that this takes place in a complex setup involving the construction of the hypothesis from data.
The next section indeed provides a positive answer: can be bounded at confidence level using with a margin of .
3 New convergence results
The new results presented in this section as Theorems 3 and 4 establish the convergence rate for the estimators discussed in the previous section.
Theorem 3 Assume the preference Property 1. For any , it holds that
where, for any given , .
★
Proof. See Section 4.
□
In the context of risk evaluation, Theorem 3 immediately yields the following new result.
Theorem 4 Consider a learning algorithm A and a compression function c that satisfies the preference Property 1. Assume that there exists a reconstruction function for . Then, for any , it holds that
where is defined as in Theorem 2 and, for any given , .
★
Proof. The proof follows that of Theorem 17 of [7], with the following changes. As in Theorem 17, one observes that defines an extended compression function that is still preferent and whose probability of change of compression upper bounds the risk:
Then, resorting to Theorem 3 stated above, and recalling the definition of , one finds that the “probability of change of compression for ” is upper bounded by with confidence no smaller than . This immediately gives (6) in view of (7).
3.1 Form empirical risk to complexity: a natural extension
In this section, we discuss interesting connections between the statistic and the empirical risk, which shed further light on the mutual relation between these two statistics.
Let for which is inappropriate, and define . is the empirical risk, which we will at times write more expressively as . Instead, is referred to as the excess; it represents the increment that must be added to the empirical risk to obtain the statistic . Using this notation, equation (6) can be rewritten as
which allows us to highlight key connections to using the empirical risk as an estimator.
Case 1: bounded uniformly in N
In this case, , and we see that the empirical risk is a estimator of the risk with a margin of . This result is already known and can e.g. be found in [15]. Examples of this first case include SVR in finite dimensions without infinite dimensional lifting, the original GEM algorithm introduced in [5], and any learning scheme based on finite dimensional convex optimization.
For the case where grows unbounded with , we distinguish various situations depending on the growth rate of . Before proceeding, we show the validity of the following simple consequence of (8) that we will use in later derivations:
Proof of (9). Omitting the arguments of R and , we have
Case 2:
This case applies for instance to the construction of the convex hull in of points randomly generated according to various distributions, as explained in what follows. Given a training set of points in , consider the algorithm that returns their convex hull. The convex hull is appropriate for a new if . The compression function singles out the vertexes of the convex hull and the reconstruction function coincides with algorithm . In this case, , while depends on the distribution by which data points are generated. In the seminal article [26], Renyi and Sulanke show that, for radially symmetric Gaussian distributions, one has , while for a uniform distribution over a disk centered at the origin, . Moreover, exactly hits the growth rate (i.e., ) when the convex hull is constructed in from points uniformly drawn from a ball centered at the origin (this follows from (10), presented in Case 3).
In this Case 2, is still of order and, using result (9), we see that also in this case the empirical risk serves as a estimator of the risk with margin .
Case 3:
In this case, using (9) no longer allows us to conclude that serves as a estimator of the risk with margin . Indeed, if grows faster than , then the dominant term of becomes , which tends to zero at a rate slower than
For a positive function , notation indicates a positive function such that and .
While in this example we have , and thereby , which may sound specific, a simple modification gives while preserving all conclusions about . To this purpose, it is enough to select half-space and consider as output of the convex hull of the points that belong to this half-space.
. It is indeed inherent that, when , the empirical risk is in general no longer a suitable estimator of the risk with a margin , as the following example shows.
Consider the convex hull in of points drawn uniformly from the unit ball. This case yields
(see [24, 1] for the first result and [25] for the second, while [2] provides an overview). Taking , we obtain , and .
We show that, in this case, it is intrinsic that does not provide an upper bound to with a margin of . Start by noting that Theorem 19 in [7] establishes lower bounds to the risk under the additional assumptions of non-associativity, non-concentrated mass, and coherence - part I and II. All these assumptions are easily seen to be satisfied in the present context, where is the compression function that singles out the vertexes of the convex hull. Then, applying Theorem 19 and using the expression (8) in [7] for the lower bound to the risk yields
where, for any given , . Moreover, to draw the result we need the following simple inequality:
(12)
Although in the current example by construction, we prefer to retain this term to allow for evaluations that can be easily extended to variants, for example when the convex hull of the points belonging to a given half-space is considered, as suggested in Footnote 10.
Thus,
(13)
where the penultimate step holds in view of (11) and (12). Considering that, of the last three terms in the left-hand side of (13), the dominant one is , while the other two are and , we obtain:
Therefore, any valid margin added to the empirical risk must converge slower than in this case.
Case 4:
In this case, considerations similar to those in the previous case apply, yet the situation becomes even more dramatic. At this point the dominant term in equation (9), does not even converge to zero. This is a symptom of the fact that the empirical risk, in general, ceases to be a consistent estimator. An example where this happens is the following. Consider again the convex hull of points in , this time drawn from a distribution that is uniform on a circumference. In this case, the risk always equals 1, since the whole circumference, except just for the drawn points, lies outside the convex hull. On the other hand, the empirical risk is always zero.
In Cases 3 and 4, the empirical risk no longer serves as a fast-converging estimator of the risk, and may even lose consistency. On the other hand, as we have seen, the more refined statistic (the complexity divided by N) serves as an estimator of the risk that preserves fast convergence in a data-driven setting based on preferent compression schemes.
4 Proof of Theorem 3
Toward the goal of proving Theorem 3, we need first to revisit Theorem 1 in [7]. A close inspection of the proof of this latter theorem shows that it actually establishes a result slightly stronger than what explicitly formulated as the theorem statement. This stronger result will serve here as the starting point for the proof of our Theorem 3.
The stronger result in the proof of Theorem 1 in [7] is contained in equations (46)–(47) of [7]. For convenience, we restate it here as Theorem 5.
Theorem 5 Assume the preference Property 1. For any -valued function defined over the integers , it holds that
where is the random variable obtained by the composition of (the cardinality of the multiset ) with , and
is the indicator function of set A).
★
In this result, the perspective is reversed compared with Theorem 1 in [7]: rather than assigning a function satisfying prescribed properties, Theorem 5 takes as input an arbitrary user-chosen function and returns the confidence with which is a valid upper bound on the probability of change of compression .
On the other hand, Theorem 5 can also be used in the reverse direction: it allows one to compute a valid complexity-based upper-bound on the risk that holds with a user-specified confidence . This is indeed the use that we make below of Theorem 5. Crucially, starting from Theorem 5, rather than Theorem 1 in [7], provides the extra flexibility needed to establish the convergence rate stated in Theorem 3.
To pursue this use of Theorem 5, we start from a selection of , i.e., a tentative solution to (14), such that , , and , and determines , , so that the inequality in (14) is satisfied. This ensures the feasibility of the chosen for (14), and therefore the optimal solution to (14) with the so-computed must result in . An application of Theorem 5 then yields .
An inspection of the proof of Theorem 1 in [7] shows that the expression for given therein is in fact obtained by applying the procedure described above with for and . This choice was suggested in [7] because it yields an that is tight and informative across the whole range of values for , even for moderate values of . However, as observed in Section 2.2, the resulting takes a margin from that vanishes asymptotically at rate . To prove Theorem 3, we instead consider the function obtained from an alternative choice of the 's. While this choice is typically less favorable than that in Theorem 1 in [7] for moderate values of , as it outperforms the choice made in [7] yielding the sought result on the convergence rate.
Let
where ( denotes integer part).
With this choice of the 's, the inequality in (14) becomes
Since for every , condition (15b) can hold only if for . Consider now (15a). This inequality is automatically satisfied for . For , division by the positive quantity yields
The right-hand side is smaller than 1 for , monotonically increasing, and diverging to for . Hence, we can choose as the unique solution in to equation , which is .
Summarizing, with the choice
Theorem 5 ensures that
where is given by (16).
Note now that, for , the value can be rewritten as
[recall that ]
(18)
Thus, is bounded by plus the margin .
To bound when , we first observe that
(19)
where the inequality follows because , for all . Substituting (19) in the expression for , , in (16) yields
margin
The margin is affine in . Therefore, its maximum over is attained at one of the endpoints, namely or . In the first case, i.e., , we have
For k = 0, we instead have
[since ]
[recall that ]
Combining the above bounds valid for , and further recalling (18) we conclude that
holds for all .
Using (20) in (17) yields
which provides an explicit expression for in the statement of Theorem 3. This concludes the proof.
Remark 1 (On the origin of Theorem 3) We find it useful to clarify the reasoning that led us to Theorem 3. Besides motivating the steps in the preceding proof, this discussion provides further insight into the function introduced in (16).
In Theorem 5, it is relatively easy to show that, for a given , setting and for all , which corresponds to only certifying when , yields an optimal value of (14) attained by setting for some suitable and for all .
More precisely, this value is . Conversely, if Theorem 5 is used in reverse direction to determine such that with a user-specified confidence , then obtaining the smallest possible value for for a given , possibly at the expense of other values , requires setting for some suitable , and therefore for all . The interested reader is referred to Appendix C for a formal proof of these claims.
Interestingly, when setting as described in the preceding paragraph, Theorem 5 allows one to determine not only , but also for all . The resulting expressions coincides with that in (16) with replaced by . As a consequence, one sees that it is not necessary to set for in order to maintain confidence : there is some room to decrease the other 's as well.
However, although the resulting value of is the smallest possible according to the result mentioned above, the same is not true for the other values with . In particular, for values significantly larger than , does not come close to its smallest possible value, which can instead be obtained by selecting for a suitable .
In the light of the above, the idea behind the derivation of Theorem 3 arose from the empirical observation that, although and can differ significantly for small values of N, they come close in relative terms when N increases. Asymptotically in N, a single choice is sufficient to achieve nearly optimal values of the 's, simultaneously for all 's, leading to the margin that vanishes at rate .
References
[1] I. Bárány. Random polytopes in smooth convex bodies. Mathematika, 39(1):81–92, 1992.
[2] I. Bárány. Random points and lattice points in convex bodies. Bulletin of the American Mathematical Society, 45(3):339–365, 2008.
[3] G.O. Berger. Improved compression-based pac bounds for general scenario decision making. ArXiv:2501.08884, 2025.
[4] O. Bousquet, S. Hanneke, S. Moran, and N. Zhivotovskiy. Proper learning, Helly number, and an optimal SVM bound. In Proceedings of 33rd Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 582–609, 2020.
[5] M.C. Campi. Classification with guaranteed probability of error. Machine Learning, 80:63–84, 2010.
[6] M.C. Campi and S. Garatti. A theory of the risk for optimization with relaxation and its application to support vector machines. Journal of Machine Learning Research, 22(288):1–38, 2021.
[7] M.C. Campi and S. Garatti. Compression, generalization and learnings. Journal of Machine Learning Research, 24(339):1–74, 2023.
[8] M.C. Campi, S. Garatti, and F.A. Ramponi. Non-convex scenario optimization with application to system identification. In Proceedings of the 54th Conference on Decision and Control, pages 4023–4028, 2015.
[9] A. Caré, F.A. Ramponi, and M.C. Campi. A new classification algorithm with guaranteed sensitivity and specificity for medical applications. IEEE Control Systems Letters, 2:393–398, 2018.
[10] C. Cortes and V. Vapnik. Support vector networks. Machine Learning, 20:273–297, 1995.
[11] S. Floyd and M. Warmuth. Sample compression, learnability, and the Vapnik-Chervonenkis dimension. Machine Learning, 21:269–304, 1995.
[12] S. Garatti and M.C. Campi. Risk and complexity in scenario optimization. Mathematical Programming, 191(1):243–279, 2022.
[13] S. Garatti and M.C. Campi. Non-convex scenario optimization. Mathematical Programming, 209:557–608, 2025.
[14] T. Graepel, R. Herbrich, and J. Shawe-Taylor. PAC-Bayesian compression bounds on the prediction error of learning algorithms for classification. Machine Learning, 59:55–76, 2005.
[15] S. Hanneke and A. Kontorovich. Stable sample compression schemes: new applications and an optimal SVM margin bound. In Proceedings of the 32nd International Conference on Algorithmic Learning Theory, volume 132 of Proceedings of Machine Learning Research, pages 1–25, 2021.
[16] S. Hanneke, A. Kontorovich, S. Sabato, and R. Weiss. Universal Bayes consistency in metric spaces. The Annals of Statistics, 49(4):2129 – 2150, 2021.
[17] D. Helmbold, R. Sloan, and M.K. Warmuth. Learning nested differences of intersection-closed concept classes. Machine Learning, 5:165–196, 1990.
[18] A. Kontorovich, S. Sabato, and R. Urner. Active nearest-neighbor learning in metric spaces. Journal of Machine Learning Research, 18(195):1–38, 2018.
[19] A. Kontorovich, S. Sabato, and R. Weiss. Nearest-neighbor sample compression: Efficiency, consistency, infinite dimensions. In Advances in Neural Information Processing Systems 30 (NeurIPS 2017), Long Beach, CA, 2017.
[20] G. Lugosi L. Devroye, L. Györfi. A Probabilistic Theory of Pattern Recognition. Springer, 1996.
[21] N. Littlestone and M. Warmuth. Relating data compression and learnability. Unpublished manuscript, 1986.
[22] D. Paccagnan, M.C. Campi, and S. Garatti. The Pick-to-Learn algorithm: Empowering compression for tight generalization bounds and improved post-training performance. In Advances in Neural Information Processing Systems (NeurIPS 2023), volume 36, pages 18165–18185, 2023.
[23] D. Paccagnan, D. Marks, M.C. Campi, and S. Garatti. Pick-to-Learn for Systems and Control: data-driven synthesis with state-of-the-art safety guarantees. ArXiv (article id. arXiv:2512.04781), 2025. To appear in IEEE Control Systems, vol. 46, no. 6, 2026.
[24] H. Raynaud. Sur l'enveloppe convexe des nuages de points aléatoires dans . Journal of Applied Probability, 7(1):35–48, 1970.
[25] M. Reitzner. Random polytopes and the Efron-Stein jackknife inequality. Annals of Probability, 31(4):2136–2166, 2003.
[26] A. Rényi and R. Sulanke. Uber die konvexe hülle von n zufällig gewählten punkten. Z. Wahrscheinlichkeitstheorie verw Gebiete, 2(1):75–84, 1963.
[27] B. Schölkopf and A.J. Smola. Learning with kernels. MIT press, 1998.
[28] S. Shalev-Shwartz and S. Ben-David. Understanding Machine Learning (from theory to algorithms). Cambridge University Press, New York, NY, 2014.
[29] V. Vapnik and A. Chervonenkis. Theory of Pattern Recognition. Nauka, Moscow, 1974.
A Valid margin for empirical means
An application of the Central Limit Theorem (CLT) gives
where . Since , it holds that . Moreover, any margin that is a gives:
which tends to 1/2 whenever is not zero or one.
B Term k/N is strictly necessary
To show that term is strictly necessary, we exhibit an example in which reducing the right-hand side of the inequality inside the probability in (5) below generates an invalid result.
Suppose that each takes value in with uniform distribution. For a given , select a second integer , and consider the following compression and learning algorithm defined on multisets of points in :
(a) if , then and is the empty interval;
(b) if and the number of points in is less than , then is the multiset containing the smallest values of the in and is the interval where denotes the -th smallest in ;
(c) if and the number of points in is greater than or equal to , then the compression consists of all points in and is the interval .
For a positive function , notation indicates a positive function such that .
Thus, the hypotheses returned are intervals contained in and we say that the interval is inappropriate for if . Note that for any , because we always have .
Next, let us verify that we are in the setting of Theorem 2. The fact that c is preferent is straightforward; as for the reconstruction function, we can simply take itself, since by the very definition of .
Now, in the present setup, , because all inappropriate points are already included in the compression. Moreover, occurs whenever the number of points in is less than or equal to , and it is claimed that this condition is verified with probability at least 0.5. Indeed, this is the probability with which a Binomial distribution with parameters and takes a value less than or equal to , which is at least 0.5 because is the median of the distribution. Summarizing: with probability at least 0.5, takes the value , and the corresponding risk is no smaller than as already observed. This implies that, for any , the right-hand side of the inequality inside the probability in (5) cannot be reduced below when takes the value . Observing now that is an arbitrary value in , the result is obtained that the term cannot be reduced for any value of in its domain of definition.
C Proof of the results mentioned in Remark 1
We begin by showing that, if for a given and for all , then the optimal value of (14) in Theorem 5 is achieved by setting for some suitable and for all .
Start by considering the collection of functions for . As a simple calculation reveals, for we have for
In view of Theorem 5, this implies that when and for it holds that
Interestingly, the recent article [3] shows that (21) can also be proven with an argument that makes use of elementary mathematics, without resorting to the theoretical apparatus underlying the more general Theorem 5. Note that, although [3] is framed in the context of data-driven decision making as in [12, 13], the same argument can be adapted to the compression framework considered in the present paper.
and for . Iterating this comparison shows that
for every , and is the largest function in the interval .
With and for , consider a feasible choice for problem (14). For , (14) is satisfied independently of the choices of the 's. However, the 's must satisfy (14) for , which gives
Let be the integer in such that and define and for . In view of (23) and (22), we then obtain
which shows that is feasible for (14) at , and thereby for any , as it is easy to verify. Moreover, the value corresponding to these 's is the same as that of the 's because This entails that the optimal solution to (14) can be obtained by focusing on solutions of the form and for . Finally, the minimum value of is achieved by selecting so that , which gives .
Consider now the converse use of Theorem 5, where, for given , , with , the 's are obtained as the values that make the constraints in (14) tight. We show that the 's that yield, for a given , the smallest value for are , for some , and for .
While condition typically defines uniquely, when takes an extreme point of the interval , two consecutive integers might satisfy the condition. In this case, any of them can be chosen. It is also understood that if .
Indeed, this result follows from what has been established above. Consider any partition of into multiple 's so that , leading to certain , . Then, by setting for all while keeping unchanged, solving (14) for optimality must result in a solution of the form for some and for . Now set and for and recompute the corresponding . The resulting is either equal to the original if or smaller if (this is because increasing the 's always leads to a decrease of the 's). This shows that for every choice of the 's such that , one can always construct an alternative choice and for that yields the same or a smaller value of . This concludes the proof.