On objective mismatch in molecular retrieval from tandem mass spectrometry
Gaetan De Waele, Marek Wydmuch, Krzysztof Dembczynski, Wojciech Kotlowski, Willem Waegeman
NeurIPS 2026
TL;DR. Our paper reveals and analyzes a fundamental trade-off between fingerprint similarity and molecular retrieval in MS/MS-based untargeted metabolomics
Abstract. Identifying molecular structures from LC-MS/MS spectra is a central problem in computational metabolomics, often approached by predicting molecular fingerprints and retrieving candidates via similarity search. Despite widespread use, the relationship between training objectives for fingerprint prediction and downstream retrieval performance remains poorly understood. In this work, we investigate the alignment between these objectives and show that they can be misaligned under uncertainty. Adopting a decision-theoretic perspective, we derive novel regret bounds that characterize when Bayes-optimal predictors for fingerprint similarity diverge from those for molecular retrieval. Our analysis reveals that optimizing standard similarity-based losses can degrade retrieval performance, and that the extent of this mismatch depends on the similarity structure of candidate sets. Empirically, we validate our theory on the MassSpecGym and Enveda-180 datasets, observing a Pareto frontier between fingerprint accuracy and retrieval metrics across commonly used loss functions. These findings highlight potential trade-offs in fingerprint-based molecular identification and provide principled guidance for the design of learning objectives in small molecule mass spectrometry.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Imagine deriving chemical identity of a molecule from its mass spec (MS). A common approach is to map the spectrum to a fingerprint and then match the fingerprint against a database to retrieve matches by fingerprint similarity. for the first step, you might want high fingerprint prediction accuracy but the output of the second step is judged primarily by retrieval metrics. They use decision theory to show a theoretical mismatch between these two objectives. The best fingerprint predictor isn't necessarily the best for retrieval. Results are presented on one benchmark: MassSpecGym.
S: the paper deals with an important problem and identifies an interesting trade-off backed up with theory and one evaluation. W: eval is limited to one benchmark raising some concerns around other spectral pipelines and generalizability beyond the one benchmark tested. there are also concerns around the "closed world" assumption (true molecules is in database)
Authors should use the rebuttal to address weaknesses pointed out by the reviewers especially the ones mentioned above that are pointed out in multiple reviews.
Final justification
There were concerns around limited evaluation and the closed world assumption, to which the authors have submitted strong rebuttals. While no reviewer stepped forward to strongly advocate for the paper, there is consensus on the accept side.
Read meta-review
Meta-review
Imagine deriving chemical identity of a molecule from its mass spec (MS). A common approach is to map the spectrum to a fingerprint and then match the fingerprint against a database to retrieve matches by fingerprint similarity. for the first step, you might want high fingerprint prediction accuracy but the output of the second step is judged primarily by retrieval metrics. They use decision theory to show a theoretical mismatch between these two objectives. The best fingerprint predictor isn't necessarily the best for retrieval. Results are presented on one benchmark: MassSpecGym.
S: the paper deals with an important problem and identifies an interesting trade-off backed up with theory and one evaluation. W: eval is limited to one benchmark raising some concerns around other spectral pipelines and generalizability beyond the one benchmark tested. there are also concerns around the "closed world" assumption (true molecules is in database)
Authors should use the rebuttal to address weaknesses pointed out by the reviewers especially the ones mentioned above that are pointed out in multiple reviews.
Final justification
There were concerns around limited evaluation and the closed world assumption, to which the authors have submitted strong rebuttals. While no reviewer stepped forward to strongly advocate for the paper, there is consensus on the accept side.
1 comment
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies a mismatch between training objectives for molecular fingerprint prediction and downstream molecular retrieval from tandem mass spectra. The main observation is that optimizing a model to produce fingerprints that are close to the ground-truth fingerprint under cosine-like similarity does not necessarily optimize retrieval metrics such as HR@k. The authors formalize this point using a Bayes-risk view.
Strengths and weaknesses
Strength: The paper studies an important relevant problem in biotechnology, the mismatch between the objective used during training and the metric used for downstream evaluation. I appreciate the attempt to connect theory and empirical observations. The categorization of objectives into bitwise, vectorwise, and listwise losses is clear and helpful.
Weakness: (1) I am concerned that some claims are stated too strongly. The paper frames the phenomenon as a “fundamental” or “inherent” trade-off. I would encourage the authors to clarify the exact scope of the empirically observed trade-offs in the tested benchmark. (2) The empirical setting is somewhat narrow. Most conclusions are based on MassSpecGym. Since the paper makes a general statement about molecular retrieval, it would be useful to evaluate on another dataset, or other retrieval setting. (3) The presentation could be improved for a broader NeurIPS readers. The problem setup is domain-specific, and some readers outside computational metabolomics may have difficulty understanding why particular candidate settings, fingerprints are standard.
Questions
Are the conclusions mainly about molecular fingerprints, or should they also apply to learned continuous molecular embeddings.
Limitations
See weekness.
Final justification
I appreciate the authors’ response and will maintain my positive score. However, I would like to acknowledge the limitations of my expertise in computational biology.
Formatting concerns
NA
2 comments
Rebuttal
We thank the reviewer for their careful reading of our paper. Below, we address each raised point:
Q1: Regarding overstating claims
We agree we could be more careful in framing our results. In the revised version, we will change the tone of our language to be more specific and grounded in what we actually demonstrate. For example, in Abstract line 6: "these objectives are fundamentally misaligned" and line 14 "these results expose an inherent trade-off", we will shift our language towards something such as: “objectives that are provably misaligned under such uncertainty as empirically observed.”
Q2: Regarding the scope of the experiments
On “other retrieval settings”, we note that the paper already evaluates two retrieval regimes (equal-mass and equal-formula candidates, Table 1). To address this directly, we will expand our empirical settings to include results on Enveda-180 alongside MassSpecGym. This dataset is a recently released MS/MS dataset consisting of ~1.16M spectra spanning ~184k diverse druglike small molecules. As such, the data domain of this dataset should provide an orthogonal validation to the natural-product-like MassSpecGym. We believe it will be possible to share preliminary results using the most important losses to illustrate the trade-off (Contrastive Emb-Cos vs IoU Loss) by the end of the discussion window (Aug 3). Full results will then be included for a camera-ready version, if the paper would be accepted.
Q3: Regarding domain-specificity
This is a fair point: the setup assumes familiarity with why fingerprints and mass- or formula-restricted candidate sets are standard in this field. In the camera-ready revision, we will provide additional framing of the problem in the first paragraph of Section 2.1 Line 64-70. Concretely, we will expand this paragraph so that it clarifies how (1) tandem MS/MS provides the mass of the unknown compound as a prior for pre-selecting candidates from a chemical database, (2) how molecular formulae are routinely obtained through computational tools and provide a similar prior, and (3) briefly acknowledge and reference the field of molecular fingerprints/descriptors and its standard practice.
We believe these changes will benefit reading comprehension from the NeurIPS audience so that our material is broadly accessible to the ML community.
Q4: Regarding theory scope of binary fingerprints vs continuous embeddings
While much of our theoretical analysis is scoped specifically for binary multi-label representations, it is worth clearly stating which parts of our theory do transfer to the continuous domain. Arguably some of the more important theoretical results are Theorems 3.2 and 3.3, which bound the regret of HR@1 when similarity-maximizing decoding and vice-versa (regret of similarity score when HR@1-maximizing decoding). The proofs of these theorems only require that and that off-diagonal similarities lie in . Nothing in these theorems references that candidates need to be binary.
As such, we believe the similarity-versus-retrieval accuracy trade-off also occurs when using continuous molecular embeddings. There is also some evidence in the literature that the trade-off actually occurs with continuous embeddings in realistic settings: a recent preprint “MSAlign” by Krzkala et al., compares retrieval scores with input ChemBERTa-2 embeddings optimized under either (1) cosine similarity loss, or (2) contrastive loss, and found that cosine similarity optimization results in considerably lower hit rate scores. As such, this paper provides supporting evidence: our theory explains why this happens.
In the meantime, we have ran the additional experiments promised in our initial rebuttal.
Enveda-180 results
As promised, we have validated our theory on an orthogonal dataset (comprising drug-like molecules): Enveda-180. To construct a benchmark on this dataset, we have followed a similar recipe as the one defined by MassSpecGym. First, we split all data using single-linkage agglomerative clustering, guaranteeing a distance between molecules in different splits of at least 3 (a split by 10 was impossible as this clustered almost all molecules together). For each molecule, we defined negative candidates for retrieval in the same way as MassSpecGym: random selection from equal-mass PubChem up until a max of 256. All remaining data processing and model configurations are copied verbatim from our MassSpecGym benchmarking setup. We currently have results using the 2 most important loss functions (best scoring for hit rates and Tanimoto, resp.):
| Model | HR@1 | HR@5 | HR@20 | Tanimoto |
|---|---|---|---|---|
| MLP (IoU) | 01.38 ± 0.03 | 05.99 ± 0.03 | 18.73 ± 0.06 | 24.34 ± 0.03 |
| MLP (Embed-Cos) | 45.90 ± 0.04 | 71.11 ± 0.09 | 87.82 ± 0.08 | N/A |
| Transformer (IoU) | 01.42 ± 0.01 | 06.02 ± 0.02 | 18.75 ± 0.04 | 24.39 ± 0.04 |
| Transformer (Embed-Cos) | 63.06 ± 0.02 | 82.55 ± 0.11 | 92.98 ± 0.07 | N/A |
These results show that (1) transformers similarly outperform MLPs in Enveda-180 (as with MassSpecGym), and (2) the trade-off between retrieval and fingerprint accuracy also occurs in this data domain. Upon acceptance, we will include full Enveda-180 results (i.e., all loss functions) into the main part of the revised paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the mismatch between training objectives for molecular fingerprint prediction and downstream molecular retrieval performance in LC-MS/MS-based metabolite identification. Using a decision-theoretic framework, the authors analyze when Bayes-optimal decisions under fingerprint-similarity utilities, such as cosine or Tanimoto similarity, can differ from those optimal for retrieval metrics such as HR@1. They derive regret bounds relating this mismatch to properties of the candidate set, particularly the similarity band among candidates. Empirically, they evaluate several commonly used loss functions on MassSpecGym, including BCE, focal loss, cosine loss, IoU loss, and contrastive losses. The results suggest a trade-off: losses that improve fingerprint similarity do not necessarily improve retrieval, while contrastive/listwise objectives tend to yield better retrieval at the cost of lower fingerprint similarity.
Strengths and weaknesses
Strengths
The paper provides a useful decision-theoretic formalization of the mismatch between fingerprint-similarity objectives and retrieval metrics. The regret analysis gives interpretable conditions, involving candidate-set similarity structure and posterior uncertainty, under which optimizing for fingerprint similarity and optimizing for HR@1 can lead to different Bayes-optimal decisions. This provides more principled guidance for loss and fingerprint selection than purely empirical comparisons.
The empirical section evaluates a diverse set of losses, including bitwise, vectorwise, and listwise/contrastive objectives, across both MLP and transformer spectrum encoders and two MassSpecGym retrieval settings. The results consistently show a trade-off between Tanimoto fingerprint similarity and retrieval hit rate, and the use of multiple runs with standard deviations strengthens the empirical presentation.
Weaknesses
Limited external validation and unclear generality: The empirical validation is based primarily on a single benchmark, MassSpecGym, with Morgan fingerprints as the main representation. Although the paper includes some additional fingerprint types, the central trade-off is not tested across independent datasets, instruments, spectral libraries, or broader chemical spaces. The analysis also relies on the closed-world benchmark assumption that the true molecule is present in the candidate set, which may not hold in open-world metabolomics or forensic/patent-compound settings. More broadly, while the authors suggest that similar objective mismatches may arise in other binary-representation retrieval problems, this generalization is not empirically evaluated.
admittedly this is a minor critique as opposed to a weakness per se but ... while the theoretical analysis is central and informative, some of its practical implications depend on assumptions such as candidate-restricted decoding, closed-world retrieval, and properties of the candidate-set similarity structure. The empirical validation helps, but is still limited to one main benchmark setting.
Questions
How would the theoretical and empirical conclusions change if the true molecule is not guaranteed to be in the candidate set? In real applications, candidate databases may be incomplete, so it would be useful to understand whether the same objective mismatch appears under open-set or “none-of-the-above” retrieval settings.
The regret bounds seem to rely on candidate-restricted decoding and candidate-set similarity structure. Can the authors clarify whether the similarity-optimal decisions in the theory are restricted to the candidate set, and empirically analyze how well the proposed similarity-band quantities predict the observed retrieval gaps across examples or fingerprint types?
Limitations
yes
Formatting concerns
none
2 comments
Rebuttal
We thank the reviewer for their careful reading of our paper. Below, we address each raised point:
Q1: regarding external validation
First, we want to stress that MassSpecGym already subsumes most of the publicly available MS/MS data relevant to metabolomics settings. Moreover, our current experiments already validate our theory across six types of molecular fingerprints, two independent candidate regimes (formula-based and mass-based), and two types of architectures. Across all of these settings, we observe our trade-off consistently.
That said, we recognize the value of additional experimental validation. In the revised version, we will expand our empirical settings to include results on Enveda-180 alongside MassSpecGym. This dataset is a recently released MS/MS dataset consisting of ~1.16M spectra spanning ~184k diverse druglike small molecules. As such, the data domain of this dataset should provide an orthogonal validation to the natural-product-like MassSpecGym. We believe it will be possible to share preliminary results using the most important losses to illustrate the trade-off (Contrastive Emb-Cos vs IoU Loss) by the end of the discussion window (Aug 3). Full results will then be possible to include for a camera-ready version.
Q2: regarding the closed world assumption
We would like to provide a two-pronged answer to this question.
First, the closed world assumption will always be an inherent limitation of chemical database retrieval models. This is what fundamentally distinguishes de novo models from those in our manuscript. MassSpecGym also explicitly separates these two into different benchmark challenges. As such, the closed-world assumption is standard and well-motivated: candidate sets are constructed precisely because the true molecule is known or expected to exist in chemical databases, and we note this scope explicitly in the manuscript. To provide some evidence of this scope being fair, we have searched the 2D InChiKeys in MassSpecGym and Enveda-180 in PubChem. Respectively, 97.4% and 97.8% of molecules in these datasets are covered by known chemical space.
A second aspect of answering this question is that our theory can in principle accommodate the open-world assumption, but the underlying model needs slight tweaking. Consider for example a model that, aside from assigning probabilities to candidates, also outputs a probability for “not-in-candidate-set”. Then, our theory could similarly make use of a posterior probability . Theorems 3.2–3.4 hinge upon the fact that for posterior probabilities, but with this option, the total mass of posterior probabilities covered by all candidates shifts to . This generalization propagates cleanly through our regret bounds. The most important part is Lemma D.1, which bounds the expected similarity-utility as (Eq 11). Under the open-world assumption with a “none of the above” choice, equals rather than . Carrying this substitution through would give (slightly different) generalized regret bounds (which would include the unmeasured posterior probability ). While this is not fully a “de novo” model, we believe this thought exercise illustrates that the similarity-retrieval trade-off is not simply a byproduct of our specific setup, but inherent to any chemical database retrieval model, whether it tries to accommodate the closed-world assumption or not.
Q3: Regarding how candidate set structure influences the observed trade-off
It is true that our main regret theorems (3.2–3.4) operate on the candidate-ranking decision and hence make use of candidate similarity band statistics. So yes, whether HR@1-optimal decisions deviate from similarity-optimal decisions are dependent on the candidate set. However, as selecting mass-equal or formula-equal candidates from a chemical database is the way metabolomics database retrieval models would actually operate, we don’t see a disconnect between our theory and practice.
Regarding how well the proposed similarity-band quantities predict the observed retrieval gaps across fingerprint types, we would like to point the reviewer to Table 6, where the median \sigma_\min, \sigma_\max and \sigma_\max - \sigma_\min are reported per fingerprint type. Comparing these with Table 2, one can deduct that the actual observed regret tracks with similarity statistics.
We agree, however, that this per-fingerprint analysis is only indirect evidence for the similarity bands being the actual drivers of the trade-off. To provide more direct evidence via a per-spectrum analysis, we partitioned the MassSpecGym test set into halves based on the \sigma_\max - \sigma_\min of each spectrum's candidate set and computed the HR@1 gap (Contrastive minus IoU model) within each half:
| Partition by | Mean \sigma_\max - \sigma_\min | HR@1 Gap (Contr. - IoU) |
|---|---|---|
| Bottom Half | 0.21 | 5.63 |
| Top Half | 0.67 | 7.15 |
As predicted by Theorems 3.2–3.3, the HR@1 gap is larger for samples with a wider similarity band. We performed an analogous stratification by \sigma_\max:
| Partition by | Mean \sigma_\max | HR@1 Gap (Contr. - IoU) |
|---|---|---|
| Bottom Half | 0.24 | 5.71 |
| Top Half | 0.70 | 7.07 |
These analyses directly confirm the similarity band as a driver of the trade-off, and we will include them in the revised manuscript.
In the meantime, we have ran the additional experiments promised in our initial rebuttal.
Enveda-180 results
As promised, we have validated our theory on an orthogonal dataset (comprising drug-like molecules): Enveda-180. To construct a benchmark on this dataset, we have followed a similar recipe as the one defined by MassSpecGym. First, we split all data using single-linkage agglomerative clustering, guaranteeing a distance between molecules in different splits of at least 3 (a split by 10 was impossible as this clustered almost all molecules together). For each molecule, we defined negative candidates for retrieval in the same way as MassSpecGym: random selection from equal-mass PubChem up until a max of 256. All remaining data processing and model configurations are copied verbatim from our MassSpecGym benchmarking setup. We currently have results using the 2 most important loss functions (best scoring for hit rates and Tanimoto, resp.):
| Model | HR@1 | HR@5 | HR@20 | Tanimoto |
|---|---|---|---|---|
| MLP (IoU) | 01.38 ± 0.03 | 05.99 ± 0.03 | 18.73 ± 0.06 | 24.34 ± 0.03 |
| MLP (Embed-Cos) | 45.90 ± 0.04 | 71.11 ± 0.09 | 87.82 ± 0.08 | N/A |
| Transformer (IoU) | 01.42 ± 0.01 | 06.02 ± 0.02 | 18.75 ± 0.04 | 24.39 ± 0.04 |
| Transformer (Embed-Cos) | 63.06 ± 0.02 | 82.55 ± 0.11 | 92.98 ± 0.07 | N/A |
These results show that (1) transformers similarly outperform MLPs in Enveda-180 (as with MassSpecGym), and (2) the trade-off between retrieval and fingerprint accuracy also occurs in this data domain. Upon acceptance, we will include full Enveda-180 results (i.e., all loss functions) into the main part of the revised paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper argues that molecular fingerprint prediction accuracy and molecular retrieval performance are not necessarily aligned. Different embedding algorithms and loss functions are tested with a decision-theoretic perspective to prove the statement.
Strengths and weaknesses
Strengths:
- The motivation is explained clearly.
- The argument is proved both theoretically and empirically, with explicit experimental results and figure visualization.
- The result is significant as a guidance for future molecular retrieval architecture design.
Weaknesses:
- Some notations are confusing, which sometimes blur true labels, candidates, predicted fingerprints, and retrieval scores. For example, "y" is used as ground truth in Section 2.1 but denotes "all possible molecules" in Section 3.1.
- The theory uses Bayes-optimal binary decisions, while models output soft fingerprints and are trained with neural surrogates. The bridge from the theoretical decision rules to finite-sample trained models is partly informal.
- Only one dataset is used, which limited the strength and the generalizability of the conclusion.
Questions
- Could you try some recent advanced model as backbones and prove your point on them?
- Please double check all notation usage and increase the readability.
- Could you explain more about why Tanimoto is reported as N/A for some combinations?
Limitations
yes but not very explicitly
Final justification
All my concerns have been well addressed, and the required experiments have provided supportive results. Based on the current revision and the authors’ plan to further improve the clarity of the manuscript, I am willing to increase my final overall score to 5.
Formatting concerns
N/A
2 comments
Rebuttal
We thank the reviewer for their careful reading of our paper. Below, we address each raised point:
Q1: regarding notation
We thank the reviewer for flagging this, we indeed did not consistently update the notation across sections: in Section 2.1 (line 67) the candidates are defined as , whereas in Section 3.2 (line 176) and Appendix D, the same candidate sets are referred to as . At the same time, we use for the true fingerprint, which is also part of the candidate set .
In the revised manuscript, we will rename candidates back to throughout Section 3.2 and Appendix D (Theorems 3.2–3.4, Lemma D.1, D.1–D.4), matching the Section 2.1 convention.
Q2: regarding the bridge between decision theory and soft surrogates
As mentioned in the main text and further discussed in Appendix E, the decision rule induced by practical finite-sample models can deviate from the Bayes-optimal rule for two distinct reasons: (1) an intrinsic Bayes-level mismatch between optimizing for the surrogate objective versus the target objective, and (2) a finite-sample generalization component arising from estimation error in the fingerprint predictor learned by empirical risk minimization. The primary focus of this paper is the first source of regret, which is specific to the metabolomics setting and is characterized by the regret bounds presented in Section 3.2 and Appendix D. In Appendix E, we discuss the second component and clarify how finite-sample estimation error contributes to the overall regret. We have not included additional formal theorems for this aspect because the corresponding analysis follows directly from standard statistical learning theory: existing generalization bounds can be combined with our regret decomposition in a routine manner and would not introduce new technical ideas specific to our setting. We therefore chose to keep the paper focused on the novel Bayes-level analysis while referring to the finite-sample component in a more informal discussion (i.e., Appendix E).
Q3: Regarding the use of a single dataset
First, we want to stress that MassSpecGym already subsumes most of the publicly available MS/MS data relevant to metabolomics settings. Moreover, our current experiments already validate our theory across six types of molecular fingerprints, two independent candidate regimes (formula-based and mass-based), and two types of architectures. Across all of these settings, we observe our trade-off consistently.
That said, we recognize the value of additional experimental validation. In the revised version, we will expand our empirical settings to include results on Enveda-180 alongside MassSpecGym. This dataset is a recently released MS/MS dataset consisting of ~1.16M spectra spanning ~184k diverse druglike small molecules. As such, the data domain of this dataset should provide an orthogonal validation to the natural-product-like MassSpecGym. We believe it will be possible to share preliminary results using the most important losses to illustrate the trade-off (Contrastive Emb-Cos vs IoU Loss) by the end of the discussion window (Aug 3). Full results will then be possible to include for a camera-ready version.
Q4: Regarding the inclusion of a more recent advanced model as backbone
In principle, the theory should apply to any backbone we use. We believe our transformer model already sets a strong standard given contemporary results in the field. Nevertheless, for a revised version, we will include experiments using the pre-trained spectrum transformer encoder DreaMS (by Bushuiev et al.) instead of training spectrum encoders from scratch, to see if they provide additional benefit. Similarly as for the last Q point, we believe we will be able to share preliminary results by the end of the discussion window (Aug 3), and report full results tables (e.g., using all tested losses and candidate settings) for the camera-ready version.
Q5: Why Tanimoto is reported as N/A for some combinations
Tanimoto/IoU is only defined between two fingerprint-shaped bit-vectors in , so it can only be reported for model variants whose prediction actually lives in fingerprint space. Of our four contrastive variants (Eqs. 6–9), only Fp-Cos satisfies this: uses directly, so can be binarized and compared to the ground-truth fingerprint. Emb-Cos, Fp-MLP, and Emb-MLP instead operate either on a learned lower-dimensional projection (Eq. 7) or output only a scalar match score from an MLP (Eqs. 8–9). (Note that, in principle, one could obtain Tanimoto scores for these models by computing the Tanimoto from the first ranked prediction (could be called “Tanimoto @ 1”, for instance), but this would not make for a fair comparison since this measure would exploit candidate set structure.)
The reason for the N/A's is currently stated only in the Table 4 caption, which we agree is easy to miss. We will add an explicit sentence restating this in the main Results paragraph (around l. 253–257) and a brief clause when Eqs. 6–9 are first introduced (around l. 237–239).
In the meantime, we have ran the additional experiments promised in our initial rebuttal.
DreaMS results
First, we have plugged in DreaMS (Bushuiev et al.) as a frozen spectral language model encoder into our existing experiments on MassSpecGym. Models were trained in exactly the same way as all other models described in our manuscript. We currently have results using the 2 most important loss functions (best scoring for hit rates and Tanimoto, resp.):
| Model | HR@1 | HR@5 | HR@20 | Tanimoto |
|---|---|---|---|---|
| MLP (IoU) | 05.58 ± 0.32 | 13.01 ± 0.39 | 26.51 ± 0.50 | 19.42 ± 0.13 |
| MLP (Embed-Cos) | 12.29 ± 0.69 | 26.09 ± 1.43 | 45.05 ± 0.71 | N/A |
| Transformer (IoU) | 09.43 ± 0.50 | 20.57 ± 0.72 | 38.80 ± 0.43 | 22.13 ± 0.15 |
| Transformer (Embed-Cos) | 16.13 ± 0.69 | 31.46 ± 0.70 | 53.73 ± 1.41 | N/A |
| DreaMS (IoU) | 7.38 ± 0.98 | 17.21 ± 0.45 | 34.38 ± 0.38 | 22.79 ± 0.16 |
| DreaMS (Embed-Cos) | 14.33 ± 0.95 | 30.14 ± 1.60 | 54.29 ± 1.04 | N/A |
These results show that (1) our transformers trained from scratch are generally competitive or outperforming frozen pre-trained spectral language models, and (2) the trade-off between retrieval and fingerprint accuracy similarly occurs with this advanced model backbone. Upon acceptance, we will include full DreaMS results (i.e., all loss functions) into the main part of the revised paper.
Enveda-180 results
As promised, we have validated our theory on an orthogonal dataset (comprising drug-like molecules): Enveda-180. To construct a benchmark on this dataset, we have followed a similar recipe as the one defined by MassSpecGym. First, we split all data using single-linkage agglomerative clustering, guaranteeing a distance between molecules in different splits of at least 3 (a split by 10 was impossible as this clustered almost all molecules together). For each molecule, we defined negative candidates for retrieval in the same way as MassSpecGym: random selection from PubChem equal-mass up until a max of 256. All remaining data processing and model configurations are copied verbatim from our MassSpecGym benchmarking setup. We currently have results using the 2 most important loss functions (best scoring for hit rates and Tanimoto, resp.):
| Model | HR@1 | HR@5 | HR@20 | Tanimoto |
|---|---|---|---|---|
| MLP (IoU) | 01.38 ± 0.03 | 05.99 ± 0.03 | 18.73 ± 0.06 | 24.34 ± 0.03 |
| MLP (Embed-Cos) | 45.90 ± 0.04 | 71.11 ± 0.09 | 87.82 ± 0.08 | N/A |
| Transformer (IoU) | 01.42 ± 0.01 | 06.02 ± 0.02 | 18.75 ± 0.04 | 24.39 ± 0.04 |
| Transformer (Embed-Cos) | 63.06 ± 0.02 | 82.55 ± 0.11 | 92.98 ± 0.07 | N/A |
These results show that (1) transformers similarly outperform MLPs in Enveda-180 (as with MassSpecGym), and (2) the trade-off between retrieval and fingerprint accuracy also occurs in this data domain. Upon acceptance, we will include full Enveda-180 results (i.e., all loss functions) into the main part of the revised paper.
Comments on the paper
1 comment
discussion phase
Dear Reviewers,
The authors have submitted rebuttals addressing each of your reviews. Please read their responses carefully, assess whether your concerns and questions have been adequately addressed, and reply to the authors in the discussion. I would appreciate if you respond promptly (thank you if you have already done so!) as the author-reviewer discussion period will end on August 3.
Thank you and best regards, AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC,
As the discussion period ends, and we have not received feedback from reviewers, we wanted to summarize our rebuttals, especially on the points you flagged as important in the meta-review.
On generalizability beyond a single benchmark (Reviewers Fbra, nxki, iMeg): we have added results on Enveda-180, an independent drug-like MS/MS dataset, using the same benchmarking recipe as MassSpecGym. It is important to note that this dataset is very recent (first published end of May 2026) and is currently the largest uniformly-generated small molecule MS/MS dataset the field knows. Further, as far as our knowledge, ours are the first ML experiments on this data to date. The fingerprint-vs-retrieval trade-off reproduces cleanly in this dataset. In addition, we also added a pretrained DreaMS spectral encoder as a further model backbone (per Reviewer Fbra), and the trade-off holds with that backbone as well.
On the closed-world assumption (Reviewer nxki): we have argued in two ways: first, we have shown that ~97–98% of molecules in both MassSpecGym and Enveda-180 are covered by known chemical space in PubChem, supporting the assumption's practical relevance. Second, we have sketched how our regret bounds extend to an open-world "none-of-the-above" formulation, showing our theory extends without much effort.
We have also directly tested the mechanism behind the trade-off (Reviewer nxki) via a per-spectrum stratification by candidate similarity band, which confirms the predicted relationship at the individual-example level, and we have committed to revisions on notation consistency (Fbra) and scoped claims (iMeg). Finally, we committed to add extra background framing for readers outside computational metabolomics (iMeg).