Proceedings

Enhancing Chemical Reaction and Retrosynthesis Prediction with Large Language Model and Dual-task Learning

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 7554-7562.

https://doi.org/10.24963/ijcai.2025/840

Abstract

Chemical reaction and retrosynthesis prediction are fundamental tasks in drug discovery. Recently, large language models (LLMs) have shown potential in many domains. However, directly applying LLMs to these tasks faces two major challenges: (i) lacking a large-scale chemical synthesis-related instruction dataset; (ii) ignoring the close correlation between reaction and retrosynthesis prediction for the existing fine-tuning strategies. To address these challenges, we propose ChemDual, a novel LLM framework for accurate chemical synthesis. Specifically, considering the high cost of data acquisition for reaction and retrosynthesis, ChemDual regards the reaction-and-retrosynthesis of molecules as a related recombination-and-fragmentation process and constructs a large-scale of 4.4 million instruction dataset. Furthermore, ChemDual introduces an enhanced LLaMA, equipped with a multi-scale tokenizer and dual-task learning strategy, to jointly optimize the process of recombination and fragmentation as well as the tasks between reaction and retrosynthesis prediction. Extensive experiments on Mol-Instruction and USPTO-50K datasets demonstrate that ChemDual achieves state-of-the-art performance in both predictions of reaction and retrosynthesis, outperforming the existing conventional single-task approaches and the general open-source LLMs. Through molecular docking analysis, ChemDual generates compounds with diverse and strong protein binding affinity, further highlighting its strong potential in drug design.

  1. [Bento et al., 2020] A Patrícia Bento, Anne Hersey, Eloy Félix, Greg Landrum, Anna Gaulton, Francis Atkinson, Louisa J Bellis, Marleen De Veij, and Andrew R Leach. An open source chemical structure curation pipeline using rdkit. Journal of Cheminformatics, 12:1-16, 2020.
  2. [Cao et al., 2025] He Cao, Zijing Liu, Xingyu Lu, Yuan Yao, and Yu Li. InstructMol: Multi-modal integration for build- ing a versatile and reliable molecular assistant in drug dis- covery. In Proceedings of the 31st International Confer- ence on Computational Linguistics, pages 354-379, 2025.
  3. [Chiang et al., 2023] Wei-Lin Chiang, Zhuohan Li, Zi Lin, et al. Vicuna: An open-source chatbot impressing GPT-4 with 90%* ChatGPT quality, 2023.
  4. [Christofidellis et al., 2023] Dimitrios Christofidellis, Gior- gio Giannone, Jannis Born, Ole Winther, Teodoro Laino, and Matteo Manica. Unifying molecular and textual rep- resentations via multi-task language modelling. In Pro- ceedings of the 41th International Conference on Machine Learning, pages 6140-6157, 2023.
  5. [Dai et al., 2019] Hanjun Dai, Chengtao Li, Connor W. Co- ley, Bo Dai, and Le Song. Retrosynthesis prediction with conditional graph logic network. In Proceedings of the 32th Annual Conference on Neural Information Process- ing Systems, pages 8870-8880, 2019.
  6. [Degen et al., 2008] Jorg Degen, Christof Wegscheid- Gerlach, Andrea Zaliani, and Matthias Rarey. On the art of compiling and using'drug-like'chemical fragment spaces. ChemMedChem, 3(10):1503, 2008.
  7. [Durant et al., 2002] Joseph L Durant, Burton A Leland, Douglas R Henry, and James G Nourse. Reoptimization of mdl keys for use in drug discovery. Journal of Chemical Information and Computer Sciences, 42(6):1273-1280, 2002.
  8. [Fang et al., 2024] Yin Fang, Xiaozhuan Liang, Ningyu Zhang, Kangwei Liu, Rui Huang, Zhuo Chen, Xiaohui Fan, and Huajun Chen. Mol-instructions: A large-scale biomolecular instruction dataset for large language mod- els. In Proceedings of the 12th International Conference on Learning Representations, 2024.
  9. [GLM et al., 2024] Team GLM, Aohan Zeng, and et al. ChatGLM: A family of large language models from GLM- 130B to GLM-4 all tools, 2024.
  10. [Guo et al., 2023] Taicheng Guo, Kehan Guo, Bozhao Nan, Zhenwen Liang, Zhichun Guo, Nitesh V. Chawla, Olaf Wiest, and Xiangliang Zhang. What can large language models do in chemistry? A comprehensive benchmark on eight tasks. In Proceedings of the 37th International Con- ference on Neural Information Processing Systems, pages 59662-59688, 2023.
  11. [He et al., 2016] Di He, Yingce Xia, Tao Qin, Liwei Wang, Nenghai Yu, Tie-Yan Liu, and Wei-Ying Ma. Dual learn- ing for machine translation. In Proceedings of the 30th International Conference on Neural Information Process- ing Systems, page 820-828, 2016.
  12. [Krenn et al., 2020] Mario Krenn, Florian Häse, AkshatKu- mar Nigam, Pascal Friederich, and Alan Aspuru-Guzik. Self-referencing embedded strings (selfies): A 100% ro- bust molecular string representation. Machine Learning: Science and Technology, 1(4):045024, 2020.
  13. [Levenshtein, 1966] Vladimir I. Levenshtein. Binary codes capable of correcting deletions, insertions, and reversals. Soviet Physics Doklady, 10(8):707-710, 1966.
  14. [Liang et al., 2023] Ke Liang, Yue Liu, Sihang Zhou, Wenx- uan Tu, Yi Wen, Xihong Yang, Xiangjun Dong, and Xin- wang Liu. Knowledge graph contrastive learning based on relation-symmetrical structure. IEEE Transactions on Knowledge and Data Engineering, 36(1):226-238, 2023.
  15. [Liang et al., 2024] Ke Liang, Lingyuan Meng, Yue Liu, Meng Liu, Wei Wei, Suyuan Liu, Wenxuan Tu, Siwei Wang, Sihang Zhou, and Xinwang Liu. Simple yet effec- tive: Structure guided pre-trained transformer for multi- modal knowledge graph reasoning. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 1554-1563, 2024.
  16. [Morris et al., 2009] Garrett M. Morris, Ruth Huey, William Lindstrom, Michel F. Sanner, Richard K. Belew, David S. Goodsell, and Arthur J. Olson. Autodock4 and autodock- tools4: Automated docking with selective receptor flexi- bility. Journal of Computational Chemistry, 30(16):2785- 2791, 2009.
  17. [OpenAI, 2024] OpenAI. ChatGPT: A language model by OpenAI. https://chat.openai.com/, 2024. Accessed: 2024- 09-17. Link
  18. [Papineni et al., 2002] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: A method for au- tomatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting on Association for Computa- tional Linguistics, pages 311-318, 2002.
  19. [Pei et al., 2023] Qizhi Pei, Wei Zhang, Jinhua Zhu, Kehan Wu, Kaiyuan Gao, Lijun Wu, Yingce Xia, and Rui Yan. Biot5: Enriching cross-modal integration in biology with chemical knowledge and natural language associations. In Proceedings of the 2023 Conference on Empirical Meth- ods in Natural Language Processing, pages 1102-1123, 2023.
  20. [Pei et al., 2024] Qizhi Pei, Lijun Wu, Kaiyuan Gao, Xi- aozhuan Liang, Yin Fang, Jinhua Zhu, Shufang Xie, Tao Qin, and Rui Yan. BioT5+: Towards generalized biolog- ical understanding with IUPAC integration and multi-task tuning. In Findings of the Association for Computational Linguistics: ACL 2024, pages 1216-1240, 2024.
  21. [Rogers and Hahn, 2010] David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5):742-754, 2010.
  22. [Schneider et al., 2015] Nadine Schneider, Roger A Sayle, and Gregory A Landrum. Get your atoms in order-an open-source implementation of a novel and robust molec- ular canonicalization algorithm. Journal of Chemical In- formation and Modeling, 55(10):2111-2120, 2015.
  23. [Schneider et al., 2016] Nadine Schneider, Nikolaus Stiefl, and Gregory A Landrum. What's what: The (nearly) definitive guide to reaction role assignment. Journal of chemical information and modeling, 56(12):2336-2346, 2016.
  24. [Schwaller et al., 2019] Philippe Schwaller, Teodoro Laino, Théophile Gaudin, Peter Bolgar, Christopher A Hunter, Costas Bekas, and Alpha A Lee. Molecular transformer: a model for uncertainty-calibrated chemical reaction predic- tion. ACS Central Science, 5(9):1572-1583, 2019.
  25. [Seo et al., 2021] Seung-Woo Seo, You Young Song, June Yong Yang, Seohui Bae, Hankook Lee, Jinwoo Shin, Sung Ju Hwang, and Eunho Yang. Gta: Graph truncated attention for retrosynthesis. In Proceedings of the 34th AAAI Conference on Artificial Intelligence, volume 35, pages 531-539, 2021.
  26. [Taori et al., 2023] Rohan Taori, Ishaan Jain, Shubhu Lohia, Adrià Garriga-Alonso, Daphne Ippolito, et al. Stanford Alpaca: An instruction-following LLaMA model, 2023.
  27. [Taylor et al., 2022] Ross Taylor, Marcin Kardas, Guillem Cucurull, et al. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085, 2022.
  28. [Touvron et al., 2023] Hugo Touvron, Thibaut Lavril, Gau- tier Izacard, Xavier Martinet, Marie-Anne Lachaux, Tim- othée Lacroix, Baptiste Rozière, Naman Goyal, Eric Ham- bro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. LLaMA: Open and efficient foundation language models, 2023.
  29. [Tu and Coley, 2022] Zhengkai Tu and Connor W Co- ley. Permutation invariant graph-to-sequence model for template-free retrosynthesis and reaction prediction. Jour- nal of chemical information and modeling, 62(15):3503- 3513, 2022.
  30. [Ucak et al., 2022] Umit V Ucak, Islambek Ashyrmama- tov, Junsu Ko, and Juyong Lee. Retrosynthetic reac- tion pathway prediction through neural machine transla- tion of atomic environments. Nature Communications, 13(1):1186, 2022.
  31. [van der Maaten and Hinton, 2008] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(86):2579-2605, 2008.
  32. [Wan et al., 2022] Yue Wan, Chang-Yu Hsieh, Ben Liao, and Shengyu Zhang. Retroformer: Pushing the limits of end-to-end retrosynthesis transformer. In Proceeding of the 39th International Conference on Machine Learning, pages 22475-22490, 2022.
  33. [Wang et al., 2023] Yu Wang, Chao Pang, Yuzhe Wang, Junru Jin, Jingjie Zhang, Xiangxiang Zeng, Ran Su, Quan Zou, and Leyi Wei. Retrosynthesis prediction with an interpretable deep-learning framework based on molecu- lar assembly tasks. Nature Communications, 14(1):6155, 2023.
  34. [Xu et al., 2023] Canwen Xu, Daya Guo, Nan Duan, and Ju- lian McAuley. Baize: An open-source chat model with parameter-efficient tuning on self-chat data. In Proceed- ings of the 2023 Conference on Empirical Methods in Nat- ural Language Processing, pages 6268-6278, 2023.
  35. [Zdrazil et al., 2024] Barbara Zdrazil, Eloy Felix, Fiona Hunter, Emma J Manners, James Blackshaw, Sybilla Cor- bett, Marleen de Veij, Harris Ioannidis, David Mendez Lopez, Juan F Mosquera, et al. The chembl database in 2023: a drug discovery platform spanning multiple bioac- tivity data types and time periods. Nucleic Acids Research, 52(D1):D1180-D1192, 2024.
  36. [Zhao et al., 2025] Zihan Zhao, Da Ma, Lu Chen, Liangtai Sun, Zihao Li, Yi Xia, Bo Chen, Hongshen Xu, Zichen Zhu, Su Zhu, Shuai Fan, Guodong Shen, Kai Yu, and Xin Chen. Developing chemdfm as a large language founda- tion model for chemistry. Cell Reports Physical Science, 6(4):102523, 2025.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards