본문 펼치기
Article https://doi.org/10.1038/s41467-024-50531-6
# Enabling high throughput deep reinforcement learning with first principles to investigate catalytic reaction mechanisms
Received: 10 August 2023
Accepted: 11 July 2024
Check for updates
Tian Lan <sup>1</sup>, Huan Wang <sup>1</sup> & Qi An 2
Exploring catalytic reaction mechanisms is crucial for understanding chemical
processes, optimizing reaction conditions, and developing more effective
catalysts. We present a reaction-agnostic framework based on highthroughput deep reinforcement learning with first principles (HDRL-FP) that
offers excellent generalizability for investigating catalytic reactions. HDRL-FP
introduces a generalizable reinforcement learning representation of catalytic
reactions constructed solely from atomic positions, which are subsequently
mapped to first-principles-derived potential energy landscapes. By leveraging
thousands of simultaneous simulations on a single GPU, HDRL-FP enables
rapid convergence to the optimal reaction path at a low cost. Its effectiveness
is demonstrated through the studies of hydrogen and nitrogen migration in
Haber-Bosch ammonia synthesis on the Fe(111) surface. Our findings reveal
that the Langmuir-Hinshelwood mechanism shares the same transition state as
the Eley-Rideal mechanism for H migration to NH2, forming ammonia. Furthermore, the reaction path identified herein exhibits a lower energy barrier
compared to that through nudged elastic band calculation.
Understanding the reaction path in catalytic reactions is of paramount
importance for enhancing our comprehension of chemical processes,
refining reaction conditions, and developing robust catalysts <sup>1–3</sup> . Insights
into the reaction mechanism afforded by the reaction path offer a
significant avenue for creating more selective and efficient catalysts <sup>4</sup> .
Such information is critical for the optimization of catalyst design,
reduction of side reactions, and enhancement of selectivity through
activation energy control <sup>5</sup> . Moreover, details about optimal reaction
conditions, such as temperature, pressure, and reactant concentration,
can be deduced from the reaction pathways, thereby boosting yield and
efficiency <sup>6</sup> . However, many challenges hinder the exploration of reaction pathways in catalytic reactions, including the complexity of multistep reactions and short-lived intermediates, the dynamic and heterogeneous nature of many catalytic reactions <sup>7,8</sup>, and the intricacies of
accurately studying reaction pathways experimentally <sup>9</sup> .
Artificial Intelligence (AI) has recently emerged as a pivotal tool in
various research fields <sup>10–12</sup>, including chemistry <sup>13,14</sup> . Although several
machine learning algorithms have been applied to chemical reactivity,
most remain mechanism-agnostic, requiring a human-interpretable
connection between features and the phenomenon of interest. A
broad approach towards elucidating unknown mechanisms might be
enumerating all possible reaction pathways from reactants to products, but the vast combinatorial possibilities make this impractical,
leading to a ‘combinatorial explosion’. The application of reinforcement learning (RL) holds substantial potential for enhancing the
exploration of reaction networks and mechanistic investigations <sup>15,16</sup> . RL
involves an agent tasked with identifying plausible reaction pathways
through interactions with a defined environment over time. Instead of
laboriously screening all potential reaction steps, RL can navigate
reaction networks in an automated manner <sup>15,16</sup> .
Although deep reinforcement learning (RL) is considered as one
ultimate epitome of exploring unknown reaction mechanisms in an
automated and first-principles way, there are many scientific and
engineering challenges to the use of RL for this difficult task. For
1Salesforce A.I. Research, Palo Alto, CA, USA. 2Department of Materials Science and Engineering, Iowa State University, Ames, IA, USA.
[e-mail: qan@iastate.edu](mailto:qan@iastate.edu)
example, in RL, the sequence of data observed by the learning agent
could be non-stationary and strongly correlated <sup>17</sup> . These factors can
significantly complicate the learning process. In addition, the finitehorizon rollout in RL may introduce bias when estimating the value
function <sup>18</sup> . The aggregation of data into an experience replay memory
may help to reduce non-stationarity, but it necessitates extensive
computational resources and memory, and restricts the methods to
off-policy algorithms <sup>17</sup> . Those challenges are further exacerbated when
dealing with the unknown complex chemical reaction mechanisms,
where the potential energy landscape (PEL) of chemical systems is
characterized by strong nonconvexity, high noise, and high dimensionality. These characteristics present a significant hurdle for RL
optimization. For example, RL exploration usually meets a great
number of different reaction pathways, leading to a complex energy
landscape with numerous local minima and similar energy barriers.
These features can trap the policy exploration, preventing it from
effectively escaping and causing the convergence to either be impossible or excessively slow.
The great complexity of investigating catalytic reaction mechanisms poses a substantial challenge for the generalizable usage of RL
across a variety of catalytic reactions. Therefore, much of the RL
research on chemical reactions has instead primarily focused on
modeling the environment with a semi-empirical representation based
on specific chemical reactions. These methods heavily rely on the
tedious design of special state vector encodings, heuristic action rules,
or nonlinear transforming reward functions <sup>13,15,16</sup>, which can severely
limit the scope and potential applications of the RL algorithm. Particularly, it does not offer a transferable solution since it tends to be
applicable to a specific reaction and requires a considerable amount of
empirical design, hyperparameters tuning, and semi-empirical calculations. Moreover, the simplified RL representation of environment
usually requires restricting the exploration to a predefined set of
reaction networks, thereby hindering the discovery of unknown elementary reaction mechanisms. For instance, our prior RL study <sup>15</sup>
developed an encoded state vector consisting of 23 elements,
accommodating a total of 20 surface sites within the catalytic surface.
The value of each entry represents various absorbents and are encoded by integers. In addition, the actions connecting states are defined
in terms of some specific chemical reactions in which the atomic
motion are not explicitly involved in these reactions. This type of RL
application heavily depends on the domain knowledge and lacks
generality when using it in other complex reactions. Therefore, it is
limited to managing intricate reaction paths defined by a predetermined assortment of diverse reaction mechanisms. Meanwhile,
the elementary task of probing undiscovered reaction mechanisms
remains elusive.
To tackle these issues, we have developed a reaction-agnostic,
high-throughput, and fast-converging RL framework, termed highthroughput deep reinforcement learning with first principles
(HDRL-FP), to autonomously explore catalytic reactions paths and
mechanisms. The reaction-agnostic nature of HDRL-FP arises from its
independence from the need for human experts to design specific RL
representation of environment (e.g., states, actions, or rewards) for a
particular reaction. Instead, the RL environment is solely built on
atomic positions, which are then mapped to the potential energy
landscape (PEL) derived from first principles. The excellent generalizability and cost-efficiency of our framework are primarily a result of
the high-throughput capacity enabled by the pioneering architecture
of HDRL-FP. This framework is fundamentally different from the
recent development of other parallel RL architectures <sup>17–21</sup>, but facilitates the fast running of thousands of concurrent RL simulations on
a single graphics processing unit (GPU) <sup>22</sup> . The massive number of
parallel agents operated by HDRL-FP diversifies the exploration of
environment into numerous uncorrelated regions, resulting in significant improvement of the training stability and a dramatic
reduction of runtime in our generalizable RL environment for chemical reactions.
Then, we adopt HDRL-FP to predict a reaction path for the vital
hydrogenation step in the Haber-Bosch (H-B) process on the Fe(111)
surface. We also examine N/N2 diffusion related reaction steps to
demonstrate the generalizability of the HDRL-FP framework. This H-B
process plays a critical role in Earth’s nitrogen cycle and accounts for
over 2% of global energy usage, producing an annual yield of 160
million tons of ammonia <sup>23–27</sup> . Despite a century of intensive research
aimed at enhancing the performance of the H-B process, advancements have been slow. Our developed HDRL-FP framework has the
potentialto contribute significantly to the optimization of this process,
potentially reducing production costs and CO2 emission, and facilitating the establishment of smaller and more widespread plants.
Therefore, the framework highlights its effectiveness and potential for
predicting complex chemical reaction pathways.
Results and discussion
Framework development
Central to the deep RL model is a policy of selecting an action at given a
state st at time t, denoted as πθp ðatjstÞ, which is represented by a deep
neural network with parameters θp. We model the evolution of the
chemical reaction path as a Markov decision process (MDP) <sup>28</sup>, defined
by a state space S, an action space A, a probability transition
Pðst + 1jat,stÞ, and a reward function r. The reward function, r, is typically defined in the combined space S × A. Unlike other methods,
HDRL-FP does not require any reaction-specific encoding of atomic or
spatial information to define the environment states and actions <sup>15</sup> .
Instead, we simply define the states by using the Cartesian coordinates
of atom positions. Consequently, the states are represented by the
normalized coordinates of the migrating atom and the its Euclidean
distance to the target position in the final product, i.e., st = (xt/Lx, yt/Ly,
zt/Lz, distance{(xt, yt, zt), (xf, yf, zf)}/D) in an orthogonal supercell,
where D = distance{(x0, y0, z0), (xf, yf, zf)} is the Euclidean distance of
the migrating atom between the reactant (subscript 0) and the final
product (subscript f). For multiple migrating atoms, the states will be
defined as the concatenated coordinates of these atoms normalized
individually.
Actions, which establish connections between the s0 and the sf,
are defined as the stepwise movement of the migrating atom in six
possible directions within the 3-dimensional grid, i.e., forward, backward, up, down, left, and right. Our framework is adept at handling
catalytic reactions involving multiple atoms. To address scenarios with
various atom actors, we have devised a two-dimensional action space
consisting of ‘atom choice’ and ‘move direction’. For example, the
action (1, down) means that the first atom actor moves downward,
while (2, left) indicates that the second atom actor moves left. This
scalable strategy effectively reduces the learning burden by limiting
the total number of actions to the sum of the atom actors and six
directions, rather than multiplying the two. Our policy model is
equipped with two output heads of actions that share the internal
neural network layers: one determines which atom to move, and the
other decides the movement direction. In single-atom catalytic reactions, the ‘atom choice’ aspect is fixed and set to 1. We apply the
periodic boundary condition, so when an atom crosses one edge of
the simulation box, it re-enters from the opposite edge. This avoids the
issue of an atom going missing as it moves across the boundary.
The crucial link between first principles and deep RL lies in the
reward system, which is associated with actions and derived from
density functional theory (DFT) calculations. We assign a negative
reward, r, to each action, which depends on the states before and after
the action. Specifically, r = �ΔE=E0, where ΔE (in eV) is the electronic
energy difference between the current state and the reference state,
and E0 is a linear rescaling factor used to normalize the reward within a
predetermined range. We also define a penalty reward, r = −1, as the
(a)
_GPU Device_
Global
Memory
Env Batch State, Action, Next State, Action, Next
State, Reward State, Reward
Batch State, Action, Next State, Action, Next
State, Reward State, Reward
State, Action, Next
Block
<mark>Next State</mark>
Thread: Agent i Sampler Action
<mark>Reward</mark>
Thread: Agent j
Thread: Agent k
Thread
Thread
Block
Block
ThreadThread
ThreadThread
ThreadThread ThreadThread
Thread
Thread
(b)
DFT Neural Net
2N_NH�_2H => 2N_NH�_H
Env H migration
Reinforcement Learning Agent
Fig. 1 | High-throughput deep reinforcement learning (RL) framework for
studying hydrogenation reactions in ammonia synthesis on the Fe(111) surface.
a A flow chart depicting the first-principles-instructed, high-throughput deep reinforcement learning framework used in the study of the hydrogenation reaction in
ammonia synthesis on the Fe(111) surface. Within this framework, computations are
organized into graphics processing unit (GPU) blocks. Each block consists of
multiple threads to run a concurrent environment, where the states represent the
current atomic positions. Each thread operates an atom actor that samples actions
and computes rewards. These blocks can access the global GPU memory, which
shares the potential energy landscape and deep policy models, as well as stores
atom moves very close to other atoms. This definition of the environment serves as a universal descriptor for any chemical reactions and
completely decouples the state, action, and reward spaces from any
specific reaction. Details about defining the environment (actions,
states, and rewards) are in the SI and Table S1.
HDRL-FP executes the entire RL workflow end-to-end on a single
GPU, using a single store of data for simulation rollouts, action inference, and training. By leveraging the parallelization capabilities of
GPUs, this framework enables cost-efficient, high-throughput computation, running thousands of concurrent RL simulations in parallel
on a GPU, and training on large batches of experience. As depicted in
Fig. 1a, within the GPU, we execute many replicas of the environment
instances in parallel. Each environment instance operates independently on a separate GPU block, maintaining its own reference of the
PEL, as computed by DFT, and deep policy models shared by the global
memory. Given the large number of blocks typically available in a
modern GPU, this framework can execute thousands of environments
instances in parallel on a single GPU. Employing this framework, we
aim to address the generalized and complex chemical reactions, as
shown in Fig. 1b, in which the atomic motions are involved explicitly. In
this reaction, we will explore the hydrogen migration mechanism in
the H-B ammonia synthesis on the Fe(111) surface. The environment of
this specific problem depends entirely on the coordination of the
atoms within the system. In each environment instance managed by
HDRL-FP, the atom actor can sample the action, transition to the next
position (new state), and collect the corresponding reward to navigate
through the reaction environment. The deep policy models compute
the associated probabilities for the subsequent actions given the new
state. Each individual tuple (state, action, and reward) is referred to as
rollout data for training purposes. Dashed boxes represent the references (not the
copies) of the model objects or data placeholders hosted in the global memory
shown in the solid boxes. b The target scientific questions to be addressed by using
the framework in a the hydrogenation reaction of ammonia synthesis on Fe(111)
surface. The density functional theory (DFT) derived environment is incorporated
into the RL agent trained by neutral network to predict the catalytic reaction path
and mechanism. The N and H atoms are represented by blue and cyan spheres,
respectively. The small cyan spheres represent the trajectory of H migration predicted by framework in a.
an experience step. The exploration data, consisting of experience
steps, is stored in the experience batch in-place in the global GPU
memory, avoiding extra data transfer. Additionally, each environment
instance supports multiple concurrent threads and allows multiple
atom actors to interact with the same environment. Given the concurrent operation of multiple environments, individual environments
may reach their terminal states at varying time steps. HDRL-FP automatically resets environments that are finished without causing
unnecessary interruption to others still in operation.
Once all environments have provided rollout data of experience
steps and the training batch is full, training can be conducted on large
batches of experience in-place. Prior to updating the deep policy
models, the task coordinator in the framework synchronizes atom
actors. In the next iteration, all actors start from the updated policy.
This synchronized gradient update approach ensures cohesive training, potentially resulting in a faster convergence.
Evaluation of agent
We apply HDRL-FP to construct the reaction path for the critical
hydrogenation step in NH3 synthesis on the Fe(111) surface, which
transitions from 2N_NH2_2H to 2N_NH3_H <sup>15,23</sup> . We consider two potential reaction mechanisms: (1) the Langmuir-Hinshelwood (LH)
mechanism, in which both reactants are present on the catalytic surface; and (2) the Eley-Rideal (ER) mechanism, where one H is obtained
from the gas phase. We have chosen to focus on this specific reaction
for two-fold reasons: (1) It represents one of the most significant ratedetermined steps in the complex H-B reaction network on the Fe(111)
surface <sup>15,23</sup> ; (2) determining its reaction path is not trivial, posing a
challenge for the nudged elastic band (NEB) method, especially in the
(a)
(b)
Fig. 2 | Convergence and learning speed, measured in total runtime using wallclock minutes, for the high-throughput deep reinforcement learning with first
principles (HDRL-FP) method applied to the NH2 to NH3 hydrogenation reaction on Fe(111) surface. a, b Langmuir-Hinshelwood and c, d Eley-Rideal hydrogenation reaction of NH2 to NH3. Different numbers of concurrent environment
instances were used – n = 4 in red, n = 20 in green, n = 100 in blue, and n = 500 in
yellow. The episodic reward is the mean accumulated reward that H atom actors
collect from the initial to the terminal state of a Langmuir-Hinshelwood and c Eley
context of the ER mechanism. It is necessary to make an assumption
about the initial position of the H atom in the NEB calculations for the
ER mechanism <sup>23</sup> .
Figure 2a, b displays the convergence speed of the HDRL-FP as it
processes the LH reaction as a function of the number of environment
replicas, running in parallel. All RL simulations were performed
on a single Nvidia A100 GPU, hosted on the Google Cloud Platform
[(https://cloud.google.com/compute/docs/gpus#%20a100-gpus).](https://cloud.google.com/compute/docs/gpus#%20a100-gpus) The
data reveal that, under consistent fixed hyperparameters (Table S2
in SI), the simulations operating with an increased number of concurrent environments attain global convergence faster and more stably. Particularly, simulations with 20, 100, and 500 environment
replicas in all separate runs reach the same global optimum within 120,
70, and 45 minutes, respectively. In contrast, simulations involving
four (or fewer) environment replicas fail to converge (even after an
entire day of training) and fail to reach the terminal state. Our generalizable RL environment with the same hyperparameters is directly
applicable to the study of ER reaction mechanism. As depicted in
Fig. 2c, d, simulations deploying 100 and 500 environments demonstrate robust and consistent convergence. However, simulations with
twenty (or fewer) environments do not exhibit satisfactory convergence. The results highlight the critical role of massive parallelism
in RL for effectively exploring a broad range of reaction mechanisms
through a generalizable RL environment representation built solely
upon atomic positions.
HDRL-FP exhibits exceptional performance in enabling highthroughput RL computation with low cost for catalytic reactions. For
example, running 500 environment replicas of LH or ER reactions in
parallel, our framework achieves an end-to-end training throughput
of 0.23 million experience steps per second on a single GPU. For
comparison, the training throughput barely surpasses 10,000
experience steps per second when using 20 environments, a level
that already exceeds the throughput limit of most RL solutions. It is
noteworthy that the throughput can scale even higher, as it is almost
linearly correlated with the number of environments in our framework, until it reaches the limit of the GPU memory. These results
demonstrate that our deep policy model can successfully explore
(c)
(d)
Rideal, whereas the episodic step is the average total steps to reach the terminal
state for b Langmuir-Hinshelwood and d Eley-Rideal. The model was trained on a
single Nvidia A100 GPU. For robustness, the depicted results are averaging over five
independent runs from scratch with different initialization seeds and the same
hyperparameters. The shadow regions represent the error bar (standard deviation)
of five independent runs in all four subfigures. Source data are provided as a Source
Data file.
complicated catalytic reaction mechanisms with high portability,
scalability, and efficiency.
Reaction mechanisms of key hydrogenation step in H-B on the
Fe(111) surface
Prior research identifies three potential rate-determining steps for the
H-B process: dinitrogen dissociative adsorption <sup>29</sup>, catalyst surface
hydrogenation of adsorbed species <sup>30</sup>, and ammonia desorption <sup>31</sup> .
Recent studies, however, have emphasized N2 adsorption/desorption,
NH2 hydrogenation, and NH3 desorption as the probable ratedetermining steps on the Fe(111) surface <sup>23</sup> . Particularly, our recent
work accentuates NH2 hydrogenation as the pivotal step with the
highest reaction barrier <sup>15</sup> . This is followed by ammonia desorption as
the second most critical step, and then N2 adsorption/desorption <sup>15</sup> .
The current study focuses on NH2 hydrogenation, aligning with spectroscopy studies detecting primarily NH2 on the Fe(111) surface <sup>32</sup>, thus
justifying the emphasis on the transition from 2N_NH2_2H to
2N_NH3_H.
We illustrate the 2N_NH2_2H state within the full reaction network
of NH3 formation from N2 and H2 (Fig. S1 of SI) <sup>15,23</sup> as the rewarddefining reference state in RL. For the LH mechanism, two isolated H
atoms are located at shallow-deep (SD) and top-shallow (TS) sites on
the Fe(111) surface. For the ER mechanism, we position the migrated H
atom approximately 4.6 Å from the Fe surface in a vacuum. The most
energetically favorable position for NH2 is the TS site on Fe(111). NH3
forms as H migrates to termination states and moves to the top Fe
surface site, energetically lower than the TS site. To connect the initial
NH2 and final NH3 states in RL studies for both mechanisms, we strategically reposition NH2 to the top site and focus on H migration in RL
calculations. Except for migrated H, all atoms remain fixed, allowing us
to derive an unrelaxed potential energy landscape. To accurately
identify the transition state, we use insights from RL and conduct NEB
calculations, with details provided below.
Figure 3a illustrates hydrogen migration paths for both LH and
ER mechanisms as identified by HDRL-FP. Figure 3b, c provide additional detail on atomic configurations for the LH and ER mechanisms,
respectively. Here, migrated H atom originates either from surface
Fig. 3 | Hydrogen migration pathways and potential energy landscape (PEL) on
Fe(111) surface, differentiated by Langmuir-Hinshelwood (LH) and Eley-Rideal
(ER) mechanisms. a Illustration of hydrogen migration pathways with the intricate
PEL, originating from 2N_NH2_2H to 2N_NH3_H. The path governed by the LH
mechanism is designated by the orange trajectory, where the ER mechanism is
represented by the light green path. Initial positions for LH and ER are marked by
cyan and blue diamonds, respectively, and the terminal position is denoted by a
black circle. b Detailed visualization of the H trajectory specific to the LH
mechanism. c Close examination of the hydrogen trajectory as guided by the ER
adsorbed H (LH) or gas phase H (ER). The H atom, in both cases,
follows minimal energy paths, indicated by the darkened trajectories.
In the LH mechanism, high-energy zones along the H migration path
are due to co-existing adsorbates such as H, N, and surface Fe atoms.
The H atom predominantly migrates laterally until near its terminal
state, where it moves vertically toward the NH2 molecule, resulting in
NH3. In contrast, the ER mechanism exhibits a gradual descent of H to
its terminal state. The final steps of ER and LH mechanisms bear close
resemblance, with the key distinction being the vertical position of the
H atom; it descends toward NH2 in the ER but remains consistently
elevated in the LH. It is worth noting that the HDRL-FP calculations are
based on a mesh grid of 0.4 Å in the supercell. The convergence of the
griding space has been demonstrated by a more complex calculations
with 0.2 Å grid spacing. The details of these calculations are discussed
in the SI and Figs. S2 and S3 of SI.
Figure 3d displays the potential energy paths for both LH and ER
mechanisms as determined by HDRL-FP. For the LH mechanism, the
initial configuration exhibits a higher energy relative to the reference
energy, as the NH2 is relocated to a top site with elevated energy.
Notably, the H atom surmounts an energy barrier to arrive at a local
minimum along the low energy pathway, prior to reaching the terminated state. This observation suggests the presence of an intermediate, lower-energy state along the hydrogen migration reaction
pathway derived from HDRL-FP. We subjected this structure to optimization using DFT and discovered it to be 0.15 eV lower in energy
compared to the initial 2N_NH2_2H state. Even after considering the
free energy correction at T = 673 K and P = 20 atm, the new state’s free
energy is found to be 0.11 eV lower than the original state <sup>23</sup> .
Our HDRL-FP calculations led to the discovery of a previously
unidentified lower-energy state not found in prior research <sup>23</sup> . As shown
in Fig. S4 (SI), this state positions both H atoms at the top-shallow-deep
(TSD) sites. The previous study <sup>23</sup> used the NEB method to identify the
reaction path, with the H atom migrating over a shorter distance. Due
to the NEB method’s focus on shorter paths, longer migration
mechanisms remained elusive. Starting from this new energy state, the
H atom surmounts another barrier (~1.0 eV) before reaching the termination state (Fig. 3d). Unlike the LH mechanism, the ER mechanism
exhibits consistent energy reduction during H migration due to the
high energy state on the migration path exceeding the reaction barrier.
mechanism. d Depiction of PEL along the pathways for both LH and ER mechanisms. The Fe atoms on the top, sublayer, deep-layer, and 4th−6th layers are
represented by light blue, orange, purple, and bronze spheres, respectively. The N
and H atoms are represented by blue and cyanspheres, respectively. The small cyan
spheres represent the trajectory of H migration. The color bar indicates the energy
levels of the grid points (subfigure a) used in the reinforcement learning (RL). The
points in subfigure (a) are color-coded based on their energy. Source data for
a, d are provided as a Source Data file. The structure files in b, c are provided in
Supplementary Data 1.
NEB calculation using RL insight to determine the
transition state
The HDRL-FP approach, which fixes all atoms except the migrated one,
may yield approximate transition states and reaction energy barriers.
To identify the exact transition state and obtain accurate reaction
barriers for both LH and ER mechanisms, we deployed NEB simulations
using pathways predicted by RL. By utilizing pathways generated by
RL, NEB simulations can more effectively pinpoint transition states.
Figures 4 and S5 (SI) reveal identical transition state structures for both
mechanisms, each with an energy barrier of ~1.40 eV. At T = 673 K and
P = 20 atm, free energy correction reduces the barrier to 1.16 eV,
making it lower by 0.24 eV than what our prior study suggested <sup>15</sup> . The
initial reactant, derived directly from RL paths, lowers its energy after
DFT-NEB relaxation. The observation of shared transition states in LH
and ER mechanisms suggests a common key barrier, implying similar
activation energy and reaction rates, and revealing a shared transition
state. This insight suggests a shared key reaction step under realistic
conditions. The LH mechanism, though less enthalpically favored, has
a lower free energy than the ER configuration at T = 673 K and P = 20
atm (details in SI), indicating its potential plausibility under experimental conditions.
Free energy diagram for the reaction network of ammonia
synthesis on the Fe(111)
Our reconstructed free energy diagram at T = 673 K and P = 20 atm
depicts the entire reaction network for N2 + 3H2 = > 2NH3, as shown in
Fig. 5. A modification from 2N_NH2_2H to 2N_NH3_H differentiates it
from the prior full reaction network <sup>15</sup> . The discovery of a new configuration (Figure S4 of SI) reduced the relative free energy of 2N_NH2_2H
configuration from 0.07 eV to −0.04 eV, and the transition state energy
dropped by 0.35 eV. Consequently, this hydrogenation step no longer
serves as the rate-determining step as earlier believed <sup>15</sup> . Instead, the
3N_NH2_2H configuration’s hydrogenation step with a 1.47 eV free
energy barrier at 673 K becomes the rate-determining step. Our prior
study overlooked this step due to inability in predicting the complex
hydrogenation transition state. HDRL-FP thus presents a more plausible reaction path <sup>15</sup> . We estimated the reaction rate at T = 673 K using
transition state theory to be 137.7 s <sup>−1</sup>, nearly doubling the previous
estimate of 58.2 s <sup>−1</sup> . Our predicted rate surpasses experimental values,
(a) LH Mechanism (b) ER Mechanism
TS TS
1.40 eV 1.40 eV
Product: 2N_NH�_H
Reactant
Reactant
Product:2N_NH�_H
<u>Reference:2N_NH�_2H</u>
Fig. 4 | Overview of the transition-state analysis and energy alterations along
the reaction pathway of hydrogen migration from 2N_NH2_2H to 2N_NH3_H
based on reinforcement learning (RL)-guided nudged elastic band (NEB)
simulations. a Langmuir-Hinshelwood (LH) mechanism and (b) Eley-Rideal (ER)
mechanism. Notably, the view angles differ to better illustrate the two reaction
mechanisms. The reactant’s reference energy is derived from the new 2N_NH2_2H
<u>Reference: 2N_NH�_2H</u>
configuration identified through the RL. The initial reactants before NEB calculations exhibit a higher energy compared to the reference as they are not optimized
in RL. N and H atoms are depicted as blue and cyan spheres, respectively, while Fe
atoms in the top, sublayer, deep-layer, and 4th-6th layers are represented by light
blue, orange, purple, and bronze spheres, respectively. TS represents the transition
state. The structure files are provided in Supplementary Data 1.
Previous TS <sup>ref:15</sup>
TS (1.47)
1.32*
0.61
1.13 1.12 1.21
1.37 1.32*
1.19 TS (1.11)*
N2 TS (1.02)
1.12
TS (1.01)
TS (1.11)*
½ H2
0.64
NH3
TS (0.90)
H2
(1.47)
TS (1.12)
NH3
TS (0.59)
3N.NH2.2H
0.56
H2
3N.NH3.H
3N.NH2 0.29 3N.H0.08
H2
4N
-0.42
2N.NH.2H
0.64
½ H2
2N.NH3.H 0.48 2N.H.N2(γ)
0.35
0.45
2N.NH2.2H
-0.04
2N.NH3.H
0.35
2N.H.N2(α)
0.53
2N.N2(α’)
0.59
H2
2N.NH
0.56
2N.H
0.48
3N.NH.H
0.02
3N.NH2
-0.54
3N.NH2
0.00
2N.NH2.H
-0.05
Fig. 5 | Free energy landscape (unit eV) of the reaction network of the Haber
−Bosch process on the Fe(111) surface. The dashed TS from 2N_NH2_2H to
2N_NH3_H is from previous study <sup>15</sup>, which fails to predict the correct TS and the
2N_NH2_2H configuration with a lower energy. The thick downward arrows represent the introduction of H2 into the surface, while the thick upward arrows indicate
likely due to the presence of surface impurities that inhibit reaction
sites in experiments <sup>26,27</sup> . It is worth noting that the free energy corrections in the present work have been calculated using the harmonic
approximation. At elevated temperatures, anharmonic effects are
anticipated, though the extent and the temperature at which they
become significant vary according to the specific process being
examined. Given that our free energy diagram is estimated at a high
reaction temperature of 673 K, it becomes essential for future research
to explore the impact of anharmonic effects on the free energy barriers. This exploration could be effectively conducted using molecular
dynamics techniques <sup>33</sup> .
More case studies
To enhance the assessment of HDRL-FP’s generalizability, we explored
two nitrogen diffusion-related processes in the Haber-Bosch (H-B)
procedure: (1) the diffusion of nitrogen atoms on the Fe(111) surface,
and (2) the diffusion of N2 molecules. These diffusion processes,
involving N and N2, might correlate with nitrogen coverage on the
Fe(111) surface and the adsorption or desorption dynamics of N2
molecules from it. Understanding the mechanisms and barriers associated with N/N2 diffusion is crucial. Significantly, the entire study
employed a consistent set of hyperparameters (refer to Table S2 in
the desorption of NH3 from the surface. The purple, light blue, and dark blue
shadow lines represent NH3 desorption from the Fe(111) surface, H addition to the
Fe(111) surface, and N2 addition to the Fe(111) surface, respectively. Part of this
figure is from ref. 15.
the Supplementary Information), initially established for the hydrogenation analysis discussed in section, evaluation of agent, without any
additional adjustments.
Initially, the N atom bridges two apex Fe atoms on the Fe(111)
surface. Our findings indicate a diagonal diffusion trajectory, occurring
between a top-layer Fe atom and its sublayers as N transitions between
bridge sites, as shown in Fig. 6a, b. (This diffusion path aligns with NEB
calculations (Fig. S6 of SI) for N diffusion. Both HDRL-FP and NEB
predict two energy barriers during N diffusion, with the higher barrier
occurring during N’s transition through the intermediate region
between top and sublayer Fe atoms.
Investigating the performance of our HDRL-FP framework under
varying chemical environments is crucial, especially considering the
environments in which atoms are allowed to relax. It is important to
note that maintaining the configurations of the initial reactants and
final products necessitates the implementation of certain constraints.
Therefore, we have employed N diffusion as an example to examine
this aspect. Figure 6c, d shows a comparative analysis of the unrelaxed
and relaxed calculation outcomes. Specifically, Fig. 6c depicts the
results from the calculation with nitrogen relaxation along the direction perpendicular to the surface, displaying a diffusion pathwaythat is
strikingly similar to the unrelaxed scenario shown in Fig. 6a. A notable
(a) N diffusion path (no relaxation) (c) N diffusion path (relaxation)
(b) N diffusion from RL (no relaxation) (d) N diffusion from RL (relaxation)
Step
Fig. 6 | N diffusion pathway on Fe(111) surface and corresponding potential
energy profiles determined by reinforcement learning. The identified N diffusion path on the bare Fe(111) surface as determined by reinforcement learning (RL):
(a, c) The diffusion path for the N atom from one bridge site to the other bridge site.
The N atom in the initial and final state is represented by blue sphere, while the
small blue spheres represent its positions along the diffusion path as identified by
RL. The Fe atoms in the top, sublayer, deep-layer, and 4th–6th layers are
observation is that the potential energy landscape in the relaxed calculation (Fig. 6d) exhibits a significantly smoother profile compared to
its unrelaxed counterpart (Fig. 6b). Interestingly, both the relaxed and
unrelaxed conditions reveal a local minimum along the reaction path,
indicative of the nitrogen atom’s position between the subsurface and
the third Fe layer. This revelation emphasizes the value of unrelaxed
calculations in yielding vital insights for chemical reactions, while also
offering a more straightforward implementation within the HDRL-FP
framework. We also compare the HDRL-FP with other methods of
finding reaction path and the details are in the SI.
To evaluate the performance of HDRL-FP for chemical reactions
with multiple atoms, we studied N2 molecule diffusion to find the
reaction pathway and barriers at top Fe sites. N2 migration for the twoatom scenario involves multiple reaction steps and represents one of
the crucial rate-determining steps <sup>23</sup> . Thus, we demonstrate our HDRLFP model’s applicability to two-atom systems through the transition
from one γ-N2 configuration (on top Fe atom) to another γ-N2 configuration among the N2 related reactions. Given that the primary focus of
the current manuscript is to establish the method and concentrate on
reactions related to single-atom motion, we will defer the investigation
of other N2-related reaction steps to future research. We conducted
extensive DFT simulations considering six degrees of freedom for the
two atoms, using a grid spacing of 0.9 Å, notably smaller than the Fe-N
bond distance of 1.8 Å. Figure 7 illustrates the varying convergence
rates of the HDRL-FP algorithm in processing N2 diffusion, depending
on the number of parallel environment replicas. The results demonstrate that simulations with more concurrent environments reach
global convergence quicker and more reliably. In particular, simulations with 20, 100, and 500 environment replicas achieve global
optimum in 45, 25, and 15 minutes, respectively, whereas those with
Step
represented by light blue, orange, purple, and bronze spheres, respectively. The RL
with no relaxation in DFT is displayed in a and the RL with relaxation in density
functional theory (DFT) is in c. b, d The potential energy profile for the snapshots
taken along the diffusion path of N atom. The RL with no relaxation in DFT is shown
in b and the RL with relaxation in DFT is in d. The arrows in a, c represent the
diffusion path of N atom on Fe(111) surface. Source data for b, d are provided as a
Source Data file. The structure files in a, c are provided in Supplementary Data 1.
four or fewer replicas exhibit convergence challenges. These outcomes again highlight the critical role of extensive parallelism offered
by our framework for efficiently exploring diverse reaction mechanisms through a generic RL environment representation based solely on
atomic positions. This study also confirms the effectiveness of our
approach in handling reactions involving multiple atoms.
Figure 8a displays the RL-predicted path for N2 diffusion from one
top Fe site to another. Subsequently, we performed DFT-based NEB
calculations to ascertain the reaction barriers and transition states, as
depicted in Fig. 8b. The energy barrier for N2 molecular diffusion was
found to be 0.52 eV, lower than that for an N atom diffusion on the Fe
surface, further evidencing the strength of our computational method
in two-atom scenarios.
Advances in generalizable RL framework for chemical
simulations
In this HDRL-FP framework, two significant advances are present: the
introduction of a generalizable RL representation for chemical reactions and the development of a high-throughput strategy to support
this RL simulation. One of the primary differences between this work
and previous RL method <sup>15</sup> lies in defining and modeling the “state” and
“action,” which are crucial elements in the policy πθp(at|st) that shape
the RL environment. Effective environment design, including the
specification of states and actions, is fundamental to the success of RL.
A well-crafted environment facilitates effective learning, generalization, and transferability of knowledge, ultimately leading to robust
and adaptive RL agents capable of solving complex problems. For
example, a major progress in the famous AlphaGo work was using raw
board position images as states, allowing AlphaGo to capture complex
spatial patterns and dependencies inherent in the game <sup>12</sup> .
The complexities of investigating catalytic reaction mechanisms
present a formidable obstacle to the broad application of RL across
various catalytic reactions. Prior research on applying RL to chemical
(a)
(b)
Fig. 7 | Convergence and learning speed, measured in total runtime using wallclock minutes, for the high-throughput deep reinforcement learning with first
principles (HDRL-FP) method applied to N2 diffusion on Fe(111) surface. Different numbers of concurrent environment instances were used – n = 4 in red,
n = 20 in green, n = 100 in blue, and n = 500 in yellow. Here the episodic reward in
panel a is the mean accumulated reward that two nitrogen atom actors collect from
the initial to the terminal state, and in panel b the episodic step is the average total
steps to reach the terminal state. The model was trained on a single Nvidia A100
GPU. For robustness, the depicted results are averaging over five independent runs
from scratch with different initialization seeds and the same hyperparameters. The
shadow regions represent the error bar (standard deviation) of five independent
runs in both panel a and b. Source data are provided as a Source Data file.
reactions has predominantly focused on modeling states and actions
through a simplified or semi-empirical representation specific to certain chemical reactions <sup>15,16</sup> . For example, in our previous study <sup>15</sup>, we
introduced an encoded state vector consisting of 23 elements,
accommodating a total of 20 surface sites and three gas species. To
address these limitations, our work here introduces a generalizable
approach that defines reaction-agnostic states using the Cartesian
coordinates of atom positions. States are represented by the normalized coordinates of the migrating atom and its Euclidean distance to
the target position. Actions are defined as stepwise movements of the
migrating atom in six possible directions within a 3-dimensional grid.
This method avoids the laborious and unscalable semi-empirical
modeling of reaction-specific environments employed in previous
methods.
Our approach, featuring a generalizable representation of states
and actions, is boosted by our evolutionary framework, HDRL-FP, for
high-throughput (supporting thousands of concurrent RL environments) and low-cost computations (running on a single GPU). This
framework significantly diminishes correlations and noise between
exploration steps in RL, ensuring training stability, accelerating convergence, and mitigating the need for fine-tuning hyperparameters.
Without this efficient computational architecture for high-throughput
processing, RL applied to a generalizable environment representation
based on atomic coordinates would struggle to converge due to its
computational complexity, high noise, strong correlation, and nonstationarity of chemical reactions. Quantitative studies on RL simulations operating with varying numbers of concurrent environments
show that simulations with an increased number of concurrent environments achieve global convergence faster and more reliably. This
highlights the crucial role of massive parallelism in facilitating effective
RL exploration of a wide array of reaction mechanisms through a
generalizable environment representation constructed solely from
atomic positions.
In summary, we have developed HDRL-FP, an AI framework that
can autonomously map complex catalytic reaction paths from scratch.
This method circumvents the need for tedious empirical or semiempirical design of reaction-specific representations of RL environments. Instead, the RL environment is solely reliant on PEL derived
from first principles and is intrinsically defined by atomic positions (or
configurations). This model’s broad applicability and cost-efficiency
stem from its capability for high-throughput computations, allowing
rapid convergence across a diverse set of catalytic reactions. This
feature reduces correlation between RL exploration steps, ensures
training stability, accelerates convergence, and alleviates the need for
(a) N� diffusion path from RL (b) N� diffusion path from NEB
Fig. 8 | Reinforcement learning and nudged elastic band determined N2 diffusion pathway and reaction barriers on Fe(111) surface. The identified N2 diffusion
path on the bare Fe(111) surface from the one top site to another top site as
determined by reinforcement learning (RL) (a), followed by the nudged elastic
band (NEB) calculation (b) to determine the reaction barriers and transition state.
The Fe atoms in the top, sublayer, deep-layer, and 4th–6th layers are represented
Step
by light blue, orange, purple, and bronze spheres, respectively. The N atom is
represented by the blue sphere. In panel a, the black arrow indicates the direction
of N2 diffusion. In panel b, the blue squares represent the calculated energetics
along the NEB reaction path, while the dashed line represents the corresponding
fitting curve. Source data for b are provided as a Source Data file. The structure files
are provided in Supplementary Data 1.
hyperparameter fine-tuning. HDRL-FP can adapt to a wide range of
catalytic reactions depending on the complexity of the environments.
Our current approach works well for both non-relaxation environments and relaxation environments with well-defined constraints (e.g.,
relaxing along one direction). Combining HDRL-FP with proper constraint design will be an important future research direction for
exploring catalytic reaction mechanisms in complex environments.
Using NH3 synthesis via hydrogenation reactions on the Fe catalyst as an illustrative example, HDRL-FP accurately predicted a crucial
hydrogenation step’s reaction path in an hour on a single GPU.
Remarkably, this path exhibits a lower reaction barrier than those
predicted by direct NEB calculations <sup>15,23</sup>, signifying our HDRL-FP framework’s potential in predicting complex chemical reaction pathways.
The successful application of HDRL-FP to the H-B enables the investigation of complex catalytic chemical reactions automatically, offering
a promising approach for future research and discoveries.
Methods
Policy and value networks
The policy network, denoted as πθp atjst
-
The policy network, denoted as πθp atjst, provides the probability
distribution of actions at given the state st. Here the subscript θp
represents the set of parameters that define the policy. The current
state vector st, as defined in the Framework Development section,
represents a feasible configuration along the reaction path. The value
network, V θV ðstÞ, approximates the expected value of the return under
the policy Eπ½Gtjst�, given the state st. Here the return Gt at step t up to
the terminal step T is defined as the sum of discounted future rewards
rt + 1,rt + 2, . . .,rT with the discount factor γ = 0.99, Gt = <sup>P</sup> τ <sup>K</sup> = t + 1 <sup>γτ�t�1r</sup> τ <sup>.</sup>
rt + 1,rt + 2, . . .,rT with the discount factor γ = 0.99, Gt = <sup>P</sup> τ <sup>K</sup> = t + 1 <sup>γτ�t�1r</sup> τ <sup>.</sup>
It was collected during rollout sampling, as detailed in the Rollout
Sampling section below.
Our policy and value networks are composed of fully connected
deep neural networks (DNNs) <sup>15</sup> . These DNNs share a common internal
stack of hidden layers but have different final output layers. In this
study, the two hidden layers consist of 50 neurons each, activated by
the ReLU function. The output layer of policy network has 6 neurons
and utilizes the Softmax activation function to map to the probability
distribution of the 6 possible actions. The value network, outputs a
scaler value that estimates the return. The model parameters θp and θV
are initialized randomly, with no prior knowledge about the environment or the reaction domain.
The deep policy and value models in our framework are shared
among all environment instances and are hosted in the global memory
of the GPU device. Each environment instance runs on a separate GPU
block and maintains its own reference to the deep models. The policy
and value networks are trained using the actor-critic policy gradient
algorithm <sup>17,28</sup> . During training, the parameters θp and θV are updated to
maximize the expected sum of discounted future rewards, contingent
on successfully reaching the final state. In particular, the value net
�� -
work, V θV st, is utilized to update the policy πθp atjst, with the policy
on successfully reaching the final state. In particular, the value net
�� -
work, V θV st, is utilized to update the policy πθp atjst, with the policy
gradient pointing towards improving the policy to favor actions that
yield higher expected returns <sup>15</sup> . To improve the value network, the
parameters θV are updated to minimize the mean square error
between the current value function, V θV ðstÞ, and the observed return,
Gt. We employ proximal policy optimization <sup>34</sup> and the Adam optimizer
to compute policy gradients <sup>35</sup> .
reaching the final state. In
��
st, is utilized to update the policy πθp atjst
Rollout sampling
For each instance of the environment, at each subsequent step t, we
collect rollout data using Monte Carlo (MC) method. Based on the
current state st, the actor selects an action at drawn from the distribution generated by the policy network πθp . By executing the action,
the model transits to the next state st + 1 and receives the corresponding reward. The rollout continues until reaching either the
terminal state or the maximum step of a rollout, K. In our experiment,
K is set to be 500. If the environment ends, our framework immediately
resets it and starts the next rollout if the total number of steps is still
less than K. Synchronization among all environment instances is not
required at this stage. At the end of each rollout, training samples
consisting of tuples ðst, at, GtÞ are collected. Once rollout data is
gathered from all environments and the training batch is full, we perform training on large experience batches of size of 500 × N in-place,
where N is the total number of environment instances. The task
coordinator synchronizes all atom actors for all environments before
updating the deep policy models, ensuring that all actors start the next
iteration with the same updated policy.
Data transfer efficiency
Our workflow begins with a one-time transfer of data from the CPU
host to the global memory of the GPU device. This data comprises
environment configuration parameters, deep policy models, the
potential energy surface computed from first principles, and placeholders for experience batches containing observations, actions, and
rewards. Once transferred, no additional data is copied from the host
to the device, minimizing CPU-GPU data communication. Throughout
the rollout and training periods, data is collected directly into the
placeholders without the need for data transfer or copying between
the host and the device, or within the device.
DFT simulations
DFT simulations were conducted utilizing the VASP software (version
5.4) with plane-wave basis sets for the electronic wavefunction <sup>36–39</sup> . A
500-eV energy cutoff for plane wave expansion was consistently
applied across all calculations. The Perdew-Burke-Ernzerhof (PBE)
exchange and correlation (xc-) functional <sup>40,41</sup> was employed for
describing electronic interactions, while Van der Waals interactions
were addressed using the D3 corrections <sup>42</sup> . The Methfessel-Paxton
scheme was implemented for electron partial occupation, with a 0.2 eV
electronic smearing width. Spin-polarization was incorporated in all
calculations to accurately predict Fe atom magnetic moments. Energy
convergence for the self-consistent field and force convergence for
ionic steps were set at 10 <sup>−6</sup> eV and 10 <sup>−3</sup> eV/Å, respectively. The first
Brillouin zone was sampled through the Γ-centered mesh method,
using a 4 × 4 × 1 K-point grid in slab calculations. The simulation setup
adheres to previous studies <sup>15,23</sup> .
The Fe-bcc(111) slab model comprised a (2 × 2) unit cell in the (111)
plane and six layers perpendicular to the plane. Geometry optimization allowed the top three layers to relax while the bottom three
remained fixed. A 15 Å vacuum was included to minimize interactions
between period images. The model size effects were evaluated by
a nine-layer slab model in the previous study <sup>15</sup> . Phonon modes
obtained from the harmonic approximation and finite displacement
approach <sup>43,44</sup> were used to calculate the free energy at finite temperature, which in turn was used to compute the vibrational entropy as
a function of temperature. The free energy of gas phases (N2, H2, and
NH3) was sourced from previous work using the same computational
parameters (PBE-D3) <sup>15,23</sup> . In gas phase calculations, the zero point
energy (ZPE) is derived from the vibrational levels, which are described
as simple harmonic oscillators. The specific heat corrections to the
enthalpy are calculated from 0 to T. The entropy (S), which includes
contributions from vibrational, rotational, and translational modes, is
evaluated from these same levels. This computational setup has been
shown to accurately describe the H-B reactions on both Fe-bcc(111) and
Fe-bcc(211) reconstructed surfaces <sup>15,45</sup> .
Transition state searches between initial and final states were
initially carried out using the climbing Nudged Elastic Band (cNEB)
method <sup>46</sup>, followed by refinement via the Dimer approach <sup>47</sup> . Four
images were employed in cNEB calculations. Similar to previous
studies <sup>15,23</sup>, a negative frequency was obtained to confirm the transition
state from these calculations. The setup of DFT simulations in this
work is similar to our previous work <sup>15,23</sup> .
Reporting summary
Further information on research design is available in the Nature
Portfolio Reporting Summary linked to this article.
Data availability
All data generated in this study are provided in the Supplementary
Information/Source Data file. The structures for DFT simulations are
provided in the Supplementary Data file. These structures are visualized using Vesta (veresion 3.5.8) <sup>48</sup> in this paper. Source data are provided with this paper.
Code availability
The multi-agent reinforcement learning code is explained in ref. 22 and
the WarpDrive (version 2.7) is available at [https://github.com/](https://github.com/salesforce/warp-drive)
[salesforce/warp-drive](https://github.com/salesforce/warp-drive) and hosted by PyPI (the official third-party
[package repository for the Python programming language) at https://](https://pypi.org/project/rl-warp-drive/)
[pypi.org/project/rl-warp-drive/.](https://pypi.org/project/rl-warp-drive/) The environment code is available at
[https://github.com/kungfulan/hdrl-fp](https://github.com/kungfulan/hdrl-fp.) <sup>49</sup> .
References
1. Mattos, L. V., Jacobs, G., Davis, B. H. & Noronha, F. B. Production of
hydrogen from ethanol: review of reaction mechanism and catalyst
deactivation. Chem. Rev. 112, 4094–4123 (2012).
2. Shao, M., Chang, Q., Dodelet, J. & Chenitz, R. Recent advances in
electrocatalysts for oxygen reduction reaction. Chem. Rev. 116,
3594–3657 (2016).
3. Crisenza, G. E. M. & Melchiorre, P. Chemistry glows green with
photoredox catalysis. Nat. Commun. 11, 803 (2020).
4. Melián-Cabrera, I. Catalytic materials: concepts to understand the
pathway to implementation. Ind. Eng. Chem. Res. 60,
18545–18559 (2021).
5. Ardagh, M. A. et al. Catalytic resonance theory: parallel reaction
pathway control. Chem. Sci. 11, 3501–3510 (2020).
6. Taylor, C. J. et al. A brief introduction to chemical reaction optimization. Chem. Rev. 123, 3089–3126 (2023).
7. Shi, X. et al. Dynamics of heterogeneous catalytic processes at
operando conditions. J. Am. Chem. Soc. Au 1, 2100–2120 (2021).
8. Chen, B. W., Xu, L. & Mavrikakis, M. Computational methods in
heterogeneous catalysis. Chem. Rev. 121, 1007–1048 (2020).
9. Davis, M. E. & Davis, R. J. Fundamentals Of Chemical Reaction
Engineering (Courier Corporation, 2012).
10. Senior, A. W. et al. Improved protein structure prediction using
potentials from deep learning. Nature 577, 706–710 (2020).
11. Hermann, J., Schätzle, Z. & Noé, F. Deep-neural-network solution of
the electronic Schrödinger equation. Nat. Chem. 12, 891–897
(2020).
12. Silver, D. et al. Mastering the game of Go with deep neural networks
and tree search. Nature 529, 484–489 (2016).
13. Tu, Z., Stuyver, T. & Coley, C. W. Predictive chemistry: machine
learning for reaction deployment, reaction development, and
reaction discovery. Chem. Sci. 14, 226–244 (2023).
14. Wen, M. et al. Chemical reaction networks and opportunities for
machine learning. Nat. Comput. Sci. 3, 12–24 (2023).
15. Lan, T. & An, Q. Discovering catalytic reaction networks using deep
reinforcement learning from first-principles. J. Am. Chem. Soc. 143,
16804–16812 (2021).
16. Yoon, J. et al. Deep reinforcement learning for predicting kinetic
pathways to surface reconstruction in a ternary alloy. Mach. Learn.:
Sci. Technol. 2, 045018 (2021).
17. Mnih, V. et al. Asynchronous methods for deep reinforcement
learning. Proc. Mach. Learn. Res. 48, 1928–1937 (2016).
18. Zhang, K., Koppel, A., Zhu, H. & Başar, T. Global convergence of
policy gradient methods to (almost) locally optimal policies. SIAM J.
Control Optim. 58, 3586–3612 (2020).
19. Hoffman, M. W. et al. Acme: a research framework for distributed
[reinforcement learning. arXiv https://doi.org/10.48550/arXiv.2006.](https://doi.org/10.48550/arXiv.2006.00979)
[00979 (2020).](https://doi.org/10.48550/arXiv.2006.00979)
20. Pretorius, A. et al. Mava: a research framework for distributed multi[agent reinforcement learning. arXiv https://doi.org/10.48550/](https://doi.org/10.48550/arXiv.2107.01460)
[arXiv.2107.01460 (2021).](https://doi.org/10.48550/arXiv.2107.01460)
21. Shen, H., Zhang, K., Hong, M. & Chen, T. Towards understanding
asynchronous advantage actor-critic: Convergence and linear
[speedup. arXiv https://doi.org/10.48550/arXiv.2012.15511 (2002).](https://doi.org/10.48550/arXiv.2012.15511)
22. Lan, T., Srinivasa, S., Wang, H. & Zheng, S. WarpDrive: fast end-toend deep multi-agent reinforcement learning on a GPU. J. Mach.
Learn. Res. 23, 1–6 (2022).
23. Qian, J., An, Q., Fortunelli, A., Nielsen, R. J. & Goddard, W. A. III
Reaction mechanism and kinetics for ammonia synthesis on the
Fe(111) surface. J. Am. Chem. Soc. 140, 6288–6297 (2018).
24. An, Q., Shen, Y., Fortunelli, A. & Goddard, W. A. III QM-mechanismbased hierarchical high-throughput in silico screening catalyst
design for ammonia synthesis. J. Am. Chem. Soc. 140,
17702–17710 (2018).
25. Schlögl, R. Catalytic synthesis of ammonia – a “never-ending
story”? Angew. Chem. Int. Ed. 42, 2004–2008 (2003).
26. Ertl, G. Reactions at surfaces: from atoms to complexity (Nobel
Lecture). Angew. Chem. Int. Ed. Engl. 47, 3524–3535 (2008).
27. Chen, J. G. et al. Beyond fossil fuel–driven nitrogen transformations.
Science 360, eaar6611 (2018).
28. Sutton, R. S. & Barto, A. G. Reinforcement learning: An introduction.
2nd edn. (MIT Press, 2018).
29. Stoltze, P. & Nørskov, J. K. Bridging the “pressure gap” between
ultrahigh-vacuum surface physics and high-pressure catalysis.
Phys. Rev. Lett. 55, 2502–2505 (1985).
30. Ertl, G. Surface science and catalysis — studies on the mechanism
of ammonia synthesis: the PH Emmett award address. Catal. Rev.
Sci. Eng. 21, 201–223 (1980).
31. Spencer, M. S. On the rate-determining step and the role of
potassium in the catalytic synthesis of ammonia. Catal. Lett. 13,
45–53 (1992).
32. Fuller, J., Fortunelli, A., Goddard, W. A. III & An, Q. Vibrational
spectroscopy signatures of catalytically relevant configurations for
N2 reduction to NH3 on Fe surfaces via density functional theory. J.
Phys. Chem. C 125, 27919–27930 (2021).
33. Yang, M., Raucci, M. & Parrinello, M. Reactant-induced dynamics of
lithium imide surfaces during the ammonia decomposition process.
Nat. Catal. 6, 829–836 (2023).
34. Schulman, J., Wolski, F., Dhariwal, P., Radford, A. & Klimov, O.
[Proximal policy optimization algorithms. arXiv https://doi.org/10.](https://doi.org/10.48550/arXiv.1707.06347)
[48550/arXiv.1707.06347 (2017).](https://doi.org/10.48550/arXiv.1707.06347)
35. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization.
[arXiv https://doi.org/10.48550/arXiv.1412.6980 (2014).](https://doi.org/10.48550/arXiv.1412.6980)
36. Kresse, G. & Hafner, J. Ab initio molecular dynamics for liquid
metals. Phys. Rev. B 47, 558–561 (1993).
37. Kresse, G. & Furthmüller, J. Efficiency of ab initio total energy calculations for metals and semiconductors using a plane-wave basis
set. Comput. Mater. Sci. 6, 15–50 (1996).
38. Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio
total-energy calculations using a plane-wave basis set. Phys. Rev. B
54, 11169–11186 (1996).
39. Kresse, G. & Joubert, D. From ultrasoft pseudopotentials to the
projector augmented-wave method. Phys. Rev. B 59,
1758–1775 (1999).
40. Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient
approximation made simple. Phys. Rev. Lett. 77, 3865–3868 (1996).
41. Perdew, J. P., Burke, K. & Ernzerhof, M. Erratum: Generalized gradient approximation made simple. Phys. Rev. Lett. 78, 1396–1396
(1997).
42. Johnson, E. R. & Becke, A. D. A Post-Hartree-Fock model of intermolecular interactions: Inclusion of higher-order corrections. J.
Chem. Phys. 124, 174104 (2006).
43. Togo, A., Oba, F. & Tanaka, I. First-principles calculations of the
ferroelastic transition between rutile-type and CaCl2-type SiO2 at
high pressures. Phys. Rev. B 78, 134106 (2008).
44. Dove, M. T. Introduction to Lattice Dynamics (Cambridge University
Press, 1993).
45. Fuller, J., Fortunelli, A., Goddard, W. A. III & An, Q. Reaction
mechanism and kinetics for ammonia synthesis on the Fe (211)
reconstructed surface. Phys. Chem. Chem. Phys. 21,
11444–11454 (2019).
46. Henkelman, G., Uberuaga, B. P. & Jónsson, H. A climbing image
nudged elastic band method for finding saddle points and minimum energy paths. J. Chem. Phys. 113, 9901–9904 (2000).
47. Henkelman, G. & Jónsson, H. A dimer method for finding saddle
points on high dimensional potential surfaces using only first derivatives. J. Chem. Phys. 111, 7010–7022 (1999).
48. Momma, K. & Izumi, F. VESTA 3 for three-dimensional visualization
of crystal, volumetric and morphology data. J. Appl. Crystallogr. 44,
1272–1276 (2011).
49. Lan, T., Wang, H. & An, Q. Enabling high throughput deep reinforcement learning with first principles to investigate catalytic reac[tion mechanisms. GitHub https://doi.org/10.5281/zenodo.](https://doi.org/10.5281/zenodo.12021035)
[12021035 (2024).](https://doi.org/10.5281/zenodo.12021035)
Acknowledgements
Q.A. was supported by the start-up grant from Iowa State University and
the simulations were performed at ISU High Performance Computing
clusters. We also thank the open-source software projects supported by
Salesforce A.I. Research.
Author contributions
Q.A. and T.L. proposed the idea and designed the work. T.L. and Q.A.
performed the DFT and RL simulations, as well as wrote the manuscript.
T.L. H.W. and Q.A. analyzed the data and discussed the results. All
authors commented on the manuscript.
Competing interests
The authors declare no competing interests.
Additional information
Supplementary information The online version contains
supplementary material available at
[https://doi.org/10.1038/s41467-024-50531-6.](https://doi.org/10.1038/s41467-024-50531-6)
Correspondence and requests for materials should be addressed to
Qi An.
Peer review information Nature Communications thanks Flavio S. Brigiano, and the other, anonymous, reviewer(s) for their contribution to the
peer review of this work. A peer review file is available.
Reprints and permissions information is available at
[http://www.nature.com/reprints](http://www.nature.com/reprints)
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open Access This article is licensed under a Creative Commons
Attribution 4.0 International License, which permits use, sharing,
adaptation, distribution and reproduction in any medium or format, as
long as you give appropriate credit to the original author(s) and the
source, provide a link to the Creative Commons licence, and indicate if
changes were made. The images or other third party material in this
article are included in the article’s Creative Commons licence, unless
indicated otherwise in a credit line to the material. If material is not
included in the article’s Creative Commons licence and your intended
use is not permitted by statutory regulation or exceeds the permitted
use, you will need to obtain permission directly from the copyright
[holder. To view a copy of this licence, visit http://creativecommons.org/](http://creativecommons.org/licenses/by/4.0/)
[licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2024