MOFSeq-2: A Space-Group-Aware MOF Sequence Representation for Free Energy Prediction

Andre Niyongabo RubungoAI4Mat @ NeurIPS 2026

TL;DR

Predicting whether a hypothetical metal–organic framework (MOF) can actually be synthesized in a lab requires knowing its free energy, which is notoriously expensive to compute. MOFSeq-2 solves this by adding a single, explicit crystallographic space-group token to an existing text-based MOF representation, without changing the underlying 35M-parameter model. This simple addition cuts free-energy prediction error by 18.3% and boosts the model's ability to distinguish nearly identical crystal polymorphs.

What Problem Does This Paper Address?

Metal–organic frameworks (MOFs) are porous, sponge-like crystals built from metal nodes and organic linkers, prized for applications like carbon capture and energy storage. Over the last decade, computational screening has generated millions of hypothetical MOFs. The catch? Many of these promising candidates are thermodynamically unstable and cannot be synthesized in the real world.

Free energy ($F = U - T \cdot S$) is a reliable compass for thermodynamic stability, but calculating it accurately via molecular dynamics simulations is far too slow for millions of structures. Machine learning surrogates offer a fast alternative, provided they have a compact way to "read" a crystal. Existing text representations either capture only local chemistry (like MOFid, which uses SMILES strings) or add global connectivity/topology (like MOFSeq-1). However, topology alone is incomplete: different topological nets can share the exact same crystallographic symmetry. Without knowing a crystal's space group, a model misses crucial structural constraints.

Methods

MOFSeq-2 keeps the exact same LLM-Prop backbone (a 35M-parameter transformer) and training pipeline as MOFSeq-1, changing only the input text sequence. It sandwiches the Hermann–Mauguin space-group symbol (sourced from the RCSR database) right between the global topology descriptor and the local MOFid chemical string:

<mofname> topology </mofname> <spacegroup> space_group </spacegroup> <mofid> local_chemistry </mofid>

Placing the space group between topology and local chemistry ensures that global structural descriptors stay adjacent and are preserved if long sequences are truncated (at 2,000 tokens).

Figure 1: MOFSeq-2 representation framework.

Following MOFSeq-1's two-stage recipe, the model is first pretrained to predict strain energy (an inexpensive energetic prior) and then fine-tuned to predict free energy.

Datasets

The authors use the exact same dataset and splits introduced in MOFSeq-1—a subset of MOFMinE containing hypothetical MOFs assembled with ToBaCCo 3.0:

  • Pretraining (Strain Energy): 793,079 structures (split into 634,463 train / 79,308 validation / 79,308 test).
  • Fine-tuning (Free Energy at 300 K): 54,443 structures (split into 43,554 train / 5,444 validation / 5,445 test), with free energies computed via Frenkel–Ladd thermodynamic integration.
  • Polymorph Selection: Test-set structures sharing identical chemical compositions but different crystal arrangements are paired and ranked by predicted free energy.

Key Insights and Ideas

  • Topology and symmetry are synergistic, not interchangeable: Adding the space-group token to MOFSeq-1 slashes pretraining error by 24.5%. Yet adding the same token to MOFid actually hurts performance (MAE worsens from 0.972 to 1.094 $\mathrm{kJ/mol_{MOFatom}}$). MOFid lacks the intermediate geometric template that MOFSeq-1 uses to track how building blocks connect, leaving a gap between local chemistry and global symmetry.
  • Symmetry makes pretraining transfer much better: Without strain-energy pretraining, adding the space group to MOFSeq-1 yields a modest 4.6% free-energy MAE reduction. With pretraining, that jump explodes to 18.3%. The symmetry channel helps the model align the strain-energy and free-energy landscapes.
  • Data and compute efficiency: With just 60% of the training data—or just 30% of the training epochs—MOFSeq-2 already outperforms all baselines on test MAE.
Test MAE vs. Training Size
  • The space-group token carries real signal: Replacing the true space-group token with a random token degrades validation performance, confirming the model is genuinely learning from crystallographic symmetry.

Key Results

  • Strain Energy (Pretraining): MAE drops from $0.623$ (MOFSeq-1) to $0.470\ \mathrm{kJ/mol_{MOFatom}}$ (a 24.5% relative reduction), with $R^2 = 0.967$.
  • Free Energy (Fine-tuning): MAE drops from $0.789$ (MOFSeq-1) to $0.645\ \mathrm{kJ/mol_{MOFatom}}$ (an 18.3% relative reduction), with $R^2 = 0.992$.
  • Synthesizability Classification: Achieves an F1 score of 97.77% and a ROC AUC of 98.49% (modest gains of 0.19% and 0.17% over MOFSeq-1, operating near saturation).
  • Polymorph Selection: Reaches 79.68% overall accuracy (vs. 78.10% for MOFSeq-1). The biggest win is in the hardest regime—nearly degenerate polymorphs separated by $\Delta F = 0.16\ \mathrm{kJ/mol_{MOFatom}}$—where accuracy rises from 62.92% to 65.17%.
Test MAE comparison across representations

Limitations and Future Work

The authors note that their ablation experiments do not isolate the exact causal mechanism behind why space-group tokens help MOFSeq-1 while hurting MOFid, interpreting it instead as representation-dependent complementarity. They also point out a ceiling effect in synthesizability classification, where chemical composition and topology already do most of the heavy lifting. Because MOFSeq-2 improves accuracy without adding parameters or slowing down inference, the authors position it as a practical, inexpensive screening filter for high-throughput MOF discovery pipelines before committing to costly simulations or lab experiments.

Summary updated

BibTeX
@inproceedings{rubungo2026mofseq,
  author = {Andre Niyongabo Rubungo},
  title = {{MOFSeq-2: A Space-Group-Aware MOF Sequence Representation for Free Energy Prediction}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=T5rgwFU35W},
}

Loading related content...

Figure