VP-VAE: Rethinking Vector Quantization via Adaptive Vector Perturbation
Abstract
Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.
Vector Quantized Variational Autoencoders (VQ-VAEs) are fundamental to modern generative modeling, yet they often suffer from training instability and "codebook collapse" due to the inherent coupling of representation learning and discrete codebook optimization. In this paper, we propose VP-VAE (Vector Perturbation VAE), a novel paradigm that decouples representation learning from discretization by eliminating the need for an explicit codebook during training. Our key insight is that, from the neural network's viewpoint, performing quantization primarily manifests as injecting a structured perturbation in latent space. Accordingly, VP-VAE replaces the non-differentiable quantizer with distribution-consistent and scale-adaptive latent perturbations generated via Metropolis--Hastings sampling. This design enables stable training without a codebook while making the model robust to inference-time quantization error. Moreover, under the assumption of approximately uniform latent variables, we derive FSP (Finite Scalar Perturbation), a lightweight variant of VP-VAE that provides a unified theoretical explanation and a practical improvement for FSQ-style fixed quantizers. Extensive experiments on image and audio benchmarks demonstrate that VP-VAE and FSP improve reconstruction fidelity and achieve substantially more balanced token usage, while avoiding the instability inherent to coupled codebook training.
Results and benchmarks
Vector Quantized Variational Autoencoders (VQ-VAEs) are fundamental to modern generative modeling, yet they often suffer from training instability and "codebook collapse" due to the inherent coupling of representation learning and discrete codebook optimization.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 55/100, grounding 75/100, status medium.
Implementation
Best maintained implementation now
Vector (and Scalar) Quantization, in Pytorch
3,996 stars · 337 forks · Last push Aug 2, 2026 · MIT license
- License
- CI
- Dependencies
- Docker
Matched via arXiv identifier search · Partial overlap with paper title keywords · Community adoption signal (3996 stars)
lucidrains/vector-quantize-pytorch is the best available implementation candidate based on ranking signals, but recommendation confidence is not yet high. License is declared (MIT). Dependency/environment manifests are present.
Open lucidrains/vector-quantize-pytorch- No CI workflows detected
- Selected lucidrains/vector-quantize-pytorch as the strongest maintained implementation for new work.
- Includes dependency/environment manifest signals.
- Repository activity is within the last 24 months.
Reproduction readiness
Setup required
Dependencies pinned, manual setup needed
- lucidrains/vector-quantize-pytorch has pyproject.toml but requires manual environment setup.
- No Dockerfile, so you will set up the environment manually.
- No CI pipeline, so test coverage is unknown.
Quick start
git clone https://github.com/lucidrains/vector-quantize-pytorch.git
pip install -e . Validation caveat
Hugging Face artifacts
No direct paper-linked artifacts were found. Showing strongest curated related artifacts for faster exploration.
Models
No trustworthy models matches right now.
Search models on Hugging FaceDatasets
- beatsprom/llm-quantization-fine-tuning-2026
36 downloads · 0 likes · Updated Aug 10, 2026
Spaces
No trustworthy spaces matches right now.
Search spaces on Hugging FaceResearch context
Tasks
None detected
Methods
Quantization
Domains
Computer vision, Large Language Models
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.