Proceedings

AgentRetro: Agent-Enhanced Molecular Spectral Domain Generalization Framework for Retrosynthesis Prediction Under Mixed OOD Shifts

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 340-347.

https://doi.org/10.24963/ijcai.2026/39

© 2026 International Joint Conferences on Artificial Intelligence

Abstract

Retrosynthesis prediction is a cornerstone of drug discovery, enabling the synthesis of novel therapeutic candidates. However, current deep learning models falter when navigating the unexplored chemical space essential for innovation. In these realistic scenarios, models face a challenging mixed out-of-distribution (OOD) shift: they must handle both novel molecular scaffolds (covariate shift) and unseen reaction templates (label shift), leading to severe performance degradation. To address this, we propose AgentRetro, a framework integrating spectral domain generalization with Large Language Model (LLM) agents. It features a Spectral Domain Enhancer (SDE) that partitions chemical space via spectral clustering to capture diverse domain structures, and a Multi-Knowledge Agent (MKA) that enriches data with LLM-generated OOD reactions and textual rationales. These components are unified by a dual training strategy: meta-learning for template adaptability and adversarial learning for structural invariance. Crucially, our analysis reveals that explicitly decoupling structural invariance from mechanistic adaptability is essential for overcoming the interference between conflicting distribution shifts. Experiments show AgentRetro consistently improves state-of-the-art baselines, notably boosting EditRetro’s OOD Top-10 accuracy from 41.7% to 50.1%. The source code is available at https://github.com/jiahangshen/IJCAI26-AgentRetro.

  1. [Corey, 1991] Elias James Corey. The logic of chemical syn- thesis. 1991.
  2. [Edwards et al., 2021] Carl Edwards, ChengXiang Zhai, and Heng Ji. Text2Mol: Cross-modal molecule retrieval with natural language queries. In Marie-Francine Moens, Xu- anjing Huang, Lucia Specia, and Scott Wen-tau Yih, ed- itors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 595-607, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics.
  3. [Ganin et al., 2016] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc ¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-Adversarial Training of Neural Networks, May 2016. arXiv:1505.07818 [stat].
  4. [Han et al., 2024] Yuqiang Han, Xiaoyang Xu, Chang-Yu Hsieh, Keyan Ding, Hongxia Xu, Renjun Xu, Tingjun Hou, Qiang Zhang, and Huajun Chen. Retrosynthesis pre- diction with an iterative string editing model. Nature Com- munications, 15(1):6404, July 2024. Publisher: Nature Publishing Group.
  5. [Ji et al., 2022] Yuanfeng Ji, Lu Zhang, Jiaxiang Wu, Bingzhe Wu, Long-Kai Huang, Tingyang Xu, Yu Rong, Lanqing Li, Jie Ren, Ding Xue, Houtim Lai, Shaoyong Xu, Jing Feng, Wei Liu, Ping Luo, Shuigeng Zhou, Jun- zhou Huang, Peilin Zhao, and Yatao Bian. DrugOOD: Out-of-Distribution (OOD) Dataset Curator and Bench- mark for AI-aided Drug Discovery -A Focus on Affin- ity Prediction Problems with Noise Annotations, January 2022. arXiv:2201.09637 [cs, q-bio].
  6. [Jiang et al., 2023] Yinjie Jiang, Yemin Yu, Ming Kong, Yu Mei, Luotian Yuan, Zhengxing Huang, Kun Kuang, Zhihua Wang, Huaxiu Yao, James Zou, Connor W. Coley, and Ying Wei. Artificial Intelligence for Retrosynthesis Prediction. Engineering, 25:32-50, June 2023.
  7. [Koh et al., 2021] Pang Wei Koh, Shiori Sagawa, Hen- rik Marklund, Sang Michael Xie, Marvin Zhang, Ak- shay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, Tony Lee, Etienne David, Ian Stavness, Wei Guo, Berton A. Earnshaw, Im- ran S. Haque, Sara Beery, Jure Leskovec, Anshul Kundaje, Emma Pierson, Sergey Levine, Chelsea Finn, and Percy Liang. WILDS: A Benchmark of in-the-Wild Distribution Shifts, July 2021. arXiv:2012.07421 [cs].
  8. [Lee et al., 2019] Chen-Yu Lee, Tanmay Batra, Moham- mad Haris Baig, and Daniel Ulbricht. Sliced wasserstein discrepancy for unsupervised domain adaptation. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10277-10287, 2019.
  9. [Li et al., 2017] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Learning to Generalize: Meta- Learning for Domain Generalization, October 2017. arXiv:1710.03463 [cs].
  10. [Muandet et al., 2017] Krikamol Muandet, Kenji Fukumizu, Bharath Sriperumbudur, and Bernhard Schölkopf. Ker- nel mean embedding of distributions: A review and be- yond. Foundations and Trends® in Machine Learning, 10(1-2):1-141, 2017.
  11. [Peters et al., 2015] Jonas Peters, Peter Bühlmann, and Nicolai Meinshausen. Causal inference using invari- ant prediction: identification and confidence intervals, November 2015. arXiv:1501.01332 [cs, stat].
  12. [Rubner et al., 2000] Yossi Rubner, Carlo Tomasi, and Leonidas J. Guibas. The Earth Mover's Distance as a Met- ric for Image Retrieval. International Journal of Computer Vision, 40(2):99-121, November 2000.
  13. [Schwaller et al., 2019] Philippe Schwaller, Teodoro Laino, Théophile Gaudin, Peter Bolgar, Christopher A. Hunter, Costas Bekas, and Alpha A. Lee. Molecular Trans- former: A Model for Uncertainty-Calibrated Chemical Re- action Prediction. ACS Central Science, 5(9):1572-1583, September 2019. Publisher: American Chemical Society.
  14. [Segler and Waller, 2017] Marwin H. S. Segler and Mark P. Waller. Modelling Chemical Reasoning to Predict and Invent Reactions. Chemistry -A European Journal, 23(25):6118-6128, 2017.
  15. [Sun et al., 2025] Shengyin Sun, Wenhao Yu, Yuxiang Ren, Weitao Du, Liwei Liu, Xuecang Zhang, Ying Hu, and Chen Ma. GDiffRetro: Retrosynthesis Prediction with Dual Graph Enhanced Molecular Representation and Dif- fusion Generation, January 2025. arXiv:2501.08001 [cs].
  16. [Yan et al., 2022] Chaochao Yan, Peilin Zhao, Chan Lu, Yang Yu, and Junzhou Huang. RetroComposer: Com- posing Templates for Template-Based Retrosynthesis Pre- diction. Biomolecules, 12(9):1325, September 2022. arXiv:2112.11225 [physics, q-bio].
  17. [Ye et al., 2022] Nanyang Ye, Kaican Li, Haoyue Bai, Run- peng Yu, Lanqing Hong, Fengwei Zhou, Zhenguo Li, and Jun Zhu. OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalization. In 2022 IEEE/CVF Conference on Computer Vision and Pat- tern Recognition (CVPR), pages 7937-7948, June 2022. ISSN: 2575-7075.
  18. [Yu et al., 2023] Yemin Yu, Luotian Yuan, Ying Wei, Hanyu Gao, Xinhai Ye, Zhihua Wang, and Fei Wu. RetroOOD: Understanding Out-of-Distribution General- ization in Retrosynthesis Prediction, December 2023. arXiv:2312.10900 [cs, q-bio].

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

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