Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,52 +1,128 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
dataset_info:
|
| 4 |
-
features:
|
| 5 |
-
- name: edge_index
|
| 6 |
-
list:
|
| 7 |
-
list: int64
|
| 8 |
-
- name: edge_attr
|
| 9 |
-
list:
|
| 10 |
-
list: int64
|
| 11 |
-
- name: x
|
| 12 |
-
list:
|
| 13 |
-
list: int64
|
| 14 |
-
- name: ba_edge_index
|
| 15 |
-
list:
|
| 16 |
-
list: int64
|
| 17 |
-
- name: ba_edge_attr
|
| 18 |
-
list:
|
| 19 |
-
list: float64
|
| 20 |
-
- name: fra_edge_index
|
| 21 |
-
list:
|
| 22 |
-
list: int64
|
| 23 |
-
- name: fra_edge_attr
|
| 24 |
-
list:
|
| 25 |
-
list: int64
|
| 26 |
-
- name: cluster_idx
|
| 27 |
-
list: int64
|
| 28 |
-
- name: bafra_edge_index
|
| 29 |
-
list:
|
| 30 |
-
list: int64
|
| 31 |
-
- name: bafra_edge_attr
|
| 32 |
-
list:
|
| 33 |
-
list: float64
|
| 34 |
-
- name: smiles
|
| 35 |
-
dtype: string
|
| 36 |
-
splits:
|
| 37 |
-
- name: train
|
| 38 |
-
num_bytes: 17772414767
|
| 39 |
-
num_examples: 1551232
|
| 40 |
-
- name: validation
|
| 41 |
-
num_bytes: 454862268
|
| 42 |
-
num_examples: 39775
|
| 43 |
-
download_size: 1889271320
|
| 44 |
-
dataset_size: 18227277035
|
| 45 |
-
configs:
|
| 46 |
-
- config_name: default
|
| 47 |
-
data_files:
|
| 48 |
-
- split: train
|
| 49 |
-
path: data/train-*
|
| 50 |
-
- split: validation
|
| 51 |
-
path: data/validation-*
|
| 52 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
dataset_info:
|
| 4 |
+
features:
|
| 5 |
+
- name: edge_index
|
| 6 |
+
list:
|
| 7 |
+
list: int64
|
| 8 |
+
- name: edge_attr
|
| 9 |
+
list:
|
| 10 |
+
list: int64
|
| 11 |
+
- name: x
|
| 12 |
+
list:
|
| 13 |
+
list: int64
|
| 14 |
+
- name: ba_edge_index
|
| 15 |
+
list:
|
| 16 |
+
list: int64
|
| 17 |
+
- name: ba_edge_attr
|
| 18 |
+
list:
|
| 19 |
+
list: float64
|
| 20 |
+
- name: fra_edge_index
|
| 21 |
+
list:
|
| 22 |
+
list: int64
|
| 23 |
+
- name: fra_edge_attr
|
| 24 |
+
list:
|
| 25 |
+
list: int64
|
| 26 |
+
- name: cluster_idx
|
| 27 |
+
list: int64
|
| 28 |
+
- name: bafra_edge_index
|
| 29 |
+
list:
|
| 30 |
+
list: int64
|
| 31 |
+
- name: bafra_edge_attr
|
| 32 |
+
list:
|
| 33 |
+
list: float64
|
| 34 |
+
- name: smiles
|
| 35 |
+
dtype: string
|
| 36 |
+
splits:
|
| 37 |
+
- name: train
|
| 38 |
+
num_bytes: 17772414767
|
| 39 |
+
num_examples: 1551232
|
| 40 |
+
- name: validation
|
| 41 |
+
num_bytes: 454862268
|
| 42 |
+
num_examples: 39775
|
| 43 |
+
download_size: 1889271320
|
| 44 |
+
dataset_size: 18227277035
|
| 45 |
+
configs:
|
| 46 |
+
- config_name: default
|
| 47 |
+
data_files:
|
| 48 |
+
- split: train
|
| 49 |
+
path: data/train-*
|
| 50 |
+
- split: validation
|
| 51 |
+
path: data/validation-*
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
# MuMo Pretraining Dataset
|
| 55 |
+
|
| 56 |
+
- 📄 Paper: [NeurIPS 2025 Poster](https://neurips.cc/virtual/2025/poster/119127)
|
| 57 |
+
- 📬 Contact:
|
| 58 |
+
- Zihao Jing: zjing29@uwo.ca
|
| 59 |
+
- Pingzhao Hu: phu49@uwo.ca
|
| 60 |
+
|
| 61 |
+
## Abstract
|
| 62 |
+
|
| 63 |
+
Multimodal molecular models often suffer from 3D conformer unreliability and modality collapse, limiting robustness and generalization. MuMo addresses these challenges with a Structured Fusion Pipeline (SFP) that combines 2D topology and 3D geometry into a stable structural prior, and a Progressive Injection (PI) mechanism that asymmetrically integrates this prior into the sequence stream. Built on a state space backbone, MuMo supports long-range dependency modeling. Across 21+ benchmarks, MuMo achieves strong improvements and robustness to 3D conformer noise. See paper for details: [NeurIPS 2025](https://neurips.cc/virtual/2025/poster/119127).
|
| 64 |
+
|
| 65 |
+
## Dataset Overview
|
| 66 |
+
|
| 67 |
+
- Source: filtered ChEMBL (~1.6M molecules)
|
| 68 |
+
- Purpose: language-style pretraining over SMILES with graph/geometry supervision
|
| 69 |
+
- Processing: generated using `preprocess/mol3d_processor.py`
|
| 70 |
+
- Splits: `train` (≈1.55M), `validation` (≈39.8K)
|
| 71 |
+
|
| 72 |
+
You can load this dataset directly via the Hugging Face Datasets API or via our training scripts with `--dataset_name`.
|
| 73 |
+
|
| 74 |
+
## Data Schema (per example)
|
| 75 |
+
|
| 76 |
+
- `smiles` (string): canonical SMILES string
|
| 77 |
+
- Graph keys (2D topology and basic chemistry):
|
| 78 |
+
- `x`: node feature matrix (list of lists)
|
| 79 |
+
- `edge_index`: 2×E edge indices (list of two lists of int)
|
| 80 |
+
- `edge_attr`: edge feature matrix (list of lists)
|
| 81 |
+
- Fragment-level keys (BRICS-based):
|
| 82 |
+
- `fra_edge_index`: fragment connectivity indices (list of lists of int)
|
| 83 |
+
- `fra_edge_attr`: fragment edge features (list of lists)
|
| 84 |
+
- Geometry-level keys:
|
| 85 |
+
- `ba_edge_index`: geometry-based connections (list of lists of int)
|
| 86 |
+
- `ba_edge_attr`: features for geometry connections (list of lists)
|
| 87 |
+
- Geometry–fragment keys:
|
| 88 |
+
- `bafra_edge_index`: geometry fragment connectivity (list of lists of int)
|
| 89 |
+
- `bafra_edge_attr`: features for geometry fragments (list of lists)
|
| 90 |
+
- `cluster_idx` (list of int): fragment membership index per atom (which fragment each atom belongs to)
|
| 91 |
+
|
| 92 |
+
Notes:
|
| 93 |
+
- Shapes and dtypes may be adapted by downstream collators; values are stored as lists for portability.
|
| 94 |
+
- All lists are serialized for JSONL storage and converted to tensors during training.
|
| 95 |
+
|
| 96 |
+
## Usage
|
| 97 |
+
|
| 98 |
+
Python (Datasets):
|
| 99 |
+
|
| 100 |
+
```python
|
| 101 |
+
from datasets import load_dataset
|
| 102 |
+
|
| 103 |
+
ds = load_dataset("zihaojing/MuMo-Pretraining")
|
| 104 |
+
print(ds)
|
| 105 |
+
example = ds["train"][0]
|
| 106 |
+
print(example.keys())
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
Training script (Transformers):
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
deepspeed train/pretrain.py \
|
| 113 |
+
--dataset_name zihaojing/MuMo-Pretraining \
|
| 114 |
+
--do_train --do_eval \
|
| 115 |
+
...
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
## Processing Pipeline
|
| 119 |
+
|
| 120 |
+
We use `preprocess/mol3d_processor.py` to derive graph and geometry features from SMILES:
|
| 121 |
+
|
| 122 |
+
- Atom features, bonds, and 2D topology populate `x`, `edge_index`, `edge_attr`.
|
| 123 |
+
- BRICS-based fragmentation provides `fra_edge_index`, `fra_edge_attr`, and `cluster_idx`.
|
| 124 |
+
- Geometry connections and fragment geometry provide `ba_edge_index`, `ba_edge_attr`, `bafra_edge_index`, `bafra_edge_attr`.
|
| 125 |
+
|
| 126 |
+
## License
|
| 127 |
+
|
| 128 |
+
MIT
|