WorksMathematics
Finite-sample certification of coverage regret for budgeted document selection under adaptive stratified auditing
Abstract
Selecting a budget-constrained set of documentary fragments, for instance the knowledge base of a retrieval-augmented generation system, raises a statistical question: how much expected query coverage is lost relative to the best feasible selection when the query distribution is unknown? We construct finite-sample, distribution-free upper confidence bounds for this coverage regret that remain valid after data-dependent selection. A pilot stage may select the document set, screen competitors, build comparison networks and learn an annotation policy. Then an independent audit acquires relevance labels with probabilities that are constant within observable strata. The main result is a simultaneous bound for all retained coverage contrasts. The bound is made observable by empirical-Bernstein variance calibration or by a one-stage construction without calibration, and it accounts for estimated stratum proportions. For maximum-type coverage we prove variance contractions for swaps of redundant fragments, give a condition under which multiscale radii improve on a direct union bound, and show that such redundancy cannot be certified from samples alone. A simulation study confirms validity and quantifies the gains from variance calibration and certified redundancy.
Introduction
Constructing a compact knowledge base from a large collection of documentary fragments, for example the retrieval corpus of a retrieval-augmented generation (RAG) system, requires choosing which fragments to retain under a storage or annotation budget. The selected collection should support future queries, whose probability distribution is generally not known in advance. This leads to a stochastic set-optimization problem: maximize expected query coverage, then certify the loss in coverage relative to the best feasible collection. The distinction between a computational approximation guarantee and a statistical coverage certificate is essential. A near-optimal value for the empirical selection objective need not imply a small population regret.
For coverage defined by maxima of nonnegative relevance scores, the population objective is monotone and submodular. This connects the selection problem to classical submodular maximization ([11, 9]). Yet the statistical component is different: relevance assessments may be costly, and queries may be deliberately oversampled in contexts believed to distinguish competing document selections. Such adaptive data acquisition must not be allowed to invalidate a confidence statement about the unknown query population.
Concentration for means with unknown variances is classical [10, 2]. Stratified empirical-Bernstein methods have been developed for other estimation problems, for instance by Burgess and Chapman [3], and context-dependent evaluation and inverse-probability correction have substantial precedents [5]. Generic chaining [12, 4] and local complexity theory [1, 8] explain why it may be possible to replace a crude logarithm of the number of candidates by a multiscale complexity. Consequently, neither stratification nor chaining is claimed to be new here. The goal is to give a self-contained and precisely scoped concentration argument for documentary coverage contrasts, including all the conditioning, sampling, and calibration steps needed to turn the inequality into a valid postselection regret certificate.
Our results are the following. First, we derive a conditional, variance-sensitive Bernstein bound for increments of the empirical coverage process (Lemma 1). Second, a pre-audit multiscale representation yields a simultaneous pathwise bound for all retained competitors (Theorem 1). Third, the variance factors can be replaced by simultaneous empirical upper confidence bounds (Theorem 2). Fourth, a separate estimate of the unknown context proportions yields an unconditional confidence certificate for reduced-universe regret (Theorem 4); we also give a complementary pooled Bennett formulation (Proposition 4). Finally, a contraction lemma links the edge variances to both semantic redundancy and the frequency with which a swapped fragment is actually responsible for coverage (Lemma 5); Corollary 4 provides an explicit condition for a two-level improvement over a direct union bound. Two complementary refinements are proved: an edgewise allocation of confidence error, which controls each distinct edge only once (Proposition 3), and a one-stage empirical-Bernstein network bound that does not require preliminary variance calibration (Theorem 3). A finite-sample rare-query example (Proposition 5) explains why empirical profile agreement cannot certify uniform approximation envelopes.
A simulation study (§ 10) confirms the validity of all certificates at the nominal level and compares their sizes; it shows when variance calibration and the multiscale network pay off, and that the latter requires certified redundancy envelopes.
The reader should distinguish validity, which is established under specified assumptions, from efficiency, which depends on the geometry of the competitors and on the audit design.
Statistical model, selection problem, and notation
Query population and document selection
Let be a measurable query space. Let have an arbitrary and unknown probability distribution on this space. The set of available documentary fragments is the finite nonempty set , with deterministic costs . For a budget , define the feasible selection family
The empty set is feasible and is assigned zero coverage. A relevance function is associated with each fragment. Unless stated otherwise, these functions are fixed, measurable and evaluated without labeling error when a query is audited. The coverage of a selection on query is
Thus .
Since is finite and nonempty, there exists at least one population maximizer. Fix any
The definition does not presume that the maximum can be calculated computationally on a large instance. It provides the statistical target.
Proposition 1 (Monotonicity and submodularity). For every fixed query , the set function is normalized, monotone and submodular. The population function possesses the same properties.
Proof. Normalization follows from , while monotonicity follows because a maximum cannot decrease when additional elements are included. If and , then
where . This is the diminishing-returns characterization of submodularity. Expectations preserve normalization, monotonicity and the displayed pointwise inequality.
Pilot selection and honest screening
We use to denote the sigma-field generated by all pilot observations and all randomness used before the independent audit and unlabelled-proportion samples. The pilot produces a feasible selected set and a finite (possibly random) candidate family such that . Both are -measurable. The documentary contrast against a competitor is
Every contrast is in and . The pilot screening guarantee, when screening is used, is
If , this property holds deterministically and . Here and below “some” allows non-uniqueness of the population optimum. A sufficient, explicitly verifiable pilot rule is established in Proposition 2.
Proposition 2 (A conservative pilot screening rule). Assume that a fully labeled iid pilot of queries from , independent of subsequent data, is available, and let for all . For , set
After choosing any pilot-measurable , let
Then (5) holds.
Proof. By Hoeffding’s inequality [6] and a union bound, with probability at least , simultaneously for all . On this event, if is a population maximizer,
Thus . The argument remains valid when is chosen adaptively from the same pilot, precisely because the pilot bound is uniform.
Observable contexts and the audit design
Let be an observable categorical feature, inexpensive to record, with values in , where is fixed. Let and . Both and are unknown. We distinguish an unlabelled sample, used to estimate the population proportions, from the labeled audit sample.
Assumption 1 (Independent unlabelled queries). The queries are, conditionally on , iid from and independent of the queries and relevance labels used for audit. The empirical proportions
are observed, . The multiscale networks and acquisition policy may use this unlabelled sample, but may not use audit relevance labels.
Assumption 2 (Stratified, label-ignorable audit). Conditionally on the pilot, the unlabelled sample, and the labeled counts , the acquired audit queries are iid from within each stratum, and the collections are mutually independent across strata. The counts and the mechanism that chooses them contain no information about the unobserved relevance values beyond the contexts. All relevance values needed to calculate , , are observed for an acquired query.
An important implementation satisfying Assumption 2 starts with fresh iid queries, observes , and acquires full relevance labels with probability in stratum , where is learned before audit and is constant within the stratum. Conditional on the resulting stratum counts (and the design information), the selected queries have the required conditional law. A design based on a new feature within an existing stratum does not generally satisfy this assumption; its selection bias must be addressed separately, for example through known-propensity estimators as in Dudík et al. [5].
The sample size may be random. Every assertion below is conditional on the pre-audit information and on the observed admissible counts, and therefore remains valid after averaging over their joint distribution. If some , our empirical-variance formulas are not used and the trivial regret upper bound can be returned.
Conditional and population coverage contrasts
For every , write
| Symbol | Meaning |
| feasible, retained, selected, optimal document sets | |
| query coverage, mean coverage, population regret | |
| contrast against and its population mean | |
| number, true/estimated weights, conditional query law | |
| audited count, sample/conditional contrast means | |
| weighted, centered audit error | |
| networks, parent maps, distinct comparison edges | |
| conditional variance and range semimetrics | |
| valid observable variance/range upper bounds | |
| error budgets for screening, audit, variance, weights, means | |
| budgets for Bennett, its variances, activity, representation |
Table 1. Main notation. All candidate-dependent objects may be random through pre-audit pilot information.
The population contrast decomposes as . The centered weighted audit process is
The symbols and will not be confused: the former is observable, while the latter contains unknown conditional means and is used only in the analysis.
A local Bernstein inequality for documentary increments
For document selections , let
We identify the directed edge with . For , denote
The latter is an essential range, hence is at most 2, while . Condition on , the unlabelled observations and the counts, so that all , and pre-audit edges are fixed. Define
These are semimetrics on coverage profiles (they may vanish for distinct selections). For clarity, the square in is part of the notation.
Lemma 1 (Conditional Bernstein increment). Under Assumption 2, for every pre-audit edge and every , conditional on the pre-audit information and counts,
No assumption of independence across different edges is needed.
Proof. Since , we have
The summands are conditionally independent and centered. Their total conditional variance equals . Since lies in the essential range of under , each centered summand is almost surely at most . By Theorem 2.10 of Boucheron et al. [2], if are independent, and for all integers , then for all . As noted in Boucheron et al. [2], right after their Corollary 2.11, variables with almost surely satisfy these conditions with and . Apply this to the centered summands above, for which and ; this gives (13). If or , the summands vanish almost surely and the claim is trivial.
Remark 1 (On the linear constant). The classical tail form
inequality (2.10) of Boucheron et al. [2], is usually inverted to the weaker radius . The constant in (13) comes from the sub-gamma form cited above; it is the same constant that appears in Bennett’s inequality as stated in Maurer and Pontil [10]. It is used throughout.
Remark 2 (Why the essential range still matters). Low variance alone does not eliminate the Bernstein linear term. A profile may disagree with another only on rare queries, yet a rare observation can produce a large jump. A deterministic envelope, an externally certified uniform approximation, or an explicitly valid bound on is needed to shrink the linear term; numerical proximity of embeddings is not such a certificate.
A simultaneous localized multiscale inequality
Definition 1 (Pre-audit comparison network). Given and , fix an integer , finite nonempty sets of document selections and mappings such that
The network sets and maps must be measurable with respect to the pre-audit information (which may include independent unlabelled queries). Define and let
Here the sets count distinct directed edges, not paths: within a level, an edge shared by many candidates is counted once. An edge that appears at several levels is counted in each corresponding , because the union bound in Theorem 1 is allocated level by level; Proposition 3 below avoids this repeated charge by a single union bound over distinct edges. For convenience levels with can be removed. We assume the displayed levels are nonempty.
The identity gives the exact telescoping representation
No probabilistic approximation is involved in this equality.
Theorem 1 (Conditional simultaneous multiscale Bernstein bound). Assume the model of Section 2. Choose numbers with and let
Suppose that for all distinct edges there are nonnegative, possibly audit-data-dependent random variables such that
Define the path-dependent radius
Then, conditionally on the pre-audit information and counts,
The result remains valid when , , and the network are arbitrarily data-dependent through the independent pilot and unlabelled information.
Proof. For every level and every , apply Lemma 1 with . Its one-sided failure probability is bounded by . A union bound over the distinct edges in gives failure probability at most ; a second union bound over levels gives a joint event of probability at least on which
for every , .
On , use the telescoping identity (16) for each and add the corresponding edge inequalities. Intersect with the calibration event in (18). The monotonicity of the square root and of the linear term permits replacement of each unknown by without any independence assumption between and the calibration event. A final union bound proves (20). Conditioning is legitimate because every edge and its allocated failure probability were fixed without examining audit relevance values.
Proposition 3 (A weighted, unique-edge simultaneous inequality). Let be the set of distinct directed edges of a pre-audit network as in Definition 1, and let . Conditionally on the pre-audit information and counts, choose weights satisfying . The weights may depend on the pilot, the unlabelled observations and the counts, but not on audit relevance labels. Put
Suppose that the simultaneous edge calibration event (18) holds with conditional failure probability at most , and define
Then, conditionally on the pre-audit information and counts,
The same event bounds all candidate paths, even if a directed edge appears at more than one level.
Proof. Since , each is positive. For each distinct edge , apply Lemma 1 at . Its conditional failure probability is at most . A single union bound over therefore has failure probability at most . On its complement every edge inequality holds, regardless of how many times that edge occurs in the telescoping paths. Intersect with the simultaneous calibration event and sum along each path exactly as in Theorem 1. No independence between these events is needed. □
Remark 3 (Uniform levels, repeated edges, and pre-audit tuning). If every edge appears at only one level, the allocation for gives and recovers Theorem 1. For repeated edges, let
These weights sum to 1, and whenever . Consequently, the weighted radius is never larger than the levelwise radius (19) for this allocation, and it can be strictly smaller on paths with repeated edges. Other weights may prioritize difficult or frequently used edges, but they must be fixed without the audit relevance labels: optimizing them retrospectively from the audit is not covered by this proposition.
Remark 4 (The role of localization). The radius in (19) is pathwise localized: each pays only for increments along its own approximation path, and an edge with negligible variance or range contributes little. Moreover, the pilot-screened family can be much smaller than . This does not establish a universal entropy integral or a new generic chaining inequality; the generic mixed-tail background is developed, for example, by Dirksen [4].
Observable calibration of all edge variances
Theorem 1 must not rely on oracle variances. We now provide explicit, fully observable choices of with separate statistical error control. Recall the unbiased sample variance
Lemma 2 (Empirical Bernstein inequality for a single mean). Let be iid in for and let be their unbiased sample variance. For ,
The same assertion holds with in place of . Proof. For , apply Maurer and Pontil [10] to the rescaled observations , then multiply the resulting inequality by . The sample variance
used by Maurer and Pontil [10] coincides with the unbiased sample variance , and it rescales by . Apply the same theorem to for the opposite one-sided deviation. If the deviations vanish identically.
Assumption 3 (Pre-audit residual predictors). For every stratum and every distinct edge , there is an - and/or unlabelled-sample-measurable predictor . It is fixed without using the audit relevance labels.
Let
and write for the sample variance of the ’s. Since , .
Lemma 3 (Uniform residual-second-moment upper bounds). Let . Set
Under Assumptions and ,
Proof. For each fixed , the bias–variance decomposition gives
The predictor is fixed under the conditioning, so the residual squares are iid and bounded by . Apply the one-sided empirical Bernstein inequality of Lemma (equivalently, Corollary of Maurer and Pontil [10] after rescaling) with . Since , the displayed empirical upper expression bounds except on an event of probability at most . Union over all pairs. Finally, the separate Popoviciu bound justifies the minimum with .
Theorem 2 (Observable simultaneous chaining radius). Under Assumptions and , let be known pre-audit constants satisfying . The universally valid choice is . Put
Then the radius (19) is observable from the pilot, unlabelled sample and acquired audit labels, and conclusion (20) holds with probability at least .
Proof. By Lemma , the collection of variance bounds in (26) dominates simultaneously with conditional probability at least . The deterministic oscillation bounds imply without additional probability loss. All requirements of Theorem are satisfied.
Remark 5 (No hidden additional labeled sample). The may be estimated on the same audited labels used to form . The argument does not condition on the estimated variances; instead it intersects a Bernstein event involving the true variances with an empirical calibration event that holds simultaneously. This avoids an incorrect independence claim and does not double the annotation budget.
Remark 6 (A predictor-free alternative). Assumption 3 can be dropped at the price of a different constant. For iid observations in , inequality (3) in Theorem 10 of Maurer and Pontil [10], applied after rescaling to , gives
where is the variance and the unbiased sample standard deviation. (Their theorem is stated for ; in the iid case the expected unbiased sample variance equals .) With and , the choice
where is the sample standard deviation of the , satisfies (25) without any pre-audit predictor. Both forms have the same orders in , namely terms of order scaled by an empirical standard deviation and terms of order . They differ in their constants and in the squared bias , which the residual form pays and the predictor-free form avoids; which one is tighter depends on the data and on the quality of the predictor.
Theorem 3 (One-stage empirical-Bernstein multiscale certificate). Assume the stratified, label-ignorable audit design (Assumption 2) and a pre-audit network as in Definition 1. For every and every distinct directed edge , let , and let be the unbiased sample variance of . Let be the known pre-audit constants of Theorem 2, satisfying . For set
and define
Then, conditionally on the pre-audit information and counts,
In particular, this certificate requires neither pre-audit residual predictors (Assumption 3) nor the separate calibration budget .
Proof. Condition on the pre-audit information and counts, so that the are fixed and, for each and , the values are iid. They lie almost surely in the interval between the essential infimum and supremum of under , whose length is . The endpoints need to be known, since the bound of Lemma 2 depends on the interval only through its length and is nondecreasing in it. For each level , edge and stratum , apply Lemma 2 with , so that . This yields
outside an event whose conditional probability does not exceed . A union bound over the stratum–edge pairs at level , and then over levels, gives a single event with probability at least . For we have
On the event just described, multiply each stratum-specific bound by , sum over strata, and telescope along every candidate path as in (16). The result is (29).
Remark 7 (No unconditional dominance). The single-stage radius (28) dispenses with , but it sums stratumwise deviations and pays the larger empirical-Bernstein linear constant . The calibrated Bernstein radius of Theorem 2 instead pools the variances before applying the square root, but it pays the predictor bias and the split of . Neither is uniformly smaller. Both should be computed as baselines under comparable confidence and annotation budgets. If the final reported certificate is selected as the minimum of two post-audit certificates, their failure probabilities must first be jointly budgeted (or the choice between them must have been fixed without audit labels); taking their minimum at their individual nominal failure levels does not generally preserve those levels.
Unknown stratum probabilities and certified regret
Fix stratum as a reference and write, for any ,
The second identity exploits and is useful: the cost of estimating the population weights is small when the contrasts, not necessarily the coverage levels, are similar between strata. Let be the number of nontrivial competitors, and suppose (the case is handled below). Let
For each denote by the sample variance of the , and define
and, for , the observable factor
The level is calibrated exactly: each of the one-sided statements used below is applied with , so that . No independence between these events and the chaining event is assumed. For one has deterministically, so no probability is spent on .
Lemma 4 (Uncertainty in unknown context proportions). Under Assumptions 1 and 2, with probability at least , simultaneously for all ,
Proof. For each , Hoeffding’s inequality, applied to the Bernoulli indicators , gives
Union over the nonreference strata yields the simultaneous proportion event with probability at least .
Every takes values in . Apply Lemma 2 in both directions, with range 2 and for each tail, and take a union bound over the one-sided statements for the nontrivial competitors. This gives for every and every , except with probability at most ; for the inequality is trivial. Now use (30), bound , and insert
where the bound 2 holds deterministically because . Intersection of the two events and a union bound prove the assertion.
Remark 8 (Where the cardinality of re-enters). Because , the weight correction never exceeds . This crude level holds on the proportion event alone, does not depend on , and requires no mean intervals: if one sets , Lemma 4 holds with probability at least and may be used in Theorem 4. The empirical refinement through , in contrast, relies on a flat union bound over the competitors, so a factor re-enters the certificate through , multiplied by . The localization of Theorem 1 therefore concerns the audit fluctuation ; the weight-estimation term is controlled only through the factor , of order , which is small when the unlabelled sample is large.
Define for every
and set . The latter convention does not follow from (35), whose terms need not vanish at (the path of in the network may pass through other nodes, and ); it is legitimate because deterministically, so no confidence statement is required for . Let
Theorem 4 (Honest postselection regret certificate). Let Assumptions 1, 2, and 3 hold. Suppose the pilot screening event (5) has probability at least . Construct the pre-audit networks as in Definition 1, use the observable edge radius from Theorem 2, and form (35)–(36). If
then
If , define ; the statement remains valid. The distribution and the proportions need not be known or parametrically specified.
Proof. By Theorem 2 and Lemma 4, with probability at least , we have for every ,
while holds deterministically. This simultaneous event is valid even though , and the network were learned from the pilot, since the relevant concentration statements hold conditionally on the pre-audit information and counts. On the screening event, some population maximizer . Consequently,
Because , truncation at 0 and 1 is harmless. The union bound with the screening failure probability proves the result. If , the screening event implies that itself is optimal, hence its regret is zero; off the screening event no assertion is made.
Corollary 1 (Postselection certification without variance calibration). Let Assumptions 1 and 2 hold, let the pilot screening event (5) has probability at least , and let the pre-audit networks be constructed as in Definition 1. For put
with from (28), and set , which is legitimate because . Define , with the same singleton convention as in Theorem 4. If , then
No assumption on pre-audit residual predictors is needed.
Proof. Intersect the simultaneous event of Theorem 3 with the proportion and mean calibration events of Lemma 4, which uses only Assumptions 1 and 2, and with the screening event. On this intersection, identity (30) gives for every ; then argue over a screened population optimum exactly as in the proof of Theorem 4. The total failure probability is bounded by .
Corollary 2 (Reduced universe versus original corpus). Suppose the original corpus contains a larger finite feasible family with optimal expected coverage . If, with probability at least ,
then
Proof. Decompose and intersect the two coverage events.
Corollary 3 (Uniformly bounded relevance errors). Suppose the audit measures functions satisfying the deterministic uniform calibration condition , and all hypotheses of Theorem 4 hold for the induced measured coverages on the same pre-audit family . Let be their simultaneous contrast bounds and assume the true-population screening event (5) has probability at least (Remark 9 gives a sufficient rule). Then the true reduced regret is bounded by
with the same joint confidence level as in Theorem 4.
Proof. The map is 1-Lipschitz under the supremum norm. Thus for every and , so for all . On the simultaneous measured-contrast event and the true screening event, . Truncation to completes the proof.
Remark 9 (Screening with measured pilot labels). Corollary 3 requires the screening event for the true population. If the pilot of Proposition 2 is itself labeled with the measured functions , its uniform Hoeffding event controls , where and . On that event, . Hence the rule (7) must be widened to ; with this change the true-population screening event again has probability at least .
A complementary pooled stratified Bennett certificate
Before using the full multiscale construction, one may combine the conditional stratum fluctuations using a single exponential tilt. The result is included for completeness and as a benchmark, not claimed to be an original concentration inequality.
For each candidate , denote . In the formulas below take . For every and every , use a pre-audit predictor satisfying the analogue of Assumption 3, and replace by in the construction of Lemma 3. The union bound now runs over the pairs , so is replaced by . This gives simultaneous empirical upper bounds with failure probability at most . The budget is distinct from the budget of Lemma 3; both must be paid if both certificates are reported. Set
If , the corresponding summand is defined to be zero.
Proposition 4 (Pooled Bennett bound with certified residual moments). Assume the model of § 2 and let every be fixed conditionally on the pre-audit information and the audit stratum counts, without using audit relevance values. Then, with probability at least , simultaneously for all ,
Combining this with Lemma 4 and pilot screening provides an alternative population-regret certificate
with coverage at least . The bracket for is replaced by , which is legitimate because ; if , the certificate is zero on the screening event.
Proof. Condition on the pilot, the independent unlabelled sample and the stratum counts. For each , define the centered summands
Their sum equals , their variances are , and, since , they are almost surely at most . Bennett’s moment-generating-function bound ([2 Theorem 2.9]), applied with to a single centered random variable (so that is its variance ), gives
Summing conditional cumulant bounds across the independent queries, we obtain
When the variables vanish, so their contribution is zero. Applying Markov’s inequality with the fixed to the event
The conditional probability is at most . A union bound over the nontrivial competitors yields an event of probability at least on which all those inequalities hold. Intersect this event with the simultaneous residual-moment event of probability at least , and replace by using the monotonicity of the exponential cumulant for . This gives (39). The decomposition (30), Lemma 4, and the screening argument used in Theorem 4 complete the proof of (40) and its stated coverage probability. □
Remark 10 (Data-dependent exponential tilting). Optimizing after seeing the audit labels is not justified by Proposition 4: a fixed- Markov inequality is not automatically uniform in . A grid with an explicitly allocated union bound or a time-uniform mixture construction would be needed for such an optimization. The same caution applies to choosing a multiscale network on the audit labels without additional sample splitting or a uniform complexity argument.
Documentary activity and structural contraction
The concentration theory above is valid for arbitrary bounded coverage functions. We now exploit the particular maximum structure in (2). For a nonempty set , write
Lemma 5 (Single-fragment swap and activity). Let , let , , and suppose . Define the activity event
and . Then for every ,
and, for every stratum ,
Consequently the edge obeys
Proof. For every , the scalar map is 1-Lipschitz. Therefore
When , both and are at most , and the two coverages are identical. Combining the observations proves (42). Squaring and taking conditional expectations gives
The range inequality follows because the difference is in . Substitute these bounds into (11)–(12) to obtain (44). □
Proposition 5 (Rare-query obstruction to sample-only uniform envelopes). For every finite pilot size and every , there exist a two-point query distribution and two relevance functions with values in such that, with probability exceeding , the pilot observes identical relevance scores for both fragments on all queries, although . Consequently, an empirical supremum of observed relevance differences, without additional structural assumptions, is not a valid distribution-free upper confidence bound for the population uniform envelope.
Proof. Let with . Set , , and . The true uniform difference equals 1. Yet with probability the entire iid pilot consists of queries equal to 0, on which the scores agree exactly. Choosing makes this probability greater than . Thus a pilot-only empirical supremum of zero is compatible with a population uniform difference of one, and it covers the true envelope with probability less than . More generally, any procedure whose output on this all-zero pilot sample is some value covers the true envelope 1 with probability at most under this distribution. □
Proposition 6 (Simultaneously estimated activity factors). Let be a finite set of pre-audit swap triples with known deterministic envelopes as in Lemma 5, and let . Assume that, for every acquired audit query and every , the relevance values , and , , are observed, so that the indicators are observed. This does not follow from Assumption 2, which guarantees only the coverages , : these determine neither when , nor any quantity involving fragments outside the retained competitor family. For each and triple , define and
Then with probability at least , simultaneously for all , . In particular,
is a simultaneous variance bound for all such swap edges. It can be combined by taking the minimum with the residual bound (26), at the additional error cost .
Proof. For each , the random variables are iid Bernoulli with conditional mean . The one-sided Hoeffding inequality gives failure probability at most for the displayed upper bound. Union over all pairs, followed by Lemma 5, proves the variance assertion. To take the minimum with the residual upper bounds, intersect their two simultaneous validity events and use another union bound.
Proposition 7 (Pathwise extension to several swaps). Suppose two selections can be connected by a finite path in which each consecutive pair differs by a single fragment swap covered by Lemma 5, with parameters . Then for each ,
In particular,
Proof. Pointwise,
Apply Minkowski’s inequality in , then Lemma 5 to each summand. Variance is at most the uncentered second moment.
A two-level sufficient condition for a sharper bound
The multiscale construction is not automatically better than a direct union bound, because it splits the error probability across levels. Here is a sufficient condition for improvement. In this section condition on the pre-audit information and counts, and consider only the audit fluctuation , not the common error from estimating population stratum proportions.
Corollary 4 (Two-level improvement over a flat Bernstein union bound). *Suppose the nontrivial competitors admit distinct representatives, , and a map such that every candidate is associated with a representative and
Assume each representative belongs to , and use the two-level network for , while the selected set follows the constant path . The first-level network includes and all representatives. Define
For , the uniform two-level radius is
The flat cardinality-based direct Bernstein radius is
Whenever
with positive numerator, one has . Both bounds apply simultaneously to all candidates with conditional failure probability at most .
Proof. For a coarse edge , its coverage difference lies in , so its variance is at most and its range at most in each stratum. Lemma 1 therefore bounds the coarse fluctuation by simultaneously over the distinct edges. For a fine edge , (46) implies that the difference is in , with variance at most and range at most in every stratum. Its Bernstein radius is therefore at most , simultaneously over at most fine edges (at most when the representatives are themselves nontrivial competitors, since their fine edges are trivial; the cruder count is kept for simplicity). The telescoping identity yields (48). Because all variance and range bounds used here are deterministic, no calibration budget is needed. Direct union over the edges from to each candidate yields (49). Subtracting the two deterministic expressions, and dividing by the strictly positive term , gives the sufficient condition (50). □
Remark 11 (Precise scope of the comparison). Corollary 4 compares two conservative Bernstein radii built from variance and range bounds, under common nominal confidence and the same audit design.
Numerical illustration (exact arithmetic on the formulas). Take , , , an audit count of in each of the two strata, and . Choose , , and . Then and , so
The threshold on in (50) is about 0.3221. This is a deterministic illustration of the algebraic sufficient condition, not a simulation and not an experimentally measured gain in total documentary regret.
Simulation study
This section examines three questions: whether the certificates attain their nominal level in finite samples; how the observable radii of § 4–§ 7 compare in size; and when the two-level network of Corollary 4 improves on a flat union bound.
Design
Query population and fragments. There are observable strata, with probabilities . Given , a latent topic is drawn with probabilities ,
Each topic has a base relevance , with independent. The corpus has fragments organized in six clusters of five. The first fragment of cluster has relevance ; each other fragment of the cluster has , with independent. Hence deterministically: controls the functional redundancy within clusters, and gives exact duplicates.
Selection, competitors and samples. All costs equal 1 and , so consists of the 4526 subsets of size at most 3. We take , so that and . In each replication, a fully labelled pilot of iid queries selects by exhaustive maximization of , supplies the residual predictors (pilot stratum means of ) and fixes the Bennett tilts; an independent unlabelled sample of queries gives ; and the audit draws queries from each stratum. The population quantities , and are computed from an independent Monte Carlo sample of 150 000 queries per stratum, with standard errors below .
Networks. For let be the set of first fragments of the clusters met by . Then , and the 1-Lipschitz property of the maximum, used as in the proof of Corollary 3, gives . The two-level network is , with 42 coarse and 4483 fine edges in every replication; the flat network joins every competitor directly to . In this design the envelope is known by construction; in applications it would have to be certified externally (Proposition 5).
Certificates and error budgets. All certificates have total level . The weight correction of Lemma 4 uses and is common to all of them; the remaining 0.04 is allocated to the audit fluctuation. We compare seven certificates of the form :
Hoeffding, flat: a union of one-sided Hoeffding bounds over the pairs , which gives ,
(ii)–(iv) one-stage empirical Bernstein (Theorem 3, Corollary 1) with : flat; two-level with and the known envelope on fine edges; and two-level with the universal envelope ;
(v)–(vi) calibrated Bernstein (Lemma 3, Theorem 2, Theorem 4) with and : flat, and two-level with . On fine edges, where , the residual range is taken as and the variance bound is truncated at ; both are direct consequences of Lemma 2 and of Popoviciu’s inequality for a variable with range ;
(vii) pooled Bennett (Proposition 4) with and . Each minimizes, over a fixed grid, the bound (39) in which is replaced by the same residual formula evaluated on the pilot with the known audit counts; thus uses no audit label.
We vary at , and at , with 200 replications per setting.
Results
Validity. In all 10 settings and for all seven certificates, the certificate covered the true regret in every replication, and the simultaneous audit event held in every replication. With 200 replications, the one-sided 95% Clopper–Pearson lower bound for each coverage probability is 0.985. As expected from union bounds with conservative constants, the certificates are valid with room to spare.
Size of the certificates. Table 2 and Figure 1 report the mean certificates at . The calibrated Bernstein certificate of Theorem 4 and the pooled Bennett certificate are nearly indistinguishable, and both are about 2.5–2.7 times smaller than the one-stage empirical-Bernstein certificate at every . The one-stage certificate pays the linear term in every stratum; for it is even larger than the flat Hoeffding certificate, which it overtakes only for . In this design, therefore, the separate calibration budget is well spent, in line with Remark 7. All certificates remain far above the true regret, which is about 0.003: at the smallest certificate is 0.033, of which about 0.012 is the weight-correction term. This gap is the price of a simultaneous, honest guarantee over 4525 data-dependent competitors.
| Certificate | |||||
| Hoeffding, flat | 0.550 | 0.381 | 0.265 | 0.187 | 0.134 |
| One-stage EB, flat (Thm. 3) | 0.930 | 0.507 | 0.276 | 0.156 | 0.092 |
| One-stage EB, two-level | 0.744 | 0.409 | 0.224 | 0.129 | 0.077 |
| One-stage EB, two-level, | 1.000 | 0.723 | 0.381 | 0.208 | 0.117 |
| Calibrated Bernstein, flat (Thm. 2) | 0.340 | 0.186 | 0.101 | 0.061 | 0.037 |
| Calibrated Bernstein, two-level | 0.293 | 0.161 | 0.088 | 0.053 | 0.033 |
| Pooled Bennett (Prop. 4) | 0.332 | 0.182 | 0.099 | 0.060 | 0.037 |
| True regret | 0.0037 | 0.0027 | 0.0029 | 0.0035 | 0.0044 |
| Weight correction | 0.033 | 0.028 | 0.019 | 0.014 | 0.012 |
Table 2. Mean regret certificate over 200 replications, , as a function of the number of audited queries per stratum. Standard errors are below 0.003 in all cells. The last rows give the mean true regret and the mean largest weight-correction term , common to all certificates.

Figure 1. Mean regret certificate (logarithmic scales) over 200 replications at , as a function of the number of audited queries per stratum. The pooled Bennett certificate (dashed, open marks) nearly coincides with the flat calibrated Bernstein certificate. The dashed black line is the mean true regret.
When does the multiscale network help? Table 3 and Figure 2 vary the redundancy envelope at . With a known envelope, the two-level certificate is smaller than the flat one for small : by 19% (), 13% () and 7% () for the calibrated Bernstein version, and by 25%, 19% and 13% for the one-stage version. The advantage vanishes between and for the calibrated version and at about for the one-stage version, and it turns into a loss at . This crossover agrees with the deterministic threshold of Corollary 4, which equals about 0.19 for , , , and the present weights. The reduction of the radius at the population optimum can be much larger than the reduction of the certificate (from 0.061 to 0.013 at for the calibrated version), because the certificate is a maximum over all competitors. Finally, without a certified envelope ( on fine edges) the two-level certificate is 35–58% larger than the flat one: splitting the error budget across levels is then not compensated by any reduction of the linear term. This illustrates why the gains of § 9 require certified, not merely empirical, envelopes (Proposition 5).
| Certificate | ||||||
| Calibrated Bernstein, flat | 0.101 | 0.104 | 0.101 | 0.104 | 0.107 | 0.109 |
| Calibrated Bernstein, two-level | 0.082 | 0.087 | 0.088 | 0.097 | 0.113 | 0.139 |
| ratio | 0.81 | 0.84 | 0.87 | 0.93 | 1.05 | 1.27 |
| One-stage EB, flat | 0.278 | 0.280 | 0.276 | 0.278 | 0.280 | 0.276 |
| One-stage EB, two-level | 0.209 | 0.218 | 0.224 | 0.243 | 0.277 | 0.337 |
| One-stage EB, two-level, | 0.374 | 0.380 | 0.381 | 0.391 | 0.409 | 0.436 |
| ratio (known envelope) | 0.75 | 0.78 | 0.81 | 0.87 | 0.99 | 1.22 |
| ratio () | 1.35 | 1.36 | 1.38 | 1.41 | 1.46 | 1.58 |
| Pooled Bennett, flat | 0.099 | 0.102 | 0.099 | 0.102 | 0.105 | 0.107 |
Table 3. Mean regret certificate over 200 replications at , as a function of the redundancy envelope . Rows marked “ratio” divide the two-level certificate by the corresponding flat one.

Figure 2. Ratio of the mean two-level certificate to the mean flat certificate at , as a function of the redundancy envelope ; values below 1 indicate a gain from the multiscale network.
Summary. All certificates are valid. Among the fully observable ones, variance calibration (Theorem 4) or the pooled Bennett tilt (Proposition 4) gives the smallest flat certificates, and the multiscale network yields an additional reduction of up to about 20% when fragments are strongly redundant and the redundancy is certified, in agreement with Corollary 4.
We have specified a complete finite-sample probability argument: pilot screening, conditional concentration of every pre-audit comparison edge, telescoping over finite multiscale networks, simultaneous empirical variance calibration, correction for unknown context proportions, and conversion to postselection regret. The redundancy lemmas give explicit variance contractions for swapping documentary fragments. The confidence level in Theorem 4 is unconditional: it averages over the pilot, whose only contribution is the screening error , and it requires no model for . Conditionally on , only the post-screening part of the statement holds, with level .
The sets may be constructed using an independent pilot, including estimated similarities. Such a construction does not need to be accurate for the base theorem: validity follows from the edgewise simultaneous concentration with conservative envelopes.
References
- [1]Bartlett, P. L., Bousquet, O., and Mendelson, S. (2005). Local Rademacher complexities. The Annals of Statistics, 33(4), 1497–1537. doi:10.1214/009053605000000282.DOI
- [2]Boucheron, S., Lugosi, G., and Massart, P. (2013). Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press. doi:10.1093/acprof:oso/9780199535255.001.0001.DOI
- [3]Burgess, M. A. and Chapman, A. C. (2021). Approximating the Shapley value using stratified empirical Bernstein sampling. In Proceedings of the 30th International Joint Conference on Artificial Intelligence, pp. 73–81. doi:10.24963/ijcai.2021/11.DOI
- [4]Dirksen, S. (2015). Tail bounds via generic chaining. Electronic Journal of Probability, 20(53), 1–29. doi:10.1214/EJP.v20-3760.DOI
- [5]Dudík, M., Langford, J., and Li, L. (2011). Doubly robust policy evaluation and learning. In Proceedings of the 28th International Conference on Machine Learning, pp. 1097–1104. https://icml.cc/2011/papers/554_icmlpaper.pdf.arxiv.org/abs/1103.4601
- [6]Hoeffding, W. (1963). Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301), 13–30. doi:10.1080/01621459.1963.10500830.DOI
- [8]Koltchinskii, V. (2006). Local Rademacher complexities and oracle inequalities in risk minimization. The Annals of Statistics, 34(6), 2593–2656. doi:10.1214/009053606000001019.DOI
- [9]Krause, A. and Golovin, D. (2014). Submodular function maximization. In Bordeaux, L., Hamadi, Y., and Kohli, P. (eds.), Tractability: Practical Approaches to Hard Problems, Cambridge University Press, pp. 71–104. doi:10.1017/CBO9781139177801.004.DOI
- [10]Maurer, A. and Pontil, M. (2009). Empirical Bernstein bounds and sample variance penalization. In Proceedings of the 22nd Annual Conference on Learning Theory (COLT). https://arxiv.org/abs/0907.3740.
- [11]Nemhauser, G. L., Wolsey, L. A., and Fisher, M. L. (1978). An analysis of approximations for maximizing submodular set functions—I. Mathematical Programming, 14, 265–294. doi:10.1007/BF01588971.DOI
- [12]Talagrand, M. (2005). The Generic Chaining: Upper and Lower Bounds of Stochastic Processes. Springer. doi:10.1007/3-540-27499-5.DOI