TL;DR
MolHIT bridges the long-standing performance gap between 1D sequence models and 2D graph diffusion models for de novo molecular design. By introducing Decoupled Atom Encoding (DAE) to resolve chemical ambiguities and a coarse-to-fine Hierarchical Discrete Diffusion Model (HDDM), MolHIT achieves near-perfect chemical validity (99.1% on MOSES) while setting a new Pareto frontier in structural novelty and sample quality.
What Problem Does This Paper Address?
In generative chemistry, models typically take one of two routes:
- 1D Sequence Models (e.g., SMILES-based Transformers): They generate highly valid chemical strings, but frequently memorize training data and fail to explore genuinely new chemical scaffolds.
- 2D Molecular Graph Diffusion Models: They naturally capture molecular topologies and discover novel structures, but suffer from notoriously poor chemical validity (often 80–90%) and generate chemically impossible or unstable molecules.
The authors identify two fundamental root causes for graph diffusion's poor performance:
- Ill-posed atom encodings: Prior models encode atoms solely by atomic number $Z$. This ignores whether an atom is aromatic, protonated (like pyrrolic nitrogen,
[nH]), or charged, forcing models to infer chemical state entirely from edge features—leading to catastrophic reconstruction failures on common drug-like motifs. - Flat corruption processes: Standard discrete diffusion treats every atom swap as independent or immediately masks it out, ignoring natural chemical hierarchies (e.g., halogens or aromatics sharing similar properties).
Methods
MolHIT introduces three core innovations:
[M] (Masked State)
│
▼
G1, G2, G3, G4 (Mid-level States: Halogens, Aromatics, etc.)
│
▼
C, N, O, [nH], Cl... (Clean States via DAE)
- Decoupled Atom Encoding (DAE): Expands the node vocabulary by explicitly decoupling aromaticity, formal charges, and hydrogen saturation into distinct tokens (e.g., distinguishing aliphatic carbon
Cfrom aromaticc, or neutralnfrom pyrrolic[nH]). This avoids adding explicit hydrogen nodes, preserving graph sparsity while removing chemical ambiguity. - Hierarchical Discrete Diffusion Models (HDDM): Replaces flat masking with a multi-stage Markov chain. Clean states ($S_0$) transition into intermediate semantic clusters ($S_1$, such as halogens, aromatics, aliphatics) before transitioning to an absorbing mask token ($S_2$). The reverse generation proceeds in a principled coarse-to-fine manner with mathematically guaranteed ELBO derivation.
- Decoupled Dynamics & Project-and-Noise (PN) Sampler: Atom features use HDDM while bond features evolve via uniform transitions. At inference, the PN sampler projects network predictions onto discrete candidates and re-noises them to intermediate timesteps, combined with temperature/top-p sampling on node predictions to avoid trajectory collapse.
- Conditional Modeling: Incorporates Adaptive Layer Normalization (AdaLayerNorm) on node attention to condition on continuous molecular properties using Classifier-Free Guidance (CFG).
Datasets
- MOSES Benchmark: ~1.9M clean, neutral drug-like molecules. DAE expands the original 7 heavy atom vocabulary to 12 distinct tokens.
- GuacaMol Benchmark: A broader chemical space derived from ChEMBL containing charged and hypervalent species. The authors train on the full, unfiltered dataset, expanding the 12 elemental types into 56 fine-grained DAE tokens.
- New Metrics Introduced:
- Scaffold Novelty ($|S_{\text{gen}} \setminus S_{\text{train}}| / n_{\text{total}}$): Measures generation beyond the training distribution.
- Scaffold Retrieval ($|S_{\text{gen}} \cap S_{\text{test}}| / n_{\text{total}}$): Measures the capacity to sample valid, drug-like scaffolds from the test distribution.
Key Insights and Ideas
- Atom ambiguity was a hidden bottleneck: Standard atom encodings failed to reconstruct pyrrolic nitrogens (
[nH]) over 98% of the time. Because previous graphs couldn't represent these properly, models never learned to generate them reliably. DAE fixes this representation gap, boosting reconstruction to 100%. - Chemical hierarchy stabilizes discrete diffusion: Allowing atoms to transition through intermediate semantic groups (e.g., determining that an atom belongs to an aromatic ring before choosing between carbon or nitrogen) significantly smooths the discrete generative trajectory.
- Graph models don't have to sacrifice validity for novelty: By fixing the node representation and the forward transition structure, 2D graph diffusion can beat both 1D sequence models on validity and prior 2D graph models on novelty simultaneously.
Key Results
- MOSES Unconditional Generation:
- Validity: MolHIT achieves 99.1%, outperforming previous graph SOTA models (DiGress at 87.1%, DeFoG at 92.8%) and rivaling sequence models (SAFE-GPT at 99.8%).
- Overall Quality: Sets a new state-of-the-art 94.2% (vs. 82.5% for DiGress and 92.8% for VAE).
- Scaffold Novelty: Reaches 0.39, substantially surpassing 1D sequence baselines (0.12–0.29) and graph baselines (0.26–0.36).
- GuacaMol (Full / Unfiltered):
- Outperforms full-dataset DiGress on validity (87.1% vs. 74.7%), successfully generating molecules containing formal charges (7.4% vs. near 0% in prior graph models).
- Downstream Tasks:
- Multi-Property Guidance (QED, SA, logP, MW): Reduces macro-averaged MAE by 52.4% (0.058 vs. 0.122 for baseline) with high Pearson correlation ($r = 0.807$) and >96% validity.
- Scaffold Extension: Achieves 83.9% validity, outperforming DiGress (50.8%), with higher recovery rates (Hit@1: 3.92% vs. 2.07%; Hit@5: 9.79% vs. 6.41%).
Limitations and Future Work
- Model Scale: The experiments strictly use the baseline DiGress graph transformer architecture (~16.2M parameters); scaling model size or using newer graph backbones remains untested.
- Training Convergence on GuacaMol: Due to computational constraints, the GuacaMol model was only trained for 40–50 epochs (compared to 1,000 epochs in original DiGress baselines).
- CFG Guidance Strength: Increasing classifier-free guidance scale beyond $w = 1.0$ did not yield performance gains on discrete graphs, warranting better discrete guidance formulations.
- Future Directions: Extending HDDM to 3D conformation generation, protein design, text/image discrete diffusion, and motif-level tokenization.
Summary updated