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

Auto-Encoding Molecular Conformations

Robin Winter, Frank Noé, Djork-Arné ClevertarXiv 2021

TL;DR

This paper introduces a novel autoencoder architecture that maps 3D molecular conformations into a continuous, fixed-size latent space. By utilizing internal coordinates (bond lengths, angles, and dihedrals) and Graph Neural Networks, the model can generate diverse, energetically favorable 3D structures and enables the optimization of molecules based on their spatial properties.

What Problem Does This Paper Address?

In computer-aided drug design and chemistry, how we represent molecules is everything. While Graph Neural Networks (GNNs) and SMILES-based models have revolutionized property prediction and molecular design, they often treat molecules as 2D entities. However, a molecule's function—especially its ability to bind to a protein pocket—is dictated by its conformation: the specific 3D arrangement of its atoms.

The challenge is that 3D coordinates are "messy" for machine learning. A molecule is the same regardless of whether it is rotated or shifted in space (rotational and translational invariance). Furthermore, molecules vary in size, making it difficult to map them to the fixed-size vectors required by many deep learning architectures. This paper seeks to bridge the gap by creating a representation that is both spatially aware and mathematically tractable.

Methods

The authors propose a two-part architecture consisting of a conformation-independent encoder and a conformation-dependent autoencoder.

  1. Internal Coordinate Representation: Instead of using raw Cartesian coordinates $(x, y, z)$, the model uses a "Z-matrix" approach. It defines the structure through bond lengths, bond angles, and dihedral (torsion) angles. This naturally ensures the representation is invariant to rotation and translation.
  2. Molecular Graph Encoder: A GNN (specifically combining Edge-Conditioned Convolutions and Graph Attention Networks) processes the molecular graph to extract node-level features ($h_i$). These features capture the chemical context of each atom regardless of its 3D position.
  3. Conformation Autoencoder:
    • Encoder: Takes the internal coordinates and node features, passing them through feed-forward networks ($\rho$). To handle variable molecule sizes, it uses a "Deep Sets" approach, averaging the embeddings of all coordinates into a single fixed-size latent vector ($z_\Xi$).
  4. Decoder: Reconstructs the specific bond lengths and angles by conditioning on both the latent vector and the node features.
Model architecture showing the flow from internal coordinates through the encoder to the latent space, and back through the decoder.

Datasets

The model was trained and evaluated using the PubChem3D dataset. This dataset contains organic molecules (up to 50 heavy atoms) with multiple conformations generated via the OMEGA forcefield software. This provides a diverse ground truth of energetically reasonable spatial arrangements for training the autoencoder.

Key Insights and Ideas

  • Latent Space Organization: The most striking finding is that the latent space is semantically meaningful. When visualizing the latent space via PCA, the authors found that similar conformations cluster together, while distinct spatial arrangements are clearly separated.
  • Handling Periodicity: The loss function specifically accounts for the circular nature of dihedral angles (where $0^\circ$ and $360^\circ$ are the same), preventing the model from being penalized for "wraparound" errors.
  • Generation via VAE: By framing the model as a Variational Autoencoder (VAE), the researchers can sample new, diverse conformations from the latent space that are energetically favorable, rather than just reconstructing known ones.

Key Results

  • Reconstruction Accuracy: The model successfully reconstructs conformations with low Root Mean Squared Deviation (RMSD) compared to input structures.
  • Energy Stability: Reconstructed conformations had a median energy difference of approximately 80 kcal/mol from the input. While this sounds high, the authors note it corresponds to small deviations from local minima without atomic clashes.
  • Generative Performance: When sampling 200 conformers per molecule, the model achieved an average interconformer RMSD (icRMSD) of 0.07 Å, performing comparably to the state-of-the-art ETKDG algorithm.
  • Spatial Optimization: The authors demonstrated they could optimize a molecule (starting with Aspirin) to maximize a combination of drug-likeness (QED) and "asphericity" (how much a molecule deviates from a sphere).
Results showing learning curves (a), generated conformations (b), and PCA clustering of the latent space (c).

Limitations and Future Work

The authors present this work as a "proof of principle." While successful, a few areas remain for exploration:

  • Complexity of Rings: While internal coordinates are excellent for chains, they can be complex to define for highly fused ring systems.
  • Optimization Scope: The optimization example was relatively simple. Future work could involve more complex spatial targets, such as fitting a specific pharmacophore or a known bioactive shape.
  • Scaling: The paper focuses on molecules up to 50 heavy atoms; scaling to larger macrocycles or protein fragments would be a significant next step.

Summary updated

BibTeX
@misc{winter2021auto,
  author = {Robin Winter and Frank Noé and Djork-Arné Clevert},
  title = {{Auto-Encoding Molecular Conformations}},
  year = {2021},
  eprint = {2101.01618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.01618},
}
Figure