Abstract
Structure elucidation --- determining molecular structures from spectroscopic data -- remains one of chemistry's most fundamental and challenging tasks, essential for advancing fields from drug discovery to materials science. While machine learning approaches have attempted to automate this process, they typically focus on single spectroscopic techniques and lack crucial confidence metrics, limiting their practical utility. Here, we present spec2struct, a framework that synergistically combines multimodal embeddings, contrastive learning, and evolutionary algorithms to mimic how expert chemists approach structure determination. By aligning encoders for diverse spectroscopic techniques with molecular representations, our system can simultaneously interpret multiple types of spectroscopic evidence. This alignment guides genetic algorithms to evolve chemically valid candidates that best match the experimental data. spec2struct not only outperforms existing methods but also provides calibrated and contextualized confidence estimates. We demonstrate its real-world impact by identifying several published structures incorrectly assigned in the literature. The combination of performance, reliability, and versatility positions spec2struct as a powerful tool for accelerating chemical discovery.