arXiv:2610.26944stat.MLOct 2026

Manuscript Offprint

arXiv:2610.26944

Quadratic Sample Complexity for Strictly Replicable Realizable Learning with Unknown Marginals

Guangjian Zhang

Abstract

Under the quantifier ∃A∀D\exists A \forall D, 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 ε=δ=ρ=10−4\varepsilon = \delta = \rho = 10^{-4}, the worst case over ∣H∣≤M|H| \leq M is Θ((log⁡M)2)\Theta((\log M)^2), without iterated logarithms. For d≥1d \geq 1, 0<ε≤1/160 < \varepsilon \leq 1/16, and 0<δ,ρ≤10−30 < \delta, \rho \leq 10^{-3}, every randomized, possibly improper learner valid throughout an explicit anchored realizable family requires Ω(d2/(ερ2))\Omega(d^2 / (\varepsilon \rho^2)) samples. For the full Boolean class PdP_d, d≥2d \geq 2, in the same parameter range, we prove the matching characterization Θ(d2/(ερ2)+ε−1log⁡(1/δ))\Theta(d^2 / (\varepsilon \rho^2) + \varepsilon^{-1} \log(1/\delta)) 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 PdP_d, 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:

∃A ∀D.\exists A\ \forall D.

The unknown information includes the marginal distribution on the instance space. This is different from allowing a separate learner ApA_{p} 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.

†^{\dagger}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 ε=δ=ρ=10−4\varepsilon = \delta = \rho = 10^{-4}, the worst-case sample complexity among classes of size at most M is

Θ((log⁡M)2),\Theta((\log M)^{2}),

with absolute constants and no log⁡log⁡M\log \log M 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 ρ\rho, rather than a combination of ρ\rho and δ\delta, 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

Ω(d2ερ2)\Omega\left(\frac{d^{2}}{\varepsilon\rho^{2}}\right)

throughout the parameter domain of Theorem B, without a condition relating δ\delta and ρ\rho.

For the full Boolean class on dd 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 ρ−2\rho^{-2}, 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 PdP_d is simultaneous matching of the d,ε,ρ,δd, \varepsilon, \rho, \delta dependence without a remaining logarithmic gap, not the existence of an additive confidence term by itself.