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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: "Crystal-RL: surrogate-vs-DFT effective-mass gap (negative-result dataset)"
|
| 4 |
+
tags:
|
| 5 |
+
- materials-science
|
| 6 |
+
- effective-mass
|
| 7 |
+
- dft
|
| 8 |
+
- quantum-espresso
|
| 9 |
+
- jarvis
|
| 10 |
+
- reinforcement-learning
|
| 11 |
+
- surrogate-model
|
| 12 |
+
- negative-results
|
| 13 |
+
- methodology
|
| 14 |
+
- tabular
|
| 15 |
+
task_categories:
|
| 16 |
+
- tabular-regression
|
| 17 |
+
- tabular-classification
|
| 18 |
+
language:
|
| 19 |
+
- en
|
| 20 |
+
size_categories:
|
| 21 |
+
- n<1K
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: bootstrap_signed_mstar
|
| 24 |
+
data_files: "data/bootstrap_signed_mstar.parquet"
|
| 25 |
+
default: true
|
| 26 |
+
- config_name: surrogate_dft_pairs
|
| 27 |
+
data_files: "data/surrogate_dft_pairs.parquet"
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# Crystal-RL: surrogate-vs-DFT effective-mass gap
|
| 31 |
+
|
| 32 |
+
Two related tables from the [`crystal-rl`](https://github.com/bshepp/crystal-rl)
|
| 33 |
+
materials-discovery project:
|
| 34 |
+
|
| 35 |
+
1. **`bootstrap_signed_mstar`** — 794 Quantum ESPRESSO DFT calculations on
|
| 36 |
+
perturbed semiconductor crystal structures, with **signed** effective
|
| 37 |
+
mass values (681 negative, 113 positive). Signed-m\* DFT data is rare:
|
| 38 |
+
JARVIS, Materials Project, and AFLOW all store magnitudes only, which
|
| 39 |
+
destroys the sign that distinguishes band-inverted from normal-curvature
|
| 40 |
+
bands. This subset is the primary reusable artifact for anyone training
|
| 41 |
+
signed-m\* surrogate models.
|
| 42 |
+
|
| 43 |
+
2. **`surrogate_dft_pairs`** — 24 surrogate-prediction-vs-DFT-truth pairs
|
| 44 |
+
across three independent RL+surrogate validation rounds. This subset
|
| 45 |
+
exists to support a methodological claim: **across three independent
|
| 46 |
+
pipeline variants** (unsigned-m\* baseline, signed-m\* with bootstrap data
|
| 47 |
+
absent, signed-m\* with bootstrap data loaded), **zero of 24 surrogate-
|
| 48 |
+
selected candidates DFT-validated as low-positive-effective-mass
|
| 49 |
+
semiconductors**. 19 of 24 instead showed negative DFT band curvature
|
| 50 |
+
(band-inversion signature). The dataset is published so other groups can
|
| 51 |
+
study the gap directly.
|
| 52 |
+
|
| 53 |
+
## Dataset summary
|
| 54 |
+
|
| 55 |
+
| Subset | Records | What's in it |
|
| 56 |
+
|---|---|---|
|
| 57 |
+
| `bootstrap_signed_mstar` | 794 | Per-structure DFT outputs + 156-dim structural fingerprint |
|
| 58 |
+
| `surrogate_dft_pairs` | 24 | Per-candidate surrogate prediction *and* DFT measurement |
|
| 59 |
+
|
| 60 |
+
Both subsets load with the standard 🤗 Datasets library:
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
from datasets import load_dataset
|
| 64 |
+
|
| 65 |
+
# Default config (the bootstrap table)
|
| 66 |
+
boot = load_dataset("bshepp/rl-surrogate-dft-gap", split="train")
|
| 67 |
+
|
| 68 |
+
# Explicit subset
|
| 69 |
+
pairs = load_dataset("bshepp/rl-surrogate-dft-gap",
|
| 70 |
+
"surrogate_dft_pairs", split="train")
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Subsets
|
| 74 |
+
|
| 75 |
+
### `bootstrap_signed_mstar` (794 rows)
|
| 76 |
+
|
| 77 |
+
Effective-mass + band-gap DFT outputs for 794 perturbed semiconductor
|
| 78 |
+
structures, plus the 156-dimensional structural fingerprint used by the
|
| 79 |
+
`crystal-rl` surrogate. Generated on AWS EC2 (`c5.4xlarge`) in February
|
| 80 |
+
2026 over 4 rounds of bootstrap exploration starting from 10 seed
|
| 81 |
+
families (Si, Ge, C-diamond, GaAs, AlAs, InAs, GaP, SiC-3C, InP, AlN).
|
| 82 |
+
|
| 83 |
+
| Column | Type | Description |
|
| 84 |
+
|---|---|---|
|
| 85 |
+
| `row_id` | int64 | Stable record index (0..793). Matches the row index in the source `bootstrap_expanded_all.json`. |
|
| 86 |
+
| `seed` | string | Seed family the structure was derived from (e.g. `"Si"`, `"GaAs"`). |
|
| 87 |
+
| `label` | string | Free-form provenance label from the bootstrap pipeline. |
|
| 88 |
+
| `formula` | string | Chemical formula of the final structure (e.g. `"As2Ga2"`). |
|
| 89 |
+
| `dft_m_electron` | float64 | Signed electron effective mass at the conduction band edge (mₑ units). Negative ⇒ negative band curvature (band inversion). |
|
| 90 |
+
| `dft_m_hole` | float64 | Signed hole effective mass at the valence band edge (mₑ units). |
|
| 91 |
+
| `dft_m_min_signed` | float64 | Smallest-magnitude effective mass found in the band structure, **signed** by curvature. This is the canonical signed-m\* training target. |
|
| 92 |
+
| `dft_band_gap_ev` | float64 | PBE band gap in eV. 0 means metallic. |
|
| 93 |
+
| `dft_vbm_ev` / `dft_cbm_ev` | float64 | Valence/conduction band edge positions in eV. |
|
| 94 |
+
| `is_direct_gap` | bool? | True if Γ-point gap, False if indirect, null if undetermined. |
|
| 95 |
+
| `qe_runtime_seconds` | float64 | Wall-clock seconds the QE `pw.x` job took on a c5.4xlarge core. |
|
| 96 |
+
| `fingerprint_156` | list<float32>\[156\] | 12 composition + 4 elemental property + 8 lattice + 64 RDF + 64 partial-RDF features. Composition palette: `H, C, N, O, Si, P, Ge, Ga, As, In, Sn, Al, Sb, Bi, Se, Te`. See [`qe_interface/structures.py`](https://github.com/bshepp/crystal-rl/blob/master/qe_interface/structures.py) for the exact fingerprint code. |
|
| 97 |
+
|
| 98 |
+
**Signed-m\* distribution**: 681 records with `dft_m_min_signed < 0`,
|
| 99 |
+
113 with `dft_m_min_signed > 0`. The skew toward negative is a property
|
| 100 |
+
of which structures the bootstrap perturbation chose to retain — *not*
|
| 101 |
+
of materials in general.
|
| 102 |
+
|
| 103 |
+
### `surrogate_dft_pairs` (24 rows)
|
| 104 |
+
|
| 105 |
+
Side-by-side surrogate prediction and DFT measurement for the top
|
| 106 |
+
candidates produced by three independent RL training runs.
|
| 107 |
+
|
| 108 |
+
| Column | Type | Description |
|
| 109 |
+
|---|---|---|
|
| 110 |
+
| `run_id` | string | One of `phase7`, `pathb_run1`, `pathb_run3`. See [Methodology](#methodology) below for what changed between runs. |
|
| 111 |
+
| `formula` | string | Chemical formula of the candidate produced by the PPO agent. |
|
| 112 |
+
| `seed` | string | Seed structure the agent perturbed from. |
|
| 113 |
+
| `surrogate_m_star` | float64 | Surrogate's predicted effective mass for this candidate. |
|
| 114 |
+
| `surrogate_reward` | float64 | PPO reward the agent received from the surrogate. |
|
| 115 |
+
| `dft_m_min_signed` | float64 | DFT signed m\* of the minimum-magnitude band. |
|
| 116 |
+
| `dft_m_electron` | float64 | Signed conduction-band m\*. |
|
| 117 |
+
| `dft_m_hole` | float64 | Signed valence-band m\*. |
|
| 118 |
+
| `dft_band_gap_ev` | float64 | PBE band gap in eV. |
|
| 119 |
+
| `dft_converged` | bool | True if QE SCF + bands converged. (All 24 are True.) |
|
| 120 |
+
| `dft_runtime_seconds` | float64 | Wall-clock QE time. |
|
| 121 |
+
| `unusual_topology` | bool | True if DFT showed negative band curvature (band-inversion signature). |
|
| 122 |
+
| `is_low_positive_semiconductor` | bool | Convenience: `dft_m_min_signed > 0 AND < 0.5 AND dft_band_gap_ev > 0.1`. **True for 0 of 24 records.** |
|
| 123 |
+
|
| 124 |
+
## Methodology
|
| 125 |
+
|
| 126 |
+
The `surrogate_dft_pairs` subset spans three runs of the
|
| 127 |
+
`crystal-rl` pipeline:
|
| 128 |
+
|
| 129 |
+
| `run_id` | Surrogate variant | What changed | Surrogate m\* corr | DFT-validated low-pos. m\* |
|
| 130 |
+
|---|---|---|---|---|
|
| 131 |
+
| `phase7` | Unsigned-m\* (pre Phase-9 fix) | Original 152-dim, 12-element palette | 0.928 | 0 / 8 |
|
| 132 |
+
| `pathb_run1` | Signed-m\*, palette expanded to 16, **bootstrap data accidentally not loaded** (fingerprint-dim mismatch with cached `surrogate_data.npz`) | 156-dim fingerprint, 16-element palette, Sb/Bi/Se/Te pseudopotentials registered | 0.495 | 0 / 8 |
|
| 133 |
+
| `pathb_run3` | Signed-m\*, palette expanded to 16, **bootstrap data loaded** (after zero-padding the cached 152-dim fingerprints to 156-dim via `scripts/regen_bootstrap_for_palette.py`) | as above | 0.768 | 0 / 8 |
|
| 134 |
+
|
| 135 |
+
The cumulative finding is **0 / 24** — the same answer regardless of the
|
| 136 |
+
surrogate's accuracy on its own validation set. The 24 candidates were
|
| 137 |
+
picked by three different surrogate models trained on three different
|
| 138 |
+
data mixes, but the DFT outcome is consistent: surrogate-selected
|
| 139 |
+
low-m\* predictions don't validate.
|
| 140 |
+
|
| 141 |
+
## Source data & collection
|
| 142 |
+
|
| 143 |
+
- **`bootstrap_signed_mstar`** was collected by perturbing the 10 seed
|
| 144 |
+
crystal families (formula edits, lattice scaling, position
|
| 145 |
+
perturbation) and running PBE DFT (Quantum ESPRESSO 7.3.1, SSSP
|
| 146 |
+
Efficiency pseudopotentials, 30 Ry wavefunction cutoff, 4×4×4 k-points
|
| 147 |
+
for SCF, 20-point band path for the m\* extraction). Effective mass
|
| 148 |
+
was extracted from a parabolic fit to the band curvature at extrema
|
| 149 |
+
— sign-preserving. All 794 calculations converged.
|
| 150 |
+
- **`surrogate_dft_pairs`** was collected by running each trained PPO
|
| 151 |
+
agent for 30 deterministic episodes, deduplicating by formula, taking
|
| 152 |
+
the top 8 by surrogate-predicted reward, and DFT-validating each. All
|
| 153 |
+
3 × 8 = 24 calculations converged.
|
| 154 |
+
|
| 155 |
+
## Intended uses
|
| 156 |
+
|
| 157 |
+
- **Train signed-m\* surrogates** without losing the negative-curvature
|
| 158 |
+
examples. The 681 negative records are particularly load-bearing —
|
| 159 |
+
most public datasets remove the sign.
|
| 160 |
+
- **Benchmark RL-discovery pipelines** against a known failure mode.
|
| 161 |
+
If your method produces surrogate predictions that disagree
|
| 162 |
+
systematically with DFT in this same way, you're hitting the same
|
| 163 |
+
gaming dynamic.
|
| 164 |
+
- **Study the surrogate-DFT calibration gap.** The `surrogate_dft_pairs`
|
| 165 |
+
subset is small (24 rows) but each pair is a controlled
|
| 166 |
+
comparison: same fingerprint, same structure, same DFT settings,
|
| 167 |
+
different surrogate.
|
| 168 |
+
- **Cite the negative result.** This dataset is intentionally published
|
| 169 |
+
to make the finding citable rather than letting it die as a side
|
| 170 |
+
comment in a repo README.
|
| 171 |
+
|
| 172 |
+
## Limitations & what this dataset is *not*
|
| 173 |
+
|
| 174 |
+
- This is **not a benchmark of "best low-m\* materials"** — the
|
| 175 |
+
candidate formulas listed in `surrogate_dft_pairs` were chosen by an
|
| 176 |
+
RL agent that turned out to game its surrogate. Treating them as
|
| 177 |
+
recommended materials would invert the intended use.
|
| 178 |
+
- **PBE-level DFT.** All values are PBE outputs from Quantum ESPRESSO
|
| 179 |
+
with SSSP Efficiency pseudopotentials. PBE is known to underestimate
|
| 180 |
+
band gaps and, for some compositions, give qualitatively wrong band
|
| 181 |
+
ordering. Hybrid-functional (HSE06) or GW calculations would shift
|
| 182 |
+
some values significantly. The signed-m\* *sign* is generally robust
|
| 183 |
+
to functional choice; the magnitudes are not.
|
| 184 |
+
- **Small validation cohort.** 24 surrogate-DFT pairs is a strong signal
|
| 185 |
+
for a single project but not large enough to claim a universal law
|
| 186 |
+
about RL-surrogate gaming. We report what we observed across our 3
|
| 187 |
+
runs; we make no claim about every possible surrogate architecture.
|
| 188 |
+
- **Bootstrap structures cluster around 10 seed families.** They are
|
| 189 |
+
not a uniform sample of the periodic table.
|
| 190 |
+
|
| 191 |
+
## Reproducibility
|
| 192 |
+
|
| 193 |
+
- **Code:** [github.com/bshepp/crystal-rl](https://github.com/bshepp/crystal-rl)
|
| 194 |
+
- **Pipeline:** the assembly script for this dataset is
|
| 195 |
+
[`scripts/build_hf_dataset.py`](https://github.com/bshepp/crystal-rl/blob/master/scripts/build_hf_dataset.py).
|
| 196 |
+
- **Run artifacts:** the path-B runs (`pathb_run1`, `pathb_run3`) wrote
|
| 197 |
+
full per-stage logs, surrogate weights, PPO checkpoints, and
|
| 198 |
+
manifests to a private S3 bucket; they are not redistributed here
|
| 199 |
+
because they're bulky and replicable from the code. The
|
| 200 |
+
`surrogate_dft_pairs` table is the distilled scientific output.
|
| 201 |
+
- **Quantum ESPRESSO version:** 7.3.1, built from source. SSSP
|
| 202 |
+
Efficiency pseudopotentials.
|
| 203 |
+
- **Surrogate architecture:** `MultiTaskMLP(156 → [192 × SiLU + LN + Drop] ×
|
| 204 |
+
4 → m\* head + gap head)`, ~142k parameters, trained with two-phase
|
| 205 |
+
protocol (JARVIS+bootstrap then frozen-trunk MP gap fine-tune).
|
| 206 |
+
|
| 207 |
+
## Citation
|
| 208 |
+
|
| 209 |
+
```bibtex
|
| 210 |
+
@misc{crystal_rl_surrogate_dft_gap_2026,
|
| 211 |
+
title = {Crystal-RL: surrogate-vs-DFT effective-mass gap (negative-result dataset)},
|
| 212 |
+
author = {Sheppard, Brian},
|
| 213 |
+
year = {2026},
|
| 214 |
+
url = {https://huggingface.co/datasets/bshepp/rl-surrogate-dft-gap},
|
| 215 |
+
note = {Companion dataset to github.com/bshepp/crystal-rl}
|
| 216 |
+
}
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
## License
|
| 220 |
+
|
| 221 |
+
CC-BY-4.0. Use freely, please cite.
|
data/bootstrap_signed_mstar.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e9f4b545ac1cb913a725626ff58641717bc290bbda5a64d4f853c94de5f49c
|
| 3 |
+
size 73354
|
data/surrogate_dft_pairs.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:051a3e0d34d422f3bd526f69e538a8058181ccd21a7dd2658642ae55d4217461
|
| 3 |
+
size 9532
|