MOFDiff: Coarse-grained Diffusion for Metal-Organic Framework Design

Xiang Fu, Tian Xie, Andrew S. Rosen, Tommi Jaakkola, Jake Smith

TL;DR

MOFDiff is a novel generative framework that designs Metal-Organic Frameworks (MOFs) by performing diffusion at a "coarse-grained" building block level rather than atom-by-atom. This hierarchical approach allows for the efficient discovery of valid, novel, and high-performing materials for carbon capture, achieving a 75% reduction in computational cost compared to traditional screening methods.

What Problem Does This Paper Address?

Metal-Organic Frameworks (MOFs) are highly porous, modular materials composed of metal "nodes" and organic "linkers." Their tunable nature makes them ideal for applications like carbon capture and gas storage. However, designing new MOFs is challenging:

  1. Template Limitations: Traditional "template-based" methods assemble pre-defined building blocks into known network topologies. This inherently limits the diversity of the chemical space explored.
  2. Scale and Complexity: A single MOF unit cell can contain hundreds of atoms. Standard all-atom diffusion models (which have succeeded for small molecules) struggle with this scale, often producing unphysical structures where linkers are broken or metal clusters are distorted.
  3. Data Efficiency: Training models to understand the complex hierarchical symmetries of MOFs at an atomic level is computationally expensive and data-hungry.

MOFDiff aims to bridge this gap by treating MOFs as assemblies of rigid building blocks, allowing the model to focus on the high-level arrangement of these components.

Methods

The MOFDiff pipeline consists of several innovative stages:

  • Coarse-Graining: The authors decompose MOFs into their constituent nodes and linkers. They identify "connection points"—the midpoints of the bonds that link these components together.
  • Contrastive Representation Learning: Because the space of possible building blocks is vast, the authors use a contrastive learning approach. A 3D Graph Neural Network (GemNet-OC) encodes building blocks into a low-dimensional latent space. This ensures that chemically similar blocks have similar embeddings, making the generative task manageable.
  • Coarse-Grained Diffusion: The core generative model is a diffusion process that operates on the coordinates and latent identities of these building blocks within the periodic unit cell. By diffusing at this level, the model inherently respects the internal structure of the linkers and nodes.
  • Differentiable Assembly: Once a coarse-grained arrangement is generated, a novel assembly algorithm re-orients the building blocks. It uses a differentiable loss function based on the overlap of Gaussian densities placed at connection points to ensure the blocks "plug into" each other correctly.
  • Force Field Relaxation: Finally, the all-atom structure is refined using the Universal Force Field (UFF) to correct minor geometric errors and optimize the lattice parameters.
Figure 1: (a) MOFDiff encodes a coarse-grained (CG) representation of MOF structures and decodes CG MOF structures with a denoising diffusion process. To generate a coarse-grained MOF structure, the lattice parameters L and the number of building blocks K are predicted from the latent vector z to initialize a random structure. A denoising diffusion process conditional on z generates the building block identities and coordinates. Inverse design is enabled through gradient-based optimization over z in the latent space. (b) The all-atom MOF structure is recovered from the coarse-grained representation through three steps: (1) the building block identities are decoded from the learned representation; (2) building block orientations are randomly initialized, then the assembly algorithm (Figure 4) is run to re-orient the building blocks; (3) the assembled structure goes through an energetic minimization process using the UFF force field. The relaxed structure is then used to compute structural and gas adsorption properties. Atom color code: Zn (purple), O (red), C (gray), N (blue), H (white).

Datasets

The model was trained and evaluated on the BW-DB dataset, which contains approximately 324,000 hypothetical MOF structures. The authors filtered this to a subset of ~304,000 MOFs containing fewer than 20 building blocks per unit cell. This dataset includes computed properties for carbon dioxide (CO2) separation from flue gas, providing a ground truth for optimization tasks.

Key Insights and Ideas

  • Hierarchy is a Feature, Not a Bug: By leveraging the modular nature of MOFs, the authors avoid the "atomistic noise" that plagues other models. The model doesn't have to learn how to build a benzene ring; it just learns where to put one.
  • Latent Identity Diffusion: Treating building block types as continuous vectors in a latent space (rather than discrete categories) allows the model to explore a much broader chemical space and smoothly interpolate between different building block designs.
  • Efficiency through Inverse Design: By training a property predictor on the latent space, the authors can perform gradient-based optimization to "steer" the diffusion process toward MOFs with specific desired traits, such as high CO2 adsorption capacity.

Key Results

  • Validity and Novelty: In random sampling tests, MOFDiff generated nearly 3,000 valid, novel, and unique (VNU) MOFs out of 10,000 attempts. The generated structures matched the structural property distributions (like pore size and surface area) of the reference dataset.
  • Superior Carbon Capture Design: When optimized for CO2 working capacity, MOFDiff discovered candidates that significantly outperformed the average of the training set.
  • Computational Speedup: To find one "qualifying" MOF (defined as having a CO2 working capacity > 2 mol/kg), MOFDiff required only 14.6 molecular simulations (GCMC), compared to 58.1 required by naive sampling from the database—a 75% reduction in compute cost.
  • Benchmarking: MOFDiff identified 9 out of the top 10 MOFs when compared against a benchmark of 18 well-known literature structures, including the high-performing Al-PMOF.
Comparison of CO2 adsorption properties between MOFDiff-optimized samples and reference distributions.

Limitations and Future Work

  • Complexity Scaling: The validity rate of generated samples declines as the number of building blocks in the unit cell increases. Larger, more complex MOFs remain a challenge for the assembly and relaxation steps.
  • Fixed Lattice during Diffusion: Currently, the lattice parameters are predicted at the start and held fixed during the diffusion of building blocks. The authors suggest that iteratively refining the lattice during the denoising process could improve results.
  • Template Regularization: While the model succeeds in moving beyond templates, the authors note that incorporating some knowledge of known stable topologies could help regularize the diffusion process and further increase the validity of generated structures.

Summary updated

Abstract

Metal-organic frameworks (MOFs) are of immense interest in applications such as gas storage and carbon capture due to their exceptional porosity and tunable chemistry. Their modular nature has enabled the use of template-based methods to generate hypothetical MOFs by combining molecular building blocks in accordance with known network topologies. However, the ability of these methods to identify top-performing MOFs is often hindered by the limited diversity of the resulting chemical space. In this work, we propose MOFDiff: a coarse-grained (CG) diffusion model that generates CG MOF structures through a denoising diffusion process over the coordinates and identities of the building blocks. The all-atom MOF structure is then determined through a novel assembly algorithm. Equivariant graph neural networks are used for the diffusion model to respect the permutational and roto-translational symmetries. We comprehensively evaluate our model's capability to generate valid and novel MOF structures and its effectiveness in designing outstanding MOF materials for carbon capture applications with molecular simulations.
BibTeX
@inproceedings{fu2024mofdiff,
  author = {Xiang Fu and Tian Xie and Andrew S. Rosen and Tommi Jaakkola and Jake Smith},
  title = {{MOFDiff: Coarse-grained Diffusion for Metal-Organic Framework Design}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=0VBsoluxR2},
}
Figure