ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

Latent Thought Models with Variational Bayes Inference-Time Computation

Deqian Kong, Minglu Zhao, Dehong Xu, Bo Pang, Shu Wang, Edouardo Honig, Zhangzhang Si, Chuan Li, Jianwen Xie, Sirui Xie, Ying Nian Wu

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

Major
Evidence and reasoning

Problem statement

The model is pβ(x)=∫p(z)pβ(x∣z) dz,p(z)=N(0,I),pβ(x∣z)=∏n=1Npβ(x(n)∣x(<n),z).p_\beta(x)=\int p(z)p_\beta(x\mid z)\,dz,\qquad p(z)=\mathcal N(0,I),\qquad p_\beta(x\mid z)=\prod_{n=1}^N p_\beta(x^{(n)}\mid x^{(<n)},z). Each sequence has local diagonal-Gaussian variational parameters qψ(z∣x)=N(μ,diag⁡(σ2)).q_\psi(z\mid x)=\mathcal N(\mu,\operatorname{diag}(\sigma^{2})). The decoder parameters β\beta are shared. Equation (5), p. 4, is L(β,ψ;x)=Eqψlog⁡pβ(x∣z)−DKL(qψ∥p).\mathcal L(\beta,\psi;x) =\mathbb E_{q_\psi}\log p_\beta(x\mid z) -D_{\rm KL}(q_\psi\|p). The identity log⁡pβ(x)−L(β,ψ;x)=DKL(qψ∥pβ(z∣x))≥0\log p_\beta(x)-\mathcal L(\beta,\psi;x) =D_{\rm KL}(q_\psi\|p_\beta(z\mid x))\ge0 proves the ELBO bound whenever the expectations are well-defined. Optimizing ψ\psi 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 q(z∣x)q(z\mid x) from the prefix x,x, 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, K=12∑j(μj2+σj2−1−log⁡σj2),K=\frac12\sum_j(\mu_j^{2}+\sigma_j^{2}-1-\log\sigma_j^{2}), with coefficient one. It sums the reconstruction loss over tokens, adds K,K, 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 (μ,σ2)(\mu,\sigma^{2}) 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 117117 therefore clears only those variables. The backward calls at lines 122/126122/126 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 336336–338338 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 398.398. Only line 402402 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 gused=gintended slow+∑training fast stepsgβ,fast+∑validation fast stepsgβ,val,g_{\rm used} =g_{\rm intended\ slow} +\sum_{\rm training\ fast\ steps}g_{\beta,{\rm fast}} +\sum_{\rm validation\ fast\ steps}g_{\beta,{\rm val}}, 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 1616 fast steps, 100100 validation batches, evaluation every 1,0001{,}000 iterations, and a positive global learning rate at iteration 1,000.1{,}000. 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 1000,1000, 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 β+μ\beta+\mu and a validation target one, the negative log likelihood is −log⁡σ(β+μ).-\log\sigma(\beta+\mu). At β=μ=0,\beta=\mu=0, ∂βℓval=−12.\partial_\beta\ell_{\rm val}=-\tfrac12. An optimizer that clears only μ\mu 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 (0.9,0.95),(0.9,0.95), one such gradient creates first/second moments −0.05-0.05 and 0.01250.0125 even if that step’s learning rate is zero. At the next step, with zero new gradient and learning rate 4×10−7,4\times10^{-7}, the bias-corrected Adam update moves an initially zero parameter by approximately 2.71459×10−7.2.71459\times10^{-7}. 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.

□\square

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

Major
Evidence and reasoning

Problem statement

The model is pβ(x)=∫p(z)pβ(x∣z) dz,p(z)=N(0,I),pβ(x∣z)=∏n=1Npβ(x(n)∣x(<n),z).p_\beta(x)=\int p(z)p_\beta(x\mid z)\,dz,\qquad p(z)=\mathcal N(0,I),\qquad p_\beta(x\mid z)=\prod_{n=1}^N p_\beta(x^{(n)}\mid x^{(<n)},z). Each sequence has local diagonal-Gaussian variational parameters qψ(z∣x)=N(μ,diag⁡(σ2)).q_\psi(z\mid x)=\mathcal N(\mu,\operatorname{diag}(\sigma^{2})). The decoder parameters β\beta are shared. Equation (5), p. 4, is L(β,ψ;x)=Eqψlog⁡pβ(x∣z)−DKL(qψ∥p).\mathcal L(\beta,\psi;x) =\mathbb E_{q_\psi}\log p_\beta(x\mid z) -D_{\rm KL}(q_\psi\|p). The identity log⁡pβ(x)−L(β,ψ;x)=DKL(qψ∥pβ(z∣x))≥0\log p_\beta(x)-\mathcal L(\beta,\psi;x) =D_{\rm KL}(q_\psi\|p_\beta(z\mid x))\ge0 proves the ELBO bound whenever the expectations are well-defined. Optimizing ψ\psi 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 q(z∣x)q(z\mid x) from the prefix x,x, 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, K=12∑j(μj2+σj2−1−log⁡σj2),K=\frac12\sum_j(\mu_j^{2}+\sigma_j^{2}-1-\log\sigma_j^{2}), with coefficient one. It sums the reconstruction loss over tokens, adds K,K, 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 e∼N(0,I)e\sim\mathcal N(0,I) once, before the loop at line 112.112. Every ELBO call at line 119119 uses that same e.e. The final latent at line 141141 and final metric at line 145145 reuse it again. Thus ψ^\widehat\psi depends on ee and the scored point is z(e)=μψ^(e)+σψ^(e)⊙e.z(e)=\mu_{\widehat\psi(e)} +\sigma_{\widehat\psi(e)}\odot e. It is not a fresh draw from the fitted Gaussian conditional on ψ^.\widehat\psi.

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: z∼N(0,1),p(x=1∣z)=σ(kz),k=100.z\sim\mathcal N(0,1),\qquad p(x=1\mid z)=\sigma(kz),\qquad k=100. This is a smooth two-class softmax decoder. Symmetry and σ(kz)+σ(−kz)=1\sigma(kz)+\sigma(-kz)=1 give p(x=1)=1/2,p(x=1)=1/2, hence true perplexity two. Take the observed token to be one and draw the fixed reparameterization noise e∼N(0,1).e\sim\mathcal N(0,1).

Let a=0.1a=0.1 and choose the following admissible fitted Gaussian for each noise draw: (μ(e),s(e))={(a−e/1+e2, 1/1+e2),e<a,(0,1),e≥a,qe=N(μ(e),s(e)2).(\mu(e),s(e))= \begin{cases} (a-e/\sqrt{1+e^{2}},\,1/\sqrt{1+e^{2}}),&e<a,\\ (0,1),&e\ge a, \end{cases} \qquad q_e=\mathcal N(\mu(e),s(e)^{2}). Every variance is strictly positive and every KL is finite. The reparameterized scoring point is z=μ(e)+s(e)e=max⁡(e,a),z=\mu(e)+s(e)e=\max(e,a), so −log⁡p(x=1∣z)≤ϵ:=log⁡(1+e−ka).-\log p(x=1\mid z)\le \epsilon:=\log(1+e^{-ka}). For e<a,e<a, direct substitution into the full Gaussian KL gives K(e)=12[a2−2ae1+e2+log⁡(1+e2)]≤a+12a2+12log⁡(1+e2).K(e)=\tfrac12\left[ a^{2}-\frac{2ae}{\sqrt{1+e^{2}}}+\log(1+e^{2}) \right] \le a+\tfrac12a^{2}+\tfrac12\log(1+e^{2}). For e≥a,e\ge a, K(e)=0.K(e)=0. No KL term is omitted.

Write ϕ,Φ\phi,\Phi for the standard normal density and distribution. The mean of the reported one-sample perplexity satisfies EPPL^≤(1+e−ka)[1−Φ(a)+ea+a2/2E{1+e21e<a}]≤(1+e−ka)[1−Φ(a)+ea+a2/2Φ(a){2Φ(a)−aϕ(a)}]=1.292448567…<2.\begin{aligned} \mathbb E\widehat{\rm PPL} &\le (1+e^{-ka}) \left[1-\Phi(a)+ e^{a+a^{2}/2}\mathbb E\{\sqrt{1+e^{2}}\mathbf1_{e<a}\}\right]\\ &\le (1+e^{-ka}) \left[1-\Phi(a)+e^{a+a^{2}/2} \sqrt{\Phi(a)\{2\Phi(a)-a\phi(a)\}}\right]\\ &=1.292448567\ldots<2.\end{aligned} The second line uses Cauchy–Schwarz and E[e21e<a]=Φ(a)−aϕ(a).\mathbb E[e^{2}\mathbf1_{e<a}]=\Phi(a)-a\phi(a). Thus the estimator can report a value below true perplexity even in expectation.

The construction extends to any sequence length, including N=1024:N=1024: 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 2−N2^{-N} and true per-token perplexity remains two. The released scoring functional exponentiates summed sampled NLL plus KL divided by N,N, which is the geometric mean of the one-coordinate perplexities. By the arithmetic–geometric mean inequality, its expectation is still at most 1.292448567.1.292448567. 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 p(x=1∣z)=σ(8z)p(x=1\mid z)=\sigma(8z) and 1616 AdamW steps, with μ0=0,\mu_0=0, log⁡s02=−5+0.1η,\log s_0^{2}=-5+0.1\eta, independent standard-normal η,e,\eta,e, coefficients (0.9,0.999),(0.9,0.999), weight decay 0.01,0.01, denominator offset 10−8,10^{-8}, and step sizes γt=0.034+0.34−0.0342[1+cos⁡(πt/16)],t=0,…,15.\gamma_t=0.034+\frac{0.34-0.034}{2} [1+\cos(\pi t/16)],\qquad t=0,\ldots,15. Only the local Gaussian parameters are updated in this diagnostic. Deterministic Gaussian quadrature of orders 8080 and 160160 gives reused-noise mean negative ELBOs 0.66938410.6693841 and 0.6692426,0.6692426, respectively, below the true −log⁡p(x)=log⁡2=0.6931472.-\log p(x)=\log2=0.6931472. Fresh-noise evaluation of the same fitted distributions gives 1.02288321.0228832 and 1.0226480.1.0226480. 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 3.05,3.05, Table 1 entries, or every scaling curve.

Use independent scoring noise after fitting ψ,\psi, 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.

□\square

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

Minor
Evidence and reasoning

Problem statement

The model is pβ(x)=∫p(z)pβ(x∣z) dz,p(z)=N(0,I),pβ(x∣z)=∏n=1Npβ(x(n)∣x(<n),z).p_\beta(x)=\int p(z)p_\beta(x\mid z)\,dz,\qquad p(z)=\mathcal N(0,I),\qquad p_\beta(x\mid z)=\prod_{n=1}^N p_\beta(x^{(n)}\mid x^{(<n)},z). Each sequence has local diagonal-Gaussian variational parameters qψ(z∣x)=N(μ,diag⁡(σ2)).q_\psi(z\mid x)=\mathcal N(\mu,\operatorname{diag}(\sigma^{2})). The decoder parameters β\beta are shared. Equation (5), p. 4, is L(β,ψ;x)=Eqψlog⁡pβ(x∣z)−DKL(qψ∥p).\mathcal L(\beta,\psi;x) =\mathbb E_{q_\psi}\log p_\beta(x\mid z) -D_{\rm KL}(q_\psi\|p). The identity log⁡pβ(x)−L(β,ψ;x)=DKL(qψ∥pβ(z∣x))≥0\log p_\beta(x)-\mathcal L(\beta,\psi;x) =D_{\rm KL}(q_\psi\|p_\beta(z\mid x))\ge0 proves the ELBO bound whenever the expectations are well-defined. Optimizing ψ\psi 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 q(z∣x)q(z\mid x) from the prefix x,x, 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, K=12∑j(μj2+σj2−1−log⁡σj2),K=\frac12\sum_j(\mu_j^{2}+\sigma_j^{2}-1-\log\sigma_j^{2}), with coefficient one. It sums the reconstruction loss over tokens, adds K,K, 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((TfastT_{\rm fast}+1+1)[L(N2N^{2}H+NNzH+NH2NH^{2})+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 N.N.

The displayed forward cost for a length-NN sequence is O ⁣(L(N2H+NNzH+NH2)+NVH).O\!\left(L(N^2H+NN_zH+NH^{2})+NVH\right). Multiplying by the number of fast/slow passes preserves a per-sequence unit. Under that same dense-attention accounting, the per-token expression is O ⁣((Tfast+1){L(NH+NzH+H2)+VH}),O\!\left((T_{\rm fast}+1) \{L(NH+N_zH+H^{2})+VH\}\right), obtained by division by N.N. Here NzN_z 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 10241024 or that the empirical compute comparisons have been numerically refuted.

□\square

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.

Submit an author revisionContribute a review