Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2026 Aug 31;16:27276. doi: 10.1038/s41598-026-62470-x

CrystalGRW: generative modeling of crystal structures with targeted crystallographic properties via geodesic random walks

Krit Tangsongcharoen 1,2, Teerachote Pakornchote 3,✉, Chayanon Atthapak 1, Natthaphon Choomphon-anomakhun 1, Annop Ektarawong 1,4, Björn Alling 5, Christopher Sutton 3, Thiti Bovornratanaraks 1,2,✉, Thiparat Chotibut 4,✉
PMCID: PMC13530221  PMID: 42675094

Abstract

Determining whether a candidate crystalline material is thermodynamically stable depends on identifying its true ground-state structure, a central challenge in computational materials science. We introduce CrystalGRW, a diffusion-based generative model on Riemannian manifolds that proposes candidate crystal configurations in stable phases, validated through density functional theory calculations. Our model is designed for de novo generation, which creates crystal structures together with their compositions. The crystal properties, such as fractional coordinates, atomic types, and lattice matrices, are represented on suitable Riemannian manifolds, ensuring that new predictions generated through the diffusion process preserve the periodicity of crystal structures. We also incorporate an equivariant graph neural network to account for rotational and translational symmetries within the model. CrystalGRW generates crystal structures that are stable and closely resemble their density-functional-theory ground states. The model also supports conditional control, such as enforcing a specified crystallographic point group, thereby accelerating materials discovery and inverse design by providing symmetry-consistent, energetically stable candidate crystals for experimental validation.

Subject terms: Chemistry, Materials science, Mathematics and computing, Physics

Introduction

Crystal structures, defined as the periodic arrangement of atoms in a lattice, directly influence material properties such as stability, band gap, and mechanical strength. Understanding and predicting the behavior of materials from the atomistic level relies on knowing accurate structures. The search for novel materials involves identifying crystal structures and their compositions that are thermodynamically metastable. However, this task is complicated by the vast number of degrees of freedom that must be explored to identify local minima on the free energy surface1,2.

Many advanced algorithms for sampling configurations on the potential energy surface have been developed for ground state structure prediction; these approaches typically combine stochastic sampling techniques such as evolutionary algorithms, ab-initio random structure searching, simulated annealing, metadynamics, basin hopping, and molecular dynamics simulations2–8, with quantum-mechanics-based method, such as density functional theory (DFT) to accurately predict the energy of the sampled configurations. However, the cubic scaling with respect to the number of basis functions in DFT leads to a substantial computational time for searching for new candidate materials. Machine-learned interatomic potentials (MLIPs) are an accurate and efficient alternative to DFT9–17, and therefore can speed up the prediction process. Nonetheless, improving the structure generation task remains an important challenge for materials discovery.

Instead of the traditional approach of starting from an initial structure and performing sampling to find new (possibly lower energy) structures, generative models enable a direct and much more efficient way to produce novel molecular and crystal structures because they can sample new materials given knowledge from the learned data distribution without being constrained by energy barriers18–31. Diffusion-based generative models draw principles from non-equilibrium thermodynamics to transform random noise into structured data32–36. These models generate samples through stochastic differential equations (SDEs) that consist of data-dependent drift and diffusion terms37–42. The Brownian motion component introduces stochastic noise, enabling the generation of new crystal structures. Recent work has shown that properly designed diffusion models can generate crystal structures with realistic characteristics, such as nonoverlapping atoms, reasonable lattice parameters, and imposed crystallographic symmetries22,23.

Moreover, materials discovery focuses not only on generating new structures but also on their properties. For subsequent property prediction, the candidate structures produced from generative approaches tend to closely resemble the DFT-optimized structures (similar to performing a structure relaxation with MLIPs), thereby reducing the time required for subsequent DFT relaxations. Additionally, generative models can be applied for inverse design, where the generated materials are tailored to possess specific, controlled properties31,43–47.

To specify crystal structures, three properties are essential: fractional coordinates, atomic types, and lattice matrices. The first two properties reside in distinct non-Euclidean spaces, while the third property lies in Euclidean space. In particular, fractional coordinates lie on the 3D torus Inline graphic (Supplementary Appendix A 3), and atomic-type compositions lie on the d-dimensional simplex Inline graphic, with d ∼ 100 in many inorganic materials (Supplementary Appendix A 4). Introducing naive stochastic noise can corrupt these properties by moving them outside their natural domains. This issue can be circumvented by introducing noise distributions that align with their domains, such as wrapped normal distributions for fractional coordinates and categorical distributions for atomic types48,49. Models like DiffCSP24 and MatterGen31 employ these domain-aligned approaches to generate crystal properties, thereby improving crystal structure generation.

Instead of selecting specific noise distributions that align with the natural domains of the properties, Bortoli et al.50 introduced the Riemannian Score-Based Generative Model (RSGM), which extends diffusion models to operate on Riemannian manifolds. In RSGM, data undergo random walks along geodesic paths on manifolds that appropriately represent the data’s natural domain, rather than diffusing strictly within Euclidean space. This framework enables the use of manifolds that accommodate non-Euclidean crystal properties, such as a 3D torus for fractional coordinates and d-simplex for atomic types.

Recent advances have also extended flow-based generative models to Riemannian manifolds. Riemannian flow matching51 unifies diffusion and flow models within Riemannian manifolds, a framework employed by FlowMM25 to generate crystals via deterministic ODE integration. In contrast, CrystalGRW employs stochastic geodesic random walks (SDEs), where the natural stochastic dynamics facilitate the exploration of complex likelihood (analogous to Langevin dynamics), distinct from FlowMM’s deterministic paths. Furthermore, we develop an exact hypercube bijection for atomic types rather than approximate mappings (see Supplementary Table A1 for a detailed methodological comparison).

In this work, we introduce CrystalGRW, a generative model designed for crystal structure generation with specifiable target crystallographic properties. CrystalGRW combines the Riemannian score-based generative model (RSGM) with EquiformerV214, an equivariant graph neural network with an attention mechanism. The model generates three key properties of crystals: atomic coordinates, atomic types, and lattice parameters. We demonstrate that CrystalGRW can produce realistic crystal structures that are close to their ground states with accuracy comparable to existing models. Moreover, our model incorporates conditional control to specify properties of the generated structures using classifier-free guidance52. To illustrate this conditional control capability, we train CrystalGRW to generate structures with specific point groups as dictated by the input conditions, highlighting its potential for targeted materials discovery.

Results and discussion

CrystalGRW

The crystal generative model aims to generate crystal properties Inline graphic of N atoms in a unit cell where Inline graphic are fractional coordinates of each atom, Inline graphic are their atomic types, and Inline graphic is a lattice matrix. Similar to diffusion probabilistic models, we generate new data by reversing a diffusion process, wherein trained neural networks map noise distributions to structured data distributions. In this work, new crystals emerge through geodesic random walks on manifolds that capture each property: a 3D torus for fractional coordinates Inline graphic, a d-dimensional simplex Inline graphic for atomic-type probabilities Inline graphic, and Euclidean space for the lattice matrix Inline graphic. See “Riemannian score-based generative model” section and Supplementary Appendix A for details.

Although atomic-type vectors naturally reside in Inline graphic, directly performing random walks on the simplex can be cumbersome due to boundary conditions of its geometry. To circumvent this, we adopt a uniform-spacing bijection53 that maps Inline graphic to Inline graphic, d-dimensional hypercube. We then carry out the geodesic random walk on Inline graphic, where reflections at the boundary are straightforward (see Supplementary Eq. (A11) and Supplementary Appendix A 4), and finally map back to Inline graphic. This approach preserves the simplicity of a hypercube-based walk while respecting the simplex geometry of atomic types. Similar treatments for confined systems have also been studied by considering diffusion with reflecting and other constrained boundaries54–56.

For denoising crystal properties in reverse diffusion, we employ EquiformerV214, an equivariant graph neural network (GNN) that accounts for rotational and translational equivariance to effectively capture tensorial and vectorial quantities, e.g. atomic forces13,57–59. Specifically, EquiformerV2 uses l-degree irreducible representations (irreps) of the Inline graphic group60. The fractional coordinate denoiser uses an l=1 output head that produces a 3D equivariant vector in Euclidean space, which is then mapped onto the 3D torus, while atomic type and lattice matrix denoisers come from l=0 output heads providing 100- and 9-dimensional invariant features, respectively. Further details are given in Supplementary Appendix B. The hyperparameters for EquiformerV2 and CrystalGRW are provided in Supplementary Table H1 in Supplementary Appendix H.

Fig. 1 illustrates the training and sampling schemes of CrystalGRW. During training, crystal properties are corrupted using the geodesic random walk (GRW), as described in Algorithm 1. A distorted structure is then constructed from the corrupted properties and passed through the graph neural network to learn the score function. For crystal structure generation, the three crystal properties are initially sampled from a random distribution and gradually denoised through a reverse GRW process, computed using the learned scores. When using the condition-guided scheme, specific conditions are embedded alongside the node features during both the training and generation processes.

Fig. 1.

Fig. 1

Overview of the CrystalGRW workflow. (a) Training scheme. Starting from pristine crystal properties Inline graphic, which include fractional coordinates Inline graphic, atomic types Inline graphic, and a lattice matrix Inline graphic, the model applies noise via forward geodesic random walks on their respective manifolds, generating corrupted crystal properties Inline graphic at a time step t. Here N is the number of atoms in a unit cell. Then, an equivariant graph neural network (GNN) processes these corrupted properties to predict manifold-specific scores Inline graphic (tangent vectors on each manifold), which are used to compute the training loss Inline graphic. (b) Sampling scheme. Beginning from noisy crystal properties Inline graphic, the trained GNN computes the trained scores Inline graphic associated with these inputs. Guided by these scores, a reverse geodesic random walk iteratively denoises Inline graphic until reaching Inline graphic, which is the final crystal structure sample. Specific crystal-structure conditions Inline graphic can be added to the network during training and used to guide attributes (e.g., crystal symmetry) of the generated structures through a classifier-free guidance scheme. The 2D torus, 2-simplex (triangle), and 3D Euclidean space manifolds schematically depict the respective manifolds for fractional coordinates, atomic types, and the lattice matrix, serving only as a conceptual visualization rather than an actual representation of these higher-dimensional domains.

Generating realistic structures

We train and evaluate the model on the ALEX-MP-20 dataset, which contains 675,204 crystal structures31. Each structure contains up to 20 atoms per unit cell, includes up to 10 different elements per compound, and involves only elements with atomic numbers no greater than 83. The dataset is a union of materials from the Alexandria materials database61,62 and Materials Project database63 where all structures have an energy above the convex hull (Inline graphic) less than 100 meV/atom. It is worth noting that this is a relatively loose criterion, and stricter rules may be applied to avoid the possibility of false positives64. We generated 10Inline graphic structures where the number of atoms for each structure is sampled from the same distribution as in the ALEX-MP-20 training set (see Supplementary Fig. D1a in Supplementary Appendix D). CrystalGRW starts with random atomic positions, atomic types, and lattice matrices, and then iteratively denoises them through GRW for K steps until they approach candidate crystal structures using Supplementary Algorithm C2.

Two criteria are used to evaluate whether generated structures are considered to be valid: 1) all interatomic distances are at least 0.5 Å (i.e., structural validity); 2) the total charge of the atoms is neutral22 (i.e., compositional validity). Although these criteria are relatively loose, as noted in Ref. 22, they provide a useful sanity check for the model’s outcomes. For the Inline graphic structures generated by CrystalGRW, all are structurally valid, and 90.74% of generated structures are compositionally valid, surpassing the performance of other models (see Table 1).

Table 1.

Structural and compositional validity for 10Inline graphic generated structures using the models trained on the MP-20 dataset (and the ALEX-MP-20 dataset for indicated models). RMSD is averaged over 10Inline graphic structures that were sampled from the generation set and relaxed using DFT.

Dataset Model Structural (%) ↑ Composition (%) ↑ Avg. RMSD (Å) ↓
MP-20 FTCPInline graphic 100.00 100.00 1.492
CDVAEInline graphic 100.00 86.70 0.359
DP-CDVAE23 99.59 85.44
KLDM (D)30 0.283
DiffCSPInline graphic 100.00 83.25 0.232
FlowMM (500 steps)25 96.86 83.24
MatterGenInline graphic 100.00 84.50 0.110
EquiCSP29 0.0510
DiT-S-Transformer27 99.58 90.46 0.0502
DiT-S-EqV227 99.26 86.09 0.0296
OMatG67 0.0741
GCFM67 0.0288
CrystalGRW (ours) 100.00 85.40 0.0520
ALEX-MP-20 DiffCSPInline graphic 0.104
MatterGenInline graphic 100.00 88.45 0.021
OMatG67 0.1260
GCFM67 0.0243
CrystalGRW (ours) 100.00 90.74 0.0053

a https://github.com/microsoft/mattergen

We further identify the symmetry of the generated structures using SpacegroupAnalyzer from pymatgen with symmetry criteria of Inline graphic and Inline graphic65,66. Fig. 2 compares the relative frequency of each point group in the ALEX-MP-20 training set and the generated structures. CrystalGRW is able to generate both high-symmetry groups, such as Inline graphic, 4/mmm, 6/mmm, Inline graphic, and Inline graphic, and lower-symmetry groups, like 2/m and mm2, in proportions similar to the ALEX-MP-20 dataset. However, it produces low-symmetry structures excessively, such as m, while marginally generating structures in some symmetries, like Inline graphic and groups with a 3-fold principal axis (trigonal lattice). Nonetheless, this result indicates that generated structures possess crystallographic symmetry upon creation.

Fig. 2.

Fig. 2

Relative frequency of 32 crystallographic point groups appearing in the ALEX-MP-20 training (blue) and generated structures (pink). The point groups are sorted from low order (left) to high order (right) symmetry.

Generating stable, unique, and novel structures

To present the performance of the generative models for crystalline materials, the generated structures should be stable, unique, and novel (S.U.N.)31. Firstly, in thermodynamics, materials evolve to the global minimum on the free energy landscape; however, they could be metastable by falling into local minima instead. In terms of energy, materials under certain temperature and pressure are thermodynamically stable if they lie on the convex hull. Nevertheless, the stability of materials can be preliminarily evaluated by Inline graphic. In this work, materials are regarded as stable if their Inline graphic values are below 100 meV/atom after the DFT relaxations at 0 K and 0 GPa31. It is worth noting that this is a relatively loose criterion; in practice, the synthesizability of materials must also account for dynamical and mechanical stability68. Secondly, uniqueness refers to a structure being distinct from other structures in the generation set. Lastly, the novelty is an evaluation of the number of generated structures that do not match the training set (see Supplementary Appendix G).

We evaluate novelty by comparing the structures in the generation set with the ALEX-MP dataset and uniqueness by comparing the structures within the generation set (details in Supplementary Appendix G). Fig. 3(a) shows that approximately 48% of the generated structures (from Inline graphic to Inline graphic samples) are novel. Additionally, around 90% of Inline graphic structures are unique, with this percentage decreasing to 76% for Inline graphic samples. Consequently, the percentage of generated structures that are both unique and novel is 44.6% for Inline graphic samples, which drops to 36.9% for Inline graphic samples. Although 117,652 disordered structures from ICSD database are not used for novelty evaluation, the unique and novel performance is lower than MatterGen which is 61% for 10Inline graphic generated structures. This may be because CrystalGRW tends to generate highly symmetric structures, as illustrated in Fig. 2. Such symmetry can lead to degeneracy, potentially reducing the uniqueness of the generated structures.

Fig. 3.

Fig. 3

(a) Percentage of generated structures that are unique (green), novel (blue), and novel and unique (red) with respect to the number of samples. (b) Distribution of Inline graphic for unique and novel structures computed using the GGA/GGA+U mixing scheme. Inline graphic is referenced with the convex hull of materials in ALEX-MP dataset.

Moreover, we compute the Inline graphic for 1436 structures using DFT calculation (see “DFT setting” section). Fig. 3b illustrates a distribution of the Inline graphic where 95.0% of the relaxed structures have Inline graphic lower than 100 meV/atom. We find that the S.U.N. rate is 37.72%. In contrast, MatterGen reported 38.57% for the S.U.N. rate, where novelty was determined by comparing the generated structures with the combined Alex-MP-ICSD dataset, which includes 107.7K disordered structures requiring a license for access31. Although our uniqueness and novelty are diminished by symmetrical degeneracy, most of our generated structures are stable, achieving a S.U.N. rate comparable to MatterGen’s. We present examples of S.U.N. structures–metal alloys, carbides, oxides, and hydrides–in Supplementary Table G1 and Supplementary Fig. G4 in Supplementary Appendix G.

Generating DFT ground state structures

One of the primary goals of generative models is to generate crystal structures that are close to DFT ground states. Ground state structures are in equilibrium under thermodynamic conditions where the total force acting on every atom should be 0 eV/Å. From the DFT calculation, we extracted the forces acting on atoms in the generated structures and averaged the magnitude of the force over all atoms. As shown in Fig. 4(a), 18.69% and 28.96% of the samples have forces Inline graphic and Inline graphic eV/Å, respectively. DFT relaxation is typically considered converged when the norm of all the forces acting on every atom in a unit cell is Inline graphic eV/Å (see “DFT setting” section), indicating that about one fifth of the structures were already close to their DFT ground states upon generation. Machine learning force fields9–12 enable fast and accurate force computations, so we also employ them to calculate the forces of the generated structures, as illustrated in Supplementary Fig. G3, whose results exhibit similarly to the DFT-calculated forces.

Fig. 4.

Fig. 4

(a) Distribution of DFT force magnitudes (in eV/Å), averaged over all atoms for each generated structure. (b) RMSD between generated and DFT-relaxed structures.

Another metric to determine the degree of structural similarity between generated and DFT-relaxed structures is the root mean square distance (RMSD), which measures the average atomic displacement between two structures. It can be evaluated using StructureMatcher from pymatgen. Table 1 presents the average RMSD over Inline graphic structures is 0.052 ± 0.094 and 0.0053 ± 0.0173 Å for the models trained on MP-20 and ALEX-MP-20 datasets, respectively. Fig. 4(b) illustrates the RMSD of structures generated by the model trained on ALEX-MP-20 dataset, grouped into two categories. For unique and novel structures, the average RMSD is 0.011 Å with a few outliers above 0.1 Å. Supplementary Table G2 lists structures with RMSD >0.1 Å, most of which are oxides with 14-20 atoms per unit cell and low-symmetry space group, i.e., P1, Cm, and C2/m. For non-novel structures, the average RMSD is 0.0014 Å. This demonstrates that CrystalGRW can generate both non-novel and novel structures that closely match their DFT relaxations, outperforming other models in this task.

Generating structures with targeted properties

One advantage of the generative models is their ability to perform inverse design, generating structures with specific targeted properties. To achieve this, we implement the classifier-free guidance method (CFG)52, which enhances our model to sample crystal structures on given conditions. Among the key structural properties, crystallographic symmetry plays a crucial role in determining the properties of crystal structures. For instance, piezoelectricity is absent when crystals have a center of inversion. Recent work has controlled symmetry by constraining the generations with Wyckoff positions, creating structures with a particular space group67,69,70. In contrast, we demonstrate that our model can control the 32 crystallographic point groups of the output structures through label embedding using the CFG method. Since the number of point groups in the dataset is unbalanced, we create 7 labels, consisting of Inline graphic, Inline graphic, Inline graphic for three rotational axes, Inline graphic, Inline graphic, Inline graphic for horizontal, vertical, and diagonal mirror planes, respectively, and i for an inversion, to represent each point group71. Supplementary Figs. G1b-c show that the training set is more balanced when labeled by these 7 labels. (Details on the implementation of conditional control within the graph neural network are provided in Supplementary Appendix D.)

We generate 128 structures for each point group, specifying 2 and 4 atoms per unit cell and guidance strength w=0.552. Each row of the heat maps in Fig. 5 presents the output point groups of the generated structures guided (conditioned) by the input point groups. Notably, entries below the diagonal indicate cases where the output symmetry is lower than the input symmetry, while entries above the diagonal indicate higher output symmetry relative to the input. For both 2 and 4 atoms per unit cell, the generated structures match the input point groups for frequently occurring symmetries in the dataset, such as Inline graphic, Inline graphic, 6/mmm, Inline graphic, mmm, and 2/m (as shown in Fig. 2). Additionally, mm2 and 3m also well match for 4-atom structures. However, for less common point groups such as Inline graphic, Inline graphic, Inline graphic, Inline graphic, and Inline graphic, the generated structures appear to have higher symmetry that share the same principal rotation axis such as Inline graphic, 6/mmm, Inline graphic, Inline graphic, and 2/m, respectively.

Fig. 5.

Fig. 5

Heat maps illustrate the input conditions, represented as the guiding point groups of output structures (vertical axis), versus the actual point groups of the generated structures (horizontal axis). The generated structures are constrained to contain 2 atoms per unit cell (top) and 4 atoms per unit cell (bottom). Black diagonal blocks indicate cases where the input and output point groups match, while orange diagonal blocks highlight instances where the input and output point groups have the same symmetry order. The color bar denotes the number of structures, ranging from 0 to 128.

Supplementary Table G3 reports success rates (recalls) of the output structures whose point group symmetry matches the input point group, alongside the percentage of occurrence in the training set for 2 and 4 atoms per unit cell. The results show that point groups with low success rates, such as 4, 23, and Inline graphic, rarely appear or are absent from the training set, whereas point groups with high success rates tend to be those that appear more frequently. Micro F1 scores for each point group are also computed, where true positives are defined as matches between generated and input point groups; false negatives occur when the point group does not match the input; and false positives occur when structures controlled for other point groups appear as the considered point group. Therefore, the Inline graphic point group yields a low F1 score despite its high success rate, as structures tend to be Inline graphic even when they are controlled to be other point groups (especially from absent point groups). On average, the macro F1 scores are 0.130 and 0.216 for 2 and 4 atoms per unit cell, respectively. The weighted F1 scores are 0.343 and 0.376 for 2 and 4 atoms per unit cell, respectively, where the weights correspond to the ratios of each point group’s occurrence in the training set. Supplementary Tables G4 and G5 present examples of structures with 2 and 4 atoms per unit cell, respectively, where the output space group reflects the symmetry imposed by the input point group.

For comparison, Supplementary Fig. G2 shows 1056 generated structures for each of the 2 and 4 atoms per unit cell without point-group conditioning. For the 2-atom structures, most point groups are Inline graphic, with a small number of Inline graphic and 6/mmm. For the 4-atom structures, the dominant point groups are 4/mmm, Inline graphic, and Inline graphic, with only a few instances of 4mm, mmm, and Inline graphic. These results show that several point groups do not appear or rarely appear without conditioning. In contrast, Supplementary Tables G4 and G5 show high success rates for 2/m and Inline graphic, for example, which cannot be freely generated with an unconditional model, indicating that the conditioning scheme is effective. Nevertheless, the performance in controlling point groups drops when the number of atoms per unit cell is large (see Supplementary Fig. G1) where the generated structures tend to have a lower symmetry than the specified point group. An exception is the 7 atoms per unit cell, which achieves an F1 score of 0.408 and can generate structures with the 422 point group at a 57% match rate. (422 is a non-centrosymmetric point group that is difficult to generate with other numbers of atoms due to its scarcity in the training set.)

Conclusions

In summary, we introduced CrystalGRW, a generative model leveraging diffusion on Riemannian manifolds and EquiformerV2 to produce candidate thermodynamically stable crystal structures with targeted properties, illustrated by specified crystallographic point groups. A key methodological distinction of our framework is the use of SDEs through geodesic random walks in specific manifolds (constrained domains), allowing atomic positions, atomic types, and lattices to be treated under a unified theoretical framework. This contrasts with approaches that rely on diffusion using specific noise distributions (e.g., wrapped Gaussian or categorical distributions) or on deterministic flow matching. By employing a rigorous framework together with the highly equivariant GNN, CrystalGRW generates physically valid structures with high symmetry that are close to DFT ground states, with Inline graphic below 100 meV/atom in the majority of structures.

Moreover, the crystallographic point groups of the generated structures can be steered through conditional controls, enabling targeted inverse design. However, the efficiency of point-group control is limited to a small number of atoms per unit cell, since lower symmetry tends to emerge when the number of atoms is larger than 10 atoms per unit cell. Another limitation of our work is that it is currently more effective for categorical conditions (e.g. point groups), while improving the efficiency of continuous property control remains a direction for future work.

Methods

Riemannian score-based generative model

We consider data Inline graphic, where Inline graphic is a Riemannian manifold that may be compact, such as a torus (for fractional coordinates) or a finite-volume hypercube (for atomic types), or non-compact Euclidean space (for lattice matrices). Our goal is to learn a generative model for Inline graphic through a score-based diffusion process defined on Inline graphic. In the continuous-time limit, the forward noising mechanism can be viewed as an SDE on Inline graphic whose reverse-time counterpart depends on the score Inline graphic. In particular, one performs a forward (noising) diffusion phase that starts with real data Inline graphic and evolves it over [η ,T] until it resembles a tractable noise distribution at t=T where Inline graphic. Then, one applies a reverse (sampling) diffusion phase, beginning from that noise distribution at t=T and integrating backward to yield new samples at t=0.

To implement these phases in discrete time, we employ a geodesic random walk (GRW) that updates Inline graphic along geodesics in Inline graphic, adding drift and noise within the tangent space.

Forward geodesic random walk (noising) Let γ = T/K be the step size, with Inline graphic so that t = kγ. The forward update is

graphic file with name d33e1577.gif 1

where Inline graphic is an i.i.d. Gaussian random vector in a basis of the tangent space Inline graphic orthonormal with respect to the Riemannian metric, and the noise schedule Inline graphic specifies how the noise amplitude evolves with time (details in Supplementary Appendix E). The exponential map Inline graphic displaces Inline graphic by the tangent vector Inline graphic. A crucial choice is the manifold-dependent drift Inline graphic.

On compact manifolds, such as tori or closed hypercubes, we typically set Inline graphic, which is sufficient to make the random walk become ergodic yielding the late-time noise distribution that approaches the uniform distribution.

On non-compact manifolds, the late-time density will converge to a Riemannian normal distribution72 by choosing Inline graphic with the potential Inline graphic, where Inline graphic is the geodesic distance and Inline graphic is a mean location. The forward noising process then follows overdamped Langevin dynamics that eventually converges to the stationary density that is proportional to Inline graphic. This Riemannian normal distribution reduces to the standard Gaussian distribution on Inline graphic when the geodesic distance becomes the usual Euclidean norm. In practice, we further simplify by ignoring Inline graphic and setting Inline graphic directly (as in a variance-exploding approach35) to ensure a wide final distribution. For this no-drift approximation, see Supplementary Appendix F b.

After K iterations of Eq. (1), the state Inline graphic approximates a tractable noise distribution: uniform on compact manifolds, or Gaussian-like on non-compact ones.

Reverse geodesic random walk (sampling) According to Föllmer’s approach38,39, reversing the forward process yields

graphic file with name d33e1700.gif 2

where Inline graphic is the score of the intermediate distribution Inline graphic. Note that the sign of Inline graphic switches in reverse time. We next discuss how to approximate Inline graphic with a learnable score function of each manifold Inline graphic.

Training via Riemannian score matching To train Inline graphic, we adopt a Riemannian score-matching approach, such as Varadhan’s asymptotic50,73, which gives a manifold-specific loss function

graphic file with name d33e1746.gif 3

Here, one uniformly samples a random time Inline graphic, applies Eq. (1) up to that time t, and compares Inline graphic to

graphic file with name d33e1766.gif 4

the latter being the manifold-specific inverse exponential map from Inline graphic to Inline graphic, whose analytical expressions for relevant manifolds are given in Supplementary Appendix A.

We set Inline graphic rather than 0 for three key reasons. First, it prevents division by zero in the term Inline graphic and helps avoid pathologically large gradients arising from Varadhan’s asymptotic near t=0. Second, it ensures a nontrivial denoising task at the earliest time t=η (instead of an identity mapping at t=0). Lastly, it promotes stable training signals and faster convergence, as the model never sees fully uncorrupted data in its noised phase.

Variation on adaptive timesteps The RSGM algorithm50 suggests that each diffusion step can be split into several smaller random-walk increments to enhance numerical stability. However, in our experiments, we find that training the model by performing only a single (final) random-walk update per diffusion step is both more computationally efficient and converges faster. Moreover, in reverse diffusion, generated crystal structures become more realistic by using an adaptive timestep (Inline graphic) for sampling like in previous studies such as in74 and75. See the details in Algorithm 3 and Supplementary Appendix F.

Implementation in CrystalGRW

In our CrystalGRW implementation, we let Inline graphic reside on three distinct manifolds Inline graphic, reflecting the natural domains of fractional coordinates, atomic types, and lattice parameters, respectively. We define a manifold-specific drift Inline graphic that vanishes on the compact manifolds but equals Inline graphic for the Euclidean one, and train an equivariant graph neural network Inline graphic (EquiformerV214) which provides separate outputs for each manifold slice. To learn the score function jointly across all manifolds, we minimize the total loss

graphic file with name d33e1862.gif

where each term follows the Riemannian score-matching objective in Eq. (3) and each Inline graphic is a hyperparameter that weights the contribution of the loss on each manifold. However, for the finite hypercube manifold describing atomic types, we find it both more efficient and more accurate to train an estimator network in place of a direct score predictor; details of this atomic-type denoising approach appear in Supplementary Appendix C. Supplementary Appendix B details the equivariant network architecture, and Algorithm 2 provides the step-by-step training procedure.

After completing the training procedure, we sample from the trained generative model by first drawing a final noisy state Inline graphic from either a uniform prior (if the manifold is compact) or a Gaussian prior (if it is Euclidean). We then run the reverse geodesic random walk in Eq. (2), using the learned score Inline graphic, to generate a new sample Inline graphic. The complete procedure is detailed in Algorithm 3.

Algorithm modifications A key challenge lies in generating atomic types. As discussed in Supplementary Appendix C, our experiments revealed that using Algorithms 2 and 3 to generate atomic types, particularly for perovskite compositions, resulted in suboptimal performance. To address this, we adapted the process by training atomic types against their ground truths, as outlined in Supplementary Algorithm C1, and sampling them using Supplementary Algorithm C2. Detailed discussions and methodologies are provided in Supplementary Appendix C. All reported results in Figs. 2-4 are based on the modified Supplementary Algorithms C1 and C2.

Condition guidance When conditional sampling is desired (e.g., for controlling point groups or compositions), we apply classifier-free guidance52 in our manifold-aware pipeline. Let Inline graphic be the score for a condition Inline graphic, and let Inline graphic be the unconditional score (i.e., with a null condition). We construct a condition-guided score by combining a conditional prediction Inline graphic with an unconditional one Inline graphic as

graphic file with name d33e1961.gif 5

where w is the guidance strength. During training, we randomly replace a fraction (e.g., 10%) of the conditional samples with a null condition ∅, obtained by zeroing out the condition vector. Thus, if the batch size is 10, about 1 sample per batch is trained with ∅ while the others include the true condition Inline graphic. In sampling process, we interpolate between Inline graphic and Inline graphic according to w using Eq. (5), thereby controlling how strongly the generation is influenced by Inline graphic. This procedure naturally extends to our manifold setting by applying Inline graphic in the reverse diffusion step Eq. (2), and ensures consistent conditional guidance across all manifold components.

Algorithm 1.

Algorithm 1

Forward Geodesic Random Walk (Noising) for Multi-Manifold States

Algorithm 2.

Algorithm 2

Training Multi-Manifold Crystal Properties

Algorithm 3.

Algorithm 3

Reverse Geodesic Random Walk (Sampling) for Multi-Manifold States

Crystal graphs

Here we describe how Inline graphic and Inline graphic are integrated into inputs of graph neural networks. Since GNNs incorporate inductive biases via graph structures76, we represent each crystal as a multigraph Inline graphic. The node set Inline graphic includes both atom-centric features and positions, while the edge set Inline graphic captures interactions between pairs of atoms. In this multigraph setting, the same pair of nodes can be connected by multiple edges if different crystallographic directions link those atoms. Concretely, we define

graphic file with name d33e2078.gif 6

where Inline graphic is a node attribute (e.g. atomic number derived from the atomic type Inline graphic), Inline graphic is the Cartesian position of atom i, Inline graphic is a translation vector, and N is the number of atoms in a unit cell. The lattice matrix Inline graphic maps fractional coordinates Inline graphic to Inline graphic. Although some previous works represented Inline graphic in Inline graphic25,31, we find that diffusing all nine elements of Inline graphic yields similar performance. For a detailed discussion of crystal graphs defined by Eq. (6), see Ref.77.

For each node, we concatenate its node attributes (e.g. atomic numbers) with a time step t to reflect the diffusion stage. Empirically, appending the corrupted lattice variables to the node attributes further improves model performance. For the conditional control, we similarly append condition vector embeddings Inline graphic (e.g. point groups) to these node features (see Fig. 1), thereby allowing the GNN to handle a condition alongside the atomic attributes.

DFT setting

We evaluated energies and performed structural relaxations using density functional theory (DFT)78,79, adopting the projector augmented wave (PAW) method80,81 as implemented in the Vienna Ab Initio Simulation Package (VASP)82,83. Our calculations followed the MPRelaxSet, a Materials Project workflow84, which includes exchange-correlation functionals and sets a plane-wave energy cutoff of 520 eV. The energy convergence threshold is set to Inline graphic eV/atom, so EDIFF is Inline graphic eV, and the force convergence threshold is ten times EDIFF, in the unit of eV/Å. Brillouin zone sampling was achieved via Monkhorst-Pack k-point grids85, maintaining a k-point density of 1000 k-points reciprocal per atom for different unit-cell sizes. We used the Perdew–Burke–Ernzerhof (PBE) exchange-correlation functional for the generalized gradient approximation (GGA)86 and the GGA with Hubbard U corrections (GGA+U)87,88, where the spin polarization was enabled for the latter method. To evaluate the thermodynamic stability89, we computed the Inline graphic using the GGA/GGA+U mixing scheme and constructed phase diagrams with PhaseDiagram tool from pymatgen90,91. We found that unary compounds such as Mo, Pd, Ir, and Pt have Inline graphic significantly lower than those in the Materials Project database, despite following the MPRelaxSet. Therefore, we excluded structures containing these elements to avoid artificially low Inline graphic in the stability evaluation.

Supplementary Information

Acknowledgements

The authors acknowledge high-performance computing resources including NVIDIA A100 GPUs from Chula Intelligent and Complex Systems Lab, Faculty of Science and from the Center for AI in Medicine (CU-AIM), Faculty of Medicine, Chulalongkorn University, Thailand. The supporting computing infrastructure is provided by NSTDA, CU, CUAASC, NSRF via PMUB [B05F650021, B37G660013] (Thailand). URL:www.e-science.in.th. We also acknowledge the computing resources from the National Academic Infrastructure for Supercomputing in Sweden (NAISS) partially funded by the Swedish Research Council through grant agreement no. 2022-06725. This research used resources of the National Energy Research Scientific Computing Center (NERSC), a Department of Energy Office of Science User Facility, using the award GenAI@NERSC.

Author contributions

K.T., T.P., and T.C. designed the methodology. K.T., T.P., and N.C. developed the software. K.T., T.P., and C.A. performed the validation and formal analysis. A.E., B.A., C.S., T.B., and T.C. provided resources. T.B. supervised the project. K.T., T.P., and T.C. wrote the original draft. All authors contributed to the review and editing of the manuscript.

Funding

K.T. and T.B. acknowledge funding support from Thailand Science Research and Innovation Fund Chulalongkorn University (IND_FF_69_220_2300_049). T.C. acknowledges the funding support from the NSRF via the Program Management Unit for Human Resources & Institutional Development, Research and Innovation (Grant No. B39G690073) and from Thailand Science research and Innovation Fund Chulalongkorn University (IND_FF_69_ 258_2300_062). B.A. acknowledges the financial support from the Swedish Government Strategic Research Area in Materials Science on Functional Materials at Linköping University (Faculty Grant SFOMatLiU No. 2009-00971). T.P. and C.S. acknowledge financial support by the U.S. Army Research Office (ARO) and the U.S. Air Force Office of Scientific Research (AFOSR) under Grant Number FA9550-23-1-0505 "Unraveling the Role of Cation Solvation in Aqueous Zn-Ion Batteries: A Combined Theoretical and Experimental Approach". The views and conclusions in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of ARO or AFOSR or the U.S. Government.

Data availability

The ALEX-MP dataset for novelty evaluation and the ALEX-MP-20 dataset for training are available at https://github.com/microsoft/mattergen. The MP-20 dataset for training, including point group labels for conditional control, is available at https://github.com/trachote/crystalgrw. The datasets generated and/or analysed during the current study are available in the GitHub repository, https://github.com/trachote/crystalgrw.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Krit Tangsongcharoen and Teerachote Pakornchote have contributed equally to this work.

Contributor Information

Teerachote Pakornchote, Email: t.pakornchote@gmail.com.

Thiti Bovornratanaraks, Email: thiti.b@chula.ac.th.

Thiparat Chotibut, Email: thiparatc@gmail.com.

Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1038/s41598-026-62470-x.

References

  • 1.Oganov, A. R., Pickard, C. J., Zhu, Q. & Needs, R. J. Structure prediction drives materials discovery. Nat. Rev. Mater.4, 331 (2019). [Google Scholar]
  • 2.Needs, R. J. & Pickard, C. J. Perspective: Role of structure prediction in materials discovery and design. APL Mater.4, 053210. 10.1063/1.4949361 (2016). [DOI] [Google Scholar]
  • 3.Oganov, A. R. & Glass, C. W. Crystal structure prediction using ab initio evolutionary techniques: Principles and applications. J. Chem. Phys.124, 244704. 10.1063/1.2210932 (2006). [DOI] [PubMed] [Google Scholar]
  • 4.Wang, Y., Lv, J., Zhu, L. & Ma, Y. Crystal structure prediction via particle-swarm optimization. Phys. Rev. B82, 094116. 10.1103/PhysRevB.82.094116 (2010). [DOI] [Google Scholar]
  • 5.Kirkpatrick, S., Gelatt, C. D. & Vecchi, M. P. Optimization by simulated annealing. Science220, 671. 10.1126/science.220.4598.671 (1983). [DOI] [PubMed] [Google Scholar]
  • 6.Laio, A. & Parrinello, M. Escaping free-energy minima. Proc. Natl. Acad. Sci.99, 12562. 10.1073/pnas.202427399 (2002). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Wales, D. J. & Doye, J. P. K. Global optimization by basin-hopping and the lowest energy structures of Lennard–Jones clusters containing up to 110 atoms. J. Phys. Chem. A101, 5111. 10.1021/jp970984n (1997). [DOI] [Google Scholar]
  • 8.Car, R. & Parrinello, M. Unified approach for molecular dynamics and density-functional theory. Phys. Rev. Lett.55, 2471. 10.1103/PhysRevLett.55.2471 (1985). [DOI] [PubMed] [Google Scholar]
  • 9.Batatia,I., et al. A foundation model for atomistic materials chemistry, The Journal of Chemical Physics, 163(18), 184110. 10.1063/5.0297006. [DOI] [PubMed]
  • 10.Deng, B. et al. Chgnet as a pretrained universal neural network potential for charge-informed atomistic modelling. Nat. Mach. Intell5, 1031. 10.1038/s42256-023-00716-3 (2023). [DOI] [Google Scholar]
  • 11.Chen, C. & Ong, S. P. A universal graph deep learning interatomic potential for the periodic table. Nat. Comput. Sci.2, 718. 10.1038/s43588-022-00349-3 (2022). [DOI] [PubMed] [Google Scholar]
  • 12.Park, Y., Kim, J., Hwang, S. & Han, S. Scalable parallel algorithm for graph neural network interatomic potentials in molecular dynamics simulations. J. Chem. Theory Comput.20, 4857. 10.1021/acs.jctc.4c00190 (2024). [DOI] [PubMed] [Google Scholar]
  • 13.Liao, Y.-L. & Smidt, T. Equiformer: Equivariant graph attention transformer for 3d atomistic graphs. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=KwmPfARgOTD (2023).
  • 14.Liao, Y.-L., Wood, B. M., Das, A. & Smidt, T. Equiformerv2: Improved equivariant transformer for scaling to higher-degree representations. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=mCOBKZmrzD (2024).
  • 15.Bochkarev, A., Lysogorskiy, Y. & Drautz, R. Graph atomic cluster expansion for semilocal interactions beyond equivariant message passing. Phys. Rev. X14, 021036. 10.1103/PhysRevX.14.021036 (2024). [DOI] [Google Scholar]
  • 16.Timmerman, L. R., Kumar, S., Suryanarayana, P. & Medford, A. J. Overcoming the chemical complexity bottleneck in on-the-fly machine learned molecular dynamics simulations. J. Chem. Theory Comput.20, 5788. 10.1021/acs.jctc.4c00474 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Karimitari, N. et al. Accurate crystal structure prediction of new 2d hybrid organic–inorganic perovskites. J. Am. Chem. Soc.146, 27392. 10.1021/jacs.4c06549 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Xu, M., Luo, S., Bengio, Y., Peng, J. & Tang, J. Learning neural generative dynamics for molecular conformation generation. In International Conference on Learning Representations. https://openreview.net/forum?id=pAbm1qfheGk (2021).
  • 19.Xu, M., Yu, L., Song, Y., Shi, C., Ermon, S. & Tang, J. Geodiff: A geometric diffusion model for molecular conformation generation. In International Conference on Learning Representations. https://openreview.net/forum?id=PzcvxEMzvQC (2022).
  • 20.Guan, J., Qian, W. W., Peng, X., Su, Y., Peng, J. & Ma, J. 3d equivariant diffusion for target-aware molecule generation and affinity prediction. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=kJqXEPXMsE0 (2023)
  • 21.Xu, M., Powers, A. S., Dror, R. O., Ermon, S. & Leskovec, J. Geometric latent diffusion models for 3D molecule generation. In Proceedings of the 40th International Conference on Machine Learning, series Proceedings of Machine Learning Research, Vol. 202, (ed Krause, A. , Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., and Scarlett, J. (publisher PMLR, 2023) pp. 38592–38610. https://proceedings.mlr.press/v202/xu23n.html
  • 22.Xie, T., Fu, X., Ganea, O.-E., Barzilay, R. & Jaakkola, T. S. Crystal diffusion variational autoencoder for periodic material generation. In International Conference on Learning Representations. https://openreview.net/forum?id=03RLpj-tc_ (2022).
  • 23.Pakornchote, T. et al. Diffusion probabilistic models enhance variational autoencoder for crystal structure generative modeling. Sci. Rep.14, 1275 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Jiao, R., Huang, W., Lin, P., Han, J., Chen, P., Lu, Y. & Liu, Y. Crystal structure prediction by joint equivariant diffusion on lattices and fractional coordinates, In Workshop on ”Machine Learning for Materials” ICLR 2023. https://openreview.net/forum?id=VPByphdu24j (2023).
  • 25.Miller, B. K., Chen, R. T. Q., Sriram, A. & Wood, B. M. Flowmm: Generating materials with riemannian flow matching. PMLR.235, 35664–35686 (2024).
  • 26.Sriram, A., Miller, B. K., Chen, R. T. Q. & Wood, B. M. FlowLLM: Flow matching for material generation with large language models as base distributions, In The Thirty-eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=0bFXbEMz8e (2024).
  • 27.Joshi, C. K., Fu, X., Liao, Y.-L., Gharakhanyan, V., Miller, B. K., Sriram, A. & Ulissi, Z. W. All-atom diffusion transformers: Unified generative modelling of molecules and materials, In Forty-second International Conference on Machine Learning. https://openreview.net/forum?id=89QPmZjIhv (2025).
  • 28.Höllmer, P., Egg, T., Martirossyan, M., Fuemmeler, E., Shui, Z., Gupta, A., Prakash, P. Roitberg, A., Liu, M., Karypis, G., Transtrum, M., Hennig, R., Tadmor, E. B. & Martiniani, S. Open materials generation with stochastic interpolants, In Forty-second International Conference on Machine Learning. https://openreview.net/forum?id=gHGrzxFujU (2025).
  • 29.Lin, P., Chen, P., Jiao, R., Mo, Q., Jianhuan, C., Huang, W., Liu, Y., Huang, D., & Lu, Y. Equivariant diffusion for crystal structure prediction, In Proceedings of the 41st International Conference on Machine Learning, series Proceedings of Machine Learning Research, Vol. 235, (ed by Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., Berkenkamp, F.) (publisher PMLR, 2024) pp. 29890–29913 https://proceedings.mlr.press/v235/lin24b.html
  • 30.Cornet, F. R. J., Bergamin, F., Bhowmik, A., Garcia-Lastra, J. M., Frellsen, J., & Schmidt, M. N. Kinetic langevin diffusion for crystalline materials generation. In AI for Accelerated Materials Design - ICLR 2025. https://openreview.net/forum?id=Mttf1RoKKM (2025).
  • 31.Zeni, C. et al. A generative model for inorganic materials design. Nature. 639, 624–632 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N. & Ganguli, S. Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, series Proceedings of Machine Learning Research, Vol. 37, (ed by Bach, F., & Blei, D. (publisher PMLR, Lille, France, 2015). https://proceedings.mlr.press/v37/sohl-dickstein15.html pp. 2256–2265
  • 33.Ho, J., Jain, A., & Abbeel, P. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, Vol. 33, (ed Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., Lin, H.) (publisher Curran Associates, Inc., 2020) pp. 6840–6851. https://proceedings.neurips.cc/paper_files/paper/2020/file/4c5bcfec8584af0d967f1ab10179ca4b-Paper.pdf
  • 34.Song Y. & Ermon, S. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, Vol. 32, (ed Wallach, H., Larochelle, H., Beygelzimer, A., dÁlché-Buc, F., Fox, E., Garnett, R.) (publisher Curran Associates, Inc., 2019) https://proceedings.neurips.cc/paper_files/paper/2019/file/3001ef257407d5a371a96dcd947c7d93-Paper.pdf
  • 35.Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S. & Poole, B. Score-based generative modeling through stochastic differential equations. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (publisher OpenReview.net, 2021). https://openreview.net/forum?id=PxTIG12RRHS
  • 36.Karras, T., Aittala, M., Aila, T. & Laine, S. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, ed Oh, A. H., Agarwal, A., Belgrave, D. & Cho, K. https://openreview.net/forum?id=k7FuTOWMOc7 (2022).
  • 37.Anderson, B. D. Reverse-time diffusion equation models. Stoch. Process. Appl.12, 313. 10.1016/0304-4149(82)90051-5 (1982). [DOI] [Google Scholar]
  • 38.Föllmer, H. An entropy approach to the time reversal of diffusion processes. In Stochastic Differential Systems Filtering and Control, ed by Metivier, M. & Pardoux, E. (publisher Springer Berlin Heidelberg, Berlin, Heidelberg, 1985) pp. 156–163
  • 39.Cattiaux, P., Conforti, G., Gentil, I. & Léonard, C. Time reversal of diffusion processes under a finite entropy condition. Ann. l’Inst. Henri Poincaré, Prob. Stat.59, 1844. 10.1214/22-AIHP1320 (2023). [DOI] [Google Scholar]
  • 40.Girsanov, I. V. On transforming a certain class of stochastic processes by absolutely continuous substitution of measures. Theory Probab. Appl.5, 285. 10.1137/1105027 (1960). [DOI] [Google Scholar]
  • 41.Karatzas, I. & Shreve, S. E. In Brownian Motion and Stochastic Calculus (Springer New York, New York, 1998).
  • 42.Arnaudon, M., Barbaresco, F., & Yang, L. Medians and means in riemannian geometry: Existence, uniqueness and computation. In Matrix Information Geometry, edited by Nielsen F. & Bhatia R. (publisher Springer Berlin Heidelberg, address Berlin, Heidelberg, 2013) pp. 169–197 10.1007/978-3-642-30232-9_8 [DOI]
  • 43.Takahara, I., Shibata, K. & Mizoguchi, T. Generative inverse design of crystal structures via diffusion models with transformers. arXiv:2406.09263 [cond-mat.mtrl-sci] (2024).
  • 44.Guo, G., Saidi, T., Terban, M., Billinge, S. J., & Lipson, H. Ab initio structure solutions from nanocrystalline powder diffraction data via diffusion models. Nat Mater.24(11), 1726‑1734. 10.1038/s41563-025-02220-y (2025). [DOI] [PubMed]
  • 45.Riesel, E. A. et al. Crystal structure determination from powder diffraction patterns with generative machine learning. J. Am. Chem. Soc. 10.1021/jacs.4c10244 (2025). [DOI] [PubMed] [Google Scholar]
  • 46.Choudhary, K. Atomgpt: Atomistic generative pretrained transformer for forward and inverse materials design. J. Phys. Chem. Lett.15, 6909. 10.1021/acs.jpclett.4c01126 (2024). [DOI] [PubMed] [Google Scholar]
  • 47.Luo, X., Wang, Z., Lv, J., Wang, L., Wang, Y. & Ma, Y. Crystalflow: A flow-based generative model for crystalline materials. arXiv:2412.11693 [cond-mat.mtrl-sci] (2025). [DOI] [PMC free article] [PubMed]
  • 48.Jing, B., Corso, G., Chang, J., Barzilay, R. & Jaakkola, T. S. Torsional diffusion for molecular conformer generation, In Advances in Neural Information Processing Systems, edited by A. H. Oh, A. Agarwal, D. Belgrave, and K. Cho https://openreview.net/forum?id=w6fj2r62r_H (2022).
  • 49.Austin, J., Johnson, D. D., Ho, J., Tarlow, D., & van den Berg, R. Structured denoising diffusion models in discrete state-spaces, In Advances in Neural Information Processing Systems, ed Beygelzimer, A., Dauphin, Y., Liang, P., & Vaughan, J. W. https://openreview.net/forum?id=h7-XixPCAL. (2021).
  • 50.Bortoli, V. D., Mathieu, E., Hutchinson, M. J., Thornton, J., Teh, Y. W., & Doucet, A. Riemannian score-based generative modelling, In Advances in Neural Information Processing Systems, ed. by Oh, A. H., Agarwal, A., Belgrave, D., & Cho, K. https://openreview.net/forum?id=oDRQGo8I7P (2022).
  • 51.Chen, R. T. Q. & Lipman, Y. Flow matching on general geometries, In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=g7ohDlTITL (2024).
  • 52.Ho, J. & Salimans, T. Classifier-free diffusion guidance, In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications. https://openreview.net/forum?id=qw8AKxfYbI (2021).
  • 53.Devroye, L. Non-uniform random variate generation (Springer, New York, NY, 2013) pp. 207–210.
  • 54.Lou A. & Ermon, S. Reflected diffusion models, In Proceedings of the 40th International Conference on Machine Learning, series Proceedings of Machine Learning Research, Vol. 202, ed Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S. & Scarlett, J. (publisher PMLR, 2023) pp. 22675–22701. https://proceedings.mlr.press/v202/lou23a.html
  • 55.Fishman, N., Klarner, L., Bortoli, V. D., Mathieu, E. & Hutchinson, M. J. Diffusion models for constrained domains, In Transactions on Machine Learning Research.https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DxuWTFQ4VGO (2023).
  • 56.Fishman, N., Klarner, L., Mathieu, E., Hutchinson, M. & De Bortoli, V. Metropolis sampling for constrained diffusion models. In Advances in Neural Information Processing Systems, Vol. 36, (ed by Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M. and Levine, S. (publisher Curran Associates, Inc., 2023) pp. 62296–62331 https://proceedings.neurips.cc/paper_files/paper/2023/file/c47bfcc8e2eccdc540fad1e25f13aa4d-Paper-Conference.pdf
  • 57.Cohen, T. S., Geiger, M., Köhler, J. & Welling, M. Spherical CNNs, In International Conference on Learning Representations. https://openreview.net/forum?id=Hkbd5xZRb (2018).
  • 58.Thomas, N., Smidt, T. E., Kearnes, S., Yang, L., Li, L., Kohlhoff, K. & Riley, P. Tensor field networks: Rotation- and translation-equivariant neural networks for 3d point clouds, CoRR https://arxiv.org/abs/1802.08219 (2018).
  • 59.Passaro S. & Zitnick, C. L. Reducing SO(3) convolutions to SO(2) for efficient equivariant gnns arXiv:2302.03655 [cs.LG] (2023).
  • 60.Geiger, M., Smidt, T., M. A., Miller, B. K., Boomsma, W., Dice, B., Lapchevskyi, K., Weiler, M., Tyszkiewicz, M., Batzner, S., Madisetti, D., Uhrin, M., Frellsen, J., Jung, N., Sanborn, S., Wen, M., Rackers, J., Rød, M., & Bailey, M.M. 10.5281/zenodo.6459381 e3nn/e3nn: 2022-04-13 ( 2022). [DOI]
  • 61.Schmidt, J. et al. Machine-learning-assisted determination of the global zero-temperature phase diagram of materials. Adv. Mater.35, 2210788. 10.1002/adma.202210788 (2023). [DOI] [PubMed] [Google Scholar]
  • 62.Schmidt, J., Wang, H.-C., Cerqueira, T. F. T., Botti, S. & Marques, M. A. L. A dataset of 175k stable and metastable materials calculated with the pbesol and scan functionals. Sci. Data9, 64. 10.1038/s41597-022-01177-w (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Jain, A. et al. Commentary: The materials project: A materials genome approach to accelerating materials innovation. APL Mater.1, 011002. 10.1063/1.4812323 (2013). [DOI] [Google Scholar]
  • 64.Szymanski, N. J. & Bartel, C. J. Establishing baselines for generative discovery of inorganic crystals. Mater. Horiz.12, 8000. 10.1039/D5MH00010F (2025). [DOI] [PubMed] [Google Scholar]
  • 65.Ong, S. P. et al. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Comput. Mater. Sci.68, 314. 10.1016/j.commatsci.2012.10.028 (2013). [DOI] [Google Scholar]
  • 66.Togo, A., Shinohara, K., & Tanaka, I. Spglib: a software library for crystal symmetry search, https://github.com/spglib/spglib, arXiv:1808.01590 (2018).
  • 67.Puny, O., Lipman, Y., & Miller, B. K. Space group conditional flow matching https://arxiv.org/abs/2509.23822[cs.LG] (2025).
  • 68.Mouhat, F. & Coudert, F. X. Necessary and sufficient elastic stability conditions in various crystal systems. Phys. Rev. B90, 224104. 10.1103/PhysRevB.90.224104 (2014). [DOI] [Google Scholar]
  • 69.Jiao, R., Huang, W., Liu, Y., Zhao, D., & Liu, Y. Space group constrained crystal generation, In The Twelfth International Conference on Learning Representationshttps://openreview.net/forum?id=jkvZ7v4OmP (2024).
  • 70.Kelvinius, F. E., Andersson, O. B., Parackal, A. S., Qian, D., Armiento, R. & Lindsten, F. Wyckoffdiff—a generative diffusion model for crystal symmetry. In Forty-second International Conference on Machine Learninghttps://openreview.net/forum?id=OHPBPveXdg (2025).
  • 71.De Graef M. & McHenry, M. E. Structure of Materials: An Introduction to Crystallography, Diffraction and Symmetry, edition 2nd ed. (publisher Cambridge University Press, 2012)
  • 72.Pennec, X. Intrinsic statistics on Riemannian manifolds: Basic tools for geometric measurements. J. Math. Imag. Vis.25, 127. 10.1007/s10851-006-6228-4 (2006). [DOI] [Google Scholar]
  • 73.Varadhan, S. R. S. On the behavior of the fundamental solution of the heat equation with variable coefficients. Commun. Pure Appl. Math.20, 431. 10.1002/cpa.3160200210 (1967). [DOI] [Google Scholar]
  • 74.Bao, F., Li, C., Zhu, J. & Zhang, B. Analytic-DPM: an analytic estimate of the optimal reverse variance in diffusion probabilistic models, In Forty-second International Conference on Machine Learning https://openreview.net/forum?id=0xiJLKH-ufZ (2022).
  • 75.Watson, D., Ho, J., Norouzi, M. & Chan, W. Learning to efficiently sample from diffusion probabilistic models, CoRR abs/2106.03802https://arxiv.org/abs/2106.03802 (2021).
  • 76.Battaglia, P. W., et.al. Relational inductive biases, deep learning, and graph networks arXiv:1806.01261 [cs.LG].
  • 77.Pakornchote, T., Ektarawong, A. & Chotibut, T. StrainTensorNet: Predicting crystal structure elastic properties using SE(3)-equivariant graph neural networks. Phys. Rev. Res.5, 043198. 10.1103/PhysRevResearch.5.043198 (2023). [DOI] [Google Scholar]
  • 78.Hohenberg, P. & Kohn, W. Inhomogeneous electron gas. Phys. Rev.136, B864. 10.1103/PhysRev.136.B864 (1964). [DOI] [Google Scholar]
  • 79.Kohn, W. & Sham, L. J. Self-consistent equations including exchange and correlation effects. Phys. Rev.140, A1133. 10.1103/PhysRev.140.A1133 (1965). [DOI] [Google Scholar]
  • 80.Kresse, G. & Joubert, D. From ultrasoft pseudopotentials to the projector augmented-wave method. Phys. Rev. B. 59, 1758. 10.1103/PhysRevB.59.1758 (1999). [DOI] [Google Scholar]
  • 81.Hobbs, D., Kresse, G. & Hafner, J. Fully unconstrained noncollinear magnetism within the projector augmented-wave method. Phys. Rev. B62, 11556. 10.1103/PhysRevB.62.11556 (2000). [DOI] [Google Scholar]
  • 82.Kresse, G. & Furthmüller, J. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set. Comput. Mater. Sci.6, 15. 10.1016/0927-0256(96)00008-0 (1996). [DOI] [PubMed] [Google Scholar]
  • 83.Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B54, 11169. 10.1103/PhysRevB.54.11169 (1996). [DOI] [PubMed] [Google Scholar]
  • 84.Jain, A. et al. A high-throughput infrastructure for density functional theory calculations. Comput. Mater. Sci.50, 2295 (2011). [Google Scholar]
  • 85.Monkhorst, H. J. & Pack, J. D. Special points for Brillouin-zone integrations. Phys. Rev. B13, 5188. 10.1103/PhysRevB.13.5188 (1976). [DOI] [Google Scholar]
  • 86.Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient approximation made simple. Phys. Rev. Lett.77, 3865. 10.1103/PhysRevLett.77.3865 (1996). [DOI] [PubMed] [Google Scholar]
  • 87.Wang, L., Maxisch, T. & Ceder, G. Oxidation energies of transition metal oxides within the GGA+U framework. Phys. Rev. B Condens. Matter Mater. Phys.73, 195107 (2006). [Google Scholar]
  • 88.Jain, A. et al. Formation enthalpies by mixing GGA and GGA+U calculations. Phys. Rev. B-Condens. Matter Mater. Phys.84, 045115 (2011). [Google Scholar]
  • 89.Bartel, C. J. Review of computational approaches to predict the thermodynamic stability of inorganic solids. J. Mater. Sci.57, 10475 (2022). [Google Scholar]
  • 90.Ong, S. P., Wang, L., Kang, B. & Ceder, G. Li-Fe-P-O2 phase diagram from first principles calculations. Chem. Mater.20, 1798. 10.1021/cm702327g (2008). [DOI] [Google Scholar]
  • 91.Ong, S. P., Jain, A., Hautier, G., Kang, B. & Ceder, G. Thermal stabilities of delithiated olivine MPO4 (m=Fe, Mn) cathodes investigated using first principles calculations. Electrochem. Commun.12, 427. 10.1016/j.elecom.2010.01.010 (2010). [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The ALEX-MP dataset for novelty evaluation and the ALEX-MP-20 dataset for training are available at https://github.com/microsoft/mattergen. The MP-20 dataset for training, including point group labels for conditional control, is available at https://github.com/trachote/crystalgrw. The datasets generated and/or analysed during the current study are available in the GitHub repository, https://github.com/trachote/crystalgrw.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES