Information Budgets for Autoencoders That Scale With Training-Set Size

When labeled data is scarce, squeezing high-dimensional inputs through a small learned code before training a classifier often helps. The squeezing step is an autoencoder: a network that compresses an input to a short vector and then reconstructs the input from it. Does the Data Processing Inequality Reflect Practice? proves that this kind of compression lowers classifier error at finite sample size $N$. It also shows the benefit is non-monotonic: there is no gain at $N=0$, a peak at moderate $N$, and the benefit fades as $N$ grows. That result implies the right amount of compression depends on how much data you have. In practice, though, people set compression through the width of the code layer or a KL weight $\beta$, and neither knob has a meaning that carries across architectures, datasets, or sample sizes. Each new dataset and each value of $N$ gets re-tuned, and at small $N$ the validation split used for tuning is itself unreliable.

We propose to measure and control compression in nats, the natural unit of information. The quantity is the mutual information $I(x;z)$ between input and code, which is how much the code tells you about the input. We cap it with a linear-time upper bound, and then ask whether the best budget $B^*(N)$ follows a regular curve in $N$ that transfers across datasets. If it does, practitioners get a tuning-free rule of the form "at $N$ labeled samples, keep about $B^*(N)$ nats." The research then shifts from "add an MI regularizer to an autoencoder" to finding a usable scaling relation between information budget and dataset size, with an estimator cheap enough to sweep $N$ from $10^2$ up to full-dataset scale.

Core Claim

The central hypothesis is that the optimal information budget $B^*(N)$ is far more stable across datasets than the optimal code width $k^*(N)$ or the optimal $\beta^*(N)$. If so, a single rule fit on a few datasets can be applied to new ones with no per-$N$ tuning and land close to oracle per-$N$ tuning. The expected shape follows a standard bias–variance argument. A classifier fit on roughly $k$ effective dimensions has estimation error growing roughly like $k/N$, while discarding signal costs a fixed bias. So $B^*(N)$ should rise with $N$ and the gain over no compression should vanish at large $N$, consistent with the non-monotonic curve in the DPI paper. We treat the exact functional form, such as logarithmic or power law, as something to measure rather than assume.

The estimator choice makes this cheap and avoids a known weakness. The encoder is stochastic, $z = f_\phi(x) + \sigma\epsilon$ with Gaussian noise $\epsilon$, which keeps $I(x;z)$ finite. Because the conditional $p(z|x)$ is therefore known in closed form, the contrastive log-ratio upper bound from CLUB can be evaluated with the true conditional instead of a learned approximation:

$$I(x;z) \le \mathbb{E}_{p(x,z)}[\log p(z|x)] - \mathbb{E}_{p(x)p(z)}[\log p(z|x)].$$

The second expectation is estimated by pairing each $z_i$ with one random $x_j$, CLUB's stochastic negative sampling, which costs $\mathcal{O}(N)$ per batch instead of $\mathcal{O}(N^2)$. This removes the two limitations of CLUB listed in the file: dependence on a variational network $q_\theta(z|x)$ that may not converge, and the alternating optimization between that network and the representation. The training objective is reconstruction error plus a hinge penalty $\lambda \max(0, \hat{I}_{\text{CLUB}} - B)$. Here $\hat{I}_{\text{CLUB}}$ is the sampled bound, $B$ is the budget in nats, and $\lambda$ is a fixed penalty weight. The model is told how much information it may keep, not how to weight compression against reconstruction.

Relation to Prior Work

Two lines of work put MI terms inside autoencoders, and both aim to raise $I(x;z)$ to prevent collapse. InfoMax-VAE adds a discriminator-based lower bound; VOLTA maximizes MI between latent codes and generated text. Neither caps information, and neither studies dependence on $N$. Our use of an upper bound is a constraint, not a collapse remedy. The InfoMax-VAE result motivates the work because it shows the information actually carried by codes differs widely between methods: on MNIST, measured $I(x;z)$ is 4.16 versus 2.62 for a plain VAE.

CLUB and IBMA supply the linear-time machinery. CLUB was validated for supervised information bottlenecks and domain adaptation. IBMA uses class-tied prototypes, a fixed number of learnable cluster centers, in a supervised cross-modal setting, so it cannot be used directly in an unsupervised autoencoder without labels. We reuse CLUB's sampled bound and use IBMA only as a reference point for prototype bounds.

The DPI-utility paper motivates the scale question and also constrains it. It predicts that any compression gain must disappear at large $N$, so a method claiming gains at full CIFAR scale would contradict it and should be treated with suspicion. Its theory covers linear projections and Gaussian mixtures, and its experiments use fixed preprocessing such as denoising autoencoders and DINOv2. Our work tests whether its qualitative prediction holds for nonlinear encoders when compression is controlled in nats.

Variance blow-ups of sampled bounds on large, heterogeneous data, documented for χ-divergence bounds in CHIVI, are a risk we measure directly. CLUB's reported stability on synthetic Gaussian and cubic data is the starting point for that measurement.

Research Program

We build one budgeted autoencoder family: a convolutional encoder for images, a multilayer perceptron for tabular data, and bag-of-words or frozen-token inputs for text. All share the stochastic code layer and the CLUB budget penalty.

For each dataset and each training-set size $N$ on a logarithmic grid from $10^2$ to the full set, we sweep the budget $B$ over a grid in nats. The autoencoder is trained on all available unlabeled data. A downstream classifier, either logistic regression or a small MLP, is then trained on $N$ labeled codes. This gives a curve of error versus $B$ at each $N$, from which we read off $B^*(N)$. The same sweep is run over code width $k$ for a deterministic autoencoder and over $\beta$ for a β-VAE, giving $k^*(N)$ and $\beta^*(N)$ on the same footing.

Each trained model reports its achieved information on the same scale. The upper value is the CLUB bound. The lower value is a reconstruction-based lower bound from the decoder, the entropy of the data minus the decoder's negative log-likelihood. Together they sandwich the true value, and all methods are compared at matched achieved information as well as at matched hyperparameters.

Separately, we characterize the estimator itself, addressing the file's Gap 3. We compare gradient variance and failure rate of the sampled bound against the full $\mathcal{O}(N^2)$ CLUB, the analytic KL rate, and the InfoMax discriminator, across batch sizes and dataset sizes, using matched wall-clock time.

Baselines

The naive reference point is to train the downstream classifier on raw inputs with uniform sampling and standard augmentation. For images we use RICAP, which How Important is Importance Sampling for Deep Budgeted Training? found reached 76.27% CIFAR-100 accuracy at 30% of the training budget, beating 75.44% for full-budget standard training. This tells us whether any compression helps at a given $N$. Beating it means lower error at small and moderate $N$, with convergence to it at large $N$.

The strongest tuned competitor is a deterministic autoencoder whose code width $k$ is chosen per $N$ by cross-validation on the labeled samples. This is what a careful practitioner would do. It gets the same encoder architecture, the same unlabeled pretraining data, and the same number of tuning trials as our budget sweep. We found no reported result on Lacuna for per-$N$ cross-validated autoencoder width. The proposal wins against it only in the transfer and noisy-validation conditions described below, not in-distribution with ample validation data, where we expect a tie.

The strongest existing representation is a frozen pretrained DINOv2 embedding, applied where the domain allows it. The DPI-utility paper reports that this cut error by up to 30–40% on Mini-ImageNet in low-data regimes. We run it on the same $N$ grid with the same downstream classifier. We expect it to beat any autoencoder trained from scratch on natural images, and include it to bound how much is left on the table. Our claim concerns domains without such models, namely tabular and text data here, and how well the budget rule transfers.

The key ablation replaces the CLUB budget with a rate-constrained β-VAE, whose per-sample KL to the prior also upper-bounds $I(x;z)$, with the target rate enforced by the same hinge. This isolates whether the specific bound matters or only budgeting in nats. A second ablation swaps CLUB for the InfoMax-VAE discriminator estimate used as a monitor. For representation quality we keep InfoMax-VAE's reported 18.26% CIFAR-100 linear-probe accuracy, against 16.57% for Info-VAE and 11.74% for β-VAE, as a sanity anchor for our full-$N$ runs. For the out-of-distribution (OOD) detection side check, the anchor is TOOD's reported 99.1% AUROC on CIFAR-10.

Why not just…?

Why not just cross-validate the code width for each $N$? This is the real threat. If width transfers across datasets as well as nats do, our contribution shrinks to an estimator study. Two experiments settle it. First, we compare the cross-dataset spread of $k^*(N)$ and $B^*(N)$ after normalizing each to its full-data value. Second, we run a leave-one-dataset-out transfer test: fit a rule on the other datasets, apply it with zero tuning, and also compare against cross-validation using only 10–20% of the $N$ labels as validation, which is the realistic small-$N$ case. If width-based rules transfer as well, we will report that honestly, and the scaling curve in nats becomes a descriptive finding rather than a tool.

Why not just use a β-VAE's KL term, which already bounds information analytically? The KL rate equals $I(x;z)$ plus the mismatch between the aggregate code distribution and the prior. It can therefore overstate retained information and penalize the wrong thing. InfoMax-VAE's collapse results show that β-VAE codes can carry little usable information. Still, it is linear-time and simple, which is why it is our main ablation rather than a strawman. If the rate-constrained β-VAE matches CLUB at equal achieved information, we will adopt it and keep the scaling-law claim, since that claim does not depend on which bound wins.

Why not just use pretrained embeddings or heavier augmentation? On natural images, DINOv2 likely wins outright, as the DPI paper's 30–40% low-data error reduction indicates, and we include it for that reason. Augmentation helps budgeted training but leaves raw dimensionality unchanged, and the DPI paper's finite-sample argument says the noise-dimension penalty remains. Our tabular datasets (BankMarketing, Electricity) and 20Newsgroups have no comparable foundation model, and that is where the budget rule must earn its keep.

Proposed Experiments

The datasets come from the file. For images we use CIFAR-10, CIFAR-100, and Mini-ImageNet, each also with added Gaussian pixel noise following the DPI-utility setup, where gains were largest. For tabular data we use BankMarketing and Electricity, and for text 20Newsgroups. The $N$ grid runs from $10^2$ to the full training set. Metrics are downstream error, cross-dataset spread of the normalized optimal hyperparameter, regret of the zero-tuning transfer rule relative to oracle per-$N$ tuning, and estimator gradient variance and wall-clock time.

A secondary task reuses the codes for TOOD-style tree-ensemble OOD detection, which checks whether a budget tuned for classification also preserves the geometry tree partitions need. That paper warns this geometry is fragile when compression is poor.

Four outcomes decide the proposal. The core claim fails if $B^*(N)$ is not markedly more consistent across datasets than $k^*(N)$. It succeeds if the transferred budget rule stays within a small margin of oracle tuning and beats noisy-validation width selection at $N \le 10^3$. It agrees with the DPI-utility theory if the gain over the raw-input baseline peaks at moderate $N$ and disappears at full scale; a persistent large-$N$ gain would point to a confound such as extra unlabeled pretraining. The CLUB-versus-KL-rate comparison at matched achieved information determines whether the linear-time contrastive bound matters or whether budgeting in nats alone does the work.