CrystalAR

CrystalAR Autoregressive Modeling for Symmetric Crystal Generation

Given a space group, one model writes one sequence: a Wyckoff template, a lattice, then coordinates refined coarse to fine.

1National University of Singapore2Southern University of Science and Technology

*Equal contribution†Corresponding author

Paper (opens in a new tab) Code · coming soon BibTeX
La5Bi3Cl, a crystal generated by CrystalAR in space group P6_3/mcm: lanthanum, bismuth and chlorine atoms inside a hexagonal unit cell.
La5Bi3ClP63/mcmgenerated by CrystalAR

01The problem

Symmetry is discrete. Geometry is continuous.

A space group and its Wyckoff positions are categorical choices, while the lattice and the atomic coordinates are real numbers that have to respect them.

02Overview

One decoder, one sequence.

Given a space group, a single decoder-only Transformer writes the template and active lattice variables in sequence, then jointly refines the free coordinates through nine dyadic levels.

Figure 2: one decoder-only Transformer models the Wyckoff template, lattice and coordinate regions, with causal attention across refinement levels and parallel interaction between sites within a level.
Figure 2 from the paper. Scroll sideways on a small screen, or open the figure at full size.

03The method

Template first. Lattice next. Coordinates, coarse to fine.

Each Wyckoff position restricts a site to a point, line, plane or the full cell; fixed sites need no refinement, while all free coordinates are refined jointly through nine dyadic levels.

  1. Cl · 2bLa · 4dLa · 6gBi · 6g

    Template first

    Write an element and a Wyckoff position for each site.

  2. V · c/a

    Lattice next

    Generate the active lattice variables for the crystal family.

  3. Coordinates, coarse to fine

    Refine all free sites jointly across nine dyadic levels.

04One crystal, written in 3D

Watch CrystalAR write La5Bi3Cl.

A real sample from the final model, replayed from its stored generation record.

The finished La5Bi3Cl unit cell: 18 atoms of lanthanum, bismuth and chlorine in a hexagonal cell.
  1. 1Given a space group

    Space group P63/mcm (No. 193) is given, and its 24 symmetry operations constrain everything that follows.

  2. 2Wyckoff template

    For each site the model writes an element, then a Wyckoff position: Cl 2b and La 4d are fixed points, La 6g and Bi 6g lie on lines.

  3. 3Lattice

    A hexagonal cell leaves two variables free, so the model writes V = 562.7 Å3 and c/a = 0.690.

  4. 4Coarse to fine

    Nine levels each halve the region of every free coordinate, from half the line down to 1/512 of it, about 0.02 Å.

  5. 5Symmetry expansion

    The symmetry operations copy each site across its orbit: 2 + 4 + 6 + 6 = 18 atoms.

  6. 6The crystal

    The finished cell of La5Bi3Cl, ready to rotate.

The sequence

  1. Space groupP63/mcm#193 · given
  2. TemplateCl2bLa4dLa6gBi6g
  3. LatticeV 562.7 ųc/a 0.690
  4. Coordinates

Symmetry expansion: 18 atoms in the cell

Space group P6₃/mcm, given. Template: Cl 2b, La 4d, La 6g, Bi 6g. Lattice: V 562.7 ų, c/a 0.690. Coordinates over nine levels: La 6g x: level decisions 0 1 0 0 0 1 0 1 0, final value 0.2705; Bi 6g x: level decisions 1 0 0 1 1 1 0 1 0, final value 0.6143.

Sample denovo:75 from 2,500 de novo samples of the final model. Coordinates are the centers of the level-9 regions; beam statistics come from the stored search record.

06Benchmarks

The numbers, from the paper.

These numbers come from arXiv v1 and cover de novo generation, symmetry evaluation and crystal structure prediction.

All numbers from the paper Tables 1–3 and 6–10

Values and captions follow arXiv v1; caption descriptions of emphasis and colors refer to the original PDF.

Table 1 · De novo generation

Table 1: De novo crystal generation on LeMat-GenBench under with and without pre-relaxation settings. We evaluate generation quality by validity, uniqueness, and novelty; energetic quality by formation energy Ef, hull energy Ehull, and relaxation RMSD; and material discovery quality by stability, S.U.N., metastability, and M.S.U.N. Symmetry-native models are highlighted in red. CrystalFormer† is evaluated using the 1,000 publicly available generated samples, whereas the other methods use the standard evaluation set. PLaID++ differs from the remaining baselines in that it further applies post-training to improve generation quality. Bold denotes the best result among symmetry-native models, while underline denotes the best result among models without explicit template generation within each setting.

De novo generation
ModelMethod# ParamsValid (%) ↑Unique (%) ↑Novel (%) ↑Ef (eV) ↓Ehull (eV) ↓RMSD (Å) ↓Stable (%) ↑SUN (%) ↑Meta (%) ↑MSUN (%) ↑
With pre-relaxation
MatterGenDiffusion47M95.795.170.5−0.70 ± 0.790.18 ± 0.180.39 ± 0.502.00.2 (6)33.415.0
PLaID++LLM+RL7B96.077.824.2−0.50 ± 0.440.09 ± 0.160.13 ± 0.2912.41.0 (26)60.77.6
WyFormerAR+Diff8B93.493.066.4−0.43 ± 0.950.50 ± 0.510.81 ± 0.980.50.1 (3)15.71.9
WyFormer-DFTAR+Diff8B95.295.066.4−0.67 ± 0.910.27 ± 0.360.42 ± 0.603.70.4 (9)24.87.8
CrystalAR (Ours)AR33M91.489.039.3−0.78 ± 0.870.15 ± 0.260.23 ± 0.4613.70.9 (22)42.67.3
Without pre-relaxation
Crystal-GFNGFlowNet1M51.751.751.7−1.30 ± 2.632.09 ± 2.381.87 ± 0.970.00.0 (0)0.00.0
ADiTDiffusion180M90.687.826.0−0.73 ± 0.930.33 ± 0.450.38 ± 0.400.40.0 (0)36.51.0
DiffCSPDiffusion12M95.794.866.2−0.64 ± 0.960.28 ± 0.560.59 ± 0.632.30.1 (3)29.88.5
DiffCSP++Diffusion12M95.395.162.0−0.52 ± 0.870.41 ± 0.440.69 ± 0.821.00.2 (4)26.45.0
LLaMat2-CIFLLM7B84.481.430.0−0.47 ± 1.010.44 ± 0.710.54 ± 0.710.70.1 (3)34.72.1
LLaMat3-CIFLLM8B15.415.210.5−0.74 ± 2.691.71 ± 2.481.01 ± 1.100.10.0 (0)2.10.2
CrystalFormer†AR5M69.969.431.8−0.17 ± 1.480.70 ± 1.330.66 ± 1.051.40.0 (0)28.83.1
SymmCDDiffusion12M73.473.047.0−0.02 ± 1.220.88 ± 1.070.87 ± 1.091.40.1 (2)18.62.4
CrystalAR (Ours)AR33M91.489.142.8−0.23 ± 1.270.71 ± 1.080.77 ± 1.256.00.3 (7)39.22.7
Table 1 in the paper (opens in a new tab) ↗

Table 2 · Symmetry evaluation

Table 2: Symmetry evaluation on MP-20 using 2,500 generated structures per method. We group methods into models with and without explicit Wyckoff-template generation, with symmetry-native models highlighted in red. We evaluate template exploration by the number of novel unique templates, distribution fidelity by P1 ratio, SG χ2, WNel, and JSDWyckoff, and material discovery quality by S.U.N. and S.S.U.N. Symmetry statistics are computed over novel templates. Bold and underline denote the best and second-best results, respectively. CrystalAR (SV) denotes the flexible-size variant that explicitly predicts both the number of atoms and the number of symmetry-inequivalent sites.

Symmetry evaluation
ModelMethodNovel unique templates (#) ↑P1 (%) · ref = 2.23SG χ² ↓W_Nel ↓JSD_Wyckoff ↓S.U.N. (%) ↑S.S.U.N. (%) ↑
Models without Explicit Template Generation
DiffCSPDiffusion4870.6623.83030.37620.51850.120.05
DiffCSP++Diffusion52.190.10490.47870.03430.190.19
Symmetry-native Models
WyFormerDiffCSP++AR + Diffusion1901.560.22380.10870.02480.130.13
SGEquiDiffAR + Diffusion3862.020.21120.16410.02180.110.11
SymmCDDiffusion2152.380.12760.51160.02900.090.09
CrystalFormerAutoregressive891.260.31380.16970.03990.000.00
CrystalAR (SV)Autoregressive2681.940.25840.09730.03230.190.19
CrystalAR (Ours)Autoregressive1612.420.34690.06110.04140.280.28
Table 2 in the paper (opens in a new tab) ↗

Table 3 · Crystal structure prediction

Table 3: Crystal structure prediction on MP-20 and MPTS-52 under single-hypothesis (1) and multi-hypothesis (20) generation. We evaluate structure recovery by match rate (MR, ↑) and geometric accuracy by RMSE (↓). CrystalAR performs template-free CSP without supplying a retrieved Wyckoff template. Bold denotes the best result in each column, while underline denotes the best single-hypothesis result.

Crystal structure prediction
ModelMP-20 MR (%) ↑MP-20 RMSE ↓MPTS-52 MR (%) ↑MPTS-52 RMSE ↓
Single hypothesis
CDVAE (1)33.900.10455.340.2106
DiffCSP (1)51.490.063112.190.1786
FlowMM (1)61.390.056617.540.1726
CrystalFlow (1)62.020.071021.000.1613
OMatG (1)63.750.072025.150.1931
CrystalAR (1)62.920.058525.250.1305
CrystalFormer (1)29.620.0619−−
WyFormer (1)10.250.0522 (NA)−−
20 hypotheses
DiffCSP (20)77.930.049234.020.1749
CrystalFlow (20)78.340.057737.810.1584
CrystalAR (20)74.550.065535.710.1454
CrystalFormer (20)64.560.0835−−
WyFormer (20)40.900.0472 (NA)−−
Table 3 in the paper (opens in a new tab) ↗

Table 6 · Count prior and search

Table 6: Count prior and search ablation for de novo generation. All entries are percentages over 2,500 attempts; S.U.N. counts are shown in parentheses.

Count prior and search
Count policySearchValid (%)Unique (%)Novel (%)Stable (%)S.U.N. (%)
Empirical prior (CrystalAR)Sampling64.4062.2418.765.440.20 (5)
Empirical prior (CrystalAR)SGBS91.4489.0842.766.000.28 (7)
Learned STOPSampling59.9658.7221.723.480.16 (4)
Learned STOPSGBS90.1288.6448.923.520.16 (4)
Composition prefixSGBS91.4489.5241.325.400.20 (5)
Table 6 in the paper (opens in a new tab) ↗

Table 7 · Representation and modules

Table 7: Representative representation and module ablations. Rates are percentages over 2,500 attempts; S.U.N. counts are shown in parentheses.

Representation and modules
ConfigurationValid (%)Unique (%)Novel (%)Stable (%)S.U.N. (%)
Learned STOP reference90.1288.6448.923.520.16 (4)
Full-cell AR49.1248.8835.040.720.00 (0)
Wyckoff-letter coordinates89.8088.0851.364.160.08 (2)
Flat 512-bin coordinates68.1666.4829.124.240.00 (0)
Continuous coordinates41.6440.8417.121.720.08 (2)
No periodic encoding89.9688.0450.004.120.00 (0)
No condition query90.5289.0849.723.720.12 (3)
No template-state bridge96.2890.9619.328.680.04 (1)
Table 7 in the paper (opens in a new tab) ↗

Table 8 · Fixed-skeleton chemistry

Table 8: Fixed-skeleton chemistry interventions. All arms use the same generated symmetry skeleton and 2,500 attempts; rates are percentages and S.U.N. counts are shown in parentheses.

Fixed-skeleton chemistry
Chemistry interventionValid (%)Unique (%)Novel (%)Stable (%)S.U.N. (%)
Original elements88.3686.0039.685.920.28 (7)
Element redraw, TE = 1.087.4485.2441.845.560.04 (1)
Element redraw, TE = 2.578.7278.6057.921.600.12 (3)
TE = 2.5 with uncapped clearance78.7278.6058.440.960.12 (3)
Table 8 in the paper (opens in a new tab) ↗

Table 9 · CSP adaptation

Table 9: CSP adaptation with fixed single-hypothesis decoding on MP-20. All configurations use autoregressive template scores and the same coordinate-search settings. Updates denote the adaptation budget, and rank denotes adapter capacity. RMSE is averaged over matched structures.

CSP adaptation
AdaptationRankUpdatesMR (%)RMSE
Reference
Unadapted model—057.950.05699
Standard template CE
CE adapter82,00058.380.05863
CE adapter162,00058.350.05797
CE adapter322,00058.420.05733
CE adapter642,00058.680.05830
CE adapter324,00058.570.05750
Feasible-set supervision
Feasible-set adapter82,00059.740.05751
Feasible-set adapter162,00060.190.05767
Feasible-set adapter642,00061.110.05851
Feasible-set adapter324,00061.350.05586
Joint optimization of de novo and CSP objectives
Full-model joint—2,00056.890.05938
Full-model joint—4,00057.130.06013
Table 9 in the paper (opens in a new tab) ↗

Table 10 · Coordinate search

Table 10: Coordinate-search ablations for MP-20 CSP. Model parameters, template ranking, and the remaining decoding settings are fixed. Structural validity measures geometric validity and composition consistency. MR additionally applies the composition-validity criteria used in the CSP evaluation.

Coordinate search
Coordinate decodingMR (%)RMSEStructural valid (%)
Beam 16 (default)62.920.0584799.44
Beam 462.790.0586499.56
Beam 162.610.0585099.60
Beam 16, distance mask removed62.960.0586098.91
Table 10 in the paper (opens in a new tab) ↗

07The paper

CrystalAR: Autoregressive Modeling for Symmetric Crystal Generation

First page of CrystalAR on arXiv, with the title, authors and abstract.

CrystalAR models Wyckoff symmetry templates and complete crystal structures in one autoregressive sequence. A symmetry-conditioned hierarchy of discrete localization decisions refines all inequivalent sites from coarse to fine, enabling constraint-aware search over templates and geometry. The framework combines symmetry-template exploration with competitive de novo generation and template-free crystal structure prediction.

@misc{meng2026crystalar,
  title         = {CrystalAR: Autoregressive Modeling for Symmetric Crystal Generation},
  author        = {Ziqiao Meng and Rongsheng Chen and Zhi Zheng and Nikita Kazeev and Zhenkun Wang and Andrey Ustyuzhanin and Wee Sun Lee},
  year          = {2026},
  eprint        = {2610.27762},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2610.27762}
}

Download CIF

Drag the crystal to rotate it, or use the arrow keys when it has focus.

Download SVG
Figure 2: CrystalAR architecture, with template, lattice and coordinate regions.

Figure 2 from the paper. Choose a zoom level, then scroll to explore.