Abstract
In recent years, progress has been made in generating new crystalline materials using generative machine learning models, though gaps remain in efficiently generating crystals based on target properties. This paper proposes the Con-CDVAE model, an extension of the Crystal Diffusion Variational Autoencoder (CDVAE), for conditional crystal generation. We introduce innovative components, design a two-step training method, and develop three unique generation strategies to enhance model performance. The effectiveness of Con-CDVAE is demonstrated through extensive testing under various conditions, including both single and combined property targets. Ablation studies further underscore the critical role of the new components in achieving our model's performance. Additionally, we validate the physical credibility of the generated crystals through Density Functional Theory (DFT) calculations, confirming Con-CDVAE's potential in material science research.
Introduction
In material science, the "holy grail" is inverse design: starting with a target property—such as a specific band gap for a semiconductor—and generating the atomic structure that achieves it. While recent generative models like the Crystal Diffusion Variational Autoencoder (CDVAE) can generate realistic crystals, they are often difficult to "steer." They typically sample from a latent space representing the entire distribution of known crystals, making it a matter of chance to find a structure with specific desired characteristics. Existing methods often rely on atomic substitution, which limits discovery to narrow chemical neighborhoods. Con-CDVAE aims to make this process intentional and efficient.
Methodology
Con-CDVAE builds upon the CDVAE architecture but introduces several key innovations to enable conditional generation. The framework is divided into training and generation phases, utilizing a novel two-step training process.
Key Components
- The Prior Block: Inspired by DALL-E 2, the authors introduced a diffusion-based "Prior" using Denoising Diffusion Probabilistic Models (DDPM). This block learns to generate the latent variables ($z$) of a crystal based on input properties, rather than just sampling from a standard Gaussian distribution.
- The Predictor Block: This component is trained to predict properties directly from the latent space. It acts as a regularizer during training, forcing crystals with similar properties to cluster together in the latent space, which facilitates the Prior's mapping task.
- Two-Step Training:
- Step One: The model learns to encode crystals into a latent space and decode them back, while the Predictor organizes that space.
- Step Two: The Prior is trained to map specific properties (e.g., "Formation Energy = -2.5 eV") to the correct coordinates in that organized latent space.
Generation Strategies
The authors developed three strategies—Default (D), Full (F), and Less (L)—allowing the model to generate crystals even when only a subset of target properties is known.
Experimental Setup
The model was evaluated on three primary datasets derived from major open-source repositories:
- MP20 & MP40: Subsets of the Materials Project (MP) containing crystals with up to 20 and 40 atoms, respectively.
- OQMD: A subset of the Open Quantum Materials Database, filtered for stability (energy above hull < 0.5 eV/atom). Data quality was ensured by filtering for atomic density and specific band gap ranges, resulting in over 700,000 crystals across the datasets.
Results and Discussion
The performance of Con-CDVAE was assessed through regression and classification tasks across the target properties, demonstrating high accuracy in property-targeted generation.
Key Insights
- Latent Space Engineering: A critical finding is that structuring the internal latent space so that properties are mathematically continuous is essential. The Predictor block is the primary tool enforcing this structure.
- Inverse Mapping Difficulty: Generating crystals based on formation energy proved significantly easier than based on band gap. This suggests the relationship between atomic structure and thermodynamic stability is "smoother" than the complex electronic interactions determining band gaps.
- Generalization Beyond Memorization: In validation tests, the model generated a known crystal (
mp-981) that was not in its training set, confirming it learns the underlying "grammar" of crystallography.
Performance and Validation
When tasked with generating metals (0 eV band gap), the model achieved up to 95.6% accuracy on the OQMD dataset. Furthermore, the physical credibility of the generated structures was validated using Density Functional Theory (DFT). Out of 135 randomly selected generated crystals, 127 (94%) successfully relaxed into stable or meta-stable structures, proving the model generates physically plausible materials.
Conclusion
Con-CDVAE represents a significant step toward efficient inverse design in material science. While the model currently faces challenges with high-order symmetry and atomic precision (RMSD of 0.307 Å), it demonstrates the power of latent space engineering and diffusion-based priors. Future work will focus on improving structural precision and expanding the model to handle more complex properties like superconducting critical temperatures or catalytic activities.
Summary updated