Skip to content

Menu

WorksComputer Science

PXRD-Bench: How Close Are We to Determining Crystal Structures from Powder Diffraction?

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_ghfwbh8b. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Determining crystal structures from powder X-ray diffraction (PXRD) would enable routine characterization of newly synthesized materials, including those absent from reference databases. Generative models offer a promising approach, but existing evaluations remain fragmented and largely assume single-phase samples with known composition. To fill this gap, we introduce PXRD-Bench, a unified benchmark that extends evaluation to unknown per-element atom counts and recovery of both structures in two-phase mixtures. It provides approximately 4.1 million training structures with simulated PXRD, tests generalization to unseen compositions and structural prototypes, and evaluates recovery from experimental PXRD after excluding structurally matching training entries. To provide a strong reference baseline, we also introduce Bragglite, a PXRD-to-structure model developed through a systematic study of PXRD modeling choices. It achieves a 44.2% Top-1 match rate on experimental RRUFF patterns with known composition, 24.6% above the strongest prior baseline. Further analysis yields several key findings: some models fail to benefit from experimental PXRD, while generalization to unseen structural prototypes and recovery from two-phase mixtures remain challenging. Together, our benchmark, systematic studies, and Bragglite clarify the capabilities and limitations of current PXRD-to-structure models.

Introduction

Inferring atomic structures from experimental measurements is central to understanding material properties and guiding materials discovery [22]. Powder X-ray diffraction (PXRD) is widely used to characterize crystalline materials because it is relatively inexpensive, broadly applicable, and does not require large, high-quality single crystals [7, 14]. Reliable structure determination from PXRD would enable routine characterization of newly synthesized materials, including in high-throughput experiments and self-driving laboratories.

However, averaging diffraction over differently oriented crystallites compresses three-dimensional structural information into a one-dimensional pattern, causing peak overlap and allowing different structures to yield similar patterns [4, 14, 28]. Noise, peak broadening, intensity distortion, and contributions from multiple crystalline phases further complicate interpretation [1, 9] (Li et al. 2026). Conventional methods combine crystallographic analysis, structure search, and refinement, often requiring substantial expert guidance [4, 14].

Generative models offer a promising approach by predicting lattice parameters and atomic positions conditioned on PXRD patterns and available chemical information [25, 27] (Li et al. 2025; Li et al. 2026). Training on known structures paired with simulated PXRD provides abundant data but requires transfer to experimental patterns. Recent work has advanced PXRD encoders and conditional generators (Li et al., 2025), post-generation refinement [25] (Li et al. 2025), and representations and augmentation strategies for simulation-to-experiment transfer [27] (Li et al. 2026).

Despite these advances, the lack of a common benchmark makes it difficult to assess progress and identify remaining challenges. Differences in datasets, chemical inputs, and refinement procedures hinder direct comparison and obscure which design choices drive improvements. Existing evaluations also cover a limited range of settings. Most assume single-phase samples with known composition, leaving recovery with unknown per-element atom counts or overlapping signals from multiple phases underexplored. Furthermore, testing unseen compositions does not establish whether models can recover unfamiliar structural arrangements, since the same structural prototypes may remain represented in training.

Contribution. In this paper, we introduce PXRD-Bench, a unified benchmark for PXRD-based structure determination. The focus of our new benchmark is twofold:

  • We construct a large-scale corpus of 4.2 million crystal structures paired with simulated PXRD patterns. For experimental evaluation, we curate a benchmark subset from opXRD and adopt the existing RRUFF benchmark, enabling systematic assessment of simulation-to-experiment transfer. We additionally construct simulated two-phase mixtures from thermodynamically plausible phase pairs and evaluate two-phase recovery on experimental GALAXI mixtures.

  • We provide leakage-controlled evaluation protocols that hold out entire compositions, structural prototypes, or composition–prototype pairs. To evaluate models under real-world scenarios, we extend evaluation beyond single-phase samples with known composition to (1) element-set conditioning and (2) two-phase structure recovery.

We further introduce Bragglite as a strong baseline for PXRD-based structure determination. Bragglite incorporates recent advances in CSP architectures and achieves state-of-the-art performance in our benchmark. Using this architecture, we systematically study how PXRD representations, augmentation strategies, and training-data scale and distribution affect structure recovery and simulation-to-experiment transfer.

The combination of our new benchmark and systematic studies reveals that current PXRD-to-structure models remain limited in exploiting experimental diffraction and recovering unfamiliar structural prototypes or multiple phases. For example, several existing PXRD-conditioned models underperform DiffCSP on experimental RRUFF patterns, even though DiffCSP receives chemical composition but no PXRD. We observe that data augmentation can improve experimental recovery, but its benefits vary across datasets and may come at the cost of accuracy on simulated patterns. Models also struggle substantially more with unseen structural prototypes than with unseen compositions.

Related Work

PXRD-to-structure models. Prior work typically formulates structure determination from PXRD as crystal generation conditioned on diffraction patterns and chemical information [25, 27] (Li et al. 2025; Li et al. 2026). Existing methods vary in training data, chemical inputs, and post-generation refinement procedures, complicating direct comparison. Most assume known primitive-cell composition [25] (Li et al. 2025; Li et al. 2026), while XRDiff additionally considers element-set conditioning with a known atom count [27]. Prior evaluations also largely focus on in-distribution or composition-level generalization, leaving unseen structural prototypes underexplored. We benchmark models under controlled training data and evaluation settings with held-out compositions, structural prototypes, and composition–prototype pairs.

Transfer to experimental PXRD. Because PXRD-to-structure models are typically trained on simulated PXRD, recent work has explored representations designed for experimental robustness and experiment-inspired augmentation for transfer to measured patterns [25, 27] (Li et al. 2026). However, these strategies have been studied under different models, training settings, and evaluation protocols, including different experimental PXRD benchmarks, while validation and test sets are often not separated. We compare representation and augmentation choices under a common protocol, use separate experimental validation and test sets, and exclude training structures that match the experimental references.

Multiphase PXRD analysis. Prior learning-based work on multiphase PXRD has focused on phase identification, i.e., determining which known crystalline phases are present in a mixture, or on separating mixed patterns into phase-specific components. PhaseDifformer [11] and XDecomposer [5] learn to decompose mixed PXRD signals, while GALAXI [31] addresses multiphase identification from experimental PXRD. These approaches do not directly recover the atomic structures of all constituent phases. We extend multiphase analysis to two-phase structure recovery by generating a crystal structure for each decomposed component. To evaluate transfer to the measured pattern, we use GALAXI’s multiphase experimental PXRD dataset.

Benchmark design

We design PXRD-Bench around three complementary directions: practically motivated task extensions, simulation-to-experiment transfer, and generalization beyond the training distribution. Figure 1 summarizes these tasks and evaluation axes.

Figure 1. Overview of benchmark tasks and evaluation settings. Three tasks recover crystal structures from PXRD under known composition, element set, and two-phase conditions. Models trained on simulated PXRD are evaluated on experimental RRUFF and opXRD patterns. Generalization splits test unseen composition–prototype pairs, new compositions, and new structural prototypes.

Task formulations

We consider three PXRD-based structure determination tasks: single-phase recovery with known composition, single-phase recovery with element-set conditioning [27], and two-phase recovery. The latter two settings reflect cases where compositional analysis reveals the elements without determining stoichiometry or where a powder sample contains multiple crystalline phases.

We formulate each PXRD inversion task as conditional generation of plausible crystal structures. Let C=(A,F,L)\mathcal{C} = (\mathbf{A}, \mathbf{F}, \mathbf{L}) denote a primitive-cell crystal structure with NN atoms, where A=(A1,…,AN)\mathbf{A} = (A_1, \ldots, A_N) lists their element types, F∈[0,1)N×3\mathbf{F} \in[0,1)^{N \times3} gives their fractional coordinates, and L∈R3×3\mathbf{L} \in\mathbb{R}^{3 \times3} is the lattice matrix. For each element zz, let cz=∣{i∈{1,…,N}:Ai=z}∣c_z = |\{i \in\{1, \ldots, N\}: A_i = z\}| be its primitive-cell atom count. We call c=(cz)z\mathbf{c} = (c_z)_z the composition and E={z:cz>0}\mathcal{E} = \{z : c_z > 0\} the element set. Thus c\mathbf{c} specifies the multiplicity of every element, whereas E\mathcal{E} specifies only which elements are present. We denote the observed PXRD profile by x\mathbf{x}.

Single-phase PXRD tasks. In the known-composition setting, the model receives the single-phase PXRD profile x\mathbf{x} and composition c\mathbf{c}. The atom types are thereby fixed up to their ordering, and the model generates the remaining structural degrees of freedom as (F,L)∼pθ(⋅∣x,c)(\mathbf{F}, \mathbf{L}) \sim p_\theta(\cdot\mid\mathbf{x}, \mathbf{c}).

In the element-set setting [27], the model instead receives E\mathcal{E} and the primitive-cell atom count NN, but not the element counts c\mathbf{c}. It generates C∼pθ(⋅∣x,E,N)\mathcal{C} \sim p_\theta(\cdot\mid\mathbf{x}, \mathcal{E}, N), requiring it to infer the element multiplicities, fractional coordinates, and lattice.

Multiphase PXRD task. For a powder sample containing two crystalline phases, we aim to recover both constituent structures from a mixed PXRD profile. We provide mixture-level rather than phase-specific chemical information: the profile xmixx_{\mathrm{mix}} and the element set Emix=E1∪E2\mathcal{E}_{\mathrm{mix}} = \mathcal{E}_1 \cup\mathcal{E}_2, where Ei\mathcal{E}_i is the element set of phase CiC_i. We additionally provide the primitive-cell atom counts N1N_1 and N2N_2, but neither phase’s composition cic_i. The task is to recover {C1,C2}∼pθ(⋅∣xmix,Emix,N1,N2)\{C_1, C_2\} \sim p_\theta(\cdot\mid x_{\mathrm{mix}}, \mathcal{E}_{\mathrm{mix}}, N_1, N_2). The model must therefore determine which elements belong to each phase, their multiplicities, and both phases’ fractional coordinates and lattices.

Single-phase PXRD benchmarks

For the single-phase benchmarks, we evaluate simulation-to-experiment transfer and generalization to unseen compositions and structural prototypes. We support these evaluations with a large simulated PXRD–structure corpus, controlled held-out splits, and experimental PXRD datasets.

Simulated PXRD dataset. We construct a corpus of about 4.2 million structures from MP (Jain et al. [12]; Horton et al. [10]), Alexandria (Cavignac et al. [2]), OQMD (Kirklin et al. [16]), and AFLOW/ AFLUX (Curtarolo et al. [3]; Rose et al. [26]), each paired with a simulated PXRD profile. Preprocessing includes energy-based filtering at 100 meV/atom where energy-above-hull values are available, structural validation, primitive-cell conversion, and cross-source deduplication. The resulting corpus spans all crystal systems and a broad range of elements, with crystal-system, elemental, and element-pair distributions summarized in Figure 2. Full preprocessing details and additional statistics are provided in Appx. A.1.

Figure 2. Coverage of PXRD-Bench’s simulated structure/PXRD corpus. (a) Structures containing each element (%); (b) element-pair frequencies normalized by total pair occurrences; (c) deduplicated source shares; (d) crystal systems; and (e) primitive-cell atom counts.

Held-out split design. We construct one in-distribution (IID) and three out-of-distribution (OOD) splits, all structure-disjoint from training. Composition denotes the reduced composition, i.e., the simplest integer ratio of constituent atom counts, and a structural prototype is defined by the space group and species-anonymized Wyckoff-orbit pattern. We target approximately 20K samples each for validation and testing in every split.

  • Pair-OOD: Specific composition–prototype pairs are held out, while both the composition and prototype remain represented in training. This tests generalization to unseen combinations of familiar compositions and prototypes.

  • Composition-OOD: Entire compositions are held out from training, testing generalization to unseen chemical compositions.

  • Prototype-OOD: Entire structural prototypes are held out across all compositions, testing generalization to unseen structural prototypes.

Experimental PXRD datasets. To assess simulation-to-real transfer, we use 148 measured RRUFF patterns curated by Crystalyze ([25, 17]), reserving 48 for validation and 100 for testing. We use the validation set to select PXRD representation and augmentation settings. Additionally, we curate 123 measured profiles paired with structures from opXRD ([9]). Among samples satisfying our benchmark constraints, we use 40 for validation and 83 for testing. To prevent data leakage, we exclude training structures that structurally match any reference structure in either experimental dataset.

Structural matching without refinement. Prior work varies in post-generation refinement and structural matching criteria, complicating direct model comparisons. We therefore evaluate unrefined predictions using pymatgen’s StructureMatcher ([23]) with tolerances (ltol,stol,angle_tol)=(0.2,0.3,5∘)(\mathrm{ltol}, \mathrm{stol}, \mathrm{angle\_tol}) = (0.2, 0.3, 5^\circ), stricter than the more permissive (0.3,0.5,10∘)(0.3, 0.5, 10^\circ) commonly used in the literature ([13]). These stricter criteria help avoid accepting distorted structures or structures with different space groups ([33] (Martirossyan et al. 2025)). Under this protocol, we report top-kk match rates for k∈{1,20}k \in\{1, 20\}, where a target is considered recovered if at least one of the kk candidates matches the reference structure. Metric details are provided in Appx. A.3.

Multiphase PXRD benchmark

For the multiphase benchmark, we construct a simulated two-phase dataset for training and controlled evaluation and additionally evaluate on experimental mixtures.

Multiphase PXRD dataset. We construct a separate two-phase benchmark based on MP-20. Within binary metallic chemical systems, we use the corresponding phase diagrams to select thermodynamically plausible phase pairs and generate mixtures at multiple relative phase fractions. We retain equilibrium or near-hull assemblages within 50 meV/atom of the convex hull. For each mixture, we combine the constituent PXRD profiles by weighted superposition using Rietveld scale factors, followed by maximum-intensity normalization. We apply this procedure separately within the original MP-20 train, validation, and test splits, yielding 100,798 training, 12,418 validation, and 11,848 test mixtures. Full construction details are provided in Appx. A.2.

Experimental multiphase PXRD dataset. To assess simulation-to-experiment transfer, we use 21 test samples from GALAXI’s impurity-phase experiments ([31]). We select this subset because its primary–secondary phase mixtures reflect realistic multiphase outcomes of synthesis.

Multiphase recovery evaluation. We use the same structural matching criterion as in the single-phase benchmark. For each phase, the model generates kk candidates, and we report dominant-, minor-, and all-phase top-kk match rates for k∈{1,20}k \in\{1, 20\}. A sample is counted as an all-phase top-kk match only if both constituent phases are recovered within their respective kk candidates.

Bragglite: A baseline for PXRD-to-structure generation

We introduce Bragglite, a PXRD-to-structure reference baseline resulting from our systematic study of PXRD representation, encoding, and augmentation choices. Our model builds on Crystalite ([6]), a diffusion Transformer with pair-geometry attention biases, and adds a Transformer PXRD encoder to condition on diffraction. We describe the PXRD representation, conditioning, and augmentation used in Bragglite; full architecture details are provided in Appx. C.

PXRD representation and conditioning

Following prior peak-based approaches ([27] (Li et al. 2026)), we represent each PXRD pattern as detected peaks x={pi}i=1K\mathbf{x} = \{p_i\}_{i=1}^{K}, with each peak described by its position, intensity, width, and prominence.

Peak position representation. PXRD peak positions provide information about the lattice parameters. They are conventionally expressed in terms of the diffraction angle 2θ2\theta, which depends on both crystal structure and X-ray wavelength λ\lambda. We also consider the wavelength-independent interplanar spacing d=λ/(2sin⁡θ)d = \lambda/(2\sin\theta) and scattering-vector magnitude q=4πsin⁡θ/λ=2π/dq = 4\pi\sin\theta/\lambda= 2\pi/d. We compare 2θ2\theta, dd, and qq, and use qq by default based on our ablation. For 2θ2\theta models, we convert each pattern to a canonical wavelength before extracting peaks to remove variation due to measurement wavelength.

Peak features. Peak intensities depend on the atomic species and their arrangement within the unit cell. Because the absolute intensity scale varies with experimental conditions, we normalize each profile by its maximum intensity and use relative peak intensities. We additionally use peak prominence and width. Prominence measures how strongly a peak stands out from its local background and can help when measured patterns contain background scattering or noise. Peak width captures broadening and can indicate uncertainty in peak localization when peaks are poorly resolved.

Peak encoding. To provide a richer representation of peak position, we encode qq using sinusoidal Fourier features with 16 logarithmically spaced frequencies. We embed the base peak features and Fourier features separately and sum the resulting embeddings to obtain the peak embedding.

PXRD conditioning. We retain up to 128 highest-intensity peaks and encode them with a Transformer into a profile-level PXRD embedding. For in-context conditioning, we project this embedding to the Crystalite hidden dimension and replicate it across eight context tokens with learnable positional embeddings. The context, atom, and lattice tokens are jointly processed by the Crystalite Transformer.

PXRD augmentation

To improve transfer from simulated to experimental PXRD, we augment simulated PXRD during training to capture common measurement distortions. Starting from simulated Bragg reflections, we first apply reflection-level augmentations and then construct and augment a dense diffraction profile. Figure 3 illustrates the full pipeline. Exact augmentation definitions, sampling distributions, and hyperparameters are provided in Appx. C.3. After augmentation, we redetect peaks from the dense profile and use their positions, intensities, widths, and prominences as model input.

Figure 3. Schematic illustration of PXRD profile augmentations. Bragg reflections derived from a crystal structure are perturbed by weak-peak removal, position jitter, peak-wise intensity scaling, a common angular shift, pseudo-Voigt broadening, background addition, and Gaussian noise. Blue denotes perturbed signals and gray denotes reference signals.

Reflection-level augmentations. We randomly remove weak reflections, independently jitter their positions, and rescale their intensities to model missing peaks, local position errors, and variations in relative peak strength. To model systematic angular calibration errors, we additionally apply a shared zero shift to all reflections.

Profile-level augmentations. We convert the perturbed Bragg reflections into a dense diffraction profile using pseudo-Voigt peak shapes ([30]). The peak width varies with diffraction angle, with additional randomization to capture variation in peak broadening. We then add a smooth background and Gaussian noise to model background scattering and measurement noise.

Experiments

Experiments

We first present the single-phase benchmark results (§ 6.1), then analyze simulation-to-real transfer in more detail (§ 6.2), and finally evaluate two-phase structure recovery on simulated and experimental mixtures (§ 6.3).

Single-phase benchmark results

We evaluate single-phase structure recovery under the known-composition and element-set settings defined in § 3.1. We benchmark models trained on PXRD-Bench and additionally report MP-20 (Jain et al., [12]; Jiao et al., [13]) results for reference. We compare Bragglite with Crystalyze (Riesel et al., [25]), PXRDGen (Li et al., 2025), RealPXRD-Solver (Li et al., 2026), and XRDiff (Segal et al., [27]) under controlled training data and evaluation settings, and also include DiffCSP (Jiao et al., [13]) and Crystalite (Hadži Veljković et al., [6]) as composition-only baselines without PXRD input. Table 1 reports match rates on the simulated in-distribution test sets and on experimental RRUFF and opXRD patterns. For opXRD, MP-20-trained models are evaluated only on ≤20\leq20-atom structures, while PXRD-Bench-trained models use the full set. Detailed baseline configurations and experimental settings appear in Appx. D.

DatasetModelSimulated PXRD Top-1Simulated PXRD Top-20RRUFF Top-1RRUFF Top-20opXRD Top-1opXRD Top-20
Chemical input: exact stoichiometry
MP-20PXRDGen54.7577.9930.80±3.2730.80 \pm3.2757.00±1.4157.00 \pm1.4130.00±1.9630.00 \pm1.9636.43±0.9836.43 \pm0.98
RealPXRD-Solver56.3580.6127.80±4.7627.80 \pm4.7651.20±1.1051.20 \pm1.1027.14±0.8027.14 \pm0.8036.07±0.8036.07 \pm0.80
XRDiff55.1078.1117.80±0.8417.80 \pm0.8439.80±0.8439.80 \pm0.8421.07±3.8721.07 \pm3.8731.43±2.0431.43 \pm2.04
Crystalyze29.3248.035.00±1.585.00 \pm1.5814.80±1.4814.80 \pm1.4811.07±1.4911.07 \pm1.4917.86±1.7917.86 \pm1.79
DiffCSP (no PXRD)52.1777.2831.60±2.7031.60 \pm2.7057.00±2.1257.00 \pm2.1223.21±1.7923.21 \pm1.7936.43±0.9836.43 \pm0.98
Crystalite (no PXRD)61.4278.6439.20±2.3939.20 \pm2.3952.60±1.1452.60 \pm1.1426.43±0.8026.43 \pm0.8041.43±1.9641.43 \pm1.96
Bragglite (Ours)70.8582.5952.40±0.8952.40 \pm0.8962.60±0.8962.60 \pm0.8932.14±2.8232.14 \pm2.8242.50±0.8042.50 \pm0.80
Chemical input: element set + N
XRDiff34.2946.1315.00±1.5815.00 \pm1.5822.40±0.5522.40 \pm0.559.64±0.989.64 \pm0.9814.64±0.8014.64 \pm0.80
Bragglite (Ours)47.4871.5138.20±2.4938.20 \pm2.4952.80±1.9252.80 \pm1.9223.57±1.4923.57 \pm1.4928.21±1.4928.21 \pm1.49
PXRD-BenchChemical input: exact stoichiometry
PXRDGen62.5088.900.00±0.000.00 \pm0.003.20±1.483.20 \pm1.480.96±0.540.96 \pm0.547.71±1.837.71 \pm1.83
RealPXRD-Solver60.4589.5019.60±2.1919.60 \pm2.1948.00±1.2248.00 \pm1.2217.59±1.8317.59 \pm1.8327.47±1.7927.47 \pm1.79
XRDiff48.5883.428.20±3.358.20 \pm3.3537.60±3.2137.60 \pm3.219.16±3.149.16 \pm3.1424.10±0.8524.10 \pm0.85
Crystalyze13.9236.260.60±0.550.60 \pm0.552.60±1.342.60 \pm1.340.72±0.660.72 \pm0.663.13±1.083.13 \pm1.08
Crystalite (no PXRD)30.5475.4916.20±4.0916.20 \pm4.0957.80±2.6857.80 \pm2.6811.08±1.5711.08 \pm1.5731.57±3.5531.57 \pm3.55
Bragglite (Ours)76.4893.8144.20±2.4944.20 \pm2.4969.20±2.0569.20 \pm2.0523.61±1.0823.61 \pm1.0838.80±1.3238.80 \pm1.32
Chemical input: element set + N
XRDiff22.4549.782.20±1.482.20 \pm1.4813.80±1.4813.80 \pm1.486.51±1.836.51 \pm1.8311.57±1.0811.57 \pm1.08
Bragglite (Ours)56.5381.5936.00±2.1236.00 \pm2.1258.80±1.3058.80 \pm1.3015.18±0.6615.18 \pm0.6624.58±2.0224.58 \pm2.02

Table 1. Table 1 Main benchmark results. Top-KK match rates (%) on simulated and experimental PXRD datasets. Results on experimental datasets are reported as mean ±\pm standard deviation over five sampling seeds. Bold and underlined values indicate the best and second-best means, respectively, within each dataset and chemical-input setting.

Bragglite outperforms baselines across all settings. In the known composition setting, Bragglite achieves higher match rates than existing baselines on both simulated and experimental PXRD across the two training datasets. It also outperforms XRDiff under element-set conditioning.

PXRD-conditioned models can underperform CSP baselines. On MP-20 and RRUFF, Crystalite achieves higher Top-1 match rates than existing PXRD-conditioned baselines. This suggests that a strong composition prior alone often recovers the reference structure when polymorph ambiguity is limited. In contrast, Crystalite performs substantially worse on the polymorph-rich PXRD-Bench, where PXRD is needed to distinguish structures sharing the same composition.

Existing baselines struggle with experimental PXRD. To isolate the contribution of PXRD conditioning from backbone differences, we train a composition-only DiffCSP model with the same backbone and model size as the existing baselines. On RRUFF, this CSP-only model matches or outperforms its PXRD-conditioned counterparts, suggesting that PXRD representations optimized on simulated data do not transfer robustly to experimental measurements.

Generalization beyond training distribution. We evaluate models on held-out splits with unseen composition–prototype pairings, chemical compositions, and structural prototypes. As shown in Table 2, performance remains strong on unseen pairings and compositions but drops substantially on unseen structural prototypes. This indicates that generalization to unseen pairings and compositions is relatively tractable when corresponding structural prototypes are represented during training, whereas generalization to unseen structural prototypes remains challenging. To assess whether recovery of unseen structural prototypes is driven solely by the learned crystal structure prior, we compare Bragglite with its composition-only counterpart, Crystalite. Despite low absolute match rates, Bragglite substantially outperforms the CSP baseline, indicating that PXRD provides structure-specific information beyond the composition prior even for unseen structural prototypes.

ModelPair OOD Top-1Pair OOD Top-20Prototype OOD Top-1Prototype OOD Top-20Composition OOD Top-1Composition OOD Top-20
Chemical input: exact stoichiometry
PXRDGen62.4089.987.5533.9763.8089.61
RealPXRD-Solver58.9488.883.3117.5262.9090.66
XRDiff47.4883.872.3618.5150.1384.16
Crystalyze16.0639.530.583.1914.0036.91
Crystalite (no PXRD)16.8169.751.3911.1227.3073.32
Bragglite (Ours)75.2694.1812.3735.8977.2794.55
Chemical input: element set + NN
XRDiff21.8949.570.594.4924.0251.39
Bragglite (Ours)54.4680.014.0813.8657.2782.13

Table 2. Out-of-distribution generalization. Top-KK match rates (%) on the OOD simulated PXRD splits of PXRD-Bench, grouped by chemical input. Bold indicates the best result within each setting.

Data scaling experiments. We train Bragglite on progressively larger subsets of PXRD-Bench to study the effect of simulated training scale. As shown in Figure 4, Top-1 match rates improve across all simulated splits and on experimental RRUFF as data scale increases. The gains diminish at larger scales but remain consistent across simulated and experimental evaluations.

Figure 4. Data scaling. Performance vs. training data fraction.

Understanding sim-to-real transfer

We study how PXRD representation and augmentation affect simulation-to-real transfer while fixing the model architecture and training configuration. Unless otherwise stated, we train Bragglite on MP-20 for 200K optimizer steps and vary only the PXRD representation or augmentation strategy. We focus here on the effects of PXRD augmentation and training distribution, while additional ablations of PXRD representations are provided in Appx. B.1.

Ablation on PXRD augmentation. We progressively add profile-augmentation components to assess their contributions. As shown in Figure 5a, training without augmentation achieves high Top-1 accuracy on simulated PXRD but transfers poorly to experimental RRUFF. Adding augmentations consistently improves RRUFF performance while generally reducing simulated accuracy, indicating a trade-off between simulation performance and experimental robustness. Furthermore, individual components vary substantially in effectiveness across experimental datasets, indicating that augmentations effective for one dataset may not transfer equally well to others. Developing sim-to-real augmentations that generalize across diverse experimental artifacts and conditions therefore remains important.

Figure 5. Analysis of PXRD augmentation and simulation-to-experiment transfer. (a) Additive ablation of the PXRD augmentation components. (b) Relationship between simulated MP-20 and experimental validation performance on RRUFF and opXRD. Filled markers denote the final training checkpoint; solid lines connect results across training checkpoints.

Correlation between simulated and experimental performance. We examine whether simulated and experimental performance follow similar trends across augmentation strategies. We compare no augmentation, peak-only augmentation, and the full pipeline with reduced or proposed augmentation magnitudes. During 200K-step training, we evaluate Top-1 validation match rates on MP-20, RRUFF, and opXRD every 50K steps and fit linear trends across four checkpoints. As shown in Figure 5b, no augmentation and peak-only augmentation yield little experimental improvement as simulated performance increases, whereas both full-augmentation settings show positive trends, with the proposed magnitudes yielding larger experimental gains.

Effect of training distribution. Despite its smaller size, MP-20 transfers better to RRUFF than PXRD-Bench. RRUFF is primarily composed of minerals and is enriched in elements such as Si and O, which are more frequently represented in MP-20. As shown in Table 3, oversampling training structures containing these mineral-associated elements further improves RRUFF performance, suggesting that distribution-aware fine-tuning on PXRD-Bench toward the expected target domain may further improve performance on downstream experimental PXRD.

Training setupRRUFF
Top-1Top-20
MP-2048.33±1.7448.33 \pm1.7458.33±2.0858.33 \pm2.08
PXRD-Bench43.75±2.9543.75 \pm2.9570.42±1.7470.42 \pm1.74
+ oversampling54.58±3.4254.58 \pm3.4274.17±1.1474.17 \pm1.14

Table 3. Effect of Si/O oversampling. Validation match rates (%) on RRUFF.

Two-phase recovery

We evaluate two-phase structure recovery on the simulated MP-20 benchmark and experimental PXRD mixtures from GALAXI ([31]). Each mixed profile is first decomposed into phase-specific profiles using XDecomposer ([5]), after which a structure generator is applied independently to each profile. Starting from the element-set-conditioned Bragglite, we fine-tune it so that each phase-specific generation uses the shared mixture-level element set.

We use MatterGen [34] and XRDdiff as per-phase candidate generators, but treat them as reference methods rather than strictly controlled baselines: MatterGen is not leakage-controlled against our evaluation sets, while XRDdiff receives phase-specific element sets. As shown in Table 4, Bragglite outperforms the reference methods in most settings. Its substantially higher Top-1 match rate than the PXRD-free MatterGen reference further supports the value of diffraction conditioning.

ModelMP-20GALAXI
Top-1Top-20Top-1Top-20
MatterGen2.1330.670.0042.86
XRDiff6.7614.640.009.52
Bragglite13.2625.3419.0547.62

Table 4. Multiphase recovery. All-phase Top-KK match rates (%) on MP-20 and GALAXI.

Conclusion

We introduce PXRD-Bench, a unified benchmark for PXRD-based structure determination spanning simulation-to-experiment transfer, out-of-distribution generalization, element-set conditioning, and two-phase recovery. We also develop Bragglite, a strong PXRD-conditioned baseline, and use it to systematically study PXRD representations and augmentation strategies. Our experiments show that Bragglite substantially improves experimental structure recovery over prior methods, while revealing that robust use of experimental PXRD, generalization to unseen structural prototypes, and recovery of multiple phases remain challenging. These results establish PXRD-Bench as a controlled framework for measuring progress toward practical PXRD-based structure determination and identify key limitations that future methods must address.

AI use statement

We used OpenAI’s ChatGPT and Codex to support implementation across the research workflow, including data processing, model development, training, evaluation, and interpretation of experimental results. These tools were also used to assist with plotting and analysis code, figure and table preparation, and drafting, revising, and formatting the manuscript. Their use was guided by the authors’ research ideas, experimental goals, and intended analyses. Generative AI did not independently determine the research questions, core methodology, or final scientific conclusions. The authors reviewed the resulting analyses, figures, tables, and manuscript text and take full responsibility for the final results, claims, and presentation of this work.

Reproducibility statement

We provide the details needed to reproduce the benchmark construction and experiments throughout the main text and appendix. The benchmark task definitions, dataset construction and splits, leakage controls, and evaluation metrics are described in § 3 and Appx. A. Model architecture and PXRD preprocessing and augmentation are specified in § 4 and Appx. C. Appx. D reports the training objectives, optimization hyperparameters, sampling procedure, checkpoint-selection protocol, baseline configurations, random seeds, and compute resources used for the reported experiments. We additionally provide the implementation code and experiment configurations in the supplementary material.

Benchmark details

This section provides additional details on dataset construction, curation, and evaluation metrics for our benchmark.

Large-scale simulated PXRD dataset

Dataset construction

We construct the simulated benchmark through source-specific selection, structural validation, composition-bucket filtering, cross-source deduplication, and final benchmark curation.

Source-specific selection. The frozen snapshots of MP ([12, 10]), OQMD ([16]), Alexandria ([2]), and AFLOW/AFLUX ([3, 26]) contain approximately 9.78 million input records in total. This aggregate should not be interpreted as a count of unique structures: it includes repeated AFLOW API records, and the source-specific counts refer to different processing stages. We apply energy-based selection to MP, OQMD, and Alexandria, but no energy filter to AFLOW because the AFLOW snapshot does not store energy-above-hull values for assessing thermodynamic stability. This source-specific selection retains 5,634,620 candidate records. Table 5 summarizes the snapshots and selection criteria.

SourceSnapshotSelection criteriaCandidatesFinal corpus
Materials Project2026-04-130≤Ehull≤0.100 \le E_{\mathrm{hull}} \le0.10100,38477,493
OQMDv1.5 (2021-10)Signed stability ≤0.10\le0.10; negative values retained219,945166,102
AlexandriaPBE 3D, 2025-07-020≤Ehull≤0.100 \le E_{\mathrm{hull}} \le0.102,331,7962,139,337
AFLOWAFLUX, 2026-08-16No energy filter2,981,6791,879,759
Total5,633,8044,262,691

Table 5. Table 5 Frozen source snapshots, selection criteria, and record counts before and after dataset curation. Candidate counts are measured after structural validation and before composition-bucket filtering, cross-source deduplication, and the 52-atom restriction. Final counts are measured after the 52-atom restriction, chemical curation, OOD-consistency filtering, and benchmark-overlap exclusion, totaling 4,262,691 structures, including 4,107,627 training structures. Each retained structure is attributed to the source of its representative record, selected during deduplication using the fixed priority MP, OQMD, Alexandria, then AFLOW. The final counts therefore reflect representative provenance rather than independent source contributions or source quality. EhullE_{\mathrm{hull}} denotes energy above hull; OQMD uses its signed stability field, including negative values. All energy values are in eV/atom.

Structural validation. We next validate the selected structures and convert them to primitive cells, retaining only three-dimensionally periodic structures with fully occupied, ordered sites. We exclude structures with invalid cell volumes (non-finite or ≤10−6\le10^{-6} Å3^3), no atomic sites, non-finite lattice parameters or atomic coordinates, or elements with atomic numbers greater than 94. At this stage, we also discard structures with more than 208 atoms in the primitive cell.

Composition-bucket filtering and deduplication. Before deduplication, we group candidate records by reduced composition and discard every bucket containing more than 128 records in its entirety. We then deduplicate the remaining structures across all sources using sequential, representative-centered, species-aware structural matching with (ltol,stol,angletol)=(0.2,0.3,5∘)(l_{\mathrm{tol}},s_{\mathrm{tol}},\mathrm{angle}_{\mathrm{tol}}) = (0.2, 0.3, 5^\circ). Representatives are selected using a fixed source priority of MP, OQMD, Alexandria, then AFLOW. This priority is fixed for reproducibility and does not rank source quality. We also retain the provenance of matching records from other sources.

Atom-count restriction and chemical curation. For the benchmark used in our experiments, we further restrict the corpus to structures with at most 52 atoms in the primitive cell and apply chemical curation to focus the dataset on extended inorganic crystalline materials.

We screen structures using periodic bond connectivity to identify discrete molecular units and extended networks. We exclude molecular crystals composed of finite, neutral molecular units, including both organic and inorganic molecules. We additionally exclude structures with evidence of organic components, including organic ions, polymeric organic structures, metal–organic coordination networks, COF-like networks, and organic guests in inorganic hosts. This broader screening does not require definitive classification as a salt, MOF, or COF, nor confirmed porosity, and conservatively excludes ambiguous candidates with evidence of organic components. This curation is an operational exclusion policy rather than a guarantee that the remaining corpus is entirely free of molecular or organic structures.

After all filtering and split-consistency checks described below, the resulting benchmark contains 4,262,691 structures, including an effective training set of 4,107,627 structures. Alexandria and AFLOW account for the largest shares of representative structures in the final corpus (Figure 2c).

For each retained structure, we simulate a PXRD profile using Cu Kα\alpha radiation over 2θ∈[5∘,90∘]2\theta\in[5^\circ, 90^\circ].

Dataset splits and overlap audits

We use a sequential holdout procedure to partition the corpus into a training set and validation/test sets for four evaluation settings: IID, prototype-OOD, composition-OOD, and composition–prototype-pair-OOD (pair-OOD). We construct the three OOD holdouts first, followed by the IID holdouts.

We define a structural prototype by its space group, primitive-cell site count, and species-anonymized per-species multiset of Wyckoff orbits, using a symmetry tolerance of symprec=0.1\mathrm{symprec} = 0.1 Å. To prevent structurally similar examples from crossing split boundaries, we additionally group structures using species-aware structural matching with (ltol,stol,angle_tol)=(0.3,0.5,10∘)(\mathrm{ltol}, \mathrm{stol}, \mathrm{angle\_tol}) = (0.3, 0.5, 10^\circ). Structural similarity groups are defined as connected components of the resulting matching graph and are kept intact during splitting.

First, we construct the prototype-OOD set. A candidate prototype is eligible for holdout only if every associated reduced composition remains represented in the training pool by another prototype. We hold out all structures belonging to each selected prototype, targeting approximately 40,000 structures in total.

Second, we construct the composition-OOD set, excluding reduced compositions associated with the prototype-OOD set from consideration. We hold out all structures with a candidate composition only if every associated prototype remains represented in the training pool by another composition, again targeting approximately 40,000 structures.

Third, we construct the pair-OOD set from structures not assigned to either preceding OOD set. We hold out complete composition–prototype pairs only if the composition and prototype each remain represented in the training pool through other pairs. A pair is eligible only if it can be held out without splitting any structural similarity group.

We divide each OOD set into validation and test subsets, targeting approximately 20,000 structures per subset. The defining holdout units—prototypes, reduced compositions, and composition–prototype pairs—are kept intact, so that no unit is shared between the corresponding validation and test subsets. After constructing the OOD splits, we randomly hold out structural similarity groups from the remaining pool to form IID validation and test sets of approximately 20,000 structures each. We refer to these random structural-group holdouts as IID splits because they do not explicitly enforce novelty in composition or structural prototype. Consequently, rare compositions or prototypes may occur only in validation or test under random group assignment.

Subsequent filtering can remove the remaining training examples needed to satisfy an OOD holdout condition. We therefore re-evaluate the OOD constraints after the IID holdouts and again after the atom-count, chemical-curation, and benchmark-overlap exclusions described above and below. Any validation or test structures that no longer satisfy their defining OOD condition with respect to the final effective training set are removed.

To prevent training overlap with the external benchmarks, we exclude training structures that match reference structures in RRUFF-148 or opXRD-123. Matching requires identical element species and uses primitive-cell conversion and lattice scaling, without supercell or subset matching. For this exclusion, we use more permissive structural matching tolerances than those used for the match-rate metric: (ltol,stol,angle_tol)=(0.3,0.5,10.0∘)(\mathrm{ltol}, \mathrm{stol}, \mathrm{angle\_tol}) = (0.3, 0.5, 10.0^\circ).

Audits of the finalized splits confirm that no structural similarity group is shared across splits and that no training structure matches an RRUFF-148 or opXRD-123 reference after exclusion. These checks separately address internal split leakage and training–benchmark structural overlap. Figure 6 reports the finalized split sizes.

Finalized split sizes of the large-scale simulated corpus

Figure 6. Finalized split sizes of the large-scale simulated corpus. The plot reports the training-set size and validation/test sizes for IID, pair-OOD, prototype-OOD, and composition-OOD evaluations on a logarithmic horizontal axis. No structural similarity group is shared across splits, and training–benchmark structural overlap with RRUFF-148 and opXRD-123 is zero after exclusion.

Additional dataset coverage statistics

The main text summarizes source provenance, crystal-system frequencies, element occurrence, and element-pair frequencies (§ 3 and Figure 2). Here, we complement that overview with distributions of primitive-cell size, composition arity (the number of distinct elements), prototype frequency, and simulated Bragg line counts (Figure 7). All statistics reported below are computed over the final curated benchmark corpus of 4,262,691 structures. Together, these statistics characterize cell size, chemical diversity, structural-family coverage, and diffraction-profile complexity.

(a) Primitive-cell size.

Composition arity

(b) Composition arity.

Prototype frequencies

(c) Prototype frequencies.

(d) Simulated Bragg line counts.

Figure 7. Structural and diffraction-profile distributions of the large-scale simulated corpus. (a) Primitive-cell atom counts. (b) Number of distinct elements per structure. (c) Structures per prototype, ordered by decreasing frequency on logarithmic axes. (d) Simulated Bragg line counts for Cu Kα\alpha radiation over 2θ∈[5∘,90∘]2\theta\in[5^\circ, 90^\circ]; multiple reflections at the same position can be merged into one line. Vertical lines mark 128- and 512-peak budgets. The displayed histogram ends at 800 lines, while the annotated maximum is 7,107.

Primitive cells have a median of 6 atoms, with the 95th percentile at 22 atoms (Figure 7a). Ternary compositions dominate the corpus at 69.5%, followed by quaternary compositions at 20.4% and binary compositions at 8.0%. Compositions with five and six element types account for 1.7% and 0.3%, respectively, while unary compositions and those with seven or eight element types each account for less than 0.1% (Figure 7b).

The prototype distribution is strongly long-tailed. Among 46,658 structural prototypes, 41.4% occur only once (Figure 7c). Thus, despite the large size of the corpus, coverage across structural families remains highly nonuniform.

The simulated profiles also span a wide range of diffraction complexity (Figure 7d). Within 2θ∈[5∘,90∘]2\theta\in[5^\circ, 90^\circ], the number of simulated Bragg lines follows a long-tailed distribution that extends well beyond the 128- and 512-line budgets indicated in the figure. These counts refer to the peak positions returned by the diffraction calculator, which can merge multiple reflections at the same position into a single line. They therefore do not count individual reflections and need not correspond to the number of experimentally resolved peaks. The broad distribution motivates examining how much diffraction information is retained by fixed-size peak representations.

Construction of the Multiphase Dataset

We construct the multiphase dataset independently within the original MP-20 train, validation, and test splits, so that no constituent structure crosses the original split boundaries. We first identify binary metallic chemical systems and collect split-local unary and binary structures belonging to each system. Using a frozen Materials Project GGA/GGA+U snapshot, we build the corresponding binary phase diagrams and enumerate pairs of phases with distinct compositions.

For each phase pair, we consider nine phase fractions. Let w1w_1 and w2w_2 denote the weight fractions of the two constituent phases, with

w1+w2=1,w1∈{0.1,0.2,…,0.9},w2=1−w1.(1)w_1 + w_2 = 1,\qquad w_1 \in\{0.1, 0.2, \ldots, 0.9\},\qquad w_2 = 1 - w_1. \tag*{(1)}

For non-tie mixtures, we define the phase with the larger weight fraction as the dominant phase and the other as the minor phase. Mixtures with w1=w2=0.5w_1 = w_2 = 0.5 have no dominant–minor assignment. Each combination of a phase pair and weight fraction defines a candidate mixture. We retain candidate mixtures that either correspond to equilibrium two-phase assemblages between adjacent stable phases on the binary convex hull, or whose mixture energy lies within 50 meV/atom of the convex hull at the corresponding overall composition. In the latter case, each constituent phase is also required to satisfy the corresponding stability criterion.

We simulate the constituent PXRD profiles over 2θ∈[5∘,90∘]2\theta\in[5^\circ, 90^\circ] using Cu Kα\alpha radiation. To convert the phase weight fractions into diffraction scale factors, let MiM_i and ViV_i denote the unit-cell mass and volume of phase i∈{1,2}i \in\{1, 2\}. Using the Hill–Howard relation between phase weight fraction and Rietveld scale factor [8], we define

s~i=wiMiVi,si=s~is~1+s~2.(2)\tilde{s}_i = \frac{w_i}{M_iV_i},\qquad s_i = \frac{\tilde{s}_i}{\tilde{s}_1+\tilde{s}_2}. \tag*{(2)}

Given constituent profiles x1(2θ)x_1(2\theta) and x2(2θ)x_2(2\theta), we construct the mixed profile by linear superposition,

x~mix(2θ)=s1x1(2θ)+s2x2(2θ),(3)\tilde{x}_{\mathrm{mix}}(2\theta) = s_1x_1(2\theta) + s_2x_2(2\theta), \tag*{(3)}

followed by maximum-intensity normalization,

xmix(2θ)=x~mix(2θ)max⁡2θ′x~mix(2θ′).(4)x_{\mathrm{mix}}(2\theta) = \frac{\tilde{x}_{\mathrm{mix}}(2\theta)}{\max_{2\theta'} \tilde{x}_{\mathrm{mix}}(2\theta')}. \tag*{(4)}

Each record stores the mixed and constituent profiles, both crystal structures, phase weight fractions, Rietveld scale factors, compositions, and primitive-cell atom counts. The final dataset contains 100,798 training, 12,418 validation, and 11,848 test mixtures (125,064 total). For the reported recovery experiment, we use the 10,657 non-tie test mixtures.

Evaluation Metrics

Top-KK match rate. We evaluate structure recovery using the Top-KK match rate. For a dataset D\mathcal{D} containing ∣D∣|\mathcal{D}| target structures, let CnC_n denote the reference structure for example nn, and let C^n(j)\widehat{C}^{(j)}_n denote the jj-th generated candidate. We define the per-example Top-KK success indicator as

mn(K)=I[∃j∈{1,…,K}:C^n(j)≃Cn].(5)m_n^{(K)} = \mathbb{I}\left[\exists j \in\{1,\ldots,K\} : \widehat{C}^{(j)}_n \simeq C_n\right]. \tag*{(5)}

where ≃\simeq denotes structural equivalence under pymatgen’s StructureMatcher. The Top-KK match rate is then

Top-K=1∣D∣∑n=1∣D∣mn(K).(6)\mathrm{Top}\text{-}K = \frac{1}{|\mathcal{D}|}\sum_{n=1}^{|\mathcal{D}|}m_n^{(K)}. \tag*{(6)}

Thus, an example is counted as successfully recovered if at least one of its first KK generated candidates matches the reference structure. For all single-phase evaluations, we use StructureMatcher with (ltol,stol,angle_tol)=(0.2,0.3,5∘)(\mathrm{ltol},\mathrm{stol},\mathrm{angle\_tol}) = (0.2, 0.3, 5^\circ). We report Top-1 and Top-20 match rates throughout the benchmark.

Multiphase recovery metrics. For the two-phase benchmark, each example nn contains two reference structures, Cn,1C_{n,1} and Cn,2C_{n,2}. Let C^n,i(j)\widehat{C}^{(j)}_{n,i} denote the jj-th generated candidate for phase i∈{1,2}i \in\{1,2\}. We define the per-phase Top-KK success indicator as

mn,i(K)=I[∃j∈{1,…,K}:C^n,i(j)≃Cn,i].(7)m_{n,i}^{(K)} = \mathbb{I}\left[\exists j \in\{1,\ldots,K\} : \widehat{C}^{(j)}_{n,i} \simeq C_{n,i}\right]. \tag*{(7)}

Let dnd_n and rnr_n denote the dominant and minor phases of example nn, respectively. The dominant-phase and minor-phase Top-KK match rates are

Top-Kdom=1∣Dmulti∣∑n=1∣Dmulti∣mn,dn(K),(8)\mathrm{Top}\text{-}K_{\mathrm{dom}} = \frac{1}{|\mathcal{D}_{\mathrm{multi}}|}\sum_{n=1}^{|\mathcal{D}_{\mathrm{multi}}|}m_{n,d_n}^{(K)}, \tag*{(8)}

and

Top-Kmin=1∣Dmulti∣∑n=1∣Dmulti∣mn,rn(K).(9)\mathrm{Top}\text{-}K_{\mathrm{min}} = \frac{1}{|\mathcal{D}_{\mathrm{multi}}|}\sum_{n=1}^{|\mathcal{D}_{\mathrm{multi}}|}m_{n,r_n}^{(K)}. \tag*{(9)}

Finally, the all-phase Top-KK match rate requires both constituent structures to be recovered within their respective candidate sets:

Top-Kall=1∣Dmulti∣∑n=1∣Dmulti∣mn,dn(K)mn,rn(K).(10)\mathrm{Top}\text{-}K_{\mathrm{all}} = \frac{1}{|\mathcal{D}_{\mathrm{multi}}|}\sum_{n=1}^{|\mathcal{D}_{\mathrm{multi}}|}m_{n,d_n}^{(K)}m_{n,r_n}^{(K)}. \tag*{(10)}

The all-phase metric is therefore a joint, sample-level success rate rather than an average of the dominant- and minor-phase match rates. We report dominant-, minor-, and all-phase Top-1 and Top-20 match rates.

Existing datasets used in additional experiments

This subsection documents the existing datasets used in our additional experiments. We describe MP-20, which serves as a compact reference training corpus for comparisons with prior PXRD-to-structure models, and MP-20-polymorph-split, which we use for supplementary evaluation under a composition-disjoint split.

MP-20. MP-20 is a widely used benchmark for crystal structure prediction derived from the Materials Project [12, 13]. It contains inorganic crystal structures with at most 20 atoms in the primitive cell and provides standard train, validation, and test splits. We use MP-20 as a compact reference training corpus for comparisons with prior PXRD-to-structure models and for the representation and augmentation studies reported in the main text and appendix. For experimental PXRD evaluation, we remove from the training set all structures that structurally match reference structures in RRUFF or opXRD.

MP-20-polymorph-split. MP-20-polymorph-split is a composition-grouped repartition of MP-20 introduced by Martirossyan et al. (2025). Whereas the standard MP-20 split can place structures with the same reduced composition in different subsets, MP-20-polymorph-split assigns all structures sharing a reduced composition to the same split while preserving the overall composition-arity distribution. It therefore removes composition overlap between training and evaluation while retaining the underlying MP-20 structure collection.

Additional experimental results

PXRD representation study

We study the design choices for PXRD input representation and encoding in three stages. First, we compare alternative representations of the physical peak position using 2θ2\theta, dd-spacing, and qq-spacing, with intensity as the only additional peak feature. Second, starting from the best peak-position representation, we examine the effect of adding peak width and prominence. Third, we augment the resulting peak features with Fourier encodings of the physical peak position and compare different frequency ranges. Throughout the study, we keep the model architecture and size fixed, train each model on MP-20 for 200K steps, and use our full PXRD profile augmentation. We compare the representations using Top-1 match rates on the RRUFF and opXRD validation sets. Results are summarized in Table 6.

Input featureMP-20RRUFFopXRD
Peak-position representation
2θ2\theta, II60.9436.67±1.8636.67 \pm1.8636.67±6.1836.67 \pm6.18
dd, II59.9639.17±2.2839.17 \pm2.2835.83±2.2835.83 \pm2.28
qq, II64.8441.25±1.7441.25 \pm1.7437.50±2.9537.50 \pm2.95
Additional peak features
+ prominence, width66.2143.33±2.2843.33 \pm2.2841.67±4.1741.67 \pm4.17
Peak-position Fourier embedding
+ log1669.9947.92 ±1.25\pm1.2545.56 ±3.94\pm3.94
+ log6469.7344.86±1.4644.86 \pm1.4640.83±2.5040.83 \pm2.50

Table 6. Top-1 validation match rates (%) for ablations of the PXRD input representation and peak-position encoding. The first three rows compare peak-position representations using intensity only. Subsequent rows cumulatively augment the qq, II representation with peak prominence and width, followed by Fourier embeddings of the peak position.

Peak-position representation. We first compare 2θ2\theta, dd-spacing, and qq-spacing as representations of the physical peak position, using peak intensity II as the only additional feature. Among the three representations, (q,I)(q, I) gives the strongest validation performance overall. Unlike 2θ2\theta, both dd- and qq-spacing are independent of the measurement wavelength, avoiding the need to represent the same scattering geometry differently across measurement wavelengths. Based on the validation results, we use qq as the peak-position representation for the remainder of the study.

Peak-shape features. Starting from the (q,I)(q, I) representation, we additionally provide the width ww and prominence pp of each detected peak. These descriptors characterize local peak shape and distinguish peaks that may have similar positions and intensities but different profiles. Adding width and prominence improves validation performance on both RRUFF and opXRD, indicating that peak-shape information provides useful conditioning beyond peak positions and intensities alone. We therefore use (q,I,w,p)(q, I, w, p) as the base peak representation for the following experiments.

Fourier encoding of physical peak positions. We further augment the representation with Fourier features of the physical peak position qq. This encoding operates on the value of qq itself rather than on the index of a peak in the input sequence, and is therefore distinct from positional encoding for token order. We use 16 logarithmically spaced frequencies,

fk=Fmax⁡k/15,k=0,…,15,(11)f_k = F_{\max}^{k/15}, \qquad k = 0,\ldots,15, \tag*{(11)}

where Fmax⁡=16F_{\max} = 16 and Fmax⁡=64F_{\max} = 64 define the log16 and log64 settings, respectively. Thus, both settings use 16 frequencies spanning 1 to Fmax⁡F_{\max} on a logarithmic scale. Further details of the Fourier encoding and peak embedding are provided in Appx. C.2.

As shown in Table 6, adding Fourier features with the log16 setting improves validation performance on both RRUFF and opXRD and gives the best overall results. Increasing the maximum frequency to 64 reduces performance on both datasets. We therefore use the log16 Fourier encoding in the final model.

Architecture ablation

Architecture ablation

We ablate three architectural components of Bragglite: in-context conditioning, the PXRD encoder architecture, and the Geometry Enhancement Module (GEM). To isolate architectural effects from simulation-to-real robustness, we train all models on MP-20 for 300K steps without PXRD augmentation and evaluate them on the clean simulated MP-20 validation set.

In-context fusion and GEM. Table 7 evaluates the contribution of in-context PXRD conditioning and GEM. Removing in-context fusion produces a small reduction in both Top-1 and Top-20 match rates, whereas removing GEM leads to a larger drop, particularly in Top-1 performance. These results indicate that the geometry-aware attention bias provided by GEM is important for structure recovery, while in-context fusion provides a smaller additional improvement.

Top-1Top-20Δ\Delta Top-1 (pp)
Bragglite78.86±0.4078.86 \pm0.4090.62±0.4090.62 \pm0.40–
− In-context fusion78.64±0.3478.64 \pm0.3490.33±0.2890.33 \pm0.28−0.22-0.22
− GEM76.35±0.5976.35 \pm0.5989.90±0.0589.90 \pm0.05−2.51-2.51

Table 7. Table 7 Architecture component study on the MP-20 validation set. Top-KK match rates (%) are reported as mean ±\pm sample standard deviation over three training seeds. All models are evaluated at the final 300K-step EMA checkpoint.

PXRD encoder architecture. Table 8 compares Transformer and MLP encoders for the PXRD peak sequence. The Transformer encoder improves both Top-1 and Top-20 match rates over the MLP encoder, supporting the use of a sequence-modeling architecture for constructing the PXRD representation used to condition the structure generator.

PXRD encoderTop-1Top-20
Transformer encoder75.3789.04
MLP encoder72.7087.96

Table 8. Table 8 PXRD encoder study on the MP-20 validation set. Values are Top-KK match rates (%).

In-depth analysis of benchmark results

Overlap of successful predictions. To better understand whether the improvement of Bragglite comes from solving different test cases or consistently recovering those solved by prior methods, we analyze the overlap of Top-1 successes on the RRUFF and opXRD test sets in Figure 8. For each baseline, we partition test samples according to whether both models succeed, only the baseline succeeds, only Bragglite succeeds, or neither succeeds. Across most baselines, Bragglite recovers the large majority of samples solved by the baseline while additionally solving a substantially larger set of previously unsuccessful cases. This trend is consistent across both experimental datasets, suggesting that the improved aggregate match rate primarily reflects additional structure recoveries rather than a trade-off in which previously solved samples are lost. The overlap is lower for XRDiff under element-set conditioning, indicating greater complementarity between the two models in this more weakly conditioned setting.

Figure 8. Overlap of Top-1 successes between Bragglite and prior baselines on the RRUFF and opXRD test sets. Each bar partitions the test samples into cases where both models succeed, only the baseline succeeds, only Bragglite succeeds, or neither succeeds. Retained denotes the fraction of baseline successes that are also recovered by Bragglite.

Detailed two-phase recovery results

We further report phase-wise recovery results for the two-phase benchmark, separating dominant-phase, minor-phase, and joint all-phase recovery. Table 9 complements the all-phase results in § 6.3 by showing how often each constituent phase is recovered individually.

DatasetModelDominant Top-1Dominant Top-20Minor Top-1Minor Top-20All-phase Top-1All-phase Top-20
MP-20MatterGen14.2855.6915.4855.412.1330.67
XRDiff25.2838.2823.1436.486.7614.64
Bragglite33.9948.7830.5945.0213.2625.34
GALAXIMatterGen0.0076.194.7671.430.0042.86
XRDiff28.5738.109.5214.290.009.52
Bragglite57.1476.1933.3366.6719.0547.62

Table 9. Detailed two-phase recovery results. Dominant-phase, minor-phase, and all-phase Top-KK match rates (%) on the MP-20 and GALAXI two-phase benchmarks. All-phase recovery requires both constituent phases to be recovered within their respective candidate sets.

Benchmark results on MP-20-polymorph-split

Table 10 follows the model lineup, chemical-input settings, and evaluation columns of the MP-20 block in Table 1, using MP-20-polymorph-split as the training dataset and its held-out test split for simulated PXRD evaluation.

DatasetModelSimulated PXRD Top-1Simulated PXRD Top-20RRUFF Top-1RRUFF Top-20opXRD Top-1opXRD Top-20
MP-20-polymorph-splitChemical input: exact stoichiometry
PXRDGen55.4378.9230.00 ± 3.0859.00 ± 1.4124.29 ± 1.6036.79 ± 2.04
RealPXRD-Solver57.4279.5426.60 ± 2.6147.80 ± 2.6824.64 ± 1.4933.21 ± 1.60
XRDiff60.2677.5423.00 ± 2.3545.60 ± 1.5218.93 ± 2.7129.29 ± 1.60
Crystalyze31.0749.462.00 ± 1.4111.00 ± 1.2211.79 ± 0.9817.50 ± 0.80
DiffCSP (no PXRD)51.8575.7129.00 ± 3.1658.60 ± 1.5220.71 ± 1.6036.07 ± 0.80
Crystalite (no PXRD)62.2879.4541.20 ± 3.5660.40 ± 1.8225.36 ± 1.4935.71 ± 1.26
Bragglite68.4381.4849.00 ± 1.2265.40 ± 1.3427.86 ± 2.0438.57 ± 2.04
Chemical input: element set + N
XRDiff35.9250.7915.60 ± 1.5226.60 ± 1.6710.36 ± 1.4917.14 ± 0.98
Bragglite44.2069.7630.60 ± 1.5255.20 ± 1.9217.86 ± 1.2623.93 ± 1.60

Table 10. Top-KK match rates (%) for models trained on MP-20-polymorph-split, following the MP-20 configuration in Table 1.

Bragglite model details

This section provides additional implementation details for Bragglite. We first summarize the Crystalite backbone, then describe the PXRD representation, encoder, in-context conditioning, and augmentation pipeline. Finally, we describe how Bragglite is combined with XDecomposer for two-phase structure recovery.

Bragglite builds on Crystalite [6] and preserves its diffusion state, EDM formulation, sampler, and structural prediction heads. To condition the denoiser on diffraction, we introduce a PXRD encoder that maps the observed peak list to a short sequence of context tokens. These tokens are concatenated with the structural tokens and jointly processed by the Crystalite Transformer, allowing the observed diffraction pattern to influence structural predictions throughout denoising.

Crystalite backbone

Crystalite [6] is a geometry-aware diffusion Transformer for crystal generation. It represents a unit cell as a continuous state consisting of atom-type features, fractional coordinates, and a six-dimensional lattice latent. Each atomic site is represented by a single token that combines its atom-type and fractional-coordinate embeddings, while the lattice is represented by a separate global token. The resulting sequence is processed by a noise-conditioned Transformer under the EDM denoising formulation.

To explicitly incorporate periodic crystal geometry, Crystalite uses the Geometry Enhancement Module (GEM). GEM computes minimum-image pair geometry from the current fractional coordinates and lattice and injects the resulting features into atom–atom attention as additive geometric biases. This provides the Transformer with explicit lattice-dependent periodic geometry during denoising.

For atom types, Crystalite uses Subatomic Tokenization, which represents each element using chemically structured descriptors derived from its periodic-table position and electronic configuration. These descriptors are projected onto a PCA basis and normalized to form continuous atom-type features. During de novo generation, atom-type features, coordinates, and lattice variables are jointly denoised, and the predicted atom-type features are mapped back to discrete elements by nearest-prototype decoding. In the CSP setting, atom types are fixed and only the coordinates and lattice are denoised.

These two operating modes align naturally with our benchmark settings. Under exact-stoichiometry conditioning, atom types are fixed throughout generation. Under element-set conditioning, atom-type features are additionally denoised and decoded while restricting the output elements to the supplied element set.

PXRD encoding and in-context conditioning

Peak extraction. For both simulated and experimental PXRD, we begin with a dense intensity profile

x=(x1,…,xM)∈R≥0M,M=850,(12)\mathbf{x} = (x_1,\ldots,x_M) \in\mathbb{R}_{\ge0}^{M}, \qquad M = 850, \tag*{(12)}

sampled at 0.1∘0.1^\circ intervals over 2θ∈[5∘,90∘)2\theta\in[5^\circ, 90^\circ). We detect peaks from x\mathbf{x} using scipy.signal.find_peaks [32] with prominence=0.0 and no additional minimum-height or minimum-distance constraint. Peak widths are computed using scipy.signal.peak_widths at relative height 0.5 and converted from bins to the units of the corresponding peak-position representation.

If more than 128 peaks are detected, we retain the 128 peaks with the highest intensities and sort them by increasing 2θ2\theta. Let K≤128K \le128 denote the number of retained peaks. We represent the resulting peak sequence as

Px=(p1,…,pK),pk=(qk,Ik,wk,πk)∈R4,(13)\mathcal{P}_{x} = (\mathbf{p}_1,\ldots,\mathbf{p}_K), \qquad\mathbf{p}_k = (q_k, I_k, w_k, \pi_k) \in\mathbb{R}^{4}, \tag*{(13)}

where qkq_k, IkI_k, wkw_k, and πk\pi_k denote the scattering-vector magnitude, normalized intensity, peak width, and prominence, respectively. Let I~k\widetilde{I}_k denote the unnormalized intensity of peak kk. We normalize peak intensities by the maximum value of the full profile,

Ik=I~kI~max⁡,I~max⁡=max⁡jxj.(14)I_k = \frac{\widetilde{I}_k}{\widetilde{I}_{\max}}, \qquad\widetilde{I}_{\max} = \max_j x_j. \tag*{(14)}

Fourier encoding for peak positions. To provide a richer representation of the physical peak position, we additionally encode qkq_k using sinusoidal Fourier features. We first convert qkq_k to the dimensionless coordinate

ξk=qkλref4π,λref=1.54184 A˚.(15)\xi_k = \frac{q_k\lambda_{\mathrm{ref}}}{4\pi}, \qquad\lambda_{\mathrm{ref}} = 1.54184\ \text{\AA}. \tag*{(15)}

We then use 16 logarithmically spaced frequencies

fm=Fmax⁡m/15,m=0,…,15.(16)f_m = F_{\max}^{m/15}, \qquad m = 0,\ldots,15. \tag*{(16)}

For each peak, the corresponding 32-dimensional Fourier feature is

ϕ(qk)=[sin⁡(2πfmξk),cos⁡(2πfmξk)]m=015∈R32.(17)\phi(q_k) = [\sin(2\pi f_m\xi_k),\cos(2\pi f_m\xi_k)]_{m=0}^{15} \in\mathbb{R}^{32}. \tag*{(17)}

This encoding provides multiple frequency scales for representing variations in physical peak position while retaining qkq_k itself in the base peak descriptor.

Peak encoding. The four base peak features are jointly embedded with a two-layer MLP, while the normalized Fourier feature is projected through a separate linear layer. The two branches are summed to obtain the peak embedding,

hk=MLP⁡peak(pk)+WFNormalize⁡(ϕ(qk))∈Rdx,dx=256,(18)h_k = \operatorname{MLP}_{\mathrm{peak}}(p_k) + \mathbf{W}_F\operatorname{Normalize}(\phi(q_k)) \in\mathbb{R}^{d_x}, \qquad d_x = 256, \tag*{(18)}

where

MLP⁡peak=Linear⁡dx→dx∘SiLU⁡∘Linear⁡4→dx.(19)\operatorname{MLP}_{\mathrm{peak}} = \operatorname{Linear}_{d_x\to d_x} \circ\operatorname{SiLU} \circ\operatorname{Linear}_{4\to d_x}. \tag*{(19)}

and WF∈Rdx×32\mathbf{W}_F \in\mathbb{R}^{d_x \times32} denotes the bias-free Fourier projection.

Profile encoding. We prepend a learned [CLS] embedding cCLS∈Rdx\mathbf{c}_{\mathrm{CLS}} \in\mathbb{R}^{d_x} to the peak embeddings and process the resulting sequence using a four-layer, eight-head Transformer:

Ux=PeakTransformer⁡([cCLS;h1;…;hK])∈R(K+1)×dx.(20)\mathbf{U}_x = \operatorname{PeakTransformer}([\mathbf{c}_{\mathrm{CLS}}; \mathbf{h}_1; \ldots; \mathbf{h}_K]) \in\mathbb{R}^{(K+1)\times d_x}. \tag*{(20)}

The output corresponding to the [CLS] token provides a global representation of the observed PXRD profile. We project this representation to the hidden dimension of the Crystalite backbone,

zx=Linear⁡proj(Ux,CLS)∈Rd.(21)\mathbf{z}_x = \operatorname{Linear}_{\mathrm{proj}}(\mathbf{U}_{x,\mathrm{CLS}}) \in\mathbb{R}^{d}. \tag*{(21)}

In-context conditioning. We form R=8R = 8 context tokens by repeating the global PXRD representation and adding a distinct learned positional embedding to each copy:

Zx=[zx+e1;…;zx+eR]∈RR×d,R=8,(22)\mathbf{Z}_x = [\mathbf{z}_x + \mathbf{e}_1; \ldots; \mathbf{z}_x + \mathbf{e}_R] \in\mathbb{R}^{R\times d}, \qquad R = 8, \tag*{(22)}

where er∈Rd\mathbf{e}_r \in\mathbb{R}^{d} is a learned positional embedding for the rr-th context token. We prepend these context tokens to the original Crystalite structural token sequence,

T(0)=[Zx;Tstr(0)]∈R(R+N+1)×d,(23)\mathbf{T}^{(0)} = [\mathbf{Z}_x; \mathbf{T}_{\mathrm{str}}^{(0)}] \in\mathbb{R}^{(R+N+1)\times d}, \tag*{(23)}

where Tstr(0)∈R(N+1)×d\mathbf{T}_{\mathrm{str}}^{(0)} \in\mathbb{R}^{(N+1)\times d} is the original Crystalite structural sequence, consisting of the NN atomic-site tokens and one global lattice token. The PXRD context depends only on the observed profile and is therefore reused across diffusion steps, whereas Tstr(0)\mathbf{T}_{\mathrm{str}}^{(0)} is recomputed from the current noisy crystal. Within each denoiser evaluation, the context and structural tokens are jointly processed by the Crystalite Transformer, allowing the atom and lattice tokens to attend to the diffraction representation throughout denoising.

PXRD augmentation

Overview. For simulated training data, we augment PXRD profiles online to mimic distortions commonly observed in experimental measurements. Starting from Bragg reflections computed for each crystal structure under Cu Kα\alpha radiation (λ=1.54184\lambda= 1.54184 Å), we first apply reflection-level perturbations to peak presence, position, and intensity. We then render the perturbed reflections into a dense profile using randomized pseudo-Voigt peak shapes and apply profile-level background and noise augmentation. The resulting profile is converted to the peak representation using the extraction procedure described in Appx. C.2. All random augmentation parameters are resampled whenever a training example is loaded.

Weak-peak removal. Weak-reflection removal has been used in prior PXRD augmentation schemes, including RealPXRD-Solver (Li et al., 2026), to model weak peaks that may be missing or unresolved in experimental patterns. We randomly remove a fraction of the lowest-intensity Bragg reflections during training. Let the simulated pattern contain MM reflections. We sample

rdrop∼U(0,rdropmax⁡),ndrop=⌊rdropM⌋,(24)r_{\mathrm{drop}} \sim\mathcal{U}(0,r_{\mathrm{drop}}^{\max}), \qquad n_{\mathrm{drop}} = \lfloor r_{\mathrm{drop}}M \rfloor, \tag*{(24)}

and remove the ndropn_{\mathrm{drop}} weakest reflections while retaining at least one reflection. In our experiments, we use rdropmax⁡=0.2r_{\mathrm{drop}}^{\max}=0.2.

Peak-position jitter. Following prior experiment-inspired PXRD augmentation (Li et al., 2026), we independently perturb the position of each retained reflection to model local peak-position errors:

2θi′=2θi+δi,δi∼U(−Δjitter,Δjitter).(25)2\theta_i^{\prime} = 2\theta_i + \delta_i, \qquad\delta_i \sim\mathcal{U}(-\Delta_{\mathrm{jitter}},\Delta_{\mathrm{jitter}}). \tag*{(25)}

Unlike the shared zero shift described below, these perturbations are sampled independently for individual reflections. We use Δjitter=0.2∘\Delta_{\mathrm{jitter}}=0.2^\circ.

Peak-intensity scaling. Prior PXRD augmentation schemes perturb relative peak intensities to improve robustness to experimental intensity distortions, including effects associated with preferred orientation (Li et al., 2026). We independently scale each retained reflection as

Ii′=siIi,si∼U(smin⁡,smax⁡).(26)I_i^{\prime}=s_i I_i, \qquad s_i \sim\mathcal{U}(s_{\min},s_{\max}). \tag*{(26)}

The perturbed intensities are then jointly rescaled so that their maximum matches that of the original reflection list. We use (smin⁡,smax⁡)=(0.6,1.4)(s_{\min},s_{\max})=(0.6,1.4).

This independent intensity scaling provides a simple approximation to experimental variations in relative peak intensities, including those that may arise from preferred orientation, but does not constitute a crystallographic preferred-orientation model because it does not depend on reflection orientation.

Zero shift. Global angular shifts have been used in physics-informed XRD augmentation to model systematic measurement offsets [24]. We apply a single shift shared by all reflections in a profile,

z∼U(−Δzero,Δzero),2θi′′=2θi′+z.(27)z \sim\mathcal{U}(-\Delta_{\mathrm{zero}},\Delta_{\mathrm{zero}}), \qquad2\theta_i^{\prime\prime}=2\theta_i^{\prime}+z. \tag*{(27)}

This perturbation models coherent offsets such as zero-point calibration or sample-displacement errors, in contrast to the independent peak-position jitter above. We use Δzero=0.3∘\Delta_{\mathrm{zero}}=0.3^\circ.

Pseudo-Voigt broadening. Prior PXRD models have incorporated peak broadening and profile-level augmentation to improve robustness to experimental diffraction patterns [27]. We render the perturbed Bragg reflections into a dense profile using pseudo-Voigt peak shapes.

The base full width at half maximum of reflection ii follows the Caglioti form

Hi(0)=Utan⁡2θi+Vtan⁡θi+W.(28)H_i^{(0)}=\sqrt{U\tan^2\theta_i+V\tan\theta_i+W}. \tag*{(28)}

We use

(U,V,W)=(0.1,0.01,0.1).(29)(U,V,W)=(0.1,0.01,0.1). \tag*{(29)}

To vary the overall broadening across profiles, we sample a profile-wide width scale

sw∼U(swmin⁡,swmax⁡),Hi=swHi(0).(30)s_w \sim\mathcal{U}(s_w^{\min},s_w^{\max}), \qquad H_i=s_w H_i^{(0)}. \tag*{(30)}

We use (swmin⁡,swmax⁡)=(0.4,2.2)(s_w^{\min},s_w^{\max})=(0.4,2.2).

We additionally sample one pseudo-Voigt mixing coefficient per profile,

η∼U(0,ηmax⁡),(31)\eta\sim\mathcal{U}(0,\eta_{\max}), \tag*{(31)}

with ηmax⁡=0.8\eta_{\max}=0.8, and render each reflection as

Pi(t)=Ii′[(1−η)exp⁡(−4ln⁡2(t−2θi′′Hi)2)+η11+4(t−2θi′′Hi)2](32)P_i(t)=I'_i\left[(1-\eta)\exp\left(-4\ln2\left(\frac{t-2\theta_i''}{H_i}\right)^2\right)+\eta\frac{1}{1+4\left(\frac{t-2\theta_i''}{H_i}\right)^2}\right] \tag*{(32)}

where tt denotes the 2θ2\theta coordinate. The broadened profile is P(t)=∑iPi(t)P(t)=\sum_i P_i(t).

Background augmentation. Smooth background variation is a common experimental artifact and has been included in physics-informed XRD augmentation pipelines [24]. We normalize the profile coordinate to u∈[−1,1]u\in[-1,1] and add a quadratic background

B(u)=Amax⁡(0,b0+b1u+b2u2).(33)B(u)=A\max(0,b_0+b_1u+b_2u^2). \tag*{(33)}

We sample

A∼U(0,Amax⁡),b0∼U(0,1),b1∼U(−0.5,0.5),b2∼U(0,0.5),(34)\begin{aligned} A&\sim U(0,A_{\max}), \quad b_0\sim U(0,1),\\ b_1&\sim U(-0.5,0.5), \quad b_2\sim U(0,0.5), \tag*{(34)} \end{aligned}

and use Amax⁡=0.35A_{\max}=0.35.

Gaussian noise. Additive noise is also commonly used to approximate measurement noise in experiment-inspired PXRD augmentation [24] (Li et al. 2026). We sample one noise scale per profile,

σn∼U(0,σnmax⁡),ϵj∼N(0,σn2),(35)\sigma_n\sim U(0,\sigma_n^{\max}), \qquad\epsilon_j\sim N(0,\sigma_n^2), \tag*{(35)}

and use σnmax⁡=0.04\sigma_n^{\max}=0.04. The final augmented profile is

P~j=normalize⁡max⁡[max⁡(0,Pj+Bj+ϵj)].(36)\widetilde{P}_j=\operatorname{normalize}_{\max}\left[\max(0,P_j+B_j+\epsilon_j)\right]. \tag*{(36)}

The resulting profile is processed using the same peak-extraction and encoding pipeline described in Appx. C.2.

Multiphase recovery pipeline

We construct the two-phase recovery pipeline by fine-tuning both XDecomposer [5] and the element-set-conditioned Bragglite on the simulated multiphase training set.

Ordered phase decomposition. Starting from the publicly available XDecomposer checkpoint, we fine-tune the model to produce an ordered decomposition of each mixed PXRD profile, with the first output corresponding to the dominant phase and the second to the minor phase. Given a mixed profile xmixx_{\mathrm{mix}}, the fine-tuned decomposer predicts

(x1,x2)=XDecomposer⁡(xmix),(37)(x_1,x_2)=\operatorname{XDecomposer}(x_{\mathrm{mix}}), \tag*{(37)}

where x1x_1 and x2x_2 are the predicted dominant- and minor-phase profiles, respectively. This ordering allows each decomposed profile to be paired with the oracle primitive-cell atom count of the corresponding phase, denoted by N1N_1 and N2N_2.

Phase-wise structure recovery. We additionally fine-tune the element-set-conditioned Bragglite on the multiphase training set so that it predicts each constituent structure from a phase-specific PXRD profile while receiving only mixture-level chemical information. Let

Emix=E1∪E2(38)\mathcal{E}_{\mathrm{mix}}=\mathcal{E}_1\cup\mathcal{E}_2 \tag*{(38)}

denote the element set of the full mixture. For each phase i∈{1,2}i\in\{1,2\}, the structure generator receives the decomposed profile xix_i, the shared mixture-level element set Emix\mathcal{E}_{\mathrm{mix}}, and the oracle atom count NiN_i:

Ci∼pθ(⋅∣xi,Emix,Ni).(39)C_i\sim p_\theta(\cdot\mid x_i,\mathcal{E}_{\mathrm{mix}},N_i). \tag*{(39)}

The two phases are generated independently using the same fine-tuned model.

At evaluation time, we therefore first decompose the mixed profile into ordered dominant- and minor-phase profiles, pair them with N1N_1 and N2N_2, respectively, and then apply Bragglite independently to recover the two structures. Importantly, the structure generator is not given phase-specific element sets or compositions; it must infer which elements from Emix\mathcal{E}_{\mathrm{mix}} belong to each phase, together with their multiplicities, atomic coordinates, and lattice.

Reference methods. For XRDdiff, we use the same ordered XDecomposer outputs as for Bragglite and apply the structure generator independently to the predicted dominant- and minor-phase profiles. XRDdiff additionally receives the phase-specific element set Ei\mathcal{E}_i and oracle atom count NiN_i for each phase, since we do not fine-tune XRDdiff to condition on the mixture-level element set.

MatterGen instead receives the shared mixture-level element set Emix\mathcal{E}_{\mathrm{mix}} and oracle atom count NiN_i for each phase, but does not condition on the decomposed PXRD profiles. For each phase and each reference method, we generate 20 candidate structures and evaluate dominant-, minor-, and all-phase recovery using the protocol in Appx. A.3.

Experimental details

In this section, we provide detailed experimental settings for the results reported in the main text, including our model architecture, training and evaluation configurations, and the training and evaluation settings of the benchmark baselines.

Model configurations

We train separate Bragglite models for the known-composition and element-set settings. All models use Crystalite’s PCA-16 subatomic type representation and Geometry Enhancement Module (GEM). PXRD observations are represented by up to 128 intensity-selected peaks, with peak extraction and preprocessing detailed in Appx. C.2.

PXRD encoder. We use a four-layer Transformer with hidden dimension 256 and eight attention heads as our PXRD encoder. Each peak is represented by (q,I,Δq,prominence)(q, I, \Delta q, \mathrm{prominence}), where q=2π/dq = 2\pi/d and Δq\Delta q is obtained by converting the detected angular peak width to qq space using the Jacobian at the peak center. We additionally encode qq using 16 logarithmically spaced Fourier frequencies with Fmax⁡=16F_{\max} = 16, yielding a 32-dimensional Fourier encoding. The encoder uses [CLS] pooling and a padding mask for variable-length peak sequences, with no dropout. The resulting PXRD embedding is projected to the Crystalite backbone width and injected into the token sequence for in-context conditioning.

Backbone architecture. We use the same Bragglite backbone configuration for models trained on PXRD-Bench and MP-20, with hidden dimension 512, 14 Transformer layers, and 16 attention heads. Each Transformer block uses a feed-forward expansion ratio of 4 with GELU activations, pre-LayerNorm without affine parameters, and no attention or feed-forward dropout. The backbone also applies an affine-free LayerNorm before the output heads. Time conditioning is incorporated through adaLN-Zero, while PXRD conditioning is provided in context as described above.

Coordinate embedding. Fractional atomic coordinates are first wrapped to [0,1)[0, 1) and encoded independently along each coordinate axis using integer Fourier frequencies k=1,…,32k = 1, \ldots, 32:

ϕ(f)=[sin⁡(2πkfj),cos⁡(2πkfj)]j=1,2,3; k=1,…,32(40)\phi(\mathbf{f}) = \left[\sin(2\pi k f_j), \cos(2\pi k f_j)\right]_{j=1,2,3;\,k=1,\ldots,32} \tag*{(40)}

This produces a 192-dimensional feature vector, which is mapped to the backbone hidden dimension by 192→512→512192 \to512 \to512 with a SiLU activation between the two linear layers. This coordinate encoding is separate from the Fourier encoding used for PXRD peak positions.

Noise conditioning. Following the EDM parameterization, we first transform the noise level as

cnoise=14log⁡σ.(41)c_{\mathrm{noise}} = \frac{1}{4}\log\sigma. \tag*{(41)}

We encode cnoisec_{\mathrm{noise}} using 128 fixed sinusoidal frequencies ωj=10000−j/128\omega_j = 10000^{-j/128} for j=0,…,127j = 0, \ldots, 127, producing a 256-dimensional embedding from sin⁡(2πcnoiseωj)\sin(2\pi c_{\mathrm{noise}}\omega_j) and cos⁡(2πcnoiseωj)\cos(2\pi c_{\mathrm{noise}}\omega_j). In our single-σ\sigma setting, the same 256-dimensional embedding is supplied to both noise-input slots and concatenated into a 512-dimensional vector. A two-layer MLP, 512→512→512512 \to512 \to512, with a SiLU activation maps this vector to the noise-conditioning embedding used for adaLN-Zero modulation in each Transformer block.

Geometry Enhancement Module. We use a single GEM shared across all Transformer layers. GEM computes head-specific attention biases once from the current noisy coordinates, lattice, and noise level, and reuses them across all 14 backbone layers. The distance bias, edge-bias MLP, and noise gate are therefore shared across layers.

Atom ordering and positional encoding. For the element-set model, we follow the atom-ordering scheme introduced in MCFlow (Seong et al., [29]), which organizes atoms according to their symmetry orbits. We first identify symmetry orbits using SpacegroupAnalyzer with symprec = 0.1 Å, grouping symmetry-related atoms of the same element into individual orbits. We then order the orbit blocks first by increasing Pauling electronegativity of the element and then by Wyckoff letter, while keeping atoms within each orbit contiguous.

During training, we apply a hierarchical orbit permutation to avoid dependence on an arbitrary atom enumeration. At the inter-orbit level, orbit blocks with the same element and the same Wyckoff label, including multiplicity, are randomly permuted without merging distinct orbits. At the intra-orbit level, atoms within each orbit block are independently permuted. The same permutation is applied jointly to atom types and fractional coordinates, while padding positions remain unchanged. Thus, the procedure changes only the ordering of atomic tokens and leaves the underlying crystal structure and PXRD pattern invariant. These random permutations are applied during training and disabled during validation and testing.

Together, this ordering and permutation scheme provides a consistent element- and symmetry-aware organization while avoiding dependence on any single equivalent atom enumeration. The element-set model further applies sinusoidal atom-slot positional encodings after ordering and permutation. These encodings specify atomic token positions and are distinct from the Fourier encoding of fractional atomic coordinates.

Output heads. The backbone predicts atom-type, coordinate, and lattice outputs using separate bias-enabled linear heads. The atom-type and coordinate heads operate on each atomic token and map 512→16512 \to16 and 512→3512 \to3, respectively, while the lattice head maps the lattice token from 512→6512 \to6 to predict the lower-triangular lattice latent. No additional activation is applied after these heads.

Their raw outputs are converted to denoised estimates using EDM preconditioning,

Dθ(x,σ)=cskip(σ)x+cout(σ)Fθ(⋅),(42)D_{\theta}(x,\sigma) = c_{\mathrm{skip}}(\sigma)x + c_{\mathrm{out}}(\sigma)F_{\theta}(\cdot), \tag*{(42)}

where

cskip(σ)=σdata2σ2+σdata2,cout(σ)=σσdataσ2+σdata2.(43)c_{\mathrm{skip}}(\sigma) = \frac{\sigma_{\mathrm{data}}^{2}}{\sigma^{2} + \sigma_{\mathrm{data}}^{2}}, \qquad c_{\mathrm{out}}(\sigma) = \frac{\sigma\sigma_{\mathrm{data}}}{\sqrt{\sigma^{2} + \sigma_{\mathrm{data}}^{2}}}. \tag*{(43)}

Here, σdata\sigma_{\mathrm{data}} denotes the data-scale parameter used in EDM preconditioning. Thus, the model heads predict continuous denoising outputs rather than categorical atom-type logits or coordinate velocities.

Table 11 summarizes the model configurations.

ComponentKnown compositionElement set +N+N
Backbone
Hidden dimension512
Transformer layers14
Attention heads16
FFN expansion ratio4
FFN activationGELU
NormalizationPre-LN
LayerNorm affine / ϵ\epsilonNo / 10−610^{-6}
Attention / FFN dropout0 / 0
Final normalizationAffine-free LN
Time conditioningadaLN-Zero
PXRD conditioningIn-context
Coordinate encodingFourier (kmax⁡=32k_{\max}=32)
Noise embedding
Input14log⁡σ\frac{1}{4}\log\sigma
Sinusoidal frequencies / dimension128 / 256
MLP512→512→512512 \to512 \to512
ActivationSiLU
Geometry Enhancement Module
Sharing across layersShared
Distance / edge biasYes
Noise gateYes
PXRD encoder
Hidden dimension256
Transformer layers4
Attention heads8
Pooling[CLS]
Dropout0
Peak position encodingFourier (Fmax⁡=16F_{\max}=16, d=32d=32)
Output heads
Coordinate512→3512 \to3
Lattice512→6512 \to6
Head activationNone
Setting-specific configuration
Atom-type headUnused512→16512 \to16
Atom orderingNoneMCFlow
Atom-slot positional encodingNoneSinusoidal
Parameters71.01M71.32M

Table 11. Bragglite model configurations. All configurations are shared between the known-composition and element-set models unless specified otherwise. Parameter counts include the PXRD encoder and conditioning modules.

Training objective and optimization

Training objective. All Bragglite models are trained with the EDM denoising objective used by the Crystalite backbone. We combine the atom-type, fractional-coordinate, and lattice losses as

L=λHLH+λFLF+λLLL(44)\mathcal{L} = \lambda_H \mathcal{L}_H + \lambda_F \mathcal{L}_F + \lambda_L \mathcal{L}_L \tag*{(44)}

where LH\mathcal{L}_H, LF\mathcal{L}_F, and LL\mathcal{L}_L denote the atom-type, fractional-coordinate, and lattice denoising losses, respectively. For the known-composition model, atom types remain fixed throughout diffusion, so the atom-type loss is inactive and we use (λH,λF,λL)=(0,50,5)(\lambda_H,\lambda_F,\lambda_L) = (0,50,5). For the element-set model, atom types are jointly denoised with coordinates and lattice parameters, and we use (64,150,5)(64,150,5).

The two settings also use different EDM noise distributions. For known composition, we sample

log⁡σ∼N(−1.2,1.22)(45)\log\sigma\sim\mathcal{N}(-1.2,1.2^2) \tag*{(45)}

with (σmin⁡,σmax⁡)=(0.002,80)(\sigma_{\min},\sigma_{\max}) = (0.002,80) for coordinates and lattice variables; atom types remain fixed and are not noised. For element-set conditioning, we instead use

log⁡σ∼N(−1.2,1.52)(46)\log\sigma\sim\mathcal{N}(-1.2,1.5^2) \tag*{(46)}

with (σmin⁡,σmax⁡)=(0.001,40)(\sigma_{\min},\sigma_{\max}) = (0.001,40) for atom types, coordinates, and lattice variables. Table 12 summarizes these objective settings.

Known compositionElement set +N+N
Loss weights (λH,λF,λL)(\lambda_H,\lambda_F,\lambda_L)(0,50,5)(0,50,5)(64,150,5)(64,150,5)
EDM (Pmean,Pstd)(P_{\mathrm{mean}},P_{\mathrm{std}})(−1.2,1.2)(-1.2,1.2)(−1.2,1.5)(-1.2,1.5)
EDM (σmin⁡,σmax⁡)(\sigma_{\min},\sigma_{\max})(0.002,80)(0.002,80)(0.001,40)(0.001,40)

Table 12. Diffusion-objective settings. Loss weights and EDM noise-distribution parameters for the two chemical-input settings.

Optimization. We train all models with AdamW [20] using (β1,β2)=(0.9,0.999)(\beta_1,\beta_2) = (0.9,0.999) and zero weight decay. We clip the global gradient norm at 1.0, use bfloat16 precision, and maintain an exponential moving average (EMA) of the model parameters with decay 0.9999. Learning-rate settings depend on the chemical-input setting. The known-composition model uses a learning rate of 2×10−42 \times10^{-4} with 1,000 linear warmup steps followed by a constant learning rate, whereas the element-set model uses a learning rate of 1×10−41 \times10^{-4} with 500 warmup steps followed by cosine decay. Table 13 summarizes these conditioning-specific settings.

Known compositionElement set +N+N
Learning rate2×10−42 \times10^{-4}1×10−41 \times10^{-4}
LR scheduleConstantCosine decay
Warmup steps1,000500

Table 13. Conditioning-specific optimization settings.

Training budgets depend on the training corpus. Models trained on MP-20, which contains structures with at most 20 atoms, are trained for 800K optimizer steps with a batch size of 512. Models trained on PXRD-Bench, which allows up to 52 atoms, are trained for 4M optimizer steps with a batch size of 256. These budgets correspond to approximately 15K and 250 epochs, respectively. All runs use a single NVIDIA RTX 3090 GPU without gradient accumulation and a training seed of 123. Table 14 summarizes these corpus-specific settings.

MP-20PXRD-Bench
Maximum atom count Nmax⁡N_{\max}2052
Training steps800K4M
Approx. epochs∼\sim15K∼\sim250
Batch size512256
GPUs / gradient accumulation1 / 11 / 1
Training seed123123

Table 14. Corpus-specific training settings.

Ablation training settings. Unless otherwise specified, the ablation experiments use the same MP-20 architecture, training objective, and optimization settings described above. Each ablation model is trained from scratch for 200K optimizer steps, corresponding to approximately 3,846 epochs, and comparisons use the final 200K-step EMA checkpoint rather than validation-based checkpoint selection.

For the augmentation ablation, we train three independent models with training seeds {123, 124, 125}. Each trained model is evaluated using five sampling seeds {777, 778, 779, 780, 781}. We first average over the five sampling seeds for each trained model and then report the mean and standard deviation across the three training seeds.

For the peak-representation and encoding studies, we instead train a single model with training seed 123 and evaluate it using the same five sampling seeds. For the representation and encoding studies, we keep the full augmentation setting fixed and vary only the component under study. For the augmentation ablation, we vary the specified augmentation components while keeping the remaining training configuration fixed. Table 15 summarizes the settings that differ from the main training protocol.

SettingValue
Training steps200K (∼\sim3,846 epochs)
CheckpointFinal 200K-step EMA checkpoint
Training seed (representation)123
Training seeds (augmentation){123, 124, 125}
Sampling seeds{777, 778, 779, 780, 781} per training run

Table 15. Ablation training settings. Settings that differ from the main training protocol.

Multiphase fine-tuning. We initialize the phase-wise structure generator from the pretrained element-set Bragglite checkpoint and fine-tune it on the simulated multiphase training set. We use AdamW with a learning rate of 1×10−51 \times10^{-5}, 500 linear warmup steps followed by cosine decay, and a batch size of 128 phase examples. We fine-tune the model for 50K optimizer steps using a training seed of 123.

XDecomposer is initialized from its publicly released checkpoint and fine-tuned separately on the simulated multiphase training set. We use AdamW with an initial learning rate of 3×10−63 \times10^{-6}, reducing the learning rate by a factor of two when the validation metric plateaus. We use a batch size of 16 mixtures and fine-tune for 100K optimizer steps, corresponding to approximately 21 epochs, with a training seed of 123.

For both models, we use the final fine-tuned checkpoint for evaluation.

Sampling and checkpoint selection

Sampling. At inference time, we sample from the EMA model using the stochastic Heun sampler from EDM (Karras et al., [15]). For each input PXRD pattern, we run 150 sampling steps and generate 20 candidate structures. The same sampling procedure is used for models trained on MP-20 and PXRD-Bench. We follow the sampling configuration of Crystalite (Hadži Veljković et al., [6]), including the Karras noise schedule, stochastic churn, and anti-annealing settings. Table 16 summarizes the sampler configuration.

SettingKnown compositionElement set +NN
Solver / stepsHeun / 150
Noise scheduleKarras, ρ=7\rho= 7
SchurnS_{\mathrm{churn}}60
Churn range [Smin⁡,Smax⁡][S_{\min}, S_{\max}][0,999][0, 999]
SnoiseS_{\mathrm{noise}}1.003
σdata\sigma_{\mathrm{data}}0.3
Anti-annealing (H,F,L)(H, F, L)(0,10,10)(0, 10, 10)(4,4,4)(4, 4, 4)

Table 16. Sampling configurations. Settings are shared across MP-20 and PXRD-Bench and follow the Crystalite sampling configuration.

Checkpoint selection. We select checkpoints using a fixed random subset of 512 structures from the simulated PXRD validation set. Every 10K training steps, we evaluate one generated candidate per validation structure and compute the top-1 structure match rate. We report the EMA weights from the checkpoint with the highest validation top-1 match rate rather than automatically using the final training checkpoint.

Baseline configurations

We use the publicly released implementation of each baseline rather than reimplementing the models. Across training corpora, all baselines are trained using Adam with (β1,β2)=(0.9,0.999)(\beta_1, \beta_2) = (0.9, 0.999), ϵ=10−8\epsilon= 10^{-8}, and no weight decay. We use a training seed of 42, a single NVIDIA GeForce RTX 3090 GPU, no gradient accumulation, and elementwise gradient clipping at a maximum absolute value of 0.5. For all baselines, we maintain exponential moving average (EMA) parameters and use EMA checkpoints for evaluation.

PXRD-Bench training. For baselines trained on PXRD-Bench, we use a batch size of 256 and initialize the learning rate to 10−310^{-3}. We use ReduceLROnPlateau, monitoring the Top-1 structure match rate on a fixed subset of 512 structures from the simulated validation set. The learning rate is reduced by a factor of two if this metric does not improve for five epochs, and training is terminated when the learning rate would fall below 10−510^{-5}. We select the EMA checkpoint with the highest monitored validation Top-1 match rate for evaluation.

MP-20 training. For baselines trained on MP-20 or MP-20-polymorph-split, we use the same optimization protocol but a longer learning-rate patience and a fixed maximum training budget. Starting from a learning rate of 10−310^{-3}, we use ReduceLROnPlateau with a patience of 30 epochs and a minimum learning rate of 10−510^{-5}, again monitoring the Top-1 structure match rate on a fixed subset of 512 structures from the corresponding simulated validation set. Training is run for at most 300K optimizer steps, and we use the EMA checkpoint with the highest monitored validation Top-1 match rate for evaluation.

DiffCSP. DiffCSP (Jiao et al., [13]) serves as a composition-only CSP baseline and does not receive PXRD input. We condition the model on the exact primitive-cell composition and use a six-layer CSPNet with hidden dimension 512 and a time-embedding dimension of 256. The diffusion process uses 1,000 steps.

XRDiff. For XRDiff (Segal et al., [27]), the PXRD profile is represented on 850 bins over 2θ∈[5∘,90∘]2\theta\in[5^\circ, 90^\circ]. We retain up to the 20 strongest detected peaks and represent each peak using its intensity, position, prominence, and width, yielding an 80-dimensional fixed-size PXRD feature. The structure generator uses a six-layer CSPNet with hidden dimension 512 and FiLM conditioning on the PXRD representation. We do not apply additional stochastic PXRD augmentation during training. We train both the known-composition and element-set +N+N variants; for the latter, the atom types are additionally predicted and included in the training objective.

RealPXRD-Solver. RealPXRD-Solver (Li et al., 2026) uses a 750-bin profile over 2θ∈[5∘,80∘]2\theta\in[5^\circ, 80^\circ], from which a Bragg-stick representation is constructed. We use its two-layer Transformer PXRD encoder together with a six-layer CSPNet of hidden dimension 512. For simulated-to-experimental transfer, we follow the PXRD augmentation procedure described in the original method.

PXRDGen. PXRDGen (Li et al., 2025) receives a 7,500-bin Bragg-derived PXRD profile over 2θ∈[5∘,80∘]2\theta\in[5^\circ, 80^\circ]. We first contrastively pretrain its PXRD CNN encoder on the PXRD-Bench training corpus and subsequently train the diffusion model while continuing to update the CNN jointly. We use a contrastive temperature of 1.0 and do not use an externally pretrained PXRD encoder.

Crystalyze. Crystalyze [25] operates on an 8,500-bin PXRD profile using its PXRD CNN encoder, a latent dimension of 256, and a GemNet-T structure decoder. During training, we sample one of the four provided Caglioti broadening settings and add the publicly released RRUFF-derived Gamma background-noise augmentation. We do not apply an additional peak-intensity modulation.

Baseline sampling. For each baseline, we use the default sampling procedure provided by its public implementation. Crystalyze uses 5,000-step annealed Langevin dynamics. DiffCSP, XRDiff, and PXRDGen use 1,000 predictor–corrector sampling steps, corresponding to 2,000 neural network evaluations. RealPXRD-Solver uses a 200-step Euler integrator.

Compute resources

All Bragglite models are trained on a single NVIDIA GeForce RTX 3090 GPU with 24 GB of memory. Table 17 reports the training configuration and computational cost of the main Bragglite configurations, including batch size, number of optimization steps, wall-clock training time, and peak GPU memory usage.

Training data / inputBatch sizeStepsTime (h)Peak memory (GiB)
PXRD-Bench / Known composition2564M200.187.97
PXRD-Bench / Element set2564M201.297.98
MP-20 / Known composition512800K37.107.15
MP-20 / Element set512800K37.897.16

Table 17. Table 17 Training cost. Wall-clock training time and peak GPU memory usage for the main Bragglite configurations. All models are trained on a single NVIDIA GeForce RTX 3090 GPU.

Qualitative examples

We provide visualizations of representative predictions from the evaluated models in Figure 9.

Qualitative comparison for Skutterudite

(a) Skutterudite.

Qualitative comparison for Stolzite

(b) Stolzite.

Figure 9. Qualitative comparison of structures generated by PXRDGen, XRDiff, and Bragglite on experimental PXRD patterns, using Skutterudite and Stolzite examples from the RRUFF test split. For each method, the generated crystal structure and its simulated PXRD pattern are shown alongside the reference structure and experimental pattern. The reported rr denotes the correlation between the simulated and experimental PXRD profiles.

Scope and limitations

Candidate generation vs. end-to-end determination. Our benchmark focuses on the candidate-generation stage of PXRD-based structure determination rather than complete end-to-end crystallographic analysis. We evaluate generated structures before downstream refinement and use Top-KK structural match rate as a direct and reproducible measure of structure recovery. This enables controlled comparison of generative models without confounding differences in refinement or other post-processing procedures. However, structural match rate is not equivalent to end-to-end structure-determination success: unmatched candidates may still be refinable to the correct structure, while matched candidates do not necessarily guarantee successful refinement against the measured pattern. Developing standardized automated refinement and validation procedures with minimal expert intervention would enable more complete end-to-end evaluation and is an important direction for future work.

Oracle atom counts. A limitation of the current benchmark is that the primitive-cell atom count is provided as oracle information. As in many diffusion-based crystal structure prediction and generation models, the number of atomic sites is specified before structure generation. Thus, our element-set setting requires the model to infer elemental multiplicities but not the total atom count, while the two-phase setting provides the atom count of each constituent phase. A more general formulation would infer this quantity from the chemical and diffraction information, for example by learning an atom-count distribution or predicting the count jointly with the crystal structure.

Limited experimental PXRD data. A further limitation is the availability of experimental PXRD data paired with reliable structural labels. Publicly available measured PXRD patterns are limited, particularly when a corresponding crystal structure is required as a trustworthy reference for evaluation or training. This constrains both the scale and coverage of experimental benchmarks and the ability to study adaptation directly on measured diffraction data. Building larger experimental PXRD datasets with reliable and traceable structure annotations would enable broader evaluation across materials and measurement conditions, as well as systematic study of experimental fine-tuning and adaptation.

References

  1. [1]Angela Altomare. Solving molecular compounds from powder diffraction data: Are results always reliable? IUCrJ, 9: 403–405, 2022. doi: 10.1107/S2052252522006571.DOI
  2. [2]Théo Cavignac et al. AI-driven expansion and application of the Alexandria database. Journal of Physics: Materials, 9(2):025014, 2026. doi: 10.1088/2515-7639/ae6620.DOI
  3. [3]Stefano Curtarolo, Wahyu Setyawan, Gus L. W. Hart, Michal Jahnatek, Roman V. Chepulskii, Richard H. Taylor, Shidong Wang, Junkai Xue, Kesong Yang, Ohad Levy, Michael J. Mehl, Harold T. Stokes, Denis O. Demchenko, and Dane Morgan. AFLOW: An automatic framework for high-throughput materials discovery. Computational Materials Science, 58:218–226, 2012. doi: 10.1016/j.commatsci.2012.02.005.DOI
  4. [4]William I. F. David and Kenneth Shankland. Structure determination from powder diffraction data. Acta Crystallographica Section A, 64(1):52–64, 2008. doi: 10.1107/S0108767307046252.
  5. [5]Hanyu Gao, Bin Cao, Yunyue Su, Tong-Yi Zhang, and Qiang Liu. XDecomposer: Learning prior-free set decomposition for multiphase X-ray diffraction, 2026.arxiv.org/abs/2605.05866
  6. [6]Tin Hadži Veljković, Joshua Rosenthal, Ivor Lončarić, and Jan-Willem van de Meent. Crystalite: A lightweight transformer for efficient crystal modeling, 2026.
  7. [7]Kenneth D. M. Harris, Maryjane Tremayne, and Benson M. Kariuki. Contemporary advances in the use of powder X-ray diffraction for structure determination. Angewandte Chemie International Edition, 40(9):1626–1651, 2001. doi: 10.1002/1521-3773(20010504)40:9<1626::AID-ANIE16260>3.0.CO;2-7.doi.org/10.1002/1521-3773(20010504)40:9<1626::aid-anie16260>3.0.co;2-7
  8. [8]R. J. Hill and C. J. Howard. Quantitative phase analysis from neutron powder diffraction data using the Rietveld method. Journal of Applied Crystallography, 20(6):467–474, 1987. doi: 10.1107/S0021889887086199.DOI
  9. [9]Daniel Hollarek, Henrik Schopmans, Jona Östreicher, Jonas Teufel, et al. opXRD: Open experimental powder X-ray diffraction database. Advanced Intelligent Discovery, 2:e202500044, 2026. doi: 10.1002/aidi.202500044.DOI
  10. [10]Matthew K. Horton, Patrick Huck, Ruo Xi Yang, Jason M. Munro, Shyam Dwaraknath, Alex M. Ganose, Ryan S. Kingsbury, Mingjian Wen, Jimmy X. Shen, Tyler S. Mathis, et al. Accelerated data-driven materials science with the Materials Project. Nature, 638:88–95, 2025. doi: 10.1038/s41586-025-08628-5.
  11. [11]Yusei Ito, Naoya Chiba, Tatsunori Taniai, Ryo Igarashi, Yuta Suzuki, Kotaro Saito, Yoshitaka Ushiku, and Kanta Ono. Enabling single-observation decomposition of multi-phase X-ray diffraction patterns via generative deep learning. npj Computational Materials, 12:238, 2026. doi: 10.1038/s41524-026-02087-w.DOI
  12. [12]Anubhav Jain, Shyue Ping Ong, Geoffrey Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Dan Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, and Kristin A. Persson. Commentary: The materials project: A materials genome approach to accelerating materials innovation. APL Materials, 1(1):011002, 2013.DOI
  13. [13]Rui Jiao, Wenbing Huang, Peijia Lin, Jiaqi Han, Pin Chen, Yuntong Lu, and Yang Liu. Crystal structure prediction by joint equivariant diffusion. Advances in Neural Information Processing Systems, 36:17464–17497, 2023.arxiv.org/abs/2309.04475
  14. [14]James A. Kaduk, Simon J. L. Billinge, Robert E. Dinnebier, Nathan Henderson, Ian Madsen, Radovan Černý, Matteo Leoni, Luca Lutterotti, Seema Thakral, and Daniel Chateigner. Powder diffraction. Nature Reviews Methods Primers, 1:77, 2021. doi: 10.1038/s43586-021-00074-7.DOI
  15. [15]Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. Advances in neural information processing systems, 35:26565–26577, 2022.arxiv.org/abs/2206.00364
  16. [16]Scott Kirklin, James E. Saal, Bryce Meredig, Alex Thompson, Jeff W. Doak, Muratahan Aykol, Stephan Rühl, and Chris Wolverton. The open quantum materials database (OQMD): Assessing the accuracy of DFT formation energies. npj Computational Materials, 1:15010, 2015. doi: 10.1038/npjcompumats.2015.10.DOI
  17. [17]Barbara Lafuente, Robert T. Downs, Hexiong Yang, and Nate Stone. The power of databases: The RRUFF project. In Highlights in Mineralogical Crystallography, pages 1–30. De Gruyter, 2015.
  18. [20]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
  19. [22]Artem R. Oganov, Chris J. Pickard, Qiang Zhu, and Richard J. Needs. Structure prediction drives materials discovery. Nature Reviews Materials, 4:331–348, 2019. doi: 10.1038/s41578-019-0101-8.DOI
  20. [23]Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffrey Hautier, Michael Kocher, Dan Cholia, Dan Gunter, Vincent L. Chevrier, Kristin A. Persson, and Gerbrand Ceder. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013.DOI
  21. [24]Felipe Oviedo, Zekun Ren, Shijing Sun, Charles Settens, Zhe Liu, Noor Titan Putri Hartono, Savitha Ramasamy, Brian L DeCost, Siyu IP Tian, Giuseppe Romano, et al. Fast and interpretable classification of small x-ray diffraction datasets using data augmentation and deep neural networks. npj Computational Materials, 5(1):60, 2019.
  22. [25]Eric A. Riesel, Tsach Mackey, Hamed Nilforoshan, Minkai Xu, Catherine K. Badding, Alison B. Altman, Jure Leskovec, and Danna E. Freedman. Crystal structure determination from powder diffraction patterns with generative machine learning. Journal of the American Chemical Society, 146(44):30340–30348, 2024. doi: 10.1021/jacs.4c10244.DOI
  23. [26]Frisco Rose, Cormac Toher, Eric Gossett, Corey Oses, Marco Buongiorno Nardelli, Marco Fornari, and Stefano Curtarolo. AFLUX: The LUX materials search API for the AFLOW data repositories. Computational Materials Science, 137:362–370, 2017. doi: 10.1016/j.commatsci.2017.04.036.DOI
  24. [27]Nofit Segal, Mingda Li, Benjamin Kurt Miller, and Rafael Gómez-Bombarelli. XRDiff: Crystal structure prediction from powder X-ray diffraction data using diffusion models, 2026a.arxiv.org/abs/2606.14003
  25. [28]Nofit Segal, Akshay Subramanian, Mingda Li, Benjamin Kurt Miller, and Rafael Gómez-Bombarelli. The loss landscape of powder x-ray diffraction-based structure optimization is too rough for gradient descent. Digital Discovery, 5(4): 1590–1599, 2026b.arxiv.org/abs/2512.04036
  26. [29]Kiyoung Seong, Sungsoo Ahn, Sehui Han, and Changyoung Park. Multimodal crystal flow: Any-to-any modality generation for unified crystal modeling. arXiv preprint arXiv:2602.20210, 2026.arxiv.org/abs/2602.20210
  27. [30]P. Thompson, D. E. Cox, and J. B. Hastings. Rietveld refinement of debye–scherrer synchrotron X-ray data from Al2O3. Journal of Applied Crystallography, 20(2):79–83, 1987. doi: 10.1107/S0021889887087090.DOI
  28. [31]Xinyang Tong, Ethan Jin, Jiah an Xu, Aditya Rao, Pengcen Jiang, and Nathan J Szymanski. Scalable machine learning framework for multiphase identification from powder x-ray diffraction. arXiv preprint arXiv:2609.06908, 2026.arxiv.org/abs/2609.06908
  29. [32]Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, et al. SciPy 1.0: Fundamental algorithms for scientific computing in python. Nature Methods, 17:261–272, 2020.
  30. [33]Lai Wei, Sadman Sadeed Omee, Rongzhi Dong, Nihang Fu, Yuqi Song, Edirisuriya M. D. Siriwardane, Meiling Xu, Chris Wolverton, and Jianjun Hu. CSPBench: A benchmark and critical evaluation of crystal structure prediction, 2024.arxiv.org/abs/2407.00733
  31. [34]Claudio Zeni, Robert Pinsler, Daniel Zügner, Andrew Fowler, Matthew Horton, Xiang Fu, Zilong Wang, Aliaksandra Shysheya, Jonathan Crabbé, Shoko Ueda, et al. A generative model for inorganic materials design. Nature, 639 (8055):624–632, 2025.DOI

AI tools statement

This work lists 2 AI tools.

  • ChatGPT · AI tool

    Roles
    Data curationFormal AnalysisMethodologyValidationVisualizationWriting — original draftWriting — review & editing
    Verification
    self-declared at submission
  • Codex · AI tool

    Roles
    Data curationFormal AnalysisMethodologyValidationVisualizationWriting — original draftWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type