What Does a Chemical Language Model Know About Molecules?

Christian Kenneth, Etowah Adams, Liam Bai, Gerard JP van Westen
6/22/2026
cs.LGcs.AIphysics.chem-ph

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Chemical language models (cLMs) are widely assumed to learn surface-level syntactic patterns rather than learning meaningful molecular semantics. Here, we apply sparse autoencoders (SAEs) to MolFormer, an encoder-only cLM, to mechanistically examine how molecular representations are built across layers. We discover that early layers rely on position-tracking latents to parse molecular grammar, while later layers encode atom-in-substructure and pharmacologically relevant features. Additionally, we show that non-canonical SMILES produce more disruptive representation shifts than invalid SMILES, driven by position-latent disruption propagating across layers. To support further exploration, we develop InterMol, an interactive visualizer for SAE activations on molecular strings and structures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kenneth2026what,
  title  = {What Does a Chemical Language Model Know About Molecules?},
  author = {Christian Kenneth and Etowah Adams and Liam Bai and Gerard JP van Westen},
  year   = {2026},
  eprint = {2606.23443},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.23443v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.23443.svg)](https://codeofpaper.com/paper/2606.23443)

Discussion