Papers › MolReFlect: Towards Fine-grained In-Context Alignment between Molecules and Texts

MolReFlect: Towards Fine-grained In-Context Alignment between Molecules and Texts

22 Nov 2024arXiv preprint 2024 11archive 2025-07-28

Jiatong Li, Yunqing Liu, Wei Liu, Jingdi Lei, Di Zhang, Wenqi Fan, Dongzhan Zhou, Yuqiang Li, Qing Li

Molecule discovery is a pivotal research field, impacting everything from the medicines we take to the materials we use. Recently, Large Language Models (LLMs) have been widely adopted in molecule understanding and generation, yet the alignments between molecules and their corresponding captions remain a significant challenge. Previous endeavours often treat the molecule as a general SMILES string or molecular graph, neglecting the fine-grained alignments between the molecular sub-structures and the descriptive textual phrases, which are crucial for accurate and explainable predictions. In this case, we introduce MolReFlect, a novel teacher-student framework designed to contextually perform the molecule-caption alignments in a fine-grained way. Our approach initially leverages a larger teacher LLM to label the detailed alignments by directly extracting critical phrases from molecule captions or SMILES strings and implying them to corresponding sub-structures or characteristics. To refine these alignments, we propose In-Context Selective Reflection, which retrieves previous extraction results as context examples for teacher LLM to reflect and lets a smaller student LLM select from in-context reflection and previous extraction results. Finally, we enhance the learning process of the student LLM through Chain-of-Thought In-Context Molecule Tuning, integrating the fine-grained alignments and the reasoning processes within the Chain-of-Thought format. Our experimental results demonstrate that MolReFlect enables LLMs like Mistral-7B to significantly outperform the previous baselines, achieving SOTA performance on the ChEBI-20 dataset. This advancement not only enhances the generative capabilities of LLMs in the molecule-caption translation task, but also contributes to a more explainable framework.

PaperPDF

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

DescriptiveMolecule CaptioningText-based de novo Molecule Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Molecule Captioning ChEBI-20 MolReFlect BLEU-2 67.6 #3 of 33 Archive leaderboard report
Molecule Captioning ChEBI-20 MolReFlect BLEU-4 60.8 #3 of 33 Archive leaderboard report
Molecule Captioning ChEBI-20 MolReFlect METEOR 68.0 #3 of 33 Archive leaderboard report
Molecule Captioning ChEBI-20 MolReFlect ROUGE-1 70.3 #3 of 33 Archive leaderboard report
Molecule Captioning ChEBI-20 MolReFlect ROUGE-2 57.1 #3 of 33 Archive leaderboard report
Molecule Captioning ChEBI-20 MolReFlect ROUGE-L 64.4 #3 of 33 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect BLEU 90.3 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect Exact Match 51.0 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect Levenshtein 11.84 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect MACCS FTS 92.9 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect Morgan FTS 81.3 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect RDK FTS 86.0 #2 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 MolReFlect Validity 97.7 #2 of 20 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections