Sample Compression Scheme
- 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 admits a scheme of size .
1. Formal framework and variants
A concept space is a pair , where is a domain and is a family of concepts. A finite labeled sample is a finite partial function
that is the restriction of some concept . A hypothesis is consistent with when , meaning that agrees with every label in the sample.
For , an unlabelled sample compression scheme of size is a map
such that every finite labeled sample has a compression set consisting of at most domain points from the sample and
The compression map uses the labels to choose , 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
where is auxiliary side information and the reconstruction hypothesis agrees with on all of (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,
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 , the trace of on is
The VC dimension is the maximum cardinality of a set shattered by . An unlabelled compression scheme of size implies
because a shattered set of size has labelings but only
possible compression subsets. For labelled schemes, the corresponding general background bound is .
The Ben-David–Litman compactness theorem states that a concept space has a sample compression scheme of size if and only if every finite subspace has one of size . The original proof uses compactness from predicate logic. An alternative proof constructs finite schemes
and combines them using an ultrafilter on the finite subsets of . For each compressed set and point , the global value is defined as the ultralimit of the finite-stage values .
The finite-dimensional consistency argument is straightforward: for a finite sample with domain , each finite supplies some compression set in . Since 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 -valued functions indexed by an arbitrary ultrafilter need not be measurable. This matters because the error
is defined only when is measurable, and because the map from samples to hypotheses must itself satisfy suitable measurability conditions.
For a standard Borel space and a -maximum, universally separable concept class , measurable compactness is recovered: there exists an unlabelled size- 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 has a compression scheme of size . 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 admits a labelled scheme of size
Their construction uses the dual class
If , then the scheme has total size
Assouad’s inequality gives
whenever , yielding the exponential bound. The proof combines a proper -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 admits a labelled scheme with
retained examples and
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 by Sauer–Shelah. An additional 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 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 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- classes cannot be embedded into any extremal class of dimension below . The obstruction follows from dual VC dimension: every extremal class of VC dimension has dual VC dimension at most $2d+1$, whereas general classes may attain dual dimension (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 -maximum when every finite trace has cardinality
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 a shattered coordinate set of size at most such that distinct concepts do not clash on the union of their representation sets: This yields compression by selecting 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 admit a proper labelled compression scheme of size (Chepoi et al., 2021). The proof interprets samples as convex subgraphs of partial-cube tope graphs, recursively selects at most 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 , graph balls admit proper schemes of size
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- ball classes with VC dimension at least .
Intersection-closed classes of VC dimension 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 , the number of possible compressed descriptions on a sample of size is controlled by
times the number of side-information strings. A union bound then gives PAC generalization. Under suitable measurability assumptions, a standard bound is
This gives sample complexity of order
in the displayed formulation (Kalajdzievski, 2012).
Measurability has several levels. Requiring every reconstructed hypothesis to be measurable is weaker than requiring the parameterized map
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
on samples of size (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 yields multiclass schemes of size
for general schemes, and 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 , robust compression has size in general and 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 , fat-shattering dimension replaces VC dimension as the principal complexity measure. Generic agnostic schemes previously had size governed by a primal–dual product,
which can be exponentially larger than the primal dimension (Attias et al., 2018).
For bounded linear regression, approximate compression has size
for finite and
for . Exact affine regression is possible with points for and points for , because both objectives admit linear-program formulations. In contrast, for every , 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 distinct values (Attias et al., 2018).
A recent squared-loss construction removes the dual fat-shattering factor entirely. For every and , it stores
original labeled examples and bits, independently of the sample size, and reconstructs satisfying
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 retained samples and bits, then it can be agnostically learned with sample complexity controlled by
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: for general -dimensional Gaussian mixtures and
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 -NN rule with is inconsistent (Kontorovich et al., 2017).
Finally, high-arity compression extends the framework to hypotheses on -tuples, where labels are dependent arrays rather than independent point labels. If the effective description complexity is sublinear—specifically,
in the partite setting, or
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.