Papers
Topics
Authors
Recent
Search
2000 character limit reached

Effective Codebook Capacity

Updated 5 July 2026
  • Effective Codebook Capacity is the realized informational budget determined by entropy, active support, and mutual information rather than the nominal size of the codebook.
  • It underpins methods in autoregressive visual generation, vector quantization, and semantic communication by guiding how bits are allocated along a sequence or across models.
  • Empirical studies, including VCQ approaches, show that strategic capacity allocation improves image generation quality and representation efficiency without increasing model complexity.

Effective codebook capacity is the usable informational or representational budget of a codebook, as distinct from its nominal cardinality. Recent arXiv literature formalizes the notion in domain-specific ways: as the cumulative entropic budget of position-dependent codebooks in autoregressive visual generation, bounded by the dataset information content (Zheng et al., 7 May 2026); as entropy or utilization of empirical code-selection distributions in vector quantization and residual vector quantization (Zheng et al., 2024); and as realized mutual information or achievable rate in communication and mismatched-decoding settings (Zhang et al., 6 Aug 2025, Merhav et al., 2022). Across these formulations, the common principle is that raw codebook size does not by itself determine what can be learned, transmitted, or effectively used.

1. Domain-dependent definitions

The phrase “effective codebook capacity” does not denote a single universal scalar. Instead, it is instantiated according to the operative constraint in each domain: finite dataset entropy, codebook-collapse dynamics, compositional expressivity, or channel-induced uncertainty.

Setting Formalization Limiting factor
AR visual generation I(t)=i=1tlog2KiI(t)=\sum_{i=1}^{t}\log_2 K_i log2N\log_2 N dataset bits
RVQ audio codecs Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m) Collapse, imbalance, redundancy
VQ tokenizers K×UK\times U or H(Z)H(Z) Sparse activation
Semantic communication I(Z;Y)I(Z;Y) or I(S;S^)I(S;\hat S) Channel noise, input law
Mismatched decoding Achievable rate I(PX;W)I(P_X;W) Decoder metric

In the autoregressive image setting, the central object is not KLK^L or K×LK\times L, but the cumulative per-position entropic budget log2N\log_2 N0, with the further restriction that no more than log2N\log_2 N1 bits in the training set can ever be “filled” (Zheng et al., 7 May 2026). In RVQ, ERVQ defines theoretical capacity as log2N\log_2 N2 and effective capacity as the entropy sum over empirical codeword-selection distributions, making bit-efficiency log2N\log_2 N3 the natural normalized quantity (Zheng et al., 2024). In VQ-based image tokenizers, effective capacity is sometimes treated more operationally as the number of distinct active codes, log2N\log_2 N4, or as the entropy log2N\log_2 N5 of the discrete latent distribution (Chang et al., 12 Sep 2025, Zhu et al., 2024).

This suggests that the term is best understood as a family resemblance rather than a single invariant. What unifies the usage is an insistence on realized structure—entropy, active support, mutual information, or achievable rate—rather than nominal symbol inventory.

2. Information-theoretic formulation in autoregressive visual generation

In “Taming the Entropy Cliff,” images are encoded into sequences log2N\log_2 N6, with log2N\log_2 N7 drawn from a codebook of size log2N\log_2 N8. Two bounds are immediate: the dataset contains at most

log2N\log_2 N9

and each position satisfies

Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)0

For a uniform codebook, after Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)1 positions the model can consume at most Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)2 bits, so equating this with the dataset limit yields the entropy-cliff boundary

Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)3

Beyond Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)4, the training-set conditional distribution Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)5 collapses to a point mass, and the AR model cannot learn a meaningful probability distribution; it must memorize continuations (Zheng et al., 7 May 2026).

The paper emphasizes that naive capacity surrogates such as Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)6 and Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)7 are misleading in finite-data regimes. A constant codebook with large Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)8 may have enormous nominal combinatorial size while exhausting the learnable information budget almost immediately. On ImageNet, with Ceff=m=1MH(pm)C_{\mathrm{eff}}=\sum_{m=1}^{M} H(p^m)9 and K×UK\times U0, one has K×UK\times U1 bits and K×UK\times U2 bits, giving K×UK\times U3. The reported measured conditional entropy drops to zero after two tokens, so the remaining 254 positions in a 256-token sequence become a memorization problem (Zheng et al., 7 May 2026).

A notable contrast is drawn with language. The same phenomenon is “not observed in language,” because its natural structure keeps the effective entropy per position well below the codebook capacity. That contrast is important because it locates the problem not in autoregression per se, but in the interaction among dataset entropy, symbol allocation, and sequence order.

3. Variable allocation of capacity and the entropy cliff

The proposed remedy is Variable Codebook Size Quantization (VCQ), which replaces the constant K×UK\times U4 with a monotone schedule K×UK\times U5 growing from K×UK\times U6 to K×UK\times U7: K×UK\times U8 The paper considers three convex-on-K×UK\times U9 schedules: Linear, Cosine, and Power with H(Z)H(Z)0, H(Z)H(Z)1. The effective codebook capacity in bits is then

H(Z)H(Z)2

The key claim is that capacity must be distributed along the sequence in a way that matches the decaying conditional entropy of the data, not merely maximized in aggregate (Zheng et al., 7 May 2026).

Implementation preserves the standard training pipeline. All VQ-GAN losses remain unchanged, including reconstruction H(Z)H(Z)3, LPIPS, PatchGAN adversary, and VQ commitment. The AR transformer uses the usual next-token cross-entropy objective. A single shared codebook of size H(Z)H(Z)4 is maintained, and at position H(Z)H(Z)5 nearest-neighbor search is restricted to the first H(Z)H(Z)6 entries. No extra parameters or losses are introduced, and the optimizer, learning-rate schedule, and weight decay are identical to the uniform-codebook baseline (Zheng et al., 7 May 2026).

On ImageNet, the paper uses H(Z)H(Z)7, H(Z)H(Z)8, and a Cosine schedule, which pushes the empirical entropy cliff from H(Z)H(Z)9 to I(Z;Y)I(Z;Y)0. Reported generation and probing results are summarized below.

Configuration Metric Result
Uniform I(Z;Y)I(Z;Y)1 gFID w/o CFG 27.98
VCQ Cosine gFID w/o CFG 14.80
Uniform I(Z;Y)I(Z;Y)2 gFID with CFG 6.43
VCQ Cosine gFID with CFG 4.79
VCQ scaled up gFID 1.71
Uniform, first 10 tokens Top-1 linear probe 27.1%
VCQ Cosine, first 10 tokens Top-1 linear probe 43.8%

The scaled model reaches gFID I(Z;Y)I(Z;Y)3 with I(Z;Y)I(Z;Y)4M autoregressive parameters, “without any extra training techniques such as semantic regularization or causal alignment” (Zheng et al., 7 May 2026). The severe I(Z;Y)I(Z;Y)5-bit bottleneck at I(Z;Y)I(Z;Y)6 induces what the paper describes as a natural coarse-to-fine semantic hierarchy: first-10-token linear probing improves from I(Z;Y)I(Z;Y)7 under a uniform codebook to I(Z;Y)I(Z;Y)8 under VCQ-Cosine, while all-256-token accuracy is I(Z;Y)I(Z;Y)9 for the uniform baseline and I(S;S^)I(S;\hat S)0 for VCQ-Cosine; VCQ-Power with I(S;S^)I(S;\hat S)1 gives I(S;S^)I(S;\hat S)2 for the first 10 tokens and I(S;S^)I(S;\hat S)3 for all 256 tokens (Zheng et al., 7 May 2026).

A common misconception is that increasing I(S;S^)I(S;\hat S)4 is sufficient. The VCQ results directly challenge that view: the paper’s conclusion is that what matters is not only how many bits are allocated, but where they are allocated along the autoregressive sequence.

4. Utilization, collapse, and compositional expansion in vector quantization

Outside autoregressive image generation, effective codebook capacity is often tied to code usage rather than sequence position. In ERVQ, codebook collapse means that only I(S;S^)I(S;\hat S)5 entries are ever selected in a codebook I(S;S^)I(S;\hat S)6; if those active entries are equally used, then I(S;S^)I(S;\hat S)7, and the effective capacity drop per codebook is I(S;S^)I(S;\hat S)8. ERVQ addresses this with online clustering, a code-balancing loss, and an inter-codebook SSIM penalty. On APCodec with I(S;S^)I(S;\hat S)9 and I(PX;W)I(P_X;W)0, the reported utilization rates move from I(PX;W)I(P_X;W)1 to I(PX;W)I(P_X;W)2, while bit-efficiency rises from I(PX;W)I(P_X;W)3 to I(PX;W)I(P_X;W)4 (Zheng et al., 2024).

Several later VQ papers make the same diagnostic move with different mechanisms. CVQ-VAE defines effective codebook capacity as the number of codevectors actually used over the dataset and combats collapse by re-seeding under-used codes toward anchors sampled from the current feature distribution; on CIFAR10 with a 1024-entry codebook, the paper reports Usage I(PX;W)I(P_X;W)5, Perplexity I(PX;W)I(P_X;W)6, and rFID I(PX;W)I(P_X;W)7 (Zheng et al., 2023). Chang et al.’s VQBridge explicitly treat effective capacity as I(PX;W)I(P_X;W)8, where I(PX;W)I(P_X;W)9 is utilization rate, and report KLK^L0 usage even at KLK^L1, with ImageNet KLK^L2 reconstruction rFID improving from KLK^L3 at KLK^L4k and 40 epochs to KLK^L5 at KLK^L6k and 40 epochs, and to KLK^L7 at KLK^L8k and 120 epochs (Chang et al., 12 Sep 2025). VQGAN-LC instead freezes a KLK^L9-entry codebook derived from pre-trained vision features, trains a projector, and defines effective capacity as K×LK\times L0, bounded by K×LK\times L1; at K×LK\times L2k it reports utilization K×LK\times L3 and rFID K×LK\times L4 on ImageNet (Zhu et al., 2024).

A different line of work expands effective capacity compositionally. LooC splits a K×LK\times L5-dimensional feature vector into K×LK\times L6 blocks of dimension K×LK\times L7, quantizes each block using a shared low-dimensional codebook, and thereby expands the representational space from K×LK\times L8 to K×LK\times L9 while storing only log2N\log_2 N00 parameters. The paper reports log2N\log_2 N01 utilization on every dataset and codebook size tested, and on CIFAR-10 compares CVQ-VAE log2N\log_2 N02 against LooC log2N\log_2 N03 with log2N\log_2 N04: rFID improves from log2N\log_2 N05 to log2N\log_2 N06 and PSNR from log2N\log_2 N07 to log2N\log_2 N08 (Li et al., 1 Jan 2026). Dual Codebook VQ uses parallel global and local codebooks with joint capacity log2N\log_2 N09, so a balanced split gives log2N\log_2 N10; the paper reports utilization rising from approximately log2N\log_2 N11 in vanilla VQ-GAN to nearly log2N\log_2 N12 in each half, alongside MS-COCO FID log2N\log_2 N13 with a total codebook of log2N\log_2 N14 (Malidarreh et al., 13 Mar 2025).

These papers show that, in VQ systems, “effective capacity” typically means either entropy of actual selections or the active support of the codebook, sometimes augmented by compositional structure. The recurring pathology is not lack of nominal symbols, but inability to activate or diversify them.

5. Communication-theoretic and beamforming interpretations

In communication settings, effective codebook capacity is typically formulated as mutual information or achievable rate. In the mismatched-decoding analysis of Merhav and Böcherer, the encoder uses a constant-composition subcode but the decoder searches over the full linear code with an additive metric. The main result is that codebook mismatch can be fully compensated: the optimal mismatched metric achieves the constant-composition random-coding exponent, and the maximal achievable rate under mismatch is

log2N\log_2 N15

As log2N\log_2 N16, the optimal metric converges to the MAP metric, so the effective capacity under codebook mismatch is exactly the mutual information for the chosen input assignment (Merhav et al., 2022).

Digital semantic communication papers adopt closely related definitions. One formulation treats log2N\log_2 N17 as a deterministic quantization of a continuous semantic feature log2N\log_2 N18, yielding log2N\log_2 N19, with equality under uniform activation log2N\log_2 N20; the paper then introduces an entropy-regularized quantization loss and a channel-aware semantic distortion loss, and reports PSNR improvement log2N\log_2 N21 and LPIPS improvement log2N\log_2 N22 at SNR log2N\log_2 N23 dB relative to existing codebook designs (Wang et al., 8 Oct 2025). Another formulation defines effective capacity as log2N\log_2 N24 under learned activation probabilities and AWGN, with a Wasserstein regularizer that aligns the empirical activation law to a hybrid of uniform and Gaussian targets; WS-DC is reported to improve inference accuracy while keeping model size at approximately log2N\log_2 N25M parameters and inference time unchanged (Zhang et al., 6 Aug 2025). A related channel-aware discrete semantic coding framework likewise aligns the marginal code-activation distribution with the channel-optimal input distribution log2N\log_2 N26 by penalizing the log2N\log_2 N27-Wasserstein distance log2N\log_2 N28, and ties effective codebook capacity to log2N\log_2 N29 (Zhang et al., 6 Aug 2025).

Beamforming literature uses the term operationally, in terms of how many steering vectors are truly needed to realize near-maximal array gain or satisfy a capacity constraint. One mmWave study derives a closed-form beam coverage condition under a gain-loss tolerance log2N\log_2 N30 dB and shows that even a codebook as large as log2N\log_2 N31 can be reduced to a small set of steering vectors: for log2N\log_2 N32 dB, only log2N\log_2 N33 beams are needed for a log2N\log_2 N34-element ULA and log2N\log_2 N35 for a log2N\log_2 N36 URA, while over log2N\log_2 N37 of random trials stay within the log2N\log_2 N38 dB bound (Bozkurt et al., 14 May 2025). By contrast, the beam-squint compensation work imposes a minimum per-beam channel-capacity constraint and shows that beam squint reduces channel capacity and requires denser codebooks; for a log2N\log_2 N39-antenna ULA at log2N\log_2 N40 GHz with log2N\log_2 N41 GHz bandwidth, the proposed algorithm improves channel capacity by log2N\log_2 N42 and analysis suggests that squint limits the feasible bandwidth for a given array size (Cai et al., 2017).

Here the same nominal pattern reappears in a different guise: large codebooks may be unnecessary when beam coverage is the operative bottleneck, but insufficiently dense codebooks become harmful when wideband beam squint imposes a channel-capacity constraint.

6. Conceptual synthesis and recurring misconceptions

A first misconception is that nominal cardinality is an adequate proxy for representational power. The surveyed literature repeatedly rejects this. In autoregressive image modeling, log2N\log_2 N43 and log2N\log_2 N44 do not capture what a finite dataset allows the model to learn (Zheng et al., 7 May 2026). In VQ tokenizers, large log2N\log_2 N45 with low utilization yields low effective capacity, often with severe collapse (Chang et al., 12 Sep 2025). In beamforming, even astronomically large steering codebooks can be reducible to log2N\log_2 N46 useful beams under an explicit gain-loss tolerance (Bozkurt et al., 14 May 2025).

A second misconception is that maximizing codebook usage is always sufficient. The entropy-cliff analysis shows a more subtle failure mode: a uniform codebook can have abundant nominal availability and still allocate too much capacity too early, exhausting the log2N\log_2 N47 budget after only a few positions (Zheng et al., 7 May 2026). Conversely, communication papers show that non-uniform activation can be desirable when the target is not usage uniformity but proximity to the capacity-achieving input law under a noisy channel (Zhang et al., 6 Aug 2025, Zhang et al., 6 Aug 2025).

A third misconception is that compact codebooks necessarily imply reduced effective capacity. LooC increases representational space from log2N\log_2 N48 to log2N\log_2 N49 while shrinking parameter count to log2N\log_2 N50 (Li et al., 1 Jan 2026). Dual Codebook VQ obtains joint capacity log2N\log_2 N51 from two smaller books (Malidarreh et al., 13 Mar 2025). VCQ improves generation quality without altering loss, parameter count, or AR training procedure, by reorganizing where capacity is spent rather than enlarging the total budget (Zheng et al., 7 May 2026).

Taken together, these results support a broad technical reading of effective codebook capacity as the realizable information budget after accounting for data entropy, codebook allocation along sequences, empirical usage statistics, combinatorial composition, decoder mismatch, and channel constraints. The unifying lesson is not merely that “bigger is not always better,” but that usable capacity is governed by the interaction between codebook structure and the process—learning, compression, or transmission—that must exploit it.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

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

Follow Topic

Get notified by email when new papers are published related to Effective Codebook Capacity.