Source-linked AI summary
DRAK: Unlocking Molecular Insights with Domain-Specific Retrieval-Augmented Knowledge in LLMs
Jinzhe Liu, Xiangsheng Huang, Zhuo Chen, Yin Fang
TL;DR
LLMs have difficulty with molecular syntax and domain-specific knowledge, and existing fine-tuning or modality-alignment approaches have not bridged that gap. DRAK injects domain knowledge through knowledge-aware prompts and gold-label induction; the paper reports significant enhancements across six Mol-Instructions molecular tasks. The authors present tailored knowledge integration as beneficial for drug discovery and molecular studies.
Problem
LLMs struggle with long-tail domain knowledge and non-standard molecular formats, while fine-tuning and modality alignment have not resolved these challenges.
Source: §1 · p. 1Method
DRAK is a training-free, non-parametric knowledge-injection framework that uses knowledge-aware prompts and gold-label induction, with distinct DRAK variants.
Source: §1 · p. 2Results
DRAK reports significant enhancements on six molecular tasks within the Mol-Instructions dataset.
Source: §5 · p. 8Takeaways & Limitations
The authors present tailored knowledge integration as beneficial for LLMs in drug discovery and molecular studies.
Source: §5 · p. 8DRAK depends on external databases and tools, whose limitations, inaccuracies, or updates can affect its performance.
Source: Limitations · p. 9
Abstract
from arXiv · showhide
Large Language Models (LLMs) encounter challenges with the unique syntax of specific domains, such as biomolecules. Existing fine-tuning or modality alignment techniques struggle to bridge the domain knowledge gap and understand complex molecular data, limiting LLMs' progress in specialized fields. To overcome these limitations, we propose an expandable and adaptable non-parametric knowledge injection framework named Domain-specific Retrieval-Augmented Knowledge (DRAK), aimed at enhancing reasoning capabilities in specific domains. Utilizing knowledge-aware prompts and gold label-induced reasoning, DRAK has developed profound expertise in the molecular domain and the capability to handle a broad spectrum of analysis tasks. We evaluated two distinct forms of DRAK variants, proving that DRAK exceeds previous benchmarks on six molecular tasks within the Mol-Instructions dataset. Extensive experiments have underscored DRAK's formidable performance and its potential to unlock molecular insights, offering a unified paradigm for LLMs to tackle knowledge-intensive tasks in specific domains. Our code will be available soon.
1 Introduction
LLMs struggle with long-tail domain knowledge and molecular syntax, while fine-tuning and modality alignment have not resolved the gap. DRAK injects domain knowledge through prompting and explores variants and knowledge-graph integration for molecular tasks.
1 Introduction
- Existing LLMs struggle with long-tail domain knowledge and non-standard molecular formats, and fine-tuning and modality alignment fall short of resolving the challenge.The introduction argues that these gaps reduce reliability on domain-specific tasks.Source: §1 · p. 1
- DRAK is a training-free, non-parametric knowledge-injection framework that uses knowledge-aware prompts and gold-label induction to address domain-specific question answering.The introduction also compares DRAK-S and DRAK-K as different forms of injected knowledge.Source: §1 · p. 2
- The introduction highlights analysis of how different DRAK forms affect LLMs’ mastery of knowledge and accuracy on domain-specific queries.This impact analysis is one of the paper’s stated contributions.Source: §1 · p. 2
- The paper also explores integrating knowledge graphs with DRAK through structured, non-parametric knowledge injection for specialized domains.The stated focus is improving biomolecular understanding and generation.Source: §1 · p. 2
- The framework is presented as scalable and adaptable to domains with distinct syntactic structures, including molecules, materials, and chemistry.The stated goal is to improve inference capabilities in those domains.Source: §1 · p. 2
2 Methodology
DRAK injects molecular-domain knowledge into LLM prompts through retrieved examples and sentence- or knowledge-graph-based context, with gold-label examples supporting reasoning.
2.1 Definition of Concepts and Problems
- DRAK frames molecular question answering as mapping queries and background knowledge to answers, with an objective spanning tasks, LLMs, and DRAK variants.The background knowledge is represented as a knowledge graph of entities, relations, and factual triples.Source: §2.1 · p. 2
2.2 Prompt Construction
- PubMed abstracts provide open-ended generation prompts, while input templates combine each molecular input with external knowledge.The prompt instructions are enriched using gpt-3.5-turbo, following Mol-Instruction.Source: §2.2 · p. 2
2.3 Retrieval-Augmented Knowledge
- DRAK addresses subtle molecular-structure distinctions with reasoning-chain prompts and structured features, using sentence-centric DRAK-S or KG-driven DRAK-K injection.Its overview pairs top-K demonstration retrieval with gold-label-induced reasoning.Source: §2.3 · p. 3, Figure 2 · p. 3
2.3.1 Sentence-Centric Knowledge Injection
- DRAK-S adds entity-level weakly labeled information to reconstruct context, expressing molecular structures as quoted SELFIES strings and retrieving by sentence-embedding similarity.A similarity threshold filters recalled examples to those sufficiently close to the query.Source: §2.3.1 · p. 3
2.3.2 KG-driven Knowledge Injection
- DRAK-K retrieves the top-k relevant knowledge-graph triplets and presents task-relevant molecular structures and application contexts as structured background.The paper illustrates this with a molecule-description example mapped to a molecule-design task.Source: §2.3.2 · p. 4
2.4 Language Model Reasoning
- Gold-label-induced reasoning supplies each test input with the gold labels of its k most similar training instances as context for generating answers.The authors state this similarity-based retrieval aids accurate, contextually relevant answers while minimizing hallucinations.Source: §2.4 · p. 4
3 Experiment
DRAK-S and DRAK-K are evaluated across six molecular tasks, with DRAK outperforming LLM benchmarks on generation, understanding, and property prediction. Ablations and case studies examine knowledge representation, retrieval settings, and task outputs.
3.1 Experimental Setup
- Evaluation uses 1k Mol-Instructions test samples, with text metrics for understanding, validity and similarity checks for generation, and MAE for continuous property prediction.DRAK is applied to a Mol-Instructions fine-tuned LLaMA-7B model; retrieval uses threshold 0.8.Source: §3.1 · p. 4
3.2 Overall Results
- DRAK variants consistently beat LLM benchmarks across molecular-generation metrics, and general DRAK surpasses expert models on reagent prediction.DRAK-K also improves exact match over Mol-Instructions across four generation tasks.Source: Table 1 · p. 5, §3.2 · p. 6
- DRAK-K reduces property-prediction MAE from 0.013 to 0.00096 and raises BLEU, METEOR, and ROUGE scores over Mol-Instructions in molecular understanding.The reported increases are ↑0.363 for BLEU-2, ↑0.278 for METEOR, and ↑0.200 for ROUGE.Source: Table 2 · p. 6, §3.2 · p. 6
3.3 Ablation Studies
- Changing KG representations has minimal impact overall, and detailed templates do not consistently outperform minimalist ones; higher retrieval thresholds correspond to better response quality and metrics.Thresholds compared are 0.5, 0.7, and 0.8.Source: §3.3 · p. 7
Q3: Is the result consistent with varying k?
- With k = 1, DRAK shows limited improvement in molecular insight; adding examples helps it identify shared molecular structural features within the same data distribution.The authors attribute the limited single-example gain to overreliance on one instance and the diversity of molecular structures and functions.Source: Q3: Is the result consistent with… · p. 8
3.4 Case Studies
- Case studies show DRAK generating molecule descriptions aligned with factual structure, function, and origin information, predicting HOMO-LUMO gaps, and producing reaction-related structures.The paper contrasts the property predictions with substantial discrepancies in Mol-Instructions outputs.Source: Figure 5 · p. 7, Figure 6 · p. 7, §3.4 · p. 8
4 Related Work
Prior molecular LLM work uses fine-tuning and modality alignment, while DRAK applies non-parametric knowledge retrieval to address challenges in specialized molecular reasoning.
4.1 Molecule-Related LLMs
- MolT5 supports cross-modal translation, while Mol-Instructions uses SELFIES datasets and InstructMol aligns 2D molecular graphs with language models.The authors argue these approaches can prioritize output-format mimicry over complex structural comprehension, limiting generalization and increasing hallucination risks.Source: §4.1 · p. 8
4.2 Retrieval-Augmented Knowledge
- DRAK uses template design, sample selection, and retrieval to address ICL’s difficulty with molecular science’s unique linguistic structures.The related-work discussion notes that ICL avoids parameter updates and can improve performance with a few annotated examples, but struggles in this domain.Source: §4.2 · p. 8
5 Conclusion
The study presents non-parametric knowledge injection for biomolecular LLMs and reports improvements across six Mol-Instructions tasks.
- DRAK integrates domain-specific insights through non-parametric knowledge injection to support LLM understanding and application in biomolecular science.The study analyzes molecular-data understanding and context sensitivity using two prompting techniques.Source: §5 · p. 8
- The method shows significant enhancements on six molecular tasks in the Mol-Instructions dataset.Source: §5 · p. 8
- The authors frame tailored knowledge integration as beneficial for LLMs in drug discovery and molecular studies.Source: §5 · p. 8
Limitations
The stated limitations concern dependence on external tools, keeping knowledge current, generalization beyond biomolecules, data representation, and potential misuse.
- DRAK depends on external databases and tools, whose inaccuracies, limitations, or updates can directly affect performance.The authors name ChromaDB, RDKit, and networkx as examples.Source: Limitations · p. 9
- The framework may need significant updates or retraining to incorporate new biomolecular findings, risking outdated or less accurate responses over time.Source: Limitations · p. 9
- DRAK has been tested primarily on biomolecules, so generalization to other domains or biology subdomains remains insufficiently explored.Different domains may require adaptations for their distinct challenges, terminologies, and data formats.Source: Limitations · p. 9
- Performance depends on training-data quality and diversity; overrepresented molecule types or underrepresented rare structures can skew outputs.The authors note possible effects on the reliability of generated molecules or predictions.Source: Limitations · p. 9
- The authors warn that molecule-design and function-prediction capabilities could be exploited to create harmful substances or bioweapons.Source: Limitations · p. 9
Mitigating Strategies
The paper proposes access controls, data curation, and transparency measures, and concludes that risk mitigation and ethical use are important.
- Controlled access for verified entities and usage monitoring are proposed to help prevent misuse.The authors also propose detecting and flagging exploration of sensitive or potentially harmful domains.Source: Mitigating Strategies · p. 9
- Curating and diversifying training datasets is proposed to address bias and broaden molecular-structure representation.The stated aim is to improve model accuracy and generalizability.Source: Mitigating Strategies · p. 9
- More interpretable models or fuller documentation of training data and algorithms are proposed to improve transparency.The authors connect transparency practices with trust and reliability.Source: Mitigating Strategies · p. 9
- The conclusion calls for robust risk-mitigation measures and ethical use to realize benefits while minimizing potential harms.Source: Mitigating Strategies · p. 9
Related papers
This paper cites
- LLaMA: Open and Efficient Foundation Language Models2023
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks2020
- A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions2023
- Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Models2023