TL;DR
While SMILES strings are the default choice for training and prompting chemistry-focused LLMs, this paper demonstrates that they are rarely the optimal representation. By benchmarking 16 LLMs across 9 molecular formats, the authors reveal a stark task-dependency: explicit structured formats like CML dominate structural tasks, while IUPAC names rule semantic tasks.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly deployed for molecular discovery, property prediction, and synthesis planning. However, molecules can be written as text in many different ways—SMILES, SELFIES, InChI, IUPAC names, or even XML/JSON graphs.
Most practitioners default to SMILES simply out of convention and its prevalence in chemical literature. This paper addresses the lack of systematic, empirical evidence regarding which representation best supports different chemical reasoning tasks, warning that SMILES-only evaluations create a false sense of model competence that fails to generalize.
Methods
The authors introduce MolRepBench, a comprehensive benchmark evaluating molecular competence. They test 16 LLMs (spanning open-weight, reasoning-tuned, domain-specialized, and closed frontier models) across 9 representations and 8 tasks.
Beyond standard accuracy metrics, they employ a closed frontier model (Gemini 3 Flash) as an "LLM-as-a-judge" to qualitatively categorize generation errors. Finally, they perform a mechanistic analysis on an open-weight model (Qwen3-4B) using:
- Tokenization audits to evaluate string segmentation costs.
- Linear probing of intermediate hidden layers to check what chemical properties are implicitly encoded.
- Attention weight analysis to localize where the model focuses during molecular tasks.
Datasets
- ChEBI-20: Contains ~33,000 molecules with expert-written natural language descriptions. The authors sampled a stratified subset of 200 complex molecules (molecular weight $\ge$ 300 Da, $\ge$ 2 rings) to ensure the benchmark tests non-trivial structural understanding.
- ZINC250K: A curated dataset of 250,000 drug-like molecules, used to generate pairs for fine-grained discrimination tasks like tautomer and protonation state recognition.
Key Insights and Ideas
- No Universal Winner: Molecular representation is highly task-dependent. Graph-heavy tasks (like atom counting or isomer discrimination) benefit from explicit, addressable formats like CML and MolJSON, whereas description-matching tasks heavily favor IUPAC.
- SMILES is Overrated: Despite dominating LLM pretraining corpora, SMILES variants are rarely the top choice for any specific task type.
- The Specialization Trap: Fine-tuning models specifically on SMILES text (e.g., ChemDFM) boosts their SMILES fluency but decimates their ability to generalize to other formats like CML or InChI due to catastrophic forgetting.
- Tokenization Trade-off: Verbose representations like CML and MolJSON have high token costs initially, but they actually result in shorter chain-of-thought reasoning paths inside the model.
Key Results
- In aggregate, Chemical Markup Language (CML) achieved the top score in 81 out of 128 model-task configurations, followed by MolJSON (75), InChI (72), and Canonical SMILES (66).
- IUPAC names completely dominated the molecule retrieval task, winning for all 16 evaluated LLMs, and yielded the highest fraction of correct molecule generations (50% correct) under LLM-judge evaluation.
- Reasoning models dramatically reduce molecular hallucinations. For instance, switching to the reasoning variant of OLMo halved its hallucination rate from 31.2% to 16.2%.
- Linear probing showed that while SMILES variants encode properties well in hidden states, MolJSON (a format invented after the model's release) actually yielded the best internal representation for predicting TPSA and logP.
Limitations and Future Work
- Evaluation Scale: The study was constrained by tight compute and API budgets, limiting the sample size used for the qualitative LLM-as-a-judge analysis to 10 captions per model/representation.
- Scope of Modalities: The benchmark focuses exclusively on text-based representations. As multimodal models become more prominent, the authors note that future work should explore how LLMs handle 1D, 2D, and 3D spatial molecular representations.
Summary updated