DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trick

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Vali, Mohammad Hassan, Bäckström, Tom, Solin, Arno
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914603639767040
author Vali, Mohammad Hassan
Bäckström, Tom
Solin, Arno
author_facet Vali, Mohammad Hassan
Bäckström, Tom
Solin, Arno
contents Vector quantization is common in deep models, yet its hard assignments block gradients and hinder end-to-end training. We propose DiVeQ, which treats quantization as adding an error vector that mimics the quantization distortion, keeping the forward pass hard while letting gradients flow. We also present a space-filling variant (SF-DiVeQ) that assigns input to a curve constructed by the lines connecting codewords, resulting in less quantization error and full codebook usage. Both methods train end-to-end without requiring auxiliary losses or temperature schedules. In VQ-VAE image compression, VQGAN image generation, and DAC speech coding tasks across various data sets, our proposed methods improve reconstruction and sample quality over alternative quantization approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2509_26469
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trick
Vali, Mohammad Hassan
Bäckström, Tom
Solin, Arno
Machine Learning
Vector quantization is common in deep models, yet its hard assignments block gradients and hinder end-to-end training. We propose DiVeQ, which treats quantization as adding an error vector that mimics the quantization distortion, keeping the forward pass hard while letting gradients flow. We also present a space-filling variant (SF-DiVeQ) that assigns input to a curve constructed by the lines connecting codewords, resulting in less quantization error and full codebook usage. Both methods train end-to-end without requiring auxiliary losses or temperature schedules. In VQ-VAE image compression, VQGAN image generation, and DAC speech coding tasks across various data sets, our proposed methods improve reconstruction and sample quality over alternative quantization approaches.
title DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trick
topic Machine Learning
url https://arxiv.org/abs/2509.26469