SymADiT: Symmetry-Aware Crystal Generation with Latent Flow Matching

Anmar Karmush, Cedric Mathieu Brandenburg, Soheil Ershadrad, Johanna Rosen, Michael Felsberg, Filip Ekström KelviniusNeurIPS 2026

TL;DR

Nature loves symmetry—especially when building crystals—yet many modern AI models generate candidate materials as messy, asymmetric arrangements of atoms. SymADiT fixes this by baking crystallographic symmetry directly into a compressed latent representation, allowing a standard, off-the-shelf Transformer to dream up physically realistic, symmetric, and stable new materials—and do it more than twice as fast as its predecessor.

What Problem Does This Paper Address?

Crystalline materials are the backbone of green tech, from next-gen batteries to carbon capture. Finding new ones computationally is a massive search problem, making generative AI an obvious tool for the job.

However, most popular generative models are symmetry-agnostic: they try to predict the coordinates of every single atom in a repeating "unit cell" from scratch, hoping the neural network implicitly learns physics from data. This creates two big headaches:

  1. Redundancy: Because crystals are symmetric, knowing where one atom sits often dictates where several others must sit. Predicting all of them wastes compute.
  2. Unrealistic outputs: In real-world crystal databases, only about 2% of materials lack internal symmetries (like rotations or reflections) beyond simple grid repetition—a low-symmetry category known as the P1 space group. Yet, state-of-the-art symmetry-agnostic models spit out P1 crystals 67% to 99% of the time! Because symmetry governs physical properties like piezoelectricity, ignoring it yields implausible materials.

Meanwhile, existing symmetry-aware models usually operate directly in raw data space, requiring clunky, multi-part pipelines to juggle discrete data (like atom types) alongside continuous data (like 3D coordinates).

Methods

The authors build upon the All-atom Diffusion Transformer (ADiT) to create SymADiT, bringing explicit crystal symmetry into a unified latent-space framework for the first time.

Instead of modeling every atom, SymADiT models only the Asymmetric Unit (ASU)—the minimal "slice" of unique atoms needed to reconstruct the whole crystal once you apply its space group (one of 230 mathematical rulebooks for 3D crystal symmetry) and Wyckoff positions (specific geometric zones—like points, lines, or planes—that constrain how many degrees of freedom an atom has to move).

Illustration of Wyckoff positions and the asymmetric unit in a 2D unit cell

SymADiT operates in two stages using a standard Transformer architecture (without even needing positional embeddings):

  • Stage 1 (Autoencoder): An encoder compresses each symmetry "orbit" (represented by one atom in the ASU) and global unit-cell geometry into a compact latent vector. Instead of standard KL-divergence regularization, the authors use a smooth saturating function to keep the latent space well-behaved. Crucially, during decoding and loss calculation, the network only predicts unconstrained degrees of freedom; any coordinate or unit-cell angle locked down by symmetry is filled in deterministically.
  • Stage 2 (Latent Flow Matching): With the autoencoder frozen, a Diffusion Transformer (DiT) learns to transform random Gaussian noise into clean latent vectors via flow matching. At generation time, SymADiT samples a space group and number of orbits from training statistics, uses Classifier-Free Guidance (CFG) to denoise the latents conditioned on that space group, and decodes them into a guaranteed-symmetric crystal.
Figure 1: Illustration of our representation and framework, which is inspired by ADiT [6]: Training an autoencoder for reconstruction, followed by learning a generative model over its latent representations. However, in our approach, the decoded representation explicitly contains symmetry information, thus enabling the generation of crystals with realistic symmetry properties by design.

Datasets

SymADiT is trained and evaluated on three datasets of periodic crystals:

  • MP20: A standard benchmark of 45,229 materials with up to 20 atoms per primitive unit cell.
  • MPTS52: A more challenging dataset of 40,476 experimentally verified crystals scaling up to 52 atoms per cell.
  • MP20+MPTS52: A merged dataset of 65,886 crystals created by the authors (accounting for ~32% training overlap) to test how well the architecture scales with data and size.

Key Insights and Ideas

  • Representation beats architectural gymnastics: You don't need bespoke equivariant neural networks to generate symmetric crystals. If you bake crystallographic rules directly into the data representation (via Wyckoff positions), a plain-vanilla Transformer gets the job done.
  • Latent space simplifies multimodal generation: By compressing discrete choices (chemical elements, Wyckoff letters) and continuous numbers (coordinates, lattice lengths) into continuous latent vectors, a single flow-matching mechanism handles everything seamlessly.
  • The Novelty–Stability Trade-off: Both ADiT and SymADiT exhibit lower uniqueness and novelty rates (~49–55% novelty) than data-space models (~90%). The authors note that the compressed latent bottleneck likely pulls samples closer to the training manifold—trading away wild novelty in exchange for higher physical realism and thermodynamic stability. Since AI sampling is dirt cheap compared to quantum-mechanical validation, filtering out duplicates is a minor practical cost.

Key Results

Evaluated on 10,000 generated crystals on MP20 (with 500 validated via expensive Density Functional Theory, or DFT, calculations):

  • Best-in-class symmetric stability: Among all symmetry-aware baselines, SymADiT achieves the highest count of Unique, Novel, and Stable (S.U.N.: 85/500) as well as Metastable (M.S.U.N.: 136/500) crystals—beating SGEquiDiff (51 / 89), SymmCD (49 / 78), and DiffCSP++ (64 / 105).
  • Realistic symmetry: While symmetry-agnostic ADiT scored slightly higher raw stability (103 S.U.N.), 99.01% of ADiT's crystals collapsed into asymmetric P1 structures (vs. 2.23% in real MP20 data). SymADiT nails the true Wyckoff distribution (Jensen–Shannon divergence of 0.04 vs. ADiT's 0.70).
  • 2.40× Inference Speedup: Because SymADiT processes symmetry orbits rather than individual atoms, its Transformer handles an average of just 4.74 tokens per crystal on MP20 compared to ADiT's 10.34, cutting generation time more than in half.
  • Right-sized scaling: Scaling the DiT denoiser from 130M to 450M parameters on the merged dataset yielded no meaningful gains, showing 130M parameters is already sufficient.

Limitations and Future Work

  • No recipe for synthesis: Like its peers, SymADiT proposes thermodynamically stable crystal blueprints, but offers zero guidance on how a lab chemist could actually synthesize them.
  • Smaller DFT sample on large datasets: Due to compute limits, stability metrics on MPTS52 and the merged dataset were evaluated on 100 DFT runs rather than 500, introducing some statistical variance.
  • Crystals only (for now): Original ADiT jointly modeled both periodic crystals and non-periodic molecules. SymADiT focuses strictly on crystals; reuniting symmetry-aware crystals with molecules to study cross-domain transfer learning remains an exciting next step.

Summary updated

Abstract

Tackling the task of crystal generation, we aim to enhance the previously proposed, symmetry-agnostic, All-atom Diffusion Transformer (ADiT) by introducing SymADiT, a symmetry-aware variant. To do so, we use a representation of crystals based on Wyckoff positions. We follow ADiT and perform generative modelling in latent space, adapted to our symmetry-aware representation. By forcing the output of the generative model to adhere to the symmetry restrictions imposed by the generated crystal's space group and each atom's Wyckoff position, the generated crystals exhibit more realistic symmetry properties. We benchmark our method against both symmetry-aware and symmetry-agnostic models for crystal generation and show competitive performance, generating stable, symmetric, and physically plausible crystals with only an off-the-shelf Transformer architecture. Our code is available at https://github.com/Karmush21/SymADiT
BibTeX
@inproceedings{karmush2026symadit,
  author = {Anmar Karmush and Cedric Mathieu Brandenburg and Soheil Ershadrad and Johanna Rosen and Michael Felsberg and Filip Ekström Kelvinius},
  title = {{SymADiT: Symmetry-Aware Crystal Generation with Latent Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Wq7CPxqQ2B},
}
Figure