TL;DR
When neural networks predict chemical reactions, you might assume they move molecules along a straight path from input to output in their internal representation space. By building an auditable architecture called UniRxnAxis, the authors discover a surprising geometric twist: the vector pointing directly toward the ground-truth answer barely helps the decoder, while the orthogonal detour—dubbed emergent steering—carries almost all the actionable instructions for making and breaking chemical bonds.
What Problem Does This Paper Address?
Machine learning models have gotten remarkably good at chemical translation—predicting products from reactants (forward prediction) or figuring out which ingredients make a desired molecule (retrosynthesis). Yet bench chemists remain hesitant to trust them.
Why? Because getting the final answer right ("endpoint accuracy") doesn't tell you how the model arrived there or why it fails when it stumbles. Standard interpretability tools, like attention weights or feature attributions, highlight which input atoms the model looked at, rather than auditing the internal transformation itself. To earn trust in the lab, models need internal "audit handles" that expose how they decide which chemical bonds to break or form.
Methods
To peek inside the black box, the authors needed a coordinate system where inputs, internal updates, and ground-truth targets all live on equal footing. They built UniRxnAxis, a unified graph-based architecture that handles both forward and retrosynthesis tasks simultaneously using a direction token.
While standard encoder-decoder setups are common, UniRxnAxis introduces two key design choices to enable auditing:
- Residual Structural Decoding: Since most chemical reactions leave the bulk of a molecule's scaffold intact, the decoder takes the original source molecule ($S_0$) plus the learned latent update ($\Delta z = S_1 - S_0$) and predicts sparse bond edits rather than hallucinating a whole new graph from scratch.
- Dual Endpoint Constraints & Decomposition: During training, the model optimizes both a prediction loss (getting the bonds right) and an alignment loss (pulling the updated state $S_1$ toward the encoded ground-truth target $z_{\text{target}}$).
Because $S_0$, $S_1$, and $z_{\text{target}}$ share the same encoder space, the authors can perform high-school vector geometry during post-hoc audits. They define a reference axis $g = z_{\text{target}} - S_0$ pointing straight to the answer, and decompose the model's actual move $\Delta z$ into two parts:
- Endpoint-parallel ($\Delta z_{\parallel}$): Motion directly toward the encoded target.
- Emergent steering ($\Delta z_{\perp}$): The residual motion completely orthogonal to the target axis.
Datasets
- USPTO-50K: A standard benchmark of 50,000 chemical reactions (with 10 reaction classes), used for training, benchmarking accuracy, and running all latent-space audits.
- USPTO-MIT: A larger reaction benchmark used to test whether the observed latent geometry transfers to another dataset.
- No new benchmarks were introduced.
Key Insights and Ideas
Directional decomposition in latent space (left) and the dramatic accuracy difference between parallel and orthogonal components in retrosynthesis (right).
- Going straight to the target fails; the detour does the work: Intuitively, moving directly toward the encoded answer ($\Delta z_{\parallel}$) should solve the task. Instead, decoding from that parallel state collapses. Meanwhile, feeding the decoder only the orthogonal detour ($S_0 + \Delta z_{\perp}$) recovers nearly the entire performance of the model!
- Coarse program vs. fine scalpel: Why does this happen? Probes show that $\Delta z_{\parallel}$ acts as a coarse, reaction-class-level pointer toward the general reaction center, which inadvertently boosts false-positive competing bonds. Emergent steering ($\Delta z_{\perp}$) acts like a scalpel: it is instance-specific, pushes the exact target bonds across decision thresholds, and actively suppresses wrong competitors.
- Not a neural network parlor trick: When the authors replaced $\Delta z_{\perp}$ with norm-matched random vectors, class averages, or shuffled updates from similar reactions, accuracy collapsed. The orthogonal vector contains bespoke chemical instructions for that specific molecule.
- Separating symptoms from root causes: By tracking trajectories from $S_0 \to S_{\text{mid}} \to S_1$, the authors built a two-level failure taxonomy. Remarkably, 41.3% of errors that look like local bond-selection mistakes at the output actually originated upstream as bad coarse "program" states before steering even began.
Key Results
- Competitive Substrate: Jointly trained UniRxnAxis achieves 64.4% Top-1 retrosynthesis accuracy (class unknown) and 88.3% forward accuracy on USPTO-50K, outperforming several strong graph and transformer baselines.
- The Orthogonal Asymmetry: In retrosynthesis, the full update $S_1$ achieves 64.4% accuracy. Decoding the endpoint-parallel state ($S_{\text{mid}}$) drops accuracy to 10.0%, whereas the orthogonal residual state ($S_0 + \Delta z_{\perp}$) hits 63.0%.
- Cross-Architecture Reproduction: Adding endpoint alignment to an existing autoregressive model (Graph2Edits) reproduced the exact same ordering: predicting the second bond edit succeeded 48.79% of the time from the residual state versus 16.58% from the parallel state.
- Dosage Headroom: Scaling the magnitude of $\Delta z_{\perp}$ by a scalar $\alpha$ revealed 247 "near-miss" test failures where the right chemistry was present, just slightly under- or over-dosed (an oracle ceiling of 69.34% accuracy).
Limitations and Future Work
- Audit-time only: Computing $\Delta z_{\perp}$ requires knowing $z_{\text{target}}$—which means you need the ground-truth answer. Thus, emergent steering is strictly a diagnostic stethoscope for understanding and debugging models, not a knob you can turn during live inference on unknown molecules.
- Reference-axis sensitivity: Because the decoder is trained on realized updates ($S_1 - S_0$) rather than raw target encodings ($z_{\text{target}}$, which itself only decodes at 11.1%), part of the massive performance gap comes from interface mismatch. Retraining with different alignment weights or calibrating the decoder shrinks the gap (e.g., down to +8.27 points at $\lambda_{\text{align}} = 0.01$), though the residual advantage never flips.
- Scope: Executable decoding audits were limited to deterministic Top-1 retrosynthesis on USPTO-50K across two architectures, and the failure taxonomy relies on automated proxies rather than human-chemist validation. Future work could explore turning these diagnostic insights into inference-time controls without needing ground-truth targets.
Summary updated