Saved in:
Bibliographic Details
Main Authors: Liu, Gang, Chen, Jie, Zhu, Yihan, Sun, Michael, Luo, Tengfei, Chawla, Nitesh V, Jiang, Meng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.08744
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908585578987520
author Liu, Gang
Chen, Jie
Zhu, Yihan
Sun, Michael
Luo, Tengfei
Chawla, Nitesh V
Jiang, Meng
author_facet Liu, Gang
Chen, Jie
Zhu, Yihan
Sun, Michael
Luo, Tengfei
Chawla, Nitesh V
Jiang, Meng
contents In-context learning allows large models to adapt to new tasks from a few demonstrations, but it has shown limited success in molecular design. Existing databases such as ChEMBL contain molecular properties spanning millions of biological assays, yet labeled data for each property remain scarce. To address this limitation, we introduce demonstration-conditioned diffusion models (DemoDiff), which define task contexts using a small set of molecule-score examples instead of text descriptions. These demonstrations guide a denoising Transformer to generate molecules aligned with target properties. For scalable pretraining, we develop a new molecular tokenizer with Node Pair Encoding that represents molecules at the motif level, requiring 5.5$\times$ fewer nodes. We curate a dataset containing millions of context tasks from multiple sources covering both drugs and materials, and pretrain a 0.7-billion-parameter model on it. Across 33 design tasks in six categories, DemoDiff matches or surpasses language models 100-1000$\times$ larger and achieves an average rank of 3.63 compared to 5.25-10.20 for domain-specific approaches. These results position DemoDiff as a molecular foundation model for in-context molecular design. Our code is available at https://github.com/liugangcode/DemoDiff.
format Preprint
id arxiv_https___arxiv_org_abs_2510_08744
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Graph Diffusion Transformers are In-Context Molecular Designers
Liu, Gang
Chen, Jie
Zhu, Yihan
Sun, Michael
Luo, Tengfei
Chawla, Nitesh V
Jiang, Meng
Machine Learning
Artificial Intelligence
In-context learning allows large models to adapt to new tasks from a few demonstrations, but it has shown limited success in molecular design. Existing databases such as ChEMBL contain molecular properties spanning millions of biological assays, yet labeled data for each property remain scarce. To address this limitation, we introduce demonstration-conditioned diffusion models (DemoDiff), which define task contexts using a small set of molecule-score examples instead of text descriptions. These demonstrations guide a denoising Transformer to generate molecules aligned with target properties. For scalable pretraining, we develop a new molecular tokenizer with Node Pair Encoding that represents molecules at the motif level, requiring 5.5$\times$ fewer nodes. We curate a dataset containing millions of context tasks from multiple sources covering both drugs and materials, and pretrain a 0.7-billion-parameter model on it. Across 33 design tasks in six categories, DemoDiff matches or surpasses language models 100-1000$\times$ larger and achieves an average rank of 3.63 compared to 5.25-10.20 for domain-specific approaches. These results position DemoDiff as a molecular foundation model for in-context molecular design. Our code is available at https://github.com/liugangcode/DemoDiff.
title Graph Diffusion Transformers are In-Context Molecular Designers
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2510.08744