Developing a Crystal Structure Prediction Algorithm with Agent-Guided Search

Kiyoung Seong, Nayoung Kim, Sungsoo AhnAI4Mat @ NeurIPS 2026

TL;DR

Can an AI research agent actually push the state of the art on a real scientific problem? By pairing an autonomous tree-search agent with four targeted human nudges, researchers developed MaskGXT, a masked generative transformer that predicts 3D crystal structures from chemical compositions alone—beating all existing diffusion and flow-based baselines on standard benchmarks.

What Problem Does This Paper Address?

This paper tackles two intertwined challenges:

  1. Can AI agents do frontier ML research? While language-model agents can write code and run experiments, concrete proof that they can advance the state of the art on established benchmarks remains scarce.
  2. Crystal Structure Prediction (CSP): Given only a list of atoms (like $\text{TiO}_2$), how do we predict the stable 3D lattice and atomic coordinates they form? Most modern CSP models rely on continuous diffusion or flow matching, which require slow, iterative integration at sampling time. Because CSP sits at a niche intersection of crystallography and generative modeling—with affordable training and clear metrics—it is an ideal testbed for human–agent collaboration.

Methods

The authors built an agentic search loop (on top of AIDE, orchestrated by Claude Opus 4.7) that explored 18 generative framework–architecture pairs under a 2-hour discovery budget, before scaling promising candidates to 12-hour training and 30-minute sampling budgets.

Figure 1: Search trajectory that produced MaskGXT. Validation METRe against the number of trials. Each gray point is one trained, scored candidate; the black step line is the running best. Blue markers are components the agent introduced; orange markers are the four human interventions. Shaded regions give the per-candidate budget: 2h, then 12h training, then 30m sampling.

While the agent handled most of the engineering—from selecting masked discrete diffusion to tuning learning rates and SwiGLU blocks—a human stepped in with four targeted interventions when the search hit crystallographic blind spots:

  • Symmetry tokens: Jointly predicting the crystal's space group and Wyckoff positions alongside its geometry.
  • Orbit permutation: Shuffling atoms only within symmetry-equivalent orbits rather than across all $N!$ orders.
  • Sub-bin offset: Adding a lightweight regression head to recover continuous coordinate precision.
  • Polymorph sampling: Branching over space groups at inference time to capture multiple valid crystal forms.

The resulting model, MaskGXT, casts a crystal as a discrete sequence of $1 + 6 + 5N$ tokens (one space group, six lattice parameters, and five tokens per atom: three quantized coordinates, a Wyckoff token, and the given atom type). To make discrete masked modeling work for continuous, periodic 3D geometry, MaskGXT introduces:

  • Circular ordinal label smoothing: Because fractional coordinates wrap around $[0, 1)$, coordinate bins sit on a circle. Soft targets penalize near-misses less than far-misses.
  • Sub-bin coordinate refinement: A bounded regression head ($\delta \in (-1/2, 1/2)$) shifts each predicted bin center to restore continuous precision.
  • Space-group-stratified sampling: At inference, MaskGXT computes the space-group posterior from a fully masked sequence, branches across the top-$S$ most likely space groups, and deterministically unmasks the remaining tokens by confidence over 150 steps.
MaskGXT sampling

Datasets

MaskGXT is evaluated on three inorganic-crystal benchmarks:

  • MP-20 and MPTS-52: Standard one-to-one CSP benchmarks, where MPTS-52 is a larger, harder test set.
  • MP-20 polymorph split: A recent repartitioning of MP-20 by composition rather than structure, ensuring all polymorphs (different crystal structures with the same chemical formula) of a test composition are evaluated together.

Key Insights and Ideas

  • Masked discrete diffusion dominated continuous baselines early: Under the initial 2-hour budget, masked discrete diffusion with a bidirectional transformer hit 72.96% validation METRe, outperforming consistency models (45.03%) and Bayesian Flow Networks (42.24%) by a wide margin.
  • Stratified decoding drives polymorph coverage: Ablations show that removing space-group stratification causes the largest drop in METRe (from 79.75% down to 75.43%). Without it, greedy decoding collapses onto a single dominant structure.
  • Discretization doesn't have to sacrifice precision: Adding the sub-bin offset head keeps discretized coordinates competitive with continuous diffusion models, cutting corrected RMSE (cRMSE) from 0.1361 to 0.1282.

Key Results

MaskGXT (248M parameters) achieves the highest match rates across all three benchmarks while using 5–8× less training compute than the strongest baseline, Crystalite (270M parameters):

  • MP-20: 73.97% / 67.36% match rate (unfiltered/filtered), beating Crystalite's 72.10% / 66.05%. (Even a 30M-parameter MaskGXT beats Crystalite's match rate on MP-20.)
  • MPTS-52: 37.21% / 33.97% match rate, compared to Crystalite's 33.99% / 31.49%.
  • MP-20 polymorph split: 79.75% METRe and 0.128 cRMSE, outperforming Crystalite (73.64% METRe, 0.157 cRMSE).

Limitations and Future Work

  • Soft vs. hard symmetry constraints: Because MaskGXT decodes symmetry, lattice, and coordinate tokens independently, crystallographic consistency is encouraged through training rather than enforced as a hard geometric constraint.
  • Coverage vs. precision trade-off: While MaskGXT matches more structures overall, Crystalite still achieves slightly lower matched-pair RMSE on MP-20 (0.0325 vs. 0.0342) and MPTS-52 (0.0734 vs. 0.0974).
  • (Note: The authors also point to Appendix J for further limitations of the search and model, which is not included in the main 10-page paper.)

Summary updated

BibTeX
@inproceedings{seong2026developing,
  author = {Kiyoung Seong and Nayoung Kim and Sungsoo Ahn},
  title = {{Developing a Crystal Structure Prediction Algorithm with Agent-Guided Search}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=IUljCqRQWR},
}
Figure