- Rating
- 5
- Clarity
- 4
- Confidence
- 5
- Originality
- 4
- Quality
- 3
- Significance
- 4
Read review
Summary
MolSpecFlow studies MS/MS molecular annotation under incomplete supervision across molecules, spectra, and fingerprints. The paper represents these modalities as components of a shared molecular–spectral state and uses availability and observation masks to specify which components are present, conditioned on, or generated. De novo annotation, molecular retrieval, and spectrum simulation are therefore instantiated from the same modality-incomplete pretrained backbone, with task-specific fine-tuning for each interface. The model combines a shared Mol-Spec Transformer with hybrid flow matching: a discrete path for molecular tokens and continuous paths for spectra and fingerprints. It also introduces expected mass and formula losses over soft token distributions. The experiments are mainly conducted on MassSpecGym, with an additional de novo evaluation on NPLIB1. The ablations examine pretraining sources, chemical regularization, representation components, shared-backbone training, and multi-path molecular views.
Strengths and weaknesses
Overall, I find this submission to be a strong and well-motivated contribution. My positive assessment is mainly based on the unified mask-conditioned formulation and the consistent multi-interface evidence, rather than on a single benchmark improvement.
Strengths
- The strongest part of the paper is the way it organizes the problem. Spectrum-to-molecule generation, spectrum-to-fingerprint retrieval, and molecule-to-spectrum prediction are usually treated as separate interfaces. MolSpecFlow instead expresses them through different observed and target masks over a shared state. This is a natural fit for MS/MS data, where fully paired molecule–spectrum examples are limited but molecule-only and spectrum-only data are considerably more abundant. The formulation is relatively simple, but that is also part of its appeal.
- The heterogeneous flow setup is well matched to the modalities involved. Molecular strings are discrete, whereas spectra and fingerprints are continuous or vector-valued. The Mol-Spec Transformer further incorporates token-level mass and formula features, relative m/z bias, cross-modal fusion, and expected mass and formula losses. None of these components is individually unexpected, but they are sensible choices for this setting, and the ablations indicate that they contribute rather than serving only as architectural detail.
- The evaluation goes beyond de novo annotation. On MassSpecGym, MolSpecFlow reports Top-1 and Top-10 exact-match rates of 3.11 and 5.23, compared with 2.30 and 4.25 for DiffMS, along with improved MCES and Tanimoto scores. The absolute exact-match rates are still modest, so I would not interpret this result alone as strong de novo structure recovery. I found the broader evaluation more persuasive. Retrieval reaches HR@1/5/20 values of 17.32/39.93/64.85, and the spectrum-simulation results improve over FraGNNet in cosine similarity and retrieval-oriented hit rates. The external NPLIB1 evaluation, with Top-1 and Top-10 values of 10.45 and 17.25, is also a useful check outside the main benchmark.
- The low-paired-data experiments support the claim that molecule-only and spectrum-only pretraining provide complementary information. The expected mass and formula objectives also appear important: removing both reduces de novo Top-1/Top-10 from 3.11/5.23 to 2.05/3.48. The representation ablations similarly support the use of token-level mass and formula features and relative m/z bias.
- The paper is fairly careful about scope. It presents MolSpecFlow as a candidate-generation and prioritization tool rather than as a source of definitive MS/MS structure identifications. Given the ambiguity of the task and the relatively low absolute exact-match rates, this is the appropriate framing.
Weaknesses
- Several central results are reported as point estimates. I would not expect the authors to repeat the full pretraining procedure during rebuttal, since that would be costly and unlikely to justify the expense. However, some of the de novo gains are numerically small, and uncertainty estimates computed from the existing predictions would make those margins easier to interpret. Test-set bootstrap intervals would already be useful.
- The paper describes filtering benchmark overlap using canonical structures and available spectrum or dataset metadata. This is a useful precaution, but the current presentation does not make it easy to tell which types of overlap are reliably excluded and which remain only partially controlled. In particular, incomplete public metadata can make near-duplicate spectra and repeated acquisitions difficult to identify. Close structural analogs are a related concern even when they are not literal duplicates. The paper acknowledges that exhaustive filtering cannot be guaranteed, but the remaining boundary could be documented more clearly.
- Some empirical comparisons appear to include a mixture of reproduced results, official benchmark numbers, and values reported in prior public sources. This is common in the area, but it complicates interpretation because candidate-pool construction, decoding budget, invalid-output handling, and confidence-interval conventions may differ. I would prefer to see the provenance and evaluation assumptions for each baseline collected in one place.
- The multi-path molecular representation introduces a task-dependent trade-off. The paper already gives a broad recommendation—(K=1) for direct de novo annotation and larger (K) for representation-oriented tasks—but it is less clear whether retrieval and simulation favor the same setting, or how sensitive these interfaces are to the path count.
- MolSpecFlow exposes generation, fingerprint-based retrieval, mass/formula consistency information, and spectrum simulation as separate interfaces. The current paper does not evaluate a joint candidate-ranking or abstention mechanism that combines them. Since the method is positioned as a candidate-prioritization system, a clearer description of the intended workflow would be useful, even without an additional experiment.
These concerns mainly affect how confidently the reported gains and the intended downstream use can be interpreted. I do not see them as requiring a change to the core formulation.
Questions
- A compact leakage-control table would help. Please clarify which exact structure overlaps and spectrum-ID or metadata overlaps are reliably removed. It would also be useful to distinguish these from harder cases, such as near-duplicate spectra, repeated acquisitions, and close structural analogs, that may remain only partially controlled.
- Can uncertainty estimates be computed from the existing test predictions? Bootstrap confidence intervals for de novo Top-k, MCES, Tanimoto, retrieval HR@k, and the main spectrum-simulation metrics would be sufficient for this purpose.
- For each baseline, please clarify whether the reported value was reproduced under the authors’ pipeline, obtained from an official benchmark result, or taken from a prior public report. It would also help to state whether candidate pools, decoding budgets, invalid-output handling, and uncertainty estimates are directly comparable.
- The paper recommends (K=1) for direct de novo annotation and larger (K) for representation-oriented tasks. Is (K=10) also the recommended setting for retrieval, or is the preferred value task-dependent within retrieval and simulation? Some indication of sensitivity to (K) would also help.
- Do the authors envision combining the generation, retrieval, mass/formula, and spectrum-simulation interfaces for candidate prioritization, or are these intended to remain separate uses of the backbone? I do not think an additional experiment is necessary, but clarifying the intended workflow and whether abstention is envisioned would improve the practical interpretation.
Limitations
Yes
Paper formatting concerns
No major formatting concerns.
Final justification
The additional leakage controls, bootstrap confidence intervals, and clarifications on baseline provenance, (K), and the intended workflow address my concerns. I am satisfied with the rebuttal and will maintain my score while increasing my confidence to 5.
Thank you for the careful and constructive review. We appreciate that the positive assessment is based on the unified formulation and the evidence across several interfaces, rather than on a single benchmark number. We agree that the current presentation can be improved in several places, especially regarding overlap control, statistical uncertainty, baseline provenance, the meaning of K, and the intended downstream workflow.
For molecule-only pretraining, the source is ZINC20, containing 1,006,284,132 records. We sampled 102,998,099 records and filtered them against MassSpecGym validation/test and NPLIB1 test molecules using full InChIKey, 14-character connectivity InChIKey, and radius-2 Morgan Tanimoto similarity >=0.8. The union of these criteria removed 2,252 records, and 61 additional records failed parsing. After replacement sampling, the final molecule-only corpus contains exactly 102,000,000 molecules.
After filtering, the retained corpus has zero full-InChIKey overlap, zero connectivity-InChIKey overlap, and zero ECFP4 Tanimoto >=0.8 overlap with the held-out molecules.
For spectrum-only pretraining, GeMS-A initially contains 41,951,922 spectra. Before pretraining, we removed 368,969 spectra with modified cosine similarity >=0.8 to any held-out MassSpecGym validation/test or NPLIB1 spectrum, using a 0.01-Da fragment-matching tolerance. The retained spectrum-only corpus contains 41,582,953 spectra.
These procedures reliably remove the stated exact structure matches, close molecular analogs above the stated threshold, and highly similar spectra above the stated spectral threshold. They do not guarantee removal of repeated acquisitions with incomplete metadata, near-duplicate spectra below the threshold, or more distant structural analogs. We will distinguish these controlled and partially controlled cases explicitly rather than describing the filtering as exhaustive.
We also completed the requested chemical-distance analysis. For each MassSpecGym test molecule, we computed its maximum ECFP4 Tanimoto similarity to the molecular structures observed during training:
The expected dependence on chemical proximity is visible, but the result does not collapse outside the close-analog range. Compounds with maximum training similarity below 0.7 account for 81% of the test set and still achieve 2.74% Top-1 and 4.79% Top-10. We will present this as a bounded generalization analysis, not as evidence of unrestricted out-of-distribution performance.
The retrieval and simulation estimates are stable under held-out molecule resampling. The relative intervals for de novo exact match are naturally wider because the absolute success rates are low, while the structural-similarity metrics are estimated more tightly.
These intervals quantify uncertainty arising from the finite held-out molecular sample. They do not capture variability across independent pretraining runs, and we will state this distinction explicitly. We also do not interpret model scores or sampling frequencies as calibrated probabilities of correctness.
Our own results and ablations are evaluated under one implementation and evaluator. Some literature values are not fully matched because the corresponding methods use formula-restricted candidate sets, peak-subformula features, different generation budgets, or method-specific post-processing. We will keep these comparisons for context, but will no longer place directly matched and unmatched settings together without qualification.
Direct de novo annotation uses K=1. Retrieval is direct spectrum-to-fingerprint continuous generation and does not use the molecular serialization track, so K is not applicable to retrieval. Spectrum simulation uses K=10 to aggregate several equivalent molecular serializations before generating the spectrum.
The degradation observed when using multiple paths for direct de novo generation reflects a representation–generation trade-off. Multiple equivalent serializations are useful for constructing a graph-level representation, but they are token-wise unaligned targets for sequence generation. The current decoder is not permutation-invariant across these alternative token paths, so increasing K raises target ambiguity rather than improving direct generation. We will correct the text so that it does not imply that K=10 is a shared recommendation for retrieval and simulation.
A practical workflow would be: de novo generation proposes hypotheses when no database candidate list is available; fingerprint retrieval ranks candidates when a database is available; mass and formula consistency identify chemically inconsistent outputs; and forward spectrum simulation provides an additional candidate-specific spectral agreement score for a short list.
The current experiments do not determine the optimal way to combine these scores, and we have not trained a formal abstention mechanism. We will therefore describe this as the intended workflow rather than as an evaluated joint decision system. In practice, disagreement between interfaces, large chemical-consistency errors, or uniformly poor spectral agreement should be treated as reasons to abstain and request further analytical evidence. MolSpecFlow is intended to prioritize molecular hypotheses, not to provide an unqualified final identification.
We will incorporate these clarifications without changing the core formulation. They make the filtering boundary, confidence intervals, comparison assumptions, path-count settings, and intended use substantially clearer.