Abstract
Metal-Organic Frameworks (MOFs) present a significant design challenge due to their combinatorial complexity and the inherent flexibility of their organic components. We present MOFFLOW-2, a two-stage generative framework that first designs novel chemical building blocks via autoregressive SMILES generation and then assembles them into 3D structures using torsion-aware flow matching. By explicitly modeling internal degrees of freedom (torsion angles) and enabling the discovery of new building blocks, MOFFLOW-2 achieves state-of-the-art accuracy in structure prediction and generates chemically diverse, valid, and novel materials.
Introduction
Metal-Organic Frameworks (MOFs) are versatile porous materials with applications ranging from carbon capture to drug delivery. However, traditional computational design approaches often struggle with two forms of "rigidity." First, chemical rigidity limits models to a fixed library of known building blocks, preventing the discovery of truly novel materials. Second, structural rigidity treats these blocks as inflexible shapes, ignoring the crucial torsion angles of organic linkers. This oversight leads to inaccurate 3D models and misses materials that depend on specific molecular conformations.
Methods: The MOFFLOW-2 Pipeline
MOFFLOW-2 addresses these challenges through a two-stage generative process that moves beyond fixed libraries and rigid-body assumptions.
Stage 1: Autoregressive SMILES Generation
The first stage employs a Transformer-based model to generate a chemical "recipe" for the MOF. By outputting a sequence of SMILES strings representing metal clusters and organic linkers, the model can propose entirely new building blocks not present in the training data. This stage allows the model to "dream up" novel chemical components before they are ever placed in a 3D lattice.
Stage 2: Torsion-Aware Flow Matching
Once the building blocks are defined, the second stage assembles them into a periodic lattice. This stage utilizes Flow Matching, a generative technique that predicts translations, rotations, and lattice parameters. Crucially, MOFFLOW-2 also predicts torsion angles for rotatable bonds within the linkers. The model operates on Riemannian manifolds ($SO(3)$ for rotations and $SO(2)$ for torsions) to ensure geometric consistency.
Interestingly, the framework utilizes a non-equivariant Transformer backbone. While equivariance is common in molecular ML, the authors found that high-capacity non-equivariant models, when provided with appropriate geometric features, can outperform their equivariant counterparts—a trend also observed in recent models like AlphaFold3. To handle symmetry ambiguity—where multiple rotations of a symmetric molecule are valid—the authors implemented a canonicalization algorithm that selects the rotation minimizing Root Mean Square Deviation (RMSD) during training.
Results and Discussion
MOFFLOW-2 demonstrates significant improvements over existing methods by incorporating torsion modeling and flexible building block generation.
Structure Prediction and Generative Quality
In structure prediction tasks (predicting 3D structures from 2D graphs), MOFFLOW-2 achieved a 43.95% match rate at a 0.5Å tolerance, outperforming the original MOFFlow (~32.7%) and general crystal prediction models like DiffCSP (<1%). In terms of generative quality, MOFFLOW-2 produced valid structures at a rate of 38.84%, nearly four times higher than the previous state-of-the-art diffusion model, MOFDiff (10.13%).
Novelty and Property Targeting
A key breakthrough of MOFFLOW-2 is its ability to move beyond simple recombination. It successfully generated novel building blocks (NBB) in 10.1% of its valid samples. Furthermore, the model can be conditioned on specific properties, such as $CO_2$ working capacity, to guide the generation of high-performance materials. This suggests that modeling internal degrees of freedom is just as important as placing molecules correctly in the unit cell.
Limitations and Future Work
Despite its successes, MOFFLOW-2 has limitations. It relies on RDKit for initial 3D conformer guesses; failures in RDKit's geometry generation can stall the pipeline. Additionally, while the first stage is property-conditioned, the 3D assembly stage is not yet property-aware. Future work will focus on integrating property conditioning throughout the pipeline and improving the accuracy of energy evaluations beyond machine learning interatomic potentials (MLIPs) toward more rigorous Density Functional Theory (DFT) calculations.
Summary updated