NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical Structure-Property Alignment for Data-Efficient Molecular Generation and Editing

Ziyu Fan, Zhijian Huang, Yinxin Li, Xiaowen Hu, Siyuan Shen, Yunliang Wang, Zeyu Zhong, Shuhong Liu, Shuning Yang, Shangqian Wu, Min Wu, Lei Deng

TL;DR

HSPAG is a data-efficient framework for property-controlled molecular generation and editing that aligns molecular structures and properties across multiple hierarchical levels (atom, substructure, and whole-molecule). By leveraging an active-learning-inspired sampling strategy driven by an auxiliary VAE, HSPAG achieves superior structure-property alignment and fine-grained editing capabilities while drastically reducing the volume of pre-training data required.

What Problem Does This Paper Address?

Designing novel molecules with specific chemical and biological properties is a cornerstone of AI-driven drug discovery. However, existing conditional molecular generation models face two major bottlenecks:

  1. Complex Mapping: Capturing the intricate, non-linear relationships between a molecule's 1D/2D structure (SMILES strings) and its multi-dimensional property profile remains highly challenging.
  2. Data Scarcity & Annotation Costs: High-quality, fully annotated molecular property datasets are expensive and time-consuming to produce experimentally. While deep learning models can learn these mappings implicitly, they typically require massive pre-training datasets to generalize effectively.

HSPAG addresses these challenges by introducing a hierarchical alignment framework that treats molecular structures and properties as multi-modal pairs, combined with an intelligent data-sampling pipeline to maximize data efficiency.

Methods

The HSPAG framework introduces several novel components to standard conditional variational autoencoder (CVAE) architectures:

  • Hierarchical Structure-Property Alignment: Instead of treating properties as a single global vector, HSPAG aligns SMILES sequences and molecular properties across three distinct levels—atom, substructure, and whole-molecule—using contrastive learning objectives (InfoNCE loss) with learnable logit scaling.
  • Active-Learning-Inspired Data Selection: To minimize the required training data, the authors construct two specialized subsets:
  • Example Set: Built using scaffold-based partitioning and Levenshtein distance filtering to ensure broad structural diversity.
  • Challenging Set: The authors discovered that an unconditional VAE's reconstruction loss strongly correlates with conditional generation difficulty. They use an auxiliary VAE to identify "generation-hard" molecules, adding them to the training mix to improve model robustness.
  • Property Relevance-Aware Masking: During molecular editing, properties that are highly correlated with the target property are automatically masked. This prevents the model from receiving contradictory prompts (e.g., asking to increase molecular weight while keeping the heavy atom count artificially low).

Datasets

The framework was trained and evaluated using several established chemical informatics datasets:

  • ChEMBL 24: The primary dataset used to train HSPAG, filtered down to a training set of 236,920 unique molecules after scaffold-based partitioning.
  • MoleculeNet Benchmarks: A suite of downstream datasets used to evaluate structure-property association and property prediction accuracy, including BBBP, Tox21, ToxCast, ClinTox, MUV, HIV, Bace, ESOL, and Lipophilicity.
  • DrugBank: A library of 2,580 FDA-approved drugs utilized as a candidate pool for a real-world virtual screening case study.

Key Insights and Ideas

  • Reconstruction Loss as a Proxy for Hardness: A key "aha moment" in the paper is demonstrating that unconditional VAE reconstruction loss serves as an excellent proxy for identifying difficult molecular structures. This allows the framework to implement uncertainty-based active sampling without needing explicit property labels during the selection phase.
  • The Necessity of Correlation Masking: Traditional molecular editing frameworks often suffer when optimizing a single property because adjacent, highly correlated properties remain static, creating physically impossible or highly unstable target states. Masking these correlated dimensions allows the model the flexibility it needs to find valid chemical structures.
Comparison of property distributions across the original, example, challenging, and mixed dataset splits.

Key Results

  • Controllable Generation & Decoding Trade-offs: The authors evaluated different decoding strategies (Top-$k$ vs. Top-$p$ sampling) under various property perturbation ratios. For instance, tighter constraints ($K=1$) yielded high chemical validity (0.9280) but lower scaffold diversity (502.31), whereas relaxing constraints ($K=2$) boosted the unique scaffold count to 629.38 at a slight cost to validity (0.9055).
  • Substructure Sensitivity: In zero-shot embedding evaluations using the Davies-Bouldin (DB) score (where lower scores indicate better cluster separability), HSPAG consistently outperformed strong baselines like MolMVC and BartSmiles. On the BACE dataset, HSPAG achieved a mean DB score of 3.214, compared to MolMVC's 3.716 and BartSmiles' 3.944, proving its superior ability to preserve structure-property mappings.
  • Lead Compound Optimization: In a practical case study, HSPAG successfully optimized a KMO Inhibitor (Ro-61-8048), lowering its topological polar surface area (TPSA) from ~160 to the target goal of 80 to improve blood-brain barrier permeability, while successfully retaining the molecule's core active fragments and improving binding free energy.

Limitations and Future Work

The authors note two primary limitations of the current study:

  1. Simulated Property Labels: To achieve scale, property annotations were generated using computational tools (ADMETlab 3.0 and RDKit) rather than physical experiments. This introduces potential simulation noise and model uncertainty into the training loop.
  2. Lack of 3D Structural Constraints: HSPAG operates entirely on 1D SMILES representations (ligand-based generation). Consequently, it overlooks the explicit 3D geometry and spatial complementarity of the target protein's binding pocket, which can lead to suboptimal binding affinities in real-world clinical applications. Future iterations aim to integrate 3D structural biology data directly into the alignment framework.

Summary updated

BibTeX
@inproceedings{fan2026hierarchical,
  author = {Ziyu Fan and Zhijian Huang and Yinxin Li and Xiaowen Hu and Siyuan Shen and Yunliang Wang and Zeyu Zhong and Shuhong Liu and Shuning Yang and Shangqian Wu and Min Wu and Lei Deng},
  title = {{Hierarchical Structure-Property Alignment for Data-Efficient Molecular Generation and Editing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i25.39245},
}
Figure