Abstract
Large Language Models (LLMs) are increasingly deployed for molecular captioning, yet they frequently produce "fluent hallucinations"—grammatically correct but scientifically inaccurate descriptions. We present MolErr2Fix, a comprehensive benchmark designed to evaluate LLMs' ability to detect, localize, explain, and correct chemical errors. Our evaluation of state-of-the-art models reveals that while advanced reasoning models show promise in detection, most LLMs struggle with structural logic, spatial indexing, and precise error correction, highlighting a significant gap between linguistic fluency and chemical reasoning.
Introduction: The Fluency Trap in Chemical AI
In AI-driven chemistry, LLMs are often used to translate chemical structures (SMILES format) into natural language descriptions. While these models produce text that sounds professional, they frequently miscount atoms, misidentify functional groups, or fail to capture stereochemistry. A critical issue is that traditional evaluation metrics like BLEU or ROUGE only measure linguistic overlap, failing to penalize scientific inaccuracies. A model can achieve a high fluency score while being fundamentally wrong about the science.
To build trustworthy AI assistants for scientists, models must move beyond simple generation toward self-verification and correction. MolErr2Fix addresses this by shifting the focus from generation to diagnostic reasoning.
The MolErr2Fix Benchmark and Methodology
The researchers developed a modular, four-stage evaluation pipeline to pinpoint where chemical reasoning chains break down. This "Error-to-Fix" approach allows for a granular assessment of a model's diagnostic capabilities.
Evaluation Pipeline
- Detection: Identifying if a description contains a chemical error.
- Localization: Pinpointing the specific erroneous text span.
- Explanation: Articulating why the text violates chemical principles.
- Revision: Generating a scientifically accurate correction.
Dataset Composition
The benchmark consists of 525 unique molecules (selected from ChEBI-20) with 1,193 fine-grained annotated errors. These errors are categorized into six types: Functional Group/Substituent, Classification, Derivation, Stereochemistry, Sequence/Composition, and Indexing. The "gold standard" captions and corrections were meticulously audited by a team of chemistry experts (PhD and Master's students).
Key Results and Insights
Performance Leaders
Evaluation of various LLMs showed that reasoning-enhanced models significantly outperform standard models in error detection. Grok-3 achieved the highest F1 score for Error Detection (66.6%), followed by Claude-3.7-sonnet (52.6%). This suggests that the ability to "think through" a problem is more critical for chemistry than a massive internal database of facts.
The Difficulty of Revision
Error Revision proved to be the most challenging task. No model surpassed a BLEU score of 11.1% when attempting to fix identified errors. This indicates that "repairing" chemical knowledge is significantly more difficult for current AI than simply spotting a mistake.
Spatial and Numerical Blindness
LLMs exhibit a notable struggle with "counting" and "indexing." They frequently fail to identify the correct position of a substituent on a ring or count carbon chain lengths accurately. This suggests that training data emphasizes stylistic fluency over the structural logic required for chemistry. Furthermore, domain-specific models (e.g., LlaSMol, ChemLLM) often performed poorly on this benchmark, likely due to over-fitting on caption generation tasks at the expense of general instruction-following and diagnostic capabilities.
Conclusion and Future Directions
MolErr2Fix reveals that linguistic fluency is a poor proxy for scientific truth in chemical AI. To advance the field, the authors advocate for "chemistry-centric" pretraining—teaching models the fundamental laws of chemistry rather than just chemical text. Future work should focus on developing self-reflection loops where models iteratively debug their own outputs, ensuring that AI assistants provide reliable, verifiable information to the scientific community.
Summary updated