Latent Thought Models with Variational Bayes Inference-Time Computation
ELVIA analysis
Independent review pending
The released global update includes decoder validation gradients, and noise used to fit the posterior is reused to estimate its ELBO. Exact Gaussian and finite-step toy checks support the estimator defect. The full KL and ideal ELBO remain correct; historical impact is unresolved.
Problem 1. Decoder-gradient carryover includes validation targets
MajorEvidence and reasoning
Problem statement
The model is Each sequence has local diagonal-Gaussian variational parameters The decoder parameters are shared. Equation (5), p. 4, is The identity proves the ELBO bound whenever the expectations are well-defined. Optimizing using the entire observed test sequence is legitimate for density estimation under this identity; it is not itself evidence of answer leakage.
The Fisher identity in Eq. (3), the Langevin noise scaling in Eq. (4), and the conditional predictive integral in Eq. (6) are also consistent under their usual differentiation/integration assumptions. Conditional generation infers from the prefix then generates the completion; the formula does not require access to the true completion. Finite-step inference bias is explicitly acknowledged on p. 4.
Importantly, the released `model.py:562--609` charges the full Gaussian KL, with coefficient one. It sums the reconstruction loss over tokens, adds divides by sequence length, exponentiates per sequence, and averages the resulting perplexities across the batch. The issue is not omission or arbitrary downweighting of KL. The validation caller records this perplexity separately from a reconstruction-only loss.
Algorithm 1, p. 4, separates updating each sequence’s local from a slow update of the shared decoder. During validation, local fitting should leave shared parameters and their training optimizer state unaffected.
In `optimizer.py:105`, the inner AdamW optimizer owns only `mu` and `log_var`. Its `zero_grad` at line therefore clears only those variables. The backward calls at lines traverse the decoder as well as the local variables. Decoder weights retain their gradient requirements; changing the module to evaluation mode does not freeze them. The code detaches an optional cache, not the full decoder computation.
The validation routine in `train_ltm.py:237--285` repeatedly calls this same posterior optimizer on `val` batches. Periodic evaluation at lines – precedes the training micro-batches. Their inner backward passes and final reconstruction backward pass add more gradients. The global optimizer consumes the accumulated decoder gradients at line Only line clears them, after the step. The inspected source contains no intervening decoder freeze or reset that cancels this path.
For the ordinary single-GPU branch, this yields before clipping and the optimizer transformation. The last sum is present on evaluation iterations. The sums also have different normalization from the intended slow loss: inner ELBO losses are summed over tokens/batches, whereas the final slow cross-entropy is averaged and divided for gradient accumulation.
The actual default configuration has fast steps, validation batches, evaluation every iterations, and a positive global learning rate at iteration It uses `bfloat16`, so the gradient scaler is disabled. This ordinary supported path is sufficient; no behavior of a particular multi-GPU execution is assumed.
Ordinary supported single-GPU path; decoder requires_grad unchanged; positive-LR eval at bfloat16disabled scaler.
Proof
The pinned training path does not isolate fast local optimization from slow global optimization.
The mechanism does not depend on a large Transformer. For a scalar decoder logit and a validation target one, the negative log likelihood is At An optimizer that clears only leaves that decoder gradient untouched. Even a subsequent training loss with zero decoder gradient cannot remove it by addition.
Zero global learning rate on the first iteration is not a general rescue. With the supplied Adam coefficients one such gradient creates first/second moments and even if that step’s learning rate is zero. At the next step, with zero new gradient and learning rate the bias-corrected Adam update moves an initially zero parameter by approximately Without the validation gradient it remains zero. This is an independent analytic optimizer calculation, not a run of the author software. Later evaluation steps already have positive learning rates and establish the problem without relying on this moment-state observation.
An evaluation-only script that never makes another global update would not have this training contamination. The finding concerns the released combined training/validation loop. Nor is it an accusation that legitimate local posterior fitting inherently trains the global model on test answers; it is the specific uncancelled global-gradient path that does so here.
This is Major for the released core learning/evaluation implementation: the slow update differs from the stated dual-rate algorithm, and held-out validation targets can affect shared training. It directly threatens the interpretation of validation perplexity and scaling curves generated by this path. The exact magnitude and whether the historical published runs used this version are Needs Evidence; no published score is declared refuted on provenance alone.
A correct isolation rule is to compute fast-step gradients only for the local variational parameters, or temporarily freeze decoder parameters while retaining differentiation through the decoder to its latent inputs. Restore the decoder’s gradient flags for the slow step. Validation must leave both decoder gradients and global optimizer state unchanged. Deliberate outer micro-batch gradients must be preserved, so indiscriminately clearing all gradients after every inner step is not a general repair. These rules remove the identified paths; implementation testing and retraining would still be needed to validate revised results. No author source was modified.
Possible revision
Computeonlylocalgrads or freeze decoder flags during fast step whilepreservinglatentgradientandoutermicrobatchaccumulation; validationmustpreserveglobalgrad/optimizerstate. Retraining needed.
Problem 2. Adaptive scoring-noise reuse invalidates fitted-ELBO estimator
MajorEvidence and reasoning
Problem statement
The model is Each sequence has local diagonal-Gaussian variational parameters The decoder parameters are shared. Equation (5), p. 4, is The identity proves the ELBO bound whenever the expectations are well-defined. Optimizing using the entire observed test sequence is legitimate for density estimation under this identity; it is not itself evidence of answer leakage.
The Fisher identity in Eq. (3), the Langevin noise scaling in Eq. (4), and the conditional predictive integral in Eq. (6) are also consistent under their usual differentiation/integration assumptions. Conditional generation infers from the prefix then generates the completion; the formula does not require access to the true completion. Finite-step inference bias is explicitly acknowledged on p. 4.
Importantly, the released `model.py:562--609` charges the full Gaussian KL, with coefficient one. It sums the reconstruction loss over tokens, adds divides by sequence length, exponentiates per sequence, and averages the resulting perplexities across the batch. The issue is not omission or arbitrary downweighting of KL. The validation caller records this perplexity separately from a reconstruction-only loss.
ELBO-based perplexity upper bounds after Gaussian posterior fitting.
Standard Gaussian prior, diagonalGaussianq, fullKL, smooth binary softmax; fixednoisee reusedthroughfitting/scoring.
Proof
The released optimizer uses one random tensor for posterior fitting and final perplexity, unlike Algorithm 1’s sampling inside the fast loop.
`optimizer.py:109` draws once, before the loop at line Every ELBO call at line uses that same The final latent at line and final metric at line reuse it again. Thus depends on and the scored point is It is not a fresh draw from the fitted Gaussian conditional on
Common random numbers can be a legitimate optimization device. Also, even an independent one-sample ELBO estimate need not be a pointwise bound on a particular draw. The decisive issue here is stronger: adaptive reuse can invalidate the bound interpretation even after averaging over the scoring randomness. Table 1, p. 7, explicitly labels LTM perplexities as upper bounds, and the released validation metric is offered as such an ELBO-derived statistic.
Consider the probabilistic family in Eqs. (1), (2) and (5), specialized to one binary token: This is a smooth two-class softmax decoder. Symmetry and give hence true perplexity two. Take the observed token to be one and draw the fixed reparameterization noise
Let and choose the following admissible fitted Gaussian for each noise draw: Every variance is strictly positive and every KL is finite. The reparameterized scoring point is so For direct substitution into the full Gaussian KL gives For No KL term is omitted.
Write for the standard normal density and distribution. The mean of the reported one-sample perplexity satisfies The second line uses Cauchy–Schwarz and Thus the estimator can report a value below true perplexity even in expectation.
The construction extends to any sequence length, including use independent prior coordinates, independent binary conditional factors, the observed all-one sequence, and the product of the above Gaussian variational factors. The true marginal is and true per-token perplexity remains two. The released scoring functional exponentiates summed sampled NLL plus KL divided by which is the geometric mean of the one-coordinate perplexities. By the arithmetic–geometric mean inequality, its expectation is still at most This also addresses the code’s actual order of operations: it averages per-sequence perplexities rather than exponentiating a batch-averaged loss.
All probabilistic assumptions behind the ELBO argument are satisfied: a normalized standard Gaussian prior, a normalized smooth categorical likelihood, positive diagonal Gaussian variances, and the complete KL. The example is a counterexample to the general estimation rule, not a simulation of the trained Transformer or a claim that its finite AdamW trajectory returns this particular family. An exact optimizer of the sampled objective could do at least as well on that objective as this feasible family, so the defect is not cured merely by longer optimization.
A separate Independently authored scalar calculation uses and AdamW steps, with independent standard-normal coefficients weight decay denominator offset and step sizes Only the local Gaussian parameters are updated in this diagnostic. Deterministic Gaussian quadrature of orders and gives reused-noise mean negative ELBOs and respectively, below the true Fresh-noise evaluation of the same fitted distributions gives and An independent auxiliary Monte Carlo calculation is consistent with these values.
These are numerical integrations of an independently written analytic-gradient toy, not rigorous quadrature error bounds or author-code execution. They corroborate the finite-step mechanism but do not reproduce the Transformer or historical scores. The preceding analytic construction remains the decisive general counterexample.
This is Major for the released core estimator: the implementation does not justify interpreting its adaptively reused-noise score as the ELBO-based perplexity upper bound used to support sample/parameter efficiency and inference-step scaling. The exact mathematical ELBO in Eq. (5) remains valid. Neither the example nor static inspection establishes the actual corrected value of the published Table 1 entries, or every scaling curve.
Use independent scoring noise after fitting or sufficiently accurate integration of the fitted expectation. Conditional on the fitted parameters, fresh Monte Carlo log-likelihood samples then estimate the actual ELBO without this adaptive reuse bias. Resampling within the fast loop also aligns the implementation with Algorithm 1. A finite Monte Carlo estimate is not a deterministic pointwise bound; precision and uncertainty still need reporting. No corrected experimental result is claimed.
More inference can also tighten a valid variational bound for a fixed decoder without changing its true marginal distribution. That ordinary distinction should be retained when discussing inference-step scaling; it is separate from the adaptive-noise defect above.
Possible revision
Fresh independent fitted-posterior evaluation or accurate integration; resamplewithinfastlooptoalignAlgorithm1; finiteMCnotpointwisedeterministicbound.
Problem 3. The per-token symbolic compute retains a per-sequence N factor
MinorEvidence and reasoning
Problem statement
The model is Each sequence has local diagonal-Gaussian variational parameters The decoder parameters are shared. Equation (5), p. 4, is The identity proves the ELBO bound whenever the expectations are well-defined. Optimizing using the entire observed test sequence is legitimate for density estimation under this identity; it is not itself evidence of answer leakage.
The Fisher identity in Eq. (3), the Langevin noise scaling in Eq. (4), and the conditional predictive integral in Eq. (6) are also consistent under their usual differentiation/integration assumptions. Conditional generation infers from the prefix then generates the completion; the formula does not require access to the true completion. Finite-step inference bias is explicitly acknowledged on p. 4.
Importantly, the released `model.py:562--609` charges the full Gaussian KL, with coefficient one. It sums the reconstruction loss over tokens, adds divides by sequence length, exponentiates per sequence, and averages the resulting perplexities across the batch. The issue is not omission or arbitrary downweighting of KL. The validation caller records this perplexity separately from a reconstruction-only loss.
O(()[L(H+NNzH+)+NVH]) labeledper-token.
Same dense attention accounting; Nzperlayerinthissection.
Proof
Section 2.4, p. 5, changes the stated unit without dividing the preceding per-sequence cost by
The displayed forward cost for a length- sequence is Multiplying by the number of fast/slow passes preserves a per-sequence unit. Under that same dense-attention accounting, the per-token expression is obtained by division by Here follows Section 2.4’s explicitly stated per-layer convention, unlike the total-latent convention elsewhere. Efficient fixed-window attention would further change the attention term, but is not needed to identify this unit discrepancy.
This is Minor as a local cost expression. At a fixed training length, an omitted common factor does not by itself reverse configuration rankings, and no evidence binds the actual Table 1 numerical FLOP counts to evaluation of that erroneous symbolic expression. The report does not claim the published FLOP numbers are all inflated by or that the empirical compute comparisons have been numerically refuted.
Possible revision
Divide by sequence length, distinguishactualwindowattentioncost.
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
Training employs a dual-rate optimization process within the classical variational Bayes framework: fast learning of local variational parameters for the posterior distribution of latent vectors (inference-time computation), and slow learning of global decoder parameters.
Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract
Actual review scope
The recorded inspection concerns these source locations: optimizer.py105,117,122/126;train_ltm.py237-285,336-338,368-402;Algorithm 1p4; optimizer.py109,112,119,141,145;model.py562-609;Table 1p7; Section 2.4p5.