arXiv:2609.17339q-bio.MNSep 2026

Manuscript Offprint

arXiv:2609.17339

Local energetic coupling enhances the expressivity of chemical computation

Marco Tuccio, Jason W. Rocks, Joshua E. Goldford

Marco Tuccio, 1,2,∗^{1,2,*} Jason W. Rocks, 1,†^{1,\dagger} and Joshua E. Goldford 1,‡^{1,\ddagger}

1^{1}Dayhoff Labs, Inc., Cambridge, MA 02138

2^{2}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.

†^{\dagger} jason@dayhofflabs.com

‡^{\ddagger} josh@dayhofflabs.com

A)

B)

Figure

C)

D)

E)

Figure

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 μi∘\mu_i^\circ, transition-state energies Gα†G_\alpha^\dagger, and thermodynamic drives DαD_\alpha, which together set the effective activation barriers ΔGα†,±\Delta G_\alpha^\dagger, \pm 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 y=f(x)y = f(x), 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 abc…Labc\ldots L is defined by an alphabet of monomers {a,b,c,…}\{a,b,c,\ldots\} 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 a+ba+b produces both ab and ba, in ratios set by the kinetics of a+b⇌aba+b \rightleftharpoons ab and a+b⇌baa+b \rightleftharpoons ba. 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 α\alpha) as a system of ODEs,

dcidt=∑αSiαJα+Jiext(1)\frac{\mathrm{d}c_{i}}{\mathrm{d}t}=\sum_{\alpha}S_{i\alpha}J_{\alpha}+J_{i}^{\mathrm{ext}} \tag{1}

where cic_i is the concentration of species ii, Jα=Jα+−Jα−J_\alpha = J_\alpha^+ - J_\alpha^- is net flux of reaction α\alpha with forward/backward fluxes Jα+/Jα−J_\alpha^+/J_\alpha^-, and SiαS_{i\alpha} 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

Jiext=γ(ciext−ci)(2)J_{i}^{\mathrm{e x t}}=\gamma\big(c_{i}^{\mathrm{e x t}}-c_{i}\big) \tag{2}

where γ\gamma is the flow (and dilution) rate per unit volume into and out of the system, and ciextc_i^{ext} is the concentration of each species in the inflow source. Monomers are supplied by the external source simply by setting their ciext>0c_i^{ext} > 0.

All reactions in our setup obey mass-action kinetics,

Jα±=kα±∏i=1Nciνiα±,(3)J_{\alpha}^{\pm}=k_{\alpha}^{\pm}\prod_{i=1}^{N}c_{i}^{\nu_{i\alpha}^{\pm}}, \tag{3}

where kα±k_{\alpha}^{\pm} are the forward and backward rate constants and νiα±≥0\nu_{i\alpha}^{\pm} \geq 0 are the stoichiometric coefficients of species i among the reactants of the ±\pm-direction of reaction α\alpha; thus ν+\nu^{+}collect the left-hand side and ν−\nu^{-}the right-hand side, and Siα=νiα−−νiα+S_{i\alpha} = \nu_{i\alpha}^{-} - \nu_{i\alpha}^{+}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 kα±k_{\alpha}^{\pm} 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]

kα±=k0exp⁡(−ΔGα‡,±kBT)(4)k_{\alpha}^{\pm}=k_{0}\exp\left(\frac{-\Delta G_{\alpha}^{\ddagger,\pm}}{k_{B}T}\right) \tag{4}

where k0=c0/τk_0 = c_0/\tau where τ\tau is a standard timescale we set to 1. The effective energy barriers ΔGα†,±\Delta G_{\alpha}^{\dagger,\pm} decompose as follows [35–37]:

ΔGα‡,±=Gα‡−∑i=1Nνiα±μi∘∓12Dα.(5)\Delta G_{\alpha}^{\ddagger,\pm}=G_{\alpha}^{\ddagger}-\sum_{i=1}^{N}\nu_{i\alpha}^{\pm}\mu_{i}^{\circ}\mp\frac{1}{2}D_{\alpha}. \tag{5}

In this decomposition, μi∘\mu_i^\circ are the standard chemical potentials, or free energies of formation for each species involved in the reaction. The terms Gα†G_\alpha^\dagger and ∓12Dα\mp\frac{1}{2}D_\alpha are reaction-specific catalytic parameters. The first parameter Gα†G_\alpha^\dagger 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 γ\gamma. The second parameter DαD_\alpha is the nonconservative thermodynamic drive or bias, representing energetic coupling (e.g., ATP hydrolysis), biasing the reaction in one direction or another. Together, μi∘\mu_i^\circ, Gα†G_\alpha^\dagger, and DαD_\alpha, 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 f(x)f(x). 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 ci∗c_i^* is constant in time. In our framework, the input variable is the reservoir concentration x=cinextx = c_{\text{in}}^{\text{ext}} of a designated monomer, with all other monomer reservoir concentrations held fixed. Our output is the steady-state concentration y∗=cout∗y^* = c_{\text{out}}^* of a designated polymer produced by the system. Our fit parameters consist of all energetic terms and the dilution rate, θ=({Gα†},{μi∘},{Dα},γ)\theta = (\{G_\alpha^\dagger\}, \{\mu_i^\circ\}, \{D_\alpha\}, \gamma).

We sweep the input over a grid of K values {xk}\{x_k\} and compare the resulting response to the target at each of them. The mean squared error defines the loss,

Lfit(θ)=1K∑k[y∗(xk;θ)−f(xk)]2,(6)\mathcal{L}_{\mathrm{f i t}}(\theta)=\frac{1}{K}\sum_{k}\left[y^{*}(x_{k};\theta)-f(x_{k})\right]^{2}, \tag{6}

which we minimize with a standard Adam optimizer, updating θ\theta at each training step. Two choices make the required gradients ∂L/∂θ\partial\mathcal{L}/\partial\theta 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)

Figure

B)

C)

D)

Figure

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 R2≥0.98R^2 \geq 0.98 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 H50H_{50}, the complexity at which the success rate crosses 50%, interpolated between adjacent integer values of H. (B–D) H50H_{50} against three measures of network size: the number of species N (B), the number of reactions R (C), and the number of trainable parameters 2R+N+12R + N + 1 (D), the latter comprising one Gα†G_\alpha^\dagger and one DαD_\alpha per reaction, one μi∘\mu_i^\circ per species, plus the flow rate γ\gamma. Capacity tracks size in all three cases, most tightly for the reaction count (Spearman ρ=1.00\rho = 1.00), then the parameter count ( ρ=0.97\rho = 0.97), then the species count ( ρ=0.88\rho = 0.88). Dashed lines are log-linear fits; vertical error bars propagate the binomial uncertainty in the success rates into H50H_{50}.

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.