A Prototype-Guided Solver for Crystal Structure Determination from Powder X-ray Diffraction

Yusei Ito, Yuki Nishihori, Kanta OnoAI4Mat @ NeurIPS 2026

TL;DR

Determining a crystal's 3D atomic structure from a 1D powder X-ray diffraction (PXRD) pattern is notoriously hard, and modern AI models often struggle because they search over an enormous, unrestricted space of possible atomic arrangements. ProtoGPS flips the script: instead of generating structures from scratch, it recognizes that most inorganic crystals belong to a small family of known crystallographic "prototypes" (like rocksalt or perovskite). By first identifying the right prototype and then fine-tuning just a few prototype-specific parameters, ProtoGPS outperforms existing generative baselines by a wide margin.

What Problem Does This Paper Address?

Powder X-ray diffraction (PXRD) is one of the workhorse tools of materials science. Shine X-rays at a powdered crystal, and you get a 1D pattern of peaks that acts like a structural fingerprint. The catch? Compressing a 3D crystal into a 1D pattern throws away a lot of information. Working backward from that 1D pattern to reconstruct the exact 3D arrangement of atoms is a classic, punishing inverse problem.

Historically, crystallographers solved this using multi-step inference and optimization, often leaning heavily on expert intuition. Recently, machine learning—especially generative models—entered the scene, attempting to predict atomic coordinates and lattice parameters directly from PXRD data. However, these data-driven models treat crystals as wildly flexible objects, searching through a vast, continuous space of 3D atomic positions. In reality, nature is much more conservative: most experimentally observed inorganic crystals fall into a relatively small number of recurring structural templates, known as crystallographic prototypes.

Methods

ProtoGPS (Prototype-Guided PXRD Solver) replaces unrestricted 3D structure generation with a discrete search over known prototypes, followed by low-dimensional optimization.

A crystallographic prototype specifies a crystal's underlying symmetry and its occupied Wyckoff positions (sets of atomic sites constrained by space-group symmetry). Once you pick a prototype, a specific crystal is defined by just three things:

  1. Which chemical elements sit on which Wyckoff positions ($\pi$).
  2. The symmetry-compatible lattice parameters ($\ell$).
  3. Any remaining free positional parameters ($\mathbf{u}$).

For example, in the rocksalt prototype (think table salt, NaCl), cubic symmetry locks the lattice to $a = b = c$ and fixes the atomic positions, leaving only a single independent lattice parameter to optimize.

Figure 1: Overview of ProtoGPS. Given a chemical composition and an experimental PXRD pattern, ProtoGPS retrieves compatible crystallographic prototypes, refines their lattice parameters, and optimizes elemental site assignments and remaining structural parameters. The final structure is selected based on agreement with the observed PXRD pattern.

To avoid the computational cost of optimizing every detail for every possible prototype, ProtoGPS uses a two-stage hierarchical search:

  • Stage 1: Prototype search. Given a target chemical composition and an observed PXRD pattern, ProtoGPS retrieves all compatible prototypes from a library. It initializes each candidate's lattice by rescaling a reference structure based on expected bond-length changes for the target elements. It then optimizes the lattice parameters $\ell$ to align the simulated diffraction peaks with the observed ones, keeping only the top-$K$ candidates.
  • Stage 2: Site assignment and positional refinement. For the surviving top-$K$ prototypes, ProtoGPS exhaustively enumerates all valid elemental assignments $\pi$ to the Wyckoff positions, fixes the lattice parameters from Stage 1, and refines the free positional parameters $\mathbf{u}$ to maximize agreement with the observed PXRD pattern. The best-matching structure wins.

Datasets

The authors evaluated ProtoGPS using the MP-20 dataset (45,229 crystal structures from the Materials Project database), sticking to its official train, validation, and test splits:

  • Prototype Library: Built from the 100 most frequent prototypes found in the training and validation splits.
  • Benchmark Test Set: 2,638 held-out test structures belonging to the 20 most frequent prototypes, evaluated using simulated PXRD patterns that include simulated experimental noise and perturbations.
  • (Note: The paper also mentions additional evaluations on the full MP-20 test set and experimentally measured PXRD patterns in its appendices.)

Key Insights and Ideas

  • Constraints are a superpower: Treating crystals as arbitrary 3D point clouds forces generative models to waste capacity on physically implausible geometries. Constraining the search to known prototypes dramatically shrinks the problem space.
  • Peaks first, details second: Diffraction peak positions are governed primarily by the crystal lattice. By screening prototypes using only lattice optimization first, ProtoGPS quickly filters out incompatible structural families before spending compute on atomic site assignments and fine positional tuning.
  • Non-nested accuracy: Interestingly, structure accuracy and prototype accuracy aren't strictly nested—a more flexible prototype can sometimes refine into a geometrically equivalent crystal structure even if its formal prototype label differs from the ground truth.

Key Results

On the 2,638-structure simulated PXRD benchmark, ProtoGPS substantially outperformed the existing generative baseline, PXRDGen, across every metric:

  • Structure accuracy (matching the ground-truth 3D structure): jumped from 0.3343 (PXRDGen) to 0.5845 (ProtoGPS).
  • Prototype accuracy: improved from 0.2824 to 0.3343.
  • Lattice recovery: saw the most dramatic gains. At the strict $<1\%$ relative error threshold across all three lattice lengths, accuracy nearly tripled from 0.1080 to 0.3025 (and improved from 0.2119 to 0.3139 at $<5\%$, and 0.2324 to 0.3252 at $<10\%$).

Limitations and Future Work

The authors highlight two main limitations:

  1. Closed-world assumption: ProtoGPS assumes the target crystal's structure exists in its prototype library. If a material adopts a genuinely novel or uncatalogued structure, the solver currently has no way to recover it. Future work will explore a fallback mechanism that switches to a more general structure-solution method when no prototype fits.
  2. Limited experimental validation: While preliminary tests on real, measured PXRD patterns are promising, broader evaluation across larger experimental databases—covering more compositions, crystal systems, and measurement conditions—is needed to prove real-world robustness.

Summary updated

BibTeX
@inproceedings{ito2026prototype,
  author = {Yusei Ito and Yuki Nishihori and Kanta Ono},
  title = {{A Prototype-Guided Solver for Crystal Structure Determination from Powder X-ray Diffraction}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=azBYe3Yuux},
}

Loading related content...

Figure