ELVIA analysis of: Diffusion on Language Model Encodings for Protein Sequence Generation — Problem 1: Decoder training denormalizes twice
Original paper: Viacheslav Meshchaninov; Pavel Strashnov; Andrey Shevtsov; Fedor Nikolaev; Nikita Ivanisenko; Olga Kardymon; Dmitry Vetrov. Diffusion on Language Model Encodings for Protein Sequence Generation. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/meshchaninov25a.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: PDF p. 2 Figure 1, p. 3 Token Reconstruction, p. 26 Table 5 src/preprocessing/train_decoder.py:15-30,112-124 src/encoders/esm2.py:37-47,74-96 src/encoders/enc_normalizer.py:30-35 src/configs/config.yaml:3-4 src/configs/decoder/transformer.yaml:13-15 src/encoders/transformer_decoder.py:16-17 README.md:128-142 src/diffusion/base_trainer.py:492-532
Question: What does the recorded analysis establish about “Decoder training denormalizes twice”?
Bounded finding:
A core learned decoder is trained and validated on D(\(D(z)\)) but deployed on \(D(z)\); the valid finite example proves that fitting/validation success does not generally transfer through the mismatched interface. Major for the pinned default ESM2/transformer learned-decoder route under nonidentity normalization: the advertised core component's training/validation contract is inconsistent with generation. This does not require a measured benchmark loss or whole-model collapse. Historical finetuning gains, magnitude of score effects and other configurations remain Needs Evidence.
Recorded check:
The method’s coordinate normalization and token reconstruction are described on pp. 3–4. The release’s documented decoder-training route calls `src/preprocessing/train_decoder.py`. In its `loss_step`, line 26 denormalizes the latent, then line 29 calls `batch_get_logits`. The ESM2 implementation, `src/encoders/esm2.py`, lines 89–95, denormalizes again. In contrast, `batch_decode`, lines 74–86, used by generation, denormalizes once. The training entry point enables the normalizer.
Core dependency. Figure 1, p. 2, identifies the decoder as one of the method’s three core components; the token-reconstruction paragraph, p. 3, describes its finetuning, and Table 5, p. 26, includes the finetuning ablation. The release’s `src/configs/config.yaml`, lines 3–4, selects ESM2 with the transformer decoder. `src/configs/decoder/transformer.yaml`, line 13, configures three new layers. `src/encoders/esm2.py`, lines 37–47, constructs this decoder and loads its checkpoint when present; `src/encoders/transformer_decoder.py`, lines 16–17, constructs the transformer and output projection from configuration. The documented Stage 2 command in `README.md`, lines 128–142, trains that decoder through the affected route. Finally, `src/diffusion/base_trainer.py`, lines 492–532, sends generated normalized latents through `pred_logits` and `batch_decode`, using the single inverse map. The discrepancy therefore crosses the default learned decoder’s training, validation, and deployment boundary.
Complete check. For one nondegenerate coordinate let the stored mean and standard deviation be \(\mu\) and \(s>0\), with \(s\geq 10^{-5}\) so the small-variance guard is inactive. Put \[N(x)=(x-\mu)/s,\qquad D(z)=sz+\mu.\] Training therefore presents \(D(D(z_t))\) to the decoder; generation presents \(D(z)\). Their difference at the same normalized input is \[D(D(z))-D(z)=s(s-1)z+s\mu.
\] Equality for every \(z\) requires \(s=1,\mu=0\). The discrepancy also occurs in the noiseless decoder-validation branch, which bypasses corruption but not either denormalization.
For a valid finite interface example, take equally frequent raw encodings \(-1\) and \(3\). Their population mean is \(1\), variance \(4\), and normalized encodings are \(-1,+1\). The decoder’s training inputs are \(-1,7\), whereas the generation inputs are \(-1,3\). A two-class decoder with logits \(0,u-5\) correctly classifies targets \(0,1\) at the training inputs but assigns both generation inputs to class \(0\). Scaling both logits’ difference makes the training classification arbitrarily confident without repairing the inference mismatch. This establishes that fitting the double-transformed training inputs need not make the single-transformed inference path correct. It is an illustrative interface counterexample, not a claim that ESM2 produces these embeddings or that the released optimizer learns this classifier.
Counterevidence, repair, and impact. The discrepancy vanishes for identity statistics, at particular fixed points, or for a decoder insensitive to the transformed directions. The README also permits skipping decoder training with the pretrained `lm_head` (line 132); that alternative does not establish correctness of the default newly trained transformer path. Other encoders or historically different code are outside this finding’s demonstrated dependency. Actual normalization tensors and trained decoder weights are absent, so the example cannot estimate historical accuracy loss. A model might tolerate some mismatch. These possibilities bound the affected configurations and numerical impact; they do not make the default training and deployment interfaces equal.
Removing the outer denormalization from `loss_step`, while retaining the existing denormalization inside `batch_get_logits`, restores the single map \(D(z_t)\) algebraically for every admitted \(\mu,s,z_t\). This is an interface repair only: it does not validate old checkpoints or prove the paper’s reported finetuning improvement without retraining/evaluation. The supported assessment is Major for the pinned release’s default ESM2/transformer decoder-training route under nonidentity statistics. A core learned component is optimized and validated on a different latent-to-token interface from the one used in generation; the finite example proves that successful fitting and noiseless validation need not transfer through that interface. Quantitative historical effects and the paper’s reported finetuning gain remain Needs Evidence. The scope is this demonstrated core training/deployment inconsistency, without a claim that every encoder, checkpoint, or published protein-generation result fails.
Case-wide limitations:
- P1 — Cluster-density definitions and reported values disagree — Counterevidence: Different conditional denominators could produce sums above1 but require corrected definitions. Either ESMc number remains below ESM2-650M .986; either RFD USR remains below DiMA .10. Other primary metric comparisons are not refuted.
- P2 — pLDDT averaging drops within-rank sequence multiplicity — Counterevidence: Unique-output quality is defensible if declared; no duplicates/equal scores remove discrepancy. No historical source binding, generated multiplicities or score shifts are available.
- P3 — Decoder training denormalizes twice — Counterevidence: Identity statistics, fixed-point inputs or decoder invariance can remove the discrepancy. README permits skipping Stage 2 using pretrained lm_head; other encoders and historically different code are outside the demonstrated dependency. Actual normalization tensors/checkpoints and historical bindings are missing, so quantitative score losses remain unknown.
- P4 — CHEAP shorten-two mask reduces requested length twice — Counterevidence: Current configured/pretrained path is shorten1; original shorten2 experiment binding is absent.
- Limitations: Historical experiment-to-commit/config/checkpoint binding and raw generated sequences/metric outputs are absent.
- Limitations: Actual encoder normalization statistics, trained decoder weights and dataset payloads were not acquired or executed under the task contract.
- Limitations: Available repository lacks conditional family/motif/fold experiment drivers and complete BLAST/NW/CD/PCD/NCD/OT/structural metric pipelines.
- Limitations: Two source-map-listed length-distribution NPY payloads remain intentionally excluded; immutable archive/member mappings are preserved.
- Limitations: Optional OpenReview metadata/separate supplement access was HTTP 403 during source preparation; attachment existence and later errata/revisions are unresolved.
- Limitations: No author-code execution, protein-generation/folding run, empirical reproduction, replacement benchmark scores or validated full repaired pipeline.
- 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: p3
Source report index: 3
Review status: Independent review pending
Case: icml2025-0219-diffusion-on-language-model-encodings-for-protein-sequence-generat
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0219-diffusion-on-language-model-encodings-for-protein-sequence-generat.html#problem-3
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0219-diffusion-on-language-model-encodings-for-protein-sequence-generat/records/icml2025-0219-diffusion-on-language-model-encodings-for-protein-sequence-generat.r1.json
Canonical record SHA-256: 42ef5d0ad5facf528aab978f5462469f28e62bb9f51f8b6e4bf287adf1975335
The page follows the latest revision; the versioned record identifies this snapshot.