Manuscript Offprint
arXiv:2610.26944Quadratic Sample Complexity for Strictly Replicable Realizable Learning with Unknown Marginals
Abstract
Under the quantifier , where the realizable distribution and its marginal are unknown, we determine the finite-class sample-complexity exponent for strict replicability: two independent samples and one shared seed must produce identical functions. For , the worst case over is , without iterated logarithms. For , , and , every randomized, possibly improper learner valid throughout an explicit anchored realizable family requires samples. For the full Boolean class , , in the same parameter range, we prove the matching characterization using a proper Poissonized ball-sampling algorithm. We also give an explicit proper Gibbs upper bound for every finite measurable Boolean class. Our lower bound uses square-root probabilities and volumetric packing; the Gibbs proof builds on established coupling and generalization identities. Finally, we characterize the known-marginal worst case for , showing why that interface must be kept distinct.
1 Introduction
Replicable learning asks for more than accurate predictions. When a learning algorithm is run on two independent samples using the same random seed, its outputs should agree. In the strict version considered here, agreement means equality of the entire prediction functions, not merely agreement on a fresh point or on most of the distribution.
For finite hypothesis classes, the optimal dependence on class size has remained unclear in the realizable setting. Larsen, Mathiasen, Pabbaraju, and Svendsen [LMPS26, arXiv:2602.19552v1] establish a lower bound with exponent 3/2, up to logarithmic factors, while previously known general upper bounds have exponent 2. In their open-problems discussion, they ask which end of this range is optimal and describe themselves as “more divided” about the alternatives.
The quantifier over distributions is essential. We study a single learner that must work for every unknown realizable distribution:
The unknown information includes the marginal distribution on the instance space. This is different from allowing a separate learner for each known marginal p. Although the lower-bound instance
*An earlier version of this article was deposited on Zenodo in September 2026, and the present text is a revision of that deposit. Zenodo record: concept DOI 10.5281/zenodo.22657208; version DOI 10.5281/zenodo.22663614 (version 2). The mathematical results are unchanged; the revision corrects two attributions (the fixed-parameter constant in Proposition F and the lower-bound citation in Section 5.2), interchanges the labels of equations (15) and (16), and makes expository changes throughout.
Email: zgj1226029469@outlook.com.
in [LMPS26, Theorem 1.2] has a uniform marginal, their PAC definition quantifies over an unknown distribution. Their Theorem 1.3 is an upper bound only for their uniform-marginal instance; it is not an upper bound for every unknown realizable distribution.
Our main conclusion is that, under the unknown-marginal quantifier and at , the worst-case sample complexity among classes of size at most M is
with absolute constants and no loss.
The lower bound uses an anchored Boolean class and a continuous family of realizable distributions. The probability of a non-anchor point is proportional to the square of a parameter coordinate, while its label is determined by that coordinate's sign. Consequently, the square-root probability vector is Lipschitz even when a label changes. Strict replicability produces separated high-probability output cells in parameter space. Accuracy limits the volume that any one output can explain. Brunn–Minkowski expansion then forces a sample lower bound.
A refinement of this argument is needed to obtain the stability parameter , rather than a combination of and , in the denominator. We do not remove all inaccurate parameters. Instead, we charge oversized cells to their inaccurate mass and apply a packing inequality to the remaining small cells. This gives the joint lower bound
throughout the parameter domain of Theorem B, without a condition relating and .
For the full Boolean class on points, a proper Poissonized ball-sampling algorithm matches this lower bound and achieves the optimal additive confidence dependence; see Theorem D. For arbitrary finite classes, we give a separate, self-contained Gibbs upper bound. Its ingredients have precedents: correlated sampling [KKMV23], exponential-mechanism sampling followed by correlated sampling [HIY25v2, Algorithm 9], and Gibbs KL-generalization identities [WLF16]. We claim only the displayed finite-class bound, obtained as a consequence of these tools; the underlying identities and the coupling method are not claimed as new.
Several distinctions from prior work matter. The quadratic VC lower bound in [BGHILPSS23, Theorem 5.6] is agnostic and uses noisy-label reductions. The geometric methods of [HIKLY24] concern replicability and isoperimetric tilings, including mean and coin estimation, but do not supply the realizable PAC lower bound proved here. The pointwise realizable lower bound in [HIY25v2, Theorem 1.5] already contains , whereas its quadratic-dimensional result, Theorem 1.10, is semi-replicable and agnostic. Finally, [BBEGH26, Corollary 6] already separates an additive confidence term for all finite classes. Our contribution for is simultaneous matching of the dependence without a remaining logarithmic gap, not the existence of an additive confidence term by itself.
2.1 Learning model
Let be a measurable instance space and let be a class of measurable Boolean functions on . For a distribution on , define
The distribution is realizable by if for some .
A randomized learner receives a sample and a random seed , independent of the sample. All randomness used to specify the output function is included in . This costs no generality for lower bounds: if a learner also uses private randomness , drawn independently in the two runs, then moving into the shared seed leaves the accuracy guarantee unchanged and can only increase the collision probability (by Jensen's inequality, for the output probabilities ), so a learner with private randomness satisfying (1) yields one with only shared randomness satisfying (1). The learner may be improper: its output may be any measurable Boolean function on , not necessarily a member of .
For , the learner is valid for D if
(1)
where are independent and the seed is shared. In the second line, equality means
All events under consideration are assumed measurable; in particular, the map is assumed measurable for the product -algebra, so that for every fixed the output is a measurable function of and, by Tonelli's theorem, every fixed-seed output probability is a measurable function of .
A learner using at most n examples can be padded to receive exactly n examples. Thus our sample bounds are worst-case sample bounds, including for algorithms that use a publicly randomized number of examples.
Let be the least for which there exists one randomized, possibly improper learner satisfying (1) for every unknown distribution realizable by . The learner may depend on , but not on . If no such exists, set .
At the fixed parameters
write , and define
The supremum allows different instance spaces. Empty classes can be omitted, and a singleton class has sample complexity zero.
All logarithms are natural unless a base is displayed. All constants implicit in and are absolute.
We also use definition (1) at when stating sufficient upper bounds (Theorem D); the accuracy condition is then automatic.
2.2 The known-marginal interface
Let
be the full Boolean class on points. For a marginal on and , let assign marginal and deterministic labels .
The known-marginal complexity is
Here is given p, but not h. Thus the relevant order is
rather than one algorithm that must work for all unknown marginals.
A worst-case lower bound for is an existential statement about . It is not a lower bound for every individual marginal.
2.3 Geometric notation and the realizable family
Let
For measurable , write
The restriction of to B is a probability measure.
On
define the anchored class
Its cardinality is . After relabeling the domain, is a subclass of .
For and , define
(3)
All unlisted atoms have probability zero. This distribution is realizable by , including when some coordinates vanish.
For , set
For distributions P, Q on a finite space, use
and
For distributions on with Lebesgue densities we use the same definition with ; for uniform laws on two sets of equal positive volume this equals . We use the convention .
3 Main results
Theorem A. Optimal finite-class exponent
For every integer , let . At , allowing randomized, possibly improper learners and requiring one learner to work for every unknown realizable distribution,
and
where
Consequently,
There is no log log M factor in this characterization. The weaker constant 814 comes from an earlier version of the argument and is kept for reference; the second bound follows from Theorem B at the fixed parameters . The hard class depends on M, but not on the proposed sample size n.
Theorem B. Parameterized realizable lower bound
Let be an integer, let
and let be a randomized, possibly improper learner that, using samples, satisfies (1) on for every .
Define
Then both of the following bounds hold:
(B_{\eta})
and
(B_{\rho})
No ordering between and is assumed. Moreover, forces ; in fact it gives , because throughout this domain.
Theorem C. A finite-class Gibbs upper bound
For every finite measurable Boolean class with , and every , there exists a proper learner, independent of the unknown distribution, that satisfies (1) for every distribution realizable by , using
(C)
samples.
Theorem D. Complete parameter characterization for
For every integer , every , and every , there exists a proper learner, not given the marginal , that is valid for every distribution realizable by , using
(U_{P})
Moreover, for every integer , every , and every ,
(D)
The lower bound applies to every randomized, possibly improper learner. Therefore, uniformly over this parameter domain,
There is no remaining logarithmic gap in this domain. The two sides differ by an absolute constant factor of order (the leading terms have ratio ); we have made no attempt to optimize constants.
Corollary E. A realizable VC-dimension lower bound
Let be any measurable Boolean class with . When one randomized, possibly improper learner is required to work for every unknown distribution realizable by , one has
at .
More generally, for every and ,
(E)
For infinite VC dimension, the same statement applied to arbitrarily large finite shattered sets rules out any finite uniform sample bound.
Proposition F. A product-marginal variant
For every integer , set
For , put and define
Fix
For each , let the instance marginal be
where
and label according to , with .
Every randomized, possibly improper learner satisfying (1) for every member of this family must use
(F)
At , the fixed-parameter bound
also holds; it is again the historically earlier, weaker constant, while (F) itself at the fixed parameters gives approximately .
Proposition G. The known-marginal worst case
For every integer , every , and every ,
(G)
More explicitly, for every known marginal p, there exists a deterministic proper learner valid for every target under p, provided the integer sample size satisfies
Conversely, let , and take the explicit marginal with anchor mass and rare points of mass
each. Every randomized, possibly improper learner given this marginal and valid for every target must satisfy
Combining this with the confidence lower bound proved below yields (G).
The lower bound is not valid for every marginal separately: a marginal supported on one point is learnable with one sample at the stated parameters.
4 Proofs
4.1 The parameterized lower bound
We first prove four lemmas.
Lemma 1'. Lipschitz control of the input experiment. For every integer , every , every , and every integer ,
and
In particular,
Proof. For coordinate i, the square-root probabilities of its two possible labeled atoms are
The map
is 1-Lipschitz. For inputs of the same sign this is immediate. For inputs of opposite signs, the squared image distance is , which is at most . At zero the label changes, but the corresponding probability is zero.
The anchor square-root probability is
On B,
Integrating along the segment from to , which stays in the convex ball , bounds the squared anchor contribution by . Summing all contributions proves the Hellinger bound.
For completeness, if , then
(5)
The first line follows from multiplicativity of affinity and . The second is Cauchy–Schwarz applied to . Combining these inequalities proves (4). □
For any fixed seed, an output event is a deterministic event of the input sample. Total variation cannot increase under this map: its probability difference is bounded by the supremum of input-event probability differences. Thus the same Lipschitz constant applies to every fixed-seed output probability.
Lemma 2'. Volume of an accurate-output region. For every integer , every , and every Boolean function on ,
The accurate-output region is compact.
Proof. If , its loss is at least the anchor mass, hence at least . The region is then empty.
Suppose . Reflecting coordinates according to , and using invariance of the ball under these reflections, reduces accuracy to
Let have independent standard Gaussian coordinates, and let be independent with , . Then
is uniform on B. Indeed, Gaussian rotational invariance gives a uniform direction, and the radial distribution of uniform volume on B is . The event G = 0 has probability zero.
Put
If and is accurate, then . Exponential Markov with parameter , followed by independence of the coordinates, gives
(7)
Here the Gaussian integral is obtained by rescaling the standard Gaussian density. The last inequality follows from
For , divide the final expression in (7) by . The resulting ratio is at most
Now
and
Therefore
It remains to handle . For ,
If both and are accurate, then . If denotes the accurate region, symmetry gives
For , this yields . For ,
The nontrivial rational comparison is
Finally, the loss is continuous in t. Each coordinate contribution is a squared positive or negative part, and the anchor contribution is continuous. Thus E is closed in compact B, and hence compact. □
Lemma 3'. High-probability output cells. Fix a finite-output experiment indexed by , a learner satisfying (1) for every parameter, and a threshold . For a seed , define
and
Suppose every fixed-seed output-event probability is L-Lipschitz in t, where L > 0. Then the cells are compact and pairwise disjoint, and distinct cells have distance at least
For the family , define
and
Then
Proof. There are at most Boolean output functions on , including improper outputs. Lipschitz continuity makes each cell closed in , hence compact. Two output probabilities cannot both exceed , so the cells are disjoint.
If , , and , then
Therefore
For a fixed , the collision probability of two independent output draws is . Since
replicability implies
On , one has . Since is continuous in and measurable in (Section 2.1), it is jointly measurable, so expectations over and integrals over may be interchanged by Tonelli's theorem. Integrating over proves the first inequality in (9).
If and is inaccurate at , then the fixed-seed probability is at least . More precisely, disjointness of the cells gives
Integrating over and using PAC accuracy proves the second inequality. Both conclusions are averages over seeds, not pointwise assertions about each seed. □
Lemma 4'. Packing with exceptional large cells. Let , , and . Let a finite collection of compact subsets be pairwise separated by distance at least 2a. Let be the uncovered normalized volume (the cells are disjoint because ). Let be the total normalized volume of cells satisfying
Then
Proof. Zero-volume cells do not affect the volume sums and may be omitted. For every remaining cell, set
These open neighborhoods are disjoint: membership in two of them would give two cell points at distance strictly less than 2a. They are contained in .
For , the compact-set Brunn–Minkowski inequality [Gardner02] (proved in Appendix A) yields
As , the sets increase to . Continuity from below therefore gives
Every cell has normalized volume at most one, so its expansion factor is at least . A cell with volume at most has expansion factor at least . Consequently,
Rearranging proves the first inequality in (10). The second follows from
and Bernoulli's inequality. ☐
Proof of Theorem B: exclusion of . A zero-sample output depends only on the seed. Lemma 2' implies that its average accuracy probability, averaged over uniform and the seed, is at most
This contradicts accuracy for every . Hence .
Proof of . Choose . Intersect each cell with its accurate region:
These are compact, and their total normalized volume is . By Lemma 3' and Fubini's theorem (joint measurability of was noted in the proof of Lemma 3'), some seed satisfies
Each has volume at most . By Lemmas 1' and 3', distinct cells are separated by at least
Applying the neighborhood argument from Lemma 4' to the accurate cells gives
Dividing by and using Bernoulli,
Thus
(12)
The last step uses . No upper bound on has been assumed.
The parameter range gives
Squaring (12) proves , including
Proof of . Now choose
The cell separation is at least
Lemma 3' gives
Call a cell large if its normalized volume exceeds . By Lemma 2', the accurate fraction of a large cell is at most
Thus at least 1/97 of its volume is inaccurate. The total volume of large cells is therefore at most .
Let be the total volume of the remaining small cells. Then
Apply Lemma 4' separately for each seed and then take expectations. Since ,
It follows that
The middle line uses , and the last uses .
Squaring proves , because
This completes the proof of Theorem B. □
No relation between and was assumed. In fact the bound itself yields , because
4.2 The finite-class Gibbs upper bound
Lemma 5. Public rejection-sampling coupling. Let P, Q be probability distributions on a finite set H of size m. Use a common sequence of independent proposals
The P-sampler accepts the first proposal with , and the Q-sampler uses . If no proposal is ever accepted (a null event), the sampler outputs a fixed default element of ; for the ball sampler of Theorem D the default is the point , so that the output is the all-zero function.
Each output has the required marginal distribution, and
The same guarantee applies to uniform distributions on equal-positive-measure sets contained in a common finite-measure proposal space.
Proof. The probability that one proposal is accepted by the P-sampler and has value h is . The total acceptance probability is 1/m, so the first accepted value has law P. The sampler terminates almost surely. The same holds for Q.
Write . For one proposal, the acceptance intersection and union have probabilities
respectively. The first proposal in the union lies in the intersection with probability
On this event, both samplers accept the same proposal. Therefore disagreement is at most .
This is an upper bound, not an equality: even after a proposal accepted by only one sampler, the eventual output values can still coincide.
For equal-measure sets, replace the two acceptance regions in by the two sets themselves. The same intersection-over-union calculation applies. □
Proof of Theorem C. Take n as in (C), and define
where and is the sum of the unnormalized weights. Output a sample from using Lemma 5 with public randomness.
The sample-size choice ensures
The learner is proper and does not use the unknown distribution.
Accuracy. Realizability supplies a hypothesis with zero sample loss almost surely, so . For any with ,
Consequently,
(17)
using for .
An empirical-risk bound. Let , so that by (16) and . Let , and similarly define . The Gibbs entropy identity is
Since ,
Leave-one-out control with the same . Let contain examples, and define using the same coefficient as in (16), not . For an additional example , let . Then
Thus, for every ,
Average over independent . On the left, is a fresh example for the sample ; on the right, exchangeability identifies the expected loss on the distinguished training example with expected empirical risk. Therefore
The KL identity. For independent samples ,
Taking expectations, the two log-partition terms cancel. Independence turns the cross-sample risk into population risk. Hence
(19)
The last inequality holds for . For example, convexity on gives , and one may take .
This expected KL-generalization identity has precedents in [WLF16]; it is not being claimed as a new identity.
Replicability. For affinity b, Jensen's inequality gives
Indeed,
Together with TV ≤ H, Lemma 5, and Jensen,
(20)
This proves Theorem C. ☐
4.3 The Poisson–ball upper bound for
We provide the Poisson estimates and the ball-translation estimate before analyzing the algorithm.
Lemma P1. Poisson splitting. For every integer , every , and every probability vector on , let . Draw, independently of , i.i.d. points from , and let be their counts. Then the are independent and
In particular, implies almost surely.
Proof. For ,
(21)
This is the product of the Poisson probability generating functions. The zero-mean assertion follows directly. □
Lemma P2. Scalar square-root Poisson estimates. Let , where , and put
If , then almost surely. If , then
For every and ,
Proof. The case is immediate; at , the tail bound is also valid. For ,
Since
Define the Poisson rate function
With ,
The expression remains valid at under .
The moment generating function
and exponential Markov imply
and
For , choose in both cases ( for the upper tail; for the lower tail, where ; follows by a limit, or directly from .
Apply these bounds at
and, when , at
When , the lower branch is empty. Thus
Finally, tail integration gives
(23)
□
Lemma P3. Vector error and truncation. Let , let be an integer, let be a probability vector, and let . In the untruncated Poisson experiment, define
Then, for every ,
and
Proof. For ,
A zero contributes zero almost surely. Lemma P2 gives the expectation bound. Independence from Lemma P1 gives
Exponential Markov proves the stated error tail.
For truncation, exponential Markov with parameter yields
The elementary inequality
follows by differentiation. It gives , proving the final bound.
Lemma 6. Total variation under translation of a ball. For every integer , every , and every , let . Then
Proof. Rotate so that the translation is parallel to the first coordinate. On each perpendicular slice, the two intervals have the same length and are translated by b. The volume lost from one interval is at most b. Integrating over the perpendicular -ball gives lost volume at most
For equal-volume uniform laws, total variation is the lost volume divided by , proving the first inequality.
Slicing the unit ball gives
For , on , Bernoulli's inequality gives
Therefore the integral is at least . For , the ratio is . For , it is , and the required inequality is immediate.
The algorithm. Take n as in . The public seed first generates
independently of the public candidate sequence described below.
If , output the all-zero function. Otherwise read the first examples. Let be the count of point . If , let be the label of the first occurrence of among the examples read (under realizability all occurrences carry the same label almost surely) and set
if , set .
Put
Generate a public sequence of uniform candidates from
Accept the first candidate Y in , and output
with the displayed fixed convention at zero.
When ,
so the acceptance ball is contained in the proposal ball. The accepted point is uniform on , and acceptance occurs almost surely. Since every Boolean function on [d] belongs to , the learner is proper.
Accuracy. Fix any unknown marginal p and any target . Let
If , the signs of and disagree, allowing a zero endpoint, and
The case is trivial. Summing gives
Realizability also gives the identity
including unseen coordinates, where both sides are zero.
Analyze an infinite i.i.d. sample stream so that the untruncated estimator is defined even when . The actual algorithm never reads more than examples. On , its estimator equals .
The sample-size choice and Lemma P3 ensure
They also ensure
because and
Outside these two bad events,
Equation (27) proves accuracy.
Strict replicability. Run the algorithm on two independent sample streams using the same public seed. In particular, the two runs share . On , both output the all-zero function.
Let denote the two untruncated estimators. Conditional on and the two samples, Lemmas 5 and 6 apply to the two equal-volume acceptance balls, because the candidate sequence is independent of and the samples. Equality of accepted points implies equality of the whole output functions. Therefore
The count vectors are not asserted to be independent across the two runs: they share . Independence is unnecessary. The triangle inequality and the marginal second-moment bounds give
Consequently,
This proves
4.4 The confidence lower bound
Lemma 7. Confidence cost for arbitrary learners. For every integer , every , and every , every randomized, possibly improper learner that satisfies the accuracy condition (the first line of (1)) for all distributions realizable by must satisfy
The same worst-case lower bound holds in the known-marginal interface. No replicability assumption is needed.
Proof. Use two points of masses and , with all other points having mass zero. Consider two targets that agree on the common point and have opposite labels on the rare point.
The event that the rare point is unseen has probability . Conditional on this event, the labeled sample distribution is identical for the two targets. Every Boolean output has the wrong rare-point label for at least one target, and that error has mass . Summing the two failure probabilities gives
Thus
since
for . The argument uses a single fixed marginal, so it also applies when that marginal is known.
4.5 The known-marginal characterization
Upper bound in Proposition G. Fix any known marginal p, and define
For , output its true label if it has been observed, and output zero otherwise. Outside , output zero.
If both runs cover T, the resulting whole functions coincide. Hence
The total mass outside is at most . Inaccuracy therefore implies that the unseen points of have total mass greater than . For every subset of such mass, the probability that all its points are unseen is at most . A union bound over at most subsets gives
The stated sample-size condition makes (30) at most and (31) at most .
Lower bound in Proposition G. Fix the explicit marginal in the proposition. Set and . The anchor has label zero, and the rare labels form a vector
Let be any randomized, possibly improper learner, given p, that is valid for every target.
For each seed r and target H, choose a modal output function , breaking ties in a fixed order. Replicability implies
An accurate output has at most erroneous rare labels, since each rare point has mass . Hence, for every sample , , and the indicator is at most . Taking expectations over and then over , and using accuracy and the replicability bound above, gives
where Hamming distance here counts only rare coordinates.
For a function-valued map g on the cube, define its total edge influence by
If both endpoints of an i-edge predict their respective i-th target bit correctly, their output functions differ. Consequently,
(33)
Let
Given the sample positions, independently select each unseen rare coordinate with probability , obtaining a set J. The additional selection coins are independent of H, r, and the sample positions. Define
No sampled label changes, because J contains only unseen coordinates. Moreover, conditional on the positions and J, the map is a bijection of the cube. Hence
The learner receives exactly the same labeled sample under H and . Comparing its common output to the two modes gives
For each i,
(35)
Indeed, a rare coordinate is unseen with probability q. For distinct rare coordinates, the probability both are unseen is
where (as and ) gives . When , there are no pair terms. Finally, , which proves the last line of (35).
The set J is independent of . Keeping only singleton J events in (34), and using (33), yields
Since , the minimum cannot equal 1/2. Therefore
Because (see above),
Thus
Also , and , so
Hence
This argument also excludes n = 0: then q = 1, making (36) impossible.
Combining (37) with Lemma 7 proves the lower half of (G). The two lower bounds may use different explicit marginals; this is legitimate because takes a supremum over marginals. The upper bound proves the other half, with absolute constants.
For a point-mass marginal, one sample reveals the only relevant target label; all other output labels can be fixed to zero. Thus the lower bound cannot be interpreted as holding for every marginal. □
4.6 The VC-dimension reduction
Proof of Corollary E. Choose a shattered set of v points. Designate one point as an anchor, and identify the other v - 1 points with the non-anchor coordinates of .
For every parameter t, place the corresponding anchored distribution entirely on this shattered set. Shattering ensures realizability by H. Restrict the learner's output function to the shattered set. Its loss is unchanged because the distribution is supported there. Moreover, equality of the entire original output functions implies equality of their restrictions, so restriction can only increase collision probability.
The restricted learner is therefore a randomized, possibly improper learner to which Theorem B applies with dimension . This gives (E).
At the fixed parameters,
which yields the stated fixed-parameter bound. ☐
4.7 The product-marginal reduction
Proof of Proposition F. Let be any Boolean output function on . For each block , round the pair
to whichever of the two complementary parity patterns
has fewer disagreements with it. Break ties by a fixed rule, and let be the resulting block bit. If the true block bit is , a wrong rounded bit requires block error at least 1/2. Hence
Writing for the labeled product distribution and for its collapsed anchored distribution, we obtain
Thus product accuracy at threshold implies rounded accuracy at threshold . Whole-function equality is preserved by this deterministic rounding.
We apply the proof of Theorem B directly to the product input experiment. No simulation using shared random block bits is required.
Indeed, is obtained by splitting each labeled atom of into two distinguishable atoms of half its probability. Consequently,
The Hellinger calculation and sample-experiment Lipschitz bound are therefore unchanged by duplication: by (5), with , which is the constant of Lemma 1' at accuracy .
With , one has and . The rounded outputs have the accurate-region volume bound from Lemma 2' at threshold . Their high-probability cells satisfy Lemma 3' with input experiment : its proof uses only replicability of the rounded output under the input law and the accuracy bound from (38). Lemma 4' applies unchanged. The proof therefore gives
At the fixed parameters,
This proves Proposition F. □
4.8 Completion of Theorems A and D
For Theorem A, take . The anchored class has size , so Theorem B gives
Theorem C, applied to every class of size , together with the fact that the right side of (C) is nondecreasing in m, gives
Singleton classes need no samples. Since for , this proves Theorem A.
For Theorem D, the upper bound was proved in Section 4.3. The inclusion
after relabeling, together with Theorem B, gives
Lemma 7 supplies the confidence lower bound. This proves the displayed two-sided inequality (D).
For , . In the stated confidence range, is within an absolute constant factor of . The maximum of two nonnegative terms is within a factor two of their sum. The upper-bound term is absorbed by an absolute multiple of , and the ceiling is harmless. Thus the asserted characterization holds uniformly.
The restriction in the lower characterization matters. At the fixed parameters, : one sample reveals the only label, while a zero-sample learner cannot be accurate for both targets with failure below . □
5 Related work
5.1 The finite-class exponent and the scope of the LMPS bounds
Larsen, Mathiasen, Pabbaraju, and Svendsen (2026), arXiv:2602.19552v1 [LMPS26], prove in Theorem 1.2 a uniform-marginal hard-instance lower bound, whose explicit form (established in the proof of Theorem 1.2, their Section 3) reads
The source theorem has construction parameter and . Their PAC definition is for an unknown distribution, so its quantifier is compatible with the unknown-marginal formulation used here.
Their Theorem 1.3 gives
only for their uniform-marginal instance. It therefore does not contradict Theorem A or Theorem B. Our hard distributions vary their marginals, and the learner must be the same throughout that family.
Theorem A settles the exponent under this unknown-marginal quantifier. It does not settle the corresponding worst-case question for arbitrary finite classes under a fixed-known-marginal or uniform-marginal interface.
5.2 General upper bounds and confidence dependence
For realizable finite-class learning with an unknown distribution, BGHILPSS (2023), Theorem 5.13 [BGHILPSS23], gives
Its (intermediate) Algorithm 10, amplified in the proof of Theorem 5.13, uses sample access and is valid for unknown distributions. With and , this already yields the quadratic class-size exponent at fixed parameters.
BBEGH (2026), Corollary 6 [BBEGH26], gives
Thus an additive confidence term for all finite classes is already available.
Theorem C gives the self-contained bound
It removes the displayed factor, but its confidence dependence is multiplicative. It should not be described as uniformly improving the confidence dependence of [BBEGH26].
On , the BGHILPSS23 bound specializes to
Theorem D instead matches the dependence and has the optimal additive confidence term, without a logarithmic gap in its stated domain.
For comparison, the standard worst-case non-replicable realizable finite-class rate is as follows. For and , the worst-case non-replicable realizable sample complexity over classes of size at most , allowing improper learners, is
This is a worst-case statement over classes, not a lower bound for every finite class, and the small-parameter restriction is necessary (for , say, a constant classifier chosen by empirical majority succeeds with samples independently of ). The upper bound is the union bound for consistent empirical risk minimization; the dimension part of the lower bound follows by planting uniformly random rare labels of total mass (with samples the expected loss on the rare points is at least , whereas a PAC guarantee forces the expected loss on the rare points to be at most ); the confidence part is Lemma 7. In the VC-dimension form , the upper bound is due to Hanneke [Han16, Theorem 2] and the matching lower bound is classical [EHKV89]; the finite-class worst-case form above is proved directly and does not depend on either.
5.3 Realizable versus agnostic and weaker replication notions
BGHILPSS23, Theorem 5.6, establishes a lower bound for agnostic learning with VC dimension d. Its reduction uses noisy labels and does not establish the realizable result in Corollary E.
HIY (2025), arXiv:2510.20200v2, dated 2026-04-07 [HIY25v2], gives in Theorem 1.5 the pointwise realizable lower bound
The factor is part of that result. Their Theorem 1.10, whose hard instance is agnostic, is instead a semi-replicable agnostic lower bound
obtained through sign-one-way-marginals and noisy labels. Neither statement is the strict whole-function, realizable, unknown-marginal quadratic lower bound proved here.
To our knowledge, no quadratic VC-dimension lower bound was previously available in that precise realizable model; Corollary E supplies one. This statement is not intended as a claim about all notions of replicability or about the agnostic setting.
5.4 Geometric methods and the stability parameter
HIKLY (2024), arXiv:2406.02628, FOCS 2024 [HIKLY24], develops the connection between replicability and isoperimetric tilings; the overall geometric principle used in Theorem B (fixed-seed high-probability output cells, a Lipschitz bound on output probabilities in the parameter, and a volume/isoperimetric argument) follows their framework (see their Section 1.2.1). Their Theorem 4.41 concerns mean estimation and includes the condition . Our argument does not assume that relation. (Their Theorem 4.43 removes the assumption for the non-adaptive N-coin problem by a more involved argument.)
Their Theorem 3.7 concerns the coin problem: for and , it gives lower bounds of order
for the expected and the worst-case sample complexity, respectively. These sampling conventions must not be interchanged; our definition (1) fixes the sample size, so the worst-case form is the relevant one. The square inverse-stability dependence therefore has one-dimensional antecedents; we do not claim it as a new phenomenon by itself.
The contribution of Theorem B is the joint obstruction for an explicit realizable PAC family with unknown marginals, allowing randomized improper learners. Independently, the pointwise-replicability lower bound of HIY25v2, Theorem 1.5, already implies that strictly replicable realizable learning of a VC class of dimension requires samples, with fixed at and accuracy parameter in their statement (pointwise agreement is implied by agreement of the whole function), i.e. the necessity was known at the linear-in-d level; Theorem B adds the quadratic dependence on with explicit constants. Methodologically, Theorem B is a transfer of the HIKLY24 isoperimetric framework to an unknown-marginal realizable family: the square-mass parametrization makes the marginal, rather than the labels, vary continuously, and the accuracy-volume calculation (Lemma 2') is the learning-specific ingredient. A closely related geometric principle appears in a Zenodo preprint of Dewasurendra (2026) [Zenodo-DE26] on replicable distribution estimation. Its Proposition 2 is a general average-distortion partition principle for statistical experiments with a general loss: canonical output cells are allowed to be inaccurate on part of their volume, and the argument controls a total distortion budget rather than the diameter of every cell. The step in our proof of in which inaccurate cells are charged to a total inaccuracy budget instead of being removed is of the same nature, and specializing that principle to the PAC failure indicator, combined with Lemmas 1' and 2' and a relative isoperimetric estimate inside the ball, recovers a bound of the same order as Theorem B for all sufficiently large . What the present paper adds is (i) a realizable PAC family whose supports change with the parameter while the square-root probabilities remain Hellinger-Lipschitz (Lemma 1'), (ii) the weighted-sign accuracy-volume bound of Lemma 2', and (iii) the ball-packing Lemma 4', which avoids the torus and coarea formulas and yields explicit constants in every dimension, including small . The present argument was developed before the author became aware of [Zenodo-DE26].
5.5 Attribution of the Gibbs upper-bound ingredients
Kalavasis, Karbasi, Moran, and Velegkas (2023), ICML 2023 [KKMV23], provide a correlated-sampling conversion from TV-indistinguishability to replicability, with guarantee . For finite H, the uniform distribution is a public dominating measure, so this framework applies to Theorem C.
HIY25v2, Appendix Algorithm 9, already combines the exponential mechanism with correlated sampling. Wang, Lei, and Fienberg (2016), arXiv:1605.02277 [WLF16], provide precedents for Gibbs posterior KL-generalization identities in Theorem 4, Remarks 1–2, and Lemma 6 of that paper.
Accordingly, Lemma 5, the exponential-mechanism route, and the core identity in (19) are not asserted as new. Theorem C is a self-contained consequence with the explicit sample bound displayed in (C).
5.6 Other interfaces and lifting results
Kalavasis, Karbasi, Velegkas, and Zhou (2024), arXiv:2405.15599, NeurIPS 2024 [KKVZ24], Theorem 3.2, considers restriction-closed classes on the Boolean hypercube equipped with a polynomial-time replicable learner for the uniform distribution. It lifts such a learner to marginals representable by depth- decision trees, with sample bound
The monotone-marginal case uses ordinary sample access; the general non-monotone case additionally uses conditional samples. Thus this is not a lossless, sample-only lifting theorem for arbitrary unknown marginals, and it cannot transfer the uniform-marginal upper bound of [LMPS26, Theorem 1.3] to the model considered here.
Related work also includes Chase, Moran, and Yehudayoff (2023), arXiv:2304.03757v2 [CMY23]; Dixon, Pavan, Vander Woude, and Vinodchandran (2023), arXiv:2304.02240 [Dixon23]; Impagliazzo, Lei, Pitassi, and Sorrell (2022), arXiv:2201.08430, STOC 2022 [ILPS22]; Esfandiari, Karbasi, Mirrokni, Velegkas, and Zhou (2023), arXiv:2302.10359 [Esfandiari23]; and Hopkins and Moran (2025), arXiv:2502.08007 [Hopkins–Moran25]. ILPS22 includes one-dimensional random-offset rounding and inverse-square stability dependence for statistical queries. Esfandiari et al., Theorem D.4, treats replicable heavy hitters under . These statements concern related tools or interfaces, rather than the realizable quadratic lower bound established here.
Precision of external comparisons. All bounds proved in this paper are explicit and hide no logarithmic factor. The tilded external comparisons above reproduce the cited statements at their stated precision; no suppressed factor of an external statement is used in any proof here.
6 Discussion
6.1 What has been resolved
Under the requirement that one learner work for every unknown realizable distribution, including every unknown marginal, the finite-class exponent is exactly two at the fixed parameters of Theorem A. The lower bound holds for arbitrary randomized, possibly improper learners, whereas the matching upper bound can be achieved properly.
For the full Boolean class , Theorem D gives the complete parameter dependence
for , , and .
6.2 Why knowing the marginal changes the problem
Proposition G replaces the unknown-marginal dependence by
in the same parameter range.
For , the quadratic obstruction at fixed parameters is therefore caused by the unknown-marginal interface. The geometric lower bound couples nearby distributions whose marginals change with the parameter. A learner given the marginal may itself change with that marginal, so the fixed-algorithm Lipschitz argument no longer applies across those parameters.
This does not determine the worst-case finite-class exponent under a fixed-known-marginal or uniform-marginal formulation. The 3/2-versus-2 question in that distinct formulation is not resolved by the present results.
6.3 What remains for arbitrary finite classes
For arbitrary finite , it is not resolved by the present results whether one can achieve a general bound of order
without additional logarithmic overheads.
This is a question about simultaneous optimal dependence, not about whether an additive confidence term exists: BBEGH26 already supplies such a term with the additional factors stated in Section 5.2. Theorem C and the optimal construction do not by themselves yield the displayed bound for every finite class.
6.4 Computational efficiency
The present results concern sample complexity. The Gibbs algorithm may require enumerating , and the ball algorithm’s rejection sampler may require exponentially many proposals. Efficient algorithms achieving the same statistical guarantees remain outside the results proved here.
Appendix A. A self-contained compact-set Brunn–Minkowski proof
We prove the form used in Lemma 4', without relying on an external Brunn–Minkowski citation. The underlying real-analysis inputs are Tonelli's theorem, differentiation of monotone functions, and the Lebesgue differentiation theorem.
For nonempty compact , we will show
If one set has zero volume, a translate of the other is contained in the sum, which proves the assertion; if both have zero volume, it is immediate. Thus the substantive case has positive volumes.
A.1 Prékopa–Leindler for bounded compactly supported functions
Let . Let be bounded Borel functions with compact support, and let be Borel. We prove
(40)
If either integral on the right is zero, the conclusion is immediate.
We begin in dimension one.
A.2 The transport inequality: interval indicators first
Let be bounded and strictly increasing. Extend its almost-everywhere derivative by zero on the exceptional set.
First take an interval . The preimage
is an interval (possibly empty or degenerate). For a monotone function, the integral of its derivative over an interval is at most its total increase there. Hence
The derivative-versus-increase inequality can also be obtained by applying Fatou's lemma to nonnegative forward difference quotients on compact subintervals of J, then approaching its endpoints.
Define the measure
The interval calculation shows . Since an open subset of is a countable disjoint union of intervals, for every open . Outer regularity of Lebesgue measure then gives for every Borel . Approximation by nonnegative simple functions proves
(h \geq 0 Borel).
(41)
Only an inequality is asserted. Jumps or singular components of Z do not invalidate it; they are precisely why an unjustified equality would be unsafe.
A.3 Generalized quantiles and the one-dimensional proof
Write
and let
These distribution functions are continuous. Define their generalized quantiles by
Continuity gives
In particular, the quantiles are strictly increasing, though they may have jumps across gaps in the supports. Moreover,
so sends uniform measure on to density . The corresponding statement holds for .
By the Lebesgue differentiation theorem, almost everywhere. Under the pushforward law , almost every is such a differentiation point and has .
At those points the usual inverse-difference-quotient argument is valid: positive derivative makes the inverse continuous locally, and
gives
Set
This is bounded and strictly increasing. Apply (41), the hypothesis in (40), and (42):
(43)
The last step is weighted arithmetic–geometric mean, applied where the two density values are finite and positive; the exceptional set has measure zero. This elementary inequality follows, for example, from .
This proves (40) in dimension one without assuming that the densities are everywhere positive or that the quantiles are absolutely continuous.
A.4 Induction on dimension
Assume (40) holds in dimension . Write points as , and define
The first two functions are bounded Borel functions with compact support.
For fixed , apply the one-dimensional result to the corresponding slices and to . The pointwise hypothesis in (40) gives
Slices of zero integral cause no difficulty, since the right side is then zero.
Apply the -dimensional result to , and use Tonelli. This proves (40) in dimension d.
A.5 From Prékopa–Leindler to Brunn–Minkowski
For compact K, L, apply (40) to
The Minkowski combination is compact, so its indicator is Borel. We obtain
For positive volumes, let
The scaled sets and have volume one, and
The preceding inequality gives volume at least one for this set. Rescaling proves
In particular, for a nonempty compact set and ,
which is exactly the compact-set inequality used in Lemma 4'.
Appendix B. Exact arithmetic checks
The following are exact rational calculations, not floating-point estimates.
| Check | Exact value or comparison |
|---|---|
| 305809/2408704000000 | |
| 4778265625/37636 | |
| 4747629921/37636 > 0 | |
| 4725575225/75272 > 0 | |
| Fixed-parameter | 1/900 |
| Maximum permitted | 1/90 |
| 13/18 | |
| 169/18662400 | |
| 103/36288 > 0 | |
| 759/32768 > 0 | |
| 488/425 | |
| 243/244 < 1 | |
| 6315548551/152587890625 > 0 | |
| 96/97 | |
| 3/97 | |
| Minimum | 13/15 |
| Minimum | 553/250 |
| 6208 | |
| 305809/150544 > 2 | |
| Squared ball-coupling coefficient | |
| Minimum edge-influence fraction | 373/500 |
| 369/2000 > 0 | |
| 238/373 > 0 |
These calculations validate the stated arithmetic. The dimension-uniform and parameter-uniform conclusions follow from the analytic proofs, not from numerical enumeration.
References
• [LMPS26] Kasper Green Larsen, Markus Engelund Mathiasen, Chirag Pabbaraju, Clement Svendsen. The Sample Complexity of Replicable Realizable PAC Learning. STOC 2026 (DOI 10.1145/3798129.3800910). arXiv:2602.19552v1.
• [BGHILPSS23] Mark Bun, Marco Gaboardi, Max Hopkins, Russell Impagliazzo, Rex Lei, Toniann Pitassi, Satchit Sivakumar, Jessica Sorrell. Stability is Stable: Connections between Replicability, Privacy, and Adaptive Generalization. STOC 2023. arXiv:2303.12921v2. (Theorems 5.6 and 5.13; Algorithm 10.)
• [BBEGH26] Kiarash Banihashem, MohammadHossein Bateni, Hossein Esfandiari, Samira Goudarzi, MohammadTaghi Hajiaghayi. Replicable Composition. arXiv:2604.10423v1, 2026. (Corollary 6.)
• [HIKLY24] Max Hopkins, Russell Impagliazzo, Daniel Kane, Sihan Liu, Christopher Ye. Replicability in High Dimensional Statistics. FOCS 2024. arXiv:2406.02628. (Theorems 3.7, 4.41 and 4.43.)
• [HIY25v2] Max Hopkins, Russell Impagliazzo, Christopher Ye. Approximate Replicability in Learning. arXiv:2510.20200v2 (version dated 2026-04-07). (Theorems 1.5 and 1.10; Appendix Algorithm 9.)
• [KKMV23] Alkis Kalavasis, Amin Karbasi, Shay Moran, Grigoris Velegkas. Statistical Indistinguishability of Learning Algorithms. Proceedings of the 40th International Conference on Machine Learning, PMLR 202:15586–15622, 2023.
• [WLF16] Yu-Xiang Wang, Jing Lei, Stephen E. Fienberg. On-Average KL-Privacy and its Equivalence to Generalization for Max-Entropy Mechanisms. arXiv:1605.02277, 2016. (Theorem 4, Remarks 1–2, Lemma 6.)
• [KKVZ24] Alkis Kalavasis, Amin Karbasi, Grigoris Velegkas, Felix Zhou. On the Computational Landscape of Replicable Learning. NeurIPS 2024. arXiv:2405.15599. (Theorem 3.2.)
• [CMY23] Zachary Chase, Shay Moran, Amir Yehudayoff. Replicability and Stability in Learning. arXiv:2304.03757v2.
• [Dixon23] Peter Dixon, A. Pavan, Jason Vander Woude, N. V. Vinodchandran. List and Certificate Complexities in Replicable Learning. arXiv:2304.02240.
• [ILPS22] Russell Impagliazzo, Rex Lei, Toniann Pitassi, Jessica Sorrell. Reproducibility in Learning. STOC 2022. arXiv:2201.08430.
• [Esfandiari23] Hossein Esfandiari, Amin Karbasi, Vahab Mirrokni, Grigoris Velegkas, Felix Zhou. Replicable Clustering. arXiv:2302.10359. (Theorem D.4.)
• [Hopkins–Moran25] Max Hopkins, Shay Moran. The Role of Randomness in Stability. arXiv:2502.08007.
• [EHKV89] Andrzej Ehrenfeucht, David Haussler, Michael Kearns, Leslie Valiant. A general lower bound on the number of examples needed for learning. Information and Computation 82(3):247–261, 1989.
• [Han16] Steve Hanneke. The Optimal Sample Complexity of PAC Learning. Journal of Machine Learning Research 17(38):1–15, 2016. (Theorem 2.)
• [Gardner02] Richard J. Gardner. The Brunn–Minkowski inequality. Bull. Amer. Math. Soc. (N.S.) 39 (2002), 355–405. (Survey; the inequality is stated there for nonempty compact sets. Appendix A supplies a self-contained proof of the version used here.)
• [Zenodo-DE26] Pahan Dewasurendra. The Quadratic Cost of Replicable Distribution Estimation. Zenodo, 10.5281/zenodo.22066273, 2026 (author as given in the deposited PDF; the record creator field lists “Anonymous”; earliest public date 2026-08-13 per the record).