Same molecule, Different Knowledge: Cross-Identifier Binding Failures in LLMs For chemistry
Organizations: Department of Computer Science, King Abdullah University of Science and Technology, KAUST, Thuwal, Saudi Arabia
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.
Figures & tables
| Indication | Benzene | Nitrogens | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | N | I | S | N | I | S | N | I | S |
| ChemDFM-v2.0-14B | 38.8 | 2.2 | 2.1 | 76.7 | 93.2 | 94.6 | 41.6 | 70.3 | 59.6 |
| ChemDFM-v1.5-8B | 22.5 | 0.1 | 3.7 | 70.5 | 81.1 | 84.4 | 5.5 | 8.7 | 21.2 |
| Qwen2.5-14B-Instruct | 37.8 | 5.4 | 1.2 | 58.6 | 80.9 | 86.9 | 33.3 | 59.2 | 65.6 |
| Qwen2.5-7B-Instruct | 34.2 | 2.1 | 1.2 | 57.9 | 60.8 | 80.1 | 32.9 | 53.0 | 38.3 |
| Qwen2-72B-Instruct | 43.5 | 9.5 | 0.9 | 71.0 | 88.6 | 84.3 | 40.0 | 51.8 | 61.6 |
| 2AFC recognition | Free-form recognition | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | SMILES | Name | Rest | SMILES | Name | Rest | ||
| ChemDFM-v2.0-14B | 576 | 4.0 | 42.7 | 2.8 | 62 | 3.2 | 40.3 | 3.6 |
| ChemDFM-v1.5-8B | 487 | 3.7 | 22.0 | 4.9 | 72 | 8.3 | 19.4 | 3.9 |
| Qwen2.5-14B-Instruct | 332 | 1.2 | 44.9 | 1.4 | 1 | 0.0 | 100.0 | 1.3 |
| Qwen2.5-7B-Instruct | 240 | 0.0 | 40.4 | 1.7 | 1 | 0.0 | 100.0 | 1.2 |
| Qwen2-72B-Instruct | 376 | 1.3 | 42.6 | 0.6 | 7 | 0.0 | 42.9 | 0.9 |
| Model | SMILES | + Name | Name | Recovery |
|---|---|---|---|---|
| ChemDFM-v2.0-14B | 2.1 | 36.3 | 38.6 | 93.6 |
| ChemDFM-v1.5-8B | 3.9 | 21.4 | 23.0 | 91.8 |
| Qwen2.5-14B-Instruct | 1.3 | 37.6 | 37.8 | 99.4 |
| Qwen2.5-7B-Instruct | 1.2 | 32.8 | 33.9 | 96.6 |
| Llama-3.1-8B-Instruct | 1.2 | 38.6 | 39.0 | 99.1 |
| Qwen2-72B-Instruct | 0.8 | 42.5 | 43.5 | 97.7 |
| Identity under conflict | Indication of B | Benzene of A | ||||
|---|---|---|---|---|---|---|
| Model | True A | Decoy B | Conflict | Name only | Conflict | SMILES only |
| ChemDFM-v2.0-14B | 1.0 | 85.5 | 32.3 | 38.6 | 95.3 | 94.5 |
| ChemDFM-v1.5-8B | 0.6 | 73.4 | 17.4 | 23.0 | 80.5 | 85.0 |
| Qwen2.5-14B-Instruct | 0.0 | 81.1 | 35.9 | 37.8 | 84.9 | 86.9 |
| Qwen2.5-7B-Instruct | 0.0 | 60.4 | 32.1 | 33.9 | 75.9 | 80.2 |
| Llama-3.1-8B-Instruct | 0.0 | 86.8 | 37.3 | 39.0 | 89.3 | 90.3 |
| Model | Peak depth | Recovery | Control |
|---|---|---|---|
| ChemDFM-v2.0-14B | 0.71 | 105.4 | -88.3 |
| ChemDFM-v1.5-8B | 0.50 | 76.4 | -79.6 |
| Qwen2.5-14B-Instruct | 0.71 | 106.0 | -197.7 |
| Qwen2.5-7B-Instruct | 0.75 | 104.9 | -111.4 |
| Meta-Llama-3-8B-Instruct | 0.52 | 135.0 | -179.9 |
| Llama-3.1-8B-Instruct | 0.50 | 112.4 | -208.2 |
| Model | SMILES | + Lookup | Name | Gap rec. |
|---|---|---|---|---|
| ChemDFM-v2.0-14B | 2.4 | 20.8 | 24.4 | 83.6 |
| ChemDFM-v1.5-8B | 5.4 | 14.2 | 14.5 | 96.7 |
| Qwen2.5-14B-Instruct | 1.2 | 25.3 | 29.2 | 86.1 |
| Qwen2.5-7B-Instruct | 0.6 | 22.6 | 23.2 | 97.3 |
| Meta-Llama-3-8B-Instruct | 1.2 | 26.8 | 27.1 | 98.8 |
| Llama-3.1-8B-Instruct | 0.6 | 26.8 | 28.9 | 92.6 |
| Model | Method | Effic. | SMILES | Leak | Specific [95% CI] | +Name |
|---|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | ROME | 52.2 | 22.1 | 19.8 | +2.3 [-0.9,5.5] | 45.5 |
| FT | 26.0 | 1.8 | 2.1 | -0.3 [-1.6,1.2] | 25.2 | |
| Qwen2.5-14B | ROME | 17.9 | 4.4 | 4.9 | -0.5 [-2.4,1.4] | 12.3 |
| FT | 29.0 | 11.5 | 8.0 | +3.5 [0.9,6.3] | 26.7 | |
| Qwen2.5-7B | ROME | 47.9 | 4.0 | 7.4 | -3.4 [-5.7,-0.9] | 11.4 |
| FT | 34.5 | 5.4 | 7.3 | -1.9 [-4.4,0.8] | 21.7 |
| Model | Facts/entity | |
|---|---|---|
| ChemDFM-v2.0-14B | 389 | |
| Qwen2.5-14B-Instruct | 390 | |
| Llama-3.1-8B-Instruct | 389 | |
| ChemDFM-v1.5-8B | 47 | |
| Qwen2.5-7B-Instruct | 351 | |
| Meta-Llama-3-8B-Instruct | 378 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Construction stage | # Molecules |
| ChEMBL molecules with qualifying phase-4 indications | 3,025 |
| Entity and structure filtering | 1,553 |
| Therapeutic-indication normalization and filtering | 897 |
| Successful PubChem IUPAC-name resolution | 896 |
| Identifier | Prompt prefix |
|---|---|
| Trivial name | Consider the molecule commonly known as “{NAME}”. |
| IUPAC name | Consider the molecule named {IUPAC}. |
| SMILES | Consider the molecule with SMILES {SMILES}. |
| Task | Prompt |
|---|---|
| Identify | What is the common generic name of this molecule? Answer in English. Reply with the name only. |
| Indication | What medical condition is this substance primarily used to treat? Answer in English. Reply with the condition only. Do not explain. |
| Formula | What is the molecular formula of this molecule? Answer in English. Reply with the formula only, e.g. C9H8O4. Do not explain. |
| Benzene | Does this molecule contain a benzene ring? Answer in English. Reply with exactly one word: yes or no. Do not explain. |
| Nitrogens | How many nitrogen atoms does this molecule contain? Answer in English. Reply with a single integer only. Do not explain. |
| Ring Count | How many rings does this molecule contain? Answer in English. Reply with a single integer only. Do not explain. |
| Model | Identifier | Identify | Therapeutic indication | Benzene | Nitrogens |
|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | Trivial name | 93.3 | 38.8 | 76.7 | 41.6 |
| IUPAC name | 3.8 | 2.2 | 93.2 | 70.3 | |
| SMILES | 6.9 | 2.1 | 94.6 | 59.6 | |
| ChemDFM-v1.5-8B | Trivial name | 72.7 | 22.5 | 70.5 | 5.5 |
| IUPAC name | 2.7 | 0.1 | 81.1 | 8.7 | |
| SMILES | 8.0 | 3.7 | 84.4 | 21.2 |
| Model | Identifier | Formula | Ring count | Heavy atoms |
|---|---|---|---|---|
| ChemDFM-v2.0-14B | Trivial name | 7.7 | 24.4 | 6.8 |
| IUPAC name | 56.8 | 16.9 | 10.6 | |
| SMILES | 43.5 | 7.7 | 9.8 | |
| ChemDFM-v1.5-8B | Trivial name | 0.0 | 23.0 | 3.1 |
| IUPAC name | 0.0 | 26.0 | 2.3 | |
| SMILES | 0.0 | 48.1 | 1.5 |
| Model | Identify: Name SMILES | Indication: Name SMILES | Benzene: SMILES Name |
|---|---|---|---|
| ChemDFM-v2.0-14B | 775 vs. 1 ( ) | 333 vs. 4 ( ) | 198 vs. 37 ( ) |
| ChemDFM-v1.5-8B | 598 vs. 19 ( ) | 183 vs. 14 ( ) | 212 vs. 88 ( ) |
| Qwen2.5-14B-Instruct | 765 vs. 1 ( ) | 331 vs. 3 ( ) | 322 vs. 68 ( ) |
| Qwen2.5-7B-Instruct | 370 vs. 1 ( ) | 299 vs. 4 ( ) | 292 vs. 93 ( ) |
| Qwen2-72B-Instruct | 553 vs. 4 ( ) | 384 vs. 2 ( ) | 215 vs. 96 ( ) |
| Meta-Llama-3-8B-Instruct | 281 vs. 5 ( ) | 338 vs. 0 ( ) | 248 vs. 51 ( ) |
| Property | Name | Name + SMILES | SMILES | Recovery |
|---|---|---|---|---|
| Benzene | 71.1 | 85.7 | 84.3 | 111.0 |
| Nitrogens | 39.6 | 62.3 | 61.5 | 103.6 |
| Model | Identity: | Indication of : conflict / name | Benzene of : conflict / SMILES |
|---|---|---|---|
| ChemDFM-v2.0-14B | 1.0 / 85.5 | 32.3 / 38.6 | 95.3 / 94.5 |
| ChemDFM-v1.5-8B | 0.6 / 73.4 | 17.4 / 23.0 | 80.5 / 85.0 |
| Qwen2.5-14B-Instruct | 0.0 / 81.1 | 35.9 / 37.8 | 84.9 / 86.9 |
| Qwen2.5-7B-Instruct | 0.0 / 60.4 | 32.1 / 33.9 | 75.9 / 80.2 |
| Llama-3.1-8B-Instruct | 0.0 / 86.8 | 37.3 / 39.0 | 89.3 / 90.3 |
| Qwen2-72B-Instruct | 0.0 / 77.8 | 43.2 / 44.1 | 83.9 / 84.3 |
| Model | Correct | Near | Near | Gross | Gross | Near |
|---|---|---|---|---|---|---|
| accepted | reject | reject | 2AFC | |||
| ChemDFM-v2.0-14B | 93.6 | 36.9 | 1.19 | 84.3 | 2.53 | 73.9 |
| ChemDFM-v1.5-8B | 65.5 | 43.1 | 0.22 | 62.0 | 0.70 | 71.9 |
| Qwen2.5-14B-Instruct | 76.5 | 38.6 | 0.43 | 59.7 | 0.97 | 62.8 |
| Qwen2.5-7B-Instruct | 87.3 | 17.5 | 0.21 | 28.5 | 0.57 | 56.4 |
| Qwen2-72B-Instruct | 91.7 | 22.2 | 0.62 | 47.0 | 1.31 | 65.5 |
| Name SMILES | IUPAC SMILES | ||||
|---|---|---|---|---|---|
| Model | Top-1 | Peak idx. | Top-1 | Peak idx. | States |
| ChemDFM-v2.0-14B | 0.8 | 28 | 13.5 | 31 | 49 |
| ChemDFM-v1.5-8B | 2.8 | 24 | 15.0 | 32 | 33 |
| Qwen2.5-14B-Instruct | 0.7 | 36 | 2.6 | 30 | 49 |
| Qwen2.5-7B-Instruct | 0.7 | 3 | 1.8 | 25 | 29 |
| Meta-Llama-3-8B-Instruct | 0.8 | 13 | 3.9 | 18 | 33 |
| Relation | Molecules |
|---|---|
| Therapeutic indication | 891 |
| Molecular target | 572 |
| Mechanism of action | 651 |
| ATC therapeutic class | 841 |
| Total molecule–relation pairs | 2,955 |
| Model | Self-ID | Indication | Target | MoA | ATC |
|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | 7.1 | 4.9 | 11.4 | 4.5 | 1.4 |
| ChemDFM-v1.5-8B | 12.0 | 6.6 | 11.4 | 2.0 | 2.5 |
| Qwen2.5-14B-Instruct | 0.3 | 1.2 | 4.0 | 3.1 | 1.1 |
| Qwen2.5-7B-Instruct | 0.1 | 1.6 | 0.7 | 0.8 | 0.0 |
| Meta-Llama-3-8B-Instruct | 0.7 | 2.6 | 3.3 | 1.1 | 1.8 |
| Llama-3.1-8B-Instruct | 0.6 | 2.5 | 5.8 | 0.3 | 1.2 |
| Condition | Prompt |
|---|---|
| Efficacy | {Name.capitalize()} is primarily used to treat |
| IUPAC | The molecule named {iupac} is primarily used to treat |
| SMILES | The molecule with SMILES {smiles} is primarily used to treat |
| SMILES+Name | The molecule with SMILES {smiles}, which is known as "{name}", is primarily used to treat |
| Locality | {Unrelated_name.capitalize()} is primarily used to treat |
| Model | Method | Efficacy | IUPAC | SMILES | Leak | Specific [95% CI] | SMILES+Name | Recovery | |
|---|---|---|---|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | ROME | 389 | 52.2 | 24.2 | 22.1 | 19.8 | +2.3 [ ,5.5] | 45.5 | 87.2 |
| FT | 389 | 26.0 | 2.8 | 1.8 | 2.1 | -0.3 [ ,1.2] | 25.2 | 97.0 | |
| Qwen2.5-14B-Instruct | ROME | 390 | 17.9 | 3.8 | 4.4 | 4.9 | -0.5 [ ,1.4] | 12.3 | 68.6 |
| FT | 390 | 29.0 | 14.4 | 11.5 | 8.0 | +3.5 [0.9,6.3] | 26.7 | 92.0 | |
| Qwen2.5-7B-Instruct | ROME | 351 | 47.9 | 4.3 | 4.0 | 7.4 | -3.4 [ , ] | 11.4 | 23.8 |
| FT | 351 | 34.5 | 8.5 | 5.4 | 7.3 | -1.9 [ ,0.8] | 21.7 | 62.8 |
| Model | Method | SMILES | Leak | Specific [95% CI] | SMILES+Name | |
|---|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | ROME | 203 | 33.50 | 32.04 | +1.46 [ ,6.51] | 67.98 |
| FT | 101 | 4.95 | 5.94 | -0.99 [ ,3.95] | 64.36 | |
| Qwen2.5-14B-Instruct | ROME | 70 | 18.57 | 20.99 | -2.42 [ ,6.83] | 57.14 |
| FT | 113 | 30.97 | 20.14 | +10.83 [3.39,18.63] | 67.26 | |
| Qwen2.5-7B-Instruct | ROME | 168 | 7.14 | 13.23 | -6.09 [ , ] | 22.62 |
| FT | 121 | 12.40 | 16.99 | -4.59 [ ,2.12] | 46.28 |
| Model | Entities |
|---|---|
| ChemDFM-v2.0-14B | 389 |
| Qwen2.5-14B-Instruct | 390 |
| Llama-3.1-8B-Instruct | 389 |
| ChemDFM-v1.5-8B | 47 |
| Qwen2.5-7B-Instruct | 351 |
| Meta-Llama-3-8B-Instruct | 378 |
| Hyperparameter | Value |
|---|---|
| Editing mode | One adapter per entity |
| Target layer | 24 |
| LoRA layers | 20–24 |
| LoRA modules | gate/up/down projection |
| Rank | 8 |
| Scaling | 16 |
| Indication | Target | MoA | ATC | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | Before | After | Before | After | Before | After | Before | After | Facts/entity |
| ChemDFM-v2.0-14B | 2.1 | 51.4 | 0.0 | 27.6 | 0.0 | 5.0 | 3.3 | 11.4 | 0.05 0.87 |
| Qwen2.5-14B-Instruct | 4.1 | 13.6 | 1.4 | 43.6 | 0.6 | 20.8 | 0.0 | 10.3 | 0.06 0.73 |
| Llama-3.1-8B-Instruct | 0.3 | 38.8 | 0.7 | 19.9 | 1.2 | 8.4 | 1.1 | 7.9 | 0.03 0.68 |
| ChemDFM-v1.5-8B | 25.5 | 42.6 | 5.1 | 23.1 | 17.1 | 12.2 | 6.8 | 13.6 | 0.51 0.85 |
| Qwen2.5-7B-Instruct | 1.1 | 36.2 | 0.4 | 32.3 | 0.0 | 19.9 | 2.7 | 9.1 | 0.04 0.85 |
| Model | Facts/entity | Bridge | Recovery | |
|---|---|---|---|---|
| ChemDFM-v2.0-14B | 389 | 0.05 0.87 | 1.01 | 86% |
| Qwen2-72B-Instruct | 435 | 0.01 0.85 | 1.34 | 63% |
| Model | Entries | Symbol ID | Name ID | Accession ID | Loc. via Acc. | ID Bridge | Loc. Bridge | Decoy ID |
|---|---|---|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | 16,388 | 99.5 | 66.7 | 0.0 | 23.9 | 99.9 | 100.1 | 99.4 |
| ChemDFM-v1.5-8B | 1,000 | 5.5 | 18.8 | 0.0 | 0.0 | 20.0 | 5.6 | 1.0 |
| Qwen2.5-14B-Instruct | 1,000 | 98.0 | 60.8 | 0.0 | 22.0 | 100.7 | 101.0 | 98.6 |
| Qwen2.5-7B-Instruct | 1,000 | 86.4 | 51.8 | 0.0 | 21.9 | 98.3 | 101.4 | 85.3 |
| Llama-3.1-8B-Instruct | 1,000 | 90.8 | 60.3 | 0.0 | 9.3 | 98.9 | 97.6 | 90.9 |
| Model | Items | Peak | Rel. depth | Recovery | Control | Rank layer | Rank top-1 |
|---|---|---|---|---|---|---|---|
| ChemDFM-v2.0-14B | 689 | 47 | 0.98 | 89.0 | -104.2 | 40 | |
| ChemDFM-v1.5-8B | 607 | 25 | 0.78 | 109.9 | -113.7 | 28 | |
| Qwen2.5-14B-Instruct | 677 | 39 | 0.81 | 94.6 | -125.7 | 40 | |
| Qwen2.5-7B-Instruct | 674 | 24 | 0.86 | 105.3 | -137.3 | 24 | |
| Llama-3.1-8B-Instruct | 680 | 31 | 0.97 | 88.0 | -130.1 | 24 |