TRANSMISSION // 2611.40429v2

How Molecular Strings Affect AI Chemistry Tasks

Source published

A preprint tests whether matching molecular-string units to questions and keeping edits local can improve language-model performance in specific chemistry tasks.

AI-generated conceptual illustration for How Molecular Strings Affect AI Chemistry Tasks
AI-generated conceptual illustration; not documentary evidence.

Molecules can be encoded as strings for language models, but different encodings expose chemical structure in different ways. A preprint tests two design principles—matching string units to queried concepts and keeping changes localized in the string—and measures their effects across several tasks.

Why molecular strings matter

A molecule is a network of atoms and bonds. To process that structure alongside language, a large language model (LLM) can be given a string representation. SMILES is one widely used format: it records atoms and bonds through a traversal of the molecular graph. Depending on the molecule and task, a queried feature may be explicit in the string or have to be inferred from its symbols and relationships.

Gunwook Nam, Gaeun Sun and Yousung Jung ask whether choices in string design affect model performance. They propose unit–query alignment: representation units should correspond to chemical concepts that a question asks about. Their second principle, representational locality, is that a local structural edit should affect a localized region of the string.

They test these ideas with LAUGHS, a representation built from chemical-content units—including named moieties and atoms—and structural markers for connections and positions. Its hierarchy organizes moieties into a core and nested substituents. Complex ring systems can instead be described through a primary ring and atom-level components. A variant called LAUGHS-local changes target serialization to preserve more unchanged input substrings.

What the researchers compared

For molecular recognition, the team evaluated questions about substructures across multiple representations. They classified representation–question pairs by how directly the queried feature was expressed: as an explicit unit, as a recurring pattern of units, or through context-dependent units and relationships. In additional tests, they changed LAUGHS strings and prompts to see whether adding a query-relevant unit, clarifying its meaning, or both affected accuracy and generated-token counts.

For instruction-guided editing, models were trained on examples pairing a molecular string with an instruction and target edit. The study compared exact matches across representations. Other evaluations tested property-conditioned generation, redesign with a scaffold-preservation requirement, and iterative optimization using computational activity scores.

These are benchmark and model evaluations. In particular, the activity-optimization scores came from pretrained computational classifiers; they do not establish biological activity in laboratory experiments.

Findings depend on the task

When the representation directly named a queried structure, performance could improve. In a benzene-counting test, adding an explicit “benzene” unit raised accuracy from 86.0% to 95.0% and reduced generated tokens by 70%. For quaternary-carbon counting, adding a unit raised accuracy from 80.0% to 88.0%; combining the unit with a prompt explanation reached 97.5%. The results show that exposing a feature in the string does not always ensure that a model interprets it correctly.

In instruction-guided editing, exact-match accuracy was 48.4% for SMILES, 64.8% for canonical LAUGHS and 75.0% for LAUGHS-local. Locality was not uniform across formats or tasks: canonical LAUGHS had fewer single-region edits than SMILES in the reported comparison, while LAUGHS-local had more. Across pooled examples and representations, accuracy declined as the number of separate changed text regions increased, though the authors caution that this pattern may not hold within every task or representation. In ring-atom replacement, SMILES had the highest average exact-match rate.

For property-guided generation, LAUGHS had an overall success rate of 56.8%, compared with 53.4% for SMILES. In scaffold-constrained redesign, the reported rates were 75.7% and 63.7%, respectively. In iterative optimization, LAUGHS produced more trajectories reaching the specified score threshold on the harder objectives; every trajectory reached it for both formats on DRD2. These results concern the particular models, tasks and scoring procedures tested, not experimentally validated drug candidates.

Limits and interpretation

The findings support unit–query alignment and representational locality as testable design principles in these setups, not as universal rules or proof that LAUGHS is best for every task. The authors note that LAUGHS is newer than established formats and its exposure during model pretraining is unknown. Its fixed vocabulary may miss rare or specialized structures, and strings can be longer. Results also depended on task, prompts and training conditions.

The work is an arXiv preprint. Its reported experiments provide evidence within the study, but a preprint is not independent replication or peer-reviewed confirmation. A cautious takeaway is that representation design can affect measured model performance in some chemistry tasks, alongside the choice and training of the model.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.