Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sample Compression Scheme

Updated 24 November 2026
  • A sample compression scheme is a mechanism that replaces a large labeled sample with a smaller representation used to recover the original sample consistently. Key variants include proper, improper and stable schemes.
  • Sample compression schemes are used in hypothesis reconstruction, PAC-learning, and generalization guarantees under appropriate measurability conditions.
  • Compression size measures the retained information, with the central unresolved problem being whether binary concept classes of VC dimension 'd' admit a scheme of size O(d).
  • Unresolved Floyd-Warmuth sample ecompdrain.

Sample compression schemes are formal mechanisms for replacing a finite labeled sample by a smaller representation—typically a subsample together with auxiliary information—from which a hypothesis can be reconstructed that agrees with the labels of the entire original sample. They were introduced by Littlestone and Warmuth as an abstraction of the structure underlying learning algorithms. Compression size measures the retained information rather than the original sample size, and bounded compression yields PAC-learning and generalization guarantees under appropriate measurability conditions. The central unresolved problem is whether every binary concept class of VC dimension dd admits a scheme of size O(d)O(d).

1. Formal framework and variants

A concept space is a pair (X,C)(X,\mathcal C), where XX is a domain and C⊆2X\mathcal C\subseteq 2^X is a family of concepts. A finite labeled sample is a finite partial function

f:D→{0,1},D∈[X]<∞,f:D\to\{0,1\},\qquad D\in[X]^{<\infty},

that is the restriction of some concept C∈CC\in\mathcal C. A hypothesis H⊆XH\subseteq X is consistent with ff when f⊑Hf\sqsubseteq H, meaning that HH agrees with every label in the sample.

For d∈Nd\in\mathbb N, an unlabelled sample compression scheme of size dd is a map

H:[X]≤d→2XH:[X]^{\le d}\to 2^X

such that every finite labeled sample has a compression set AA consisting of at most dd domain points from the sample and

f⊑H(A).f\sqsubseteq H(A).

The compression map uses the labels to choose AA, but the reconstruction map receives only the selected points. A labelled scheme instead reconstructs from a compressed labeled restriction. In the standard formulation for binary classes, a compression map and reconstruction map satisfy

κ(Y,y)=((Z,z),i),Z⊆Y,z=y∣Z,\kappa(Y,y)=((Z,z),i),\qquad Z\subseteq Y,\quad z=y|_Z,

where ii is auxiliary side information and the reconstruction hypothesis agrees with yy on all of YY (Moran et al., 2015).

A scheme is proper if reconstruction returns a member of the original concept class. It is improper if the reconstruction hypothesis need only be a consistent labeling. Properness is a substantive additional requirement: many general existence theorems produce consistent hypotheses that are not concepts in the original class. Schemes may also be stable, meaning that deleting sample points outside the compressed set does not change the compression output, or majority-vote schemes, whose reconstructions are finite majority votes of concepts from the class (Attias et al., 2024).

The framework extends beyond ordinary binary classification. Distributional compression schemes reconstruct probability distributions from a subsequence of observations and bits; robust versions permit samples drawn from distributions near a target model (Ashtiani et al., 2017). For real-valued regression, compression may require uniform approximate reconstruction,

max⁡i∣h^(xi)−h∗(xi)∣≤ε,\max_i|\widehat h(x_i)-h^*(x_i)|\le \varepsilon,

or approximate empirical-loss optimality (Hanneke et al., 2018, Attias et al., 2018). High-arity schemes compress samples whose labels are arrays indexed by tuples rather than independent point labels (Coregliano et al., 12 May 2026).

2. Combinatorial foundations and compactness

For a finite set A⊆XA\subseteq X, the trace of C\mathcal C on AA is

C⊓A={C∩A:C∈C}.\mathcal C\sqcap A=\{C\cap A:C\in\mathcal C\}.

The VC dimension is the maximum cardinality of a set shattered by C\mathcal C. An unlabelled compression scheme of size dd implies

VC⁡(C)≤d,\operatorname{VC}(\mathcal C)\le d,

because a shattered set of size d+1d+1 has 2d+12^{d+1} labelings but only

(d+1≤d)<2d+1\binom{d+1}{\le d}<2^{d+1}

possible compression subsets. For labelled schemes, the corresponding general background bound is VC⁡(C)≤5d\operatorname{VC}(\mathcal C)\le 5d.

The Ben-David–Litman compactness theorem states that a concept space has a sample compression scheme of size dd if and only if every finite subspace has one of size dd. The original proof uses compactness from predicate logic. An alternative proof constructs finite schemes

HB:[B]≤d→2BH_B:[B]^{\le d}\to 2^B

and combines them using an ultrafilter on the finite subsets of XX. For each compressed set AA and point xx, the global value H(A)(x)H(A)(x) is defined as the ultralimit of the finite-stage values HB(A)(x)H_B(A)(x).

The finite-dimensional consistency argument is straightforward: for a finite sample with domain DD, each finite B⊇DB\supseteq D supplies some compression set in [D]≤d[D]^{\le d}. Since [D]≤d[D]^{\le d} is finite, one compression set occurs on an ultrafilter-large collection of finite spaces and yields a globally consistent hypothesis. Thus finite compressibility implies global compressibility as a combinatorial statement (Kalajdzievski, 2012).

The compactness theorem does not automatically preserve measurability. An ultralimit of measurable {0,1}\{0,1\}-valued functions indexed by an arbitrary ultrafilter need not be measurable. This matters because the error

P(H△C)P(H\triangle C)

is defined only when H△CH\triangle C is measurable, and because the map from samples to hypotheses must itself satisfy suitable measurability conditions.

For a standard Borel space XX and a dd-maximum, universally separable concept class C\mathcal C, measurable compactness is recovered: there exists an unlabelled size-dd scheme whose hypotheses are universally Borel measurable (Kalajdzievski, 2012). The proof reduces to a countable universally dense subclass, refines the Polish topology so that this subclass consists of clopen sets, and applies descriptive-set-theoretic compactness to pointwise limits.

3. General existence bounds and the compression conjecture

The Floyd–Warmuth sample compression conjecture asserts that every binary concept class of VC dimension dd has a compression scheme of size O(d)O(d). The conjecture remains unresolved. Before 2015, general bounds typically depended on the sample size or on the cardinality of the concept class. Moran and Yehudayoff proved that every binary class of VC dimension dd admits a labelled scheme of size

2O(d).2^{O(d)}.

Their construction uses the dual class

C∗={fx:C→{0,1}:fx(c)=c(x)}.C^*=\{f_x:C\to\{0,1\}:f_x(c)=c(x)\}.

If d∗=VC⁡(C∗)d^*=\operatorname{VC}(C^*), then the scheme has total size

O(klog⁡k),k=O(dd∗).O(k\log k),\qquad k=O(dd^*).

Assouad’s inequality gives

VC⁡(C∗)<2d+1\operatorname{VC}(C^*)<2^{d+1}

whenever VC⁡(C)≤d\operatorname{VC}(C)\le d, yielding the exponential bound. The proof combines a proper O(d)O(d)-sample learner, minimax duality, and a low-dual-VC small-support approximation. The result is existential rather than computationally efficient (Moran et al., 2015).

A recent construction proves the first general polynomial bound. Every binary VC class of dimension dd admits a labelled scheme with

k=O(d2log⁡2d)k=O(d^2\log^2 d)

retained examples and

b=O(dlog⁡2d)b=O(d\log^2 d)

side-information bits (Cai et al., 18 Nov 2026). The construction uses sample-induced cells, representative concepts, entropy refinement, maximal lotteries, linear-programming duality, and multiplicative-weights aggregation. A set of unlabeled sample points induces a pool of representatives of cardinality at most (∣W∣+1)d(|W|+1)^d by Sauer–Shelah. An additional O(dlog⁡d)O(d\log d) labeled examples encode a weighted majority vote over this pool.

The resulting scheme is generally improper: the reconstructed hypothesis is a weighted majority vote of at most (k+1)d(k+1)^d concepts from the class and need not itself belong to the class. The theorem establishes the polynomial-size version of the conjecture but not the conjectured O(d)O(d) bound, properness, computational efficiency, or an optimal unlabelled scheme.

The embedding route toward the conjecture also has a fundamental limitation. Extremal classes have optimal compression of size equal to their VC dimension, but some VC-dd classes cannot be embedded into any extremal class of dimension below 2d−12^d-1. The obstruction follows from dual VC dimension: every extremal class of VC dimension dd has dual VC dimension at most $2d+1$, whereas general classes may attain dual dimension 2d+1−12^{d+1}-1 (Chase et al., 2024). This rules out a generally efficient Floyd–Warmuth embedding strategy without disproving the compression conjecture itself.

4. Structured classes and optimal compression

Maximum and extremal classes provide important positive cases. A class is dd-maximum when every finite trace has cardinality

∣C⊓A∣=(∣A∣≤d).\left|\mathcal C\sqcap A\right|=\binom{|A|}{\le d}.

Maximum classes are extremal, also called ample, lopsided, or shattering-extremal, and possess strong cubical structure.

Every maximum class has a proper unlabelled compression scheme of size equal to its VC dimension. A representation map assigns each concept cc a shattered coordinate set r(c)r(c) of size at most dd such that distinct concepts do not clash on the union of their representation sets: c∣r(c)∪r(c′)≠c′∣r(c)∪r(c′).c|_{r(c)\cup r(c')}\ne c'|_{r(c)\cup r(c')}. This yields compression by selecting r(c)r(c) for the unique concept compatible with the sample. The construction applies even to maximum classes with no corners (Chalopin et al., 2018).

Corner peeling is therefore not equivalent to optimal compression. A maximum class of VC dimension $3$ with no corners exists, derived from a nonextendable partial shelling of a 12-dimensional cross-polytope. Nonetheless, it admits a proper unlabelled scheme through a recursive representation-map construction. The broader question whether every ample class admits such a representation map remains open (Chalopin et al., 2018).

Oriented matroids provide another broad family with optimal schemes. The topes of an oriented matroid have VC dimension equal to its rank, and every oriented matroid admits a proper unlabelled scheme of size at most this VC dimension. The proof uses convex subsets of the tope graph, reconstructible maps, oriented matroid programs, and corners. It extends to affine oriented matroids and to complexes of oriented matroids possessing corner peelings (Chalopin et al., 2022).

A stronger labelled result holds for all complexes of oriented matroids (COMs): the topes of a COM of VC dimension dd admit a proper labelled compression scheme of size dd (Chepoi et al., 2021). The proof interprets samples as convex subgraphs of partial-cube tope graphs, recursively selects at most dd distinguishing coordinates, and uses a realizer—a common compatible tope for all samples with the same compressed representation—for reconstruction.

Other structured examples include graph balls. For balls in trees, proper schemes of size $2$ exist; cycles admit size $3$; interval graphs size $4$; trees of cycles size $6$; and cube-free median graphs size $22$ (Chalopin et al., 2022). For graphs of treewidth or cliquewidth at most tt, graph balls admit proper schemes of size

O(tlog⁡t),O(t\log t),

with array schemes of sizes $4t+7$ and $4t+3$, respectively (Bourneuf et al., 3 Apr 2026). The treewidth bound is tight up to the logarithmic factor because there are treewidth-tt ball classes with VC dimension at least tt.

Intersection-closed classes of VC dimension dd admit unlabelled schemes of size at most $11d$. The proof embeds such a class into an intersection-closed, shortest-path-closed extremal class of VC dimension at most $11d$ (Rubinstein et al., 2022).

5. Compression, learning, and measurability

A consistent compression scheme induces a learner: compress the sample and reconstruct the corresponding hypothesis. If the scheme has size dd, the number of possible compressed descriptions on a sample of size mm is controlled by

∑i=0d(mi)\sum_{i=0}^d\binom{m}{i}

times the number of side-information strings. A union bound then gives PAC generalization. Under suitable measurability assumptions, a standard bound is

Pm ⁣(∃A, ∣A∣≤d:P(H(A)△C)>ε, H(A)∣S=C∣S)≤∑n=0d(mn)(1−ε)m−n.P^m\!\left( \exists A,\ |A|\le d: P(H(A)\triangle C)>\varepsilon,\ H(A)|_S=C|_S \right) \le \sum_{n=0}^d\binom{m}{n}(1-\varepsilon)^{m-n}.

This gives sample complexity of order

O ⁣(dlog⁡(1/ε)+log⁡(1/δ)ε)O\!\left( \frac{d\log(1/\varepsilon)+\log(1/\delta)}{\varepsilon} \right)

in the displayed formulation (Kalajdzievski, 2012).

Measurability has several levels. Requiring every reconstructed hypothesis to be measurable is weaker than requiring the parameterized map

(x1,…,xi,xi+1)↦H({x1,…,xi})(xi+1)(x_1,\ldots,x_i,x_{i+1}) \mapsto H(\{x_1,\ldots,x_i\})(x_{i+1})

to be measurable. The latter condition is often called (M5) and is sufficient for standard compression bounds. Universal Borel measurability is weaker than Borel measurability but guarantees measurability under every Borel probability measure.

Compression and learnability are related but not equivalent in every setting. For binary classes, finite VC dimension yields a bounded compression scheme through the Moran–Yehudayoff theorem. For multiclass classes with infinitely many labels, this fails dramatically: there is a learnable total class of DS dimension exactly $1$ for which every compression scheme has size

Ω ⁣((log⁡m)1−o(1))\Omega\!\left((\log m)^{1-o(1)}\right)

on samples of size mm (Pabbaraju, 2023). The obstruction uses partial concepts, biclique partitions, large chromatic number, and private labels that preserve low DS dimension while forcing large disambiguating families.

Reductions transfer binary compression to multiclass learning, regression, and robust learning. A binary scheme of size f(dVC)f(d_{\mathrm{VC}}) yields multiclass schemes of size

O(f(dG)log⁡∣Y∣)O(f(d_G)\log|Y|)

for general schemes, and O(f(dG))O(f(d_G)) for proper, majority-vote, or stable schemes. For real-valued classes, threshold lifting gives approximate regression compression controlled by pseudo-dimension; for adversarial perturbation sets of maximum size MM, robust compression has size O(f(dVC)log⁡M)O(f(d_{\mathrm{VC}})\log M) in general and O(f(dVC))O(f(d_{\mathrm{VC}})) under stability (Attias et al., 2024).

6. Real-valued, distributional, robust, and emerging extensions

Real-valued compression distinguishes realizable uniform reconstruction from agnostic approximate loss minimization. For F⊆[0,1]XF\subseteq[0,1]^X, fat-shattering dimension replaces VC dimension as the principal complexity measure. Generic agnostic schemes previously had size governed by a primal–dual product,

O~ ⁣(fat⁡(F,cα)fat⁡∗(F,cα)),\widetilde O\!\left( \operatorname{fat}(F,c\alpha) \operatorname{fat}^*(F,c\alpha) \right),

which can be exponentially larger than the primal dimension (Attias et al., 2018).

For bounded linear regression, approximate compression has size

O ⁣(dlog⁡pα)O\!\left(d\log\frac{p}{\alpha}\right)

for finite pp and

O ⁣(dlog⁡1α)O\!\left(d\log\frac1\alpha\right)

for ℓ∞\ell_\infty. Exact affine regression is possible with d+1d+1 points for ℓ1\ell_1 and d+2d+2 points for ℓ∞\ell_\infty, because both objectives admit linear-program formulations. In contrast, for every 1<p<∞1<p<\infty, exact bounded-size agnostic compression is impossible even for constant functions: the unique empirical minimizer depends on the number of zero and one labels and can take m+1m+1 distinct values (Attias et al., 2018).

A recent squared-loss construction removes the dual fat-shattering factor entirely. For every F⊆[0,1]XF\subseteq[0,1]^X and α∈(0,1]\alpha\in(0,1], it stores

O ⁣(fat⁡(F,c′α)log⁡3(2/α))O\!\left( \operatorname{fat}(F,c'\alpha)\log^3(2/\alpha) \right)

original labeled examples and bits, independently of the sample size, and reconstructs f^\hat f satisfying

L2(f^,S)≤inf⁡f∈FL2(f,S)+α.L_2(\hat f,S) \le \inf_{f\in F}L_2(f,S)+\alpha.

The proof uses tolerant weak learning, median boosting, quantized synthetic labels, and average rather than uniform approximation. Avoiding uniform approximation eliminates the dual-dimension sparsification step (Zhang, 31 Aug 2026).

Distributional compression applies the same principle to classes of probability densities. If a distribution class admits robust compression with τ(ε)\tau(\varepsilon) retained samples and t(ε)t(\varepsilon) bits, then it can be agnostically learned with sample complexity controlled by

τ(ε)+t(ε)\tau(\varepsilon)+t(\varepsilon)

rather than by a global metric entropy. Products and mixtures preserve compression with explicit parameter transformations. This yields near-optimal sample complexity for Gaussian mixtures: O~ ⁣(kd2ε2)\widetilde O\!\left(\frac{kd^2}{\varepsilon^2}\right) for general dd-dimensional Gaussian mixtures and

O~ ⁣(kdε2)\widetilde O\!\left(\frac{kd}{\varepsilon^2}\right)

for axis-aligned mixtures, including robust and agnostic settings (Ashtiani et al., 2017).

Compression also regularizes nearest-neighbor methods. A net-based multiclass learner selects a scale, retains a metric net, replaces labels by Voronoi-cell majorities, and applies 1-nearest-neighbor prediction to the compressed set. It is strongly Bayes-consistent in finite doubling dimension and weakly consistent in a particular infinite-dimensional metric space where every kk-NN rule with kn/n→0k_n/n\to0 is inconsistent (Kontorovich et al., 2017).

Finally, high-arity compression extends the framework to hypotheses on kk-tuples, where labels are dependent arrays rather than independent point labels. If the effective description complexity is sublinear—specifically,

log⁡hm+k smlog⁡m=o(m)\log h_m+k\,s_m\log m=o(m)

in the partite setting, or

log⁡hm+smlog⁡m=o(m)\log h_m+s_m\log m=o(m)

in the non-partite setting—then the reconstructed hypothesis is high-arity PAC learnable. The proof replaces independent-sample concentration with Doob martingales and Azuma’s inequality (Coregliano et al., 12 May 2026). These developments preserve the principal role of compression while broadening its scope from binary consistent learning to regression, distribution learning, robust prediction, metric methods, and product-space learning.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Sample Compression Scheme.