ELVIA analysis of: Learning to Quantize for Training Vector-Quantized Networks — Problem 1: The finite difference does not approximate the stated unrolled hypergradient
Original paper: Peijia Qin; Jianguo Zhang. Learning to Quantize for Training Vector-Quantized Networks. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/qin25j.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: PDF pp. 4-6; Equations3-7,11-17; models/models_vq.py100-105
Question: What does the recorded analysis establish about “The finite difference does not approximate the stated unrolled hypergradient”?
Bounded finding:
One could instead differentiate the freshly recomputed numerical gradient field [field] (#field) to describe how actual inner updates change with \(\psi\). That also does not justify the transpose used in Equation (16). At the stated point with unit weights, \[\frac{d(g_\phi,g_\theta)}{d\psi}=(0,4),\qquad
\frac{d g_\psi}{d(\phi,\theta)}=(-2,0).\] These are not transposes of one another. The stopped backward field is not the gradient of a common smooth scalar potential across reevaluations, so symmetry of mixed partials cannot be imported.
For further separation of the objects, the ordinary numerical loss after the one-step inner update has \[\phi'(\psi)=\tfrac45,\quad \theta'(\psi)=1-\tfrac15\psi^{2},\quad
V(\psi)=\{(1-\tfrac15\psi^{2})\psi\}^{2}+
2(\tfrac45-\psi)^{2} .\] It satisfies \(V'(1)=36/25=1.44\), also not [fd] (#fd). This is not an assertion that STE must equal an ordinary forward derivative; STE is deliberately a surrogate. It shows why a precise choice of differentiated object is essential.
The finite perturbation update does contain task information through \(v_\phi\); it can therefore be a task-aware heuristic with nonzero indirect-update plots. The finding does not say that this update has no useful feedback, nor that the method cannot improve reconstruction. A different explicit smooth surrogate, or a separately defined higher-order estimator, may support a valid derivation. Neither was specified in the inspected argument to restore the asserted identity. No complete corrective objective or training algorithm is certified here.
FD is not a consistent approximation to the stated graph derivative; recomputed fields also have nonsymmetric cross derivatives (0,4) versus(-2,0). Ordinary numerical unrolled scalar derivative1.44 also differs. Major invalid core derivation; no empirical score or whole-framework refutation.
Recorded check:
Supported impact: Major. Equations (12)–(14) identify the one-step upper gradient with a direct term and two mixed-derivative products. Equations (15)–(16) approximate those products by differences of \(\nabla_\psi\mathcal L\) under perturbations of \(\phi\) and \(\theta\). Section 4.3 and Figure 2 then use these terms to explain how task feedback reaches the quantizer. The suspect step is applying this finite-difference identity to a gradient field containing the specified stop-gradient operations.
Take one scalar training input and target \(x=y=0\), encoder \(F_\phi(x)=\phi\), and decoder \(G_\theta(z)=\theta z\). Let the two codes be \[C_\psi=(\psi,\psi+10).\] This is an affine hyper-net \(H_\psi(e)=e+\psi\) acting on embedding values \(0,10\). The other hyper-net or embedding coordinates can be held fixed when examining this parameter component. Affine reparameterization is within the method’s stated framework and its linear ablations. No claim is made that this small network is a benchmark architecture.
Use squared reconstruction loss, squared Euclidean commitment and codebook losses, \(\alpha=\beta=1\), and \[\phi=\theta=\psi=1,\qquad \xi=\tfrac1{10}.\] These positive loss weights and learning rate are not excluded by the derivation. At the initial point the code \(q=\psi=1\) is uniquely nearest; after the inner step the encoder value will be \(4/5\), still uniquely nearest to that code. All perturbations below remain in the same cell: the other code is \(11\), and the assignment boundary is at \(6\). There is no argmin tie or boundary crossing.
In this branch the actual forward graph is \[
\mathcal L=
\bigl[\theta\{\phi+\operatorname{sg}(\psi-\phi)\}\bigr]^{2}
+\alpha\{\phi-\operatorname{sg}(\psi)\}^{2}
+\beta\{\psi-\operatorname{sg}(\phi)\}^{2} .\] The assigned first-order gradients, evaluated numerically at general points of this branch, are \[
g_\phi=2\theta^{2}\psi+2\alpha(\phi-\psi),\qquad
g_\theta=2\theta\psi^{2},\qquad
g_\psi=2\beta(\psi-\phi).\] Equation [field] (#field) describes their values after reevaluation. It is not permission to erase stop-gradient nodes when taking higher derivatives.
At the initial point, \(g_\phi=g_\theta=2\), so \(\phi'=\theta'=4/5\). When the graph [loss] (#loss) is differentiated again, both \[D_\psi^{\rm AD}g_\phi=0,\qquad D_\psi^{\rm AD}g_\theta=0.\] All paths from the reconstruction or commitment term to \(\psi\) are stopped; the codebook term has no backward path to \(\phi,\theta\). A fully explicit way to verify this is to replace the three stopped expressions in the local graph by frozen symbols \(u,v,w\): \[\widetilde{\mathcal L}
=[\theta(\phi+u)]^{2}+\alpha(\phi-v)^{2}+\beta(\psi-w)^2.\] Then \(\partial_\psi\partial_\phi\widetilde{\mathcal L}
=\partial_\psi\partial_\theta\widetilde{\mathcal L}=0\) identically. Consequently the inner updated parameters have zero assigned \(\psi\)-derivative. At the outer point, the direct codebook gradient is \[g_\psi^{\rm out}=2(1-\tfrac45)=\tfrac25,\] and the complete literal unrolled gradient is also \(\boxed{2/5=0.4}\).
At the outer point, the two directions prescribed below Equation (16) are \[v_\phi=g_\phi(\phi',\theta',\psi)
=2(\tfrac45)^{2}+2(\tfrac45-1)=\tfrac{22}{25},
\qquad
v_\theta=g_\theta(\phi',\theta',\psi)=\tfrac85.\] Recomputing the codebook gradient at \(\phi^\pm=1\pm\epsilon v_\phi\) gives \[\frac{g_\psi(\phi^+,\theta,\psi)
-g_\psi(\phi^-,\theta,\psi)}{2\epsilon}
=-2v_\phi=-\frac{44}{25}.\] The corresponding \(\theta\)-difference is zero. Therefore the finite-difference hypergradient in Equation (16) is exactly \[
\frac25-\frac1{10}\left(-\frac{44}{25}\right)
=\boxed{\frac{72}{125}=0.576}.\] This holds for every sufficiently small nonzero \(\epsilon\), not just a poorly chosen perturbation size. The difference \(22/125=0.176\) from the stated graph derivative does not tend to zero. The linearity of \(g_\psi\) makes the finite difference exact for its own, different target.
Reviewer-written exact rational calculations checked \(\epsilon=10^{-2},10^{-4},10^{-6}\) and the frozen-symbol mixed derivatives. An independent scalar differentiation implementation propagated values, gradients, and Hessians with zero derivatives at stop-gradient nodes. It gave the same \(0.4\) unrolled result. With effective weights \(\alpha=\beta=0.1\), matching the quantization weighting style in the released FFHQ configuration, the two results remain different: \(0.04\) versus \(0.0648\). These checks are in and its JSON/stdout outputs.
Case-wide limitations:
- Limitations: No author-code, Torch or Betty execution; installed selected Python lacks Torch, and unversioned Betty dependency source is not staged.
- Limitations: No benchmark, data/weight downloads, historical run reproduction or exact inner convergence test.
- Limitations: Current release has SGD codebook optimizer and absolute-error reconstruction routine; historical VQVAE configuration remains unbound.
- Limitations: No full corrected objective, higher-order estimator or convergence theorem certified.
- Limitations: No separate supplement supplied; OpenReview403 makes separate supplement presence undetermined.
- Limitations: References pp10-13 not exhaustively checked; no comprehensive later-version or erratum search.
- Limitations: Visible model-selector observation and conversation URL remain controller-owned and unavailable; no Space reference supplied.
- P1 — Counterevidence: FD update contains task information through v_phi and may be empirically useful; standard formula valid for a suitable C2 objective; one-step approximation itself explicitly acknowledged. A new higher-order estimator would require definition and proof.
- P1 — Limits: No new training algorithm or complete objective certified; counterexample does not negate usefulness of finite-perturbation heuristic.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1
Original source excerpts (verbatim):
Different from previous VQ objectives, our innovation results in a meta-objective that makes the codebook training task-aware.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: Abstract, PDF p. 1
Source PDF SHA-256: a4fdc4ff8ef030b6ab28932ab4eea4c337c61d5a72093bea08b0187399b25502
Review status: Independent review pending
Case: icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks/records/icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks.r1.json
Canonical record SHA-256: 2e81805dab0536020c238d80db070959b3cf02669e0df1dbfdcfd7d52e437e92
The page follows the latest revision; the versioned record identifies this snapshot.