Abstract
Molecular learning models are strongly shaped by their underlying representations. Yet standard sequential and graph formalisms struggle to explicitly encode higher-order topology, such as ring systems and recurring motifs. Existing higher-order representations can capture these structures directly, but they are often computationally demanding and difficult to decode into valid molecules. Here, we introduce Higher-order Grammar Representation (HGR), a principled, topology-aware framework that lifts molecules to combinatorial complexes and parses each complex into a compact sequence of production rules under a context-free higher-order grammar. By serialising higher-order topology into rule sequences, HGR makes these structures directly compatible with standard sequence models, avoiding the computational overhead of explicit higher-order encodings while preserving topological expressiveness. To reduce benchmark bias towards simple ring systems, we construct RingDiv, a ring-enriched benchmark containing 1.18 million molecules, including the curated RingDiv300k subset, and introduce the ring diversity index (RDI) to quantify ring-system coverage. In molecular generation, HGR-based models uniquely combine 100% validity by construction with leading distributional alignment, ranking first in FCD on all five generation benchmarks. In representation learning, HGR-FM achieves the highest mean AUC across seven MoleculeNet benchmarks under both transfer protocols, improving on the strongest baseline by 8.3 and 3.3 AUC points under probing and full fine-tuning, respectively. Collectively, these results establish HGR as an efficient higher-order representation for molecular generation and transferable representation learning.
Keywords
Subject
Publication details
- Journal
- Not available
- Open access
- Green open access
Cite this article
APA 7
Huang, Y., Zeng, Y., Dwivedi, V. P., Foti, S., Wang, J., Leskovec, J., & Birdal, T. (2026). Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry. https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry
MLA 9
Huang, Yiming, et al. "Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry." https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry.
Chicago (author–date)
Huang, Yiming, Yujie Zeng, Vijay Prakash Dwivedi, Simone Foti, Jianmin Wang, Jure Leskovec, and Tolga Birdal. 2026. "Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry." https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry.
Harvard
Huang, Y., Zeng, Y., Dwivedi, V. P., Foti, S., Wang, J., Leskovec, J. and Birdal, T. (2026) 'Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry', Available at: https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry.
Vancouver
Huang Y, Zeng Y, Dwivedi VP, Foti S, Wang J, Leskovec J, et al. Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry. https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry
IEEE
Y. Huang, Y. Zeng, V. P. Dwivedi, S. Foti, J. Wang, J. Leskovec, and T. Birdal, "Higher-Order Molecular Grammars for Generative and Foundation Models in Chemistry," https://omanscience.com/en/articles/higher-order-molecular-grammars-for-generative-and-foundation-models-in-chemistry.