ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Learning to Quantize for Training Vector-Quantized Networks

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: PDFpp4-6; Equations3-7,11-17; models/models_vq.py100-105

Question: What does the recorded analysis establish about “Learning to Quantize for Training Vector-Quantized Networks”?
Bounded finding:
With unchanged nearest-code assignments, literal unrolled stop-gradient differentiation gives0.4 while Eq16 gives0.576 for all sufficiently small finite-difference steps. Finite-update task feedback can remain useful; no benchmark refutation.

Recorded check:
Existing findings, counterevidence and bounded classifications; no scientific reassessment performed during import.
Complete public transcription of the retained report, with internal workflow identifiers and host paths omitted.

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.

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
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.

Analysis citation:
Minhao Liu. ELVIA analysis of: Learning to Quantize for Training Vector-Quantized Networks. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks.html
Case icml2025-0140-learning-to-quantize-for-training-vector-quantized-networks; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned 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

Recorded claims and inspection subjects:
Equations12-16 compute/approximate the gradient of the one-step unrolled objective using mixed derivatives and finite differences; Sec4.3 interprets them as best-response gradient paths.
Recorded domain:
Completed report for I25-43509; exact inspected scope and limitations are retained in the report and coverage ledger.
Recorded assumptions:
Point input/target0; scalar F_phi=phi and G_theta(z)=theta*z.
Affine hyper-net generates codes(psi,psi+10); one parameter component examined with others fixed.
phi=theta=psi=1, alpha=beta=1, xi=.1; all allowed by local derivation.
First code strictly nearest before and after inner step and for all tested perturbations; no boundary/tie.
Squared task/commitment/codebook losses and exactly stated stop-gradient/STE; optional gamma0.
Recorded dependencies:

Actual review scope:
Completed report for I25-43509; exact inspected scope and limitations are retained in the report and coverage ledger.

Evidence and counterevidence:
retained-findings (support; Formatting-only transcription of the selected completed report.): Existing findings, counterevidence and bounded classifications; no scientific reassessment performed during import.
retained-report (support; LaTeX parsed as data; no author code or TeX execution.): Complete public transcription of the retained report, with internal workflow identifiers and host paths omitted.
scope-and-rebuttal (rebuttal; Public copy of the archived coverage ledger.): Existing inspection coverage, counterevidence, missing materials and unresolved scope remain as supplied.
editable-latex (support; Formatting conversion only; original archive bytes remain unchanged.): Public editable report generated from the same retained transcription.

Displayed problem statements:
Source finding p1: The finite difference does not approximate the stated unrolled hypergradient
Equations12-16 compute/approximate the gradient of the one-step unrolled objective using mixed derivatives and finite differences; Sec4.3 interprets them as best-response gradient paths.
Point input/target0; scalar \(F_\phi=\phi\) and \(G_\theta\)(z)=\(\theta\)*z. Affine hyper-net generates codes(\(\psi\),\(\psi\)+10); one parameter component examined with others fixed. \(\phi=\theta=\psi\)=1, \(\alpha=\beta=1\), xi=.1; all allowed by local derivation. First code strictly nearest before and after inner step and for all tested perturbations; no boundary/tie. Squared task/commitment/codebook losses and exactly stated stop-gradient/STE; optional entropy term with coefficient \(0\).

Complete retained report:

Abstract: The inspected finite-difference hypergradient derivation is inconsistent with the specified straight-through and stop-gradient rules. A scalar quantizer with two strictly separated codes gives an unrolled automatic-differentiation gradient of \(0.4\), whereas the paper’s finite-difference expression gives \(0.576\) for every sufficiently small perturbation. The discrepancy does not involve a changing nearest-neighbor index or truncation error. It supports a Major finding about the central derivation and its interpretation as a bilevel hypergradient. The finite perturbation update may remain a useful task-aware heuristic; its empirical benefits were not reproduced or disproved.
Date: Initial review, 24 October 2026
Title: Scientific Review of Meta-Quantization
# Identity, version, and inspected scope
This report concerns 0140 / I25-43509, P. Qin and J. Zhang, Learning to Quantize for Training Vector-Quantized Networks, ICML 2025, PMLR 267, 50435–50447 [1]. The reviewed original is the staged 13-page proceedings PDF. References below use one-based PDF pages, which agree with the paper’s internal page labels. The main text runs through p. 9; pp. 10–13 contain references and end matter, with no embedded technical appendix.
The complete source manifest was read. The PDF and staged source bytes were checked against their recorded hashes. The released source is `t2ance/MQVAE`, commit
`c717b55dc22b40fa536a2ddea13034a0b8971d17`.
Its 17-file tree is evidence about that release, not a historical execution receipt. The review covers the method on pp. 1–6, the experiment and ablation descriptions and tables on pp. 6–9, the full quantizer and training driver, and relevant loss and argument definitions. Visual examples and benchmark results were not regenerated; the bibliography was not exhaustively audited. No author code was executed.
# Necessary distinction between three derivatives
Let \(\operatorname{sg}(u)\) have numerical value \(u\) but zero assigned derivatives, as explicitly defined on p. 4. With a locally fixed selected code \(q\), the released implementation supplies the task loss with \[q_{\rm ST}=z_e+\operatorname{sg}(q-z_e).\] It also computes commitment and codebook losses with opposite stopped arguments, matching Equations (4)–(7). Thus numerical values, assigned backward derivatives, and derivatives of a freshly re-evaluated gradient field need not coincide.
For an ordinary twice continuously differentiable scalar objective, the chain rule and the central difference in Equations (12)–(16), p. 5, have the familiar justification. Here that justification must be established for the actual stop-gradient computation. In particular, a finite perturbation re-evaluates the numerical contents of stopped expressions, whereas differentiating their existing computational graph does not. This distinction is separate from the explicitly acknowledged one-step approximation to a fully solved inner problem.
# Problem 1: The finite difference does not approximate the stated unrolled hypergradient
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.
## Admissible parameters and unchanged quantization branch
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.
Equation reference: loss, field. 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.
## Literal unrolled differentiation
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}\).
## The paper’s central difference
Equation reference: fd. 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.
## Alternative interpretations and counterevidence
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.
# Source correspondence and bounded consequences
The relevant released operations are in `models/models_vq.py`, lines 100–105: discrete nearest-code selection, the two oppositely detached squared losses, and the STE. Lines 115–120 add an optional entropy term; its default coefficient is zero, as used in the example. The hyper-net permits linear and MLP forms at lines 32–56. These facts corroborate the mathematical graph examined above.
The full training driver was read statically. It selects a Betty-based method using `hyper_gradient_type`, whose default is `darts` (`arguments.py`, lines 34–36), and connects generator and codebook problems at `training_vqgan.py`, lines 421–426. The externally provided Betty implementation was not staged or pinned by the unversioned requirements list. Accordingly this report evaluates the paper’s explicit Equation (16), not an unobserved library runtime or historical job.
Other current-release details require provenance clarification: the codebook optimizer is SGD at lines 389–392 of the training driver, whereas the paper’s experiment descriptions discuss Adam; the shared reconstruction routine in `utils.py`, line 91, computes absolute error, whereas the VQVAE experiment description specifies MSE. The staged release principally supplies an FFHQ MQGAN configuration. These observations do not establish what ran in the VQVAE studies or that published results are invalid. They remain Needs Evidence for reproduction and version correspondence, not additional graded Problems.
The failed derivative equivalence directly affects the central optimization construction, the claimed best-response interpretation in Section 4.3, and the meaning attached to indirect gradients in Section 5.5. This core dependence supports Major under the assigned standard, without requiring score degradation or a whole-paper refutation. The hyper-net representation, constant inference cost after materializing its codebook, and the possibility of empirical usefulness survive. Reported benchmark comparisons, their uncertainty, training histories, and cited baseline comparability were not independently reproduced.
# Conclusion and remaining work
Item | Judgment | Repair verification | Adoption / remaining work
Equations (14)–(16) | Major | Exact counterexample verified | Not requested; estimator/objective needs definition
One-step truncation | Scope clarification | Explicitly acknowledged | No new convergence claim
Task feedback in finite update | No Issue Found | Present through \(v_\phi\) | Does not prove hypergradient identity
Historical implementation | Needs Evidence | Static differences recorded | Bind versions and run configurations
Empirical performance | Needs Evidence | No benchmark reproduction | Data, runs, and uncertainty unresolved
Scientific decision | Pending | Initial review only | Human reviews empty
# Supporting checks
`a4fdc4ff8ef030b6ab28932ab4eea4c337c61d5a72093bea08b0187399b25502`.
The manifest, original, archive metadata, and all staged tree files were preserved. Source PDF pages 4, 5, and 6 were actually opened as rendered images to check the stop-gradient definition, mixed-derivative expression, and gradient analysis. Full static reads covered `models/models_vq.py` (180 lines), `training_vqgan.py` (436), `utils.py` (180), README, requirements, and the FFHQ configuration, plus selected argument definitions.
The independently authored check ran with the existing Python and SymPy and exited with code zero. It implements scalar derivative propagation directly; it does not import Torch, Betty, or author modules. Torch was not available in the selected existing Python environment, so no Torch-based execution check was claimed and nothing was installed. This limitation does not affect the exact symbolic and rational counterexample. The relevant script, outputs, timestamps, and hashes are durable under .
The existing Tectonic tool and offline font cache were used, with recorded template compatibility adjustments and a bundled AMS class.
Optional OpenReview supplementary metadata remained inaccessible (HTTP 403); no separate supplement was listed in the available PMLR metadata, and separate OpenReview supplement availability is undetermined. No additional paper source, dataset, or weight download occurred. No later-version comparison or comprehensive erratum search was performed. No author code was executed.
9 P. Qin and J. Zhang, Learning to Quantize for Training Vector-Quantized Networks, PMLR 267 (2025), 50435–50447. https://proceedings.mlr.press/v267/qin25j.html. t2ance, MQVAE, released commit c717b55dc22b40fa536a2ddea13034a0b8971d17. https://github.com/t2ance/MQVAE.

Source PDF SHA-256: a4fdc4ff8ef030b6ab28932ab4eea4c337c61d5a72093bea08b0187399b25502
Repair verification: pending
Author adoption: not_requested