XANESNET: A Modular, Extensible, and Flexible Machine Learning Framework for Spectroscopy
In this work, we introduce XANESNET, an open-source, PyTorch-based software package for machine learning in spectroscopy. Specifically, the framework integrates training, inference, and automated analysis for structure–spectrum learning within a plugin-based architecture. Its modular design enables users to compare, combine, and extend workflow and analysis components without modifying the core codebase, providing a flexible and reusable alternative to single-purpose implementations. XANESNET supports both forward prediction from chemical structures to spectra and inverse inference from spectra to structures, properties, or descriptors. Through PyTorch Lightning, we enable multi-device training using Distributed Data Parallel (DDP) across multiple GPUs. A shared data pipeline uniformly handles both molecular and periodic systems. Although the framework is agnostic to spectroscopic techniques, current modules primarily implement atom-centered spectra. We demonstrate its use for learning structure–spectrum relationships in X-ray absorption spectroscopy. To our knowledge, XANESNET is the first general-purpose machine-learning framework for spectroscopy with a central focus on extensibility and reproducibility. This enables systematic comparisons and evaluations of machine-learning approaches, helping researchers develop and benchmark novel methods.
Authors
- Annika Bande (ORCID: https://orcid.org/0000-0003-3827-9169)
- Thomas J. Pope (ORCID: https://orcid.org/0000-0001-7552-9812)
- Ulf Leser (ORCID: https://orcid.org/0000-0003-2166-9582)
- Thomas J. Penfold (ORCID: https://orcid.org/0000-0003-4490-5672)
- Hendrik Junkawitsch (ORCID: https://orcid.org/0009-0007-8276-3309)
- Bowen Li
Institutions
- Leibniz University Hannover (DE)
- Helmholtz-Zentrum Berlin für Materialien und Energie (DE)
- Humboldt-Universität zu Berlin (DE)
- Newcastle University (GB)
Publication Details
- Journal
- ChemRxiv
- Published
- 2026-11-29
- DOI
- https://doi.org/10.26434/chemrxiv.15012931/v1
- Primary Topic
- Machine Learning in Materials Science
- Type
- preprint