β‘οΈWGFormer: An SE(3)-Transformer Driven by Wasserstein Gradient Flows for Molecular Ground-State Conformation Prediction (ICML 2025)
March 18, 2026 Β· View on GitHub
π Introduction
Our WGFormer achieves state-of-the-art performance in molecular ground-state conformation predictioin. In particular, our WGFormer can be interpreted as Wasserstein gradient flows, which optimizes molecular conformation by minimizing a physically reasonable energy function defined on the latent mixture models of atoms, thereby significantly improving the model performance and interpretability.
βοΈ Environment
We have provided an env.yml file that contains the necessary environment dependencies.
To set up your environment, please execute:
conda env create -f env.yml
conda activate WGFormer
π¦ Datasets
We use the Molecule3D and QM9 provided in GTMGC as our datasets. Please download them and organize the ./data directory as follows:
data
βββ Molecule3D
β βββ Random
β β βββ dict.txt
β β βββ random_train.csv
β β βββ random_train_0.sdf
β β βββ random_train_1.sdf
β β βββ random_train_2.sdf
β β βββ random_train_3.sdf
β β βββ random_valid.csv
β β βββ random_valid.sdf
β β βββ random_test.csv
β β βββ random_test.sdf
β βββ Scaffold
β β βββ dict.txt
β β βββ scaffold_train.csv
β β βββ scaffold_train_0.sdf
β β βββ scaffold_train_1.sdf
β β βββ scaffold_train_2.sdf
β β βββ scaffold_train_3.sdf
β β βββ scaffold_valid.csv
β β βββ scaffold_valid.sdf
β β βββ scaffold_test.csv
β β βββ scaffold_test.sdf
βββ QM9
β βββ dict.txt
β βββ gdb9.sdf
β βββ train_indices.csv
β βββ valid_indices.csv
β βββ test_indices.csv
Then, execute the command below to obtain the processed datasets:
cd data
python process_QM9.py
python process_Molecule3D.py
Here, the processed QM9 dataset has been provided in this link.
πͺ Experiments
Training
Our model weights have been provided in this link. You can also train from scratch by running the following script.
bash train.sh
Inference
bash inference.sh valid
bash inference.sh test
Evaluation
python eval.py valid
python eval.py test
π Acknowledgments
This code is built upon Uni-Mol and Uni-Core. Thanks for their contribution.
π Citation
If you find this work useful for your research, please consider citing it. π
@inproceedings{wang2025wgformer,
title={WGFormer: An SE (3)-Transformer Driven by Wasserstein Gradient Flows for Molecular Ground-State Conformation Prediction},
author={Wang, Fanmeng and Cheng, Minjie and Xu, Hongteng},
booktitle={International Conference on Machine Learning},
pages={62652--62671},
year={2025},
organization={PMLR}
}