arXiv:2609.09799cond-mat.mtrl-sciSep 2026

Manuscript Offprint

arXiv:2609.09799

uFlowCSP: Crystal Structure Prediction using Mean flow generative models

Sourin Dey, Dipannoy Das Gupta, Lai Wei, Sadman Sadeed Omee, Jianjun Hu

Sourin Dey

Department of Computer Science and Engineering University of South Carolina Columbia, SC 29201

Dipannoy Das Gupta

Department of Computer Science and Engineering University of South Carolina Columbia, SC 29201

Lai Wei

Department of Computer Science and Cybersecurity University of North Georgia Columbia, SC 29201

Sadman Sadeed Omee

Department of Computer Science and Engineering University of South Carolina Columbia, SC 29201

Jianjun Hu*

Department of Computer Science and Engineering University of South Carolina Columbia, SC 29201

jianjunh@cse.sc.edu

ABSTRACT

Crystal structure prediction (CSP) is a fundamental task in computational materials discovery. Generative models such as CDVAE, DiffCSP, FlowMM, and CrystalFlow have made it possible to learn the distribution of stable crystals directly instead of searching the potential-energy surface. However, inference remains the bottleneck in these models: diffusion and flow-matching samplers integrate a generative trajectory over tens to thousands of sequential network evaluations per candidate. We introduce uFlowCSP, a deep learning based CSP model built on MeanFlow, which learns the average rather than the instantaneous velocity of the probability-flow trajectory and can therefore generate a complete structure in one to five network evaluations, achieving a 5×−58×5\times-58\times speedup with equal or better performance. The velocity field is parameterized by a chemistry- and symmetry-aware Transformer conditioned on a canonical atom ordering, a global composition embedding, per-token chemistry features, and a coarse crystal-system token used only as an auxiliary training signal while inference remains formula-only. On the MP-20 benchmark, generating 20 candidates per target, a single MeanFlow step matches CrystalFlow's match rate (78.38% vs. 78.34%) using 100×100\times fewer network evaluations and roughly an order of magnitude less wall-clock time; five steps raise this to 83.64%, above CrystalFlow (78.34% at 2,000 evaluations) and DiffCSP (77.93% at ∼\sim20,000), still at 20×20\times fewer evaluations. uFlowCSP generates 10k structures in 0.39–1.31 min, compared with 6.5 min for CrystalFlow and 76.1 min for DiffCSP. On the stricter CSPBench protocol, which requires simultaneous structure and space-group agreement within an energy-ranked top-5 shortlist, and applying tighter matching tolerances than the MP-20 protocol, uFlowCSP reaches 72/72/65% structure, space-group, and consensus match rates at five sampling steps. CrystalFlow attains higher rates (78/73/68%) at its full 100-step budget, but collapses to 49/32/31% when held to the same five-step budget, less than half the space-group and consensus rates. uFlowCSP therefore improves accuracy per network evaluation rather than peak accuracy alone.

1 INTRODUCTION

Crystal structure prediction (CSP) addresses the fundamental challenge of determining how atoms arrange themselves in periodic solids from a given chemical composition alone (Oganov & Glass,

2006a; Oganov et al., 2010). The atomic arrangement is the state variable that links composition to behavior: once the structure of a compound is known, first-principles methods can predict its stability, electronic structure, ionic transport, catalytic activity, and mechanical response with quantitative accuracy (Oganov et al., 2019; Jain et al., 2016). CSP is therefore the enabling step of in silico materials discovery, allowing hypothetical compounds, polymorphs, and pressure-stabilized phases to be assessed before they are ever synthesized (Needs & Pickard, 2016). Structure searches paved the way to the materials that that lie beyond chemical intuition, encompassing a wide range from high-temperature superconducting superhydrides to metastable battery cathodes and functional photovoltaic and thermoelectric phases (Wang et al., 2022; Oganov et al., 2019). Getting the structure right also means getting its symmetry right, and that symmetry is specified by the space group and Wyckoff positions. These are physical constraints rather than descriptive labels: they fix site multiplicities and local environments, dictate which properties and electronic band degeneracies are allowed, and underpin the symmetry indicators of electronic topology (Wieder et al., 2021). A prediction that is geometrically close but crystallographically wrong can imply the wrong physics, so faithful recovery of symmetry is a key requirement for any CSP method (Martirossyan et al., 2025).

Historically, CSP was formulated as a global optimization problem on a potential-energy surface, where candidate atomic arrangements and lattice parameters were sampled over a large configurational space and then relaxed and ranked by first-principles energy calculations (Woodley & Catlow, 2008; Oganov & Glass, 2006a; Pickard & Needs, 2011b; Wang et al., 2010b). Different search strategies explore this space in different ways: ab initio random structure searching samples configurations stochastically before relaxing them with density functional theory (DFT) (Pickard & Needs, 2011a), evolutionary algorithms such as USPEX evolve a population toward low-energy minima (Oganov & Glass, 2006b), and particle-swarm optimization, as in CALYPSO, navigates the energy landscape using swarm intelligence (Wang et al., 2010a). These methods are physically rigorous and remain important tools in high-pressure and exploratory materials science, but their reliance on repeated DFT relaxations makes them computationally expensive, a cost that grows sharply with the number of atoms, the unit-cell size, and the size of the chemical search space.

The advent of deep generative modeling reframed CSP as learning the distribution of stable crystal structures from materials databases. Instead of searching the energy landscape for each new material, the model pays this cost once during training and then generates structures directly. The Crystal Diffusion Variational Autoencoder (CDVAE) pioneered this direction by combining a variational autoencoder with a diffusion-based decoder that denoised crystal representations toward plausible, low-energy configurations (Xie et al., 2022). DiffCSP subsequently formulated CSP as a joint equivariant diffusion process over fractional coordinates and lattice parameters, using periodic E(3)-equivariant modeling to respect the symmetries of crystals (Jiao et al., 2023). DiffCSP++ incorporated explicit space-group and Wyckoff-position constraints into the generative process, further narrowing the search space to symmetry-compatible structures (Jiao et al., 2024).

Crystallographic symmetry has also become an explicit design principle in generative CSP. CrystalFormer uses a space-group-informed autoregressive Transformer that generates symmetry-equivalent atoms through Wyckoff positions, reducing the effective complexity of crystal generation (Cao et al., 2024). SymmCD instead decomposes a crystal into its asymmetric unit and the symmetry transformations needed to reconstruct the full structure, allowing diffusion to operate in a compact symmetry-aware representation (Levy et al., 2025). WyckoffDiff uses a discrete diffusion model over space groups and Wyckoff-position occupancies, enforcing symmetry by construction rather than predicting unconstrained atomic coordinates (Kelvinius et al., 2025). Beyond unconditional or composition-conditioned CSP, MatterGen demonstrated property-conditioned diffusion for steering crystal generation toward target chemistries and properties across the periodic table (Zeni et al., 2025), while autoregressive language models such as CrystaLLM showed that crystals can also be generated directly as text by modeling the Crystallographic Information File (CIF) format (Antunes et al., 2024).

Flow-based generative models provide an alternative to diffusion for learning distributions over periodic materials. FlowMM (Miller et al., 2024) introduced Riemannian flow matching for crystal generation, modeling lattice parameters, periodic fractional coordinates, and atom types on manifolds that reflect crystal-specific geometry and symmetries. CrystalFlow (Luo et al., 2025) combined conditional flow matching with a graph-based equivariant network and symmetry-aware crystal representations to generate lattice parameters, atomic coordinates, and compositions, while requiring substantially fewer integration steps than diffusion-based models. These approaches improve sampling efficiency, but they still generally require numerical integration over many network evaluations.

The same limitation holds whether the model is diffusion-based, autoregressive, or flow-based: generation remains a sequential process. Diffusion models denoise over hundreds to thousands of steps, flow-matching models integrate a velocity field over many network evaluations, and autoregressive models emit a structure token by token, so richer symmetry priors and conditioning improve quality without removing the per-candidate inference cost. Reducing that cost to a single or a handful of network evaluations is what motivates one-step generative modeling for CSP. Our uFlowCSP algorithm characterizes a generative trajectory through an average velocity over a time interval rather than an instantaneous velocity, enabling one-step crystal structure generation without distillation or pre-training (Geng et al., 2025).

Evaluating such a model calls for two complementary tests, and we adopt them in sequence. We first place uFlowCSP on the standard MP-20 benchmark (Xie et al., 2022; Jiao et al., 2023), the common proving ground on which diffusion and flow-matching models such as DiffCSP, FlowMM, and CrystalFlow report their any-of-kk match rates. Evaluating under this identical protocol allows us compare uFlowCSP head-to-head with those baselines and answer a concrete question: can a one-step or few-step generator match the accuracy of samplers that integrate hundreds to thousands of network evaluations? The match rate alone, however, rewards geometric proximity and can be inflated by duplicate- or polymorph-contaminated splits, so a high score is not the only factor that indicates a model has learned the underlying crystallography (Martirossyan et al., 2025). We therefore turn to CSPBench (Wei et al., 2024), a curated suite of 180 held-out structures that span binary to quaternary compositions and graded difficulty and are scored not only by structure matching but also by space-group match rate and their consensus match rates. Because CSPBench withholds symmetry information at inference and credits a prediction only when structure and space group agree simultaneously, it directly probes whether a model recovers the correct symmetry, which is what our symmetry-aware conditioning targets. This two-stage evaluation (efficiency and accuracy on MP-20, symmetry fidelity on CSPBench) frames the results reported below.

This work makes two contributions. First, we adapt one-step MeanFlow generation to crystal structure prediction, showing that a complete periodic structure can be produced in a single network evaluation rather than by integrating a generative trajectory. Our method achieves a higher match rate than multi-step diffusion and flow-matching baselines at 20 to 200 times fewer network function evaluations and 5 to 58 times lower measured wall-clock time. Second, we introduce a chemistry- and symmetry-aware Transformer parameterization of the average-velocity field, and show by ablation that canonical atom ordering, a global composition embedding, per-token chemistry features, and a coarse crystal-system auxiliary token contribute additively. Especially, we find that the auxiliary symmetry token introduced only during training stage can improve the space-group agreement despite it remaining unused at inference.

References (35)