Straightening Out the Straight-Through Estimator: Overcoming Optimization Challenges in Vector Quantized Networks
Minyoung Huh, Brian Cheung, Pulkit Agrawal, Phillip Isola
摘要
This work examines the challenges of training neural networks using vector quantization using straight-through estimation. We find that a primary cause of training instability is the discrepancy between the model embedding and the codevector distribution. We identify the factors that contribute to this issue, including the codebook gradient sparsity and the asymmetric nature of the commitment loss, which leads to misaligned codevector assignments. We propose to address this issue via affine re-parameterization of the code vectors. Additionally, we introduce an alternating optimization to reduce the gradient error introduced by the straight-through estimation. Moreover, we propose an improvement to the commitment loss to ensure better alignment between the codebook representation and the model embedding. These optimization methods improve the mathematical approximation of the straightthrough estimation and, ultimately, the model performance. We demonstrate the effectiveness of our methods on several common model architectures, such as AlexNet, ResNet, and ViT, across various tasks, including image classification and generative modeling. Project page: minyoungg.github.io/vqtorch 1 MIT CSAIL 2 MIT BCS. Correspondence to: Minyoung Huh
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 39 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Vector-quantized Image Modeling with Improved VQGAN 引用了 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- Vector-quantized Image Modeling with Improved VQGAN 引用了 Zero-Shot Text-to-Image Generation
- Unsupervised Learning of Visual Features by Contrasting Cluster Assignments 引用了 Self-labelling via simultaneous clustering and representation learning
- Copilot4D: Learning Unsupervised World Models for Autonomous Driving via Discrete Diffusion 引用了 Zero-Shot Text-to-Image Generation
- GFT: Graph Foundation Model with Transferable Tree Vocabulary 引用了 Vector-quantized Image Modeling with Improved VQGAN
- Finite Scalar Quantization: VQ-VAE Made Simple 引用了 Vector-quantized Image Modeling with Improved VQGAN
- Learning to Act without Actions 引用了 Zero-Shot Text-to-Image Generation
引用它的顶会 Paper39
- Finite Scalar Quantization: VQ-VAE Made SimpleFabian Mentzer, David Minnen, Eirikur Agustsson, Michael TschannenICLR 2024 · 442 次引用
- GFT: Graph Foundation Model with Transferable Tree VocabularyZehong Wang, Zheyuan Zhang, Nitesh V. Chawla, Chuxu Zhang 等NeurIPS 2024 · 108 次引用
- Copilot4D: Learning Unsupervised World Models for Autonomous Driving via Discrete DiffusionLunjun Zhang, Yuwen Xiong, Ze Yang, Sergio Casas 等ICLR 2024 · 105 次引用
- Learning to Act without ActionsDominik Schmidt, Minqi JiangICLR 2024 · 98 次引用
- UniAudio 1.5: Large Language Model-Driven Audio Codec is A Few-Shot Audio Task LearnerDongchao Yang, Haohan Guo, Yuanyuan Wang, Rongjie Huang 等NeurIPS 2024 · 55 次引用
它引用的 Paper11
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray 等ICML 2021 · 6,356 次引用
- Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal 等NeurIPS 2020 · 5,249 次引用
- Self-labelling via simultaneous clustering and representation learningYuki Markus Asano, Christian Rupprecht, Andrea VedaldiICLR 2020 · 873 次引用
- Vector-quantized Image Modeling with Improved VQGANJiahui Yu, Xin Li, Jing Yu Koh, Han Zhang 等ICLR 2022 · 753 次引用
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data AugmentationsXiangning Chen, Cho-Jui Hsieh, Boqing GongICLR 2022 · 388 次引用
相关 Paper
- Correcting Quantization-Induced Gradient Mismatch in Neural Image CompressionChanghao Peng, Yuqi Ye, Wei GaoAAAI 2026
- Restructuring Vector Quantization with the Rotation TrickChristopher Fifty, Ronald Guenther Junkins, Dennis Duan, Aniketh Iyengar 等ICLR 2025 · 1 次引用
- DiVeQ: Differentiable Vector Quantization Using the Reparameterization TrickMohammad Hassan Vali, Tom Bäckström, Arno SolinICLR 2026 · 6 次引用
- Oscillation-free Quantization for Low-bit Vision TransformersShih-Yang Liu, Zechun Liu, Kwang-Ting ChengICML 2023 · 63 次引用
- VQ-Transplant: Efficient VQ-Module Integration for Pre-trained Visual TokenizersXianghong Fang, Yuan Yuan, Dehan Kong, Tim G. J. RudnerICLR 2026 · 2 次引用
