Skip to main content
QUICK REVIEW

[Paper Review] How to Detect and Defeat Molecular Mirage: A Metric-Driven Benchmark for Hallucination in LLM-based Molecular Comprehension

Hao Li, Liuzhenghao Lv|ArXiv.org|Apr 10, 2025
Computational Drug Discovery MethodsComputer Science3 citations
TL;DR

The paper introduces Mol-Hallu, a free-form metric to quantify hallucination in molecular LLMs, analyzes sources of bio-knowledge shortcuts, and proposes HRPP post-processing to reduce hallucinations across decoder-only and encoder-decoder models.

ABSTRACT

Large language models are increasingly used in scientific domains, especially for molecular understanding and analysis. However, existing models are affected by hallucination issues, resulting in errors in drug design and utilization. In this paper, we first analyze the sources of hallucination in LLMs for molecular comprehension tasks, specifically the knowledge shortcut phenomenon observed in the PubChem dataset. To evaluate hallucination in molecular comprehension tasks with computational efficiency, we introduce extbf{Mol-Hallu}, a novel free-form evaluation metric that quantifies the degree of hallucination based on the scientific entailment relationship between generated text and actual molecular properties. Utilizing the Mol-Hallu metric, we reassess and analyze the extent of hallucination in various LLMs performing molecular comprehension tasks. Furthermore, the Hallucination Reduction Post-processing stage~(HRPP) is proposed to alleviate molecular hallucinations, Experiments show the effectiveness of HRPP on decoder-only and encoder-decoder molecular LLMs. Our findings provide critical insights into mitigating hallucination and improving the reliability of LLMs in scientific applications.

Motivation & Objective

  • Identify sources of hallucination in molecular LLMs, especially bio-knowledge shortcuts in PubChemQA.
  • Propose Mol-Hallu, a free-form metric based on entailment of scientific entities to quantify hallucination.
  • Develop and evaluate Hallucination Reduction Post-processing (HRPP) to mitigate hallucinations.
  • Assess Mol-Hallu and HRPP across decoder-only and encoder-decoder molecular LLM architectures.

Proposed method

  • Define molecular hallucination as generation of non-existent or counterfactual scientific entities relative to ground-truth molecular properties.
  • Identify bio-knowledge shortcuts in PubChemQA as a key hallucination source using targeted attacks on drug names in questions.
  • Construct Mol-Hallu as an entity-entailment based metric that computes precision and recall of scientific entities in predicted text against ground truth and molecular descriptions.
  • Annotate an entity database (∼97,219 chemical entities) via Meta-llama-3.2 to support entity entailment and scoring.
  • Compute Mol-Hallu as a weighted F1 score using entailed precision and recall with smoothing and geometric averaging (P, R, Mol-Hallu = 2PR/(P+R)).
  • Propose HRPP: (i) masking entity names to reduce shortcuts during supervised fine-tuning; (ii) Direct Preference Optimization (DPO) with a hallucination-sensitive preference dataset to improve factual accuracy.

Experimental results

Research questions

  • RQ1What are the main sources of hallucination in molecular LLMs, and how do bio-knowledge shortcuts contribute?
  • RQ2Can Mol-Hallu effectively quantify hallucination in open-ended molecular generation tasks compared to traditional metrics?
  • RQ3Does Hallucination Reduction Post-processing (HRPP) reduce molecular hallucination across decoder-only and encoder-decoder LLMs?
  • RQ4How does HRPP affect standard textual metrics (BLEU, ROUGE, METEOR) and Mol-Hallu?
  • RQ5What are the limitations and potential risks of Mol-Hallu as a benchmarking tool?

Key findings

  • Mol-Hallu captures higher sensitivity to hallucinations than traditional metrics, showing pronounced differences as hallucination increases.
  • Bio-knowledge shortcuts in PubChemQA drive LLMs to rely on drug names rather than molecular structure, increasing hallucinations.
  • HRPP yields substantial improvements in text metrics and reduces Mol-Hallu across both decoder-only and encoder-decoder models (average gains in text metrics and Mol-Hallu).
  • Encoder–decoder models (e.g., T5-based) show strong performance in molecular QA tasks with较 smaller parameter counts, often surpassing some larger Llama-based or API-based models in this domain.
  • HRPP shifts the distribution of hallucination counts toward lower values (0–2), indicating effective de-hallucination across tested models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.