Manuscript Offprint
arXiv:2608.26962Packora: Systematic Design for Generative Molecular Crystal Structure Prediction
Nayoung Kim , Kiyoung Seong , Sungsoo Ahn
Korea Advanced Institute of Science and Technology (KAIST)
Molecular crystal structure prediction (CSP) is important in pharmaceuticals, agrochemicals, and organic electronics, where subtle differences in molecular conformation and packing can strongly affect material properties. We present PACKORA, a flow-based generative model for molecular CSP that jointly predicts atomic coordinates and the lattice from molecular graphs. PACKORA supports multi-component and organometallic crystals and can condition on any subset of molecular conformers, stereochemical labels, and space-group information within a single model. Inspired by the CCDC CSP blind test, we evaluate generation and ranking separately, using generation to isolate generator quality and ranking to measure end-to-end performance under a common relaxation and ranking pipeline. We also systematically study architecture, training, conditioning, inference, and scaling, identifying an effective design based on cacheable pairwise reasoning, training objective and numerical solver choices, conditioning dropout, and balanced scaling of pairwise and single representations. PACKORA outperforms the baselines on both structure generation and ranking benchmarks, achieving the best matched-budget coverage across all six generation benchmarks, as well as higher experimental-form recovery, lower experimental-form ranks, and faster convergence in ranking.
Project Page: https://nayoung10.github.io/packora/
Correspondence: nayoungkim@kaist.ac.kr, sungsoo.ahn@kaist.ac.kr
SPML

Figure 1 Crystal coverage with 30 candidates per target. We report the crystal-level solve rate at a generation budget of 30 candidates per target. Numbers in parentheses indicate the number of targets in each benchmark. For OXtal, we report the published results obtained from 30 generated candidates per target. For CLARI and PACKORA, we generate 1,000 candidates per target and report the mean over 5,000 bootstrap resamples of 30 candidates; error bars show one standard deviation across resamples. PACKORA achieves the highest solve rate on all six benchmarks.
1 Introduction
Molecular crystals are widely used in pharmaceuticals, agrochemicals, and organic electronics (Beran, 2023). Their properties depend strongly on molecular conformation and packing, and different polymorphs of the same chemical system can exhibit distinct solubility, stability, bioavailability, charge transport, and mechanical properties (Price, 2014; Jin et al., 2025; Gharakhanyan et al., 2025). Molecular crystal structure prediction (CSP) aims to predict possible crystal structures given the molecular components, accelerating drug development and functional materials design.
Molecular CSP generally involves two complementary stages: structure generation and structure ranking (Hunnisett et al., 2024a,b). Traditional workflows generate candidate packings using random, quasi-random, or evolutionary search (Li et al., 2018; Curtis et al., 2018), then relax and rank them using computationally expensive energy calculations, often based on density functional theory (Price, 2014; Reilly et al., 2016; Hunnisett et al., 2024a,b). FastCSP primarily accelerates structure ranking by using a machine-learning interatomic potential (MLIP) for structure relaxation and energy calculation, while obtaining initial candidates from a random structure generator (Gharakhanyan et al., 2025).
Generative models offer a faster approach to structure generation by learning from experimentally observed crystal structures and concentrating a finite candidate budget on plausible packings. Despite recent progress (Jin et al., 2025; Zeng et al., 2026; Subramanian et al., 2026; Lo et al., 2026), several gaps remain. Existing methods differ in the molecular information they require and the chemical systems they support, while evaluation protocols vary in candidate budgets and downstream processing, making generation and ranking performance difficult to compare directly. Moreover, the effects of key design choices in architecture, training, conditioning, inference, and scaling remain only partially understood.
In this work, we present PACKORA, an all-atom generative model for molecular CSP that jointly predicts atomic coordinates and the unit cell from molecular graphs containing atom types, bond types, and formal charges. PACKORA supports multi-component and organometallic crystals and explicitly models hydrogen atoms. A single model can also condition on additional structural information that is often available or readily derivable, such as molecular templates, stereochemical labels, and space-group information, allowing it to adapt to different levels of prior knowledge.
We also introduce a matched two-track evaluation that separates structure generation from structure ranking, following the CCDC CSP blind tests (Hunnisett et al., 2024a,b). The generation track measures whether a fixed candidate set contains the experimental structure, without relaxation or energy-based ranking, thereby isolating generator coverage. The ranking track instead processes candidates from each generator through the same relaxation, filtering, deduplication, and lattice-energy ranking pipeline and measures whether the experimental form is ranked near the top. This separation enables direct comparison of generator quality and the downstream utility of generated candidates in practical CSP workflows.
Finally, we systematically study key design choices in architecture, training recipe, conditioning, inference, and scaling. We directly compare DiT with pair-bias attention (Peebles and Xie, 2023), Pairformer (Abramson et al., 2024), and Pairmixer (Ouyang-Zhang et al., 2025), and ablate training choices such as time sampling, translation augmentation, and loss design. These studies show that cacheable pairwise reasoning substantially improves generation quality, careful training and sampling choices matter, and balanced scaling of pairwise and single representations preserves coverage at larger model sizes.
For structure generation, across six benchmarks, PACKORA-M or PACKORA-L achieves the best coverage across candidate budgets and evaluation criteria, with up to a 77.6% relative improvement over CLARI-H (Table 11). When combined with downstream relaxation and ranking, PACKORA achieves higher recovery, faster convergence, and lower experimental-form ranks than CLARI-H on both the single-form and polymorph FastCSP benchmarks (Gharakhanyan et al., 2025).
In summary, our contributions are:
-
A flexible all-atom generative model for molecular CSP. PACKORA jointly generates atomic coordinates and unit cells for diverse molecular systems while supporting optional conditioning on molecular templates, stereochemistry, and space groups.
-
A matched evaluation of generation and ranking. We separately measure finite-budget generator coverage and downstream performance under a common relaxation-and-ranking pipeline.
-
A systematic study of molecular CSP generative modeling. We investigate architecture, training, conditioning, inference, and scaling under a common evaluation protocol and derive an evidence-backed design recipe.

01 TAQMUT

02 DEDWUE

03 TMTPSW01

04 DIRYUY
05 ESAMOA
06 DUPWUG02

07 ABENAX

08 FINNUM

09 BTCOAC

10 FOYNEO

11 YUGWUT

12 YIGDUP

13 EINIPC

14 BAXQIA

15 DUMVEM

16 ADODON

17 IKORIK01

18 DORRAF
Figure 2 Crystal structures predicted by PACKORA. Each example is a collision-free prediction from PACKORA-L that matches all 15 molecules of the experimental reference with RMSD < 2 Å. These 18 examples illustrate PACKORA's ability to generate diverse crystal structures across molecular sizes, compositions, packing motifs, and unit-cell geometries. Panel labels indicate the corresponding CSD refcodes.
Generative molecular CSP. Generative molecular CSP instead learns a distribution over experimental crystal structures. OXtal is an all-atom diffusion model trained on lattice-free molecular crops and adapts the AlphaFold3 Pairformer trunk (Abramson et al., 2024) to atom-level representations (Jin et al., 2025). Mol-CrystalFlow represents each molecule as a rigid body and learns geodesic flows over molecular centroids,
Table 1 Capabilities and scope of generative molecular CSP models. We compare explicit hydrogen generation, chemical scope, and conditioning inputs. and denote supported and unsupported capabilities. For local 3D input, , , and denote required, optional, and unsupported conditioning, respectively.
| Method | Generation | Chemical/data scope | Conditioning inputs | |||
|---|---|---|---|---|---|---|
| Explicit H output | Multi-component | Organometallics | Local 3D input | Stereo labels | Space group | |
| OXtal (Jin et al., 2025) | ✕ | ✓ | ✓ | ▲ | ✕ | ✕ |
| PackFlow (Subramanian et al., 2026) | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ |
| MolCrystalFlow (Zeng et al., 2026) | ✓ | ✕ | ✕ | ▲ | ✕ | ✕ |
| CLARI (Lo et al., 2026) | ✓ | ✓ | ✓ | ✕ | ✕ | ✕ |
| PACKORA | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
orientations, and lattice parameters (Zeng et al., 2026). PackFlow applies reinforcement-learning post-training guided by MLIP energies and forces, improving physical validity and concentrating proposals in low-energy basins (Subramanian et al., 2026). CLARI generates explicit unit cells and replaces triangle layers with pair-bias attention, yielding a reported 15–30× speedup over OXtal (Lo et al., 2026). However, none of these methods provides a single model in which molecular conformers, stereochemical labels, and space-group information can each be supplied or omitted at inference time (Jin et al., 2025; Lo et al., 2026; Subramanian et al., 2026; Zeng et al., 2026). The capabilities of our model and prior approaches are summarized in Table 1.
Generative CSP. A related line of work studies crystal generation and structure prediction for inorganic materials. CDVAE combines a variational autoencoder with diffusion-based coordinate generation, whereas DiffCSP jointly diffuses fractional coordinates and lattice conditioned on a given composition (Xie et al., 2022; Jiao et al., 2024). Subsequent approaches formulate periodic crystal generation using flow matching, as in FlowMM and CrystalFlow (Miller et al., 2024; Luo et al., 2025); stochastic interpolants, as in OMatG (Höllmer et al., 2025); or Bayesian flows over periodic variables (Wu et al., 2025).
Generative CSP has also been extended to metal-organic frameworks (MOFs), where metal nodes and organic linkers can be treated as modular building blocks. MOFFlow (Kim et al., 2025b) and MOF-BFN (Jiao et al., 2025) generate lattices and rigid-body poses of known building blocks using Riemannian and Bayesian flows, respectively, while MOFFlow-2 (Kim et al., 2025a) additionally generates building blocks and models linker torsions. AtomMOF (Kim et al., 2026) removes the rigid-body assumption by directly generating MOF and MOF–adsorbate structures at all-atom resolution.
3 Method
PACKORA predicts atomic coordinates and a unit cell from a molecular specification, a formula-unit count Z, and optional auxiliary information using a conditional coordinate–lattice flow. We describe the selected PACKORA configuration below, with design choices justified by the controlled studies in Section 5.
3.1 Problem Formulation
Crystal representation. We represent a crystal with atoms by atom types , Cartesian coordinates , and a lattice cell whose rows are lattice vectors. Integer translations along these lattice vectors define the corresponding infinite periodic crystal.
Since the same lattice can be represented by different basis vectors and global rotations, we canonicalize the cell in two steps. First, we Niggli-reduce (Křivý and Gruber, 1976; Grosse-Kunstleve et al., 2004) each crystal to obtain a reduced basis , reducing the ambiguity among equivalent lattice bases. Second, we remove the remaining global rotational freedom by forming the rotation-invariant Gram matrix and taking its unique lower-triangular Cholesky factor with positive diagonal:
We further parameterize the canonical cell by an unconstrained vector following Veljković et al. (2026).
Molecular crystal structure prediction (CSP). We formulate molecular CSP as conditional generation of Cartesian coordinates and the lattice latent from a chemical specification, a supplied formula-unit count , and optional auxiliary information. The chemical specification consists of distinct molecular graphs and a stoichiometry vector , where denotes the number of copies of component in one formula unit. For example, a binary 2:1 cocrystal has . Each molecular graph specifies atom types, bond types, and formal charges. To be specific, if component contains atoms, a unit cell with formula units contains
atoms. Optional information may include molecular templates, stereochemical annotations, and a space-group label. A molecular template is a reference 3D conformer, generated for example with RDKit (Landrum et al., 2006), that provides local molecular geometry without specifying crystal packing. Given the complete condition , the generator models .
3.2 Variational Flow Matching for Molecular CSP
We use variational flow matching (VFM; Eijkelboom et al., 2024), which generalizes flow matching (Lipman et al., 2023) through a flexible choice of the variational posterior (Zaghen et al., 2025).
Training objective. Let denote a crystal state and its condition, and let be a prior sample. We use the linear conditional path to interpolate between the prior and data endpoints:
Given a noisy state , VFM learns a variational posterior that approximates the true posterior by minimizing the expected negative log-likelihood,
The variational family determines the form of this objective. We model the posterior as a fully factorized Laplace distribution with a fixed scale, which yields a component-weighted loss on the predicted endpoints.
The model parameterizes the mean of the variational posterior, which is equivalent to predicting the clean endpoint from the noisy state and condition as . The equation then simplifies to
where and are loss weights for the coordinate and lattice components, respectively.
Sampling. After training , we generate samples by solving the ordinary differential equation (ODE) or the corresponding stochastic differential equation (SDE) (Eijkelboom et al., 2024; Albergo et al., 2025):
For the linear path, and . Here, is the diffusion coefficient controlling the stochasticity, and is a standard Wiener process.
3.3 Model Architecture
Our model mainly employs a Pairmixer-based architecture (Ouyang-Zhang et al., 2025) with trunk-head modularization (Abramson et al., 2024; Team et al., 2025). As shown in Figure 3, the model first constructs condition-only single and pair representations, refines the pair representation with Pairmixer, injects the noisy crystal state into the single representation, and processes it with a Diffusion Transformer (DiT) (Peebles and

Figure 3 Model architecture of PACKORA. The condition C is embedded into single and pair representations, with the pair representation refined by four PAIRMIXER blocks (Ouyang-Zhang et al., 2025). Because this computation depends only on C, it can be cached across denoising steps. Noisy coordinate and lattice embeddings are then added to the single representation and processed by a DiT trunk, with the refined pair representation providing attention biases throughout. Separate heads predict the coordinate and lattice endpoints and .
Xie, 2023). Separate output heads predict the coordinate and lattice endpoints. The complete architecture is specified algorithmically in Section A.
Condition embedding. The input embedder embeds the condition into a per-atom single representation and an initial per-atom-pair representation :
where and are learned single and pair embedding networks. The single representation combines atom identity, periodic-table descriptors, formal charge, optional template coordinates, chirality, and space group. The pair representation combines projected single features with intramolecular bond types, bond stereochemistry, template displacements, and template distances. Availability masks and learned null states distinguish unavailable optional conditions from provided values.
Pairmixer. Pairmixer is a streamlined alternative to Pairformer that retains incoming and outgoing triangle multiplication and pair transitions while omitting triangle attention. Each block updates the current pair representation P through sequential residual operations,
where TriMul and TriMul denote outgoing and incoming triangle multiplication, respectively. The transition is a gated feed-forward network applied independently to each atom pair. Pairmixer leaves the single representation unchanged and produces a refined pair representation .
Noisy-state injection. The noisy crystal state is injected into the single representation . Coordinate features are encoded using Fourier features (Tancik et al., 2020), while the lattice is embedded globally and broadcast to all atoms. The resulting single representation is
where and denote the coordinate and lattice embedding networks, respectively. A sinusoidal embedding of the flow time t provides a separate global condition to the transformer.
DiT trunk. The trunk follows the DiT architecture, alternating between self-attention and feed-forward updates to the single representation. In each attention layer, the refined pair representation is projected to a head-specific bias and added to the attention logits:
where and are the query and key vectors for atoms and in attention head , is the head dimension, and maps the pair representation to a scalar attention bias. The time embedding modulates the normalization and residual gates of both self-attention and feed-forward updates (Peebles and Xie, 2023).
Prediction heads. The DiT output is decoded by separate coordinate and lattice endpoint heads. For the set V of valid atoms, the coordinate head predicts an atomwise vector and subtracts its mean over valid atoms, while the lattice head applies an MLP to the mean-pooled single representation:
where is the coordinate projection and and denote the predicted coordinate and lattice endpoints.
4 Benchmark Evaluation
Inspired by the CSP blind tests (Hunnisett et al., 2024a,b), we evaluate models along two complementary axes: structure generation and structure ranking. Structure generation (Section 4.2) measures unranked coverage at a fixed candidate budget, testing whether a generator can recover the experimental structure. Structure ranking (Section 4.3) measures whether generated candidates remain useful after downstream relaxation and ranking, by evaluating how highly the experimental form is ranked. Unlike the CSP blind-test ranking track, which fixes the candidate pool and varies the ranking method, we fix the downstream evaluator and vary the generator, thereby measuring end-to-end generator-evaluator compatibility.
4.1 Experimental Setup
Dataset. We use the official CLARI training and validation split (Lo et al., 2026), derived from the Cambridge Structural Database (CSD) (Groom et al., 2016). The held-out test set comprises the OXtal Rigid and Flexible benchmarks (Jin et al., 2025), CSP5 (Bardwell et al., 2011), CSP6 (Reilly et al., 2016), CSP7 (Hunnisett et al., 2024a,b), and the CSD Teaching Subset (Battle et al., 2010; Lo et al., 2026). To prevent leakage, CLARI excludes all entries from test refcode families and training structures that share an RDKit-sanitizable molecular component with more than seven heavy atoms, then holds out 1,000 refcode families for validation.
CLARI limits training and validation unit cells to 512 atoms, yielding 917,014 training and 1,048 validation entries. Because we add missing hydrogens with the CSD Python API (Sykes et al., 2024) before counting atoms, we reapply the 512-atom limit after hydrogen completion, leaving 912,807 training and 1,047 validation entries. Section B provides detailed dataset statistics.
Training and sampling configuration. We train PACKORA-M (88M parameters) and PACKORA-L (187M parameters) using Muon (Liu et al., 2025) for hidden matrix parameters and AdamW (Loshchilov and Hutter, 2019) for all remaining parameters. Both models use a learning rate of , an effective batch size of 128, and an EMA decay of 0.9999; weight decay is 0 for PACKORA-M and for PACKORA-L. We also use bfloat16 and train on eight NVIDIA H200 GPUs.
At inference, we condition on stereochemistry when available and on RDKit-generated molecular conformers, reflecting information that is either specified in CSP blind tests (Reilly et al., 2016) or readily derived from molecular graphs (Landrum et al., 2006). We do not use space-group conditioning because space groups are generally not provided in CSP blind tests. We generate candidates with the EDM–Heun sampler (Karras et al., 2022), using stochastic churn, , and 200 sampling steps. Complete hyperparameters are provided in Section C.
Two-stage training. To enable faster iteration before scaling to larger structures, we follow the two-stage training of SeedFold (Yi et al., 2025). In the first stage, we train on crystals with at most 300 atoms; in the second, we expand to all crystals with at most 512 atoms. We save checkpoints every 50 epochs and select the model with the best validation Sol .
4.2 Structure Generation
We first evaluate structure generation alone, following the structure generation phase of the seventh CCDC CSP blind test (Hunnisett et al., 2024b). We measure whether each generative model can recover the experimental structure within a fixed candidate budget, without energy evaluation, relaxation, or ranking.
Benchmarks. We evaluate on six benchmarks: the OXtal Rigid and Flexible sets, with 50 targets each (Jin et al., 2025); CSP5, CSP6, and CSP7, with 6, 5, and 8 targets, respectively (Bardwell et al., 2011; Reilly
CLARI-M (88M) CLARI-L (173M) CLARI-H (354M) Packora-M (88M) Packora-L (187M)

Figure 4 Crystal coverage with 1,000 candidates per target. We report the crystal-level solve rate at a generation budget of 1,000 candidates per target. Numbers in parentheses indicate the number of targets in each benchmark. PACKORA achieves the highest solve rate on all six benchmarks.
et al., 2016; Hunnisett et al., 2024b); and CLARI's CSD Teaching Subset, with 773 targets (Battle et al., 2010; Lo et al., 2026).
Metric and protocol. Following OXtal (Jin et al., 2025) and CLARI (Lo et al., 2026), we report the crystal-level approximate solve rate at candidate budgets of 30 and 1,000. A target is considered solved if any candidate is collision-free, at least 8 of 15 molecules are matched, and with COMPACK (Chisholm and Motherwell, 2005). is the fraction of solved targets. We also report the stricter , which requires all 15 molecules to match. For the 30-candidate budget, we follow CLARI's bootstrapping protocol (Lo et al., 2026): from each fixed pool of 1,000 candidates, we draw 5,000 resamples of 30 candidates and average the resulting . Full metric definitions are provided in Section D.
Baselines. We compare against OXtal and three CLARI variants: CLARI-M, CLARI-L, and CLARI-H (Jin et al., 2025; Lo et al., 2026). For a consistent comparison, we re-evaluate the official CLARI checkpoints using the OXtal evaluation protocol, since the two evaluators differ in collision detection and reference-structure selection. See Section D for details.
Results. Across all six benchmarks, PACKORA achieves the highest solve rate at both 30- and 1,000-candidate budgets under the standard and strict criteria (Figures 1, 4, 5 and 6), outperforming the strongest baseline in 23 of 24 settings and tying on the saturated CSP5 result. At 30 candidates, the relative gain reaches 54.5% on CSP7 under the standard criterion and 188.0% on CSP6 under the strict criterion. Figure 2 further demonstrates accurate recovery across diverse molecules and packing motifs. Full tables are provided in Section E, results with Z sampled from an empirical prior in Section F, and aligned structure overlays in Section G.
4.3 Structure Ranking
Benchmarks. We evaluate two benchmarks derived from FastCSP (Gharakhanyan et al., 2025). The single-polymorph benchmark contains 23 semi-rigid and three flexible systems, each with one experimental form. The multi-polymorph benchmark contains five semi-rigid and three flexible systems, comprising 29 experimental forms from 28 distinct CSD entries. We exclude BEDMIG, UNOGIN, BISMEV, and BIYSEH from the multi-polymorph benchmark because their CSD families appear in the CLARI training split.
Relaxation and ranking workflow. For each CSD entry, each generator produces 1,000 independent candidates. We generally follow the FastCSP post-generation workflow, relaxing candidates using UMA-S-1.2 with the OMC task (Wood et al., 2025) and the ASE BFGS optimizer (Larsen et al., 2017). We use a maximum-force threshold of 0.02 eV, Å⁻¹ and up to 500 optimization steps. We discard candidates that fail to converge, change molecular connectivity or Z, or have densities outside 0.5–3.0 g, cm⁻³. We then retain structures within 10 kJ, mol⁻¹ of the minimum energy and deduplicate equivalent relaxed structures. For each multi-polymorph system, we pool candidates generated from all constituent CSD entries before energy filtering, deduplication, and ranking, so that all experimental forms are evaluated within a shared energy ordering.

Figure 5 Crystal coverage with 30 candidates per target under the strict criterion. We report the crystal-level solve rate at a generation budget of 30 candidates per target. requires all 15 molecules to match using COMPACK (Bardwell et al., 2011). Numbers in parentheses indicate the number of targets in each benchmark. We generate 1,000 candidates per target and report the mean over 5,000 bootstrap resamples of 30 candidates; error bars show one standard deviation across resamples. PACKORA achieves the highest solve rate on all six benchmarks.

Figure 6 Crystal coverage with 1,000 candidates per target under the strict criterion. We report the crystal-level solve rate at a generation budget of 1,000 candidates per target. requires all 15 molecules to match under COMPACK (Bardwell et al., 2011). Numbers in parentheses indicate the number of targets in each benchmark. PACKORA achieves the highest solve rate on all six benchmarks.
Metrics. We rank the remaining unique candidates by increasing lattice energy (Gharakhanyan et al., 2025). For candidate , we compute the lattice energy per formula unit as
where is the number of formula units in the cell and is the isolated-component reference energy for one formula unit.
A candidate matches an experimental CSD form under COMPACK (Chisholm and Motherwell, 2005) if 30 molecules match with . For each experimental form, we record the best energy rank among all matching candidates. We report overall recovery at any rank, Top-k recovery for , and the mean best rank among recovered forms.
Baseline. We compare PACKORA-M and PACKORA-L with CLARI-H. We do not include FastCSP as a baseline because its random structure generator uses a substantially larger search budget: approximately 53,000–300,000 raw structures per target, with 10,000–176,000 retained for relaxation after deduplication, compared with 1,000 candidates per CSD entry in our evaluation (Gharakhanyan et al., 2025).
Single-polymorph results. PACKORA-M and PACKORA-L recover 17 and 19 of the 26 targets, respectively, compared with 16 for CLARI-H, while reducing the mean rank among recovered targets from 4.25 to 2.00 and
(a) Experimental-form rank

(b) Recovery
(c) Convergence
Figure 7 FastCSP single-polymorph benchmark. We generate 1,000 candidates for each of the 26 targets, relax them with UMA-S-1.2 (Wood et al., 2025), and rank them by increasing energy. (a) Best energy rank of the experimental target form for CLARI-H, PACKORA-M, and PACKORA-L; lower is better, with rank 1 denoting the predicted minimum-energy structure. PACKORA-L and PACKORA-M recover 19 and 17 targets within the top 20, respectively, compared with 15 for CLARI-H. (b) Fraction of targets recovered by energy-rank cutoff ; PACKORA achieves higher recovery across cutoffs. (c) Cumulative fraction of the generated candidates converged by BFGS step; PACKORA candidates converge faster throughout relaxation. Relaxing all candidates on eight NVIDIA H200 GPUs takes 16.8, 11.4, and 10.2 h for CLARI-H, PACKORA-M, and PACKORA-L, respectively.
Table 2 Experimental-form recovery on FastCSP single-polymorph benchmark. We generate 1,000 candidates for each of the 26 targets, relax them with UMA-S-1.2 (Wood et al., 2025), and rank the relaxed structures by increasing energy. Recovered denotes the fraction of targets with an experimental-form match at any rank, while Top-k denotes the fraction whose best match appears within the top k ranks. Mean rank is computed over recovered targets only, with lower values indicating better ranking. Bold marks the best result. PACKORA achieves both higher recovery across rank cutoffs and lower experimental-form ranks.
| Method | Recovered ↑ | Top-1 ↑ | Top-5 ↑ | Top-20 ↑ | Mean rank ↓ |
|---|---|---|---|---|---|
| CLARI-H | 16/26 | 9/26 | 13/26 | 15/26 | 4.25 |
| PACKORA-M | 17/26 | 10/26 | 17/26 | 17/26 | 2.00 |
| PACKORA-L | 19/26 | 13/26 | 16/26 | 19/26 | 2.05 |
2.05 (Table 2 and Figure 7). The recovery advantage persists across all evaluated rank cutoffs. PACKORA candidates also relax faster: PACKORA-L reaches convergence after 98 BFGS steps, compared with 198 for CLARI-H. On eight NVIDIA H200 GPUs, relaxing all candidates takes for PACKORA-M and for PACKORA-L, compared with for CLARI-H. Per-target ranks and values are reported in Section H.
Multi-polymorph results. The advantage remains in the multi-polymorph setting. PACKORA-M and PACKORA-L recover 19 and 21 of the 29 forms, respectively, compared with 18 for CLARI-H, and reduce the mean recovered rank from 102.17 to 47.11 and 54.62 (Table 3 and figure 8). Also, both PACKORA variants recover at least one polymorph for all 8 of 8 systems, whereas CLARI-H recovers 7. Relaxation is also faster: after 100 BFGS steps, and of PACKORA-M and PACKORA-L candidates have converged, compared with for CLARI-H. Total relaxation takes and , respectively, versus for CLARI-H on eight NVIDIA H200 GPUs. Per-form ranks and values are reported in Section H.
5 Building the Recipe
We construct the final PACKORA recipe through five controlled studies of the design space:
-
Architecture: Which backbone—DiT with pairwise bias, Pairformer, or PairMixer—is most effective? Where should the noisy crystal state enter the network, and do additional single-track or geometry modules help? (Figures 9 and 10)
-
Training: Which choices of time distribution, augmentation, endpoint objective, loss weighting, auxiliary supervision, and optimizer improve structure generation? (Figure 11)

Figure 8 FastCSP multi-polymorph benchmark. We generate 1,000 candidates for each of the 29 target structures across eight systems, relax them with UMA-S-1.2 (Wood et al., 2025), and rank them by increasing energy within each system. (a) Best energy rank of each of the 29 polymorphs for CLARI-H, PACKORA-M, and PACKORA-L; lower is better, with rank 1 denoting the predicted minimum-energy structure. Marker color identifies the polymorph across systems. PACKORA-L and PACKORA-M recover 21 and 19 polymorphs, respectively, compared with 18 for CLARI-H. (b) Fraction of polymorphs recovered by energy-rank cutoff ; PACKORA achieves higher recovery across cutoffs. (c) Cumulative fraction of the generated candidates converged by BFGS step; PACKORA candidates converge faster throughout relaxation. Relaxing all candidates on eight NVIDIA H200 GPUs takes 16.8, 10.6, and 8.9 h for CLARI-H, PACKORA-M, and PACKORA-L, respectively.
Table 3 Experimental-form recovery on FastCSP multiple-polymorph benchmark. We generate 1,000 candidates for each of the 29 targets, relax them with UMA-S-1.2 (Wood et al., 2025), and rank the relaxed structures by increasing energy. Recovered denotes the fraction of targets with an experimental-form match at any rank, while Top-k denotes the fraction whose best match appears within the top k ranks. Mean rank is computed over recovered targets only, with lower values indicating better ranking. Bold marks the best result. PACKORA achieves both higher recovery across rank cutoffs and lower experimental-form ranks.
| Method | Recovered ↑ | Top-1 ↑ | Top-5 ↑ | Top-20 ↑ | Mean rank ↓ |
|---|---|---|---|---|---|
| CLARI-H | 18/29 | 5/29 | 9/29 | 13/29 | 102.17 |
| PACKORA-M | 19/29 | 6/29 | 11/29 | 15/29 | 47.11 |
| PACKORA-L | 21/29 | 5/29 | 13/29 | 17/29 | 54.62 |
-
Conditioning: How should optional inputs be dropped during training so that a single model remains effective across different combinations of stereochemistry, molecular templates, and space-group information? (Figure 12)
-
Inference: Which sampler and solver settings work best, and does autoguidance provide further gains? (Figure 13)
-
Scaling: How does scaling single-track and pair-track widths affect per-sample success and coverage across targets, and which allocation best balances the two? (Figure 14; Table 4)
5.1 Ablation Protocol
Dataset preprocessing. Following OXtal (Jin et al., 2025), we construct the dataset from CSD entries deposited by May 1, 2025. We require three-dimensional coordinates, an -factor of at most , single-crystal X-ray diffraction at ambient pressure, a non-polymeric structure, and a known space group. We add missing hydrogens using the CSD API (Sykes et al., 2024) and retain unit cells with at most 512 atoms, including hydrogens. To prevent benchmark leakage, we remove all entries belonging to a test CSD family or containing an eligible CSD-provided component SMILES found in the test sets. Within each remaining CSD family, we deduplicate equivalent structures using pymatgen StructureMatcher (Ong et al., 2013) with ltol = 0.2, stol = 0.3, and angle_tol = , retaining the entry with the lowest -factor. The complete preprocessing pipeline and dataset statistics are provided in Section I.
Setup. To make controlled ablations feasible under a fixed compute budget, we train each configuration for 300 epochs on structures with at most 300 atoms per unit cell, saving checkpoints every 50 epochs. We evaluate
(a) Before-Pairmixer noisy-input entry
(b) After-Pairmixer noisy-input entry

Figure 9 Model variants for architecture ablations. (a) In the pre-entry variant, noisy coordinate and lattice embeddings and optional geometric enhancement module (GEM) features are injected before PAIRMIXER. (b) In the post-entry variant, the condition-only INPUT EMBEDDER and PAIRMIXER are evaluated before noisy-state injection, allowing their outputs to be cached across denoising steps. Modules with dotted outlines denote optional components. Both variants produce single and pair representations S and P, which are passed to the same DiT trunk.
each checkpoint on a fixed subset of 8,192 validation crystals, generating 30 candidates per target with the 200-step EDM–Heun sampler, and report as defined in Section 4.2. Architecture, training, conditioning, and scaling studies follow this protocol; inference studies instead vary the sampler and function-evaluation budget. Within each study, we vary one design choice at a time.
5.2 Architecture: A Cacheable Pairmixer Design
Explored designs. We compare three backbones: (1) DiT with pair-bias attention, as used by CLARI (Lo et al., 2026); (2) Pairformer, as used by AlphaFold3 and OXtal (Abramson et al., 2024; Jin et al., 2025); and (3) Pairmixer, a lighter Pairformer variant without triangle attention (Ouyang-Zhang et al., 2025). We also test a single-track update and the geometric enhancement module (GEM) (Veljković et al., 2026), which injects periodic minimum-image pair geometry from the noisy structure. Finally, we compare a pre-entry design, inspired by Proteina (Geffner et al., 2025), where noisy coordinate and lattice features enter before pair refinement, with a post-entry design, following AlphaFold3 (Abramson et al., 2024), where they enter afterward so that the pair representation can be cached.
Results and selection. Pairmixer outperforms Pairformer and DiT with pair-bias attention (0.479 vs. 0.462 vs. 0.421; Figure 10a–b). Pairformer performs better early in training but later degrades and is substantially more expensive than Pairmixer. GEM improves DiT with pair-bias attention, whereas neither GEM nor the single-track update improves Pairmixer (Figure 10c–d). Pre-entry Pairmixer slightly outperforms post-entry Pairmixer (0.479 vs. 0.474), but caching the post-entry design yields a 20.1× reduction in 200-step sampling time in a synthetic [64, 300] benchmark, with peak memory increasing slightly from 21.3 to 28.0 GiB (Figure 10e–f). We therefore select post-entry Pairmixer without additional modules. We report parameter count and GFLOPs of each architecture variant in Section J.
5.3 Training: Selecting the Flow-Matching Recipe
Explored designs. We ablate each training choice separately. For time sampling, we compare uniform, logit-normal, Beta, and the Beta-uniform mixture proposed by Geffner et al. (2025). We also test random translations in fractional coordinates, wrapping each molecule into the unit cell by its centroid (Gruver et al., 2024). We compare and losses and vary the coordinate-to-lattice weighting in Equation (3).
We further test auxiliary supervision on periodic pair distances. Let , where and denote target and predicted minimum-image distances. We consider an loss following CLARI (Lo et al., 2026) and a periodic adaptation of AlphaFold 3 smooth-LDDT (Abramson et al., 2024):
where is the sigmoid function and distances are in angstroms. Finally, we compare AdamW (Loshchilov and Hutter, 2019) with Muon (Liu et al., 2025) and evaluate raw versus EMA parameters.
Results and selection. The Beta-uniform mixture outperforms pure Beta, logit-normal, and uniform time distributions (Figure 11a). Random translation augmentation improves Sol from 0.466 to 0.486, while
A DiT+bias B +GEM C Pairmixer/pre F Pairmixer/post I Pairformer/post
(a) Architectures by epoch

(c) Pre-entry variants
(b) Architectures by compute
(e) Cache runtime
(d) Post-entry variants
(f) Peak memory
Figure 10 Architecture selection, extensions, and caching. Panels (a)–(d) report validation Sol_C on the ≤300-atom subset with a generation budget of 30 candidates under EDM Heun 200. Pairmixer gives the dominant gain; post-entry Config. (F) remains close to Config. (C), while single updates and GEM do not improve final coverage. Panel (e) reports runtime for synthetic [64, 300] EDM Heun inputs, including cache construction, and panel (f) reports peak memory. Caching post-entry condition-only pair states removes the per-step Pairmixer cost at a fixed memory increase.
substantially outperforms (0.486 vs. 0.407; Figure 11b). Increasing the coordinate-to-lattice weight ratio improves performance from 0.412 at 1:1 to 0.486 at 10:1, after which performance declines (Figure 11c). Auxiliary pair supervision provides little benefit: the best smooth-LDDT setting improves by only 0.004 while requiring more training GPU-hours (599 vs. 436). Muon outperforms AdamW (0.486 vs. 0.447), and an EMA decay of 0.9999 outperforms both raw weights and a decay of 0.999 (Figure 11e–f). We therefore select Beta-uniform time sampling, random translation augmentation, endpoint regression with a 10:1 coordinate-to-lattice weight ratio, no auxiliary pair loss, Muon, and an EMA decay of 0.9999.
5.4 Conditioning: Robustness Through Template Dropout
Explored designs. Because available conditioning information varies across targets, a single model should handle different subsets of optional inputs. We vary the template-coordinate dropout probability and evaluate each model under five inference-time conditioning settings: none, stereochemistry only, template only, stereochemistry plus template, and all three conditions including space group.
Results and selection. Moderate template dropout ( ) is the most robust across conditioning settings, achieving the highest mean over the five settings (0.487, compared with 0.483 and 0.264 for and 1, respectively). Notably, exposure to templates during training also improves performance when no optional conditioning is provided: reaches 0.459, compared with 0.442 for a model that never observes templates. We therefore select (Figure 12).
5.5 Inference: Efficient Sampling with EDM–Heun
Explored designs. We compare flow ODE with Euler integration, flow SDE with Euler–Maruyama, and EDM–Heun (Karras et al., 2022) at matched numbers of function evaluations (NFE), and sweep the EDM discretization exponent . For template conditioning, we compare random rotation and translation, rotation only, and no augmentation at inference to test whether reducing template randomness improves performance. Finally, we evaluate autoguidance (Karras et al., 2024), using earlier training checkpoints as degraded models following Geffner et al. (2025).
(a) Time sampler

(c) Loss weighting
(b) Translation × objective
(e) Optimizer
(d) Auxiliary loss at
(f) EMA decay
Figure 11 Training recipe selection. All panels report validation Sol under EDM Heun 200 with a generation budget of 30 candidates. (a) The Beta-uniform mixture gives the strongest completed score. (b) With L1 regression, crystal translation improves the best score from 0.466 to 0.486; under translation, L1 outperforms L2 (0.486 vs. 0.407). (c) A 10:1 coordinate-to-lattice ratio is optimal. (d) At , smooth-LDDT improves the best score by only 0.004 while increasing training cost from 436 to 599 GPU-hours. (e) Muon outperforms AdamW. (f) EMA decay 0.9999 outperforms raw weights and decay 0.999.

Figure 12 Moderate template dropout is most robust across conditioning settings. Validation Sol at epoch 300 using EDM–Heun with 200 steps and 30 candidates per target. S, T, and SG denote stereochemistry, template coordinates, and space-group conditioning, respectively. Among models trained with , achieves the highest average performance across the five inference-time conditioning settings and is therefore selected. Template-conditioned results for fall below the plotted range and are shown as downward triangles.
Results and selection. At 400 NFE, EDM–Heun achieves Sol = 0.482, compared with 0.430 for flow SDE and 0.408 for flow ODE. Increasing EDM–Heun from 400 to 1000 NFE improves Sol by only 0.005, so we retain 400 NFE. Performance is similar for ; following Karras et al. (2022), we select . Reducing template augmentation does not improve performance, with all three variants reaching 0.485–0.487, so we retain the training-matched rotation and translation. Autoguidance also provides no benefit: the best guided setting reaches 0.470, compared with 0.487 without guidance. We therefore select EDM–Heun at 400 NFE with , template rotation and translation, and no autoguidance.
5.6 Scaling: Balancing Single- and Pair-Track Widths
Explored designs. We study how the single-track width and pair-track width affect performance when scaled independently or together. All other settings, including depth, Pairmixer placement, conditioning,

Figure 13 Inference ablations. (a) Validation versus NFE budget for flow ODE, flow SDE, and EDM–Heun. (b) EDM–Heun with 400 NFEs across discretization exponents ; the failed result is shown at the lower boundary, and the star marks the selected . (c) Validation trajectories with no template augmentation, rotation only, and rotation plus translation at inference. (d) Autoguidance using degraded checkpoints from epochs 50, 100, and 150 across guidance weights .
Table 4 Width-scaling ablation. All rows keep depth, Pairmixer placement, conditioning, validation split, and sampler fixed while varying the single width and pair width . Sol and Sol are evaluated at epoch 300 with 30 candidates per target and 200-step EDM–Heun sampling (400 NFE). GFLOPs denote analytical denoiser-forward costs at . Teal rows mark the selected width configurations: W0 defines PACKORA-M, while W4 defines the width of PACKORA-L before applying weight decay as selected in Figure 14.
| ID | Heads | Params (M) | GFLOPs | Sol ↑ | Sol ↑ | ||
|---|---|---|---|---|---|---|---|
| W0 | 512 | 128 | 8 | 87.56 | 379.6 | 0.088 | 0.486 |
| W1 | 512 | 192 | 8 | 89.65 | 762.6 | 0.084 | 0.490 |
| W2 | 512 | 256 | 8 | 92.54 | 1287.2 | 0.087 | 0.480 |
| W3 | 768 | 128 | 12 | 184.79 | 421.0 | 0.100 | 0.462 |
| W4 | 768 | 192 | 12 | 186.91 | 804.7 | 0.100 | 0.487 |
| W5 | 1024 | 128 | 16 | 330.79 | 483.8 | 0.111 | 0.454 |
validation split, and sampler, are held fixed. We report both the single-sample solve rate and the 30-sample crystal-level solve rate , capturing per-sample success and coverage across targets, respectively. Starting from the base configuration W0 with , we consider:
-
Pair scaling (W1, W2): increase to 192 and 256, respectively, while keeping .
-
Single scaling (W3, W5): increase to 768 and 1024, respectively, while keeping .
-
Balanced scaling (W4): increase both widths to , preserving .
Scaling either width alone is insufficient. The epoch sweeps reveal distinct limitations of the two isolated scaling paths. Increasing only the single width improves but eventually reduces , suggesting that the added capacity makes successes more repeatable on already-solvable targets rather than expanding coverage. Increasing only the pair width, in contrast, yields no consistent improvement in either metric. Thus, neither isolated scaling path provides a uniformly better trade-off across sampling budgets (Figure 14; Table 4).
Balanced scaling reaches the sampling-budget Pareto frontier. Jointly scaling both widths allows W4 to maintain single-sample success while recovering crystal-level coverage, yielding a better trade-off than scaling either width alone. Adding weight decay of shifts W4 toward greater coverage, trading some success at for improved coverage at . We prioritize coverage because CSP workflows generate multiple candidates for subsequent ranking; a structure absent from the candidate set cannot be recovered downstream (Hunnisett et al., 2024a,b). We therefore retain W0 as PACKORA-M and select W4 with weight decay as PACKORA-L (Figure 14).
6 Conclusion
We present PACKORA, a flexible all-atom generator for molecular CSP based on variational flow matching. PACKORA supports multi-component and organometallic crystals and optional conditioning on molecular
(a) Sampling-budget trade-off

(b) Epoch sweeps
Figure 14 Balanced width scaling reaches the sampling-budget Pareto frontier. (a) Single-sample solve rate ( ) versus crystal-level solve rate at at epoch 300. Marker shape and color indicate the width-scaling family. Scaling either the single or pair width alone does not consistently improve the trade-off between per-sample success and target coverage, whereas jointly scaling both widths reaches the Pareto frontier. Adding weight decay of further shifts the balanced model toward higher coverage. W0 is selected as PACKORA-M, and W4 with weight decay (W4 + WD) as PACKORA-L. (b) Epoch sweeps for single-width scaling (W0, W3, W5), pair-width scaling (W0, W1, W2), and balanced scaling (W0, W4). Top and bottom rows report and , respectively. All metrics use the shared validation protocol with 30 candidates per target and 200-step EDM–Heun sampling.
templates, stereochemistry, and space-group information. Controlled studies of architecture, training, conditioning, inference, and scaling yield a practical recipe based on cacheable Pairmixer representations, endpoint regression, EDM–Heun sampling, and balanced single- and pair-track capacity. Inspired by the CCDC CSP blind tests, we introduce a two-track evaluation that separates generator-only coverage from end-to-end performance under a common downstream relaxation and ranking pipeline. Across six benchmarks, PACKORA achieves the best matched-budget coverage, while under the shared downstream pipeline it achieves higher experimental-form recovery, lower ranks, and faster convergence than the baselines.
Limitations and discussion. First, our controlled ablations vary design choices one at a time, and therefore do not capture interactions among architecture, training, conditioning, inference, and scaling; the selected recipe is not guaranteed to be globally optimal. Second, our ablations and model selection primarily use k=30 candidates, although the best model may depend on the candidate budget. Our scaling results show a trade-off between small-budget success and larger-budget coverage, suggesting that model selection may benefit from larger candidate pools. Determining an appropriate selection budget therefore remains an important question for generative CSP.
Acknowledgements
This research was supported by the NVIDIA Academic Grant Program and by the Advanced GPU Utilization Support Program, funded by the Government of the Republic of Korea through the Ministry of Science and ICT. This work was also supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF), funded by the Ministry of Education (RS-2025-25435147); grants from the Institute for Information & Communications Technology Planning & Evaluation (IITP), funded by the Korean government (MSIT), including the Artificial Intelligence Graduate School Program (KAIST; RS-2019-II190075) and the AI Star Fellowship (KAIST; RS-2025-02304967); a grant from the Korea Health Industry Development Institute (KHIDI), funded by the Ministry of Health & Welfare (MOHW), for Developing a Highly Multimodal (Drug, Protein, Gene, Cell Imaging, Literature) Foundation Model for ADMET Property Prediction (No. N0425208); and an NRF grant funded by MSIT (No. RS-2022-NR072184). We also acknowledge the use of OpenAI's ChatGPT and Codex (OpenAI, 2022, 2025) for assistance with research code development, figure preparation, and manuscript revision.
References
J. Abramson, J. Adler, J. Dunger, R. Evans, T. Green, A. Pritzel, O. Ronneberger, L. Willmore, A. J. Ballard, J. Bambrick, S. W. Bodenstein, D. A. Evans, C.-C. Hung, M. O'Neill, D. Reiman, K. Tunyasuvunakool, Z. Wu, A. Žemgulyté, E. Arvaniti, C. Beattie, O. Bertolli, A. Bridgland, A. Cherepanov, M. Congreve, A. I. Cowen-Rivers, A. Cowie, M. Figurnov, F. B. Fuchs, H. Gladman, R. Jain, Y. A. Khan, C. M. R. Low, K. Perlin, A. Potapenko, P. Savy, S. Singh, A. Stecula, A. Thillaisundaram, C. Tong, S. Yakneen, E. D. Zhong, M. Zielinski, A. Žídek, V. Bapst, P. Kohli, M. Jaderberg, D. Hassabis, and J. M. Jumper. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature, 630(8016):493–500, 2024. doi: 10.1038/s41586-024-07487-w.
M. S. Albergo, N. M. Boffi, and E. Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80, 2025.
D. A. Bardwell, C. S. Adjiman, Y. A. Arnautova, E. Bartashevich, S. X. M. Boerrigter, D. E. Braun, A. J. Cruz-Cabeza, G. M. Day, R. G. Della Valle, G. R. Desiraju, et al. Towards crystal structure prediction of complex organic compounds: a report on the fifth blind test. Acta Crystallographica Section B: Structural Science, Crystal Engineering and Materials, 67(6):535–551, 2011. doi: 10.1107/S0108768111042868.
G. M. Battle, G. M. Ferrence, and F. H. Allen. Applications of the Cambridge Structural Database in chemical education. Journal of Applied Crystallography, 43(5):1208–1223, 2010. doi: 10.1107/S0021889810024155.
G. J. O. Beran. Frontiers of molecular crystal structure prediction for pharmaceuticals and functional organic materials. Chemical Science, 14(46):13290–13312, 2023. doi: 10.1039/D3SC03903J.
J. A. Chisholm and S. Motherwell. COMPACK: a program for identifying crystal structure similarity using distances. Journal of Applied Crystallography, 38(1):228–231, 2005. doi: 10.1107/S0021889804027074.
F. Curtis, X. Li, T. Rose, Á. Vázquez-Mayagoitia, S. Bhattacharya, L. M. Ghiringhelli, and N. Marom. GAtor: A first-principles genetic algorithm for molecular crystal structure prediction. Journal of Chemical Theory and Computation, 14(4):2246–2264, 2018. doi: 10.1021/acs.jctc.7b01152.
G. M. Day, T. G. Cooper, A. J. Cruz-Cabeza, K. E. Hejczyk, H. L. Ammon, S. X. M. Boerrigter, J. S. Tan, R. G. Della Valle, E. Venuti, K. V. J. Jose, et al. Significant progress in predicting the crystal structures of small organic molecules—a report on the fourth blind test. Acta Crystallographica Section B: Structural Science, 65(2):107–125, 2009. doi: 10.1107/S0108768109004066.
F. Eijkelboom, G. Bartosh, C. Andersson Naesseth, M. Welling, and J.-W. van de Meent. Variational flow matching for graph generation. Advances in Neural Information Processing Systems, 37:11735–11764, 2024.
T. Geffner, K. Didi, Z. Zhang, D. Reidenbach, Z. Cao, J. Yim, M. Geiger, C. Dallago, E. Kucukbenli, A. Vahdat, and K. Kreis. Proteina: Scaling flow-based protein structure generative models. In International Conference on Learning Representations (ICLR), 2025.
V. Gharakhanyan, Y. Yang, L. Barroso-Luque, M. Shuaibi, D. S. Levine, K. Michel, et al. FastCSP: Accelerated molecular crystal structure prediction with universal model for atoms. arXiv preprint arXiv:2508.02641, 2025.
C. R. Groom, I. J. Bruno, M. P. Lightfoot, and S. C. Ward. The Cambridge Structural Database. Acta Crystallographica Section B: Structural Science, Crystal Engineering and Materials, 72(2):171–179, 2016. doi:10.1107/S2052520616003954.
R. W. Grosse-Kunstleve, N. K. Sauter, and P. D. Adams. Numerically stable algorithms for the computation of reduced unit cells. Acta Crystallographica Section A: Foundations of Crystallography, 60(1):1–6, 2004.
N. Gruver, A. Sriram, A. Madotto, A. G. Wilson, C. L. Zitnick, and Z. Ulissi. Fine-tuned language models generate stable inorganic materials as text. In International Conference on Learning Representations, 2024.
P. Höllmer, T. Egg, M. Martirossyan, E. Fuemmeler, Z. Shui, A. Gupta, P. Prakash, A. Roitberg, M. Liu, G. Karypis, et al. Open materials generation with stochastic interpolants. In Forty-second International Conference on Machine Learning, 2025.
L. M. Hunnisett, N. Francia, J. Nyman, N. S. Abraham, S. Aitipamula, T. Alkhidir, M. Almehairbi, A. Anelli, D. M. Anstine, J. E. Anthony, et al. The seventh blind test of crystal structure prediction: structure ranking methods. Acta Crystallographica Section B: Structural Science, Crystal Engineering and Materials, 80(6):548–574, 2024a. doi:10.1107/S2052520624008679.
L. M. Hunnisett, J. Nyman, N. Francia, N. S. Abraham, C. S. Adjiman, S. Aitipamula, T. Alkhidir, M. Almehairbi, A. Anelli, D. M. Anstine, et al. The seventh blind test of crystal structure prediction: structure generation methods.
Acta Crystallographica Section B: Structural Science, Crystal Engineering and Materials, 80(6):517–547, 2024b. doi:10.1107/S2052520624007492.
R. Jiao, W. Huang, P. Lin, J. Han, P. Chen, Y. Lu, and Y. Liu. Crystal structure prediction by joint equivariant diffusion. Advances in Neural Information Processing Systems, 36, 2024.
R. Jiao, H. Wu, W. Huang, Y. Song, Y. Ouyang, Y. Rong, T. Xu, P. Wang, H. Zhou, W.-Y. Ma, et al. MOF-BFN: Metal-organic frameworks structure prediction via bayesian flow networks. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
E. Jin, A. C. Nica, M. Galkin, J. Rector-Brooks, K. L. K. Lee, S. Miret, F. H. Arnold, M. Bronstein, A. J. Bose, A. Tong, and C.-H. Liu. OXtal: An all-atom diffusion model for organic crystal structure prediction. arXiv preprint arXiv:2512.06987, 2025.
T. Karras, M. Aittala, T. Aila, and S. Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, volume 35, pages 26565–26577, 2022.
T. Karras, M. Aittala, T. Kynkaanniemi, J. Lehtinen, T. Aila, and S. Laine. Guiding a diffusion model with a bad version of itself. arXiv preprint arXiv:2406.02507, 2024.
N. Kim, S. Kim, and S. Ahn. Flexible MOF generation with torsion-aware flow matching. In Advances in Neural Information Processing Systems, 2025a. URL https://openreview.net/forum?id=cLJfumTWLI.
N. Kim, S. Kim, M. Kim, J. Park, and S. Ahn. MOFFlow: Flow matching for structure prediction of metal-organic frameworks. In The Thirteenth International Conference on Learning Representations, 2025b. URL https://openreview.net/forum?id=dNT3abOsLo.
N. Kim, H. Kim, S. Yu, M. Kim, S. Kim, and S. Ahn. AtomMOF: All-atom flow matching for MOF-adsorbate structure prediction. arXiv preprint arXiv:2602.07351, 2026. URL https://arxiv.org/abs/2602.07351.
I. Křivý and B. Gruber. A unified algorithm for determining the reduced (Niggli) cell. Acta Crystallographica Section A, 32(2):297–298, 1976. doi: 10.1107/S0567739476000636.
G. Landrum et al. Rdkit: Open-source cheminformatics, 2006.
A. H. Larsen, J. J. Mortensen, J. Blomqvist, I. E. Castelli, R. Christensen, M. Dułak, J. Friis, M. N. Groves, B. Hammer, C. Hargus, et al. The atomic simulation environment: a python library for working with atoms. Journal of Physics: Condensed Matter, 29(27):273002, 2017.
X. Li, F. S. Curtis, T. Rose, C. Schober, Á. Vázquez-Mayagoitia, K. Reuter, H. Oberhofer, and N. Marom. Genarris: Random generation of molecular crystal structures and fast screening with a Harris approximation. The Journal of Chemical Physics, 148(24):241701, 2018. doi: 10.1063/1.5014038.
Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
J. Liu, J. Su, X. Yao, Z. Jiang, G. Lai, Y. Du, Y. Qin, W. Xu, E. Lu, J. Yan, Y. Chen, H. Zheng, Y. Liu, S. Liu, B. Yin, W. He, H. Zhu, Y. Wang, J. Wang, M. Dong, Z. Zhang, Y. Kang, H. Zhang, X. Xu, Y. Zhang, Y. Wu, X. Zhou, and Z. Yang. Muon is scalable for llm training, 2025.
A. Lo, L. Mucko, A. H. Cheng, A. Cai, A. J. A. Price, W. Matusik, and A. Aspuru-Guzik. Fast organic crystal structure prediction with unit cell flow matching. arXiv preprint arXiv:2606.03199, 2026.
I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
X. Luo, Z. Wang, Q. Wang, X. Shao, J. Lv, L. Wang, Y. Wang, and Y. Ma. CrystalFlow: A flow-based generative model for crystalline materials. Nature Communications, 16:9267, 2025. doi: 10.1038/s41467-025-64364-4.
B. K. Miller, R. T. Chen, A. Sriram, and B. M. Wood. Flowmm: Generating materials with riemannian flow matching. In Forty-first International Conference on Machine Learning, 2024.
S. P. Ong, W. D. Richards, A. Jain, G. Hautier, M. Kocher, S. Cholia, D. Gunter, V. Chevrier, K. A. Persson, and G. Ceder. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013. doi: 10.1016/j.commatsci.2012.10.028.
OpenAI. ChatGPT: Optimizing language models for dialogue. https://openai.com/index/chatgpt/, 2022. Accessed: 2026-08-23.
OpenAI. Introducing Codex. https://openai.com/index/introducing-codex/, 2025. Accessed: 2026-08-23.
J. Ouyang-Zhang, P. Murugan, D. J. Diaz, G. Scarpellini, R. S. Bowen, N. Gruver, A. Klivans, P. Krähenbühl, A. Faust, and M. Al-Shedivat. Triangle multiplication is all you need for biomolecular structure representations. arXiv preprint arXiv:2510.18870, 2025.
W. Peebles and S. Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4195–4205, 2023.
S. L. Price. Predicting crystal structures of organic compounds. Chemical Society Reviews, 43:2098–2111, 2014. doi:10.1039/C3CS60279F.
N. Rego and D. Koes. 3Dmol.js: molecular visualization with WebGL. Bioinformatics, 31(8):1322–1324, 2015. doi:10.1093/bioinformatics/btu829.
A. M. Reilly, R. I. Cooper, C. S. Adjiman, S. Bhattacharya, A. D. Boese, J. G. Brandenburg, P. J. Bygrave, R. Bylsma, J. E. Campbell, R. Car, et al. Report on the sixth blind test of organic crystal structure prediction methods. Acta Crystallographica Section B: Structural Science, Crystal Engineering and Materials, 72(4):439–459, 2016. doi:10.1107/S2052520616007447.
A. Subramanian, E. Pan, J. Nam, M. Weiler, S. Qu, C. W. Park, T. S. Jaakkola, E. Olivetti, and R. Gomez-Bombarelli. PackFlow: Generative molecular crystal structure prediction via reinforcement learning alignment. arXiv preprint arXiv:2602.20140, 2026.
R. A. Sykes, N. T. Johnson, C. J. Kingsbury, J. Harter, A. G. P. Maloney, I. J. Sugden, S. C. Ward, I. J. Bruno, S. A. Adcock, P. A. Wood, P. McCabe, A. A. Moldovan, F. Atkinson, I. Giangreco, and J. C. Cole. What has scripting ever done for us? The CSD Python application programming interface (API). Journal of Applied Crystallography, 57(4):1235–1250, 2024. doi: 10.1107/S1600576724005934.
M. Tancik, P. P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. T. Barron, and R. Ng. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems, volume 33, 2020.
B. A. A. Team, X. Chen, Y. Zhang, C. Lu, W. Ma, J. Guan, C. Gong, J. Yang, H. Zhang, K. Zhang, et al. Protenix-advancing structure prediction through a comprehensive AlphaFold 3 reproduction. BioRxiv, pages 2025–01, 2025.
T. H. Veljković, J. Rosenthal, I. Lončarić, and J.-W. van de Meent. Crystalite: A lightweight transformer for efficient crystal modeling. arXiv preprint arXiv:2604.02270, 2026.
S. Wang, J. Witek, G. A. Landrum, and S. Riniker. Improving conformer generation for small rings and macrocycles based on distance geometry and experimental torsional-angle preferences. Journal of chemical information and modeling, 60(4):2044–2058, 2020.
B. M. Wood, M. Dzamba, X. Fu, M. Gao, M. Shuaibi, L. Barroso-Luque, K. Abdelmaqsoud, V. Gharakhanyan, J. R. Kitchin, D. S. Levine, et al. Uma: A family of universal models for atoms. In Advances in Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=SvopaNxYWt.
H. Wu, Y. Song, J. Gong, Z. Cao, Y. Ouyang, J. Zhang, H. Zhou, W.-Y. Ma, and J. Liu. A periodic bayesian flow for material generation. In The Thirteenth International Conference on Learning Representations, 2025.
T. Xie, X. Fu, O.-E. Ganea, R. Barzilay, and T. S. Jaakkola. Crystal diffusion variational autoencoder for periodic material generation. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=03RLpj-tc_.
Z. Yi, L. Chan, M. Yiming, Q. Wei, Y. Fei, Z. Kexin, W. Lan, G. Minrui, and G. Quanquan. Seedfold: Scaling biomolecular structure prediction. arXiv preprint arXiv:2512.24354, 2025.
O. Zaghen, F. Eijkelboom, A. Pouplin, C. Liu, M. Welling, J.-W. van de Meent, and E. J. Bekkers. Riemannian variational flow matching for material and protein design. arXiv preprint arXiv:2502.12981, 2025.
C. Zeng, H. W. Sullivan, T. Egg, M. M. Martirossyan, P. Höllmer, J. Jin, R. G. Hennig, A. Roitberg, S. Martiniani, E. B. Tadmor, and M. Liu. MolCrystalFlow: Molecular crystal structure prediction via flow matching. arXiv preprint arXiv:2602.16020, 2026.
A Model Architecture Details
Notation. This section specifies the PACKORA forward pass in algorithmic form. Indices denote atoms, and denotes an attention head. We use and for single and pair representations, respectively. Symbols , , and MLP denote learned embedding functions, linear maps, and multilayer perceptrons, respectively, while Norm denotes normalization. Split and Concat partition and concatenate feature channels, respectively. We use for the sigmoid function, for the configured activation function, for elementwise multiplication, and for the dimension of one attention head.
Overall forward pass. Algorithm 1 summarizes the complete forward pass: the model embeds the condition, refines pair features, injects the noisy crystal state, applies the DiT trunk, and predicts coordinate and lattice.
Algorithm 1 Model forward pass
Require: Noisy state , time , condition , and valid-atom mask
Ensure: Posterior mean
1. Encode the condition and refine pair features
1:
2: for each Pairmixer block do
3:
4: end for
5:
2. Inject the noisy state
6:
3. Propagate and decode
7: for each DiT block do
8:
9: end for
10:
11: return
Condition embedding. For Algorithm 2, contains the atomic number, periodic-table descriptors, formal charge, and chirality of atom . Template coordinates are denoted by , with availability indicator . Molecular membership, bond type, and bond stereochemistry are denoted by , , and , respectively; unavailable categorical conditions use learned null categories. The global condition contains the space-group embedding. Bond, stereochemistry, and template features are restricted to atom pairs within the same molecular component, and stereochemistry features are zero for nonbonded pairs.
Algorithm 2 Condition embedding
Require: Condition and valid-atom mask
Ensure: Condition-only single representation and ordered pair representation
1. Embed atom-level and global conditions
1:
2. Construct intramolecular pair features
2:
3: ,
3. Refine each pair independently
4:
5: return
Pairmixer block. Algorithm 3 updates only the pair representation using outgoing and incoming triangle multiplication followed by a gated pair transition. The mask m restricts all pair operations to valid atoms.
Algorithm 3 Pairmixer block
Require: Pair representation P and valid-atom mask m Ensure: Updated pair representation P
1: # 1. Aggregate information over outgoing and incoming triangles Contract, Contract
2: for in the ordered sequence (out, in) do 3: [] 4: 5: end for
2. Mix feature channels within each pair
6: 7: return P
Noisy-state and time embedding. In Algorithm 4, and are fixed random Fourier frequencies and phases for encoding the coordinates, while contains the fixed frequencies used for the sinusoidal time embedding.
Algorithm 4 Noisy-state and time embedding
Require: Condition-only single representation , noisy coordinates , noisy lattice , and time Ensure: DiT input and time condition # 1. Embed noisy coordinates into the single track 1: fixed random Fourier features 2:
2. Embed and broadcast the noisy lattice
3: 4: is broadcast over atoms
3. Embed flow time
5: fixed sinusoidal frequencies 6: 7: return
DiT block. In Algorithm 5, , , and denote the adaptive shift, scale, and residual-gate vectors, respectively. Subscripts and distinguish modulation parameters for the attention and feed-forward updates.
Algorithm 5 Pair-biased DiT block
Require: Single representation S, time condition , refined pair representation , and mask
Ensure: Updated single representation S
1. Generate time-dependent modulation
1:
2:
2. Apply self-attention with pair bias
3:
4:
5:
6:
3. Apply the gated feed-forward update
7:
8:
9: return S
Prediction heads. Algorithm 6 maps the final single representation to centered Cartesian coordinates and a pooled lattice prediction over valid atoms.
Algorithm 6 Coordinate and lattice prediction heads
Require: Final single representation and valid-atom mask
Ensure: Coordinate endpoint and lattice endpoint
1:
1. Predict centered atomic coordinates
2:
3:
2. Pool atom features and predict the lattice
4:
5:
6: return
B Dataset Statistics
We report statistics for the CLARI training and validation splits used in our benchmark experiments (Section 4). Our preprocessing adds missing hydrogens using the CSD Python API (Sykes et al., 2024) before applying the 512-atom limit. This reduces the training split from 917,014 to 912,807 structures and the validation split from 1,048 to 1,047. We report both statistics for completeness.
Table 5 Size statistics for the CLARI training and validation splits. Statistics are reported before and after applying the 512-atom unit-cell limit following hydrogen completion.
| Property | Unfiltered | 512 atoms | ||||||
|---|---|---|---|---|---|---|---|---|
| Min | Mean | Median | Max | Min | Mean | Median | Max | |
| Training | ||||||||
| Atoms / unit cell | 5 | 203.65 | 180 | 3,558 | 5 | 201.71 | 180 | 512 |
| Molecules / unit cell | 1 | 5.42 | 4 | 246 | 1 | 5.35 | 4 | 160 |
| Atoms / molecule | 1.06 | 48.96 | 42.00 | 682.00 | 1.06 | 48.89 | 42.00 | 512.00 |
| Formula-unit count | 1 | 3.34 | 4 | 40 | 1 | 3.33 | 4 | 40 |
| Validation | ||||||||
| Atoms / unit cell | 10 | 205.95 | 185 | 617 | 10 | 205.56 | 184 | 512 |
| Molecules / unit cell | 1 | 5.51 | 4 | 99 | 1 | 5.42 | 4 | 52 |
| Atoms / molecule | 5.00 | 48.42 | 42.10 | 242.00 | 5.00 | 48.46 | 42.20 | 242.00 |
| Formula-unit count | 1 | 3.39 | 4 | 16 | 1 | 3.39 | 4 | 16 |
We additionally report chemical composition, molecular flexibility, and the availability of optional conditioning information. Similar to Jin et al. (2025), we label a structure as rigid if every molecular component contains at most three rotatable bonds and as flexible if any component contains more than three. This provides a simple heuristic rather than a complete description of molecular flexibility. Table 6 summarizes these properties before and after the 512-atom filtering.
Table 6 Composition, flexibility, and conditioning availability in the CLARI splits. Entries report the number of structures before and after applying the 512-atom unit-cell limit.
| Property | Training | Validation | ||
|---|---|---|---|---|
| Unfiltered | 512 atoms | Unfiltered | 512 atoms | |
| Composition | ||||
| Organic | 491,219 | 490,475 | 573 | 573 |
| Organometallic | 425,795 | 422,332 | 475 | 474 |
| Molecular flexibility | ||||
| Rigid | 194,017 | 193,620 | 226 | 226 |
| Flexible | 722,997 | 719,187 | 822 | 821 |
| Conditioning availability | ||||
| Template | 598,141 | 596,447 | 683 | 683 |
| Stereochemistry | 917,014 | 912,807 | 1,048 | 1,047 |
| Space group | 917,012 | 912,805 | 1,048 | 1,047 |
C Training and Sampling Hyperparameters
We summarize the hyperparameters used for PACKORA-M and PACKORA-L. Unless noted, all settings are shared between the two model sizes.
Architecture. Table 7 specifies model capacity and backbone configuration; the two models differ only in width, head count, and parameter count.
Table 7 Architecture hyperparameters. Model capacity and backbone configuration for PACKORA-M and PACKORA-L.
| Parameter | PACKORA-M | PACKORA-L |
|---|---|---|
| Capacity | ||
| Parameters | 88M | 187M |
| Single width | 512 | 768 |
| Pair width | 128 | 192 |
| Attention heads | 8 | 12 |
| Backbone | ||
| Pairmixer blocks | 4 | 4 |
| DiT blocks | 16 | 16 |
| MLP ratio | 4 | 4 |
| QK normalization | On | On |
| Feed-forward network | SwiGLU | SwiGLU |
| Dropout | 0 | 0 |
Training. Table 8 summarizes the flow-matching, optimization, conditioning, and checkpoint-selection settings.
Table 8 Training hyperparameters. Flow-matching, optimization, conditioning, and model-selection settings. All settings are shared between PACKORA-M and PACKORA-L unless noted.
| Parameter | Value |
|---|---|
| Flow matching | |
| Priors | Centered Gaussian fpr ; standard Gaussian for |
| Interpolant | Linear |
| Time distribution | 0.98 Beta(1.9, 1.0) + 0.02 Uniform(0, 1) |
| Objective | coordinate-lattice loss |
| Loss weights | Coordinates 10; lattice 1 |
| Optimization | |
| Optimizer | Muon for hidden matrices; AdamW otherwise |
| Learning rate | |
| Weight decay | 0 (PACKORA-M); (PACKORA-L) |
| Muon settings | Momentum 0.95; Nesterov; 5 Newton–Schulz steps |
| AdamW settings | |
| Schedule | 10,000-step linear warmup from zero |
| Gradient clipping | Global norm, 1.0 |
| EMA decay | 0.9999 |
| Conditioning and augmentation | |
| Condition dropout | Template 0.5; stereochemistry 0.5; space group 0.9 |
| Augmentation | Crystal translation; template rotation and translation |
| Runtime and selection | |
| Precision | bfloat16 mixed precision |
| Checkpoint interval | Every 50 epochs |
| Checkpoint selection | Highest validation |
Curriculum and batching. We use two-stage training with fixed-shape batches to enable torch.compile. Each structure is assigned to the smallest atom-count bucket that contains it and padded to that bucket size.
Table 9 Two-stage training curriculum and batching. Atom-count buckets and batch sizes used for fixed-shape training across eight GPUs.
| Parameter | Value |
|---|---|
| Stage 1 | |
| Maximum atoms | 300 |
| Bucket caps | 32, 64, 96, 128, 160, 192, 224, 256, 288, 300 |
| Per-GPU batch | 16 for every bucket |
| Global batch | 128 |
| Stage 2 | |
| Maximum atoms | 512 |
| Additional bucket caps | 320, 352, 384, 416, 448, 480, 512 |
| Per-GPU batch | 16 ( 300), 14 (320), 11 (352), 9 (384), 8 (416), 7 (448), 6 (480), 5 (512) |
| Global batch | 128, 112, 88, 72, 64, 56, 48, and 40, respectively |
Sampling. Both model sizes use the same sampling and conditioning configuration for benchmark generation.
Table 10 Sampling hyperparameters. Sampling and conditioning configuration used for benchmark generation.
| Parameter | Value |
|---|---|
| Numerical solver | |
| Solver | EDM-Heun with stochastic churn |
| Noise schedule | Karras |
| Sampling steps | 200 |
| Sigma range | , |
| Schedule exponent | |
| Churn settings | , , , |
| Generation protocol | |
| Weights | EMA |
| Conditioning | Template and available stereochemistry on; space group off |
| Template augmentation | Random rotation and translation |
| Candidates per target | 1,000 |
| Random seed | 42 |
D Structure Generation Evaluation
This section details the evaluation protocol for structure generation. We formalize the crystal solve rate (Jin et al., 2025), including COMPACK (Chisholm and Motherwell, 2005) matching, collision detection, and experimental-reference selection. We also summarize the differences between the released OXtal and CLARI evaluators that motivate our re-evaluation of CLARI.
Definition of crystal solve rate. Let index targets and index generated candidates for target . The crystal-level solve rate is
where indicates whether candidate solves target :
where is the collision indicator; and denote the number of matched molecules and RMSD, respectively, returned by COMPACK at packing size 15; and is the selected experimental reference.
Intuitively, a candidate is collision-free if all nonbonded heavy-atom pairs are separated beyond the collision threshold. Specifically,
where is the distance between a nonbonded heavy-atom pair , and and are their van der Waals radii.
For targets with multiple experimental references, we select the best-matching reference as . Let denote the reference set for target c and define
OXtal selects
Differences between the OXtal and CLARI evaluators. The released CLARI evaluator differs from the OXtal evaluator in two aspects: (1) collision detection, including the treatment of intermolecular collisions, and (2) selection of the best experimental reference for targets with multiple reference structures. For a consistent comparison, we therefore re-evaluate CLARI-M, CLARI-L, and CLARI-H using the OXtal definitions.
E Detailed Structure-Generation Results
This appendix provides tabular results for the structure-generation benchmarks (Section 4) across candidate budgets and evaluation criteria.
Table 11 reports the standard and strict at budgets of 30 and 1,000 candidates, with resampling standard deviations reported at the 30-candidate budget. Table 12 provides additional collision, packing, and recovery metrics for PACKORA-M and PACKORA-L at the matched 30-candidate budget.
Table 11 Tabular results for structure generation benchmark. We report standard and strict at 30 and 1,000 candidates per target. At 30 candidates, CLARI and PACKORA results are mean standard deviation over 5,000 resamples from 1,000-candidate pools; other baselines are reported as provided in Jin et al. (2025). Results at 1,000 candidates use the full pool. Bold and underline denote the best and second-best generative results, respectively.
| Method | Rigid (50) | Flexible (50) | CSP5 (6) | CSP6 (5) | CSP7 (8) | Teaching (773) |
|---|---|---|---|---|---|---|
| Sol at 30-candidate budget | ||||||
| A-Transformer | 0.060 | 0.000 | 0.000 | 0.000 | 0.000 | - |
| AssembleFlow | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | - |
| OXtal | 0.300 | 0.220 | 0.167 | 0.200 | 0.125 | - |
| CLARI-M | ||||||
| CLARI-L | ||||||
| CLARI-H | ||||||
| PACKORA-M | ||||||
| PACKORA-L | ||||||
| Sol at 30-candidate budget | ||||||
| CLARI-M | ||||||
| CLARI-L | ||||||
| CLARI-H | ||||||
| PACKORA-M | ||||||
| PACKORA-L | ||||||
| Sol at 1,000-candidate budget | ||||||
| CLARI-M | 0.740 | 0.625 | 0.811 | |||
| CLARI-L | 0.760 | 0.841 | ||||
| CLARI-H | 0.940 | 0.800 | 0.869 | |||
| PACKORA-M | 0.920 | |||||
| PACKORA-L | ||||||
| Sol at 1,000-candidate budget | ||||||
| CLARI-M | 0.680 | 0.380 | 0.333 | 0.200 | 0.125 | 0.453 |
| CLARI-L | 0.780 | 0.540 | 0.500 | 0.125 | 0.563 | |
| CLARI-H | 0.640 | 0.618 | ||||
| PACKORA-M | 0.740 | |||||
| PACKORA-L | 0.900 | 0.833 | 0.500 | 0.722 | ||
Table 12 Full metrics at a 30-candidate budget. We report per-sample collision, packing, and recovery rates (, , ) and crystal-level packing, recovery, and solve rates (, , ), following the definitions in Jin et al. (2025). Other baselines use their exact 30-candidate pools, while PACKORA-M and PACKORA-L report means over 5,000 seeded draws of 30 candidates from their 1,000-candidate pools. CLARI is omitted because only is available.
| Dataset | Method | ||||||
|---|---|---|---|---|---|---|---|
| Rigid | A-Transformer | 0.731 | 0.015 | 0.060 | 0.033 | 0.120 | 0.060 |
| AssembleFlow | 0.524 | 0.001 | 0.040 | 0.211 | 0.760 | 0.000 | |
| OXtal | 0.011 | 0.873 | 1.000 | 0.737 | 0.960 | 0.300 | |
| PACKORA-M | 0.036 | 0.433 | 0.876 | 0.860 | 0.978 | 0.807 | |
| PACKORA-L | 0.028 | 0.405 | 0.872 | 0.847 | 0.979 | 0.795 | |
| Flexible | A-Transformer | 0.900 | 0.001 | 0.020 | 0.000 | 0.000 | 0.000 |
| AssembleFlow | 0.883 | 0.000 | 0.000 | 0.021 | 0.140 | 0.000 | |
| OXtal | 0.097 | 0.291 | 0.900 | 0.048 | 0.400 | 0.220 | |
| PACKORA-M | 0.030 | 0.099 | 0.578 | 0.346 | 0.879 | 0.498 | |
| PACKORA-L | 0.031 | 0.099 | 0.605 | 0.371 | 0.920 | 0.530 | |
| CSP5 | A-Transformer | 0.833 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| AssembleFlow | 0.717 | 0.000 | 0.000 | 0.150 | 0.500 | 0.000 | |
| OXtal | 0.006 | 0.667 | 0.833 | 0.572 | 0.833 | 0.167 | |
| PACKORA-M | 0.023 | 0.251 | 0.808 | 0.784 | 0.915 | 0.732 | |
| PACKORA-L | 0.018 | 0.328 | 0.797 | 0.792 | 0.902 | 0.793 | |
| CSP6 | A-Transformer | 0.967 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| AssembleFlow | 0.800 | 0.000 | 0.000 | 0.073 | 0.200 | 0.000 | |
| OXtal | 0.013 | 0.660 | 1.000 | 0.160 | 0.600 | 0.200 | |
| PACKORA-M | 0.070 | 0.177 | 0.607 | 0.559 | 0.851 | 0.426 | |
| PACKORA-L | 0.052 | 0.193 | 0.661 | 0.578 | 0.902 | 0.433 | |
| CSP7 | A-Transformer | 0.950 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| AssembleFlow | 0.808 | 0.000 | 0.000 | 0.063 | 0.250 | 0.000 | |
| OXtal | 0.021 | 0.483 | 0.875 | 0.129 | 0.375 | 0.125 | |
| PACKORA-M | 0.178 | 0.041 | 0.396 | 0.251 | 0.656 | 0.212 | |
| PACKORA-L | 0.174 | 0.035 | 0.469 | 0.278 | 0.681 | 0.238 | |
| Teaching | PACKORA-M | 0.057 | 0.281 | 0.704 | 0.536 | 0.842 | 0.637 |
| PACKORA-L | 0.050 | 0.288 | 0.730 | 0.554 | 0.859 | 0.663 |
F End-to-End Generation with Empirical Z Sampling
The main structure-generation experiments in Section 4 assume known formula-unit count Z for comparison with CLARI. Here, we evaluate an end-to-end setting in which Z is unknown and sampled from an empirical prior estimated from the training set.
Prior construction. For each training crystal, we group identical molecular components by exact component SMILES. Let denote the number of copies of distinct component in the unit cell. We recover the formula-unit count Z and reduced stoichiometry as
We apply this procedure to all 912,807 structures in the CLARI training split after the 512-atom filter. If denotes the number of structures with , the empirical prior is
The resulting support is .
Sampling formula-unit count Z. Let denote the number of atoms in one formula unit for a benchmark target. To bound inference cost, we restrict Z to values that yield at most atoms and renormalize the empirical prior:
For each candidate, we sample Z from , replicate the formula unit accordingly, and pass the resulting unit-cell composition to PACKORA. All other settings match the main benchmark.
Results. We evaluate PACKORA-M and PACKORA-L with empirical Z sampling and find that both remain competitive in this end-to-end setting. Figures 15, 16, 17 and 18 compare empirical-Z sampling with the main supplied-Z setting at effective 30-candidate and exact 1,000-candidate budgets under both standard and strict criteria. Figure 19 shows how the supplied and empirical performance gap changes with candidate budget on the Rigid and Flexible benchmarks.

Figure 15 Crystal coverage with empirical unit-cell Z sampling at 30 candidates per target. The solid bars reproduce Figure 1; diagonally hatched bars represent results with Z sampled from an empirical prior. Bars report mean , and error bars show one standard deviation across 5,000 resamples with replacement from each 1,000-candidate pool.

Figure 16 Crystal coverage with empirical unit-cell Z sampling at 1,000 candidates per target. The solid bars reproduce Figure 4; diagonally hatched bars represent results with Z sampled from an empirical prior. Bars report exact Sol over the full 1,000-candidate pools.

Figure 17 Strict crystal coverage with empirical unit-cell Z sampling at 30 candidates per target. The solid bars reproduce Figure 5; diagonally hatched bars represent results with Z sampled from an empirical prior. Bars report mean , and error bars show one standard deviation across 5,000 resamples with replacement from each 1,000-candidate pool.

Figure 18 Strict crystal coverage with empirical unit-cell Z sampling at 1,000 candidates per target. The solid bars reproduce Figure 6; diagonally hatched bars represent results with Z sampled from an empirical prior. Bars report exact over the full 1,000-candidate pools.

Figure 19 Effect of empirical unit-cell Z sampling across candidate budgets. Curves show mean for PACKORA-M and PACKORA-L on the Rigid and Flexible benchmarks over 5,000 resamples, and shaded bands show the 2.5th–97.5th percentiles. The gray solid lines denote supplied Z, and the teal dotted lines denote empirical Z. The two settings remain close across candidate budgets.
G Structure Overlay Visualizations
We visualize 18 representative strict matches by overlaying PACKORA-L predictions with their experimental references. Experimental structures are shown as wider gray sticks and PACKORA-L predictions as narrower green sticks; hydrogen atoms are omitted for clarity. The overlays are rendered with py3Dmol using the 3Dmol.js WebGL backend (Rego and Koes, 2015).

TAQMUT · RMSD = 0.117 Å

DEDWUE · RMSD = 0.078 Å

TMTPSW01 · RMSD = 0.158 Å

DIRYUY · RMSD = 0.122 Å

ESAMOA · RMSD = 0.364 Å

DUPWUG02 · RMSD = 0.181 Å

ABENAX · RMSD = 0.267 Å

FINNUM · RMSD = 0.136 Å

DORRAF · RMSD = 0.227 Å
Figure 20 Structure overlays for PACKORA-L predictions. Experimental structures are shown in gray and PACKORA-L predictions in green. Labels report the CSD refcode and corresponding RMSD .

HMBENZ04 · RMSD = 0.036 Å

YUGWUT · RMSD = 0.123 Å

CEIMPT · RMSD = 0.136 Å

DUSHAA · RMSD = 0.140 Å

MBRMET10 · RMSD = 0.183 Å

BZONTR · RMSD = 0.053 Å

FOQBAO · RMSD = 0.082 Å

PORPIN · RMSD = 0.076 Å

YONMET · RMSD = 0.291 Å
Figure 21 Structure overlays for PACKORA-L predictions. Experimental structures are shown in gray and PACKORA-L predictions in green. Labels report the CSD refcode and corresponding RMSD .
H Detailed Structure-Ranking Results
This appendix reports the complete tabular results underlying the FastCSP structure-ranking benchmarks in Section 4.3. Each table gives the energy rank and of the best candidate matching each experimental form; NR denotes that no match was recovered.
Table 13 Complete FastCSP single-polymorph results. Each method reports the energy rank and (Å) of the best candidate matching the experimental form. NR denotes no recovery, with the corresponding unavailable.
| Target | Subset | CLARI-H | PACKORA-M | PACKORA-L | |||
|---|---|---|---|---|---|---|---|
| Rank | Rank | Rank | |||||
| Target II | Semi-rigid | 5 | 0.55 | NR | - | 6 | 0.58 |
| Target IV | Semi-rigid | 1 | 0.16 | 1 | 0.14 | 1 | 0.18 |
| Target V | Semi-rigid | 8 | 0.33 | 5 | 0.18 | 7 | 0.12 |
| Target VIII | Semi-rigid | NR | - | NR | - | 1 | 0.22 |
| Target XII | Semi-rigid | 1 | 0.25 | 1 | 0.25 | 1 | 0.28 |
| Target XIII | Semi-rigid | 1 | 0.09 | 1 | 0.10 | 1 | 0.09 |
| Target XVI | Semi-rigid | NR | - | NR | - | NR | - |
| Target XVII | Semi-rigid | 1 | 0.12 | 1 | 0.14 | 1 | 0.18 |
| Target XXII | Semi-rigid | 1 | 0.17 | 2 | 0.19 | 2 | 0.25 |
| Acetic Acid | Semi-rigid | NR | - | NR | - | NR | - |
| Caprylolactam | Semi-rigid | NR | - | 2 | 0.15 | 3 | 0.11 |
| CEBYUD | Semi-rigid | 1 | 0.14 | 1 | 0.14 | 1 | 0.14 |
| CUMJOJ | Semi-rigid | NR | - | NR | - | NR | - |
| DEZDUH | Semi-rigid | 5 | 0.44 | 1 | 0.06 | 1 | 0.04 |
| Eniluracil | Semi-rigid | 5 | 0.63 | 1 | 0.11 | 1 | 0.10 |
| GACGAU | Semi-rigid | 2 | 0.12 | 2 | 0.12 | 2 | 0.17 |
| GOLHIB | Semi-rigid | NR | - | 1 | 0.10 | 1 | 0.09 |
| HURYUQ | Semi-rigid | 27 | 0.13 | 5 | 0.09 | 1 | 0.15 |
| IHEPUG | Semi-rigid | NR | - | NR | - | NR | - |
| LECZOL | Semi-rigid | NR | - | NR | - | NR | - |
| ROHBUL | Semi-rigid | 1 | 0.08 | 1 | 0.05 | 1 | 0.04 |
| 6-Fluorochromone | Semi-rigid | 7 | 0.16 | 4 | 0.72 | 6 | 0.25 |
| WEXREY | Semi-rigid | 1 | 0.45 | 1 | 0.19 | 1 | 0.45 |
| Target X | Flexible | NR | - | 4 | 0.16 | NR | - |
| Target XIV | Flexible | 1 | 0.38 | NR | - | 1 | 0.18 |
| Target XVIII | Flexible | NR | - | NR | - | NR | - |
Table 14 Complete FastCSP multi-polymorph results. Each method reports the energy rank and () of the best candidate matching each experimental form. NR denotes no recovery, with the corresponding unavailable.
| System | Refcode | Form | CLARI-H | PACKORA-M | PACKORA-L | |||
|---|---|---|---|---|---|---|---|---|
| Rank | Rank | Rank | ||||||
| Target I | XULDUD01 | Monoclinic | NR | - | 1 | 0.297 | 1 | 0.267 |
| Target I | XULDUD | Orthorhombic | 18 | 0.308 | NR | - | 18 | 0.270 |
| CILJIQ | CILJIQ | Form I | 1 | 0.200 | 1 | 0.252 | 1 | 0.256 |
| CILJIQ | CILJIQ01 | Form II | 13 | 0.165 | 11 | 0.118 | 11 | 0.117 |
| Glycine | GLYCIN16 | gamma | 6 | 0.191 | 5 | 0.183 | 5 | 0.187 |
| Glycine | GLYCIN20 | alpha | 1 | 0.128 | 1 | 0.115 | 1 | 0.121 |
| Glycine | GLYCIN32 | beta | 3 | 0.177 | 7 | 0.191 | 4 | 0.194 |
| Glycine | GLYCIN67 | delta | 2 | 0.279 | 2 | 0.280 | 2 | 0.281 |
| Glycine | GLYCIN68 | epsilon | NR | - | 18 | 0.393 | 14 | 0.379 |
| Imidazole | IMAZOL06 | alpha | 1 | 0.220 | 1 | 0.174 | 1 | 0.284 |
| Imidazole | IMAZOL25 | beta | NR | - | NR | - | NR | - |
| Nicotinamide | NICOAM03 | alpha | NR | - | 2 | 0.894 | 4 | 0.842 |
| Nicotinamide | NICOAM07 | epsilon | 2 | 0.234 | NR | - | NR | - |
| Nicotinamide | NICOAM17 | iota | 10 | 0.781 | 4 | 0.449 | 6 | 0.585 |
| Target VI | UJIRIO | Form I | 1 | 0.147 | 1 | 0.224 | 1 | 0.185 |
| Target VI | UJIRIO05 | Form III | NR | - | NR | - | NR | - |
| Target XXXI | ZEHFUR | Form B | NR | - | 9 | 0.374 | NR | - |
| Target XXXI | ZEHFUR02 | Form A major | NR | - | NR | - | 4 | 0.204 |
| Target XXXI | ZEHFUR02 | Form A minor | NR | - | NR | - | 4 | 0.204 |
| ROY | QAXMEH01 | Y | NR | - | NR | - | NR | - |
| ROY | QAXMEH12 | YT04 | NR | - | NR | - | NR | - |
| ROY | QAXMEH81 | R | 2 | 0.446 | 3 | 0.473 | 5 | 0.565 |
| ROY | QAXMEH03 | OP | 188 | 0.121 | 195 | 0.247 | NR | - |
| ROY | QAXMEH32 | ON | 131 | 0.597 | 187 | 0.605 | 153 | 0.570 |
| ROY | QAXMEH04 | YN | 883 | 0.555 | NR | - | NR | - |
| ROY | QAXMEH05 | ORP | 1 | 0.354 | 1 | 0.154 | 2 | 0.120 |
| ROY | QAXMEH59 | PO13 | 108 | 0.211 | 96 | 0.176 | 106 | 0.165 |
| ROY | QAXMEH53 | Y04 | NR | - | NR | - | 325 | 0.423 |
| ROY | QAXMEH60 | Y19 | 468 | 0.203 | 350 | 0.134 | 479 | 0.190 |
I Ablation Dataset Preprocessing
This section describes the dataset preprocessing used for our ablation studies in Section 5. Because public split refcodes were not available at the time, we constructed the dataset independently. The preprocessing consists of four stages: filtering, structure processing, benchmark exclusion, and deduplication. Table 15 reports the number of structures remaining after each stage.
Filtering. Following OXtal (Jin et al., 2025), we use CSD entries deposited by May 1, 2025 and retain structures with three-dimensional coordinates, an -factor of at most , single-crystal X-ray diffraction at ambient pressure, a non-polymeric structure, and a known space group. We Niggli-reduce each crystal, add missing hydrogens with the CSD Python API (Sykes et al., 2024), and apply the 512-atom limit.
Structure processing. For entries with incomplete bond labels, we infer missing bond types and standardize aromatic and delocalized bonds with the CSD Python API (Sykes et al., 2024). For each crystal, we store Cartesian coordinates, the unit cell, atomic numbers, bonds and bond types, formal charges, stereochemical annotations, and the space-group label. We generate an independent 3D conformer for each molecular component using RDKit ETKDGv3 (Landrum et al., 2006; Wang et al., 2020). If conformer generation fails, we retain the crystal and mark the template as unavailable.
Benchmark exclusion. To prevent leakage, we exclude structures overlapping with the OXtal Rigid and Flexible benchmarks (Jin et al., 2025), CSP5–7 (Bardwell et al., 2011; Reilly et al., 2016; Hunnisett et al., 2024b), and the CSD Teaching Subset (Battle et al., 2010; Lo et al., 2026). We first remove entries whose six-letter CSD refcode family matches a benchmark family. We then remove entries containing a molecular component found in the benchmark set, using the CSD-provided component SMILES. Following CLARI (Lo et al., 2026), we exclude recognized solvents and components with fewer than eight heavy atoms from this overlap check.
Deduplication. We group the remaining entries by six-letter CSD refcode family and cluster equivalent structures using pymatgen StructureMatcher (Ong et al., 2013) with ltol= 0.2, stol= 0.3, and angle_tol= 5°. Within each cluster, we retain the entry with the lowest reported -factor.
Table 15 Ablation dataset preprocessing counts. We report the number of structures remaining after each stage.
| Stage | # Structures |
|---|---|
| Raw CSD entries | 1,451,367 |
| Filtering and structure preprocessing | 833,033 |
| Benchmark-family exclusion | 831,018 |
| Benchmark-component exclusion | 798,459 |
| Deduplication | 766,391 |
| Training split | 751,023 |
| Validation split | 15,368 |
J Detailed Architecture Ablation Results
We report the parameter count, GFLOPs, and best validation for each architecture variant evaluated in Section 5.2.
Table 16 Architecture ablation with model size and compute. We report parameter count and GFLOPs for each architecture variant, together with its best validation under the shared -atom, 30-candidate protocol with 200-step EDM–Heun sampling. Config. (F) is the selected cacheable post-entry design.
| Config. | Entry | TriMul | TriAtt | SU | GEM | Params (M) | GFLOPs | |
|---|---|---|---|---|---|---|---|---|
| (A) | - | - | - | - | - | 0.421 | 85.98 | 41.2 |
| (B) | - | - | - | - | ✓ | 0.432 | 86.01 | 45.7 |
| (C) | pre | ✓ | - | - | - | 0.479 | 87.56 | 379.6 |
| (D) | pre | ✓ | - | ✓ | - | 0.469 | 105.40 | 391.8 |
| (E) | pre | ✓ | - | - | ✓ | 0.476 | 87.59 | 384.2 |
| (F) | post | ✓ | - | - | - | 0.474 | 87.56 | 379.6 |
| (G) | post | ✓ | - | ✓ | - | 0.445 | 105.40 | 391.8 |
| (H) | post | ✓ | - | - | ✓ | 0.474 | 87.59 | 384.2 |
| (I) | post | ✓ | ✓ | ✓ | - | 0.462 | 106.07 | 621.1 |