Manuscript Offprint
arXiv:2610.27402Communication Complexity of Universal Features
Abstract
Motivated by the notion of features from machine learning, we study the complexity of representing data that allows for evaluation with a given family of functions. Concretely, we consider a deterministic encoder that observes and produces a finite encoding before a task is specified. For each task, a decoder must predict with error at most under . We construct an encoder that outputs a representation with bits, where is the dual VC dimension of . Our encoder greedily selects functions from the class and uses their joint label pattern to produce the encoding. The key idea in our upper bound is a novel potential function argument, where we compare the entropy gained from each greedy selection with the number of patterns allowed by the dual VC dimension. We present lower bounds showing that the representation length achieved by our encoder is worst-case optimal for every and up to a universal constant factor, and instance-wise optimal for every family up to an factor. We give two ways to learn the representation from unlabeled samples, with different guarantees on the representation size and sample complexity. Experimentally, we verify the greedy construction’s accuracy-size tradeoff and explore its connection to neural sparse autoencoders.
Keywords: feature learning, dual VC dimension, one-way communication complexity
1 Introduction
Many questions in learning, computation, and statistics share one form: compress a data point while preserving its relationship to a fixed family of functions, before anyone knows which function will be asked. Here are three examples:
• Features for a hypothesis class. A data provider releases compressed features of its inputs, and users later train classifiers from a known class , such as decision stumps or linear classifiers, for labels the provider never sees. The provider wants every user to do almost as well as if the raw inputs had been released. Compressed or hashed features shared across many learning problems are instances of this application (Weinberger et al., 2009; Zhou et al., 2009).
• Representations for downstream tasks. A pretrained model maps each input to a representation that is later probed for many tasks (Alain and Bengio, 2017; Radford et al., 2021). In a sparse autoencoder, for instance, an activation of a language model is represented by which of W dictionary features are
Code: https://github.com/tcs-ml/Feature-Representations active, with at most k active at once, and a researcher later asks whether a particular feature is active (Bricken et al., 2023; Cunningham et al., 2024; Gao et al., 2025). The number W of features may be in the millions (Templeton et al., 2024), yet intuition suggests that the sparsity k should govern how much must be stored.
• Sketches for queries. A phone knows its position x in the plane and may send only a few bits to a server. Later, the server must decide whether the phone was inside a region, where the regions are half-planes from a large, possibly infinite, list of boundaries, as in geofencing (Rodriguez Garzon and Deva, 2014). Location data are often released with reduced precision (Andrés et al., 2013), and answering such membership queries is the classical problem of range searching (Agarwal and Erickson, 1999). Sending the exact position is wasteful, and sending one bit per region is impossible when the list is long.
In each case the data compression is produced before the downstream function is chosen, so it must keep enough information to support every function of the family. Recording the value of every function is sufficient, but it is infeasible when there are infinitely many functions in the family. Recording each data point itself defeats the purpose of compression. What is the minimum amount of information needed in the compressed representation so that we can still evaluate every downstream function in a given family with high accuracy?
We study this question in its simplest form. An encoder observes an input drawn from a known distribution on a domain , and outputs a representation of bits. A decoder later receives the representation together with a function from a known class , and must predict . We call the encoder-decoder pair a universal representation of with error if
Here is the representation, is the prediction for , and the supremum says that a single representation must serve every member of . We write for the least for which a universal representation with error exists. In Section B.1 we show that this quantity is a one-way communication complexity for a communication problem between the encoder and the decoder. It is also the logarithm of the minimum size of a partition of on which every member of is nearly constant. Furthermore, it is the minimum length of a feature map that loses at most for agnostic learning with .
Prior work has focused on a randomized variant of , where we allow the encoder and decoder to share a random seed , drawn in advance of the data point and the downstream task . This corresponds to the public-coin setting in communication complexity. In this setting, our error goal takes an expectation over the random seed:
Let be the least representation length that achieves this public-coin error goal using an arbitrary pair of encoder and decoder with an arbitrary random seed. The following result gives a characterization of this public-coin communication complexity using the dual VC dimension of (Definition 2.2).
Proposition 1.1 (Kremer et al., 1999; Molinaro et al., 2015; Bottesch et al., 2015) For every function family with finite dual VC dimension and every ,
(3) where the supremum is over all distributions over the domain and is the binary entropy.
This result gives a characterization of the public-coin communication complexity in terms of the dual VC dimension . Moreover, the packing characterization of Molinaro et al. (2015) implies that for every and every sufficiently small , some class of dual VC dimension and some distribution require bits even with shared randomness. Thus the upper bound in (3) is worst-case optimal up to a universal constant for every and sufficiently small .
Our focus is on the more challenging deterministic setting (1), where prior work provides much weaker upper bounds. Results from Adams and Nobel (2012) imply that every family of finite VC dimension satisfies for every distribution and every , but they do not provide a uniform upper bound that holds simultaneously for all distributions . Such a uniform upper bound can be inferred from the following stronger result:
Proposition 1.2 For every family with VC dimension and dual VC dimension , for every distribution on the domain and every , we have
This result follows from taking an -covering of and then using the values of these functions to form the encoding. It is known that holds for all families , so Proposition 1.2 implies a uniform upper bound on that holds for all distributions . However, this bound is much weaker than its randomized counterpart in (3).
Theorem 1.1 (Short deterministic universal representations) Let be a class of measurable functions with dual VC dimension , where , and let . For every distribution on , there is a deterministic universal representation of with error at most , in the sense of (1), of length
It is determined by the values of members of , and Algorithm 1 constructs it.
Our proof uses a novel, very simple greedy construction: add a function whenever its value cannot yet be predicted with error at most from the functions already selected. The encoder stores an index of the joint label pattern of the selected functions, focusing only on the patterns that actually occur. The dual VC dimension bounds the number of bits needed to encode these patterns via Sauer's lemma. A key idea in our analysis is to use the entropy of the pattern distribution as a potential function. On one hand, each selected function increases this potential by at least a fixed amount, so the potential grows at least linearly in the number of selected functions. On the other hand, the entropy potential is trivially upper bounded by the logarithm of the total number of occurring label patterns. This upper bound grows logarithmically in t by Sauer's lemma. Concretely, when ,
Therefore, the entire process must end before t gets too large to allow the above inequality. This gives an upper bound on the total number of selected functions as well as the communication complexity. See Section 4 for our full proof of Theorem 1.1.
The simplicity of this construction is a major advantage of our result over Proposition 1.1, where the encoder-decoder pair comes from a non-constructive minimax argument (Section E.2). Our proof explicitly constructs a deterministic encoder-decoder pair using a simple greedy algorithm.
The previous public-coin lower bounds discussed earlier naturally apply to our deterministic setting. They show that our upper bound is optimal in the worst case over classes and distributions. In particular, the packing characterization of Molinaro et al. (2015) gives classes requiring bits even in the easier public-coin setting. For every fixed family , the lower bound in Proposition 1.1 gives a distribution under which at least bits are necessary. We include self-contained proofs of these lower bounds in Sections 4.2 and 4.3.
We also study how to construct universal representations when is unknown. In the shared-sample model of Section 5, encoder and decoder are built from unlabeled samples of and must then work on a fresh input. The next theorem gives two guarantees: the first retains our length bound, while the second learns a representation with the length bound of Proposition 1.2 using fewer samples. Here and denote the primal and dual VC dimensions, as above.
Theorem 1.2 (Learning universal representations from samples) Let have primal VC dimension and dual VC dimension , with , and let and . Given independent samples from an unknown distribution on , one can learn, with probability at least , a universal representation of with error at most under in either of the following ways.
(a) Optimal length. Algorithm 2 outputs a representation of length from
samples, where C is an absolute constant.
(b) Few samples. Algorithm 3 outputs a representation of length from
samples.
The two parts trade length against samples. Part (a) keeps the optimal length of Theorem 1.1, at the price of a sample size exponential in (Theorem 5.2). Part (b) uses only as many samples as are known to suffice for PAC learning a single function of (Vapnik and Chervonenkis, 1971; Anthony and Shawe-Taylor, 1993), at the price of a factor in the length. Whether one can have both is open; even for thresholds on a line, learning a representation of near-optimal length requires samples (Theorem 5.4). For thresholds, this sample lower bound is matched at constant confidence by a learner with length (Corollary D.3).
1.1.1 Additional Results
Refined Complexity Bounds. We sharpen our upper bound using the dual growth function, which counts the label patterns realized by selected functions, and extend the classical entropy lower bound to obtain class-specific bounds under suitable input distributions (Theorem C.4 and Proposition 4.2). We also characterize zero-error complexity for finitely supported distributions and give matching worst-case bounds for finite function classes (Section C.3). For representations generated by members of F, we prove a worst-case lower bound on the number of selected functions, within a logarithmic factor of our construction (Section C.4).
Reconstruction objectives. On finite input domains, we show that every maximizer of joint entropy over sets of at most t functions from F gives a universal representation when t is sufficiently large (Section F.2). We connect this objective to optimal reconstruction log loss (Section F.1). We also show that minimizing reconstruction log loss separately for each input coordinate can fail to preserve all tasks under a selection budget, even when the dual VC dimension is two (Section F.3).
Learning interpretations. We characterize universality by the ability to achieve prediction error at most above the best error in for every downstream labeling (Proposition B.1). We also prove an equivalence, up to a factor of two in error, with multicalibration of the conditional-mean predictor under every labeling. This equivalence uses error averaged over prediction values and weighted by group probability (Section F.4).
Extensions. We extend our deterministic bound to tasks and predictions in [0, 1] under expected absolute loss, obtaining bits, where is the pseudo-dimension of the dual class (Section E.1). We also recall the public-coin characterization of Molinaro et al. (2015) and bound the number of protocols needed in a randomized mixture (Section E.2), give a two-message protocol (Section E.3), and describe a halfspace representation based on the partition theorem of Matoušek (1992) (Section E.4).
Experiments and open questions. We test our greedy construction on threshold products and explore finite-family saturation and accuracy–length tradeoffs in reconstruction-trained sparse autoencoders (Section 7). We give experimental configurations in Appendix G and discuss open questions in Section 8.
1.2 Related work
One-way communication under product distributions. The relevant communication matrix is , with the input holder sending a message to the function holder. Its rows are the evaluation functions , so its row VC dimension is exactly . Kremer et al. (1999) characterize constant-error one-way distributional complexity, maximized over product distributions, by this dimension. Molinaro et al. (2015) give the more precise characterization at varying error: complexity is controlled, up to constant factors and a constant rescaling of the error, by the logarithm of the largest packing number of the rows, maximized over distributions on columns. For our matrix, the underlying pseudometric is
where Q is a distribution on tasks. Combining their characterization with VC packing bounds (Haussler, 1995) gives bits. Bottesch et al. (2015) independently obtain logarithmic error amplification for one-way communication under product distributions. Thus both the constant-error role of and the logarithmic accuracy dependence of the public-coin upper bound are prior results.
The quantifiers explain the connection to universal representations. For a fixed , the product-distribution statement gives, for each , a deterministic protocol with small error averaged over ; the protocol may depend on . For finite classes and domains, minimax (Yao, 1977) converts these protocols into one public-coin protocol whose error, averaged over its seed and , is at most for every . This does not select a single seed for which the guarantee holds for all tasks. The public-coin statements in Section E.2 are included as consequences of this literature, especially the packing characterization of Molinaro et al. (2015). Their greater-than example also supplies the one-dimensional logarithmic lower bound. Our contribution is a single deterministic representation attaining this length bound and generated by functions from the class; to the best of our knowledge, this guarantee has not appeared previously. The matching lower bound is a worst-case statement over classes and distributions, not a claim that every fixed class requires bits.
Correlated inputs and general joint distributions. Allowing an arbitrary joint distribution on changes the comparison: a distributional protocol minimizes error under , whereas our guarantee fixes one input distribution and controls each task separately. Jain and Zhang (2009) extend the VC upper bound beyond product distributions, with a dependence on the mutual information between the two inputs; at constant error their bound specializes to . Bottesch et al. (2015) study this interpolation systematically and improve the accuracy dependence of the correlated one-way bound. Sherstov (2010) shows that restricting hard distributions to be product can dramatically reduce communication complexity, including in the one-way model. Consequently, the product-distribution characterization should not be read as a characterization of worst-case randomized communication over arbitrary input pairs. Nor does small error under one correlated distribution imply small error for every task under the common marginal .
Fixed-distribution covers and representative domains. Approximation by finite covers in the disagreement metric goes back to Benedek and Itai (1991). For our purpose, a proper -cover gives a direct construction: partition by the vector and predict each using a nearby cover member. Every task then has error at most under . Haussler's packing bound gives , and dual Sauer–Shelah bounds the number of realized patterns by . The resulting code has length .
This partition is also the representative-domain construction used by Bassily et al. (2020) for private query release assisted by public data. They retain one input per label pattern of a cover, bound the number of representatives using dual VC dimension, and map data points to their representatives. Ben-David et al. (2023) use the same cover and representative-domain construction in private distribution learning with public data. Our cover-based sample bound should therefore be viewed as an application of established tools. The entropy-greedy construction instead selects functions according to their remaining error on the current partition, removing the extra factor d from the representation length.
Finite approximation by partitions. Adams and Nobel (2012) prove finite approximability of VC classes by partitions under every probability measure. They control the total mass of cells on which a set and its complement both have positive measure, a stronger condition than small minority mass. Their theorem establishes finiteness without an explicit bound on the number of cells; our upper bound controls this number for the majority-error criterion.
We discuss broader connections to learning and representation models in Appendix A.
2 Preliminaries
Notation and measurability. For an integer , write . All logarithms are base two unless written as . Let be a probability space, and let be a nonempty class of measurable functions. For results involving samples, we assume the event classes and learning rules satisfy the usual measurability conditions for the stated uniform-convergence bounds. Finite classes on finite domains satisfy these conditions automatically.
2.1 VC dimension and the dual class
VC dimension measures how many inputs can be labeled independently by functions in the class. Dual VC dimension reverses the roles of inputs and functions.
Definition 2.1 (VC dimension) A finite set of inputs is shattered by if
The VC dimension is the supremum of the sizes of shattered sets, with value if these sizes are unbounded. We also call the primal VC dimension to distinguish it from the dual dimension.
For each input , define its evaluation function
An evaluation function records the answers to all tasks at a fixed input. The collection of these functions is a class on the domain F itself.
Definition 2.2 (Dual class and dual VC dimension) The dual class of is , and its VC dimension is the dual VC dimension of . Equivalently, is the supremum of the sizes of families that are dual-shattered, meaning that
Primal shattering fixes inputs and varies the function; dual shattering fixes functions and varies the input. In the evaluation matrix , the rows are the members of and the columns are the members of . Assouad (1983) showed that
Thus one dimension is finite if and only if the other is, although their values can differ substantially. Throughout the binary results we assume . If , every function is constant on . Statements involving sample bounds in terms of also assume .
2.2 Dual growth
VC dimension records when all binary patterns can occur. The growth function keeps track of the number of patterns at every size, including beyond the dimension. For a finite list of members of , define the pattern map
The dual growth function is
Lists may repeat functions, so the definition also covers when the class is finite. The supremum is a maximum because the number of patterns is an integer between 1 and . For comparison, the primal growth function is
For positive integers , exactly when , and the corresponding statement holds for and .
The Sauer–Shelah lemma (Sauer, 1972; Shelah, 1972), applied to the dual class, gives
Similarly,
2.3 Examples of dual dimension and growth
The following examples from basic function classes illustrate what the dual parameters measure.
Example 2.1 (Dual VC dimension of common classes)
(i) Thresholds. For with and , the functions are nested, so no two are dual-shattered and ; also . A list of thresholds cuts the line into at most nonempty intervals, and .
(ii) Coordinates and parities. For and , both the coordinate class and the parity class have . The coordinate functions are dual-shattered, while inputs cannot realize all patterns on functions. Both classes have .
(iii) All labelings. If has elements and , then and , while . The upper bound on growth counts inputs and binary patterns; it is attained by assigning distinct patterns to as many inputs as possible.
(iv) Sparse inputs. For with and the coordinate class, . Any coordinates realize all patterns, whereas coordinates cannot all equal one. Writing , the dual growth is exactly .
The sparse-input example shows how a bound on the number of active coordinates yields a small dual VC dimension even when the number of available coordinates is large. Rare activation alone does not give this conclusion: independent binary coordinates with activation probabilities strictly between zero and one still have full support and dual VC dimension W.
2.4 Entropy facts
For , write , with . For finite-valued random variables, denotes Shannon entropy in bits and denotes conditional entropy. We use the following standard facts (Cover and Thomas, 2006).
Fact 2.3 (Entropy facts)
(i) and .
(ii) Conditioning cannot increase entropy: .
(iii) for every .
(iv) For integers and , .
Item (iii) follows from concavity of binary entropy on and symmetry about 1/2. It connects prediction error to the entropy gained by revealing one more label: a label that is hard to predict must contribute conditional entropy.
3 Universal representations
Let be a family of binary functions on , and let be a distribution on . Each function describes a prediction task: given an input , predict the label . We would like to replace by a short representation that can be used for any of these tasks. An encoder produces this representation from before the task is specified. A decoder later receives the representation and a function , and uses them to predict . The same encoder must support every function in the family, and we measure each function's prediction error on inputs drawn from .
Definition 3.1 (Universal representation) A universal representation of length consists of a measurable encoder and a decoder . Both maps are deterministic. Its error is
It is an -universal representation if this error is at most . The universal representation complexity is the least length of such a representation, with value if no finite length suffices.
The term “universal” refers to reusing one encoder across all tasks in F. For each fixed task, the decoder must be correct with probability at least under D. The inputs on which it makes errors may differ from one task to another.
3.1 Majority decoding and partitions
To understand what can be predicted from a representation, it is useful to group together inputs that receive the same code. For a fixed task f, the decoder makes the same prediction on all inputs in such a group. We describe these groups using a partition of the input domain.
Definition 3.2 (Finite measurable partition) A finite measurable partition of is a collection of nonempty measurable subsets of such that the sets are pairwise disjoint and their union is . The sets are called the cells of the partition.
Every input therefore belongs to exactly one cell. An encoder defines a partition by assigning to each code z the set
and discarding the empty sets. A b-bit encoder has at most such cells. Knowing the code is equivalent to knowing which cell contains the input.
For a task and a cell with , the decoder's goal is to predict given that . The best prediction is the label with larger probability under this conditional distribution. We call this majority decoding, where majority is measured by probability mass under . Either label is optimal in a tie, and the prediction on a cell of zero probability does not affect the error.
Lemma 3.3 (Majority decoding) Let with . Then
attained by a majority label.
Proof. Predicting 0 incurs error p, while predicting 1 incurs error 1 - p.
On a cell , majority decoding makes errors on the inputs with the less likely label. The probability mass of those inputs is the smaller of and . Summing over cells gives the majority error of on a finite measurable partition :
This is the smallest prediction error achievable for f when the decoder is given only the cell containing the input. The majority label may depend on f, while the partition is shared by all tasks.
A short universal representation therefore corresponds to a partition with few cells on which every task has small majority error. The following proposition makes the relation between the number of cells and the number of bits precise.
Proposition 3.1 (Representations are partitions) Let be the least number of cells in a finite measurable partition satisfying , with if no such partition exists. Then , where the right-hand side is interpreted as when .
Proof. A b-bit encoder defines a partition with at most cells. By Lemma 3.3, using the majority label on each cell minimizes the prediction error for each task, so an -universal representation gives a partition with . Conversely, given such a partition with cells, the encoder can send the index of the cell containing using bits. For each task , the decoder outputs its majority label on that cell and achieves error .
This equivalence lets us construct and analyze representations by working with their cells. For any finite-valued measurable map Z on X, we write for the majority error on the partition that groups inputs with the same value of Z. Figure 1 illustrates the error for one task, and Section B.1 gives further interpretations in terms of queries, communication, and agnostic learning.

Majority ×
Majority o
Figure 1: A representation P with seven cells and one task f. Each cell is decoded by its majority label, so the minority points are the errors and their mass is . A universal representation keeps this mass at most for every task in F at once.
3.2 Representations generated by functions
One way to build a representation is to select functions and record their labels on the input. For the list , this gives the pattern map from Section 2.2,
Inputs with the same pattern agree on every selected function. Each pattern defines a set
The nonempty sets form the partition generated by these functions. We write for the error of majority decoding from the selected labels. A representation is generated by if its encoder depends on the input only through .
Writing out the full label vector takes bits, but many of the possible binary patterns may never occur on . By definition of the dual growth function, at most patterns occur. We can therefore preserve all selected labels by giving each realized pattern a distinct index and storing that index in at most bits. The decoder can recover the pattern from the index and predict any task by its majority label among the inputs with that pattern.
This construction distinguishes the number of selected functions from the number of bits needed to store their labels. The entropy-greedy procedure in Section 4.1 selects functions until for every , while controlling both quantities. Keeping the actual function can give sharper bounds than replacing it by the dimension-only estimate (5); see Theorem C.4 and Proposition 4.2.
4 A short representation for every function
We prove the deterministic upper bound in Theorem 1.1, then give self-contained lower-bound arguments, including the known bounds that establish its worst-case optimality. The construction starts with no information about the input and adds a function whenever its value cannot yet be predicted accurately. Entropy measures progress, while the dual growth function limits how much information the selected functions can reveal.
4.1 The entropy-greedy construction
Recall that is the error of majority decoding for given the labels of the selected functions . Adding a function refines the partition, and therefore cannot increase this error for any other function. Algorithm 1 keeps refining until every function has error at most .
Algorithm 1: ENTROPYGREEDY(F, D, ε)
g ← () // selected functions
1 while there is with do
2 | Append one such f to g
3 end
4 among realized patterns
5
6 return (g, Enc, Dec)
One pass through a finite class. For finite , scan its functions once in any fixed order and select a function exactly when its current majority error exceeds . A skipped function keeps error at most under every later refinement, and a selected function has zero error thereafter. Thus one pass suffices, using majority-error evaluations; repeated scans, which could require evaluations, are unnecessary. This counts error evaluations, not total running time: integrating under and maintaining the partition may be costly. For infinite classes, finding a violating function is an existence argument unless a suitable oracle is available.
Theorem 4.1 (Deterministic upper bound) For every and , Algorithm 1 selects fewer than functions and returns a universal representation with error at most and length at most
The selected label vector can be much longer than the representation. The encoder stores only its index among the patterns that actually occur, preserving all selected labels while using fewer bits. The following observation explains why the number of selections is also controlled.
Lemma 4.2 (Entropy increment) For , a finite list from , and ,
Proof. The equality is the entropy chain rule. On a cell with positive mass, write . Its contributions to conditional entropy and majority error are and , respectively. Sum the inequality over the cells.
Proof of Theorem 4.1. After any positive number of selections, each increment is greater than , whereas the selected functions realize at most patterns. Hence
The left side grows linearly with and the right side only logarithmically. More precisely, writing , this inequality forces ; Lemma C.2 gives the elementary calculation. The same bound is immediate for , so the procedure must stop, with every function's error at most . The final partition has at most cells: apply Sauer–Shelah when , and use otherwise. Its cell index gives the asserted representation. Finally, for , and .
Keeping the actual growth function in (6) can sharpen the bound for a particular class; Theorem C.4 states this refinement.
4.2 Lower bounds for each fixed class
A dual-shattered family encodes an arbitrary binary string of length . Recovering each bit with small error requires retaining most of the string's entropy. This is the classical information argument behind the VC lower bound for one-way communication (Kremer et al., 1999; Molinaro et al., 2015). We state a version that allows the inputs realizing all binary patterns to carry only a fraction of the probability mass.
Proposition 4.1 (Lower bound from a shattered set) Choose inputs , , realizing the patterns of dual-shattered functions. Suppose gives mass to each , with total mass on these inputs. For ,
Proof. Condition on the displayed inputs, so that their pattern is uniform on , and set . Write for the decoder's prediction of coordinate . For each coordinate, the error indicator has mean at most . Given , the indicator determines , so
Thus a b-bit representation satisfies .
With , this recovers the deterministic consequence of the classical dimension lower bound in Proposition 1.1, with a single distribution independent of . The accuracy dependence cannot be improved for every class using only .
Example 4.1 (A class that needs only bits even at zero error) The coordinate functions on have dual VC dimension . Sending the input itself gives an exact representation of length under every distribution, ruling out an instance-wise lower bound based only on .
Section 7.2 explores this saturation behavior in reconstruction-trained SAEs on finite task families. Additional dependence on accuracy can instead be obtained from the class’s full dual growth function.
Proposition 4.2 (Dual-growth lower bound) For every integer , there is a finitely supported distribution such that, simultaneously for ,
Consequently, .
Proof. Choose functions attaining ; the maximum exists because the number of patterns is an integer between 1 and . Put the uniform distribution on one input per pattern. The resulting label vector has entropy . For any -bit representation , the preceding error-indicator argument gives . Therefore . Taking the supremum over proves the last assertion.
Taking recovers the shattered-set bound. For the coordinate class above, , and optimizing over gives exactly .
4.3 Known worst-case lower bounds: a product of thresholds
The worst-case lower bound follows from the packing characterization of Molinaro et al. (2015). Their greater-than example gives the one-dimensional dependence; applying the characterization to a product of thresholds gives the dependence on as well. We explain this consequence of their result, then give a self-contained entropy proof with explicit constants under the uniform input distribution. These lower bounds serve as an optimality benchmark for the deterministic upper bound in Theorem 1.1.
Let be uniform on and define
Lemma 4.3 (Dual dimension of the threshold product) For and , the class has dual VC dimension .
Proof. The functions realize all patterns on . Conversely, two thresholds from the same coordinate are nested, so they cannot be dual-shattered. A dual-shattered set therefore contains at most one function per coordinate.
To connect this construction to the packing characterization, let Q be uniform on . The distance between two rows of its evaluation matrix is
An ball of radius contains at most integer points, so a greedy packing of gives at least points at pairwise distance greater than . Their distances are greater than and hence greater than when . The packing lower bound of Molinaro et al. (2015) therefore gives bits under some input distribution for sufficiently large , even with shared randomness; Section E.2 states the packing bound in our notation. The following argument gives the explicit bound for the uniform distribution fixed above.
Theorem 4.4 (Threshold-product lower bound) For , , and , every universal representation for with error at most has length at least .
Proof. Set . For each coordinate , collect the threshold predictions into
Write and choose minimizing . Since , the triangle inequality and this minimizing choice give
Thus the decoded point is close to in expected total coordinate distance. An integer-valued variable satisfies : this follows from nonnegativity of relative entropy against the probability mass function on . Applying this inequality to gives
Because , we obtain .
The proof only uses error averaged uniformly over the threshold queries. For a public-coin representation, averaging over the shared seed gives a seed whose error under the product distribution is at most . Fixing this seed and applying the same proof gives the same lower bound. Thus the construction also witnesses the known public-coin lower bound in Corollary E.7.
Matching the deterministic upper bound. Taking and recovers the known worst-case order in terms of dimension and accuracy. For sufficiently small , , , and . Theorem 4.4 then gives bits, which is . The deterministic upper bound in Theorem 1.1, proved in Theorem 4.1, therefore matches this known worst-case order.
In Section 7.1, we experimentally verify the greedy construction’s predicted accuracy-size tradeoff on this family. Section 7.3 explores whether reconstruction-trained sparse autoencoders exhibit a similar tradeoff. Appendix C provides the zero-error characterization, tight interpolation for finite classes, and bounds on the number of functions needed to generate a representation.
5 Learning universal representations from samples
The distribution need not be known exactly. An unlabeled sample suffices to build the representation and all its decoders, but our two constructions trade representation length against sample size. Throughout this section, , , , and . We assume that the uniform-convergence events and the learner's choices are measurable; this is automatic for countable classes with fixed tie-breaking.
5.1 The shared-sample model
Definition 5.1 (Shared-sample learner) A learner receives and outputs an encoder and a binary decoder for every . It has length , error , and confidence if, for every , with probability at least over and any internal randomness,
The class F is known, so its functions can be evaluated on the unlabeled sample. The sample is shared setup information; only the code for each fresh input counts toward the representation length.
5.2 Two upper bounds
The first learner runs entropy-greedy on the empirical distribution with target , then predicts each function by its empirical majority in each cell.
Theorem 5.2 (Learning a representation of optimal length) For an absolute constant C, Algorithm 2 has error , confidence , and length whenever
The difficulty is that both the cells and their majority labels depend on the sample. We control all rules that apply an arbitrary Boolean decoder to a short list of functions from . A growth-function count bounds the complexity of their error events, and a relative VC bound transfers the empirical error to . The number of possible cell labels accounts for the exponential dependence on .
The second learner selects a small empirical cover : every function is close on the sample to some member of . The representation records the joint labels of , and each decoder returns the label of a nearby member.
Theorem 5.3 (A sample-efficient cover representation) For an absolute constant C, Algorithm 3 has error , confidence , and length at most whenever
Here the error events are just disagreements between pairs of functions in , whose VC dimension is . Haussler's packing bound controls the cover size, and dual growth controls the number of joint label patterns. The algorithms and proofs are in Appendix D.
5.3 A necessary logarithmic factor
Even thresholds, with , require more than samples if the number of representation values must be independent of the domain size.
Theorem 5.4 (Threshold sample lower bound) There is an absolute constant such that, for every sufficiently small and every integer , there is an integer for which the following holds. Every shared-sample learner for the thresholds on that uses at most representation values, has error , and has confidence , needs
To see the obstruction, hide a uniform distribution on points of a much larger line. An error on even one support point has mass greater than , so every threshold must be decoded exactly at every support point. A fixed representation with values can decode all thresholds exactly at only points. An unseen support point is unlikely to be one of them when is large. Seeing all support points takes samples; Section D.3 makes this argument precise.
For thresholds this rate is achievable: the empirical cover in Algorithm 3 has at most members and partitions the line into at most intervals. Thus samples suffice for bits (Corollary D.3). The unresolved issue is the dimension dependence for general classes.
Question 5.5 (Sample complexity at optimal length) Can every class of primal and dual VC dimensions be learned to length using samples, where and are absolute constants?
6 Extensions and implications
The deterministic bound also applies beyond binary prediction. For , we allow decoder outputs in and measure expected absolute error. Thresholding the functions reduces the problem to a binary class whose dual VC dimension is the pseudo-dimension of the real-valued dual class. Decoding by conditional medians then gives bits under absolute loss (Theorem E.2).
Randomness changes the class-specific picture. For finite classes and domains, the product-distribution results of Molinaro et al. (2015) characterize the required length, up to a constant change in accuracy, by the largest covering entropy of in over distributions Q on tasks. Section E.2 states this characterization in our notation and gives its cover and packing proofs. The packing lower bound also applies to deterministic representations. An analogous characterization for a single deterministic partition remains open.
The construction has a connection to reconstruction objectives, but that connection has limits. For finite , optimal log-loss reconstruction from a deterministic code costs (Cover and Thomas, 2006). Thus each greedy step lowers this loss. Moreover, maximizing joint entropy over sufficiently many selected functions from produces a universal representation (Theorem F.1). The restriction to features from matters: an arbitrary entropy-maximizing code can retain information unrelated to the desired tasks. This leaves open when reconstruction yields compact representations that preserve every task. Sections 7.2 and 7.3 explore this question using SAEs on synthetic task families.
Finally, the approximation guarantee has an exact connection to multicalibration (Hebert-Johnson et al., 2018; Gopalan et al., 2022). For every relabeling Y of the inputs, consider the specific predictor . We measure multicalibration error by averaging over prediction values and weighting each group by its probability. The worst mass-weighted multicalibration error with respect to a binary task is when maximized over relabelings. This quantity lies between one half and one times the majority error of on (Theorem F.3 and Corollary F.4). We also explain how ordinary calibration constrains alternative readouts in Section F.4.
7 Experimental verification and exploration
Our experiments explore whether trained sparse autoencoders (SAEs) exhibit the tradeoff of Theorems 4.1 and 4.4, and provide a setting to connect the theory to learned representations. First, we run the greedy procedure on vectors of independently sampled numbers; each task asks whether one coordinate is at most a chosen threshold. We call this collection of tasks the threshold product family (Section 7.1). Second, we study SAEs on finite task families (Section 7.2). Finally, we run the same type of autoencoders on a threshold product family (Section 7.3). Implementation details are provided in Appendix G.
7.1 Threshold-product family
We test a greedy variant of Algorithm 1 on the threshold-product family in (7). At each step, we add the threshold with the largest majority error under the current partition. Inputs are uniform on , with for , respectively. We run the algorithm once per grid and record the first partition that meets each error target. The eleven targets range from down to , using only those with . This experiment illustrates how the greedy construction's representation size grows as the error target decreases. A threshold inside an interval of mass has majority error at most , with equality at its middle. So each step halves a longest interval of some coordinate, the procedure stops once every interval has mass at most . Since every is a power of two the stored index has length
for every grid and target in our range (Figure 2), while the number of selected thresholds grows like . Not every class behaves this way: for independent fair binary coordinates and the coordinate functions, the

Figure 2: Representation size of the maximum-error greedy construction on threshold products, plotted against . The curves follow the expression in Equation (8); the dashed line is .
procedure selects all r coordinates for every target below one half, while the input itself provides zero error with r bits (Example 4.1).
7.2 Finite-family capacity saturation
We ask how many bits a sparse autoencoder, trained only for reconstruction, requires to support each function in a finite family at a target error. We then decrease the target error to observe whether the required bits increase and whether observation noise is a major source of error.
Setup. Each family is a set of binary functions on a finite set of equally likely inputs, which we call atoms: the powerset family contains every labeling of atoms ( ), and the parity and coordinate families contain the functions and the coordinate functions on , where , for and . The encoder never sees an atom: each atom has a fixed prototype , the encoder sees with fresh Gaussian noise , the label of a task is , and all splits share the atoms and functions. We train top- sparse autoencoders (Makhzani and Frey, 2014; Gao et al., 2025) with dictionary features, keeping the largest activations for each input. After training, we round each retained activation to one of levels including zero. We define the representation bit budget as
This budget counts the bits needed for a fixed-length index of all allowed codes, including codes the trained encoder never uses. We test 36 configurations on each instance, with five random seeds per configuration. For each task, a lookup decoder predicts the most common training label among inputs with the same code. We measure worst-case error as the largest prediction error across all tasks in the family. For each instance, random seed, and error target , we select the tested configuration with the smallest representation bit budget whose validation error is at most .
We then evaluate the selected configuration on a test set and call it certified if its test error also meets the target. Both checks use a one-sided 95% upper confidence threshold on the worst-case error. We compare the minimum bit budgets with two theoretical references in the noiseless setting, where the encoder observes the atom directly. The lossless reference is the number of bits needed to identify the atom, allowing every task to be answered without error. The shattered-set bound , where is the mass of the dually shattered inputs ( for the
(a) Parity

(b) Powerset

(c) Coordinates

Figure 3: Minimum tested bit budget passing validation at each error target, shown as the median over seeds with a configuration. Dotted lines indicate the lossless reference . Open triangles indicate instances for which no configuration passes validation.
powerset family and 1 for the other two), provides a lower bound on the bits required to meet the target error (Proposition 4.1).
Results. The minimum bit budget increases only slightly as the error target decreases. In 15 of the 18 instances with results at multiple targets, the median budget increases by at most two bits between the loosest and strictest selected targets (Figure 3). This limited growth is consistent with the noiseless reference: these finite families admit small representations that already preserve every task without error.
The validation-selected representations also retain their accuracy on the test set. All 479 selections meet their targets in observed test error, and 474 also pass the confidence-threshold check. In 91 other cases, none of the configurations passes the validation check. The median budget is typically one to three bits above the lossless reference , and it exceeds the shattered-set lower bound in every setting with a selection (Figure 4). The prototype-based comparison suggests that observation noise alone does not explain the extra bits: an encoder that assigns each noisy observation to its nearest known prototype can meet error targets by using only bits.
7.3 Accuracy-bit tradeoffs on threshold products
The finite families in Section 7.2 admit short lossless representations. To examine how prediction accuracy changes with representation size, we consider the threshold-product family ( ) from Section 4.3. Each input contains independent coordinates, sampled uniformly from [1024], rescaled to [0, 1]. The task family contains all coordinate thresholds and has dual VC dimension ( ). Representing the input exactly requires bits.
We train sparse autoencoders for reconstruction and vary the quantization precision of their activations to obtain different representation budgets. We evaluate each representation by predicting threshold labels from the reconstructed coordinates and measuring the largest error across all thresholds.
Figure 5 shows that prediction error decreases as the number of bits per dimension increases, with a similar trend across the five dimensions tested. The observed error decreases approximately exponentially.
(a) Parity
(b) Powerset

(c) Coordinates

Noiseless reference (bits)

Seed certified Seed not certified
Figure 4: Bit budgets against the shattered-set bound . Each point represents one selected seed, with offsets for visibility. Filled diamonds were certified on test. The dashed line indicates .

Figure 5: Worst-case error against the bit budget per dimension for reconstruction-trained SAEs, one dot per random seed (three per dimension) for each . are the exact error of equal-width quantization using bits per coordinate. Prediction error decreases as the representation budget increases.
with the normalized bit budget ( ). For comparison, equal-width quantization of each coordinate also achieves exponentially decreasing worst-threshold error. These results illustrate the accuracy-bit tradeoff for learned representations on the threshold-product family.
8 Discussion
A universal representation must retain enough information to answer every task, yet it can be much shorter than the list of task labels used to construct it. The proof makes this distinction quantitative: each useful refinement gains entropy, while dual VC dimension limits the number of possible joint patterns. This gives a deterministic representation of optimal worst-case length and a one-pass implementation for finite classes. The coordinate example shows why the same logarithmic lower bound cannot hold for every class.
Three questions are especially natural. First, can a deterministic partition match the class-specific length achievable with shared randomness? The dual-growth and packing lower bounds identify useful obstructions but do not settle this comparison. Second, can one learn a representation of length with a sample bound whose exponent in is independent of ? The threshold case is understood, but our general learner pays for arbitrary readouts on an adaptively chosen partition. Third, the number of selected functions is known only between and in the worst case. Removing or proving necessary this remaining logarithm would sharpen the feature-selection guarantee.
The representation length is an information measure. It does not bound the computation needed to evaluate the selected functions, find them in an implicit class, or fit every decoder from limited data. Likewise, a short code with unrestricted readouts need not give a low-dimensional representation with linear readouts. Understanding when additional structure makes these representations computationally and statistically practical is a separate question.
AI Disclosure
OpenAI’s Codex was used to revise the exposition, assist with mathematical arguments and proof checks, inspect references, and prepare the LaTeX source. In particular, it helped develop the entropy proofs of the upper bounds and identify scope and quantifier issues in earlier formulations. Anthropic’s Claude Code was used to help prepare figures and assist with writing experimental code.
References
Terrence M. Adams and Andrew B. Nobel. Uniform approximation of Vapnik–Chervonenkis classes. Bernoulli, 18(4):1310–1319, November 2012. ISSN 1350-7265. doi: 10.3150/11-bej379. URL http://dx.doi.org/10.3150/11-BEJ379.
Pankaj K. Agarwal and Jeff Erickson. Geometric range searching and its relatives. In Advances in Discrete and Computational Geometry, volume 223 of Contemporary Mathematics, pages 1–56. American Mathematical Society, 1999. ISBN 9780821878149. doi: 10.1090/conm/223/03131. URL http://dx.doi.org/10.1090/conm/223/03131.
Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. In ICLR 2017 Workshop Track, 2017. URL https://openreview.net/forum?id=HJ4-rAVtl.
Noga Alon, Shay Moran, and Amir Yehudayoff. Sign rank versus VC dimension. In 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pages 47–80. PMLR, 2016. URL https://proceedings.mlr.press/v49/alon16.html.
Noga Alon, Steve Hanneke, Ron Holzman, and Shay Moran. A theory of PAC learnability of partial concept classes, 2021. URL https://arxiv.org/abs/2107.08444.
Miguel E. Andrés, Nicolás E. Bordenabe, Konstantinos Chatzikokolakis, and Catuscia Palamidessi. Geo-indistinguishability: differential privacy for location-based systems. In Proceedings of the 2013 ACM SIGSAC Conference on Computer & Communications Security, CCS '13, pages 901–914, New York, NY, USA, 2013. Association for Computing Machinery. ISBN 9781450324779. doi: 10.1145/2508859.2516735. URL https://doi.org/10.1145/2508859.2516735.
Martin Anthony and John Shawe-Taylor. A result of Vapnik with applications. Discrete Applied Mathematics, 47(3):207–217, December 1993. ISSN 0166-218X. doi: 10.1016/0166-218x(93)90126-9. URL http://dx.doi.org/10.1016/0166-218X(93)90126-9.
Patrick Assouad. Densité et dimension. Annales de l'Institut Fourier, 33(3):233–282, 1983. doi: 10.5802/aif.938. URL https://aif.centre-mersenne.org/articles/10.5802/aif.938/.
Raef Bassily, Albert Cheu, Shay Moran, Aleksandar Nikolov, Jonathan Ullman, and Steven Wu. Private query release assisted by public data. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 695–703. PMLR, 2020. URL https://proceedings.mlr.press/v119/bassily20a.html.
J. Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12:149–198, March 2000. ISSN 1076-9757. doi: 10.1613/jair.731. URL http://dx.doi.org/10.1613/jair.731.
Shai Ben-David, Alex Bie, Clément L. Canonne, Gautam Kamath, and Vikrant Singhal. Private distribution learning with public data: The view from sample compression. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/1687466683649e8bdcdec0e3f5c8de64-Abstract-Conference.html.
Gyora M. Benedek and Alon Itai. Learnability with respect to fixed distributions. Theoretical Computer Science, 86(2):377–389, 1991. doi: 10.1016/0304-3975(91)90026-X. URL https://doi.org/10.1016/0304-3975(91)90026-X.
Ralph Christian Bottesch, Dmitry Gavinsky, and Hartmut Klauck. Correlation in hard distributions in communication complexity. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2015), volume 40 of Leibniz International Proceedings in Informatics (LIPIcs), pages 544–572. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2015. doi: 10.4230/LIPIcs.APROX-RANDOM.2015.544. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.APROX-RANDOM.2015.544.
Trenton Bricken, Adly Templeton, Joshua Batson, Brian Chen, Adam Jermyn, Tom Conerly, Nick Turner, Cem Anil, Carson Denison, Amanda Askell, Robert Lasenby, Yifan Wu, Shauna Kravec, Nicholas Schiefer, Tim Maxwell, Nicholas Joseph, Zac Hatfield-Dodds, Alex Tamkin, Karina Nguyen, Brayden McLean, Josiah E Burke, Tristan Hume, Shan Carter, Tom Henighan, and Christopher Olah. Towards monosemanticity: Decomposing language models with dictionary learning. Transformer Circuits Thread, 2023. URL https://transformer-circuits.pub/2023/monosemantic-features/index.html.
Zachary Chase, Bogdan Chornomaz, Steve Hanneke, Shay Moran, and Amir Yehudayoff. Dual VC dimension obstructs sample compression by embeddings. In Shipra Agrawal and Aaron Roth, editors, Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 923–946. PMLR, 30 Jun–03 Jul 2024. URL https://proceedings.mlr.press/v247/chase24a.html.
Kamalika Chaudhuri and Daniel Hsu. Sample complexity bounds for differentially private learning. In Proceedings of the 24th Annual Conference on Learning Theory, volume 19 of Proceedings of Machine Learning Research, pages 155–186. PMLR, 2011. URL https://proceedings.mlr.press/v19/chaudhurilla.html.
Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley, 2nd edition, 2006. ISBN 9780471241959. doi: 10.1002/047174882x. URL http://dx.doi.org/10.1002/047174882x.
Hoagy Cunningham, Aidan Ewart, Logan Riggs, Robert Huben, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, editors, International Conference on Learning Representations, volume 2024, pages 7827–7845, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/1fa1ab11f4bd5f94b2ec20e794dbfa3b-Paper-Conference.pdf.
Vitaly Feldman and David Xiao. Sample complexity bounds on differentially private learning via communication complexity. SIAM Journal on Computing, 44(6):1740–1764, 2015. doi: 10.1137/140991844. URL https://doi.org/10.1137/140991844.
Leo Gao, Tom Dupre la Tour, Henk Tillman, Gabriel Goh, Rajan Troll, Alec Radford, Ilya Sutskever, Jan Leike, and Jeffrey Wu. Scaling and evaluating sparse autoencoders. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu, editors, International Conference on Learning Representations, volume 2025, pages 26721–26754, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/42ef3308c230942d223c411adf182c88-Paper-Conference.pdf.
Parikshit Gopalan, Adam Tauman Kalai, Omer Reingold, Vatsal Sharan, and Udi Wieder. Omnipredictors. In Mark Braverman, editor, 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), volume 215 of Leibniz International Proceedings in Informatics (LIPics), pages 79:1–79:21, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. ISBN 978-3-95977-217-4. doi:10.4230/LIPics.ITCS.2022.79. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPics.ITCS.2022.79.
Te Sun Han. Nonnegative entropy measures of multivariate symmetric correlations. Information and Control, 36(2):133–156, February 1978. ISSN 0019-9958. doi: 10.1016/s0019-9958(78)90275-9. URL http://dx.doi.org/10.1016/S0019-9958(78)90275-9.
David Haussler. Sphere packing numbers for subsets of the Boolean n-cube with bounded Vapnik–Chervonenkis dimension. Journal of Combinatorial Theory, Series A, 69(2):217–232, February 1995. ISSN 0097-3165. doi: 10.1016/0097-3165(95)90052-7. URL http://dx.doi.org/10.1016/0097-3165(95)90052-7.
Ursula Hebert-Johnson, Michael Kim, Omer Reingold, and Guy Rothblum. Multicalibration: Calibration for the (Computationally-identifiable) masses. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 1939–1948. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/hebert-johnson18a.html.
Rahul Jain and Shengyu Zhang. New bounds on classical and quantum one-way communication complexity. Theoretical Computer Science, 410(26):2463–2477, June 2009. ISSN 0304-3975. doi: 10.1016/j.tcs.2008.10.014. URL http://dx.doi.org/10.1016/j.tcs.2008.10.014.
Pritish Kamath, Omar Montasser, and Nathan Srebro. Approximate is good enough: Probabilistic variants of dimensional and margin complexity. In Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 2236–2262. PMLR, 2020. URL https://proceedings.mlr.press/v125/kamath20b.html.
Daniel Kane, Roi Livni, Shay Moran, and Amir Yehudayoff. On communication complexity of classification problems. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 1903–1943. PMLR, 2019. URL https://proceedings.mlr.press/v99/kane19a.html.
I. Kremer, N. Nisan, and D. Ron. On randomized one-round communication complexity. computational complexity, 8(1):21–49, Jun 1999. ISSN 1420-8954. doi: 10.1007/s000370050018. URL https://doi.org/10.1007/s000370050018.
Eyal Kushilevitz and Noam Nisan. Communication Complexity. Cambridge University Press, 1997.
Alireza Makhzani and Brendan Frey. k-sparse autoencoders, 2014. URL https://arxiv.org/abs/1312.5663.
Jiří Matoušek. Efficient partition trees. Discrete & Computational Geometry, 8(3):315–334, Aug 1992. ISSN 1432-0444. doi: 10.1007/BF02293051. URL https://doi.org/10.1007/BF02293051.
Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. The benefit of multitask representation learning. Journal of Machine Learning Research, 17(81):1–32, 2016. URL http://jmlr.org/papers/v17/15-242.html.
Marco Molinaro, David P. Woodruff, and Grigory Yaroslavtsev. Amplification of one-way information complexity via codes and noise sensitivity. In Magnús M. Halldórsson, Kazuo Iwama, Naoki Kobayashi, and Bettina Speckmann, editors, Automata, Languages, and Programming, pages 960–972, Berlin, Heidelberg, 2015. Springer Berlin Heidelberg. ISBN 978-3-662-47672-7. doi: 10.1007/978-3-662-47672-7_78. URL https://doi.org/10.1007/978-3-662-47672-7_78.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748–8763. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/radford21a.html.
Sandro Rodriguez Garzon and Bersant Deva. Geofencing 2.0: taking location-based notifications to the next level. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing, UbiComp '14, pages 921–932, New York, NY, USA, 2014. Association for Computing Machinery. ISBN 9781450329682. doi: 10.1145/2632048.2636093. URL https://doi.org/10.1145/2632048.2636093.
N Sauer. On the density of families of sets. Journal of Combinatorial Theory, Series A, 13(1):145–147, July 1972. ISSN 0097-3165. doi: 10.1016/0097-3165(72)90019-2. URL http://dx.doi.org/10.1016/0097-3165(72)90019-2.
Claude E. Shannon. Coding theorems for a discrete source with a fidelity criterion. IRE National Convention Record, 7(4):142–163, 1959.
Saharon Shelah. A combinatorial problem; stability and order for models and theories in infinitary languages. Pacific Journal of Mathematics, 41(1):247–261, April 1972. ISSN 0030-8730. doi: 10.2140/pjm.1972.41.247. URL http://dx.doi.org/10.2140/pjm.1972.41.247.
Alexander A. Sherstov. Communication complexity under product and nonproduct distributions. Computational Complexity, 19(1):135–150, 2010. doi: 10.1007/s00037-009-0285-1. URL https://doi.org/10.1007/s00037-009-0285-1.
Adly Templeton, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, and Tom Henighan. Scaling monosemanticity: Extracting interpretable features from Claude 3 Sonnet. Transformer Circuits Thread, 2024. URL https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html.
Naftali Tishby, Fernando C. Pereira, and William Bialek. The information bottleneck method. In Proceedings of the 37th Annual Allerton Conference on Communication, Control, and Computing, pages 368–377. University of Illinois, 1999. URL https://arxiv.org/abs/physics/0004057.
Nilesh Tripuraneni, Michael Jordan, and Chi Jin. On the theory of transfer learning: The importance of task diversity. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 7852–7862. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/59587bfffec1c7846f3e34230141556ae-Paper.pdf.
V. N. Vapnik and A. Ya. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability & Its Applications, 16(2):264–280, January 1971. ISSN 1095-7219. doi: 10.1137/1116025. URL http://dx.doi.org/10.1137/1116025.
Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In Proceedings of the 26th Annual International Conference on Machine Learning, ICML '09, pages 1113–1120, New York, NY, USA, 2009. Association for Computing Machinery. ISBN 9781605585161. doi: 10.1145/1553374.1553516. URL https://doi.org/10.1145/1553374.1553516.
Andrew Chi-Chih Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science (FOCS), pages 222–227. IEEE, 1977. doi:10.1109/sfcs.1977.24. URL http://dx.doi.org/10.1109/SFCS.1977.24.
Shuheng Zhou, John Lafferty, and Larry Wasserman. Compressed and privacy-sensitive sparse regression. IEEE Transactions on Information Theory, 55(2):846–866, February 2009. ISSN 0018-9448. doi:10.1109/tit.2008.2009605. URL http://dx.doi.org/10.1109/TIT.2008.2009605.
A Additional Related Work
We complement the direct comparisons in Section 1.2 with connections to other learning and representation models.
Evaluation problems and private learning. Feldman and Xiao (2015) relate private learning and representation dimension to the randomized one-way complexity of evaluating a concept. Their communication direction is the reverse of ours: the concept holder sends a message to the example holder. In that orientation the row class is F, with dimension d, rather than . They distinguish deterministic and probabilistic families of hypotheses used to approximate a target, and relate these to private-coin and public-coin protocols, respectively. In particular, their term deterministic representation dimension does not mean deterministic communication. These connections establish the importance of evaluation problems in learning theory, but their direction, privacy requirement, and approximation objects differ from the deterministic compression of an input considered here.
For a fixed input distribution, approximation by covers in the disagreement metric also appears in private learning with a known reference distribution (Chaudhuri and Hsu, 2011). Feldman and Xiao (2015) identify fixed-distribution deterministic representation dimension with the logarithm of the smallest such cover, allowing hypotheses outside the original class.
Disambiguation and sample compression. Dual VC dimension also enters disambiguation of partial concept classes: Alon et al. (2021) use minimax and uniform convergence on the dual class to construct small majority representations. That construction completes partially specified hypotheses, whereas our encoder partitions the input domain. Likewise, the embedding obstructions of Chase et al. (2024) concern compression of labeled samples rather than a finite code for each input.
Other communication and representation models. Kane et al. (2019) study classification from samples distributed between communicating parties, counting transmitted examples as well as bits. Their coVC dimension measures the size of certificates of nonrealizability and is distinct from dual VC dimension. For representations with linear readouts, sign rank and its approximate variants provide different complexity measures (Alon et al., 2016; Kamath et al., 2020). For example, bounded VC dimension alone does not bound sign rank (Alon et al., 2016). Our bit-length bounds allow arbitrary task-specific decoders and therefore do not imply comparably small dimension or norm for linear representations.
Representations shared across tasks. Baxter (2000), Maurer et al. (2016), and Tripuraneni et al. (2020) study how a representation learned from several related tasks reduces the sample complexity of new tasks. They measure the complexity of a class of representation maps and of the predictors placed on top of them, and they assume that the tasks share a low-dimensional structure. In the task reading of our problem, we instead fix the class of tasks, allow arbitrary decoders, require one representation to serve every task in the class, and count bits. Our results identify a combinatorial property of the class, the dual VC dimension, that determines how much any such shared representation must store.
Information-theoretic objectives. Rate-distortion theory (Shannon, 1959) asks for the fewest bits that describe a source within a given distortion, and the information bottleneck (Tishby et al., 1999) trades the information a representation keeps about the input against the information it keeps about one target variable. Our distortion is the worst error over a whole class of targets, and we measure the representation length deterministically rather than by mutual information. The entropy of the representation nonetheless drives our construction, and Appendix F makes the link to log-loss reconstruction explicit.
Multicalibration. Multicalibration (Hebert-Johnson et al., 2018) and omniprediction (Gopalan et al., 2022) ask for a single predictor that is simultaneously good for a class of tests or losses. Universal representations ask for a single encoder that serves a whole class of functions. Section F.4 shows that the two are equivalent up to a factor of two in the error, once one asks for multicalibration under every relabeling of the data.
B Interpretations of the representation guarantee
Remark B.1 (Boundary mass) For a measurable set and a finite partition , let be the union of the cells with and . A cell outside contributes nothing to , and a cell inside contributes at most half its mass. Hence , and the theorem of Adams and Nobel (2012) implies that for every whenever has finite VC dimension.
B.1 Agnostic prediction and other interpretations
By Proposition 3.1, a universal representation of length with error is the same object as a partition of into at most cells on which every member of has majority error at most . This object can be read in several ways, and the results of this paper apply to all of them.
Downstream tasks. If the members of are tasks that will be asked of a learned representation, then Enc is a task-agnostic representation and is the best readout for task .
Queries and one-way communication. If the members of are queries, then is a sketch of the data point from which every query can be answered, and is the deterministic one-way distributional communication complexity of evaluating , where Alice holds , Bob holds , and the error is measured for the worst (Kushilevitz and Nisan, 1997).
Coarse graining. If the members of are observables, we can regard the cells of the partition as macro-states. For each observable, we predict its majority value within each macro-state and require the resulting error, averaged over macro-states according to their probabilities under , to be at most . Remark B.1 relates this to the finite approximability of Adams and Nobel (2012).
Hypothesis classes. If is a hypothesis class, then a universal representation is a feature map that is sufficient for agnostic learning with , simultaneously for every labeling of the inputs.
Proposition B.1 (Agnostic sufficiency) For an encoder and , the following are equivalent.
(i) With majority decoding, Enc is a universal representation of F with error at most .
(ii) For every distribution P of a pair with and ,
Proof. Assume (i), fix and , and let be the majority decoder of . The disagreement bound gives
Taking the infimum over gives (ii). Conversely, given (ii) and , take : some has , so the majority error of is at most .
So replacing the inputs by an -universal representation costs at most in approximation error for every target, and the representation is computed without seeing any labels.
Calibrated predictors. Section F.4 gives a further equivalent reading, up to a factor of two in : for every labeling, the conditional-mean predictor based on the representation is multicalibrated with respect to .
C Refinements of the deterministic bounds
C.1 Details of the stopping calculation
Lemma C.1 (Few realized patterns) For every list g of t functions in , , and if then .
Proof. The first bound follows because takes at most values; the second is the Sauer–Shelah bound (5).
Lemma C.2 (Solving the stopping inequality) Let and . Then
Proof. Let and . The hypothesis reads . The function is increasing for , and at it equals , because for . Hence , that is, .
C.2 A bound from the full dual growth function
The proof uses the dual VC dimension only through the Sauer–Shelah bound on . Keeping itself gives a bound that can be much stronger for classes whose dual growth is smaller than the Sauer–Shelah bound.
Definition C.3 (Stopping index) For , let , with if no such exists.
Theorem C.4 (Dual-growth upper bound) Let be a distribution on and . If , then Algorithm 1 stops after selecting functions, every then satisfies , and
Proof. As in the proof of Theorem 4.1, after any positive number of selections, . If the procedure made selections, this would contradict the definition of , so it stops after some selections, with at most cells.
C.3 Zero error and finite classes
At zero error, the answer is the number of distinct label vectors on the support. To avoid null sets, we state it for finitely supported distributions.
Proposition C.1 (Zero-error complexity) If has finite support and , then . If is finite with , then .
Proof. Two support points with different label vectors are separated by some function, so a zero-error representation must put them in different cells; conversely, the index of the label vector is a zero-error representation. The bound on is the Sauer–Shelah lemma for , viewed as a class on the points of .
For a finite class of size and , writing the index of the full label vector works for every distribution, so Theorem 4.1 and Proposition C.1 give
The upper bound (9) interpolates between the approximate bound and the zero-error bound, and the threshold product shows that this interpolation is tight.
Theorem C.5 (Finite-class interpolation) There are absolute constants such that for every , every , and every , there are a class with and and a distribution such that
Proof. Put and . The class has functions and dual VC dimension . Also , so Theorem 4.4 gives bits. Taking and ensures and . Therefore , proving the claim with .
C.4 How many functions must a proper representation use?
The entropy-greedy representation is a function of the labels of the selected functions. We now count the selected functions rather than the bits.
Definition C.6 (Selection complexity) The selection complexity is the least such that there are and, for every , a map with
Every f is thus nearly a Boolean function of the selected functions; this does not require f to lie in their linear span.
Corollary C.7 (Selection upper bound) For every distribution D and every ,
Proof. Use the functions selected by Algorithm 1, which are fewer than by Theorem 4.1, and let output the majority label of on each cell.
Theorem C.8 (Selection lower bound) There are absolute constants such that for every and , the class with and the uniform distribution satisfy .
Proof. Let , so that when , and let be uniform on . Suppose that and decoders achieve error at most for every function, and let be the number of selected thresholds of coordinate . These thresholds cut into at most intervals of consecutive integers, and the partition generated by all selected functions is the product of these interval partitions over the coordinates.
Fix a coordinate and an interval of points, and choose such that labels points of with one and with zero. On every cell whose -th factor is , the coordinate is uniform on and independent of the other coordinates, so any decoder errs on with conditional probability at least . These cells have total mass , so the error on is at least . Error at most therefore forces , that is, every interval is a single point. Hence for every , and when for a small enough constant .
So the worst-case number of selected functions lies between and .
D Learning from samples: algorithms and proofs
D.1 The empirical entropy-greedy learner
Algorithm 2: SAMPLEGREEDY(F, S, ε)
uniform distribution on the sample multiset
(g, Enc, ·) ← ENTROPYGREEDY(F, , ε/4)
for each do
dec majority of among samples with code ; use 0 on ties or empty cells
end
return (Enc, (dec ) )
For an infinite class, the decoder family is specified by its majority rule rather than enumerated. The same oracle qualification as for Algorithm 1 applies to selecting functions. By Theorem 4.1, the selected list has fewer than
functions, and every function has empirical error at most . To control the population error, define
Lemma D.1 (Complexity of the error events) There is an absolute constant C such that, for every integer ,
Proof. Fix points and an integer . The restrictions of can be chosen in at most ways. Once these functions are fixed, the points realize at most joint patterns of . The decoder therefore induces at most labelings of these points. Summing over , the growth function of is at most
If the points are shattered and , Sauer–Shelah gives
Put and . For a sufficiently large absolute constant , at the right side is less than : indeed , so . Moreover, the derivative of the right side with respect to is beyond this point. The inequality therefore fails for all larger . The case is already covered by the claimed bound.
We use the following standard relative form of VC uniform convergence (Vapnik and Chervonenkis, 1971; Anthony and Shawe-Taylor, 1993).
Fact D.2 (Relative deviation bound) Let A be a class of events of VC dimension at most V satisfying the measurability assumptions of Section 5. For an absolute constant C, if , , and
then, with probability at least , every satisfies .
Proof of Theorem 5.2. Each error event of Algorithm 2 belongs to and has empirical probability at most . By Lemma D.1 and Fact D.2, the sharper, class-dependent condition
makes every population error at most .
To obtain the displayed dimension-only bound, write and . We have and by Sauer–Shelah. Also by Assouad's inequality, so
Consequently,
The last inequality uses and . Enlarging the constant in the theorem therefore implies (11).
Finally, the selected list has length , hence . If , Sauer–Shelah bounds its number of patterns by ; if , it has at most patterns. In both cases the bit length is at most
Algorithm 3: COVERREPRESENTATION(F, S, ε)
a maximal subset of with pairwise -distance at least
index of the joint pattern
for each do
Choose with
end
return
D.2 The empirical cover learner
Proof of Theorem 5.3. Haussler's packing bound (Haussler, 1995) for the empirical distribution gives . In particular, a finite maximal set exists, and maximality gives the required for every . Disagreements between pairs from have growth function at most on points and hence VC dimension . By Fact D.2, simultaneously for every pair,
The representation has at most values. If , its bit length is at most by Sauer–Shelah. If , its bit length is at most . Both cases give bits.
Corollary D.3 (Matching sample rate for thresholds) For thresholds on a line, Algorithm 3 uses at most representation values and has error with confidence from samples.
Proof. Order the members of by their thresholds. The empirical disagreement of two consecutive members is the difference of their empirical positive masses. These disjoint increments sum to at most one, and each is at least , so . Nested thresholds realize at most patterns, corresponding to intervals between consecutive cut points. The sample bound follows from Theorem 5.3 with .
D.3 Proof of the threshold sample lower bound
Proof of Theorem 5.4. Set and . Choose a uniformly random -subset and let be uniform on . Since , success requires every binary decoder to be correct at every point of .
Condition on the sample and on the learner's random seed. The output representation and decoders are now fixed. If there are more than representation values, the learner has already failed the length requirement. Otherwise, let consist of the points at which every threshold is decoded correctly. Distinct points have distinct threshold label vectors, so each representation value accounts for at most one point of and .
Write for the observed support points and for the unseen ones. Given , the set is uniform among all -subsets of . This remains true after conditioning on the independent random seed. If is nonempty, the conditional probability that , as success requires, is at most
Indeed, the first bound follows by selecting a uniformly random member of U.
It remains to bound the probability of seeing every support point. Let . If , then for all sufficiently large . The unseen-point indicators are negatively correlated, because , so . Chebyshev's inequality yields . Thus the success probability, averaged over , the sample, and the learner's randomness, is at most . Some fixed therefore violates the required confidence. Since , this proves the claimed bound with an absolute constant .
E Extensions
This appendix considers four variations of the model. Thresholding extends the upper bound to real-valued functions, shared randomness gives the familiar dual-cover characterization, and a message from the function holder gives an upper bound in terms of primal VC dimension. For halfspaces, a classical geometric partition theorem gives a concrete alternative construction.
E.1 Real-valued functions
Let be a class of measurable functions. In this subsection, we extend Definition 3.1 by allowing a decoder Dec: and requiring
We use for the minimum length in this extended model. For binary tasks, allowing these outputs does not change the minimum length: on a cell where has mean , the expected absolute error of a prediction is , which is minimized by a binary majority label.
The dual class is now real-valued, and we write for its pseudo-dimension. Thus is the largest number of functions for which there are thresholds such that the vectors realize every binary pattern as varies. For and , let , and let .
Lemma E.1 (Threshold lifting) .
Proof. A set of functions is dual-shattered exactly when for every some has for all . Two thresholds of the same function are nested, so they cannot be dual-shattered together. Hence the underlying are distinct. The condition is then the definition of pseudo-shattering by with witnesses .
Theorem E.2 (Real-valued upper bound) If , then for every distribution and , .
Proof. If , every is constant and zero bits suffice. Assume . By Lemma E.1 and Theorem 4.1 applied to , there is a partition with at most cells on which every has majority error at most . On a cell of positive mass, let the decoder output a median of given ; its value on zero-mass cells is arbitrary. A median gives compatible majority decisions at all thresholds: if then , and if then . By the identity for ,
where is the cell of X. The length bound follows as in Theorem 4.1.
Binary classes are special cases, and the pseudo-dimension of a binary class is its VC dimension, so Theorem 4.4 shows that Theorem E.2 is tight in the worst case.
Remark E.3 (Scale-sensitive bounds) Pseudo-dimension does not distinguish large variations in function values from small ones. A bound in terms of the dual fat-shattering dimensions at the relevant scales could therefore be sharper; we do not pursue such a bound here.
E.2 Randomized representations and dual metric entropy
We return to binary classes and binary decoder outputs. A public-coin representation draws a seed that both parties see, independently of , and then uses deterministic maps of length . Its error is , and is the least that achieves error . We work with finite and so that the minimax theorem applies without topological conditions, and we let . By the minimax principle, a public-coin representation that serves every exists exactly when, for every distribution on functions, some deterministic representation achieves the same error averaged over . The latter is the product-distribution setting of Kremer et al. (1999) and Molinaro et al. (2015), since and are independent. The results below restate this connection and the packing characterization in our notation; they are included for comparison with the deterministic theorem.
For a distribution on , the dual distance is . It is the probability that a random function drawn from distinguishes from , and is a pseudometric because distinct inputs may have distance zero. Let be the least size of a set such that every has for some , and say that form a strict -packing if for all .
Theorem E.4 (Upper bound by dual covers) For every finite class F on a finite domain,
Proof. Fix and , and let be a cover of size . The encoder sends the index of a center with , and the decoder outputs . Then . Set and pad shorter encodings to length . Consider the finite zero-sum game in which one player picks , the other picks a length- deterministic representation with a binary decoder, and the payoff is the error on . We just showed that every mixed strategy of the first player has a pure response of payoff at most . By the minimax theorem (see Yao, 1977), some mixture of representations has payoff at most against every , and this mixture is a public-coin universal representation.
Haussler’s packing bound (Haussler, 1995) applied to gives for every , hence .
Theorem E.5 (Packing lower bound) Let Q be a distribution on F, let form a strict -packing for , and let D be uniform on them. Every public-coin universal representation with error at most has length at least .
Proof. Averaging the guarantee over and the seed gives a seed with . For this seed, let ; by Markov's inequality, at least indices have . If two such points lie in the same cell, the triangle inequality gives , a contradiction. So there are at least cells.
A maximal strict -packing is a cover at radius . Thus the two bounds characterize public-coin complexity up to a constant change in accuracy and one bit of rounding.
Corollary E.6 (Metric-entropy characterization, adapted from Molinaro et al., 2015) For every finite class F on a finite domain,
Corollary E.7 (Worst-case public-coin complexity) There is such that for every and , , where the supremum is over classes with .
Proof. The upper bound follows from Theorem 4.1, since a deterministic representation is a public-coin representation. For the lower bound, the proof of Theorem 4.4 uses only the error averaged uniformly over the functions of , and some seed of a public-coin representation achieves this average error.
The following multiplicative-weights argument limits the number of representations needed in the mixture.
Proposition E.1 (Small-support mixtures) Let , let with , and suppose that for every distribution on some deterministic representation of length has , where is its error on . Then there are deterministic representations of length whose uniform mixture has error at most on every .
Proof. Start from weights and let . In round , choose with and set . The total weight satisfies , so . Since for and , . Hence .
E.3 Interaction
The one-way model forces the encoder to summarize the label vector of x across all functions. If the function holder may speak first, a cover of the primal class gives a different upper bound.
Theorem E.8 (Two-message upper bound) For every distribution and , there is a deterministic two-message protocol, in which the function holder speaks first, with error at most and bits of communication, where is an absolute constant.
Proof. By Haussler’s bound, has a subset of size at most such that every has some with . The function holder sends the index of such a , and the input holder replies with the bit . This costs bits; increasing the absolute constant absorbs the ceiling.
Example E.1 (Coordinates) For the coordinate functions on , , so under the uniform distribution a one-way representation needs bits even at constant error (Proposition 4.1). With interaction, the function holder sends and the input holder replies with , which uses bits and has zero error.
E.4 Halfspaces
For halfspaces under a uniform distribution on finitely many points, the partition theorem of Matoušek (1992) gives groups of points contained in simplices. These groups, rather than the simplices themselves, are the cells of the representation. A hyperplane crosses a relatively open simplex if it intersects the simplex without containing it.
Theorem E.9 (Simplicial partitions, Matoušek, 1992) For every there is such that the following holds. Let be finite, let be an integer with , and let . Then can be partitioned into classes with , each contained in a relatively open simplex , such that every hyperplane crosses at most of the simplices.
Proposition E.2 (Explicit representation for halfspaces) Let be the class of closed affine halfspaces in with , let , and let be uniform on a finite set with . Then . On the support , the encoder cells are the groups supplied by Theorem E.9.
Proof. Let and apply Theorem E.9 with , which satisfies ; then . If the boundary hyperplane of a halfspace does not cross , then lies on one side of it or inside it, and the halfspace is constant on . A crossed class has mass less than , so its minority mass is less than . Hence the majority error is at most . The number of classes is at most , because when , and Proposition 3.1 gives at most bits. Assign inputs outside an arbitrary codeword; they have zero probability under .
The dual VC dimension of affine halfspaces in is at most , so Theorem 4.1 already gives bits with an absolute constant. The geometric construction instead explains the error through hyperplane crossings. The containing simplices need not be disjoint, and no convexity of the encoder cells is claimed.
F Universal representations as learning objectives
The entropy potential has an exact interpretation as optimal reconstruction log loss. We show that maximizing this entropy over sets of selected functions also yields a universal representation, and explain why both the choice of representation class and the reconstruction objective matter. Finally, we relate universal representations to the multicalibration of conditional-mean predictors under arbitrary labelings.
F.1 Self-reconstruction
Assume that is finite. A reconstruction predictor, separate from the binary task decoder, predicts a distribution over inputs from the representation . Equivalently, it is a map that is constant on every cell, with loss . Here is the probability assigned to reconstructing after observing the cell of .
Proposition F.1 (Optimal self-reconstruction loss) The best predictor that is constant on each cell is , and its loss is .
Proof. By the standard entropy characterization of log loss (Cover and Thomas, 2006), on each cell, log loss is minimized by the conditional distribution, whose loss is the conditional entropy; averaging over cells gives . Since is a function of X, the chain rule gives .
So each step of Algorithm 1, which raises by more than , lowers the optimal self-reconstruction loss by more than bits.
This identity alone does not make arbitrary reconstruction-optimal encoders universal. For example, let consist of independent fair bits and let . Among all one-bit encoders, maximizes and minimizes the optimal reconstruction log loss , yet every decoder of from has error . The next result therefore optimizes over representations generated by members of , with a budget on how many functions may be selected.
F.2 One-shot entropy maximization
With a large enough selection budget, every joint-entropy maximizer gives the required guarantee.
Theorem F.1 (One-shot entropy maximization) Let be finite and . There is an absolute constant such that, for every integer , every maximizer of over sets with satisfies for every .
Proof. Write and . The maximum exists because is finite and hence is finite. Let attain it, and suppose that some has . By Lemma 4.2, adding raises the entropy by more than . If , this contradicts maximality immediately. Otherwise , , and
In particular, . Choose an entropy-maximizing set of exactly functions; padding any smaller maximizer is possible and cannot decrease entropy. If is a uniformly random -subset of , Han's inequality (Han, 1978) gives
Consequently, the dual Sauer bound yields
For a sufficiently large absolute , the last expression is at most when , by the calculation in Lemma C.2. This is a contradiction.
F.3 A coordinate-wise objective fails
When the input is a vector , it is tempting to replace the joint entropy of the selected functions by the total information they carry about the individual coordinates,
Here is mutual information. Maximizing is equivalent to minimizing the sum of the optimal log losses for reconstructing the coordinates separately. The -greedy procedure starts from and, while some function has majority error more than , adds an unselected function that maximizes . We allow this rule to select a function whose current majority error is already at most .
Theorem F.2 (Coordinate-wise information does not suffice) Let .
(a) For every integer there are a distribution on and a class with on which the -greedy procedure selects at least functions, and for every no -set maximizing is a universal representation with error .
(b) For every integer there are , a distribution of on with , and on which the -greedy procedure selects at least functions, and for every no -set maximizing is a universal representation with error .
In (a), nested thresholds each carry information about some coordinate, while an indispensable parity bit carries no information about any coordinate separately. In (b), rare duplicated bits outweigh a single fair bit. Section F.5 gives the constructions. These counterexamples show that coordinate information alone need not prioritize functions whose current majority error exceeds . If we restrict each choice to such a function, Lemma 4.2 guarantees an increase of more than in joint entropy at every step, regardless of the choice rule. The argument for Theorem 4.1 then bounds the number of selections by , including when we use to choose among these functions.
F.4 Multicalibration under relabeling
Fix a distribution on and a representation with finitely many values. For a joint distribution of with and -marginal , let be the conditional-mean predictor. Following the averaged formulation of multicalibration (Gopalan et al., 2022), for a binary function define its mass-weighted multicalibration error by
This averages the magnitude of the residual bias for the group across prediction values, weighting each group and prediction value by its probability. It does not require a uniform error bound in every prediction bin. We ask whether the conditional-mean predictor has small error under every labeling . Write .
Theorem F.3 (Relabeling-robust multicalibration) For every representation Z and binary function f,
where the supremum is over joint distributions P of with X-marginal D and .
Proof. Fix and . Condition on a value of , write , and let and , with arbitrary values in when the conditioning event has probability zero. Then and
whose absolute value is at most . Write . Since is a function of , the tower property and Jensen's inequality give
For the reverse inequality, take . Then , and conditioning on gives
so equality holds. Finally, because is binary.
Corollary F.4 (Equivalence with universal representations) For every binary function f,
Consequently, let be the least number of bits of a representation Z such that
Then
Proof. By Lemma 3.3, . For , , as one checks for using . Averaging and applying Theorem F.3 gives the first claim. If , then , which gives the upper bound on ; if , then , which gives the lower bound.
Thus the conditional-mean predictor is multicalibrated under every labeling precisely when the representation approximately preserves each member of , up to a factor of two in the error. We distinguish this requirement from asking, for each labeling, whether some -based predictor has small error for every , without also requiring ordinary calibration. Here we evaluate an arbitrary predictor using the same residual expression that defines above. This weaker requirement can lose the equivalence when omits the constant-one test: if and , the constant predictor has zero error for every , even with a constant representation. That predictor need not be ordinarily calibrated.
If we require ordinary calibration, we retain the lower direction even when we allow an arbitrary predictor . Indeed, for the labeling , calibration means , so and
The residual conditioned on equals , and the last inequality follows from conditional total variance because is a function of Z. Thus allowing a calibrated Z-based predictor for each labeling still gives the lower bound in Corollary F.4.
F.5 Coordinate-wise counterexamples
Proof of Theorem F.2.
Part (a). Write inputs as . Under , choose uniform in , set and for , and draw independent and uniform. For an arbitrary input, let , with if . Let for , let , and let .
The thresholds are nested, so a dual-shattered set contains at most one of them, and . The pair is dual-shattered, since can be chosen with and can make either value; so .
Suppose the selected set consists of thresholds only, and let be their labels, a function of . The bit is independent of and of , so for every coordinate , and adding does not increase . If is not selected, the values and give the same , both with positive probability. Conditioned on that value of , the coordinate and the label both take the value one with positive probability but never simultaneously, so and adding strictly increases . So the -greedy procedure selects all thresholds before . It cannot stop earlier, because while is unselected, is a uniform bit independent of the representation, and every decoder errs on it with probability . Hence at least functions are selected.
For the one-shot statement, let be a t-set with . If , some threshold is missing, and replacing by strictly increases by the two computations above. So no maximizer contains , and every maximizer errs on with probability .
Part (b). Choose with and an integer with . Let be a uniform bit and independent Bernoulli( ) bits, independent of . The input consists of and identical copies of each , so , and is the set of coordinate functions. Then .
Suppose the selected coordinates reveal some of the but not , and let be their values. Adding increases by exactly , since is independent of everything else. Adding a coordinate of an unrevealed block increases by at least . Coordinates of revealed blocks add nothing. So the -greedy procedure reveals all rare bits before selecting , and it cannot stop before selecting , because is a uniform bit independent of the other coordinates. Hence at least functions are selected.
For the one-shot statement, a set that reveals distinct rare bits has . Since , every maximizer with elements reveals distinct rare bits and excludes , and therefore errs on with probability .
G Experimental configurations
Finite-family experiment. The Gaussian observation noise has standard deviation 0.1. Each instance uses training observations, validation observations, and test observations. The configuration grid is
Each of the 36 configurations is trained separately with five random seeds per instance, providing 3,420 training runs. Before quantization, retained activations are clipped at the 99.9th percentile. We evaluate the error targets
Threshold-product experiment. For each dimension considered in Section 7.3, we use 65,536 training observations and 65,536 test observations, shared across three random seeds. We train one autoencoder per seed with and , then quantize each trained model at . This provides 15 trained models and 75 quantized representations.