arXiv:2610.30903cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30903

Same molecule, Different Knowledge: Cross-Identifier Binding Failures in LLMs For chemistry

Khouloud Saadi, Di Wang

ABSTRACT

Chemical AI workflows routinely represent the same molecule through multiple co-referring identifiers, including trivial names, IUPAC names, and SMILES, implicitly assuming that these representations provide interchangeable access to an LLM's knowledge. To test this assumption, we first introduce a controlled benchmark and show that it does not hold. Across foundation models spanning 7B to 72B parameters, even chemistry-specialized models, co-referring molecular identifiers consistently expose different subsets of the model's knowledge. We then conduct a series of controlled behavioral, representational, and causal analyses to characterize this failure. We show that even when a model can identify a molecule from its SMILES and retrieve a fact through the corresponding name, the same fact can remain inaccessible directly from SMILES. We term this phenomenon cross-identifier binding failure. Further analysis of internal representations, conflicting identifiers, and parameter editing shows that neither improved chemical representation competence nor modification of individual facts is sufficient to establish reliable access across identifiers. Together, these results indicate that the core failure lies in the binding between an identifier and knowledge already present in the model. Motivated by this diagnosis, we introduce Binding Self-Distillation, a simple mitigation that uses lexical identity during training to transfer the model's existing knowledge access to the structural route. This enables factual retrieval directly from SMILES at inference time, without requiring a name lookup or training the underlying model from scratch.

1 INTRODUCTION

Large language models (LLMs) are increasingly used as general-purpose interfaces to knowledge and reasoning (Brown et al., 2020; Ouyang et al., 2022; Kojima et al., 2022). Beyond natural-language generation (Wei et al., 2022), they support applications in programming (Chen et al., 2021), medicine (McDuff et al., 2025; Johri et al., 2025), and scientific discovery (Singhal et al., 2023; Zhang et al., 2024b). In chemistry, LLMs are used for chemical question answering (Zhang et al., 2024a; Zhao et al., 2025), molecular property prediction (Jablonka et al., 2024), and molecule design (Bhattacharya et al., 2024). As these models become components of chemical workflows, an important question is whether the knowledge they contain can be accessed reliably under the different representations used to describe the same molecule.

A single molecule can be referred to through multiple co-referring identifiers (Kim et al., 2023). For example, as shown in Figure 1(A), aspirin may appear as the trivial name aspirin, the systematic IUPAC name 2-acetyloxybenzoic acid (Favre & Powell, 2013), or the SMILES string CC (=O)Oc1cccccc1C (=O)O (Gómez-Bombarelli et al., 2018). These representations are routinely mixed across chemical workflows: biomedical resources commonly use lexical names (Hastings et al., 2016), whereas reaction datasets and molecular generative pipelines frequently use struc-

∗^{*}Corresponding author

(A) Same molecule, different identifiers

Figure

All three denote the same chemical entity.

(B) Factual entity knowledge

Figure

(C) Structure-computable knowledge

Changing only the identifier changes which knowledge is accessible.

Lexical names provide substantially stronger access to stored entity facts; structural identifiers are often more effective for properties computable from molecular form.

Figure 1: Equivalent molecular identifiers expose different knowledge. (A) A trivial name, IUPAC name, and SMILES string denote the same molecule (aspirin). (B–C) Identifier-conditioned accuracy over the 896 molecules in our benchmark, holding the molecule and queried property fixed while changing only the identifier. Lexical names provide substantially stronger access to entity-associated factual knowledge (B, therapeutic indication), whereas structural identifiers provide stronger access to structure-computable knowledge (C, benzene-ring presence). Representative results are shown for ChemDFM-v2.0-14B (Zhao et al., 2025).

tural representations such as SMILES (Gómez-Bombarelli et al., 2018; Schwaller et al., 2019). Consequently, the same LLM may be queried about the same molecule through different identifiers. This practice relies on an implicit assumption: co-referring identifiers should be interchangeable routes to the model's knowledge. More generally, equivalence at the level of the underlying scientific entity is implicitly expected to translate into equivalence as an interface to the model's memory.

In this work, we first show that this assumption does not hold. We construct ChemIDBench, a controlled benchmark for evaluating knowledge access across co-referring molecular identifiers, covering approved drugs with matched trivial names, IUPAC names, and SMILES, and evaluate seven chemistry-specialized and general-purpose LLMs. Holding the underlying molecule and queried property fixed while changing only its identifier reveals a systematic double dissociation: as shown in Figure 1(B,C), lexical names provide substantially stronger access to entity-associated factual knowledge, whereas structure-descriptive identifiers provide stronger access to properties computable from molecular form. Identifier choice therefore does more than change the difficulty of a query; it changes which knowledge is reachable. More surprisingly, this asymmetry persists even when the model recognizes the molecule. We isolate cases in which a model can generate the correct trivial name from SMILES and retrieve a fact through that name, yet still fails to retrieve the same fact directly from SMILES. We call this phenomenon cross-identifier binding failure. It separates three notions that are often implicitly conflated: recognizing the entity, possessing factual knowledge about it, and binding a particular identifier to that knowledge.

We next ask what prevents knowledge from transferring across identifiers and whether the missing access can be recovered. Supplying the lexical name restores much of the inaccessible factual knowledge, showing that the knowledge is present but not reached through the structural route. More importantly, activation patching provides causal evidence for this account: transplanting lexical-route states into a structural query restores inaccessible factual retrieval under SMILES alone. Layer-wise analysis further shows that chemistry-specific training can improve alignment between structural forms without establishing comparable name-structure binding. This weak binding is also a reliability problem: when conflicting identifiers are presented together, different access routes can control different answers, producing inconsistencies that models often fail to detect. Supplying the lexical identity is an effective inference-time remedy, but it requires an identifier lookup on every query. Standard knowledge editing does not reliably propagate factual access across co-referring identifiers, suggesting that modifying the factual association alone is insufficient. Motivated by this diagnosis, we introduce Binding Self-Distillation, which targets the missing access relation by transferring the model's own name-conditioned access behavior to the SMILES route. It substantially improves factual retrieval directly from SMILES across seven models, without requiring the lexical name at inference time or training a model from scratch. A detailed discussion of related work is provided in Appendix A. In summary, our contributions are:

• We introduce ChemIDBench, a controlled benchmark for evaluating knowledge access across co-referring molecular identifiers, covering matched trivial names, IUPAC names, and SMILES and evaluating seven LLMs spanning 7B–72B parameters.

• We characterize how molecular identifier choice affects access to different types of knowledge, contrasting entity-associated factual queries with structure-computable queries and testing whether successful molecular recognition is sufficient for factual retrieval.

• Through lexical-bridge controls, conflicting-identifier experiments, representation analysis, and activation patching, we show that entity recognition, factual knowledge, and identifier-conditioned access are separable, providing behavioral and causal evidence for cross-identifier binding failure.

• We show that standard knowledge editing does not reliably propagate factual access across co-referring identifiers, revealing that modifying the factual association alone is insufficient. Motivated by this diagnosis, we introduce Binding Self-Distillation, which directly targets the missing access relation and substantially improves retrieval from SMILES without requiring the lexical name at inference time.