XANE(3) Materials Project baseline
XANE(3) predicts a normalized X-ray absorption near-edge spectrum from a periodic atomic structure, a tagged absorber site, and an absorption edge. This checkpoint was trained on Materials Project bulk-crystal spectra simulated with FEFF9. It supports K, L₂, and L₃ predictions for element–edge combinations represented in its calibration data. The same weights serve as the zero-shot model in the iron-oxide transfer benchmark.
The release contains the epoch-65 exponential-moving-average weights used for the manuscript's 40,000-spectrum test evaluation. All 105 tensors in model.safetensors match the selected weights in the original training checkpoint. config.json records its SHA-256 and specifies the architecture, 5 Å graph cutoff and energy grid.
Predict a spectrum
Download the repository, including src/, and run the commands below from its root. With Python 3.12, first install PyTorch 2.8.0 and a matching torch-scatter 2.1.2 wheel for your platform. The predictor runs on CPU by default. PyTorch installation · PyG wheel selection
pip install torch-geometric==2.7.0 e3nn==0.4.4 ase==3.27.0 cuequivariance==0.10.0 cuequivariance-torch==0.10.0 safetensors==0.7.0 numpy tqdm
python predict.py --model . --structure example.extxyz --absorber 193 --edge K --output predicted.csv
The example predicts the Fe K-edge spectrum for atom 193 in an iron-oxide structure. For another structure, pass an ASE-readable periodic file, one or more zero-based absorber indices of the same element, and K, L2 or L3. Passing multiple indices gives one prediction for the tagged set.
The CSV contains 100 points on a grid from 0 to 55 eV. relative_energy_eV starts at zero. absolute_energy_eV adds the model's prediction for the lowest sampled absolute energy. normalized_intensity uses the target preprocessing scale, which divides each reference spectrum by its own 99th-percentile intensity before interpolation.
Evaluation
The intensity mean squared error was 0.00238444 across 40,000 held-out simulated spectra. The split was performed by spectrum, so spectra from the same crystal can appear in different partitions. The energy-origin mean absolute error was 0.142 eV. Its element- and edge-specific calibration statistics were computed over the full 617,203-spectrum corpus, including validation and test records.
Sources
The Materials Project released the reference calculations in separate K-edge and L-edge archives. K-edge data · L-edge data
The example geometry comes from the iron-oxide calculations of Luke N. Pretzie and co-authors, whose bulk starting structures came from the Materials Project. Materials Project
The inference implementation is included in src/ and predict.py. An earlier version of XANE(3) is described in the preprint. XANE(3) preprint
- Downloads last month
- 12