arXiv:2610.27402stat.MLOct 2026

Manuscript Offprint

arXiv:2610.27402

Communication Complexity of Universal Features

Lunjia Hu, Anish Jayant, Peter Li, Princewill Okoroafor, Abhishek Shetty

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 X∼DX \sim D and produces a finite encoding before a task f∈F⊆{0,1}Xf \in \mathcal{F} \subseteq \{0,1\}^{\mathcal{X}} is specified. For each task, a decoder must predict f(X)f(X) with error at most ε\varepsilon under DD. We construct an encoder that outputs a representation with O(d∗log⁡(1/ε))O(d^* \log(1/\varepsilon)) bits, where d∗d^* is the dual VC dimension of F\mathcal{F}. Our encoder greedily selects O((d∗/ε)log⁡(1/ε))O((d^*/\varepsilon) \log(1/\varepsilon)) 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 d∗≥1d^* \geq 1 and ε<1/4\varepsilon < 1/4 up to a universal constant factor, and instance-wise optimal for every family F\mathcal{F} up to an O(log⁡(1/ε))O(\log(1/\varepsilon)) 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 H\mathcal{H}, 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 XX drawn from a known distribution DD on a domain X\mathcal{X}, and outputs a representation of bb bits. A decoder later receives the representation together with a function ff from a known class F⊆{0,1}X\mathcal{F} \subseteq \{0,1\}^{\mathcal{X}}, and must predict f(X)f(X). We call the encoder-decoder pair a universal representation of F\mathcal{F} with error ε\varepsilon if

sup⁡f∈FPr⁡X∼D[Dec(Enc(X),f)≠f(X)]≤ε.(1)\sup_{f\in\mathcal{F}}\Pr_{X\sim D}\left[\mathrm{Dec}(\mathrm{Enc}(X),f)\neq f(X)\right]\leq\varepsilon. \tag{1}

Here Enc(X)∈{0,1}b\text{Enc}(X) \in \{0,1\}^b is the representation, Dec(Enc(X),f)∈{0,1}\text{Dec}(\text{Enc}(X), f) \in \{0,1\} is the prediction for ff, and the supremum says that a single representation must serve every member of F\mathcal{F}. We write CCdet→(F,D,ε)\text{CC}_{\text{det}}^{\rightarrow}(\mathcal{F}, D, \varepsilon) for the least bb for which a universal representation with error ε\varepsilon 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 X\mathcal{X} on which every member of F\mathcal{F} is nearly constant. Furthermore, it is the minimum length of a feature map that loses at most ε\varepsilon for agnostic learning with F\mathcal{F}.

Prior work has focused on a randomized variant of CCdet→(F,D,ε)\text{CC}_{\text{det}}^{\rightarrow}(\mathcal{F}, D, \varepsilon), where we allow the encoder and decoder to share a random seed ω\omega, drawn in advance of the data point X∼DX \sim D and the downstream task f∈Ff \in \mathcal{F}. This corresponds to the public-coin setting in communication complexity. In this setting, our error goal takes an expectation over the random seed:

sup⁡f∈FPr⁡ω,X∼D[Decω(Encω(X),f)≠f(X)]≤ε.(2)\sup_{f\in\mathcal{F}}\Pr_{\omega,X\sim D}\left[\mathrm{Dec}_{\omega}(\mathrm{Enc}_{\omega}(X),f)\neq f(X)\right]\leq\varepsilon. \tag{2}

Let CCpub→(F,D,ε)\text{CC}_{\text{pub}}^{\rightarrow}(\mathcal{F}, D, \varepsilon) 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 F\mathcal{F} (Definition 2.2).

Proposition 1.1 (Kremer et al., 1999; Molinaro et al., 2015; Bottesch et al., 2015) For every function family F\mathcal{F} with finite dual VC dimension d∗≥1d^* \geq 1 and every ε∈(0,1/4)\varepsilon \in (0, 1/4),

(1−h2(ε))d∗≤sup⁡DCCpub→(F,D,ε)≤O(d∗log⁡1ε),(1-h_{2}(\varepsilon))d^{*}\leq\sup_{D}\mathrm{CC}_{\mathrm{pub}}^{\rightarrow}(\mathcal{F},D,\varepsilon)\leq O\left(d^{*}\log\frac{1}{\varepsilon}\right),

(3) where the supremum is over all distributions DD over the domain X\mathcal{X} and h2(u)=−ulog⁡2u−(1−u)log⁡2(1−u)h_2(u) = -u \log_2 u - (1 - u) \log_2(1 - u) is the binary entropy.

This result gives a characterization of the public-coin communication complexity CCpub→\mathrm{CC}_{\mathrm{pub}}^{\rightarrow} in terms of the dual VC dimension d∗d^*. Moreover, the packing characterization of Molinaro et al. (2015) implies that for every d∗≥1d^* \geq 1 and every sufficiently small ε\varepsilon, some class F\mathcal{F} of dual VC dimension d∗d^* and some distribution DD require Ω(d∗log⁡(1/ε))\Omega(d^* \log(1/\varepsilon)) bits even with shared randomness. Thus the O(d∗log⁡(1/ε))O(d^* \log(1/\varepsilon)) upper bound in (3) is worst-case optimal up to a universal constant for every d∗≥1d^* \geq 1 and sufficiently small ε\varepsilon.

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 F\mathcal{F} of finite VC dimension dd satisfies CCdet→(F,D,ε)<+∞\mathrm{CC}_{\mathrm{det}}^{\rightarrow}(\mathcal{F}, D, \varepsilon) < +\infty for every distribution DD and every ε>0\varepsilon > 0, but they do not provide a uniform upper bound that holds simultaneously for all distributions DD. Such a uniform upper bound can be inferred from the following stronger result:

Proposition 1.2 For every family F\mathcal{F} with VC dimension d≥1d \geq 1 and dual VC dimension d∗≥1d^* \geq 1, for every distribution DD on the domain X\mathcal{X} and every ε∈(0,1/4)\varepsilon \in (0, 1/4), we have

CCdet→(F,D,ε)≤O(dd∗log⁡(1/ε)).(4)\mathrm{C C}_{\mathrm{d e t}}^{\rightarrow}(\mathcal{F},D,\varepsilon)\leq O(d d^{*}\log(1/\varepsilon)). \tag{4}

This result follows from taking an ε\varepsilon-covering of F\mathcal{F} and then using the values of these functions to form the encoding. It is known that d=O(2d∗)d = O(2^{d^*}) holds for all families F\mathcal{F}, so Proposition 1.2 implies a uniform upper bound O(2d∗d∗log⁡(1/ε))O(2^{d^*} d^* \log(1/\varepsilon)) on CCdet→\mathrm{CC}_{\mathrm{det}}^{\rightarrow} that holds for all distributions DD. However, this bound is much weaker than its randomized counterpart in (3).

References (79)