arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04197cs.CLcs.AI
收藏

大语言模型是上下文分子学习者

Large Language Models are In-Context Molecule Learners

Department of Computing, The Hong Kong Polytechnic University(计算机系,香港理工大学);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Lab(上海人工智能实验室)

Jiatong Li, Wei Liu, Zhihao Ding, Wenqi Fan, Yuqiang Li, Qing Li

AI总结:

ICMA通过上下文分子微调使LLMs无需额外训练即可实现分子-文本对齐,证明LLMs具备上下文分子学习能力。

摘要:

大语言模型(LLMs)在生化任务中展现了卓越的性能,尤其是在分子描述词翻译任务中,该任务旨在弥合分子与自然语言文本之间的差距。然而,以往将LLMs适应到分子-描述词翻译任务中的方法需要额外的领域特定预训练阶段,存在分子和文本空间对齐弱,或对LLMs的规模提出严格要求。为了解决这些挑战,我们提出了上下文分子适应(ICMA),作为一种新的范式,允许LLMs通过上下文示例学习分子-文本对齐。具体来说,ICMA包含以下三个阶段:混合上下文检索、检索后重新排序和上下文分子微调。最初,混合上下文检索利用BM25描述词检索和分子图检索来检索相似的信息性上下文示例。此外,检索后重新排序由序列反转和随机游走选择组成,以进一步提高检索结果的质量。最后,上下文分子微调通过检索到的示例解锁LLMs的上下文学习和推理能力,并通过调整LLMs的参数以实现更好的分子与文本对齐。实验结果表明,ICMA可以赋能LLMs在不额外训练语料库和复杂结构的情况下实现最先进的性能,证明LLMs本质上是上下文分子学习者。

英文摘要:

Large Language Models (LLMs) have demonstrated exceptional performance in biochemical tasks, especially the molecule caption translation task, which aims to bridge the gap between molecules and natural language texts. However, previous methods in adapting LLMs to the molecule-caption translation task required extra domain-specific pre-training stages, suffered weak alignment between molecular and textual spaces, or imposed stringent demands on the scale of LLMs. To resolve the challenges, we propose In-Context Molecule Adaptation (ICMA), as a new paradigm allowing LLMs to learn the molecule-text alignment from context examples via In-Context Molecule Tuning. Specifically, ICMA incorporates the following three stages: Hybrid Context Retrieval, Post-retrieval Re-ranking, and In-context Molecule Tuning. Initially, Hybrid Context Retrieval utilizes BM25 Caption Retrieval and Molecule Graph Retrieval to retrieve similar informative context examples. Additionally, Post-retrieval Re-ranking is composed of Sequence Reversal and Random Walk selection to further improve the quality of retrieval results. Finally, In-Context Molecule Tuning unlocks the in-context learning and reasoning capability of LLMs with the retrieved examples and adapts the parameters of LLMs for better alignment between molecules and texts. Experimental results demonstrate that ICMA can empower LLMs to achieve state-of-the-art or comparable performance without extra training corpora and intricate structures, showing that LLMs are inherently in-context molecule learners.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑