2 Datasets and data pre-processing Spec2Mol consists of an encoder that learns spectra embeddings and a pre-trained decoder, which has been trained as part of an autoencoder architecture. The autoencoder has been trained on a large set of molecules (molecule dataset discussed in section 2.2) while the encoder has been trained on a set of molecules for which MS/MS data are available (spectral dataset discussed in 2.1).