Graph-based Molecular In-context Learning Grounded on Morgan Fingerprints

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Al-Lawati, Ali, Lucas, Jason, Zhang, Zhiwei, Mitra, Prasenjit, Wang, Suhang
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929703706689536
author Al-Lawati, Ali
Lucas, Jason
Zhang, Zhiwei
Mitra, Prasenjit
Wang, Suhang
author_facet Al-Lawati, Ali
Lucas, Jason
Zhang, Zhiwei
Mitra, Prasenjit
Wang, Suhang
contents In-context learning (ICL) effectively conditions large language models (LLMs) for molecular tasks, such as property prediction and molecule captioning, by embedding carefully selected demonstration examples into the input prompt. This approach avoids the computational overhead of extensive pertaining and fine-tuning. However, current prompt retrieval methods for molecular tasks have relied on molecule feature similarity, such as Morgan fingerprints, which do not adequately capture the global molecular and atom-binding relationships. As a result, these methods fail to represent the full complexity of molecular structures during inference. Moreover, small-to-medium-sized LLMs, which offer simpler deployment requirements in specialized systems, have remained largely unexplored in the molecular ICL literature. To address these gaps, we propose a self-supervised learning technique, GAMIC (Graph-Aligned Molecular In-Context learning, which aligns global molecular structures, represented by graph neural networks (GNNs), with textual captions (descriptions) while leveraging local feature similarity through Morgan fingerprints. In addition, we introduce a Maximum Marginal Relevance (MMR) based diversity heuristic during retrieval to optimize input prompt demonstration samples. Our experimental findings using diverse benchmark datasets show GAMIC outperforms simple Morgan-based ICL retrieval methods across all tasks by up to 45%.
format Preprint
id arxiv_https___arxiv_org_abs_2502_05414
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Graph-based Molecular In-context Learning Grounded on Morgan Fingerprints
Al-Lawati, Ali
Lucas, Jason
Zhang, Zhiwei
Mitra, Prasenjit
Wang, Suhang
Machine Learning
Computation and Language
In-context learning (ICL) effectively conditions large language models (LLMs) for molecular tasks, such as property prediction and molecule captioning, by embedding carefully selected demonstration examples into the input prompt. This approach avoids the computational overhead of extensive pertaining and fine-tuning. However, current prompt retrieval methods for molecular tasks have relied on molecule feature similarity, such as Morgan fingerprints, which do not adequately capture the global molecular and atom-binding relationships. As a result, these methods fail to represent the full complexity of molecular structures during inference. Moreover, small-to-medium-sized LLMs, which offer simpler deployment requirements in specialized systems, have remained largely unexplored in the molecular ICL literature. To address these gaps, we propose a self-supervised learning technique, GAMIC (Graph-Aligned Molecular In-Context learning, which aligns global molecular structures, represented by graph neural networks (GNNs), with textual captions (descriptions) while leveraging local feature similarity through Morgan fingerprints. In addition, we introduce a Maximum Marginal Relevance (MMR) based diversity heuristic during retrieval to optimize input prompt demonstration samples. Our experimental findings using diverse benchmark datasets show GAMIC outperforms simple Morgan-based ICL retrieval methods across all tasks by up to 45%.
title Graph-based Molecular In-context Learning Grounded on Morgan Fingerprints
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2502.05414