Mechanism-Level Chemical Reaction Simulation with Electron Bookkeeping Transformer
Sarah Cao, Shitong Luo, Connor W. Coley
NeurIPS 2026
TL;DR. Electron Bookkeeping Transformer generates chemical reaction mechanisms by autoregressively moving discrete electron tokens while conserving atoms and electrons by construction.
Abstract. Modeling chemical reaction mechanisms is central to understanding and predicting chemical reactivity. We present Electron Bookkeeping Transformer (Bookkeeper), a data-driven model that simulates chemical reactions at mechanistic resolution by generating electron movement trajectories. Following the symbolic arrow-pushing formalism in chemistry, Bookkeeper explicitly models each electron as a token and predicts its movement sequentially, ensuring mass and charge conservation during both elementary step and reaction pathway predictions by construction. On reaction-size-balanced test sets, Bookkeeper improves top-1 elementary-step accuracy and top-1 to top-5 pathway recovery over FlowER. On the entire test set, it achieves higher elementary-step top-1 accuracy but lower pathway accuracy than FlowER. Bookkeeper also samples elementary steps substantially faster, adapts to several unseen reaction types with minimal fine-tuning, and generates candidate chemical transformations for further screening. These results suggest that explicit electron bookkeeping is a useful framework for virtually screening chemical reactions across diverse reagents, validating computer-assisted synthesis planning predictions, and providing mechanistic interpretations of reactivity.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper introduces an auto-regressive transformer architecture for generating reaction mechanisms as a sequence of electron movements.
The originality is limited compared to FlowER. It can be conceptualized as a discretized variant that involves several training improvements. The system might achieve a different accuracy-diversity tradeoff compared to FlowER (as visible in the top1 vs top10 accuracy), as proposed by the Authors.
The experiments cover interesting settings beyond just in-distribution prediction accuracy: out of distribution generalization, discovery of novel reactions. The application of the model to suggesting novel transformations is very timely and promising.
The rebuttal has addressed all issues other than the limited novelty.
All in all, I think the paper clears the bar. It it is my pleasure to recommend accepting the paper.
Final justification
Included in the meta-review.
- Final justification
- Included in the meta-review.
Read meta-review
Meta-review
The paper introduces an auto-regressive transformer architecture for generating reaction mechanisms as a sequence of electron movements.
The originality is limited compared to FlowER. It can be conceptualized as a discretized variant that involves several training improvements. The system might achieve a different accuracy-diversity tradeoff compared to FlowER (as visible in the top1 vs top10 accuracy), as proposed by the Authors.
The experiments cover interesting settings beyond just in-distribution prediction accuracy: out of distribution generalization, discovery of novel reactions. The application of the model to suggesting novel transformations is very timely and promising.
The rebuttal has addressed all issues other than the limited novelty.
All in all, I think the paper clears the bar. It it is my pleasure to recommend accepting the paper.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work introduces a framework that simulates chemical mechanisms by modeling electron movements as discrete tokens over fixed atom sets, enforcing mass and charge conservation by construction. The model autoregressively predicts arrow-pushing actions through a three-stage factorization, trained with shuffled-prefix supervision to handle orderless elementary steps. The model surpasses prior flow-matching and LLM baselines in accuracy and speed, adapts to out-of-distribution reactions with minimal data, and exhibits chemically meaningful regioselectivity and stoichiometric robustness.
Strengths and weaknesses
Strengths:
- The electron-bookkeeping representation is highly original, tokenizing individual electrons as discrete entities to model reaction mechanisms as interpretable arrow-pushing trajectories rather than black-box endpoint predictions.
- The three-stage autoregressive decomposition and shuffled-prefix training with multi-positive supervision are well-motivated architectural choices that directly address the simultaneous, order-agnostic nature of electron movements in elementary steps. These designs are convincingly validated by strong accuracy and efficiency gains over FlowER and MechSMILES.
Weaknesses:
- The paper lacks architectural ablations to disentangle whether the performance gains stem from the discrete electron-bookkeeping representation or from the specific encoder-based iterative decision architecture. Without comparing against a standard decoder-only AR transformer using the same representation, the necessity of the proposed design remains unclear.
- I am not a chemistry expert, but I suspect that representing reactions purely through electron movements may not cover all possible reaction types or intermediate states. For example, processes involving excited states, stereochemistry, or non-covalent interactions might not fit naturally into this framework. However, within the scope the authors actually study, this limitation seems minor.
- The paper does not compare the final predicted products of BOOKKEEPER against state-of-the-art forward prediction models. While mechanism-level prediction is a different task, the ultimate practical utility of a mechanistic model depends on whether it can recover the correct reaction outcome at least as reliably as endpoint models. Without this comparison, it is unclear whether the proposed discrete electron representation provides any advantage in terms of final product accuracy, or whether the added mechanistic fidelity comes at the cost of reduced endpoint performance. A top-k product accuracy comparison on a shared test set would strengthen the experimental claims. I would be willing to raise my overall score if the authors can address this concern by including a comparison of final product accuracy against standard forward-prediction baselines in the revised version, provided that the results remain reasonably competitive.
Questions
- Did the authors conduct ablations to isolate the contribution of the encoder-based architecture from the electron-based representation itself? Specifically, how would a standard decoder-only autoregressive transformer perform if trained on the same tokenized electron-bag states?
- The BOOKKEEPER framework is highly novel, and many of its architectural choices such as the three-stage autoregressive factorization, shuffled-prefix training, and electron-token copy indices, are non-obvious in a large design space. I would appreciate more transparency in the appendix about the development trajectory: were alternative formulations (e.g., parallel arrow generation within a single elementary step, joint source-destination prediction, or omitting electron copy indices) explored and abandoned? If so, which variants failed and why did they suffer from training instability, severe order bias, or chemical validity violations? A broader discussion of these negative results would help the community distinguish essential innovations from incidental implementation details.
Limitations
Yes. The authors mention data coverage limitations, but they do not discuss whether their electron-based representation itself has structural boundaries. I suggest briefly noting that the method is primarily designed for ground-state covalent organic chemistry and may not directly model photochemistry or 3D stereochemical effects. See also the weakness above.
Final justification
This work is technically solid, highly novel, and the modeling approach is well-motivated and chemically reasonable. During my initial review, my main concern was the absence of a forward prediction accuracy comparison against other models, which determines practical utility. However, this concern has been fully resolved. The remaining concerns, based on the authors' rebuttal, can be easily addressed in the final version. Therefore, all of my concerns have been completely resolved. I believe this work will be influential and serve as a valuable reference for future research in this area.
Formatting concerns
- Some figures appear to exceed the text width, causing margin violations.
- The PDF rendering is noticeably slow and stutters when scrolling through pages containing figures, likely due to high-resolution images or large file size; please optimize the figure assets.
- The caption of Figure 4 is placed too close to the body text below it, reducing readability.
7 comments
Rebuttal
Thank you for your insightful comments, suggestions, and ideas for both our work and the community! We appreciate your encouragement of the novelty and value of our model.
Because the response period doesn't allow a revised manuscript or supplement, we provide the clarification and new results directly here. If accepted, we will add the complete protocol, ablations, negative-result discussion, and scope statement to the camera-ready version.
[W1] Bookkeeper architecture is tailored for electron arrow prediction
Bookkeeper is autoregressive over electron movements as the model encodes the complete current atom/electron state, selects an electron and predicts its destination, and the selected move is applied to the state before predicting the next move. Thus, in our construction, the updated chemical state already contains the consequences of all previous arrows, so there is no need for a separate decoder to reconstruct an extra textual history.
We believe this formulation is particularly natural for chemistry mechanisms. Molecules can be seen as electrons localized among a group of atoms, and electrons and atoms don’t have an intrinsic left-to-right order. Bookkeeper therefore assigns them individual embeddings and operates directly on this structured state, rather than predicting a fixed serialized mechanism string from the initial reactants.
A decoder-only alternative is possible but would require defining an arbitrary order for electron movements within an elementary step. This is not as scientifically accurate because, chemically, all arrows within an elementary step are considered simultaneous, and if they are not, they would belong to separate elementary steps. For example, in a concerted reaction, two electron movements may be written in either order while describing the same net transformation; if there is an order to them, the reaction would then be classified as with different rate laws and properties. Without augmentation or order-invariant training, a causal decoder can assign different probabilities to chemically equivalent serializations. Thus, we believe the current architecture is scientifically meaningful and inherent to our task, rather than mathematically mandated for performance. We think Bookkeeper’s gains come from this specific combination of representation and suitable architecture. Of course, this doesn’t mean encoder-based state policies are the only viable formulation, and it’d be interesting to consider a matched decoder-only model using the same representation as a valuable control.
[W2] Representing reactions through electron movement
Electron movement (“arrow-pushing”) is the standard symbolic language chemists use to explain the formation and breaking of bonds, especially in organic and organometallic chemistry, including radical reactions or other situations where electrons become unpaired. Indeed, electron arrows are not literal quantum-mechanical trajectories and cannot represent excited electronic states, which require quantum chemical calculations of orbital energies and interactions.
Stereochemical and three-dimensional effects are also not explicitly encoded because of the lack of extensive stereochemistry data, but they would make for interesting few-shot learning projects. Non-covalent interactions like solvation can influence reactivity and selectivity, but they are not chemical transformations (no chemical bond breakage or formation), and Bookkeeper accounts for them indirectly through including solvent molecules in the prediction. We will state these distinctions more explicitly in the revision.
[W3] Product accuracy against standard forward-prediction baselines
We agree that comparing Bookkeeper to endpoint-only models optimized would further contextualize its performance. We therefore evaluate Bookkeeper and forward predictors Graph2SMILES (Tu & Coley, 2022) and Chemformer (Westerlund, et al., 2024) on the same complexity-balanced test dataset adapted from our test set. Since G2S and Chemformer don’t explicitly predict side products, we heuristically extract the major product from each reaction in the test set and only compare top-k accuracy on the major product. All invalid predicted SMILES and failed predictions remain in the denominator.
| Bookkeeper | Chemformer | G2S | ||||
|---|---|---|---|---|---|---|
| Top-k | Accuracy (%) | SD (%) | Accuracy (%) | SD (%) | Accuracy (%) | SD (%) |
| 1 | 87.8 | 3.9 | 79.7 | 3.2 | 64.4 | 3.9 |
| 2 | 92.4 | 2.7 | 83.1 | 3.1 | 77.8 | 2.7 |
| 3 | 93.4 | 2.4 | 84.5 | 2.4 | 83.0 | 2.4 |
| 4 | 93.8 | 2.3 | 84.9 | 2.2 | 87.4 | 2.3 |
| 5 | 93.8 | 2.3 | 85.3 | 2.0 | 89.4 | 2.1 |
| 6 | 94.4 | 2.1 | 85.9 | 2.0 | 90.4 | 2.1 |
| 7 | 94.6 | 2.1 | 86.0 | 2.0 | 90.3 | 2.1 |
| 8 | 94.6 | 2.1 | 86.0 | 2.0 | 90.3 | 2.1 |
| 9 | 94.7 | 2.1 | 86.0 | 2.0 | 90.3 | 2.1 |
| 10 | 94.7 | 2.1 | 86.0 | 2.0 | 90.3 | 2.1 |
These results show that Bookkeeper is indeed competitive even when evaluated only on the major-product task, which the endpoint baselines are designed for. Thus, the mechanistic and mass-conserving formulation does not trade away endpoint performance. Instead, it additionally enables complete reaction-outcome prediction, including side products that standard major-product predictors do not model. We additionally note that if we evaluate under the original Bookkeeper criteria of accurately predicting all final products, G2S and Chemformer achieve close-to-zero accuracy because their formulations don’t explicitly account for side products, and thus their outputs omit species besides major products. We will add this comparison in the revision and explicitly state the differing target definitions and evaluation protocol in the revision.
[Q1] Bookkeeper architecture
As noted in our response to W1, we decided on our current architecture because it is specifically aligned with the mechanism-generation task, whereas a decoder-only model would require introducing an arbitrary order for arrows in an elementary step. Although we didn’t train a matched decoder-only control because of time constraints, we expect it to be a viable baseline but likely less sample efficient because it must learn an arbitrary serialization of order-invariant electron movements. Its performance may depend strongly on the chosen arrow ordering and any permutation augmentation.
[Q2] Development process for the appendix
Thank you for suggesting we document key points in the development process! The major negative result is that we did explore using standard diffusion paradigms before converging on Bookkeeper. In this attempt, StepFeaturizer maps the initial electron bag directly to the complete post-step destination of every electron. A discrete denoising model then corrupts each destination coordinate and the move/stop flag for each electron, and predicts all electron destinations in parallel over 100 denoising iterations. We implemented 8- and 12-layer, 512-dimensional variants. This is essentially the parallel whole-step generation alternative you insightfully suggested.
However, we found that with the diffusion model, almost no electrons are predicted to move. We think it was because predicting independent per-electron identities (i.e., move/stop flag) can favor the easy no-move solution, and independently sampled destination coordinates can become inconsistent when combined into simultaneous arrows. This was the major significant negative result while developing Bookkeeper, and prompted us to move to sampling one source and its destination, updating the state exactly, and then predicting the next action again. Conscious of preserving arrow order invariance, we added shuffled-prefix training to prevent dependence on an arbitrary arrow order.
We included copy indices for electrons early on while developing the electron bag representation itself, as it was practical for randomly selecting one of the (usually) two electrons in a bond or lone pair and keeping track of the other. Without giving each electron a unique identifier such as the copy indices, it is hard to implement a model that tracks the movement of each individual electron.
Thank you again for being interested in the details of not only our current model, but the iterations beforehand! We will endeavor to elaborate on this in the appendix in the revision and do our best to present negative results for the community as well as the positive ones.
Thank you very much again for your time and comments, and for the opportunity to conduct meaningful ablations! Please let us know if you have any questions regarding them or any other part of the rebuttal or our work.
Thank you for the response. Most of my concerns are now well addressed.
A few remaining points before finalizing:
- Forward-prediction comparison: please clarify the settings. In particular, were the G2S/Chemformer baselines (re)trained or fine-tuned on the same training distribution as Bookkeeper, or evaluated with off-the-shelf checkpoints? A brief note on the "complexity-balanced" test set was obtained would also help interpretation.
- Gap between G2S and Chemformer: to my knowledge, these two models perform very comparably on standard benchmarks, so the large gap between them in your table is surprising. Please add some discussion of what might cause this discrepancy.
- Chemformer citation: the rebuttal cites "(Westerlund et al., 2024)", but to my knowledge Chemformer is a considerably earlier model. Please double-check the reference. Optionally, more recent forward predictors (e.g., ReactionT5v2) could be worth considering as additional baselines, though this is by no means required.
- Rating
- 3/6
- Confidence
- 5/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents BOOKKEEPER, an autoregressive transformer for mechanism-level chemical reaction simulation. It represents each valence electron as a discrete token and predicts electron movements sequentially according to the arrow-pushing formalism. By moving existing electrons over a fixed set of atoms, the model preserves mass and charge during elementary-step and reaction-pathway generation. The paper evaluates BOOKKEEPER on mechanistic step prediction, full pathway prediction, out-of-distribution reaction types, inference speed, and virtual reaction screening, reporting improved accuracy and efficiency over FlowER and MechSMILES.
Strengths and weaknesses
Strengths
(1) The paper tackles an important and timely problem: mechanism-level chemical reaction simulation, rather than only final-product prediction.
(2) The proposed discrete autoregressive electron-bookkeeping formulation is chemically intuitive and closely aligned with the arrow-pushing formalism, while preserving atoms and total electrons by construction.
(3) The experiments cover several relevant settings, including elementary-step prediction, full-pathway prediction, out-of-distribution adaptation, inference speed, and virtual reaction screening.
Weaknesses
(1) The comparison with FlowER appears somewhat overstated. FlowER achieves better top-10 full-pathway accuracy, so BOOKKEEPER does not uniformly outperform FlowER across all metrics.
(2) The reported top-(k) results may depend strongly on the inference protocol, including 64-sample generation, duplicate grouping, empirical-frequency ranking, and validity filtering. Based on my understanding, this protocol appears tailored to BOOKKEEPER and may not be fully consistent with the protocols used for the baselines.
(3) The inference-speed comparison may be unfair unless candidate budgets and top-(k) construction procedures are fully aligned across methods. A speed comparison under consistent inference settings is therefore necessary.
(4) The method relies on handcrafted inference-time validity checks and reverse-loop filtering, making the approach less purely end-to-end. This also weakens the claim that the proposed method avoids inference-time post-processing compared with FlowER.
(5) Scalability remains a concern because each valence electron is represented as a token and electron movements are generated autoregressively. This may become problematic for reactions involving a larger number of atoms or longer mechanistic pathways.
Questions
(1) Are BOOKKEEPER, FlowER, and MechSMILES evaluated under exactly matched candidate budgets, sampling counts, duplicate grouping, canonicalization, and top-k ranking protocols?
(2) Since BOOKKEEPER uses 64 stochastic samples and ranks predictions by empirical frequency, how sensitive are the reported top-k results to the number of samples and sampling temperature?
(3) The empirical-frequency ranking protocol is under-specified. The paper states that 64 sampled candidates are grouped and ranked by empirical frequency, but does not clearly define whether frequencies are computed before or after validity filtering, duplicate removal, and canonicalization. This makes the top-(k) evaluation difficult to interpret and may affect the fairness of comparison with FlowER and MechSMILES.
(4) Is the inference speed comparison measured per raw sample, per top-k candidate list, or at matched accuracy? Could the reported speed advantage change under matched top-k budgets?
(5) How much of the performance comes from the learned model versus handcrafted inference-time validity checks and reverse-loop filtering? This requires ablation studies.
Limitations
(1) Scalability issue: BOOKKEEPER represents each valence electron as a token and uses a transformer over atom/electron tokens, so the token count and attention cost may grow quickly for large reactant pools;
(2) Ad-hoc inference rules: Although mass/electron conservation is built in, chemical validity still relies on inference-time checks such as valence rules, even bonding-electron counts, and reverse-loop removal;
(3) The reported top-k results depend on 64 stochastic samples, duplicate grouping, canonicalization, and empirical-frequency ranking, so performance may be sensitive to decoding choices.
(4) Autoregressive inference cost: The model generates one electron movement at a time, so long mechanisms or high-sample top-k prediction may become expensive.
Final justification
After carefully considering the rebuttal, I retain the following concerns:
(1) Chemical and mechanistic validity. Bookkeeper guarantees global atom and electron conservation, but conservation alone does not ensure chemically valid states or physically faithful mechanisms. Its single-electron trajectories rely on non-unique source–destination matching and heuristic validity checks, leaving their mechanistic interpretation insufficiently justified.
(2) Limited methodological novelty. The method largely reformulates the electron-flow modeling principles of ELECTRO and FlowER as discrete autoregressive generation. The contributions of individual-electron tokenization and shuffled-prefix training are not adequately isolated through ablations.
(3) Unclear fairness of the FlowER comparison. The reported FlowER Top-1 pathway accuracy (42.7%) differs substantially from the 88.8% reported in the original paper. If the two evaluations use different pathway criteria or decoding procedures, their results are not directly comparable. This discrepancy remains unexplained and reduces confidence in the evaluation protocol.
For these reasons, this reviewer will maintain the current score and lean toward rejection.
Formatting concerns
N.A.
4 comments
Rebuttal
Thank you for the careful and technically focused review! We appreciate your recognition of the potential of mechanism-level simulation.
[W1] Top-10 accuracy phenomenon
We agree that our results indicate Bookkeeper outperforms SOTA models on all elementary step accuracies and on top-1 to top-5 pathway accuracies, rather than being uniformly superior. A plausible interpretation is a concentration-versus-coverage difference. FlowER was developed on this benchmark and may be more tightly concentrated on its common in-distribution pathway patterns, allowing it to recover additional references at ranks 6-10. Bookkeeper's stochastic decoding can spread frequency over a more diverse set of candidate trajectories. This diversity dilutes the frequency of the ground truth for reactions where the model is capable of predicting many candidate pathways. We think such diversity in predictions could make Bookkeeper more effective as a model for large-scale reaction screening, but it is true that it also leads to a slightly lower top-10 accuracy compared to FlowER. We plan to state this more clearly in the revision.
[W2] Consistency of top-k protocols
Our evaluation comparisons use the same observable budget and the same post-generation top-k construction for all three methods, while retaining each model's native generator.
Each method receives 64 raw candidate outputs for each test input. Bookkeeper uses autoregressive electron movement generation for both elementary steps and pathways; FlowER uses its native ODE generation and pathway beam search; and MechSMILES uses native sequence decoding for both elementary steps and pathways. These are inference procedures built in each respective model and baselined in their respective papers. We then apply the same evaluation process: (1) reconstruct each outcome, (2) canonicalize each molecular state or complete pathway, (3) merge chemically identical outcomes, (4) count their multiplicities among the 64 raw outputs, (5) rank unique outcomes by decreasing frequency, and (6) compare with ground truth to compute exact-match top-k accuracy.
Duplicate grouping is therefore not extra sampling or selective filtering, as it is how we tally frequency of each unique prediction and prevent equivalent SMILES, Kekulé forms, or arrow orderings from occupying several ranks.
Invalid, timed-out, or missing predictions remain failures in the denominator and are not replaced by additional successful draws. Thus each model is evaluated according to the same criteria under equivalent conditions while accounting for their own inference processes, and on the same standardized dataset.
[W3] Scope of inference speed comparison
The results shown in Figure 2 (a) already use a consistent elementary-step setting, as we use the same test data, hardware, software environment, and prediction type. It evaluates elementary step speed, and not end-to-end pathway predictions, and thus is not influenced by native differences in top-k construction that pathway predictions may have.
We deliberately add this restriction because pathway-level inference time can differ substantially depending on the algorithm used (e.g., beam search vs. linear inference). We show that Bookkeeper has lower elementary-step sampling time than FlowER and MechSMILES across the tested range of reaction size. The same elementary-step generator produces the 64 candidates used to construct the elementary-step top-k accuracy list, so Bookkeeper’s elementary-step speed advantage is preserved throughout evaluations and possible deployments of the model.
Furthermore, we consider the presented inference speed comparison actually conservative for Bookkeeper at the pathway level. FlowER's released settings (Joung et al., 2025) specify sample_size = 64, beam_size = 5, nbest = 3, and max_depth = 15; its beam code draws 64 ODE samples for every active frontier at each depth. After the root expansion, retaining five search frontiers can therefore require up to 5 × 64 × 15 = 4800 ODE-generated proposals per subsequent level, 75 times Bookkeeper's set of 64 linear stochastic trajectories, not accounting for the repeated neural evaluations inside each ODE solve (multiple forward calls each prediction).
[W4] Inference protocol inherent to Bookkeeper’s chemical formulation
Indeed, Bookkeeper uses chemistry-defined constraints when decoding. After sampling electron movements, the decoder tests whether the arrows predicted so far define a completed elementary step by checking if the respective atoms’ valence shells follow the octet rule. An immediate move-and-reverse loop is rejected during generation to prevent infinite loops, not as a filter after the sampling has terminated. These rules are inherent to the termination of the model’s autoregressive generation and are not used as evaluation criteria. We note that these built-in chemical rules during generation are different from repairing a completed output or inference post-processing. Bookkeeper never rounds fractional bond-electron values, inserts atoms or electrons, or redistributes electrons to repair valence. Mass conservation still holds before any check, because every action relocates an existing electron token over a fixed atom set. The octet completion rule instead defines the admissible boundary of an elementary step, just like a chemistry-aware end-of-step token. We will clarify in the revision that Bookkeeper avoids inference post-processing like continuous-to-discrete rounding and post-hoc electron redistribution, not that there is no chemical law guiding its decoding.
[W5] Scalability
For a system with atoms, Bookkeeper represents each atom and valence electron as a token. Since the number of valence electrons of an atom is bounded (), the number of tokens is . The FLOP and memory complexities of Bookkeeper are and , as scalable as the standard transformer architecture. On the other hand, FlowER uses the bond-electron matrix representation with tokens for a system with atoms. Thus, FlowER’s FLOP and memory complexities are and , an order higher than Bookkeeper.
Additionally, since Bookkeeper does not rely on beam search, each independent pathway trajectory is batchable. In comparison, FlowER uses beam search (which has much higher cost as analyzed in [W3], and MechSMILES relies on LLMs as well as beam search, both of which have more expensive attention costs than Bookkeeper.
Altogether, Bookkeeper is faster and more tractable than the 2 SOTA models because of both its time complexity at inference as well as capacity for more efficient sampling.
[Q1] Comparable evaluations of SOTA models
Yes, all sampling and ranking protocols during evaluation are matched. The models retain their native generators, so internal compute is intentionally not forced to be identical. However, all three methods are identical otherwise: 64 raw outputs per test input, the same canonicalize-then-group procedure, the same empirical-frequency ranking, and the same full test denominator.
[Q2] Sample number and sampling temperature
Thank you for the suggestion! We appreciate your interest in the details. We conducted a temperature sweep at the same fixed 64-sample budget used for evaluation, holding the test set, decoding procedure, canonicalization, and top-k construction fixed. Results are attached below:
| Elementary step | accuracy (%) | at different sampling | temperatures |
|---|---|---|---|
| Top-k | t = 0.7 | t = 1.0 | t = 2.0 |
| 1 | 89.0 | 88.6 | 88.4 |
| 2 | 92.7 | 92.6 | 92.4 |
| 3 | 93.2 | 93.6 | 92.7 |
| 4 | 93.4 | 93.9 | 93.2 |
| 5 | 93.4 | 94.2 | 93.6 |
| 6 | 93.6 | 94.3 | 93.8 |
| 7 | 93.6 | 94.3 | 94.0 |
| 8 | 93.7 | 94.3 | 94.0 |
| 9 | 93.9 | 94.3 | 94.0 |
| 10 | 93.9 | 94.3 | 94.0 |
We can observe that elementary step accuracy is rather stable across the tested temperatures. The largest spread at any reported k is 0.9 percentage points (top-3); t = 0.7 is best at top-1 (89.0%), whereas t = 1.0 is marginally best from top-3 onward (94.3% at top-10). Thus, we can see the elementary-step conclusion is not very sensitive to this temperature range.
| Pathway accuracy | (%) at different | sampling | temperatures |
|---|---|---|---|
| Top-k | t = 0.7 | t = 1.0 | t = 2.0 |
| 1 | 59.9 | 51.0 | 57.3 |
| 2 | 79.7 | 78.6 | 76.6 |
| 3 | 84.9 | 83.3 | 79.2 |
| 4 | 87.0 | 84.4 | 80.2 |
| 5 | 89.1 | 86.5 | 80.7 |
| 6 | 89.6 | 87.0 | 81.3 |
| 7 | 89.6 | 87.5 | 81.3 |
| 8 | 89.6 | 87.5 | 81.8 |
| 9 | 90.1 | 87.5 | 81.8 |
| 10 | 90.1 | 87.5 | 81.8 |
On the other hand, pathway accuracy is more temperature-sensitive, as expected for repeated stochastic decoding. The lower-temperature setting t = 0.7 is best at every k, as it improves top-1 by 8.9% versus t = 1.0 and 2.6% versus t = 2.0, and improves top-10 by 2.6% and 8.3% respectively. Temperature therefore has little effect on individual elementary step predictions, but matters more when small differences compound across a multistep trajectory. We will address how temperature influences the balance between sampling accuracy and diversity in the revision.
We also observed that increasing the sample count often slightly improves accuracy overall, because additional draws stabilize the empirical frequency ranking and increase the chance of observing lower-probability correct outcomes. The gains are modest rather than uniform at every top-k value, indicating diminishing returns as the candidate pool grows. At the same time, sampling cost increases approximately in proportion to the number of samples. We therefore use 64 samples as a practical balance in the paper, as it captures most of the available accuracy gain while keeping compute manageable.
[Q3] Frequency ranking and validity checking
Frequencies are computed after canonicalizing inference results by counting how many of the 64 raw outputs map to each unique canonical outcome. The entire protocol was clarified in response to [W2] above. The Invalid, timed-out, or missing outputs are counted in the denominator when calculating the accuracies, and they are not removed and replaced. We will state this more explicitly in the evaluation section in the revision.
[Q4] Bookkeeper’s speed advantage
The reported speed is of elementary step sampling on the same test inputs rather than for entire pathways, and it is evaluated at a fixed budget as elaborated in the response to [W3]. We therefore expect the computational advantage to extend to pathway inferences and larger matched budgets, as also elaborated in the response to [W3].
[Q5] Bookkeeper’s performance from integrating chemical laws
As clarified above, the inference-time checks are not handcrafted reaction rules that steer Bookkeeper toward particular products or mechanisms. They are chemical laws that help determine the boundaries of each elementary step during the inference process, with the same functional role as an EOS token in an autoregressive language model. Likewise, reverse-loop filtering only prevents the sampler from immediately undoing a move and cycling between identical states, and it does not encode which reaction should occur. We therefore think removing these components would not be a fully meaningful ablation, as doing so would change the definition of the model’s action space and unwind its formulation. We remain confident that choices among chemically admissible electron movements, including their ranking and final outcome, are still produced by the learned model. We will clarify this distinction in the revision.
Each of the points in the Limitations section is addressed in responses above. Thank you very much again for your thorough review and detailed questions!
Thank you again for your time and review! Please let us know if there is anything else we could answer and/or discuss.
Reply to Authors,
Dear Authors,
Thank you for your rebuttal and additional clarifications. After carefully considering your response, my principal concerns remain as follows:
(1) Chemical and mechanistic validity. Bookkeeper provides an intuitive discrete parameterization of electron redistribution that guarantees global atom and electron conservation. However, conservation alone does not ensure that the generated states are chemically valid or that the predicted trajectories correspond to physically faithful mechanisms. In particular, the single-electron trajectories depend on non-unique source–destination matching during preprocessing and heuristic validity checks during inference. Consequently, the mechanistic interpretation of these trajectories has not yet been sufficiently established.
(2) Limited methodological novelty. The proposed method is primarily a discrete autoregressive reformulation of electron-flow modeling principles previously introduced by ELECTRO and FlowER. Although individual-electron tokenization and shuffled-prefix training are potentially useful, the manuscript does not provide sufficient ablations to isolate their respective contributions. Comparisons with fixed-order training, alternative discrete electron representations, and the same model without heuristic filtering would be necessary to substantiate the claimed methodological advances.
(3) Unclear fairness of the FlowER comparison. The main comparison appears to employ a pathway-evaluation criterion and decoding procedure different from those originally used by FlowER. Specifically, this manuscript reports a FlowER Top-1 pathway accuracy of 42.7%, whereas the original FlowER paper reports 88.8%. This substantial discrepancy requires a clear explanation. If the present evaluation requires exact recovery of all imputed intermediate states, whereas the original evaluation focuses on recovering the experimentally observed reaction outcome, the two results measure different objectives and should not be directly compared without appropriate qualification.
For these reasons, I will maintain my current score. I will also discuss these remaining concerns carefully with the other reviewers and the Area Chair.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Electron Bookkeeping Transformer, or BOOKKEEPER, is a generative transformer for predicting chemical reaction mechanisms at the level of electron movements. A reaction state is represented as a fixed set of atoms together with a set of valence electrons, with each elementary arrow-pushing action defined as moving an electron from a source to a destination location. Since generation only relocates existing electron tokens within a fixed set of atoms, the numbers of atoms and electrons are conserved by default. Each electron move is factorized into gate and source selection, followed by two destination atom-index predictions, and the model is trained with shuffled prefix supervision so that it doesn’t depend on one arbitrary arrow ordering. At inference, candidate steps are sampled and ranked by empirical frequency.On an (in distribution) test, the manuscript demonstrated improvements in accuracy over e.g. FlowER and MechSMILES T5, more efficient inference, more data efficient finetuning, with associated improvements in regioselectivity, chemical reaction discovery, and function under excess reagents.
Strengths and weaknesses
Originality. The main idea is a distinct representation for mechanism prediction. Whereas FlowER models electron flow as a continuous bond-electron matrix and MechSMILES T5 encodes mechanisms as text, BOOKKEEPER represents each valence electron as a discrete token and casts an elementary step as moving existing electron tokens over a fixed atom set (§ 3.1). A direct consequence is that atom count and total electron count are conserved by construction (§ 3.1), which is an important property for a generative mechanism model. The shuffled-prefix training objective, which exposes the model to randomly ordered partial steps under a multi-positive gate target, is a sensible way to account for the fact that simultaneous arrows have no canonical order (§ 3.3).
Quality and significance. The in-distribution results can be verified. In Table 1, BOOKKEEPER mostly exceeds FlowER and MechSMILES in terms of elementary-step and pathway accuracy. The out-of-distribution study is helpful: average top-1 accuracy increases, improving on 10 of 12 classes (§ 4.2). The combinatorial discovery analysis is internally consistent (e.g. 315 reagent sets x 387 substrate sets = 121,905 combinations). These results support the significance of the discrete electron-token approach for mechanistic prediction.
Several claims appear to be stated more strongly than the evidence supports. Whilst the abstract claims that the model achieves higher accuracy on full reaction pathways, and the main manuscript claims that it outperforms both FlowER and MechSMILES T5 on both metrics (§ 4.1), in Table 1 FlowER's pathway top-10 accuracy (95.3%) exceeds BOOKKEEPER's (90.1%). Thus, the claim does not appear to hold at higher k. This issue is not discussed. Statistical rigor is limited: no error bars / confidence intervals / standard deviation / variance are reported for any result, even though predictions are ranked over 64 stochastic samples, and the checklist (Q7) answers “No”, justified only by the assertion that the margin is significant. Reproducibility is is difficult because the manuscript reports no optimizer, learning rate, batch size, number of epochs, parameter count, or model size, yet checklist Q6 answers “Yes” with "See experiment §." Finally, the two main design choices, shuffled-prefix training and frequency-ranked sampling, are not ablated, so their individual value is not established.
Some secondary claims rely on weak evidence. The 479 new transformations are defined only as predicted mechanisms absent from the templates, and aren’t experimentally (or expert) validated; the paper only proposes them for future expert review (§ 4.3). The regioselectivity argument relies on representative examples in Fig. 4 with no aggregate metric (§ 4.4). Inference speed is measured only for elementary steps to avoid differences in pathway search that could confound the comparison. Hence, the claim of significantly faster inference is not demonstrated fully (i.e. end-to-end)(§ 4.1). The experiment on behavior in the presence of excess reagents does not clarify how many extra reagent or solvent molecules were added (§ 4.4). Finally, chemical validity, is enforced after sampling through valence and bonding criteria applied to each generated step, with trivially reversed steps discarded (§ 3.4); i.e. it appears that by-construction applies to conservation, but not chemical validity.
One typo ("dach fine-tuned model", § 4.2, line 282) was noted.
Questions
- In Table 1, FlowER's pathway top-10 accuracy (95.3%) exceeds BOOKKEEPER's (90.1%). Can the authors clarify how this is consistent with the claim of higher accuracy on full pathways, or add a qualifier to the claim (e.g. restricting it to small k)?
- Can error bars (or repeated runs e.g. over sampling seeds) be reported for the main results, given the 64-sample stochastic ranking?
- Can you please provide sufficient details to make the work reproducible?Please report the architecture and training hyperparameters (parameter count, layer and hidden sizes, optimizer, learning rate, batch size, epochs), since checklist Q6 marks these as provided but we could not locate them.
- Can ablations be added to differentiate shuffled prefix training & frequency-ranked sampling vs fixed order training & raw score ranking?
- How were the new transformations validated (beyond what is mentioned already)? E.g. via expert or computational checks of validity and novelty?
- For inference speed, can end-to-end pathway latency be reported (i.e. not only per elementary step time)?
- In the excess reagent experiment, how many additional reagent or solvent molecules were added? How does accuracy scale with that number?
Limitations
Partially. The authors acknowledge a limitation: generalization is constrained by the available training data (§ 5). Certain limitations are not discussed: -results seem to be single-run with no error bars, despite 64-sample stochastic ranking -no sufficient training and architecture details (optimizer, learning rate, batch size, epochs, parameter count, model size) appear to be reported -key design choices seem to be unablated -the pathway-accuracy advantage does not hold at top-10 (where FlowER is higher) -the speed comparison is reported only at the elementary-step level. We suggest that these be added to an explicit discussion of limitations and that the corresponding claims be tempered or adjusted for clarity and accuracy.
Formatting concerns
None noticed.
3 comments
Rebuttal
Thank you for the constructive and detailed review! Please see our thoughts below:
[W1] Top-10 accuracy phenomenon
We agree that our results indicate Bookkeeper outperforms SOTA models on all elementary step accuracies and on top-1 to top-5 pathway accuracies, rather than being uniformly superior. This could be caused by the models’ difference in concentration vs. coverage of sampling probability distributions. FlowER was developed on this benchmark and may be more tightly concentrated on its common in-distribution pathway patterns, allowing it to recover additional references at ranks 6-10. Bookkeeper's stochastic decoding can spread frequency over a more diverse set of candidate trajectories. This diversity dilutes the frequency of the ground truth for reactions where Bookkeeper is capable of predicting many candidate pathways. We think such diversity in predictions could make Bookkeeper more effective as a model for large-scale reaction screening, but it is true that it also leads to a slightly lower top-10 accuracy compared to FlowER. We plan to state this more clearly in the revision.
[W2] Uncertainty estimates of main results
We attach Table 1 and Figure 2 (a) (in table form) with error estimates below. They will also be included in the revision.
| Elementary-step accuracy (%) | Reaction pathway accuracy (%) | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | Top-1 | Top-2 | Top-5 | Top-10 | Top-1 | Top-2 | Top-5 | Top-10 |
| MechSMILES T5 | 68.3 1.47 | 77.7 1.08 | 82.6 0.79 | 82.8 0.77 | 47.6 2.58 | 62.2 1.68 | 77.4 0.84 | 78.2 0.84 |
| FlowER | 69.2 1.58 | 80.2 1.51 | 84.6 1.41 | 84.8 1.41 | 42.7 4.01 | 76.0 3.25 | 87.5 1.63 | 95.3 1.42 |
| Bookkeeper | 86.9 1.15 | 90.7 0.89 | 93.4 0.81 | 93.7 0.80 | 59.9 3.93 | 79.7 2.72 | 89.1 2.13 | 90.1 2.06 |
| Avg. atoms | Bookkeeper (ms) | FlowER (ms) | MechSMILES (ms) |
|---|---|---|---|
| 32 | 9.67 ± 0.02 | 110.70 ± 60.73 | 221.37 ± 1.01 |
| 51 | 10.98 ± 0.08 | 94.23 ± 0.96 | 316.37 ± 2.21 |
| 79 | 18.56 ± 0.31 | 94.43 ± 0.19 | 212.33 ± 2.20 |
| 96 | 18.71 ± 0.21 | 95.55 ± 1.75 | 282.26 ± 5.07 |
| 126 | 24.99 ± 0.23 | 92.66 ± 0.50 | 460.17 ± 99.03 |
| 148 | 31.82 ± 0.70 | 95.50 ± 3.06 | 1188.75 ± 353.51 |
| 180 | 29.61 ± 0.05 | 93.21 ± 0.46 | 1851.50 ± 13.14 |
| 204 | 40.85 ± 0.91 | 95.65 ± 1.71 | 586.73 ± 5.71 |
| 223 | 42.78 ± 0.33 | 94.91 ± 0.26 | 1431.76 ± 63.59 |
| 261 | 47.88 ± 0.30 | 95.49 ± 0.52 | 1926.87 ± 126.80 |
Overall, we can see that Bookkeeper’s elementary step and pathway gains are robust across all reported k. Its inference speed is also substantially more stable across different reactions and sizes of reactions. We plan to revise the paper to present these results as well.
[W3] Model hyperparameters
Please see below for Bookkeeper’s hyper- and training parameters. We will include them in the appendix in the revision.
| Component | Setting |
|---|---|
| Transformer | 8 bidirectional encoder layers; 8 attention heads |
| Hidden / feed-forward dimensions | 512 / 2048 |
| Dropout | 0.1 |
| Trainable parameters | 27.42M |
| Input limits | 224 atom tokens; 638 electron tokens |
| Optimizer | AdamW |
| Learning rate | |
| Schedule | 100-step linear warm-up, then constant learning rate |
| Batch size | 64 per GPU on 4 GPUs; global batch size 256 |
| Gradient clipping | Global norm 100 |
| Training seed | 2026 |
| Validation frequency | Every 1,000 optimizer steps |
| Training duration | 4d 19h |
[W4] Shuffled-prefix training, frequency ranking
We compared Bookkeeper performance with and without shuffle-prefix training as presented below. All variables are controlled except for the addition of shuffle-prefix training.
| Elementary step accuracy (%) | Pathway accuracy (%) | |||
|---|---|---|---|---|
| Top-k | With Shuffle | No Shuffle | With Shuffle | No Shuffle |
| 1 | 59.9 | 54.2 | 88.6 | 16.1 |
| 2 | 79.7 | 77.1 | 92.6 | 55.2 |
| 3 | 84.9 | 83.6 | 93.6 | 60.9 |
| 4 | 87.0 | 85.5 | 93.9 | 63.0 |
| 5 | 89.1 | 86.2 | 94.2 | 63.5 |
| 6 | 89.6 | 86.8 | 94.3 | 64.1 |
| 7 | 89.6 | 87.5 | 94.3 | 64.6 |
| 8 | 89.6 | 87.7 | 94.3 | 64.6 |
| 9 | 90.1 | 87.8 | 94.3 | 64.6 |
| 10 | 90.1 | 87.9 | 94.3 | 64.6 |
Thus, we can observe that shuffle-prefix training improves Bookkeeper performance across all top-k values. Its effect on elementary-step prediction is consistent but modest, whereas the effect on full-pathway recovery is substantial. This gap indicates that shuffle-prefix training is particularly important for combining locally correct electron movements into coherent multi-step mechanisms. By exposing the model to varied valid partial-arrow states during training, it reduces reliance on an arbitrary arrow order and improves a more robust autoregressive generation. We will revise the paper to include this demonstration.
[W5] Validating new transformations
We agree that our reaction discovery use case can be best characterized as a combinatorial candidate-transformation screening, which identifies potential targets for downstream validation.
Specifically, we can select promising reactions for further analysis from the new transformations first by chemical reasoning and literature review. For example, in the middle new transformation in Fig 3 (b), Bookkeeper predicts methylation of diethyl ether by methyl triflate to form methyldiethyloxonium triflate, , with unchanged. The predicted reaction step is chemically coherent, as ether oxygen attacks the methyl group of in an -type displacement, with triflate as the counteranion. The product cation is a known trialkyloxonium/Meerwein-type species that has been reported experimentally (Staneke et al., 1996). The broader chemistry of trialkyloxonium salts is documented in Organic Syntheses and in a modern study of Meerwein-salt-type oxonium ions by Zhang et al., 2023.
We thus show that although this precise reagent-substrate instance was not assigned to a template class in our dataset, Bookkeeper can predict its product and electron-flow pattern following established trialkyloxonium-ion chemistry, including those published recently. Therefore, it is plausible to select chemically sound transformations from Bookkeeper’s screening results for further expert review, DFT, and experiments to discover new chemistry. We will include examples of such analysis in the appendix in the revision.
[W6] Examples of regioselectivity
We agree that more analysis and experiments are needed to demonstrate that Bookkeeper performs well on regioselective fractions than case studies, and we did attempt to conduct such experiments. However, we found that there is currently no broad, mechanistic dataset or benchmark for regioselective reactions. Existing datasets are useful but narrow or endpoint-oriented: Pesciullesi et al. study regio- and stereoselective endpoint prediction for carbohydrates (Nature Communications 2020, doi:10.1038/s41467-020-18671-7), RegioML focuses on electrophilic aromatic substitution (Digital Discovery 2022, doi:10.1039/D1DD00032B); and Schleinitz et al. construct target-specific data for functionalization (JACS 2025, doi:10.1021/jacs.4c15902). These unfortunately don’t provide electron-movement pathways over a broad reaction-class distribution. This scarcity motivates the case-study format, and we will make this limitation explicit in the revision.
[W7] Inference speed measuring elementary steps
We intentionally restricted inference speed measurements to elementary steps, because pathway-level inference time can differ substantially depending on the algorithm used (e.g., beam search vs. linear inference). We show that Bookkeeper has lower elementary-step sampling time than FlowER and MechSMILES across the tested range of reaction size. The same elementary-step generator produces the 64 candidates used to construct the elementary-step top-k accuracy list, so Bookkeeper’s elementary-step speed advantage is preserved throughout evaluations and possible deployments of the model.
Furthermore, we consider the presented inference speed comparison actually conservative for Bookkeeper at the pathway level. FlowER's released settings (Joung et al., 2025) specify sample_size = 64, beam_size = 5, nbest = 3, and max_depth = 15; its beam code draws 64 ODE samples for every active frontier at each depth. After the root expansion, retaining five search frontiers can therefore require up to 5 × 64 × 15 = 4800 ODE-generated proposals per subsequent level, 75 times Bookkeeper's set of 64 linear stochastic trajectories, not accounting for the repeated neural evaluations inside each ODE solve (100 forward calls each prediction). Thus, we think elementary step speed is more representative of the models’ inference process, rather than confounding the process by measuring end-to-end speed, which depends on external factors like sampling algorithms. We will revise the paper’s wording to clarify this aspect.
[W8] Excess reagents and solvents
Thank you for your attention to the details! The submitted experiment uses one fixed perturbation level, determined after heuristic testing. We add 4 additional copies of the selected nonparticipating reagent/solvent are appended to the input, giving 5 copies in total. The reacting components are unchanged. Atom maps are made unique for the appended copies, and exact-match evaluation requires the extra molecules to remain unchanged in the predicted final state. The top-k performance of Bookkeeper with excess reagent/solvent is presented below:
| Elementary step accuracy | (%) with exact and excess | reagents/solvents |
|---|---|---|
| top-k | Exact | Excess |
| 1 | 86.9 | 84.3 |
| 2 | 90.7 | 88.1 |
| 3 | 92.8 | 90.3 |
| 4 | 93.2 | 91.2 |
| 5 | 93.4 | 92.2 |
| 6 | 93.6 | 92.3 |
| 7 | 93.6 | 92.3 |
| 8 | 93.6 | 92.4 |
| 9 | 93.7 | 92.7 |
| 10 | 93.7 | 92.7 |
Thus, we can see that the perturbation only slightly reduces top-1 accuracy by 2.6% and top-10 accuracy by 1.0%, showing reasonable robustness at this excess level. We will state the excess reagent/solvent perturbation parameters and accuracy in the revision.
[W9] Inherent chemical laws in Bookkeeper formulation
We agree that concepts of mass conservation and chemical validity should be separated, and molecular validity does not follow from conservation alone.
Bookkeeper uses chemical laws as constraints to determine whether the current state constitutes a completed elementary step. It checks that destination atoms must retain associated electrons, and local valence shell capacity follows the octet rule. An immediate move-and-reverse loop is rejected during generation to prevent infinite loops, not used as a filter after sampling has terminated. Thus, once each elementary step terminates, it must be that the chemical laws are satisfied and there is no reverse loop. These rules are integrated into the termination of the model’s autoregressive generation, and while not directly part of the representation design itself, are still inherent to Bookkeeper’s inference process.
We will clarify such chemical validity and distinguish it from representation construction in the revision. The more accurate statement is that Bookkeeper conserves atoms and electrons by construction and returns states satisfying the octet rule.
[W10] Typo
Thanks for catching that! Will fix it in the revision.
Each of the points in Questions and Limitations sections is addressed in the responses above. Thank you very much again for the interesting questions and sharp insights!
Please let us know if there are any other questions we could answer regarding the rebuttal and the work as a whole. Thank you again for taking the time to review our work!
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
A model called BOOKKEEPER is introduced, an auto-regressive transformer architecture for chemical reaction mechanism prediction (in the arrow pushing sense). A state of a multiset of valence electrons is changed over the course of a reaction. Over the course of the reaction, an arrow pushes an electron from A to B (selection, predict two atom destinations). Mass and charge are conserved as only already existing electrons are moved avoiding some pitfalls in competing models. The model improves on various metrics on other models.
Strengths and weaknesses
strengths
- while I'm not deeply familiar with this cheminformatics approach to reactions, it seems the approach presented here solves some problems in previous methods with atom hallucination, mass conservation and rounding of the BE matrix
- the gating and order-invariance for the simultaneous nature of the arrows seems novel and a good idea
- the model is robust to spectators, regioselectivity, and somewhat OOD
weaknesses
- I feel the model is more of an incremental step to the groundbreaking flower model. while that one was a step change, this one is more of an discretization and adjustment, so the novelty is not enormous maybe
- conservation doesn't guarantee chemical feasibility, as there are no energy, transition states, barrier or kinetics. I suppose this is a problem inherent to cheminformatics but I still wanna point it out
- the bond order being only 1, 2, or 3 is very focused on basic organic chemistry, but it seems already aromatic (?) and probably organometallic, dative, hypervalent or multi-center bonds are not in there (as we seem to see in the Negishi coupling failure)
- regioselectivity: similarly to the cheminfo drawback I mentioned above, you seem to overinterpret certain effects. E.g. in Michaelis-Arbuzov you say that due to steric hindrance, regioselectivity is achieved. But the model is based on molecular graphs so is it really fair to say it's due to that? Not sure.
- the 479 new transformations have not been validated in any sense, so it's a bit misleading to call them discovery. Could they be validated in some sense?
Questions
- is it possible to add error bars in Table 1? especially where the results are tight, it seems important
- could you investigate why flower is so good at the top-10 of reaction pathway accuracy?
- can you validate the newly discovered transformtions somehow, e.g. literature, DFT, expert assessment, etc?
- could you distinguish in the introduction a bit more clearly that you are doing cheminformatics/computational OC or whatever, not quantum chemistry/theoretical chemistry? Took me a moment to get whats going on as there are sort of two schools thinking about reactions in a different manner
- in the intro to the methods, it would be nice if you refer to the Fig 1 way more. Fig 1 is in fact never referenced and 'theoretically' I didn't even read it. However I like the Fig and you should tie it in better into the method exposition. It wasn't immediately clear to me what is an electron bag and a multi-set and I needed to find it in the Fig myself. Just take the reader a bit more by the hand. The symbols like mathcal M and mathcal L could also appear in the figure etc etc. Maybe I'm getting too much into it now, but I feel 2 transformations in Fig 1 would be enough and 4 is overkill. I know you wanna show the whole thing, but it's more overwhelming than instructive, because I'm not gonna think the whole thing thru anyways, just 1-2 examples. The advantage is you can make it more clear/less cluttered. Your call.
Limitations
generally yes, I already gave some ideas of limitations in the weaknesses above
Final justification
The questions were answered and ~I remain with the grading.~ increase the rating form 4 to 5 after the second rounds of reviews and re-reading of the paper.
Formatting concerns
none
5 comments
Rebuttal
Thank you so much for the detailed, constructive review! Here’re our thoughts:
[W1] Bookkeeper novelty
It’s true that our model uses the same FlowER mechanistic dataset, references its evaluation settings, and tackles the same task of mass-conserved reaction mechanism prediction. But our contribution is intentionally focused on a novel, chemically sound representation of reaction mechanisms and a faster model architecture for reaction screening, rather than a new dataset.
Whereas FlowER predicts a continuous velocity field over bond-electron matrices and then rounds resultant matrix values to obtain a discrete chemical state, Bookkeeper instead uses an entirely different representation that treats each existing valence electron as an individual token, and models how the electrons discretely move among atoms throughout a reaction (which doesn’t require post-inference rounding as FlowER does).
We believe Bookkeeper is thus a complete reformulation of the mechanistic reaction prediction task, rather than an additional method to discretize outputs. Bookkeeper has a different representation space, training objective, and inference process than previous mechanistic models. It also requires many distinct design choices, such as distinguishing individual electrons in each electron pair, shuffled-prefix training, and inference without beam search.
And practically, Bookkeeper’s novelty allows it to sample complete trajectories directly and much more quickly than SOTA mechanistic models, in addition to having better performance. In downstream tasks such as screening large amounts of chemical reactions, this speed improvement can make a big difference. When using FlowER for such tasks ourselves, we found that its inference speed could be a serious limitation when attempting to identify new target compounds from a large number of reactant combinations. With Bookkeeper’s new formulation, we hope to make such tasks easier for computational chemists. Thus, we’d say that Bookkeeper is quite different and offers distinct advantages when compared to FlowER and other SOTA models.
[W2] Mass/charge conservation as part of chemical feasibility
We agree that mass conservation isn’t physical proof that a pathway is thermodynamically favorable or kinetically accessible. Bookkeeper doesn’t predict energies such as activation barriers and rate constants. Nevertheless, we think its formulation has a useful analogy to physical aspects of chemical transformation. Chemistry proceeds through redistributions of electrons among conserved atoms, and the relative likelihood of alternative electron movements is caused by the underlying energetic and kinetic landscape. Bookkeeper represents this process directly, as it learns probabilities of electron relocations conditioned on atom identities and thus the chemical context/evolving molecular state. Thus, we think while these probabilities are not calibrated energies or chemical potentials, they can still be viewed as a data-driven statistical representation of the combined influences of chemical potential, activation barriers, reactant environments, etc. Additionally, since transition states are almost always represented as an intermediate in the mechanistic reaction pathway, Bookkeeper can propose possible transition states by listing each intermediate.
[W3] Bond order in representation
Bookkeeper doesn’t explicitly keep track of bond order, as bonds are represented as the number of electrons shared between atoms, which can technically be any integer/valence. Dative bonds can also be directly represented by 2 electrons moving from one atom to between this atom and a second one. We do support aromatic inputs by training and evaluating with Kekulé representations, which alternate double and single bonds for aromatic rings. We also account for trivial resonance-only moves within the same aromatic ring to avoid penalizing equivalent Kekulé depictions. We do very much agree that our current implementation is centered on organic chemistry. The poor Negishi fine-tuning result is consistent with this limitation, as organometallic coverage is sparse in the dataset:
| Reaction type | Category | # templates | Percentage of all templates |
|---|---|---|---|
| Suzuki, Buchwald-Hartwig, Miyaura borylation | transition-metal-catalyzed cross-coupling | 13 | 5.20% |
| Sonogashira, Stille, Kumada | other cross-coupling | 11 | 4.40% |
| Grignard | main-group organometallic | 10 | 4.00% |
| Hosomi–Sakurai | organosilicon | 6 | 2.40% |
| Barbier, Petasis, Weinreb ketone synthesis, olefin metathesis, etc. | Organoboron, metal-catalyzed organic | 5 | 2.00% |
| All other reaction types | Organic chemistry | 207 | 82.10% |
Thus, the template catalog is predominantly organic, with only 17.90% organometallic, organosilicon, organoboron, and transition-metal-catalyzed transformations. In the revision, we will additionally report the above reaction distribution.
[W4] Bookkeeper learns regioselectivity
In chemistry, it is a standard interpretation that the less hindered site (which can be identified from a compound’s 2D Lewis structure) is favored, thus steric hindrance can be deduced chemically directly from molecular graphs. Our experiment shows that Bookkeeper ranks the gt site above formally plausible alternatives. Because the input contains atom identities, connectivity, bond orders, and the full molecular context, we believe the model learns some statistical associations among steric and electronic effects, but we agree that the case study is not direct proof of its reasoning. Instead, our main claim was to demonstrate that Bookkeeper can predict results consistent with regioselectivity.
[W5] Predicting new transformations for further screening
We agree that the terminology of “new transformation” is not the clearest. We define new transformations as reagent-substrate pairs that have reaction types not seen in the train/val/test datasets to show that Bookkeeper can predict reaction types it’s not trained on, which could include both reactions discovered before as well as truly novel reactions. To discover novel reactions not recorded in literature, downstream literature matching, expert assessment, and eventual wet experiments would be needed. Bookkeeper is an efficient tool for identifying targets for such reaction screening. We will state this in the revision.
[Q1] Table 1
We’ve included error bars below and will include them in the revision as well.
| Elementary-step accuracy (%) | Reaction pathway accuracy (%) | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | Top-1 | Top-2 | Top-5 | Top-10 | Top-1 | Top-2 | Top-5 | Top-10 |
| MechSMILES T5 | 68.3 1.47 | 77.7 1.08 | 82.6 0.79 | 82.8 0.77 | 47.6 2.58 | 62.2 1.68 | 77.4 0.84 | 78.2 0.84 |
| FlowER | 69.2 1.58 | 80.2 1.51 | 84.6 1.41 | 84.8 1.41 | 42.7 4.01 | 76.0 3.25 | 87.5 1.63 | 95.3 1.42 |
| Bookkeeper | 86.9 1.15 | 90.7 0.89 | 93.4 0.81 | 93.7 0.80 | 59.9 3.93 | 79.7 2.72 | 89.1 2.13 | 90.1 2.06 |
This confirms that Bookkeeper’s elementary-step and pathway gains are robust across all reported k.
[Q2] Top-10 accuracy phenomenon
From our observations, we think it is primarily because FlowER is more tightly in-distribution with this benchmark, and its sampling has more probability mass over the dataset’s common pathway patterns, allowing it to recover additional reference pathways by ranks 6-10. In contrast, Bookkeeper’s stochastic decoding produces a more diverse set of candidate trajectories. This diversity (while ideal in reaction space exploration) can thus distribute sample frequency across a wider set of alternatives, reducing the chance that every sample accumulates sufficient frequency to appear in the top 10.
[Q3] Validating new transformations
We can select promising reactions for further analysis from previously unseen candidate transformations (“new transformations”) first by chemical reasoning and literature review. For example, in the middle new transformation in Fig 3 (b), Bookkeeper predicts methylation of diethyl ether by methyl triflate to form methyldiethyloxonium triflate, , with unchanged. The predicted reaction step is chemically coherent, as ether oxygen attacks the methyl group of in an -type displacement, with triflate as the counteranion. The product cation is a known trialkyloxonium/Meerwein-type species that has been reported experimentally (Staneke et al., 1996). The broader chemistry of trialkyloxonium salts is documented in Organic Syntheses and in a modern study of Meerwein-salt-type oxonium ions by Zhang et al., 2023.
We thus validate that although this precise reagent-substrate instance was not assigned to a template class in our dataset, Bookkeeper can predict its product and electron-flow pattern following established trialkyloxonium-ion chemistry, including those published recently. Thus it is plausible to select chemically sound transformations from Bookkeeper’s screening results for further expert review, DFT, and experiments to discover new chemistry.
[Q4] Mechanisms in organic chemistry
Thank you. We will add this distinction to the revision to make clear that Bookkeeper tackles data-driven mechanism reaction prediction in organic chemistry rather than first-principles quantum chemistry.
[Q5] Figure 1
Thanks a lot for pointing this out! We will cite the figures, guide the reader through panels (a)-(c), and place the notation for electron locations/etc. next to their objects. We’ll also simplify the example pathway if needed so the figure emphasizes 1 or 2 representative updates.
Just wish to follow up- please let us know if you have any questions we could answer. Thank you very much again for your review and time!
Thanks for answering the questions in detail and discussing my concerns.
I think the error bars show that "gains are robust across all reported " might be a bit overstated e.g. top-2 is overlapping with flower.
The flower top-10 is not really evidence but more hypothesized (but plausible and with the concession that bookkeeper is not uniformly better). You provided a temperature sweep for Reviewer Q3Dc which gives some evidence but somehow it seems if I understand it right that accuraccy improves as sampling gets less diverse, i.e. 90.1 (t=0.7) -> 87.5 (t=1.0) --> 81.8 (t=2.0) at top-10.
The triflate + diethyl ether to methyldiethyloxonium triflate is a nice showcase, thanks for that.
The weaknesses are resolved.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for the comments and for seeing the potential in our work! We have responded point-by-point to all reviewers’ comments below. Our responses highlight Bookkeeper’s novelty relative to FlowER (and other reaction prediction models), clarify the inference, sampling, and evaluation protocols, and additionally include uncertainty estimates and analysis of sampling algorithms.
We also provide new evidence, including a shuffled-prefix ablation, chemical reasoning of reaction screening candidates, and performance comparisons with forward predictors Graph2SMILES and Chemformer.
We further refine the presentation of aspects of the model by distinguishing chemical conservation from feasibility, clarifying the role of validity checks in termination, and proposing downstream analysis for proposed transformations as candidates for computational or experimental validation. Thus, we have addressed each substantive concern in our responses.
Thank you for your consideration!