Contrastive Domain Generalization for Cross-Instrument Molecular Identification in Mass Spectrometry

Seunghyun Yoo, Sanghong Kim, Namkyung Yoon, Hwangnam Kim
1/31/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Identifying molecules from mass spectrometry (MS) data remains a fundamental challenge due to the semantic gap between physical spectral peaks and underlying chemical structures. Existing deep learning approaches often treat spectral matching as a closed-set recognition task, limiting their ability to generalize to unseen molecular scaffolds. To overcome this limitation, we propose a cross-modal alignment framework that directly maps mass spectra into the chemically meaningful molecular structure embedding space of a pretrained chemical language model. On a strict scaffold-disjoint benchmark, our model achieves a Top-1 accuracy of 42.2% in fixed 256-way zero-shot retrieval and demonstrates strong generalization under a global retrieval setting. Moreover, the learned embedding space demonstrates strong chemical coherence, reaching 95.4% accuracy in 5-way 5-shot molecular re-identification. These results suggest that explicitly integrating physical spectral resolution with molecular structure embedding is key to solving the generalization bottleneck in molecular identification from MS data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yoo2026contrastive,
  title  = {Contrastive Domain Generalization for Cross-Instrument Molecular Identification in Mass Spectrometry},
  author = {Seunghyun Yoo and Sanghong Kim and Namkyung Yoon and Hwangnam Kim},
  year   = {2026},
  eprint = {2602.00547},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00547v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00547.svg)](https://codeofpaper.com/paper/2602.00547)

Discussion