Learning Transferable Reaction Mechanisms from Visual Chemical Knowledge
Organizations: The Hong Kong University of Science and Technology · The Chinese University of Hong Kong · University of Edinburgh
Abstract
Reaction mechanisms describe the step-by-step transformations underlying chemical reactions and are central to reaction analysis and synthesis. Learning-based models have achieved strong performance on established mechanism-prediction benchmarks, but transferring them to unseen chemistry remains challenging. Such transfer is difficult because familiar mechanisms must be applied to unfamiliar molecular structures, and some target mechanisms may be poorly covered by the training data. To address these challenges, we introduce MechaVLM, a visual framework that combines transferable chemical representations with external mechanistic knowledge. It learns reusable visual features through multiscale chemical grounding and cross-rendering contrastive learning. For open-book prediction, MechaVLM retrieves a fixed set of precedents from 70,384 literature mechanism figures and re-reads relevant visual evidence as the molecular state evolves, directly using the figures without symbolic mechanism parsing. An atom-indexed language decoder then recursively generates executable electron edits to construct the complete mechanism. We further introduce MechBench, a challenging literature-derived benchmark with 2,184 mechanisms and 9,146 elementary steps. Across cross-dataset and literature-derived benchmarks, MechaVLM establishes strong zero-shot mechanism prediction. Its closed-book model alone improves Step/Pathway Top-1 by 12.50/13.93 percentage points on FlowER-to-ReactMech transfer, while external visual precedents unlock further gains on challenging OOD reactions. The learned representation also generalizes beyond mechanism prediction to atom mapping and reaction center prediction.
Figures & tables
| FlowER | ReactMech | ||||||||
| Step | Pathway | Step | Pathway | ||||||
| Source | Method | Top-1 | Top-5 | Top-1 | Top-5 | Top-1 | Top-5 | Top-1 | Top-5 |
| FlowER | NERF ( Bi et al., 2021 ) | 67.11 | 72.60 | 65.51 | 75.58 | 33.32 | 43.12 | 14.93 | 36.32 |
| Graph2SMILES ( Tu and Coley, 2022 ) | 89.09 | 98.66 | 92.51 | 97.76 | 42.71 | 55.00 | 31.84 | 61.19 | |
| Graph2SMILES+H ( Tu and Coley, 2022 ) | 87.39 | 97.67 | 89.22 | 96.19 | 40.42 | 52.37 | 29.67 | 59.74 | |
| MT ( Schwaller et al., 2019 ) | 88.75 | 98.92 | 88.31 | 97.59 | 44.52 | 52.45 | 39.30 | 58.21 | |
| FukuyamaBench | MechBench | ||||||||
| Step | Pathway | Step | Pathway | ||||||
| Source | Method | Top-1 | Top-5 | Top-1 | Top-5 | Top-1 | Top-5 | Top-1 | Top-5 |
| ReactMech | Closed-book | ||||||||
| NERF ( Bi et al., 2021 ) | 6.56 | 8.86 | 0.31 | 0.31 | 0.72 | 1.20 | 0.14 | 0.18 | |
| Graph2SMILES ( Tu and Coley, 2022 ) | 2.35 | 4.01 | 0.31 | 0.31 | 0.14 | 0.36 | 0.00 | 0.05 | |
| Molecular Transformer ( Schwaller et al., 2019 ) | 3.41 | 7.51 | 0.00 | 0.63 | 0.39 | 1.07 | 0.09 | 0.14 | |
| Method | USPTO -50K (2K) | Schneider | Jaworski |
|---|---|---|---|
| Specialized atom-mapping methods | |||
| Indigo ( EPAM Systems, 2026 ) | 30.35 | 38.98 | 15.93 |
| G.Mapper ( Nugmanov et al., 2022 ) | 79.40 | 92.20 | 80.40 |
| RxnMapper ( Schwaller et al., 2021 ) | 81.05 | 93.12 | 83.15 |
| LocalMapper ( Chen et al., 2024 ) | – | 90.08 | 86.98 |
| Vision-language models | |||
| Method | USPTO -50K (2K) | Schneider | Jaworski |
|---|---|---|---|
| Specialized atom-mapping methods | |||
| Indigo ( EPAM Systems, 2026 ) | 30.35 | 38.98 | 15.93 |
| G.Mapper ( Nugmanov et al., 2022 ) | 79.40 | 92.20 | 80.40 |
| RxnMapper ( Schwaller et al., 2021 ) | 81.05 | 93.12 | 83.15 |
| LocalMapper ( Chen et al., 2024 ) | – | 90.08 | 86.98 |
| Vision-language models | |||
| Class Unknown | Class Known | |||
| Method | Top-1 | Top-5 | Top-1 | Top-5 |
| Specialized reaction-center methods | ||||
| RetroXpert ( Yan et al., 2020 ) | 64.9 | – | 86.0 | – |
| G2Gs ( Shi et al., 2020 ) | 75.8 | 85.6 | 90.2 | 95.0 |
| GDiffRetro ( Sun et al., 2025 ) | 86.2 | 98.8 | – | – |
| Vision-language models | ||||
| FlowER (ID) | ReactMech | FukuyamaBench | MechBench | |||||
| Variant | Step | Path. | Step | Path. | Step | Path. | Step | Path. |
| Input modality | ||||||||
| SMILES input | 87.85 | 90.92 | 43.38 | 23.88 | 10.67 | 0.63 | 4.31 | 0.18 |
| Graph input | 88.35 | 91.36 | 45.87 | 25.91 | 12.32 | 0.94 | 5.08 | 0.32 |
| Closed-book: transferable representation learning | ||||||||
| Mechanism SFT only (image input) | 88.41 | 91.96 | 52.32 | 32.47 | 15.87 | 1.57 | 6.82 | 0.60 |
| ReactMech | FukuyamaBench | MechBench | ||||
|---|---|---|---|---|---|---|
| Retriever | Step | Path. | Step | Path. | Step | Path. |
| Random | 68.52 | 52.41 | 21.83 | 5.64 | 9.38 | 1.47 |
| CLIP image similarity ( Radford et al., 2021 ) | 70.74 | 54.63 | 23.44 | 6.27 | 10.17 | 1.60 |
| OCSR structure similarity ( Fan et al., 2024 ) | 71.08 | 55.12 | 23.74 | 5.96 | 10.37 | 1.65 |
| Global similarity | 72.93 | 56.76 | 24.89 | 6.90 | 11.31 | 2.15 |
| Late interaction | 74.41 | 58.92 | 25.99 | 7.52 | 12.13 | 2.15 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Benchmark | Source | # Publications | # Pathways | # Steps |
|---|---|---|---|---|
| FukuyamaBench | Mechanism book | – | 319 | 1,997 |
| MechBench | Journal literature | 417 | 2,184 | 9,146 |
| Category | # | Canonical vocabulary |
|---|---|---|
| Unsaturated / aromatic | 4 | alkene, alkyne, conjugated diene, aromatic ring |
| Oxygen-containing | 8 | alcohol, phenol, ether, epoxide, peroxide, acetal, hemiacetal, silyl ether |
| Carbonyl / acyl | 15 | aldehyde, ketone, carboxylic acid, ester, lactone, amide, lactam, imide, anhydride, acyl fluoride, acyl chloride, acyl bromide, carbonate, carbamate, urea |
| Nitrogen-containing | 13 | primary amine, secondary amine, tertiary amine, quaternary ammonium, imine, enamine, oxime, nitrile, nitro, azo, diazonium, azide, isocyanate |
| Sulfur-containing | 9 | thiol, thioether, disulfide, sulfoxide, sulfone, sulfonamide, sulfonate ester, thioester, sulfonyl halide |
| Boron-containing | 3 | boronic acid, boronate ester, organotrifluoroborate |
| Conservation | ||||
|---|---|---|---|---|
| Method | Validity | Atom | Proton | Electron |
| Graph2SMILES Tu and Coley (2022) | 76.31 | 30.72 | 18.67 | 17.19 |
| Graph2SMILES+H Tu and Coley (2022) | 78.80 | 27.66 | 19.73 | 19.02 |
| Molecular Transformer Schwaller et al. (2019) | 70.16 | 39.11 | 33.69 | 33.04 |
| FlowER Joung et al. (2025) | 94.94 | 94.94 | 94.94 | 94.94 |
| MechaVLM | 95.12 | 95.12 | 95.12 | 95.12 |
| FlowER (ID) | ReactMech | FukuyamaBench | MechBench | |||||
|---|---|---|---|---|---|---|---|---|
| Grounding supervision | Step | Path. | Step | Path. | Step | Path. | Step | Path. |
| None | 88.41 | 91.96 | 52.32 | 32.47 | 15.87 | 1.57 | 6.82 | 0.60 |
| Atom | 88.86 | 92.51 | 57.18 | 37.06 | 17.38 | 2.19 | 7.54 | 0.78 |
| Atom + Bond | 89.31 | 93.08 | 60.74 | 42.26 | 18.63 | 3.13 | 8.16 | 0.96 |
| Atom + Bond + Functional Group | 89.63 | 93.42 | 62.74 | 45.58 | 19.58 | 3.76 | 8.58 | 1.10 |
| ReactMech | FukuyamaBench | MechBench | ||||
|---|---|---|---|---|---|---|
| Retrieval strategy | Step | Path. | Step | Path. | Step | Path. |
| Re-retrieve at every step | 74.68 | 58.93 | 25.87 | 7.47 | 12.08 | 2.15 |
| Reaction-level retrieval (ours) | 76.21 | 61.52 | 27.14 | 8.15 | 12.72 | 2.52 |
| FukuyamaBench | MechBench | ||||
|---|---|---|---|---|---|
| Bank fraction | # Figures | Step | Path. | Step | Path. |
| 0 | 22.28 | 5.96 | 9.59 | 1.56 | |
| 17,596 | 24.29 | 6.58 | 10.74 | 1.88 | |
| 35,192 | 25.74 | 7.52 | 11.58 | 2.15 | |
| 70,384 | 27.14 | 8.15 | 12.72 | 2.52 | |
| Component | Qwen2.5-VL-3B |
|---|---|
| Image Encoder | |
| Architecture | Vision Transformer |
| Layers | 32 |
| Hidden Size | 1280 |
| Attention Heads | 16 |
| Patch Size | 14 |