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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

XANESNET: A Modular, Extensible, and Flexible Machine Learning Framework for Spectroscopy

Annika Bande, Thomas J. Pope, Ulf Leser, Thomas J. Penfold et al.
ChemRxiv
Machine Learning in Materials Science
preprint

XANESNET: A Modular, Extensible, and Flexible Machine Learning Framework for Spectroscopy

Annika Bande, Thomas J. Pope, Ulf Leser, Thomas J. Penfold, Hendrik Junkawitsch, Bowen Li
preprint en

Abstract

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.

ChemRxiv
Leibniz University Hannover (DE), Helmholtz-Zentrum Berlin für Materialien und Energie (DE), Humboldt-Universität zu Berlin (DE), Newcastle University (GB)
Machine Learning in Materials Science
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon