Regression of ω_max (last-peak phonon frequency, cm⁻¹) for 1,265
inorganic crystals on the Matbench phonons task, comparing a
composition-only Magpie + GBDT baseline against a hand-implemented
structure-based CGCNN.
Gradient boosting on cheap features reaches MAE = 34.4 ± 2.3 cm⁻¹,
R² = 0.981 on the official Matbench phonons folds — 7th of 17 on the
live leaderboard, within 0.15 cm⁻¹ of MODNet and ahead of DimeNet++,
SchNet, CrabNet, and CGCNN — using Magpie composition features plus two
structure blocks (density/packing/sine-Coulomb-matrix, and physics-first
bond features built around the harmonic proxy ω ∝ 1/(d√μ) from per-site
nearest-neighbour distances and pair reduced masses), a log-target
transform, and a 5-seed HistGradientBoosting ensemble. The whole dataset
featurizes in about a minute on a laptop; training takes a few minutes.
All rows below marked "official folds" use the exact Matbench v0.1 split.
| Model | MAE (cm⁻¹) | R² | n_folds |
|---|---|---|---|
| Magpie + structure + bonds, log-y, 5-seed GBDT (this repo, official folds, tuned) | 34.4 ± 2.3 | 0.981 | 5 |
| Magpie + structure + GBDT (this repo, official folds) | 43.7 ± 4.2 | 0.967 | 5 |
| structure-only + GBDT (this repo, official folds) | 52.0 ± 5.5 | 0.960 | 5 |
| Magpie-only + GBDT (this repo, official folds) | 70.5 ± 11.7 | 0.904 | 5 |
| Magpie-only + GBDT (this repo, internal folds) | 70.1 ± 10.3 | 0.910 | 5 |
| CGCNN (this repo, partial) | 94.7 ± 12.4 | 0.799 | 3 |
| Roost (published) | 75.6 | — | 5 |
| CGCNN (published) | 57.8 | — | 5 |
| MEGNet (published) | 49.9 | — | 5 |
| ALIGNN (published) | 29.5 | — | 5 |
Full table in figures/leaderboard.md. Per-fold JSON in metrics/.
The official split (KFold, n=5, shuffle, random_state=18012019) is
reconstructed with sklearn and verified entry-for-entry against
matbench_phonons_official_folds.json before training — see
scripts/eval_official_folds.py. All model selection (feature blocks,
log-target transform, hyperparameters, ensemble size) was done on a
separate dev split (random_state=0) via
scripts/dev_model_selection.py; the official folds were run once with
the frozen winner. Reproduce the tuned number with:
python scripts/eval_official_folds.py --features magpie+struct+bonds \
--log-target --n-seeds 5 \
--hp '{"learning_rate":0.03,"max_leaf_nodes":31,"min_samples_leaf":10,"l2_regularization":0.0,"max_iter":1500}'Where the gains come from: composition-only features saturate near 70 cm⁻¹ (RF-SCM/Magpie, the weakest current leaderboard entry, is 67.6). A 15-dimensional structure block closes half the gap to the graph networks (43.7), and encoding the actual physics of the target — ω_max ∝ √(k/μ) via per-site nearest-neighbour bond proxies 1/(d√μ), plus a log-target transform that tames the hydride-dominated heavy tail — closes most of the rest (34.4). On the live leaderboard that sits between DeeperGATGNN (33.1) and MODNet (34.3), ahead of DimeNet++ (37.5), SchNet (39.0), Finder (46.6), CrabNet (55.1), AMMExpress (56.2), and CGCNN (57.8), behind only the top graph networks (MegNet/coNGN/ALIGNN/coGN, 28.8–29.7).
The CGCNN result is partial (3 of 5 CV folds, 1–3 seeds per fold) and below the published config: 100 epochs with
patience=30was the laptop-CPU budget, well below the ~500-epoch training the original CGCNN paper used. Treat the GBDT line, not the CGCNN line, as this repo's benchmark.
git clone <repo-url> cd phonon-omega-max python3.12 -m venv .venv && source .venv/bin/activate pip install -e ".[dev]" pip install "numpy>=1.26,<2.0" # torch 2.2.2 was built against NumPy 1.x make all
Wall time on a laptop CPU: ~5 hours. The Matbench dataset is fetched
directly from Materials Project's ML data cache on first run (no API
key needed). All later runs reuse the parquet cache under
data/cache/.
On macOS, the Makefile exports OMP_NUM_THREADS=1,
MKL_NUM_THREADS=1, and KMP_DUPLICATE_LIB_OK=TRUE to keep torch and
the rest of the OpenMP-using stack from stepping on each other.
phonon_omegamax/: the packagenotebooks/walkthrough.ipynb: single-fold democonfigs/: per-model hyperparameters (also documented indocs/methods.md)docs/: data card, methods, physics findingsfigures/: versioned headline figure + leaderboard tablemetrics/: per-fold JSON + summary JSON, written bymake all
- Five seeds × five outer folds is a heavy CPU budget; if wall-clock runs long, dropping to three seeds is a documented escape hatch.
- Equivariant nets (e3nn, NequIP, MACE) are not implemented (future work).
- The target is a single derived scalar (ω_max), not the full DOS curve. The structure-vs-composition ablation is set up so that extending to DOS regression is a single-file change.
Phonon data and structures from the Materials Project (CC-BY 4.0), delivered via the same JSON the Matbench benchmark distributes.
MIT. See LICENSE. Materials Project data is CC-BY 4.0.
