Manuscript Offprint
arXiv:2609.17339Local energetic coupling enhances the expressivity of chemical computation
Marco Tuccio, Jason W. Rocks, and Joshua E. Goldford
Dayhoff Labs, Inc., Cambridge, MA 02138
Complex Systems Lab, Universitat Pompeu Fabra, 08003, Barcelona, Spain.
Living systems compute with chemistry by mapping environmental signals onto specific internal chemical states. Despite recent advances in molecular programming, it remains unclear which physicochemical features control the computational expressivity of chemical systems. Here we inverse-design thermodynamically consistent chemical reaction networks whose steady-state response to an environmental input computes a target nonlinear function. Using implicit differentiation we train the free-energy landscape directly: standard chemical potentials, transition-state energies and thermodynamic drives. Increasingly large networks generated by elementary ligation and cleavage steps fit increasingly complex nonmonotonic polynomial functions, with expressivity scaling logarithmically with network size, predicted primarily by the number of reactions. Training individual energetic parameter classes reveals that internal thermodynamic drives, capable of breaking detailed balance, dominate trainability, with comparable performances achieved only by pairs of parameter classes. These results identify nonequilibrium drive as the most effective single resource for steady-state computational expressivity in chemical reaction networks.
Cells map the molecular composition of their environment onto specific internal chemical states, a form of computation carried out by chemistry itself. Bacteria track chemoattractant gradients and adapt their sensitivity through receptor methylation [1, 2], quorum-sensing circuits convert cell density into coordinated gene expression [3], and morphogen gradients are read out into distinct cell fates during development [4, 5]. The same behavior can be built from scratch in synthetic systems, including engineered gene circuits such as toggle switches and oscillators [6, 7], DNA strand-displacement networks that implement logic and even neural-network classification [8–11].
Across both natural and engineered examples, the same questions arise. What are the physicochemical rules and constraints that govern such chemical computation? Which input-output behaviors are or are not computable by a given chemical system, and what determines the limits on expressivity? Answering these questions would not only enable the design of more capable synthetic circuits, but also reveal the physicochemical constraints that have guided the evolution of computation in living systems.
To answer these questions faithfully, two requirements must be met: a model must be grounded in the real physical chemistry of reactions, and it must admit a characterization of what the system can and cannot compute. Existing work tends to secure one at the cost of the other. Stochastic thermodynamics derives physically grounded bounds on the energetic cost of chemical computation [12–14], but says nothing about the expressiveness of that computation. For Markov jump processes, which approximate linear unimolecular chemical reaction networks, expressivity scales with nonequilibrium driving and is set by the number of reactions a single input modulates [15]. Chemical Reaction Network Theory studies steady-state structure directly and could in principle predict which responses a network admits [16, 17], but its closed-form results hold only for restricted structural classes [18]. The very richness that makes a chemistry realistic is what puts it beyond the reach of theorems and closed-form results, calling for a computational and numerical approach instead. The two dominant computational approaches make opposite compromises: constraint-based methods such as flux balance analysis [19] reach genome scale by discarding kinetics altogether, while kinetic models [20] retain rate laws at the cost of parameters that are difficult to identify and rarely tractable beyond small pathways.
Molecular programming shows what idealized chemistries can be built to do [9, 11, 21–26], but is often detached from real physical chemistry in four main ways. First, models are often rate-independent, with behavior determined by network topology alone [22, 27]; where kinetics are considered, networks are assembled by hand from computational primitives in the manner of electronic circuits. Second, reactions carry no notion of transition-state energies, chemical potential differences or free-energy landscapes [9, 28, 29], and are most often arrays of irreversible and autocatalytic steps [21, 24, 26]. Third, such reactions are not thermodynamically consistent, and work is implicitly injected without bound [24, 30, 31]. Fourth, inputs are typically encoded as initial concentrations that set the starting point of the ODE dynamics, without sustained coupling to the environment [9, 10, 23, 28, 29, 31]. Individually these are convenient modeling choices, but together they place the model outside the physics whose limits we set out to measure. A network that injects work without bound or ignores detailed balance cannot speak to what physical chemistry permits, nor can it be mapped onto a reaction system that could be realized in a lab. Restoring these constraints is what makes both the theoretical question and an experimental test well-posed.
A)
B)

C)
D)
E)

F)
FIG. 1. (A) Cartoon of a ligation–cleavage polymerization network in a Continuously Stirred Tank Reactor (CSTR). The network contains every sequence that can be assembled from the specified alphabet size A up to a maximum length L, together with all ligation and cleavage reactions among them. (B) Parameterization of the reaction kinetics in terms of standard chemical potentials , transition-state energies , and thermodynamic drives , which together set the effective activation barriers in the ligation (+) and cleavage (-) directions. (C) Schematic of the training loop. The steady-state response is computed as a function of the monomer reservoir concentration, and the mean squared error against the target function is backpropagated to the reaction parameters, which are updated with Adam. (D) A typical training trajectory for an abcdef3 network with N = 258 species and R = 462 reactions, fit to a highly oscillatory target: the loss over training steps, with snapshots of the response at selected steps. (E) Example topology/target pairs, including several smooth nonmonotonic targets and a parametric fit with one input and two outputs tracing the von Neumann elephant. (F) A quadratic tent that ab3 fails to capture is fit almost perfectly by ab4.
Here we remove these idealizations and restore the relevant physical constraints, developing a physicochemically interpretable framework to probe the limits of computation in CRNs. To achieve a desired computational behavior, we train chemical reaction networks (CRNs) to exhibit specific chemical responses to environmental concentrations. We fit the kinetic rate constants indirectly, through a decomposition into physically interpretable energetic quantities: transition-state energies, standard chemical potentials, and thermodynamic biases. Fitting in this representation keeps every learned network thermodynamically consistent while making explicit which physical degrees of freedom the computation actually uses. We find that the capacity to fit harder targets follows an approximately log-linear relationship with network size. Studying the effects of individual physicochemical parameters highlights that thermodynamic free energy driving is the dominant source of this expressivity.
I. SETUP
We interpret CRN computing as realizing some steady-state concentration profile against changing environmental concentrations. Formally, we ask a CRN to realize a target function , where x is an environmental concentration we control freely and y is the steady-state concentration of a chosen species. Training consists of tuning the reaction network until its response matches f.
In order to keep the topological features of our reaction networks consistent while scaling their size, we focus on polymerization networks [32], a physically grounded abstraction of the reversible condensation–hydrolysis chemistry underlying biological heteropolymers such as peptides and oligonucleotides, in which a bond-forming condensation is opposed by its hydrolytic reverse [33]. A polymerization network is defined by an alphabet of monomers of size A together with a maximum polymer length L, and it comprises every ligation and cleavage reaction among the sequences that can be assembled from that alphabet up to L [Fig. 1(A)].
A ligation joins two sequences end to end into a longer one, and the reverse cleavage splits a sequence back into two contiguous fragments. The network contains one reversible reaction for every such split. The smallest nontrivial network, ab2, contains the monomers a and b along with aa, ab, ba, and bb. Because concatenation is order dependent, a single reactant pair can yield distinct products. The pair produces both ab and ba, in ratios set by the kinetics of and . Conversely, a given polymer is reached by every ligation of shorter fragments that reproduces its sequence, and all such paths are present in the topology. Network size grows in alphabet size and maximum length, so networks spanning several orders of magnitude in size follow from the same generative primitives and share the same fundamental topological features.
We describe CRNs consisting of a collection of N chemical species (index i) interacting via a set of R reversible reactions (index ) as a system of ODEs,
where is the concentration of species , is net flux of reaction with forward/backward fluxes , and is the stoichiometric matrix.
To capture continuous environmental coupling of inputs we employ a Continuously Stirred Tank Reactor (CSTR) setting. Our system is supplied with monomers via inflow, while all species are diluted at the same rate, conserving overall volume. We model both with the external flux
where is the flow (and dilution) rate per unit volume into and out of the system, and is the concentration of each species in the inflow source. Monomers are supplied by the external source simply by setting their .
All reactions in our setup obey mass-action kinetics,
where are the forward and backward rate constants and are the stoichiometric coefficients of species i among the reactants of the -direction of reaction ; thus collect the left-hand side and the right-hand side, and is product minus reactants. Throughout, we orient every reaction so that the forward (+) direction is ligation and the backward (−) is cleavage.
Directly training kinetic rates would let us tune specific thermodynamic features of the system without being able to untangle their exact energetic source and our goal is to investigate how these different sources contribute to training. To do this, we express kinetic rates in terms of effective activation free energies [34]
where where is a standard timescale we set to 1. The effective energy barriers decompose as follows [35–37]:
In this decomposition, are the standard chemical potentials, or free energies of formation for each species involved in the reaction. The terms and are reaction-specific catalytic parameters. The first parameter is the transition-state energy, or standard free energy of the activated complex, which sets absolute free energy at the top of the reaction barrier, effectively controlling the overall intrinsic speed of the reaction. While this term does not contribute to the reaction steady-state in an equilibrium closed system, it does contribute in a nonequilibrium open CSTR setup where dilution imposes a competing timescale [38], so the steady state depends on each reaction's speed relative to . The second parameter is the nonconservative thermodynamic drive or bias, representing energetic coupling (e.g., ATP hydrolysis), biasing the reaction in one direction or another. Together, , , and , provide an explicit interpretation of the rate constants in terms of each reaction's energetic landscape [see Fig. 1(B)].
We are interested in finding parameter regions where the steady-state response of the network matches a target function . The procedure to find them is depicted in Fig. 1(C) and amounts to training a CRN. We evaluate its output and update its parameters to reduce the loss given by the error between the evaluated output and the desired target. CRNs typically settle onto a fixed point at which every concentration is constant in time. In our framework, the input variable is the reservoir concentration of a designated monomer, with all other monomer reservoir concentrations held fixed. Our output is the steady-state concentration of a designated polymer produced by the system. Our fit parameters consist of all energetic terms and the dilution rate, .
We sweep the input over a grid of K values and compare the resulting response to the target at each of them. The mean squared error defines the loss,
which we minimize with a standard Adam optimizer, updating at each training step. Two choices make the required gradients cheap to obtain. First, we evaluate the steady state by root-finding rather than by integrating the often stiff CRN dynamics. Second, rather than backpropagating through the root-finder, we use the implicit function theorem to derive exact gradients [39]. We further regularize the loss to bias parameters toward regions where the fixed point is dynamically stable. Details can be found in the Appendix B.
A)

B)
C)
D)

FIG. 2. (A) Success rate against target complexity H for each of the nine polymerization networks containing up to ~500 reactions. Targets are randomly generated squared trigonometric polynomials built from harmonics up to H with random magnitudes and phases and correspond to target complexity; representative targets are drawn below the axis. In every run the input is the reservoir concentration of monomer a and the output is the steady-state concentration of ab. Each point aggregates independent experiments for each topology against a set of 50 random targets generated for each harmonic (shared across all topology for each target complexity) resulting in 4500 training runs in total. A run counts as a success when it reaches and survives a quasistatic verification of the dynamics (Appendix B6). Marker shape encodes alphabet size A and color encodes maximum polymer length L, so the two generative axes we scale can be read independently. Filled markers give , the complexity at which the success rate crosses 50%, interpolated between adjacent integer values of H. (B–D) against three measures of network size: the number of species N (B), the number of reactions R (C), and the number of trainable parameters (D), the latter comprising one and one per reaction, one per species, plus the flow rate . Capacity tracks size in all three cases, most tightly for the reaction count (Spearman ), then the parameter count ( ), then the species count ( ). Dashed lines are log-linear fits; vertical error bars propagate the binomial uncertainty in the success rates into .
Figure 1(D) shows a typical training progression, and Fig. 1(E) demonstrates the method can train CRNs to reproduce a wide variety of functional forms, including Gaussian bumps (band-pass filters), step functions (hypersensitivity), and more complicated nonmonotonic targets. A single input read out along two channels traces out a von Neumann elephant parametric curve [40] where readout species aba and bab are trained on the single input ab.
We probe this dependence systematically by matching increasingly large reaction networks against increasingly complex targets. We vary alphabet size A and maximum polymer length L of networks, obtaining 9 topologies of increasing size but under reactions, listed in Table. II. Every polymerization network contains the reaction , so throughout we fix a as the input monomer and ab as the output polymer, isolating the effect of topology from the choice of input–output pair (Appendix E5). We then generate a set of randomly generated squared trigonometric polynomials, composed of 10 classes of difficulty. Each target is built by summing harmonics terms up to a highest harmonic H, each with randomly drawn magnitudes and phases, then squaring the total. Squaring keeps the target positive and therefore admissible as a concentration readout. Target complexity is thus controlled by H, where lower H gives simpler targets and higher H superimposes more modes into more complicated targets (Appendix C). Examples appear along the x-axis of Fig. 2(A).
For each target complexity class H we generate 50 targets and run all topologies against the same targets for each class, for a total of 4500 training runs. A run counts as a success when it reaches a coefficient of determination and survives a quasistatic verification of the dynamics (Appendix B6). This verification is necessary because the root finder locates steady states independently at each input value and is blind to their stability and connectivity. A fitted response can therefore rest on unstable points rather than attractors, or stitch together coexisting branches of a multistable system that the true dynamics would not necessarily traverse. To exclude both failure modes we integrate the full dynamics along a quasistatic sweep of the input and retain only responses lying on a single, continuously connected branch. For each target complexity class H and each topology, experiments yield a success rate: the fraction of targets at complexity H that a topology fits [Fig. 2(A)]. We measure the computational expressivity of a topology as : the target complexity class at which success crosses the 50% probability, a continuous value found via interpolation (Appendix E3).
Formulated this way, we find that expressivity tracks network size almost perfectly. The correlation is strongest with the number of reactions R, where the ranking is exact (Spearman ), and nearly as strong with the number of trainable parameters ( ), while the number of chemical species N correlates somewhat less tightly ( ) [Fig. 2(B,C,D)].

FIG. 3. Parameter-freezing study on a fixed abc3 topology with species and reactions, against an ensemble of 128 random targets at target function complexity . Each bin corresponds to one trainable subset of the three parameter classes: frozen classes (snowflake) are set to zero, while the remaining classes (black) are randomly initialized near zero and trained; the flow rate is frozen throughout. Bars give the success rate, defined as in Fig. 2 ( together with a quasistatic verification of the dynamics). Among the single-class bins only the thermodynamic drives train well (60%), against 8% for the standard chemical potentials and no successes for the transition-state energies ; is the only class that is both per-reaction and antisymmetric, and so the only one that can break detailed balance on an individual reaction. Adding a second class to brings no further benefit, but the bin, with frozen, matches the drive-only bins at . The fully trainable control performs best at 73%.
III. FREEZING PARAMETER CLASSES
The tight correlation between expressivity and number of trainable parameters raises the question of which parameters carry it. The three classes are not interchangeable: they enter the kinetics differently (eq. 5) and are constrained in different ways. The standard chemical potentials are assigned per species rather than per reaction, so a single is shared across every reaction that species participates in and cannot be tuned for one reaction in isolation. The transition-state energies are per-reaction but enter both directions equally, setting reaction speed rather than thermodynamic bias. Only the drive is both per-reaction and antisymmetric, making it the only class that can break detailed balance on an individual reaction.
We test this with freezing studies. We train a fixed topology abc3 against an ensemble of 128 random targets at harmonics. For each trainable subset of the three classes, the frozen classes are initialized to zero while the remaining classes are randomly initialized and trained, with a fully trainable control [Fig. 3]. For each bin we measure trainability as the percentage of successful training rounds among the total, with success always referring to passing ODE quasistatic verification and having a sufficiently good fit with . We find that thermodynamic drives alone carry almost all of the trainability, reaching a 60% success rate compared to 8% for the standard chemical potentials and no successes for the transition-state energies . For the pairwise studies, where we unfreeze two classes, both experiments where is unfrozen exhibit no benefit from the addition of a second parameter class. However, the case where is the only frozen parameter class and and are both trainable, we achieve the same 59% success rate as the studies including . The control where all three parameter classes are trainable performs best at 73%.
IV. DISCUSSION
We have shown that physically-parameterized, fixed-topology polymerization networks, with no catalysis or autocatalysis, can be tuned to reproduce a wide range of smooth steady-state responses by adjusting reaction energies alone. We do this via inverse-design of CRNs based on implicit differentiation through steady state solutions of a root-finding algorithm, which avoids backpropagating through stiff ODE integration [30, 31]. We show fitting of various one-dimensional maps of increasing difficulty and also train a network against the von Neumann elephant [40] suggesting that our framework extends past scalar input-output maps to vector-valued target responses, which is where objectives like homeostasis and balanced growth lie. We show that the capacity to learn more complex responses scales logarithmically well with network size. However, we cannot identify more particular structural features as responsible for expressivity, since specific topological attributes are collinear with increasing network size. Future work could explore different reaction network generating primitives that enable decoupling of topological attributes of interest.
The parameter-freezing studies in Fig. 3 show that what enables a network to compute is the capacity to drive its reactions out of equilibrium and not the fine-tuning of individual transition state energies. If this holds more generally, acquiring a source of thermodynamic drive—such as a coupled energy carrier—would matter more for the emergence of chemical computation than precise control over reaction barriers. We should note that this result may primarily reflect our training target being a steady-state concentration; transient objectives may instead induce stronger kinetic than thermodynamic dependence when fitting specific time-dependent functional responses.
Future translational work may use the empirical findings here as design principles for engineering CRNs for bio-sensing and computational tasks. Combining CRNs constructed from more realistic chemical reaction mechanisms with recently developed machine learning tools for enzyme discovery [41] and design [42] may provide a suit-able design suite to guide experiments. Interestingly, experimental systems consistent with the chemistry model presented here—with precise tuning of dissipation and barrier heights—may be achievable with amino acid ligation enzymes (E.C. 6.3.2.-), which conjugate amino acids (or short peptides) with single amino acids in a reaction coupled to ATP hydrolysis. Leveraging the kinetic diversity of orthologs within this enzyme family across different substrates may enable the construction of real-world, driven chemistries with tunable properties.
Several extensions follow naturally. Template-directed chemistries would extend the framework to origins-relevant networks that couple informational polymers to their own synthesis [43], while adding explicit catalytic and autocatalytic edges would connect it to autocatalytic-set theory and its reflexive, self-maintaining structures (RAFs) [44], letting us ask which physical parameters govern autocatalytic gain. Objectives such as homeostasis, balanced growth, and error correction would test whether the same thermodynamic levers shape function beyond input-output fitting [45–47]. More broadly, future work can address whether more complex structural, topological or physico-chemical features of a network, such as compartmentalization, enable more expressive computation. Although our study establishes the existence of expressive solutions, it remains unclear whether those found by gradient descent are also accessible under evolutionary dynamics.
ACKNOWLEDGMENTS
We thank Pankaj Mehta and Artemy Kolchinsky for valuable discussions. We thank the Dayhoff Labs team for the continuous feedback throughout this work.
[1] H. C. Berg and D. A. Brown, Chemotaxis in escherichia coli analysed by three-dimensional tracking, Nature 239, 500 (1972).
[2] N. Barkai and S. Leibler, Robustness in simple biochemical networks, Nature 387, 913 (1997).
[3] C. M. Waters and B. L. Bassler, Quorum sensing: cell-to-cell communication in bacteria, Annu. Rev. Cell Dev. Biol. 21, 319 (2005).
[4] L. Wolpert, Positional information and the spatial pattern of cellular differentiation, J. Theor. Biol. 25, 1 (1969).
[5] T. Gregor, D. W. Tank, E. F. Wieschaus, and W. Bialek, Probing the limits to positional information, Cell 130, 153 (2007).
[6] T. S. Gardner, C. R. Cantor, and J. J. Collins, Construction of a genetic toggle switch in escherichia coli, Nature 403, 339 (2000).
[7] M. B. Elowitz and S. Leibler, A synthetic oscillatory network of transcriptional regulators, Nature 403, 335 (2000).
[8] L. Qian and E. Winfree, Scaling up digital circuit computation with DNA strand displacement cascades, Science 332, 1196 (2011).
[9] L. Qian, E. Winfree, and J. Bruck, Neural network computation with DNA strand displacement cascades, Nature 475, 368 (2011).
[10] K. M. Cherry and L. Qian, Scaling up molecular pattern recognition with DNA-based winner-take-all neural networks, Nature 559, 370 (2018).
[11] K. M. Cherry and L. Qian, Supervised learning in DNA neural networks, Nature 645, 639 (2025).
[12] D. H. Wolpert, J. Korbel, C. W. Lynn, F. Tasnim, J. A. Grochow, G. Kardes, J. B. Aimone, V. Balasubramanian, E. De Giuli, D. Doty, N. Freitas, M. Marsili, T. E. Ouldridge, A. W. Richa, P. Riechers, É. Roldán, B. Rubenstein, Z. Toroczkai, and J. Paradiso, Is stochastic thermodynamics the key to understanding the energy costs of computation?, Proc. Natl. Acad. Sci. U. S. A. 121, e2321112121 (2024).
[13] D. H. Wolpert, Stochastic thermodynamics
of computation, arXiv [cond-mat.stat-mech] 10.48550/arXiv.1905.05669 (2025).
[14] S. Liang, P. D. L. Rios, and D. M. Busiello, Thermodynamic space of chemical reaction networks, arXiv [cond-mat.stat-mech] 10.48550/arXiv.2407.11498 (2026).
[15] C. Floyd, A. R. Dinner, A. Murugan, and S. Vaikuntanathan, Limits on the computational expressivity of non-equilibrium biophysical processes, Nat. Commun. 16, 7184 (2025).
[16] M. Feinberg, Foundations of chemical reaction network theory, 1st ed., Applied mathematical sciences (Springer Nature, Cham, Switzerland, 2019).
[17] F. Horn and R. Jackson, General mass action kinetics, Arch. Ration. Mech. Anal. 47, 81 (1972).
[18] M. Feinberg, Chemical reaction network structure and the stability of complex isothermal reactors—i. the deficiency zero and deficiency one theorems, Chem. Eng. Sci. 42, 2229 (1987).
[19] J. D. Orth, I. Thiele, and B. Ø. Palsson, What is flux balance analysis?, Nat. Biotechnol. 28, 245 (2010).
[20] S. Srinivasan, W. R. Cluett, and R. Mahadevan, Constructing kinetic models of metabolism at genome-scales: A review, Biotechnol. J. 10, 1345 (2015).
[21] D. Soloveichik, M. Cook, E. Winfree, and J. Bruck, Computation with finite stochastic chemical reaction networks, Nat. Comput. 7, 615 (2008).
[22] D. Soloveichik, G. Seelig, and E. Winfree, DNA as a universal substrate for chemical kinetics, Proc. Natl. Acad. Sci. U. S. A. 107, 5393 (2010).
[23] F. Fages, G. Le Guludec, O. Bournez, and A. Pouly, Strong turing completeness of continuous chemical reaction networks and compilation of mixed analog-digital programs, in Computational Methods in Systems Biology, Lecture Notes in Computer Science (Springer International Publishing, Cham, 2017) pp. 108–127.
[24] L. Cardelli, M. Kwiatkowska, and M. Whitby, Chemical reaction network designs for asynchronous logic circuits, Nat. Comput. 17, 109 (2018).
[25] D. F. Anderson, B. Joshi, and A. Deshpande, On reaction network implementations of neural networks, J. R. Soc.
Interface 18, 20210031 (2021).
[26] W. Poole, T. E. Ouldridge, and M. Gopalkrishnan, Autonomous learning of generative models with chemical reaction network ensembles, J. R. Soc. Interface 22, 20240373 (2025).
[27] M. Vasić, C. Chalk, A. Luchsinger, S. Khurshid, and D. Soloveichik, Programming and training rate-independent chemical reaction networks, Proc. Natl. Acad. Sci. U. S. A. 119, e2111552119 (2022).
[28] M. Vasić, D. Soloveichik, and S. Khurshid, CRN++: Molecular programming language, Nat. Comput. 19, 391 (2020).
[29] S. A. Salehi, K. K. Parhi, and M. D. Riedel, Chemical reaction networks for computing polynomials, ACS Synth. Biol. 6, 76 (2017).
[30] I. Lee, S. Buse, and E. Winfree, Differentiable programming of indexed chemical reaction networks and reaction-diffusion systems (2025).
[31] A. Mordvintsev, E. Randazzo, and E. Niklasson, Differentiable programming of chemical reaction networks, arXiv [q-bio.MN] (2023).
[32] D. Moyer, A. R. Pacheco, D. B. Bernstein, and D. Segrè, Stoichiometric modeling of artificial string chemistries reveals constraints on metabolic network structure, J. Mol. Evol. 89, 472 (2021).
[33] P. G. Higgs, The effect of limited diffusion and wet-dry cycling on reversible polymerization reactions: Implications for prebiotic synthesis of nucleic acids, Life (Basel) 6, E24 (2016).
[34] P. Hänggi, P. Talkner, and M. Borkovec, Reaction-rate theory: fifty years after kramers, Rev. Mod. Phys. 62, 251 (1990).
[35] T. L. Hill, Free energy transduction and biochemical cycle kinetics, 1989th ed. (Springer, New York, NY, 2012).
[36] T. Schmiedl and U. Seifert, Stochastic thermodynamics of chemical reaction networks, arXiv [cond-mat.stat-mech] 10.1063/1.2428297 (2006).
[37] W. Liebermeister, J. Uhlendorf, and E. Klipp, Modular rate laws for enzymatic reactions: thermodynamics, elasticities and implementation, Bioinformatics 26, 1528 (2010).
[38] R. Rao and M. Esposito, Nonequilibrium thermodynamics of chemical reaction networks: Wisdom from stochastic thermodynamics, Phys. Rev. X 6, 041064 (2016).
[39] M. Blondel, Q. Berthet, M. Cuturi, R. Frostig, S. Hoyer, F. Llinares-López, F. Pedregosa, and J.-P. Vert, Efficient and modular implicit differentiation, arXiv [cs.LG] 10.48550/arXiv.2105.15183 (2021).
[40] J. Mayer, K. Khairy, and J. Howard, Drawing an elephant with four complex parameters, Am. J. Phys. 78, 648 (2010).
[41] J. W. Rocks, D. P. Truong, D. Rappoport, S. Maddrell-Mander, D. A. Martin-Alarcon, T. M. Lee, S. Crossan, and J. E. Goldford, Dual-encoder contrastive learning accelerates enzyme discovery, Proc. Natl. Acad. Sci. U. S. A. 123, e2520070123 (2026).
[42] W. Ahern, J. Yim, D. Tischer, S. Salike, S. M. Woodbury, D. Kim, I. Kalvet, Y. Kipnis, B. Coventry, H. R. Altae-Tran, M. S. Bauer, R. Barzilay, T. S. Jaakkola, R. Krishna, and D. Baker, Atom-level enzyme active site scaffolding using RFdiffusion2, Nat. Methods, 1 (2025).
[43] P. Adamski, M. Eleveld, A. Sood, Å. Kun, A. Szilágyi, T. Czárán, E. Szathmáry, and S. Otto, From self-
replication to replicator systems en route to de novo life, Nat. Rev. Chem. 4, 386 (2020).
[44] M. Steel, W. Hordijk, and J. C. Xavier, Autocatalytic networks in biology: structural theory and algorithms, J. R. Soc. Interface 16, 20180808 (2019).
[45] J. E. Goldford and D. Segrè, Modern views of ancient metabolic networks, Current Opinion in Systems Biology 8, 117 (2018).
[46] A. Murugan, D. a. Huse, and S. Leibler, Speed, dissipation, and error in kinetic proofreading., Proc. Natl. Acad. Sci. U. S. A. 109, 12034 (2012).
[47] R. Ravasio, K. Husain, C. G. Evans, R. Phillips, M. Ribezzi-Crivellari, J. W. Szostak, and A. Murugan, Evolution of error correction through a need for speed, Science 391, 818 (2026).
[48] D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, arXiv [cs.LG] 10.48550/arXiv.1412.6980 (2014).
[49] P. Kidger, On Neural Differential Equations, Ph.D. thesis, University of Oxford (2021).
[50] J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, Y. Katariya, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang, JAX: composable transformations of Python+NumPy programs (2018).
Appendix A: Chemical Reaction Network Modeling
Below, we show the detailed mathematical construction of our systems with Table. I summarizing all the notation used.
1. Mass-Action Dynamics in a Continuously Stirred Tank Reactor
Consider a network containing N chemical species and R reversible reactions. Species are indexed by , and reactions are indexed by . Concentrations are measured relative to a standard reference concentration , energies relative to the thermal energy , and times relative to where h is Planck's constant and T is the reactor temperature (kept fixed across all simulations).
All reactions are reversible and written as:
where and are the stoichiometric coefficients of species i on the two sides of reaction . We orient every reaction so that the forward direction, denoted by +, is ligation and the reverse direction, denoted by -, is cleavage. The inverse orientation would produce the same dynamics under proper permutation of parameters and this is just a convenient choice. The connectivity of species via reactions is defined by the stoichiometric matrix:
TABLE I. Symbols used in the CRN formulation. Here C, E, and T denote concentration, energy, and time. Quantities marked 1 are dimensionless.
| Symbol | Meaning | Dimension |
|---|---|---|
| Alphabet size | ||
| Maximum polymer length | ||
| number of reversible reactions | ||
| number of species | ||
| number of input grid points | ||
| stoichiometric coefficients | ||
| stoichiometric matrix element | ||
| concentration of species | ||
| standard reference concentration | ||
| reservoir concentration | ||
| directional reaction flux | ||
| net reaction flux | ||
| exchange flux | ||
| activity-normalized rate constant | ||
| flow rate | ||
| reference timescale | ||
| standard chemical potential | ||
| transition-state free energy | ||
| thermodynamic drive | ||
| effective activation free energy |
The system of Ordinary Differential Equations (ODEs) that describes the time evolution of the concentration of each species is specified as
The first term
represents the net flux of reaction that obeys mass-action kinetics. Directional fluxes are
and dividing concentrations by the standard concentration (conventionally set to ) gets all kinetic constants measured in terms of concentration over time.
We model environmental exchange using a Continuously Stirred Tank Reactor (CSTR). The reactor is supplied from a large reservoir while all species are removed at the same dilution rate. The corresponding exchange flux is
where is the concentration of species in the reservoir and is the flow rate. A species with receives no direct inflow, although it can still be produced by internal reactions.
2. Physicochemical Parameterization of Rate Constants
We express each directional rate constant in terms of an effective activation free energy,
The effective barriers are
The standard chemical potential is assigned to species and is shared by every reaction containing that species. The transition-state energy is assigned to reaction . It sets the energy of the activated complex and changes the forward and reverse barriers equally. The thermodynamic drive is also assigned to a reaction, but enters the two directions with opposite signs. A positive lowers the forward barrier and raises the reverse barrier by the same amount.
The different roles of these parameters can be seen from the ratio of the directional rate constants,
The transition-state energy cancels from this expression. The directional bias is therefore controlled by the standard chemical potentials and the thermodynamic drive.
Their geometric mean is
The thermodynamic drive cancels from the geometric mean. Thus changes the reaction timescale without directly changing its directional bias. The chemical potentials enter both expressions because they set the energies of the chemical states on either side of the reaction.
When for every reaction, the rate ratios are generated entirely by the species-level chemical potentials and satisfy detailed balance around every closed reaction cycle. Nonzero provides a nonconservative thermodynamic drive that can break detailed balance.
3. Dimensionless Formulation
The system is computationally implemented using dimensionless quantities. Concentrations are adimensionalized by normalizing over , times by , and energies by , resulting in the dimensionless quantities below:
(A11)
The dynamics retain their form,
with adimensional fluxes
And kinetics become
where energies are measured now in units of
All quantities in the remaining appendices are expressed in these dimensionless units. We therefore drop the hats from this point onward. A reported energy of 5 denotes , a concentration of 1 denotes , and a flow rate of denotes .
4. Polymerization Networks
A polymerization chemistry is specified by a finite alphabet of monomers , with , together with a maximum polymer length . Species are identified with nonempty words over of length at most , so that the species set and its cardinality are
Reactions are generated by cutting words. For every with and every cut position , we write with and , and include the reversible reaction
oriented so that ligation is the forward direction and cleavage the reverse. Both fragments are themselves words of length below and therefore belong to , so the network is closed under cleavage by construction, and no ligation can produce a word longer than . When , which occurs for even at , the reaction is the dimerization and the reactant stoichiometric coefficient is .
Because reactants are unordered, distinct cut positions of the same word may specify the same reaction, and each such reaction is retained only once. The cuts j and yield the same reactant pair precisely when u and v commute as words, , which holds if and only if s is a power of a shorter word whose length divides . There are exactly such words of length , so after removing the redundant cuts the number of reversible reactions is
The first term counts all cuts and coincides with the enumeration of Ref. [32]; the second removes the coincidences above. For each choice of A and L the network is generated deterministically and in full, and no species or reaction is sampled, pruned, or removed at any point during training.
Appendix B: Steady-State Training and Dynamical Verification
Training requires evaluating the steady-state response at each point on the input grid, differentiating the fitting objective with respect to the physicochemical parameters, and updating these. After updating parameters, the system will result in a new steady state and the training will go over another loop on the following training step. We regularize the objective to favor steady states that are accurately resolved, dynamically stable, and numerically well conditioned. After training, we independently verify the response by integrating the full ODE dynamics.
1. Training Objective
For each input point , the steady-state concentrations of each species at index satisfy
where is the residual function of species i that defines its time evolution
The parameter set contains all the trainable values of , , and . Let denote the readout species steady state and f the target function. The CRN response at input is . For a grid of K input values, the fitting loss is
This loss, together with the following regularization terms, is used to update by using a standard Adam optimizer [48].
a. Regularization terms
We employ three main regularization terms, aimed at ensuring the training procedure stays in parameter regions where steady state solutions B 2 are of good quality, stable and non-singular. We do this via residual, spectral and conditioning regularization respectively. When evaluating and differentiating parameters against regularization terms we keep steady-state concentrations fixed.
Residual regularization ensures that numerical steady-state solutions have low residuals, which correspond to high quality steady state solutions being truly near a zero of the residual function. We penalize high residual using the following regularization term
where
To ensure stability we regularize agains the eigenvalues of the Jacobian of the ODE system. A root of is dynamically stable only if every eigenvalue of the dynamical Jacobian has a negative real part. At each input point, we evaluate
and define its spectral abscissa as
where are the eigenvalues of . The spectral penalty is
This penalty discourages roots with eigenvalues in the right half-plane. Though, it does not by itself guarantee that the trained response belongs to a single dynamically accessible steady-state branch, which is a condition we check post-training via quasistatic verification B6.
A nearly singular dynamical Jacobian makes both root finding and implicit differentiation unreliable. We regularize against this by measuring its conditioning
where and are the largest and smallest singular values of . The conditioning penalty is
with , corresponding to a condition-number threshold of . As in the residual and spectral penalties, the steady-state concentrations are held fixed during differentiation.
The complete training objective is
The fitting-loss gradient accounts for the dependence of the steady state on the parameters and the regularization gradients are evaluated while holding the numerical steady-state solutions fixed. We found the following regularization coefficients to be optimal and kept them fixed during all our experiments to: , and . These values however may be specific for the target function range and amplitude values we used in our experiments and may need to be tuned for different experimental settings.
2. Steady States by Pseudo-Transient Continuation
Every training epoch requires finding the current response solution to compute the loss from. Rather than integrating the often stiff dynamics to steady state during every training epoch, we solve using pseudo-transient continuation. This method follows a sequence of implicit pseudo-time steps that approaches a Newton iteration near a root. At iteration , we solve
where
The concentrations are updated according to
which prevents the numerical iterate from entering the negative concentration domain.
For small , the diagonal term in Eq. (B12) limits the size of the update. As increases, the method approaches a full Newton step. We adapt the pseudo-time step using switched evolution relaxation,
where
The factor g limits the growth of the pseudo-time step. Convergence is declared when
Pseudo-transient continuation follows the local dynamics more closely than an unconstrained Newton solve and can therefore favor stable roots. At the first training step, the procedure is initialized to a concentration vector of all zeroes, while for each subsequent training step step t, the procedure starts from an initial guess equivalent to the steady solution at the previous t - 1 training step.
3. Implicit Differentiation and Adjoint Gradients
To update parameters on the fit loss , differentiating through every iteration of the root finder would require storing and backpropagating through its full solution path, which would be computationally costly. Instead, we differentiate the steady-state solution directly to parameters by leveraging the implicit function theorem [39].
For a trainable parameter , differentiating gives
We avoid computing explicitly by solving the adjoint system (where is the adjoint variable, not to be confused with regularization coefficients)
The fitting-loss gradient then follows from
An independent adjoint solve is performed at each input point. The resulting parameter gradients are combined across the input grid.
4. Trusted Gradients and Parameter Updates
A grid point contributes to the implicit gradient only when its root-finding residual satisfies
This trust mask prevents poorly resolved roots from producing unreliable adjoint gradients. If more than 50% of the input points are untrusted, the update is discarded and training terminates with a solver_unstable exit condition.
Before each parameter update, the gradient associated with each trainable parameter class is clipped by its norm,
where the norm is evaluated over all parameters in the same class and .
5. Stopping Conditions and Exit Labels
Training terminates when the first of the following conditions is met:
-
The total gradient norm falls below .
-
The relative change in loss over 500 epochs falls below .
-
More than 50% of the input points fail the trusted-root criterion in Eq. (B21).
-
The run reaches the maximum budget of 16,000 epochs.
These exit conditions do not determine whether a run is counted as successful, which additionally depends on its fit quality and post-training dynamical verification.
6. Quasistatic ODE Verification
After training, we verify that the predicted response can be reached by the actual dynamics of the system. We numerically integrate
using the implicit Kvaerno5 solver with adaptive step-size control [49]. We use atol = , rtol = , and a maximum integration time of .
Verification proceeds quasistatically along the ordered input grid. The first input point is initialized from its trained root-finding solution. Each subsequent point is initialized from the converged ODE state at the preceding grid point. This procedure tests whether the fitted response lies on a dynamically reachable branch that can be followed as the input changes.
A point is considered converged when
If integration doesn’t converge at a point for more than a hard time budget of 180 seconds, we flag the point as failed and continue onward.
Failing even one grid point discards a run as failed, as runs pass dynamical verification only if all K input points converge and the ODE readout agrees with the root-finding readout according to
This final test rejects responses that depend on unstable roots, disconnected steady-state branches, or trajectories that do not settle to the predicted fixed points.
Appendix C: Target Ensemble
The scaling and parameter-freezing studies use random squared trigonometric polynomials as target functions. The construction gives smooth, strictly positive profiles on a fixed output window, with a single integer knob H that sets how many oscillations the target can develop.
The reactor input is first mapped linearly onto an angular coordinate,
so that the input range covers exactly one period. For each target we draw i.i.d. complex coefficients with for , and take the squared modulus of the resulting harmonic sum,
Squaring makes q nonnegative everywhere and therefore admissible as a concentration readout.
The draw fixes the shape of the target but not its scale, so we rescale onto the output window . Writing and for the extrema of over the sampled input grid, the target is
The bracket lies in by construction, so sets the amplitude about the midpoint : the target is constant at and spans the full window at .
Independent draws at the same H give distinct targets of comparable spectral complexity, and increasing H admits more peaks, valleys, and changes in curvature. We therefore use H as our measure of target complexity throughout. Throughout our experiments we always set and .
Appendix D: Illustrative Fits
The examples in Fig. 1(D–F) demonstrate the range of responses that can be obtained with the training procedure described in Appendices A and B. The input is the reservoir concentration of the designated input monomer, and the output is the steady-state concentration of the designated readout species.
Figure 1(D) shows the training trajectory of an abcdef3 network with N = 258 species and R = 462 reactions, against a trigonometric polynomial target (Appendix.C) with H = 5 harmonics, the response curves shown at intermediate epochs 800, 8000 and 12000 are evaluated from the steady-state solutions stored during training. The input species is the monomer a and auxiliary monomers b, c, d, e, f are provided to the system at a fixed reservoir concentration of 1. The output species is the dimer ab.
Figure 1(E) contains examples trained against smooth target functions chosen to illustrate qualitatively different response shapes, including localized peaks and sharp transitions. Every target function is sampled on a grid of 32 points. From top left to bottom right:
• Target: Gaussian with , , . Topology: ab4.
• Target: Step where , , , . Topology: ab5.
• Target: a random Legendre polynomial (rescaled)
where coefficients are sampled from the normal distribution with seed 3, (amp), (floor), and are Legendre polynomials. Topology: ab4.
• Target: a random trigonometric polynomial C with 6 harmonics. Topology: ab6
• Target: a random trigonometric polynomial C with 8 harmonics. Topology: ab6
• Target: von Neumann elephant D 1. Topology: ab6
Figure 1(F) compares ab3 and ab4 against the same quadratic tent target.
where , (half-width to edge), . The input and output species are held fixed so that the comparison isolates the effect of increasing the maximum polymer length.
1. Multiple-Readout Training
The parametric example in Fig. 1(E) uses one input and two readout species. Let and denote the steady state concentration of readouts at the th grid point, with target coordinates and . We train both coordinates jointly using the loss
For the von Neumann elephant, the network is ab6 (126 species, 502 reactions). The inflow concentration of the dimer serves as the input , sampled at uniformly spaced points, while the monomers and are held fixed at unit concentration. The two readout species are aba and bab.
The target follows the Fourier parametrization of [40]:
where , then rescaled to the interval :
Appendix E: Scaling Study
The scaling study measures how the probability of fitting a target changes with target complexity and network size. All networks are trained using the same input and readout species, target construction, success criterion, and numerical procedure.
1. Topology Set and Network-Size Measures
We include every polymerization network in the selected alphabet size and maximum polymer length range containing no more than approximately 500 reactions.
TABLE II. Polymerization topologies used in the scaling study. Each network is specified by its alphabet size and maximum polymer length , which determine the number of species and reversible reactions . Marker and color match Fig. 2.
| A | L | R | N | |
|---|---|---|---|---|
| —○— | 2 | 3 | 18 | 14 |
| —○— | 2 | 4 | 64 | 30 |
| —○— | 2 | 5 | 188 | 62 |
| —○— | 2 | 6 | 502 | 126 |
| —△— | 3 | 3 | 60 | 39 |
| —△— | 3 | 4 | 300 | 120 |
| —□— | 4 | 3 | 140 | 84 |
| —◇— | 5 | 3 | 270 | 155 |
| —○— | 6 | 3 | 462 | 258 |
This procedure gives the nine topologies used in Fig. 2, listed in Table.II. The reaction networks explored in this work are generated by sweeping through monomer alphabet A and maximum polymer length L:
-
Fixed alphabet (), increasing polymer length.
-
: species, reactions.
-
: species, reactions.
-
: species, reactions.
-
: species, reactions.
-
Fixed polymer length (), increasing alphabet.
-
: species, reactions.
-
: species, reactions.
-
: species, reactions.
-
: species, reactions.
-
Off-diagonal case. A single intermediate configuration with , yields species, reactions.
For each topology, the number of trainable parameters simply scales as number of species (one standard chemical potential per species), (a transition state energy and a thermodynamical drive per reaction) plus the flow rate, namely:
Increasing either alphabet size or maximum polymer length increases all three size measures. The available polymerization topologies therefore do not vary , , and independently. Their strong covariation prevents the present experiment from identifying one of these quantities as the unique structural determinant of expressivity.
2. Experimental Design
For every topology, the input is the reservoir concentration of the monomer , and the readout is the steady-state concentration of . The reservoir concentrations of the remaining monomers are fixed at 1, and the reservoir concentrations of all polymers are zero.
The input is sampled at uniformly spaced points over . All three energetic parameter classes and the flow rate are trainable.
For each topology and target complexity H, we train the network against target functions drawn from the ensemble in Appendix C. The experiment contains ten values of H ranging from H = 1 to H = 10. For each value of H we sample 50 random targets and reuse them across all topologies. This gives a total of targets that 9 topologies are all trained against, resulting in the total training rounds launched being
The energetic parameters and flow rate are initialized independently for each run, i.i.d. Gaussian sampled with and centered at the origin with mean 0, using a unique seed for each experiment. Each network is then trained and verified using the common procedure in Appendix B.
3. Success Rate and Capacity Estimation
We quantify fit quality using the coefficient of determination
where is the readout steady state concentration and is the target function average over the grid
A training run is counted as successful when it satisfies both of the following conditions:
-
The response passes the quasistatic ODE verification in Appendix B 6.
-
The ODE verified response reaches .
For topology q and target complexity H, the empirical success rate is
where for a successful run and 0 otherwise.
We define the expressivity as the target complexity at which the success rate crosses 50%. Suppose the crossing lies between adjacent values and . Linear interpolation gives
In case an empirical success curve is not monotonic, the crossing is selected by taking the highest H at which and interpolating from there, yielding the largest (most generous) , although we do not observe nonmonotonic crossings in our experiments. If a topology does not cross 50% at any target H we set , although this case also does not arise in our results.
At each H, the binomial standard error of the success rate is
The uncertainty on in Fig. 2 is obtained by propagating the standard errors of the two bracketing success rates through the linear interpolant (E6):
with
Associations between and the network-size measures are quantified using Spearman's rank correlation coefficient. The dashed lines in Fig. 2(B–D) are unweighted ordinary least-squares fits of against the base-10 logarithm of each size measure.
4. Failure Modes
An unsuccessful run may fail during optimization, fail to reach the required fit quality, or fail the post-training dynamical verification. We record these outcomes separately. A solver failure occurs when training exits early due to numerical instabilities as defined in Appendix B 5. A verification failure happens when a response found during training doesn't match with the actual quasistatic response behavior exhibited by the system post-training.
Figure 4 reports the frequency of the different outcomes across topologies against the target complexity classes of Sec. II. This analysis distinguishes failures of the optimization procedure from fitted responses that cannot be followed by the nonlinear ODE dynamics.


○ 2 mono △ 3 mono □ 4 mono ○ 5 mono ○ 6 mono
FIG. 4. Failure statistics for the scaling study in Fig. 2. The left panel describes the fraction of experiments that resulted in stable numerical behavior during the training procedure, normalized by the 50 experiments run per target complexity per topology. The central panel shows the corresponding fraction of experiments that passed the ODE quasistatic check (QS-pass). The right panel shows the distribution among 4 possible resulting combinations of numerically stable and unstable experiments that resulted in passing or not passing the quasistatic check. We see here that it is possible that some experiments pass the quasistatic check even when they resulted in early training exit due to numerical instabilities.
5. Non-trivial Effect of Readout Choice
The scaling study uses the same readout species for every topology because fit quality can depend on the location of the readout within the network. We evaluate this dependence using a fixed abcd3 topology and one target drawn at H = 3. The reservoir concentration of a remains the input. Each of the 80 available non-monomer species is then used in turn as the readout, while the topology, target, input grid, and training procedure are all held fixed. We run a single training round for each, resulting in a total of 80 experiments.
The variation across readouts shows that network topology alone does not determine fit quality. Fixing ab as the readout throughout the scaling study removes this source of variation from comparisons among topologies. We did not explore the effects of changing input species while keeping the readout species fixed.
Appendix F: Parameter-Freezing Study
The parameter-freezing study tests how each physicochemical parameter class contributes to trainability. The network topology, target ensemble, input, readout, and flow rate are held fixed while the trainable energetic parameters are varied.
We consider the three energetic parameter classes , , and . The experimental bins include each class alone, each pair of classes, and the fully trainable combination: 1. 2. 3. 4. 5. 6. 7.
abcd3 — readout species loss

FIG. 5. Swarm plot of the resulting fit quality on the readout species in an abcd3 network trained against a fixed H = 3 target. Each dot corresponds to a single run on a single readout choice, its horizontal position determined by the base 10 logarithm of the best loss achieved in that training round. This highlights a non-trivial dependency on the choice of readout species we do not further investigate in the present study.
A parameter class excluded from a bin is initialized to zero and is frozen during training. Trainable parameters are randomly initialized as . The flow rate is fixed in every bin at .
All freezing experiments use the abc3 topology with species a as the input and species ab as the readout. The reservoir concentrations of the remaining monomers are fixed at 1, and those of all polymers are zero.
For each bin we train against 128 trigonometric polynomial targets with two harmonics (Appendix C). The same targets and are reused across all bins.
After initialization, each target and parameter bin b is trained using the procedure in Appendix B. The success criterion is the same as in the scaling study. A run must reach and pass the quasistatic ODE verification. The success rate for parameter bin b is
since one run is performed for each target. Here if the run is successful and 0 otherwise.
Figure 6 shows trained responses from the different parameter-freezing bins against a common target. These curves illustrate the variation in fit quality underlying the aggregate success rates in Fig. 3.
The examples are provided for visualization and are not additional trials beyond the 128 targets used to calculate the success rates.
Appendix G: Implementation and Reproducibility
1. Software, Numerical Precision, and Hardware
The CRN dynamics, steady-state solver, implicit gradients, optimization, and ODE verification were implemented in JAX [50] and Diffrax [49]. All calculations used 64-bit floating-point precision. The scaling and parameter-freezing studies were run on T4 NVIDIA GPUs and independent training runs were parallelized across targets and parameter bins. No state was shared between runs except where the same target ensemble was intentionally reused.
2. Numerical Settings
Table III collects the numerical settings used across all experiments. Values specific to one study are reported in the corresponding study section.
3. Random Seeds and Run Indexing
Random numbers are used to generate target functions and initialize trainable parameters. Target generation and parameter initialization use separate random streams so that either can be reproduced independently.
Each run is identified by its study, topology or parameter bin, target complexity, and target index. The target seed is derived deterministically from the position in the experimental grid:
where indexes the target complexity level and indexes the polynomial within that level. The initialization seed is derived from the linear experiment index:
The base offsets and strides are coprime, ensuring no seed collisions across the grid. Both seeds are recorded in the released configuration files.
Target draws are shared across topologies (Fig. 2) and across parameter bins (Fig. 3), so that each network architecture or parameter subset is evaluated on an identical set of target functions. Initialization seeds differ per experiment, giving each topology–target pair an independent random starting point.
4. Code Availability
Example code for generating the reaction networks, constructing target ensembles, training the models and performing dynamical verification is available at https://github.com/dayhofflabs/chemical-learning trainable
frozen

Target Trained response
FIG. 6. Example responses on a single target H = 2 from the parameter-freezing bins in Fig. 3, chosen to highlight fit quality differences among all different parameter frozen bins.
TABLE III. Numerical settings used for training and verification.
| Quantity | Value | Description |
|---|---|---|
| 32 | Number of input points | |
| [1, 5] | Input interval | |
| [0.2, 0.6] | Target vertical interval | |
| Positive concentration floor | ||
| Initial pseudo-time step | ||
| Maximum pseudo-time step | ||
| 2 | Pseudo-time step growth cap | |
| Root-finder absolute tolerance | ||
| Root-finder relative tolerance | ||
| Trusted-gradient threshold | ||
| 150 | Root-finder iteration limit | |
| 10 | Gradient clipping threshold | |
| Adam learning rate | ||
| (0.98, 0.999) | Adam moment parameters | |
| 10 | Residual penalty coefficient | |
| Spectral penalty coefficient | ||
| 0.4 | Conditioning penalty coefficient | |
| 9 | Log-condition-number threshold | |
| 16,000 | Maximum training epochs | |
| atol, Kvaerno5 | ODE absolute tolerance | |
| rtol, Kvaerno5 | ODE relative tolerance | |
| Maximum ODE integration time | ||
| ODE convergence threshold |