KinFormer: Generalizable Dynamical Symbolic Regression for Catalytic Organic Reaction Kinetics

Jindou Chen, Jidong Tian, Liang Wu, ChenXinWei, Xiaokang Yang, Yaohui Jin, Yanyan XuICLR 2025

Understanding the kinetics of a chemical reaction—how fast it happens and what the intermediate steps are—is fundamental to chemistry. Traditionally, this is a manual, three-stage process: chemists propose a mechanism, derive Ordinary Differential Equations (ODEs) based on the "mass-action law," and then fit these to experimental data. This process is slow, prone to human bias, and often requires starting from scratch for every new reaction.

Chemical reaction mechanism, kinetics equations, and temporal concentration profiles.

While Deep Learning (DL) and Dynamical Symbolic Regression (DSR) have shown promise in automating equation discovery directly from concentration data, existing models suffer from pattern rigidity. They tend to memorize specific reaction profiles seen during training and fail to generalize to new, "out-of-domain" reaction categories. Essentially, they lack the "physical common sense" to understand the underlying correlations between different chemical species in a complex system.

To address this, researchers have introduced KinFormer, a novel deep learning framework that automates the discovery of the mathematical equations governing chemical reaction kinetics. By combining a conditional Transformer with Monte Carlo Tree Search (MCTS), it achieves superior generalization across diverse organic reaction types, outperforming traditional symbolic regression and standard deep learning baselines in predicting "unseen" chemical mechanisms.

Methods: Breaking Pattern Rigidity

KinFormer moves away from the standard "end-to-end" prediction model. Its architecture relies on two main innovations:

1. The Conditional Strategy

Instead of predicting all equations at once (the Universal strategy) or each in total isolation (the Independent strategy), KinFormer uses a Conditional strategy. It predicts one equation at a time, using previously predicted equations as context.

Comparison of Universal, Independent, and Conditional strategies for equation generation.

This allows the model to implicitly learn the physical constraints and correlations imposed by the mass-action law. For example, if species A is consumed to make species B, their rate equations must be mathematically linked. This contextual awareness is crucial: it mimics how a human expert might deduce the rest of a mechanism once the primary pathway is identified.

2. Monte Carlo Tree Search (MCTS)

Because the order in which equations are generated matters in a conditional setup, KinFormer employs MCTS as a post-processing module to search for the optimal generation sequence. It treats equations as nodes and uses the $R^2$ fit of the resulting ODE system as a reward signal to guide the search toward the most physically accurate set of equations. It doesn't just pick the most likely next token; it picks the equation that makes the entire system of ODEs fit the observed concentration data best.

Datasets and Evaluation

The researchers constructed a large-scale simulated dataset based on 20 types of catalytic organic reactions, categorized into Core, Bicatalytic, Catalyst Activation, and Catalyst Deactivation mechanisms. The dataset includes 100,000 training samples and 10,000 test samples, with systems ranging from 4 to 6 dimensions (number of chemical species).

The models were tested for both Intra-class generalization (unseen reactions within a known category) and Inter-class generalization (entirely new categories of mechanisms).

Key Results

KinFormer's modular, conditional approach prevents the model from simply memorizing fixed formulas, leading to massive performance gains on unseen data:

  • Out-of-Domain Superiority: In "Inter-class" evaluations (the hardest test), KinFormer achieved an equation form accuracy ($Acc_{form}$) of 81.41%, whereas the standard Universal Transformer baseline failed completely (0%).
  • Robust Fitting: KinFormer significantly improved $R^2$ scores across all categories. In the "Intra-class" scenario, its macro-accuracy ($Acc_M$) was 23.18%, compared to just 1.87% for the Universal baseline.
  • Explainability: The MCTS process provides a transparent "generation order," showing which species the model prioritized to unlock the rest of the kinetic system.

Limitations and Future Work

Despite its success, KinFormer faces a few ongoing challenges:

  • High Dimensionality: The model's performance dips as the number of species ($D$) increases. Systems with 6 species remain a significant challenge.
  • Noise Sensitivity: While the model handles some Gaussian noise, it struggles to reconstruct equations for "small-scale" intermediate species whose signals are easily drowned out by noise.
  • Computational Cost: MCTS is significantly slower than simple greedy decoding. While it produces better results, the time complexity increases with the number of species, making it a potential bottleneck for very large chemical networks.

Future work aims to improve cross-dimensional transfer (e.g., applying a model trained on 4-species systems to 6-species systems) and enhancing robustness against experimental noise.

Summary updated

BibTeX
@inproceedings{chen2025kinformer,
  author = {Jindou Chen and Jidong Tian and Liang Wu and ChenXinWei and Xiaokang Yang and Yaohui Jin and Yanyan Xu},
  title = {{KinFormer: Generalizable Dynamical Symbolic Regression for Catalytic Organic Reaction Kinetics}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=nhrXqy5d5q},
}
Figure