← Latest papers
🤖 machine learning

Rethinking Molecular Text Representations for LLMs: An Empirical Study

This paper presents a systematic benchmark of 16 LLMs across nine molecular representations and eight chemical tasks, revealing that performance is highly representation-dependent with no single format dominating all tasks, thereby arguing against representation-invariant evaluation and advocating for task-aware representation routing.

Original authors: Arun Raja, Garrett M. Morris, Kian Ming A. Chai

Published 2026-06-03
📖 5 min read🧠 Deep dive

Original authors: Arun Raja, Garrett M. Morris, Kian Ming A. Chai

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very smart, well-read robot (a Large Language Model or LLM) how to understand chemistry. The robot is brilliant at reading stories and writing essays, but chemistry is a bit like a secret code. To talk to the robot about a molecule (like aspirin or caffeine), you have to translate that molecule into text.

The problem is, there are many different "dialects" or ways to write this chemical code. Some look like short, cryptic strings of letters (SMILES), some look like long, formal names (IUPAC), and some look like detailed blueprints written in a structured format (CML or MolJSON).

This paper is like a massive "taste test" where the researchers tried feeding the robot the same molecule written in nine different dialects and asked it to perform eight different chemistry tasks. They wanted to find out: Which dialect does the robot understand best?

Here is what they discovered, broken down with simple analogies:

1. The "One Size Fits All" Myth is False

You might think that if a robot is good at chemistry, it should be good at chemistry no matter how you write the molecule down. The paper says this is wrong.

  • The Analogy: Imagine you are asking a chef to chop vegetables. If you give them a knife made of wood, a knife made of glass, or a knife made of steel, they will chop differently. The chef's skill isn't just about being a chef; it's about how well they can handle the specific tool you handed them.
  • The Finding: The robot's performance changed drastically depending on which "dialect" you used. There was no single "best" way to write a molecule that worked for every task.

2. The "Blueprint" vs. The "Recipe"

The researchers found that different dialects are better for different jobs.

  • The "Blueprints" (CML and MolJSON): These are like detailed architectural drawings where every atom and bond is explicitly listed in a structured list.
    • Best for: Tasks that require counting parts or seeing the exact shape, like "How many carbon atoms are here?" or "Is this molecule a mirror image of that one?"
    • Why: The robot can easily scan the list like a spreadsheet.
  • The "Formal Names" (IUPAC): These are long, human-readable names like "2-acetyloxybenzoic acid."
    • Best for: Tasks that involve matching descriptions, like "Find the molecule that matches this story."
    • Why: Since these names are written in natural language, the robot (which is trained on human text) understands the meaning of the words better than the cryptic codes.
  • The "Short Codes" (SMILES): This is the most common way chemists write molecules today. It's a compact string of characters.
    • The Surprise: Even though the robot was likely trained mostly on these short codes, they were rarely the best choice. In fact, for many tasks, the robot struggled with them compared to the detailed blueprints.

3. The "Specialist" Trap

The researchers also tested robots that were specifically trained only on chemistry (Chemistry-specialized models).

  • The Analogy: Imagine a chef who only ever practiced chopping carrots. If you give them a carrot, they are amazing. But if you hand them a potato or a tomato, they might freeze up or break the knife because they never practiced on those.
  • The Finding: These chemistry-specialized robots were great at the short codes (SMILES) because that's what they were trained on. However, when you gave them the "blueprints" (CML/MolJSON), they performed terribly. They had become so specialized in one dialect that they forgot how to read the others. The general-purpose robots were actually more flexible.

4. The "Hallucination" Problem

When the robot tried to create a new molecule based on a description, it often made mistakes.

  • The Finding: Using the "Formal Names" (IUPAC) resulted in the fewest errors. When the robot tried to generate molecules using the short codes or the blueprints, it was more likely to "hallucinate" (make up fake molecules or break the rules of chemistry).
  • The Mechanism: The researchers looked inside the robot's "brain" (its attention mechanisms) and found that when reading the detailed blueprints, the robot had to pay attention to every single part of the molecule to get it right. When reading the short codes, it often skipped over important details.

5. The Main Takeaway

The paper concludes that we cannot just say "LLMs are good at chemistry." We have to ask, "Good at chemistry using which text format?"

  • If you want the robot to count atoms or spot structural differences, give it the detailed blueprints (CML/MolJSON).
  • If you want the robot to find a molecule based on a description, give it the formal name (IUPAC).
  • If you want the robot to generate a new molecule, the formal name is currently the safest bet to avoid errors.

In short: The way you ask the question matters just as much as the intelligence of the person (or robot) answering it. To get the best results from AI in chemistry, we need to stop using just one "default" language and start choosing the right language for the specific job we need done.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →