Restructuring Vector Quantization with the Rotation Trick
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
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 6,013
- 2017Neural Discrete Representation Learningcited by 4,712
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,527
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,988
- 2016Improved Techniques for Training GANscited by 2,970
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,694
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
27 more
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
- 2018Towards Accurate Generative Models of Video: A New Metric & Challengescited by 1,234
- 2022MaskGIT: Masked Generative Image Transformercited by 1,099
- 2017GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networkscited by 834
- 2022Autoregressive Image Generation using Residual Quantizationcited by 722
- 2021VideoGPT: Video Generation using VQ-VAE and Transformerscited by 658
- 2021Vector-quantized Image Modeling with Improved VQGANcited by 658
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 640
- 2020Jukebox: A Generative Model for Musiccited by 542
- 2023Finite Scalar Quantization: VQ-VAE Made Simplecited by 440
- 2019vq-wav2vec: Self-Supervised Learning of Discrete Speech Representationscited by 340
- 2021PeCo: Perceptual Codebook for BERT Pre-training of Vision Transformerscited by 204
- 2022Self-supervised Learning with Random-projection Quantizer for Speech Recognitioncited by 162
- 2017Self-Supervised Visual Planning with Temporal Skip Connectionscited by 139
- 2024Image and Video Tokenization with Binary Spherical Quantizationcited by 112
- 2023Straightening Out the Straight-Through Estimator: Overcoming Optimization Challenges in Vector Quantized Networkscited by 82
- 2022UViM: A Unified Modeling Approach for Vision with Learned Guiding Codescited by 78
- 2022SQ-VAE: Variational Bayes on Discrete Representation with Self-annealed Stochastic Quantizationcited by 68
- 2023Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector Quantizationcited by 60
- 2023Online Clustered Codebookcited by 55
- 2020Robust Training of Vector Quantized Bottleneck Modelscited by 54
- 2023Regularized Vector Quantization for Tokenized Image Synthesiscited by 46
- 2023Designing a Better Asymmetric VQGAN for StableDiffusioncited by 45
- 2024HyperVQ: MLR-based Vector Quantization in Hyperbolic Spacecited by 13
- 2023Soft Convex Quantization: Revisiting Vector Quantization with Convex Optimizationcited by 10
- 2024Balance of Number of Embedding and their Dimensions in Vector Quantizationcited by 4
Built on by
Citing papers per year: 2024: 3; 2025: 23; 2026: 25.
51 papers.
Sort:
By area:
- 2025GigaTok: Scaling Visual Tokenizers to 3 Billion Parameters for Autoregressive Image Generationcited by 57
- 2024SoftVQ-VAE: Efficient 1-Dimensional Continuous Tokenizercited by 56
- 2025Flow to the Mode: Mode-Seeking Diffusion Autoencoders for State-of-the-Art Image Tokenizationcited by 36
- 2025Cube: A Roblox View of 3D Intelligencecited by 15
- 2025STAR: Learning Diverse Robot Skill Abstractions through Rotation-Augmented Vector Quantizationcited by 13
- 2024Towards Unifying Understanding and Generation in the Era of Vision Foundation Models: A Survey from the Autoregression Perspectivecited by 10
- 2025Diffusion Generative Recommendation with Continuous Tokenscited by 9
- 2025CODA: Repurposing Continuous VAEs for Discrete Tokenizationcited by 8
- 2025Discrete Tokenization for Multimodal LLMs: A Comprehensive Surveycited by 8
- 2025Spherical Leech Quantization for Visual Tokenization and Generationcited by 6
- 2026Stop Treating Collisions Equally: Qualification-Aware Semantic ID Learning for Recommendation at Industrial Scalecited by 6
- 2025Instella-T2I: Pushing the Limits of 1D Discrete Latent Space Image Generationcited by 5
38 more
- 2025DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trickcited by 5
- 2025Eliciting Chain-of-Thought Reasoning for Time Series Analysis using Reinforcement Learningcited by 5
- 2025Mofasa: A Step Change in Metal-Organic Framework Generationcited by 5
- 2024Scaling Image Tokenizers with Grouped Spherical Quantizationcited by 4
- 2025Flow Autoencoders are Effective Protein Tokenizerscited by 4
- 2025Remote Inference over Dynamic Links via Adaptive Rate Deep Task-Oriented Vector Quantizationcited by 3
- 2025PathVQ: Reforming Computational Pathology Foundation Model for Whole Slide Image Analysis via Vector Quantizationcited by 3
- 2026WinQ: Accelerating Quantization-Aware Training of Language Models Around Saddle Pointscited by 3
- 2025HH-Codec: High Compression High-fidelity Discrete Neural Codec for Spoken Language Modelingcited by 2
- 2025Graph is a Natural Regularization: Revisiting Vector Quantization for Graph Representation Learningcited by 2
- 2026JacQuant: STE-Free Quantization-Aware Training via Learned Jacobian Surrogatescited by 2
- 2025Spotlight-TTS: Spotlighting the Style via Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speechcited by 1
- 2025MuseTok: Symbolic Music Tokenization for Generation and Semantic Understandingcited by 1
- 2025Training-Free Vector Quantization via Gaussian VAEscited by 1
- 2026VP-VAE: Rethinking Vector Quantization via Adaptive Vector Perturbationcited by 1
- 2026Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantizationcited by 1
- 2026Flow-Matching-Based Protein Structure Tokenizer Made Efficient and Easycited by 1
- 2026Scaling Collider Event Generation with Residual-Quantized Tokenscited by 1
- 2025Pushing Toward the Simplex Vertices: A Simple Remedy for Code Collapse in Smoothed Vector Quantizationcited by 0
- 2025Group-Wise Optimization for Self-Extensible Codebooks in Vector Quantized Modelscited by 0
- 2025Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speechcited by 0
- 2026SCAR-GS: Spatial Context Attention for Residuals in Progressive Gaussian Splattingcited by 0
- 2026Is Hierarchical Quantization Essential for Optimal Reconstruction?cited by 0
- 2026Generalized Radius and Integrated Codebook Transforms for Differentiable Vector Quantizationcited by 0
- 2026LGQ: Learnable Geometric Quantization for Image Tokenizationcited by 0
- 2026VorTEX: Various overlap ratio for Target speech EXtractioncited by 0
- 2026Investigating Permutation-Invariant Discrete Representation Learning for Spatially Aligned Imagescited by 0
- 2026Next-Acceleration-Scale Prediction for Autoregressive MRI Reconstructioncited by 0
- 2026Channel-wise Vector Quantizationcited by 0
- 2026Structure over Pixels: Learning Variable-Length Visual Programscited by 0
- 2026BiSCo-LLM: Lookup-Free Binary Spherical Coding for Extreme Low-Bit Large Language Model Compressioncited by 0
- 2026Learning Reusable Hybrid Motion Priors for Humanoid Locomotion from Motion Imitationcited by 0
- 2026BooST: Bridging Semantics and Motions for Efficient Skill Transfercited by 0
- 2026A Unified Rate-Distortion Perspective on Vector, Product, and Scalar Quantizationcited by 0
- 2026QUALS: Corpus Equilibrium for Universal Forecasting via Pattern Quantization and Learnability Synchronizationcited by 0
- 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenizationcited by 0
- 2026StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Trainingcited by 0
- 2026DualCast: A Dual-Path Language Model for Bimodal Financial Time-Series Forecastingcited by 0
50 most cited of 51 All 51 (JSON)
- 2026Riemannian Graph Tokenizer for Structural Knowledge Transfer11 Oct 2026
- 2026Scaling Collider Event Generation with Residual-Quantized Tokens30 Sep 2026
- 2026Flow-Matching-Based Protein Structure Tokenizer Made Efficient and Easy27 Sep 2026
- 2026StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Training22 Sep 2026
- 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenization21 Sep 2026
- 2026DualCast: A Dual-Path Language Model for Bimodal Financial Time-Series Forecasting18 Sep 2026
- 2026QUALS: Corpus Equilibrium for Universal Forecasting via Pattern Quantization and Learnability Synchronization17 Sep 2026
- 2026A Unified Rate-Distortion Perspective on Vector, Product, and Scalar Quantization2 Sep 2026
- 2026BooST: Bridging Semantics and Motions for Efficient Skill Transfer11 Aug 2026
- 2026Learning Reusable Hybrid Motion Priors for Humanoid Locomotion from Motion Imitation27 Jul 2026
- 2026BiSCo-LLM: Lookup-Free Binary Spherical Coding for Extreme Low-Bit Large Language Model Compression9 Jul 2026
- 2026Structure over Pixels: Learning Variable-Length Visual Programs26 May 2026
38 more
- 2026Channel-wise Vector Quantization25 May 2026
- 2026JacQuant: STE-Free Quantization-Aware Training via Learned Jacobian Surrogates25 May 2026
- 2026Next-Acceleration-Scale Prediction for Autoregressive MRI Reconstruction19 May 2026
- 2026WinQ: Accelerating Quantization-Aware Training of Language Models Around Saddle Points17 May 2026
- 2026Investigating Permutation-Invariant Discrete Representation Learning for Spatially Aligned Images2 Apr 2026
- 2026VorTEX: Various overlap ratio for Target speech EXtraction16 Mar 2026
- 2026Stop Treating Collisions Equally: Qualification-Aware Semantic ID Learning for Recommendation at Industrial Scale28 Feb 2026
- 2026Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization21 Feb 2026
- 2026VP-VAE: Rethinking Vector Quantization via Adaptive Vector Perturbation19 Feb 2026
- 2026LGQ: Learnable Geometric Quantization for Image Tokenization17 Feb 2026
- 2026Generalized Radius and Integrated Codebook Transforms for Differentiable Vector Quantization1 Feb 2026
- 2026Is Hierarchical Quantization Essential for Optimal Reconstruction?29 Jan 2026
- 2026SCAR-GS: Spatial Context Attention for Residuals in Progressive Gaussian Splatting7 Jan 2026
- 2025Spherical Leech Quantization for Visual Tokenization and Generation16 Dec 2025
- 2025Training-Free Vector Quantization via Gaussian VAEs7 Dec 2025
- 2025Mofasa: A Step Change in Metal-Organic Framework Generation1 Dec 2025
- 2025Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speech18 Nov 2025
- 2025MuseTok: Symbolic Music Tokenization for Generation and Semantic Understanding18 Oct 2025
- 2025Group-Wise Optimization for Self-Extensible Codebooks in Vector Quantized Models15 Oct 2025
- 2025Eliciting Chain-of-Thought Reasoning for Time Series Analysis using Reinforcement Learning1 Oct 2025
- 2025Flow Autoencoders are Effective Protein Tokenizers30 Sep 2025
- 2025DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trick30 Sep 2025
- 2025Pushing Toward the Simplex Vertices: A Simple Remedy for Code Collapse in Smoothed Vector Quantization26 Sep 2025
- 2025Graph is a Natural Regularization: Revisiting Vector Quantization for Graph Representation Learning8 Aug 2025
- 2025HH-Codec: High Compression High-fidelity Discrete Neural Codec for Spoken Language Modeling25 Jul 2025
- 2025Discrete Tokenization for Multimodal LLMs: A Comprehensive Survey21 Jul 2025
- 2025Instella-T2I: Pushing the Limits of 1D Discrete Latent Space Image Generation26 Jun 2025
- 2025STAR: Learning Diverse Robot Skill Abstractions through Rotation-Augmented Vector Quantization4 Jun 2025
- 2025Spotlight-TTS: Spotlighting the Style via Voiced-Aware Style Extraction and Style Direction Adjustment for Expressive Text-to-Speech27 May 2025
- 2025Diffusion Generative Recommendation with Continuous Tokens16 Apr 2025
- 2025GigaTok: Scaling Visual Tokenizers to 3 Billion Parameters for Autoregressive Image Generation11 Apr 2025
- 2025CODA: Repurposing Continuous VAEs for Discrete Tokenization22 Mar 2025
- 2025Cube: A Roblox View of 3D Intelligence19 Mar 2025
- 2025Flow to the Mode: Mode-Seeking Diffusion Autoencoders for State-of-the-Art Image Tokenization14 Mar 2025
- 2025PathVQ: Reforming Computational Pathology Foundation Model for Whole Slide Image Analysis via Vector Quantization9 Mar 2025
- 2025Remote Inference over Dynamic Links via Adaptive Rate Deep Task-Oriented Vector Quantization5 Jan 2025
- 2024SoftVQ-VAE: Efficient 1-Dimensional Continuous Tokenizer14 Dec 2024
- 2024Scaling Image Tokenizers with Grouped Spherical Quantization3 Dec 2024
50 newest of 51 All 51 (JSON)
- 2025Flow to the Mode: Mode-Seeking Diffusion Autoencoders for State-of-the-Art Image Tokenizationcited by 36
- 2025Flow Autoencoders are Effective Protein Tokenizerscited by 4
- 2026Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantizationcited by 1
- 2026Flow-Matching-Based Protein Structure Tokenizer Made Efficient and Easycited by 1
- 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenizationcited by 0
- 2026Flow-Matching-Based Protein Structure Tokenizer Made Efficient and Easy27 Sep 2026
- 2026What Makes a Good Medical Image Tokenizer? Rethinking Reconstruction and Generation in Medical Image Tokenization21 Sep 2026
- 2026Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization21 Feb 2026
- 2025Flow Autoencoders are Effective Protein Tokenizers30 Sep 2025
- 2025Flow to the Mode: Mode-Seeking Diffusion Autoencoders for State-of-the-Art Image Tokenization14 Mar 2025
- 2025GigaTok: Scaling Visual Tokenizers to 3 Billion Parameters for Autoregressive Image Generationcited by 57
- 2024SoftVQ-VAE: Efficient 1-Dimensional Continuous Tokenizercited by 56
- 2025Cube: A Roblox View of 3D Intelligencecited by 15
- 2025STAR: Learning Diverse Robot Skill Abstractions through Rotation-Augmented Vector Quantizationcited by 13
- 2024Towards Unifying Understanding and Generation in the Era of Vision Foundation Models: A Survey from the Autoregression Perspectivecited by 10
- 2025Diffusion Generative Recommendation with Continuous Tokenscited by 9
- 2025CODA: Repurposing Continuous VAEs for Discrete Tokenizationcited by 8
- 2025Spherical Leech Quantization for Visual Tokenization and Generationcited by 6
- 2026Stop Treating Collisions Equally: Qualification-Aware Semantic ID Learning for Recommendation at Industrial Scalecited by 6
- 2025Instella-T2I: Pushing the Limits of 1D Discrete Latent Space Image Generationcited by 5
- 2025DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trickcited by 5
- 2025Mofasa: A Step Change in Metal-Organic Framework Generationcited by 5
12 most cited of 43 All 43 (JSON)
- 2026Riemannian Graph Tokenizer for Structural Knowledge Transfer11 Oct 2026
- 2026Scaling Collider Event Generation with Residual-Quantized Tokens30 Sep 2026
- 2026StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Training22 Sep 2026
- 2026DualCast: A Dual-Path Language Model for Bimodal Financial Time-Series Forecasting18 Sep 2026
- 2026QUALS: Corpus Equilibrium for Universal Forecasting via Pattern Quantization and Learnability Synchronization17 Sep 2026
- 2026A Unified Rate-Distortion Perspective on Vector, Product, and Scalar Quantization2 Sep 2026
- 2026BooST: Bridging Semantics and Motions for Efficient Skill Transfer11 Aug 2026
- 2026BiSCo-LLM: Lookup-Free Binary Spherical Coding for Extreme Low-Bit Large Language Model Compression9 Jul 2026
- 2026Structure over Pixels: Learning Variable-Length Visual Programs26 May 2026
- 2026Channel-wise Vector Quantization25 May 2026
- 2026JacQuant: STE-Free Quantization-Aware Training via Learned Jacobian Surrogates25 May 2026
- 2026Next-Acceleration-Scale Prediction for Autoregressive MRI Reconstruction19 May 2026
12 newest of 43 All 43 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025MGVQ: Could VQ-VAE Beat VAE? A Generalizable Tokenizer with Multi-group Quantization
- 2022Diffusion bridges vector quantized Variational AutoEncoders
- 2024Addressing Representation Collapse in Vector Quantized Models with One Linear Layer
- 2024Gaussian Mixture Vector Quantization with Aggregated Categorical Posterior
- 2023Vector Quantized Wasserstein Auto-Encoder
- 2023HQ-VAE: Hierarchical Discrete Representation Learning with Variational Bayes
- 2026ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margin
- 2022Robust Vector Quantized-Variational Autoencoder