Perfect Reconstruction Cannot Show Whether Two Codebooks on a VAE's Latent Space Agree
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.IT, math.IT
- Comments
- 28 pages, 4 figures, 4 tables. Supplementary material (per-run results, precommit documents and verification scripts) is provided as ancillary files
Related papers
World-as-Graph: Relational World Modeling Through Latent Space Graphs
Shared title terminologycs.LGYaqi Yang, Shuo Huang, Yujin Huang et al.
Time-Anchored Diffusion Language Models: Latent-Space Caching for Fast Generation
Shared title terminologycs.LGJoel Anto Paul, Litu Rout, Aditya Akella et al.
Electrode-level artifact simulation and corruption-aware gated reconstruction of the 12-lead ECG, with real-noise and paper-ECG external validation
Shared title terminologycs.LGSanjoy Das Joy, Arfatul Islam Asif, Unayes Ahmed Khan et al.
Interpretable generative graph attention for representation learning and reconstruction of multimodal neuroimaging data
Shared title terminologycs.LGMeenu Ajith, Ishaan Batta, Vince Calhoun
Characterizing Latent Reasoning Dynamics in LLMs
Shared title terminologycs.LGPrateek Humane, Supriyo Chakraborty, Atharv Naphade et al.
Robust LLM-based User Simulation With Trained Latent-State Dynamics
Shared title terminologycs.LGMartin Mladenov, Jihwan Jeong, Hubert Pham et al.