Datasets:
condition stringclasses 12
values | counts list | exposure float64 100 100k | group_ids stringlengths 21 21 | ids stringlengths 31 41 | mask list | nuisance list | nuisance_known bool 1
class | theta list |
|---|---|---|---|---|---|---|---|---|
full_standard | [
1,
0,
0,
0,
1,
2,
2,
1,
5,
1,
1,
0,
3,
4,
0,
1,
3,
2,
2,
1,
1,
3,
4,
0,
2,
3,
2,
1,
1,
2,
1,
5,
3,
0,
0,
1,
2,
3,
4,
1,
3,
1,
1,
1,
1,
5,
1,
1,
0,
2,
1,
2,
0,
4,
2,
2,
0,
4,
2,
1,
3,
5,
0,
1... | 10,000 | rutile:train:00000000 | rutile:train:00000000:full_standard:0 | [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true... | [
null,
null,
null,
null,
null
] | false | [
4.45946061016603,
2.933068043207889
] |
hard_mixed_e100 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 100 | rutile:train:00000000 | rutile:train:00000000:hard_mixed_e100:1 | [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
f... | [
null,
null,
null,
null,
null
] | false | [
4.45946061016603,
2.933068043207889
] |
block50 | [
3,
0,
3,
5,
2,
2,
2,
2,
0,
1,
1,
3,
0,
1,
1,
1,
0,
2,
4,
0,
2,
1,
0,
2,
3,
2,
0,
4,
1,
2,
1,
2,
1,
4,
0,
2,
2,
2,
2,
0,
1,
1,
1,
0,
2,
2,
0,
2,
1,
1,
1,
1,
2,
2,
2,
2,
2,
0,
1,
3,
3,
3,
0,
0... | 10,000 | rutile:train:00000001 | rutile:train:00000001:block50:0 | [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true... | [
null,
null,
null,
null,
null
] | false | [
4.535494360816778,
3.050385889637859
] |
hard_paired_e100 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 100 | rutile:train:00000001 | rutile:train:00000001:hard_paired_e100:1 | [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
f... | [
null,
null,
null,
null,
null
] | false | [
4.535494360816778,
3.050385889637859
] |
block30 | [
1,
0,
0,
0,
1,
1,
3,
1,
0,
2,
3,
2,
5,
2,
0,
5,
2,
0,
2,
0,
3,
2,
1,
1,
1,
2,
2,
1,
3,
5,
1,
1,
0,
5,
0,
2,
2,
0,
2,
1,
6,
1,
3,
3,
5,
1,
0,
1,
3,
2,
1,
1,
2,
2,
1,
0,
3,
4,
3,
3,
1,
2,
1,
1... | 10,000 | rutile:train:00000002 | rutile:train:00000002:block30:0 | [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true... | [
null,
null,
null,
null,
null
] | false | [
4.450274297547432,
3.0927035624219648
] |
hard_paired_e1000 | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 1,000 | rutile:train:00000002 | rutile:train:00000002:hard_paired_e1000:1 | [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
f... | [
null,
null,
null,
null,
null
] | false | [
4.450274297547432,
3.0927035624219648
] |
full_high | [23,23,28,18,25,30,22,21,24,28,19,18,30,28,20,24,30,24,33,22,29,27,27,25,22,28,25,22,16,31,27,25,31,(...TRUNCATED) | 100,000 | rutile:train:00000003 | rutile:train:00000003:full_high:0 | [true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED) | [
null,
null,
null,
null,
null
] | false | [
4.791570868444437,
3.085175300363965
] |
hard_paired_e100 | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | 100 | rutile:train:00000003 | rutile:train:00000003:hard_paired_e100:1 | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [
null,
null,
null,
null,
null
] | false | [
4.791570868444437,
3.085175300363965
] |
full_standard | [1,4,2,1,2,1,1,0,2,1,2,2,3,1,1,2,1,2,1,1,2,2,0,2,0,2,0,2,2,0,0,0,2,1,1,1,2,0,2,3,0,4,0,1,1,1,4,2,0,1(...TRUNCATED) | 10,000 | rutile:train:00000004 | rutile:train:00000004:full_standard:0 | [true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true(...TRUNCATED) | [
null,
null,
null,
null,
null
] | false | [
4.37330536350905,
2.971248988310883
] |
hard_paired_e100 | [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED) | 100 | rutile:train:00000004 | rutile:train:00000004:hard_paired_e100:1 | [false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,fal(...TRUNCATED) | [
null,
null,
null,
null,
null
] | false | [
4.37330536350905,
2.971248988310883
] |
PXRD-LatticeBench
A synthetic powder X-ray diffraction (PXRD) benchmark for inferring continuous lattice parameters under noise, missing observations, and uncertain instrument parameters. The crystal prototype is known; the target is (a, c) in angstroms.
Release: v0.2-pilot. All existing pilot data, including all train, validation, and test labels, are published here. This is an open evaluation dataset, not a hidden-label leaderboard. The larger main preset has not been released. There are no real experimental spectra, trained checkpoints, or baseline performance claims in this release.
Code and evaluator · Protocol · Download guide
Load with Hugging Face datasets
from datasets import load_dataset
ds = load_dataset(
"smgjch/PXRD-LatticeBench",
"rutile-blind-v01-v02",
revision="v0.2-pilot",
)
print(ds) # train: 10000, validation: 6144, test: 8704
train = ds["train"].with_format("numpy")
example = train[0]
counts, mask, theta = example["counts"], example["mask"], example["theta"]
Tested with datasets==3.6.0, pyarrow==19.0.1, and Python 3.11. Use a full Hub commit in revision to pin an immutable snapshot. streaming=True is also supported by the Parquet layout. Each configuration has explicitly named train / validation / test splits; all three include theta labels.
Configurations and sizes
There are 12 configurations: 2 prototypes (rutile, zno) × 2 tracks (blind, calibrated) × 3 suites (v01, v02, v01-v02). Every configuration has 5000 / 512 / 512 independent train / validation / test structures.
| Suite | Train observations | Validation observations | Test observations |
|---|---|---|---|
| v0.1 | 10000 | 3072 | 5632 |
| v0.2 | 10000 | 3072 | 3072 |
| v0.1+v0.2 | 10000 | 6144 | 8704 |
The release stores 238,784 observation rows across these views. This is not the number of independent crystals: versions and tracks intentionally share structures and some observations. Structure groups are disjoint between train, validation, and test. Do not concatenate all configurations and randomly split rows.
| Configuration | Task | Track | Suite |
|---|---|---|---|
rutile-blind-v01 |
rutile | blind | v0.1 |
rutile-blind-v01-v02 |
rutile | blind | v0.1+v0.2 |
rutile-blind-v02 |
rutile | blind | v0.2 |
rutile-calibrated-v01 |
rutile | calibrated | v0.1 |
rutile-calibrated-v01-v02 |
rutile | calibrated | v0.1+v0.2 |
rutile-calibrated-v02 |
rutile | calibrated | v0.2 |
zno-blind-v01 |
zno | blind | v0.1 |
zno-blind-v01-v02 |
zno | blind | v0.1+v0.2 |
zno-blind-v02 |
zno | blind | v0.2 |
zno-calibrated-v01 |
zno | calibrated | v0.1 |
zno-calibrated-v01-v02 |
zno | calibrated | v0.1+v0.2 |
zno-calibrated-v02 |
zno | calibrated | v0.2 |
The union training set retains one v0.1 and one v0.2 observation per structure, preserving the 10000-observation budget. Union validation and test reuse the exact observations from the component suites. Test includes 6 ID conditions in v0.1, 6 hard ID conditions in v0.2, and 5 additional v0.1 OOD/stress conditions. The primary union score assigns 50% weight to each suite's ID domain; OOD/stress results are reported separately.
Columns
| Column | Type / meaning |
|---|---|
ids |
Observation ID; preserve for prediction alignment |
group_ids |
Structure ID for grouped checks and bootstrap; not an inference feature |
condition |
Evaluation stratum; not a standard model input |
counts |
uint32[4096], observed Poisson counts; masked bins equal zero |
mask |
bool[4096]; True means observed |
exposure |
float64, public exposure scale; not total photon count or SNR |
nuisance |
float64[5]: FWHM (degrees), zero shift (degrees), intensity scale, background density (per degree), background slope |
nuisance_known |
bool; True for calibrated, False for blind |
theta |
float64[2], target lattice parameters (a,c) in angstroms |
The common 2θ axis is numpy.linspace(10, 90, 4096) degrees. Wavelength: Cu Kα₁, 1.5406 Å. Blind nuisance values are intentionally all NaN. These are not missing target labels. All permitted model inputs and normalization rules are defined in the protocol.
Complete physical configuration, exact axis, condition definitions, nuisance priors, original file hashes, and dataset IDs are in metadata/<config>/manifest.json. The corresponding prototype.cif contains the idealized prototype; these are generated prototypes rather than experimental database structures. Reference (a,c) is (4.5937, 2.9587) Å for rutile and (3.2495, 5.2069) Å for ZnO. Each parameter has an independent uniform ±5% prior.
Tasks and simulation
The forward simulator uses pymatgen XRD peak calculations, Gaussian peak broadening, background and Poisson counting noise, with explicit missing-observation masks. v0.1 also contains a pseudo-Voigt OOD condition, broadened and missing-peak OOD conditions, and stress controls. v0.2 uses fixed narrow angular windows with exposure scales 100/300/1000 and independently sampled instrument parameters. Rutile windows: 33–39° or 33–39° plus 52–57°. ZnO windows: 45–50° or 33–37° plus 45–50°.
For v0.2, FWHM is Uniform(0.15,0.60)°, shift Uniform(-0.10,0.10)°, intensity scale LogUniform(0.7,1.3), background density Uniform(0.003,0.02)/°, and background slope Uniform(-0.4,0.4). Its calibrated and blind tracks share observed counts and masks; calibrated reveals instrument values while blind withholds them. v0.1 retains its historical nuisance rules. The union does not have a single shared nuisance prior: consult nuisance_priors_by_domain and the condition metadata.
The benchmark measures fixed-prototype lattice inference, not unknown-phase identification or full crystal-structure generation. Narrow windows create incomplete information and parameter coupling but do not certify multimodal posteriors for every example. Real-data generalization and baseline rankings have not been established. The shared physics candidate scorer currently supports calibrated only; raw point/posterior scoring also supports blind.
Canonical NPZ download and evaluation
The Parquet files are lossless table views. For the official evaluator, use the original NPZ packages in archives/, which preserve frozen file bytes, manifests, dataset IDs, and prediction alignment:
git clone https://github.com/smgjch/xrd_inverse.git
cd xrd_inverse
python -m pip install -e '.[hub]'
xrdbench download --task rutile --track blind --suite v0.1+v0.2 \
--output data/rutile/blind/v0.1+v0.2
# Or download all 12 complete releases:
xrdbench download --all --output data
Each archive contains public/train, public/val, public/test, and private/test plus manifests and the prototype. val means validation. private/ is a historical directory name only: its test labels are public in this release. No access token is required to download.
publication.json lists each archive and Parquet path, SHA-256, byte size, split counts, and original dataset ID. SHA256SUMS provides checksums for published content. Every original file hash was checked; every row and field of all 36 Parquet files was compared against the NPZ arrays, including all test targets. The downloader validates archive integrity, safe extraction, original manifests and file checksums.
Use only train labels for fitting and validation for model/parameter selection. Test labels are for final evaluation. Do not use theta, condition, or group_ids as inference features, or expose hidden nuisance values in the blind track. Keep versions/tracks separate and preserve structure-level splits. Report pilot results as pilot results.
Provenance and license
Data generated with xrdbench 0.2.0, Python 3.11.2, pymatgen 2024.11.13, NumPy 1.26.4, SciPy 1.14.1, spglib 2.5.0, and monty 2024.10.21. Exact generator fingerprints and any metadata-revision parent IDs are retained in the manifests. The initial benchmark source release is GitHub commit b9c2cc751fc81cb5ef00580d51f836919746cf5e; subsequent download/evaluator updates do not change the data.
License: Apache-2.0, preserving the dataset repository's selected license. No associated paper or DOI is claimed at this stage; cite the dataset repository, release/commit, configuration, and dataset ID for reproducibility.
中文说明:本次公开发布现有完整 pilot 的 12 个配置,明确区分训练、验证和测试,包含全部测试标签。private/test 仅沿用历史目录名;测试标签不能用于训练或调参。GitHub 提供统一下载、评分与 v0.1 / v0.2 / 联合汇总工具,当前发布不含已训练 baseline 成绩。
- Downloads last month
- -