- Rating
- 3
- Confidence
- 3
- Informativeness
- 2
- Presentation
- 3
- Soundness
- 3
Read review
Paper summary
This paper presents ANCHORA, a retrieval-guided framework for molecular structure elucidation from MS/MS spectra with a known molecular formula. It retrieves a formula-compatible reference molecule, converts its anchor-extended molecular scaffold into an AEMS-SAFE prefix, completes the side chains with a conditional discrete diffusion model. It then subsequently applies ICEBERG-guided full-molecule refinement that can edit beyond the retrieved prefix. The paper reports substantial improvements over reported baselines on CANOPUS and MassSpecGym, as well as zero-shot transfer results on five external GNPS libraries.
Critical strengths
- The core design is sensible and targets a real limitation of both retrieval-only and unconstrained de novo methods. In particular, the distinction between a bare Murcko scaffold and an AEMS that encodes side-chain attachment sites is meaningful for molecular completion.
- The representation contribution is more than a superficial serialization choice. It explicitly recognizes that canonicalization can permute symmetry-equivalent anchors, and proposes selecting only scaffold-to-canonical isomorphism mappings whose reconstructed SAFE string decodes to the input canonical molecular graph.
- The reported empirical improvements in Table 1 are large. Under reference priors, Anchora reaches 38.98% Acc@1 on CANOPUS and 23.50% on MassSpecGym, compared with 25.03% and 18.29% for FRIGID, respectively. The corresponding improvements are not limited to exact matching: Sim and MCES also improve at both Top-1 and Top-10. The oracle-prior results additionally establish that the completion model can make strong use of a correct AEMS, rather than merely benefiting from ranking a complete retrieved molecule.
- The paper does make a useful effort to separate pipeline components. Table 3 shows complementary benefits from large-scale AEMS completion pretraining and spectrum-decoder joint adaptation. Table 6 also provides a focused diagnostic showing that predicting completion length rather than full sequence length improves generation-length RMSE from 5.33 to 3.18 and increases AEMS pass rate from 62.92% to 74.99%.
- The external-library evaluation is a positive addition. Table 2 consistently favors Anchora-Base over FRIGID-base across all five GNPS libraries, including difficult MIADB and IQAMDB subsets where FRIGID-base has nearly no exact recovery. This is useful evidence that the pipeline is not confined to the two primary benchmarks, although the interpretation needs stronger controls as discussed below.
Critical weaknesses
- The central empirical comparison does not isolate the effect of retrieval augmentation, and therefore cannot yet support the broad claim that the proposed generation method itself is responsible for the headline gains. ANCHORA has access to a 672,681 structure external catalogue, retrieves a formula-compatible reference using a MIST-derived fingerprint, and then uses a highly informative AEMS extracted from the top molecule. In contrast, the listed generative baselines in Table 1 are reported as de novo methods without this retrieval channel.
- The paper reports AEMS accuracy of 59.78% on CANOPUS and 43.27% on MassSpecGym, which already indicates that retrieval provides a highly informative structural prior. However, it does not report: (i) the Top-1/Top-K exact retrieval accuracy of the complete molecule, (ii) the fraction of test targets contained in the retrieval database, (iii) the performance of simply returning d*, (iv) the performance of ranking retrieved complete candidates directly by Equation 2, or (v) the accuracy conditional on whether the reference AEMS is correct. These are essential controls. Without them, the reader cannot determine whether the main improvement comes from AEMS completion, the MIST-based retrieval score, direct target coverage in the external database, or their combination.
- The paper’s de novo and out-of-library framing is too broad relative to the evaluation protocol. The paper argues that the framework can recover an out-of-library target because it generates a completion rather than returning a database entry. That is plausible in principle, but the presented experiments do not distinguish targets absent from DD from targets already present in DD. This distinction matters because a retrieved target molecule has the exact target AEMS by construction, making the subsequent completion problem much easier.
- The full-molecule refinement method in Section 3.6 is underspecified, yet it is a central claimed mechanism. The text states that discrepancies between ICEBERG-predicted and observed spectra guide masking, but does not define the discrepancy function, fragment or peak matching procedure, masking unit, mask size, thresholding, handling of unmatched peaks, or how the selected molecular regions are mapped back to tokens. It is similarly unclear which general full-molecule diffusion model is used, whether it shares parameters with the completion model, what its training distribution is, and how the K=16, M=4 edit variants are chosen.
- The refinement ablation is confounded with a substantially larger inference budget. Section 4.3 states that Anchora-Base uses 128 initial attempts, while each of three refinement rounds adds 64 completions and up to 64 full-molecule edits, for up to 512 attempts total. Table 4 shows improvements over rounds, but it does not establish whether these gains derive from ICEBERG-guided editing rather than simply generating more candidates. This is especially important because the CANOPUS reference setting reaches 38.98% after Round 2 and does not improve in Round 3.
Questions for authors
See the weaknesses above. And could the authors please mention if they perform the data contamination check (from the dataset training perspective). Or equivalently if the authors could directly test their method on MassSpecGym v1.5 (follow the instructions). If you have done such, please mention that in the paper and this would no longer be the question from my side.
5 comments
W4——Implementation details of full-molecule refinement
Please specify the discrepancy function, peak/fragment matching, mask units and sizes, thresholds, unmatched peaks, token mapping, the editor's training source and relationship to completion, and the meanings of K=16 and M=4.
Response. Thank you for considering the implementation details. Full-molecule editing follows FRIGID[1]'s ICEBERG-guided refinement workflow, with the following settings (see Section 3.6 of the revised manuscript, lines 282–305):
- Discrepancy and peak matching: Intensities on each side are independently normalized by their maximum, with a threshold of 0.05. We select up to 3 peaks with the largest distance from a predicted peak to its nearest experimental peak, , without an additional distance threshold. 20 ppm is used only to exclude the predicted precursor peak; experimental peaks without associated predicted fragments do not directly trigger editing.
- Masking and mapping: The fragment IDs of selected peaks define a union of atoms, which is mapped to SMILES character spans and then to tokens through tokenizer offsets. Masking is token-wise and independent, with probability 0.5, so mask size varies. Mapping failure triggers full-sequence masking; missing predicted spectra skip editing for that candidate without removing the query.
- Model and training data: The editor is the frozen FRIGID-base full-molecule masked diffusion model. According to [1], it learns complete SAFE sequences from the spectrum-free SAFE-GPT molecular-structure corpus, conditioned on formulas and fingerprints. The completion decoder is adapted separately from the same pretrained initialization; the two models have independent parameters, and the editor does not fix the AEMS prefix.
- Meaning of K/M: Each round selects up to K=16 unique molecules using formula/AEMS rules and joint fingerprint ranking. It independently samples M=4 random masked variants per molecule, yielding up to 64 editing inputs, rather than selecting the best four from a larger pool. Editing outputs are merged with fresh completion candidates for further filtering and ranking.
[1] Bohde, M., et al. FRIGID: Scaling Diffusion-Based Molecular Generation from Mass Spectra at Training and Inference Time. arXiv:2604.16648, 2026. https://arxiv.org/abs/2604.16648
W5——Additional budget and saturation in the third round
Round-wise improvements may simply come from adding candidates; CANOPUS Reference reaches 38.98% in the second round and does not improve further in the third.
Response. Thank you for considering the contribution of additional sampling. The relevant control is provided in 9cDw W2: with matched generation-request counts, full refinement has higher Acc@1/10 point estimates than Sampling-only on both datasets. Additional sampling therefore explains part of the improvement, while full refinement provides further numerical gains. The plateau in CANOPUS third-round Acc@1 indicates limited marginal gains from further refinement under this configuration. Repeated exploration of similar structures under a single prior is one possible explanation; see 9cDw Q3 for the diversity discussion and the fixed-total-budget multi-prior proposal.
Q1——Training contamination checks and MassSpecGym v1.5
Were training-side contamination checks performed? Alternatively, was the method evaluated under the MassSpecGym v1.5 protocol?
Response. Thank you for considering training-data contamination. When constructing our own AEMS completion pretraining set, we excluded complete molecules from CANOPUS, MSG, and the five external GNPS test sets using the connectivity block of non-stereochemical InChIKeys. Rechecking the actual training manifests confirmed zero structural overlap with all seven test sets. Further structural-similarity analysis is provided in FBze W3. The five GNPS evaluation sets also exclude structures overlapping with CANOPUS supervised training and validation, and use frozen CANOPUS models without external fine-tuning. We have not evaluated the method on MassSpecGym v1.5.
Dear Reviewer tUMN,
Thank you once again for your detailed and constructive review. Your questions about the respective roles of retrieval and generation, recovery of molecules outside the library, and refinement implementation have helped us make the evidence and technical details clearer.
We recognize the demands on your time. With the Paper Discussion deadline (November 18) approaching, we would be grateful for any further thoughts on our responses and revisions. If there are aspects that would benefit from further clarification, we would welcome the opportunity to discuss them before the discussion closes. We hope the added diagnostics and implementation details are helpful as you revisit your assessment.
Thank you again for your time and careful consideration.
Response to Reviewer tUMN
We sincerely thank the reviewer for carefully analyzing attachment-aware priors, symmetry-equivalent anchor mapping, and the training and length ablations. Your questions on system-level attribution, retrieval controls, and refinement implementation are very specific. Below, we distinguish complete-system performance, completion under partial structural conditions, and direct retrieval accuracy.
W1——The contributions of retrieval and generation have not been fully isolated
Response. Thank you for raising the attribution question. Introducing AEMS priors through an external structure database and completing unknown structures from spectra is Anchora's core design. The main experiments, zero-shot evaluation, and ablations center on this design, testing whether introducing AEMS priors improves structure elucidation. Retrieval is intended to contribute to the gains. Table 1 evaluates the complete system rather than attributing all improvements to the decoder.
For the shared-resource comparison, please see the "MADGEN (CSU-MS2) versus Anchora-Base (Reference)" table in our response to Reviewer FBze W2. It reports prior quality and six generation metrics using the same CSU-MS2 source database.
W2——Five controls to separate retrieval, database coverage, and completion
Response. Thank you for these five specific questions. The results are as follows:
From Top-1 to Top-10, accuracy increases by 19.66/14.91 percentage points on the two datasets. Retrieval therefore concentrates more correct structures near the top of the ranking, supporting the use of multiple candidates as structural priors.
Correct AEMS priors correspond to higher target-molecule recovery. Refinement further improves accuracy by 4.06 and 4.19 percentage points on CANOPUS and MSG, respectively; both datasets also show small improvements with incorrect priors.
W3——Is the claim of out-of-library generation supported?
Response. Thank you for suggesting this distinction. Anchora extracts AEMS from the retrieved molecule as a local structural prior rather than directly returning that molecule, then completes the remaining structure from the spectrum. Its final output therefore need not belong to the database. We further stratify all 803/17,082 CANOPUS/MSG test spectra. Database membership and molecular recovery Acc use the same stereochemistry removal and tautomer normalization; both models below use the Reference setting.
Both out-of-library subsets achieve nonzero exact target recovery, showing that Anchora's final outputs are not restricted to retrieval database entries. Overall out-of-library accuracy remains lower than in-library accuracy, indicating that database coverage remains an important factor.