Graph Diffusion Transformers are In-Context Molecular Designers
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
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× 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× 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.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 25 of its 34 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
25 of 34 references.
Closest ancestors · 3
Same direction, newest first
- 2024Graph Diffusion Transformers for Multi-Conditional Molecular Generation24 Jan
- 2022DiGress: Discrete Denoising diffusion for graph generation29 Sep
- 2022Score-based Generative Modeling of Graphs via the System of Stochastic Differential Equations5 Feb
Other references · 22
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2018GuacaMol: Benchmarking Models for De Novo Molecular Designcited by 297
- 2025Qwen2.5-1M Technical Reportcited by 164
- 2022Sample Efficiency Matters: A Benchmark for Practical Molecular Optimizationcited by 155
- 2024LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Datasetcited by 128
10 more
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2022Graph Rationalization with Environment-based Augmentationscited by 70
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 63
- 2021Molecule Generation by Principal Subgraph Mining and Assemblingcited by 54
- 2021Amortized Tree Generation for Bottom-up Synthesis Planning and Synthesizable Molecular Designcited by 44
- 2020Polymer Informatics with Multi-Task Learningcited by 29
- 2024Multimodal Large Language Models for Inverse Molecular Design with Retrosynthetic Planningcited by 29
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
- 2024Representing Molecules as Random Walks Over Interpretable Grammarscited by 7
- 2025Foundation Molecular Grammar: Multi-Modal Foundation Models Induce Interpretable Molecular Graph Languagescited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026Controllable Molecular Generative Foundation Modelscited by 1
- 2026Autoregressive latent diffusion for 3D molecule generationcited by 1
- 2025Diffusion Models at the Drug Discovery Frontier: A Review on Generating Small Molecules versus Therapeutic Peptidescited by 0
- 2026MolLIBRA: Genetic Molecular Optimization with Multi-Fingerprint Surrogates and Text-Molecule Aligned Criticcited by 0
- 2026FORGE: Fragment-Oriented Ranking and Generation for Context-Aware Molecular Optimizationcited by 0
- 2026Graph Forward Distribution Matching for Molecular Inverse Designcited by 0
- 2026ManifoldCache: Training-Free Diffusion Acceleration via Constraint Manifold Cachingcited by 0
- 2026ManifoldCache: Training-Free Diffusion Acceleration via Constraint Manifold Caching3 Oct 2026
- 2026Graph Forward Distribution Matching for Molecular Inverse Design25 Sep 2026
- 2026Autoregressive latent diffusion for 3D molecule generation10 Jul 2026
- 2026Controllable Molecular Generative Foundation Models14 May 2026
- 2026FORGE: Fragment-Oriented Ranking and Generation for Context-Aware Molecular Optimization11 May 2026
- 2026MolLIBRA: Genetic Molecular Optimization with Multi-Fingerprint Surrogates and Text-Molecule Aligned Critic29 Jan 2026
- 2025Diffusion Models at the Drug Discovery Frontier: A Review on Generating Small Molecules versus Therapeutic Peptides31 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2024Instruction-Based Molecular Graph Generation with Unified Text-Graph Diffusion Model
- 2025Chain-of-Generation: Progressive Latent Diffusion for Text-Guided Molecular Design
- 2024Context-Guided Diffusion for Out-of-Distribution Molecular and Protein Design
- 20243M-Diffusion: Latent Multi-Modal Diffusion for Language-Guided Molecular Structure Generation
- 2026CAGenMol: Condition-Aware Diffusion Language Model for Goal-Directed Molecular Generation
- 2024SubGDiff: A Subgraph Diffusion Model to Improve Molecular Representation Learning
- 2026MolDA: Molecular Understanding and Generation via Large Language Diffusion Model
- 2026Evaluating the Progression of Large Language Model Capabilities for Small-Molecule Drug Design