Reasoning or Just Prompting? Probing the Mechanism of Latent Chemical Reasoning
Organizations: National University of Singapore
Abstract
Latent reasoning performs intermediate computation in continuous space rather than through explicit tokens, which is particularly appealing in chemistry, where errors in explicit reasoning can propagate to the final answer. Yet if latent states truly constitute an implicit reasoning chain, they should be causally important. We find otherwise: swapping or moderately perturbing intermediate latent states has little effect on performance, while removing them entirely sometimes causes a substantial score drop. Thus, the latent states matter, but their molecule-specific content appears to matter far less. This points to a simpler interpretation. Rather than encoding a step-by-step reasoning chain, latent states may primarily steer subsequent model computation, much like soft prompts. Indeed, a single fixed prefix shared across molecules reproduces LatentChem's performance, and a learned static soft prompt performs comparably to per-input latent generation in controlled models. The tolerance of latent sequences to substitution and moderate perturbation further supports this connection. We therefore suggest that latent chemical reasoning may be better viewed as soft prompting than as a reasoning chain hidden in continuous space.
Figures & tables
| Training | Model / condition | ChEBI-20 | Reaction | ||
|---|---|---|---|---|---|
| METEOR | Identical (%) | Exact (%) | Identical (%) | ||
| Curriculum | Latent reasoning (base) | 0.5727 | – | 77.0 | – |
| + Swapped Z | 0.5703 ( ) | 75.0 | 77.0 ( ) | 99.0 | |
| + Mean Z | 0.5693 ( ) | 79.5 | 77.0 ( ) | 98.0 | |
| Soft prompting | 0.5769 ( ) | – | 78.0 ( ) | – | |
| Direct | Latent reasoning (base) | 0.5739 | – | 77.0 | – |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Epochs | Updates | Examples seen | Initial LR | Trainable params |
|---|---|---|---|---|---|
| Curriculum / Latent reasoning | 4 | 1800 | 14,400 | 5e-05 | 13,631,488 |
| Curriculum / Soft prompting | 4 | 1800 | 14,400 | 5e-05 | 13,664,256 |
| Direct / Latent reasoning | 1 | 450 | 3,600 | 1e-04 | 13,631,488 |
| Direct / Soft prompting | 1 | 450 | 3,600 | 1e-04 | 13,664,256 |
| Task | Evaluation cohort | Exact overlap | Mean NN | NN | Shared scaffold |
|---|---|---|---|---|---|
| ChEBI-20 | Curated validation | 0/200 | 0.703 | 70/200 | 100/128 |
| ChEBI-20 | Official test | 0/200 | 0.528 | 28/200 | 68/146 |
| Forward reaction | Curated validation | 0/200 | 0.375 | 0/200 | — |
| Forward reaction | Official test | 0/200 | 0.353 | 0/200 | — |
| Task | Matched | X-only | Zero | Swapped | Mean | Swap identity (%) |
|---|---|---|---|---|---|---|
| ChEBI-20 | 0.1558 | 0.0610 | 0.0815 | 0.1535 | 0.1564 | 16.5 |
| QED | 0.1862 | 0.2031 | 0.2148 | 0.1923 | 0.1921 | 93 |
| LogP | 1.3615 | 1.2575 | 1.2868 | 1.3496 | 1.3680 | 92 |
| Solubility | 1.4772 | 1.3804 | 1.0710 | 1.4723 | 1.4819 | 90 |
| DRD2 | 0.3041 | 0.2295 | 0.2144 | 0.3110 | 0.3118 | 90 |
| JNK3 | 0.0907 | 0.0521 | 0.0841 | 0.0857 | 0.0861 | 87 |
| Condition | METEOR | Tag onset (%) | Answer words | Steps |
| Matched Z (main run) | 0.1558 | 94.5 | 123.2 | 0 |
| X-only (main run) | 0.0610 | 0.0 | 16.7 | 5 |
| Matched Z (follow-up) | 0.1507 | 94.0 | 120.5 | 0 |
| X-only (follow-up) | 0.0689 | 0.0 | 17.7 | 5 |
| X-only + hard prompt | 0.1157 | 0.0 | 41.6 | 1 |
| Task | Change to donor | 95% CI |
|---|---|---|
| ChEBI-20 (METEOR) | -0.0006 | [-0.0060, +0.0049] |
| QED | +0.0011 | [-0.0007, +0.0040] |
| LogP | +0.0010 | [-0.0007, +0.0031] |
| Solubility | +0.0005 | [-0.0025, +0.0038] |
| DRD2 | -0.0014 | [-0.0047, +0.0013] |
| JNK3 | +0.0008 | [-0.0007, +0.0025] |
| Task | Matched | Fixed | Relative (%) | Identity (%) | Change [95% CI] |
|---|---|---|---|---|---|
| ChEBI-20 | 0.1507 | 0.1522 | 100.98 | 14.5 | +0.0015 [-0.0039, +0.0069] |
| QED | 0.1870 | 0.1872 | 100.10 | 97.0 | +0.0002 [-0.0007, +0.0014] |
| LogP | 1.3761 | 1.3640 | 99.12 | 92.0 | -0.0121 [-0.0601, +0.0323] |
| Solubility | 1.4772 | 1.5015 | 101.64 | 88.0 | +0.0243 [-0.0238, +0.0904] |
| DRD2 | 0.3082 | 0.3064 | 99.43 | 87.0 | -0.0017 [-0.0094, +0.0048] |
| JNK3 | 0.0907 | 0.0877 | 96.66 | 87.0 | -0.0030 [-0.0101, +0.0042] |
| Budget | Condition | METEOR | Tag onset (%) | Steps (%) |
|---|---|---|---|---|
| 0 | Matched | 0.0724 | 0.00 | 70.62 |
| 2 | Matched | 0.0611 | 0.00 | 100.00 |
| 2 | Fixed | 0.0630 | 0.00 | 100.00 |
| 4 | Matched | 0.1384 | 86.25 | 4.38 |
| 4 | Fixed | 0.1379 | 87.50 | 7.50 |
| 6 | Matched | 0.1403 | 99.38 | 0.00 |
| Task | Positions | Score | No explicit steps (%) | ||
|---|---|---|---|---|---|
| Matched | Fixed | Matched | Fixed | ||
| QED | 0 | 0.2104 | – | 17.0 | – |
| 2 | 0.2332 | 0.2215 | 0.0 | 0.0 | |
| 4 | 0.2281 | 0.2324 | 6.0 | 3.0 | |
| 6 | 0.1938 | 0.1827 | 100.0 | 100.0 | |
| 10 | 0.1916 | 0.1856 | 100.0 | 100.0 | |
| Task | Matched Z | Fixed Z | X-only | |||
|---|---|---|---|---|---|---|
| Score | No steps (%) | Score | No steps (%) | Score | No steps (%) | |
| QED | 0.2049 | 100.0 | 0.2015 | 100.0 | 0.2049 | 0.0 |
| LogP | 1.3210 | 100.0 | 1.3229 | 100.0 | 1.0593 | 0.0 |
| Solubility | 1.5410 | 100.0 | 1.5697 | 100.0 | 1.1432 | 0.0 |
| DRD2 | 0.2982 | 100.0 | 0.2949 | 100.0 | 0.2031 | 0.0 |
| JNK3 | 0.0971 | 100.0 | 0.0947 | 100.0 | 0.0380 | 0.0 |
| Task | Paired Matched | Gaussian mean | Relative (%) | SD (pp) |
|---|---|---|---|---|
| ChEBI-20 | 0.1558 | 0.1544 | 99.0 | 1.1 |
| QED | 0.1849 | 0.1865 | 100.8 | 1.3 |
| LogP | 1.3930 | 1.3702 | 98.4 | 1.1 |
| Solubility | 1.4801 | 1.4878 | 100.5 | 2.8 |
| DRD2 | 0.3104 | 0.3025 | 97.5 | 1.4 |
| JNK3 | 0.0897 | 0.0882 | 98.4 | 2.9 |
| (a) Molecular description: relative score SD (%) | ||||
|---|---|---|---|---|
| Task | ||||
| ChEBI-20 | 100.0 0.5 | 99.1 0.9 | 92.7 1.3 | 61.4 1.8 |
| Recipe | Task | Condition | Matched | Score | Change [95% CI] | Identity (%) |
|---|---|---|---|---|---|---|
| Curriculum | Description | Swapped Z | 0.5727 | 0.5703 | -0.0024 [-0.0095, +0.0044] | 75.0 |
| Curriculum | Description | Mean Z | 0.5727 | 0.5693 | -0.0034 [-0.0106, +0.0036] | 79.5 |
| Curriculum | Description | Soft prompting | 0.5727 | 0.5769 | +0.0041 [-0.0079, +0.0166] | 44.0 |
| Curriculum | Description | X-only | 0.5727 | 0.5777 | +0.0049 [-0.0048, +0.0152] | 51.5 |
| Direct | Description | Swapped Z | 0.5739 | 0.5751 | +0.0011 [-0.0040, +0.0065] | 79.5 |
| Direct | Description | Mean Z | 0.5739 | 0.5720 | -0.0019 [-0.0086, +0.0040] | 81.5 |
| Description | Reaction | |||||
|---|---|---|---|---|---|---|
| Model | Matched | X-only | Zero Z | Matched | X-only | Zero Z |
| Curr. / Latent reasoning | 0.5727 | 0.5777 | 0.5694 | 77.0 | 77.5 | 78.0 |
| Curr. / Soft prompting | 0.5769 | 0.5739 | 0.5728 | 78.0 | 78.0 | 78.5 |
| Direct / Latent reasoning | 0.5739 | 0.5670 | 0.5751 | 77.0 | 78.5 | 78.0 |
| Direct / Soft prompting | 0.5733 | 0.5723 | 0.5745 | 77.5 | 78.0 | 78.0 |
| Representation / property | Size-only | Combined | [95% CI] |
|---|---|---|---|
| Z mean / MW | 0.9838 | 0.9834 | -0.0004 [-0.0017, +0.0004] |
| Z mean / logP | 0.6393 | 0.7833 | +0.1440 [+0.0473, +0.2575] |
| Z mean / TPSA | 0.8189 | 0.9083 | +0.0894 [+0.0519, +0.1580] |
| Z mean / Rings | 0.4715 | 0.8628 | +0.3913 [+0.3012, +0.5163] |
| H0 mean / MW | 0.9838 | 0.9839 | +0.0001 [-0.0020, +0.0019] |
| H0 mean / logP | 0.6393 | 0.8514 | +0.2121 [+0.1018, +0.3530] |
| Model | Control | MW | logP | TPSA | Rings |
|---|---|---|---|---|---|
| LC | linear | -0.0004 | +0.1440 [+0.0473, +0.2575] | +0.0894 [+0.0519, +0.1580] | +0.3913 [+0.3012, +0.5163] |
| LC | quadratic | -0.0004 | +0.1376 [+0.0600, +0.2400] | +0.1055 [+0.0488, +0.2191] | +0.3660 [+0.2102, +0.6414] |
| Curr. | linear | +0.0022 | +0.2291 [+0.1201, +0.3680] | +0.1304 [+0.0846, +0.2072] | +0.4577 [+0.3661, +0.5855] |
| Curr. | quadratic | +0.0028 | +0.1950 [+0.1245, +0.2870] | +0.1370 [+0.0817, +0.2486] | +0.4614 [+0.2811, +0.8030] |
| Direct | linear | +0.0012 | +0.2315 [+0.1144, +0.3702] | +0.1266 [+0.0804, +0.2014] | +0.4564 [+0.3633, +0.5868] |
| Direct | quadratic | +0.0014 | +0.2212 [+0.1234, +0.3480] | +0.1446 [+0.0794, +0.2816] | +0.4667 [+0.2736, +0.8312] |
| Representation | Macro AP [95% CI] | Shuffled AP |
|---|---|---|
| Size only | 0.3417 [0.3240, 0.3735] | 0.2516 |
| H0 mean | 0.7119 [0.6821, 0.7520] | 0.2743 |
| Z mean | 0.5710 [0.5476, 0.6111] | 0.2729 |
| Model | Task | Molecule (%) | Shared step (%) | Interaction (%) |
|---|---|---|---|---|
| LatentChem | Description | 0.799 | 96.234 | 2.966 |
| LatentChem | QED | 0.242 | 98.592 | 1.166 |
| LatentChem | LogP | 0.305 | 98.691 | 1.005 |
| LatentChem | Solubility | 0.198 | 98.849 | 0.953 |
| LatentChem | DRD2 | 0.230 | 98.609 | 1.161 |
| LatentChem | JNK3 | 0.202 | 98.839 | 0.959 |
| Model | Task | Median [95% CI] | Range | Identity |
| LatentChem | Description | 0.0767 | 0.0336–0.2248 | 16.5% |
| LatentChem | QED | 0.0435 | 0.0248–0.1582 | 93.0% |
| LatentChem | LogP | 0.0448 | 0.0266–0.1178 | 92.0% |
| LatentChem | Solubility | 0.0384 | 0.0218–0.2058 | 90.0% |
| LatentChem | DRD2 | 0.0464 | 0.0198–0.1467 | 90.0% |
| LatentChem | JNK3 | 0.0401 | 0.0198–0.1296 | 87.0% |
| Model | Task | Position 1 | Position 4 | Final |
|---|---|---|---|---|
| LatentChem | Description | 0.1751 | 0.0229 | 0.0418 |
| LatentChem | DRD2 | 0.1078 | 0.0142 | 0.0263 |
| LatentChem | LogP | 0.1038 | 0.0168 | 0.0304 |
| LatentChem | QED | 0.1078 | 0.0141 | 0.0283 |
| LatentChem | Solubility | 0.0957 | 0.0132 | 0.0293 |
| LatentChem | GSK3- | 0.1073 | 0.0148 | 0.0240 |