Every binary VC class compresses to O(d² log² d) examples

Near-Quadratic Sample Compression for All VC Classes

Yang Cai, Vineet Gupta, Yanchen Jiang, Christopher Liaw, Aranyak Mehta, Shay Moran, Grigoris Velegkas, Di Wang, Manfred K. Warmuth

cs.LG, cs.AI, cs.DS, math.CO, stat.ML

2026-11-19

Every VC-d class has a sample compression scheme of size O(d² log² d), plus O(d log² d) side bits, so the polynomial conjecture holds.

What problem this solves

VC dimension is the size of the largest set a concept class can shatter. Finite d is binary PAC learnability, and the optimal sample size is on the order of d/ε. Sample compression asks for a shorter explanation: a realizable labeled sample should reduce to k of its own examples plus b side bits, with both quantities depending only on d, not on the sample size m.

The compressor keeps at most k examples and at most b bits. The reconstructor never sees the rest of the sample, but must return a hypothesis that matches every original label. An axis-aligned rectangle is the prototype. Each side is fixed by at most one positive example, so four points rebuild the box. Littlestone and Warmuth showed in 1986 that a bounded scheme of this kind implies PAC generalization, with sample complexity O((k+b)/ε).

Floyd and Warmuth conjectured in 1995 that every class of VC dimension d has a scheme with k = O(d). A weaker form asks only for a polynomial in d. Boosting already kept O(d log m) examples, so the size still grew with m. The first upper bound that depends on d alone is due to Moran and Yehudayoff in 2016, at size 2^{O(d)}. Generalization bounds read off that scheme are exponential in d, far from d/ε. A polynomial upper bound stayed open after that.

Method

The reconstructed hypothesis is a weighted majority of concepts from the class. Unlabeled points choose the voters. Labeled points set the weights.

Fix an arbitrary total order on the class. Both parties know the class, so the order costs no bits. An unlabeled set W groups concepts into cells by how they label W, and each cell is represented by its earliest concept. The Sauer–Shelah–Perles lemma says a VC-d class realizes only about n^d labelings on n points, so the number of cells is at most (|W|+1)^d. The reconstructor rebuilds this pool from W alone, and the vote runs over those representatives.

If some distribution on the pool has pointwise error at most 1/4, majority vote fits the whole sample. The compressor runs multiplicative weights: each representative is an expert, and a mistake shrinks its weight. Each round stores the sample point where the current weights fail most, together with the true label. After O(d log(|W|+1)) rounds the average weights err strictly less than 1/2 at every point. The reconstructor replays those rounds and never needs the low-error distribution.

Cell mass cannot simply be piled onto the representative. Concepts in one cell agree only on W, and the earliest one may predict badly elsewhere.

Start from empty W, with all mass on one concept consistent with the sample, so the error is 0. Each round replaces the distribution while freezing cell masses and letting the pointwise error grow by at most δ. On that polytope, play a zero-sum game: each side draws a concept, and the earlier one wins. The value is 1/2. A symmetric equilibrium, called a maximal lottery, pushes mass toward the front of each cell until the error constraints bind.

Duality turns those tight constraints into a distribution p over sample points. Inside a cell, concepts far apart in quantile order disagree under p with probability proportional to the gap. A cell is concentrated when one concept holds more than half its mass. The symmetric-difference class has VC dimension below 10d, so a (δ/2)-net of size O((d/δ) log(1/δ)) separates that concept from every earlier one and makes it the new representative. If concentrated cells hold at least half the mass, the pool carries more than 1/4 and the construction stops. Otherwise the mass sits in spread cells, where no concept holds half. The quantile blocks at most 3/8 and at least 5/8 each hold more than 1/8. Drawing ⌈2/δ⌉ points from p splits those blocks with probability above 1/2 and raises the Shannon entropy of the cell masses by more than 1/128 bit.

Entropy starts at 0 and is capped by d log₂(|W|+1). Each continuing round adds a constant to the entropy and only O(1/δ) points. The proof takes R = 4096 d ⌈log₂(d+2)⌉ and δ = 1/(16R). If all R rounds increased the entropy, the Sauer cap would break, so some round must stop. That uses O(d² log² d) unlabeled points and O(d log d) labeled points, hence k = O(d² log² d), with b = O(d log² d) side bits.

Results

SchemeExamples keptSide informationDepends on m
Strong conjecture, openO(d)not stated separatelyno
BoostingO(d log m)extrayes
Exponential scheme, 20162^{O(d)}absorbed in the boundno
Theorem 1.1O(d² log² d)O(d log² d) bitsno

O(d log d) of the examples are labeled and used to run the weights. The rest are unlabeled. The same size works in the agnostic case: compress only the subsample on which an empirical-risk minimizer already matches the labels. The predictor then makes no more mistakes on the original sample than that minimizer.

Lower bounds sit near O(d). Some classes need k ≥ d, and side bits cannot replace those examples. With no side bits, k ≥ d/5; together, k+b = Ω(d). No binary class is known to require strictly more than d labeled examples. The unlabeled claim of size exactly d is false: at d = 2 some class needs 3 points.

For multiclass classes with finite graph dimension dG, the upper bound drops from 2^{O(dG)} to O(dG² log² dG) examples and O(dG log² dG) bits. Real-valued classes of pseudo-dimension dP get a near-quadratic approximate compression whose size does not depend on ε.

Cogentic, running on Gemini 4 Carbon, produced the proof on its own. The API cost was about $344. The bound moved from roughly d^{16} through d^6, d^3, and O(d² log³ d) to O(d² log² d). The listed authors rewrote the exposition and take responsibility for correctness.

Why it matters

After 2016, arbitrary VC classes have a compression size that is polynomial in d alone. The weak conjecture is closed. The strong conjecture, k = O(d), is still open. The gap is about a factor d log² d.

Compression implies sample complexity O((k+b)/ε), which here is O(d² log² d / ε). Optimal PAC learning is on the order of d/ε. The exponential scheme gave 2^{O(d)}/ε.

Finding the compression means solving an equilibrium and a linear program over the whole concept class. The paper does not discuss computation. However large the sample gets, the compressed length no longer grows with it.

Cell-mass entropy rises by a constant each round and is capped by Sauer's lemma, so the number of rounds is O(d log d). The unlabeled points dominate the cost. Labels are only there to compute weights.

Limitations

The linear conjecture remains open. The conclusion says the main overhead is the unlabeled points.

Computation is blank. A short message does not give a polynomial-time compressor. A standard training pipeline cannot run this construction.

The paper never compares the new size with boosting at concrete d and m. On the written big-O bounds alone, O(d² log² d) beats O(d log m) only once m is on the order of 2^{d log² d}. The explicit factor 4096 inside R pushes that crossing farther out.

Outside total concepts with a finite label set, learnability does not imply compression whose size is independent of m. When labels are the natural numbers and the DS dimension, a multiclass learnability parameter, equals 1, compression still requires Ω((log m)^{1-o(1)}). Partial concept classes of VC dimension 1 can have no bounded scheme at all. The near-quadratic theorem does not cross those separations.

The constants 1/128, 4096, and symmetric-difference VC dimension 10d are inflated to close inequalities. They are not sharp coefficients. An agent found the argument first, and the published version was rewritten by hand. Correctness sits with the listed authors. The paper reports no external check.

Terms

Source

What people are saying

Related papers

All paper explainers