Perfect Reconstruction Cannot Show Whether Two Codebooks on a VAE's Latent Space Agree
Not on the map. Why?
Abstract (arXiv)
Many systems read the latent space of a variational autoencoder (VAE) as discrete codes, and rely on each latent being read back as the code it was written as. Shannon (1948) took such a shared codebook as given; inside a VAE nothing enforces it. We prove that no item of a standard training report can reveal whether the written and read codes agree on encoded data. We construct two VAEs that reconstruct every input perfectly, infer exactly, and match on every per-example ELBO and every code histogram, yet agreement is one in the first and zero in the second. We then show that the ELBO's own terms bound how far a measured agreement can move: the variational gap bounds the shift to exact inference, and the rate bounds the shift to generation from the prior. For Gaussian posteriors, a mean-field encoder pays an exact price in the gap that depends on its choice of axes. On probabilistic PCA the gap certifies a trained encoder in all 75 settings we test, at agreement between 0.76 and 0.97. On 240 trained VAEs, a floor set by the rate and the dataset size rules out rate-side certification in advance for 66 models, and none of them certifies. The results yield a simple protocol, Certify-or-Measure, for any pipeline that reads a VAE as codes.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 43 references that are in the map. First posted on arXiv 29 Sep 2026.
Builds on
19 of 43 references.
References · 19
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2017Neural Discrete Representation Learningcited by 4,712
- 2018Demystifying MMD GANscited by 1,293
- 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 941
- 2017Selective Classification for Deep Neural Networkscited by 852
- 2019On Variational Bounds of Mutual Informationcited by 559
- 2019Variational Autoencoders and Nonlinear ICA: A Unifying Frameworkcited by 503
- 2015Importance Weighted Autoencoderscited by 456
- 2018Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learningcited by 282
- 2017VAE with a VampPriorcited by 248
- 2022Relative representations enable zero-shot latent space communicationcited by 191
- 2018Inference Suboptimality in Variational Autoencoderscited by 132
7 more
- 2018Resampled Priors for Variational Autoencoderscited by 57
- 2019The continuous Bernoulli: fixing a pervasive error in variational autoencoderscited by 41
- 2017Estimating Mixture Entropy with Pairwise Distancescited by 36
- 2020Autoencoding Variational Autoencodercited by 25
- 2025Navigating the Latent Space Dynamics of Neural Modelscited by 8
- 2023Beyond Vanilla Variational Autoencoders: Detecting Posterior Collapse in Conditional and Hierarchical Variational Autoencoderscited by 7
- 2026Lost and Found in Translation: Variational Diagnostics for Neural Codebook Channelscited by 1
Built on by
Not cited yet.