mlsanityData to 14 Oct 2026

Restructuring Vector Quantization with the Rotation Trick

arXiv 2410.06424 ↗First posted 8 Oct 2024cs.LG cs.CVcited by 51

Not on the map. Why?

Abstract (arXiv)

Vector Quantized Variational AutoEncoders (VQ-VAEs) are designed to compress a continuous input to a discrete latent space and reconstruct it with minimal distortion. They operate by maintaining a set of vectors -- often referred to as the codebook -- and quantizing each encoder output to the nearest vector in the codebook. However, as vector quantization is non-differentiable, the gradient to the encoder flows around the vector quantization layer rather than through it in a straight-through approximation. This approximation may be undesirable as all information from the vector quantization operation is lost. In this work, we propose a way to propagate gradients through the vector quantization layer of VQ-VAEs. We smoothly transform each encoder output into its corresponding codebook vector via a rotation and rescaling linear transformation that is treated as a constant during backpropagation. As a result, the relative magnitude and angle between encoder output and codebook vector becomes encoded into the gradient as it propagates through the vector quantization layer and back to the encoder. Across 11 different VQ-VAE training paradigms, we find this restructuring improves reconstruction metrics, codebook utilization, and quantization error. Our code is available at https://github.com/cfifty/rotation_trick.

Key facts. Cited by 51 papers in the map (data through 14 Oct 2026). Builds on 39 of its 51 references that are in the map. First posted on arXiv 8 Oct 2024.

Builds on

39 of 51 references.

References · 39

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 6,013
  5. 2017Neural Discrete Representation Learningcited by 4,712
  6. 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,527
  7. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
  8. 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,988
  9. 2016Improved Techniques for Training GANscited by 2,970
  10. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  11. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,694
  12. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
27 more
  1. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
  2. 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
  3. 2018Towards Accurate Generative Models of Video: A New Metric & Challengescited by 1,234
  4. 2022MaskGIT: Masked Generative Image Transformercited by 1,099
  5. 2017GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networkscited by 834
  6. 2022Autoregressive Image Generation using Residual Quantizationcited by 722
  7. 2021VideoGPT: Video Generation using VQ-VAE and Transformerscited by 658
  8. 2021Vector-quantized Image Modeling with Improved VQGANcited by 658
  9. 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 640
  10. 2020Jukebox: A Generative Model for Musiccited by 542
  11. 2023Finite Scalar Quantization: VQ-VAE Made Simplecited by 440
  12. 2019vq-wav2vec: Self-Supervised Learning of Discrete Speech Representationscited by 340
  13. 2021PeCo: Perceptual Codebook for BERT Pre-training of Vision Transformerscited by 204
  14. 2022Self-supervised Learning with Random-projection Quantizer for Speech Recognitioncited by 162
  15. 2017Self-Supervised Visual Planning with Temporal Skip Connectionscited by 139
  16. 2024Image and Video Tokenization with Binary Spherical Quantizationcited by 112
  17. 2023Straightening Out the Straight-Through Estimator: Overcoming Optimization Challenges in Vector Quantized Networkscited by 82
  18. 2022UViM: A Unified Modeling Approach for Vision with Learned Guiding Codescited by 78
  19. 2022SQ-VAE: Variational Bayes on Discrete Representation with Self-annealed Stochastic Quantizationcited by 68
  20. 2023Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector Quantizationcited by 60
  21. 2023Online Clustered Codebookcited by 55
  22. 2020Robust Training of Vector Quantized Bottleneck Modelscited by 54
  23. 2023Regularized Vector Quantization for Tokenized Image Synthesiscited by 46
  24. 2023Designing a Better Asymmetric VQGAN for StableDiffusioncited by 45
  25. 2024HyperVQ: MLR-based Vector Quantization in Hyperbolic Spacecited by 13
  26. 2023Soft Convex Quantization: Revisiting Vector Quantization with Convex Optimizationcited by 10
  27. 2024Balance of Number of Embedding and their Dimensions in Vector Quantizationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 23; 2026: 25.

51 papers.

Sort:

By area:

  1. 2025GigaTok: Scaling Visual Tokenizers to 3 Billion Parameters for Autoregressive Image Generationcited by 57
  2. 2024SoftVQ-VAE: Efficient 1-Dimensional Continuous Tokenizercited by 56
  3. 2025Flow to the Mode: Mode-Seeking Diffusion Autoencoders for State-of-the-Art Image Tokenizationcited by 36
  4. 2025Cube: A Roblox View of 3D Intelligencecited by 15
  5. 2025STAR: Learning Diverse Robot Skill Abstractions through Rotation-Augmented Vector Quantizationcited by 13
  6. 2024Towards Unifying Understanding and Generation in the Era of Vision Foundation Models: A Survey from the Autoregression Perspectivecited by 10
  7. 2025Diffusion Generative Recommendation with Continuous Tokenscited by 9
  8. 2025CODA: Repurposing Continuous VAEs for Discrete Tokenizationcited by 8
  9. 2025Discrete Tokenization for Multimodal LLMs: A Comprehensive Surveycited by 8
  10. 2025Spherical Leech Quantization for Visual Tokenization and Generationcited by 6
  11. 2026Stop Treating Collisions Equally: Qualification-Aware Semantic ID Learning for Recommendation at Industrial Scalecited by 6
  12. 2025Instella-T2I: Pushing the Limits of 1D Discrete Latent Space Image Generationcited by 5
38 more
  1. 2025DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trickcited by 5
  2. 2025Eliciting Chain-of-Thought Reasoning for Time Series Analysis using Reinforcement Learningcited by 5
  3. 2025Mofasa: A Step Change in Metal-Organic Framework Generationcited by 5
  4. 2024Scaling Image Tokenizers with Grouped Spherical Quantizationcited by 4
  5. 2025Flow Autoencoders are Effective Protein Tokenizerscited by 4
  6. 2025Remote Inference over Dynamic Links via Adaptive Rate Deep Task-Oriented Vector Quantizationcited by 3
  7. 2025PathVQ: Reforming Computational Pathology Foundation Model for Whole Slide Image Analysis via Vector Quantizationcited by 3
  8. 2026WinQ: Accelerating Quantization-Aware Training of Language Models Around Saddle Pointscited by 3
  9. 2025HH-Codec: High Compression High-fidelity Discrete Neural Codec for Spoken Language Modelingcited by 2
  10. 2025Graph is a Natural Regularization: Revisiting Vector Quantization for Graph Representation Learningcited by 2
  11. 2026JacQuant: STE-Free Quantization-Aware Training via Learned Jacobian Surrogatescited by 2
  12. 2025Spotlight-TTS: Spotlighting the Style via Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speechcited by 1
  13. 2025MuseTok: Symbolic Music Tokenization for Generation and Semantic Understandingcited by 1
  14. 2025Training-Free Vector Quantization via Gaussian VAEscited by 1
  15. 2026VP-VAE: Rethinking Vector Quantization via Adaptive Vector Perturbationcited by 1
  16. 2026Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantizationcited by 1
  17. 2026Flow-Matching-Based Protein Structure Tokenizer Made Efficient and Easycited by 1
  18. 2026Scaling Collider Event Generation with Residual-Quantized Tokenscited by 1
  19. 2025Pushing Toward the Simplex Vertices: A Simple Remedy for Code Collapse in Smoothed Vector Quantizationcited by 0
  20. 2025Group-Wise Optimization for Self-Extensible Codebooks in Vector Quantized Modelscited by 0
  21. 2025Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speechcited by 0
  22. 2026SCAR-GS: Spatial Context Attention for Residuals in Progressive Gaussian Splattingcited by 0
  23. 2026Is Hierarchical Quantization Essential for Optimal Reconstruction?cited by 0
  24. 2026Generalized Radius and Integrated Codebook Transforms for Differentiable Vector Quantizationcited by 0
  25. 2026LGQ: Learnable Geometric Quantization for Image Tokenizationcited by 0
  26. 2026VorTEX: Various overlap ratio for Target speech EXtractioncited by 0
  27. 2026Investigating Permutation-Invariant Discrete Representation Learning for Spatially Aligned Imagescited by 0
  28. 2026Next-Acceleration-Scale Prediction for Autoregressive MRI Reconstructioncited by 0
  29. 2026Channel-wise Vector Quantizationcited by 0
  30. 2026Structure over Pixels: Learning Variable-Length Visual Programscited by 0
  31. 2026BiSCo-LLM: Lookup-Free Binary Spherical Coding for Extreme Low-Bit Large Language Model Compressioncited by 0
  32. 2026Learning Reusable Hybrid Motion Priors for Humanoid Locomotion from Motion Imitationcited by 0
  33. 2026BooST: Bridging Semantics and Motions for Efficient Skill Transfercited by 0
  34. 2026A Unified Rate-Distortion Perspective on Vector, Product, and Scalar Quantizationcited by 0
  35. 2026QUALS: Corpus Equilibrium for Universal Forecasting via Pattern Quantization and Learnability Synchronizationcited by 0
  36. 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenizationcited by 0
  37. 2026StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Trainingcited by 0
  38. 2026DualCast: A Dual-Path Language Model for Bimodal Financial Time-Series Forecastingcited by 0

50 most cited of 51 All 51 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025MGVQ: Could VQ-VAE Beat VAE? A Generalizable Tokenizer with Multi-group Quantization
  2. 2022Diffusion bridges vector quantized Variational AutoEncoders
  3. 2024Addressing Representation Collapse in Vector Quantized Models with One Linear Layer
  4. 2024Gaussian Mixture Vector Quantization with Aggregated Categorical Posterior
  5. 2023Vector Quantized Wasserstein Auto-Encoder
  6. 2023HQ-VAE: Hierarchical Discrete Representation Learning with Variational Bayes
  7. 2026ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margin
  8. 2022Robust Vector Quantized-Variational Autoencoder