NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Driven Approach to Encoding and Decoding 3-D Crystal Structures

Jordan Hoffmann, Louis Maestrati, Yoshihide Sawada, Jian Tang, Jean Michel D. Sellier, Yoshua BengioarXiv 2019

TL;DR

This paper introduces a novel deep learning approach to encode and decode 3D crystal structures, moving beyond traditional 1D and 2D representations. By learning a compressed latent space representation of crystal densities, their model can generate new, physically plausible crystal structures and manipulate existing ones, opening doors for accelerated materials discovery.

What Problem Does This Paper Address?

The discovery and design of new materials with specific properties is a critical area for addressing global challenges like climate change and energy storage. While generative models have shown great success in generating 2D molecules (e.g., for drug discovery), representing and generating complex 3D crystal structures remains a significant challenge. Existing methods often rely on simplified 1D (like SMILES strings) or 2D (graph-based) representations, which are insufficient for capturing the full complexity and properties of many important materials. These materials, often composed of repeating unit cells, require accurate 3D descriptions for their behavior and properties to be understood and predicted. The authors aim to bridge this gap by developing a data-driven method to encode and decode these intricate 3D structures.

Methods

The core of the proposed method involves a two-part neural network architecture:

  1. Encoder-Decoder for Density Reconstruction: A variational autoencoder (VAE) is used to learn a compressed, continuous latent space representation of 3D crystal structures. The input is a 3D density map of the crystal unit cell. The encoder compresses this into a latent vector, and the decoder reconstructs the density map from this latent vector. This is trained end-to-end.
  2. Segmentation Network for Atom Identification: A 3D U-Net segmentation network takes the reconstructed density map from the decoder and identifies the locations of individual atoms and assigns them an atomic number (species).

These two networks are trained jointly. The loss function includes terms for density reconstruction error, a KL divergence term for the VAE to encourage a well-behaved latent space, and a binary cross-entropy loss for the segmentation task. The authors explore two data representations: single unit cells (with random rotations) and repeating unit cells (where the unit cell is tiled).

Datasets

The authors utilized a dataset of 46,744 CIF files containing information about properly relaxed crystal structures from the Materials Project. For training and testing, they used 80% of the data for testing and 20% for training. They also generated over 120,000 3D samples by rotating single unit cells and creating repeating unit cell configurations.

Key Insights and Ideas

  • Density as a Proxy for Structure: Instead of directly encoding atomic coordinates, the model learns from a 3D density representation. This smooth, continuous representation proves effective for capturing the underlying atomic structure.
  • Joint Training for Reconstruction and Segmentation: Training the density reconstruction and atom segmentation networks simultaneously allows them to inform each other, leading to more accurate results than training them independently.
  • Latent Space Interpolation and Manipulation: The learned latent space allows for meaningful interpolation between different crystal structures and the generation of novel structures by sampling from this space. This opens up possibilities for exploring chemical space.
  • Handling Repeating Unit Cells: The method is adapted to handle repeating unit cells, which are common in many functional materials, by tiling the unit cell to create larger 3D volumes.

Key Results

  • Accurate Density Reconstruction: The encoder-decoder model achieves accurate voxel-wise density reconstruction, with strong correlations between predicted and target voxel values.
  • Precise Atom Localization: The segmentation network can accurately locate atoms, with nearly 99% of atoms placed within 0.5 Å of their true location for single unit cells.
  • Good Species Prediction: For single unit cells, about 66% of atomic species are correctly classified, with most misclassifications being off by only one or two atomic numbers. For repeating unit cells, when an atom is correctly localized within 0.33 Å, the atomic number is correctly predicted about 70% of the time.
  • Physically Plausible Generations: Random samples from the latent space decode into structures that exhibit similar inter-atomic distance distributions to real crystal structures.
  • Latent Space Control: The authors demonstrate the ability to influence generated structures by manipulating parameters in the latent space, such as controlling the maximum atomic number present.

Limitations and Future Work

  • Species Identification Accuracy: While atom localization is strong, the accuracy of predicting the exact atomic number (species) still has room for improvement, especially for crystals with many different elements.
  • Physical Stability: The generated molecules are not guaranteed to be physically stable or to relax correctly in DFT simulations.
  • Latent Space Interpretation: Understanding and controlling specific properties by manipulating the latent space is challenging in 3D compared to 2D, and further work is needed to improve factorizing techniques.
  • Future Directions: The authors suggest exploring SE(3) equivariant kernels for improved performance, extending the approach to other 3D objects beyond atomic structures, and conditioning generation on specific quantum mechanical properties. They also plan to release their code.

Summary updated

BibTeX
@misc{hoffmann2019data,
  author = {Jordan Hoffmann and Louis Maestrati and Yoshihide Sawada and Jian Tang and Jean Michel D. Sellier and Yoshua Bengio},
  title = {{Data-Driven Approach to Encoding and Decoding 3-D Crystal Structures}},
  year = {2019},
  eprint = {1909.00949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.00949},
}
Figure