Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 40 min ago
PreprintCC BY 4.0arXiv

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.

Related

  1. Multi-Bitwidth Quantization for LLMs Using Additive Codebooks
    Liza Babaoglu, Shuangyi Chen, Ashish Khisti
    arXivPreprintCC BY 4.0Full textGeneral mathematicsarXiv
  2. Derandomizing Dense Binary Hypervector Codebooks for Quantized Scalars
    Dmitri Rachkovskij, Evgeny Osipov, Olexander Volkov +2
    arXivPreprintCC BY-NC-ND 4.0Full textGeneral mathematicsarXiv
  3. Certifying Whether to Adapt: Baseline-Relative PAC-Bayes-MMD Guarantees for Test-Time Adaptation
    Ahanaf Hasan Ariq, Hasaan Ahmad, Aayush Parekh +1
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  4. Stand-In Effects and Pooling Amplification: Design-Based Tests of Whether Biological World Models Use Actions
    Bowen Xu, Boyu Chen
    arXivPreprintCC BY 4.0Full textBioinformatics & computational biologyStatisticsarXiv
  5. Spread and Scale: What Determines Whether Test-Time Budget Allocation Pays
    Jinhyung Bae
    arXivPreprintarXiv licenceFull textOptimisation & controlarXiv
BibTeX
@misc{hayashi2026perfect,
  title = {{Perfect Reconstruction Cannot Show Whether Two Codebooks on a VAE's Latent Space Agree}},
  author = {Yusuke Hayashi},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.14012},
  eprint = {2610.14012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14012},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Perfect Reconstruction Cannot Show Whether Two Codebooks on a VAE's Latent Space Agree
AU  - Yusuke Hayashi
PY  - 2026
DA  - 2026/10/01
PB  - arXiv
DO  - 10.48550/arxiv.2610.14012
UR  - https://arxiv.org/abs/2610.14012
AB  - 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.
ER  -