STL-based Optimization of Biomolecular Neural Networks for Regression and Control

Eric Palanques-Tost, Hanna Krasowski, Murat Arcak, Ron Weiss, Călin Belta · DOI

Abstract

Biomolecular Neural Networks (BNNs), artificial neural networks with biologically synthesizable architectures, achieve universal function approximation capabilities beyond simple biological circuits. However, training BNNs remains challenging due to the lack of target data. To address this, we propose leveraging Signal Temporal Logic (STL) specifications to define training objectives for BNNs. We build on the quantitative semantics of STL, enabling gradient-based optimization of the BNN weights, and introduce a learning algorithm that enables BNNs to perform regression and control tasks in biological systems. Specifically, we investigate two regression problems in which we train BNNs to act as reporters of dysregulated states, and a feedback control problem in which we train the BNN in closed-loop with a chronic disease model, learning to reduce inflammation while avoiding adverse responses to external infections. Our numerical experiments demonstrate that STL-based learning can solve the investigated regression and control tasks efficiently.

Introduction

Synthetic biology aims to engineer cells to perform complex tasks, such as sensing disease biomarkers or delivering drugs autonomously. While researchers have developed Biomolecular Neural Networks (BNNs)—chemical reaction networks that mimic the architecture of Artificial Neural Networks (ANNs)—training them is a major hurdle.

Standard machine learning relies on massive datasets of "ground truth" inputs and outputs. In a biological context, we rarely have a precise target trajectory for a protein's concentration. Instead, we usually have qualitative requirements: "The output should eventually reach a steady state," or "Inflammation should never exceed a certain threshold unless an infection is present." This paper bridges the gap between these high-level logical requirements and the low-level mathematical optimization needed to tune a BNN's parameters.

Methodology

The authors propose an end-to-end differentiable pipeline to optimize BNNs. The key components include:

  1. BNN Architecture: The networks are built from "biological perceptrons"—modules consisting of two biochemical species ($Z_1$ and $Z_2$) that mutually inhibit each other and degrade naturally. These modules are stacked in layers, just like a traditional ANN.
Architecture of a Biomolecular Neural Network (BNN) derived from gene circuits.
  1. Signal Temporal Logic (STL): STL is a formal language used to specify constraints over time. It uses operators like $\square$ (Always) and $\diamond$ (Eventually). For example, a formula might specify that a protein concentration must stay below a limit for the entire duration of an experiment.
  2. Quantitative Semantics (Robustness): To make logic "trainable," the authors use the robustness metric ($\rho$). Instead of a simple True/False, $\rho$ provides a scalar value indicating how well a specification is satisfied (positive) or violated (negative).
  3. Differentiable Programming: The entire system—from the ODE solvers (using diffrax in JAX) that simulate the chemical reactions to the STL robustness calculations—is differentiable. This allows the use of the AdaBelief optimizer to update BNN weights via gradient descent.

Experimental Setup

The paper uses synthetic datasets generated from biologically plausible mathematical models to evaluate the framework:

  • Static Regression: A grid of 121 input pairs representing concentrations of two proteins ($p53$ and $Mdm2$).
  • Dynamic Regression: 150 synthetic trajectories generated via a two-state Markov chain to simulate "low" and "high" protein states with random-walk noise.
  • Feedback Control: A training set generated by sampling 20 different initial bacterial concentrations and 20 different "repair rate" parameters for a chronic inflammation model.

Results and Discussion

The authors demonstrated success across three distinct applications:

  • Static Input Regression: The BNN successfully learned to act as a "reporter," producing a fluorescent signal only when the ratio of two proteins indicated cellular stress. It achieved 100% satisfaction of the STL specs on the test set.
  • Dynamic Input Regression: The network identified transient dysregulation in time-evolving systems with 94% mean satisfaction, effectively filtering out short-term noise. It learned to act as a temporal filter—ignoring brief, noisy fluctuations but reacting strongly when a dysregulation persisted for more than 9 hours.
  • Feedback Control: In a simulated chronic disease model, the BNN acted as a controller. It successfully managed a "trade-off" behavior: allowing a temporary spike in pro-inflammatory proteins to clear a bacterial infection, then immediately suppressing them to prevent long-term tissue damage. This achieved 99% satisfaction on the test set.

By defining a logical goal in STL, the optimizer "discovers" the necessary biochemical parameters to satisfy that goal without needing a target value for every time step. Furthermore, using a fixed, modular BNN structure makes the resulting "circuits" more predictable and easier to eventually build in a lab compared to evolving random reaction networks.

Conclusion

This work provides a powerful framework for training BNNs using high-level behavioral goals. While the results are currently in silico and show some sensitivity to parameter initialization, they demonstrate that STL-based learning can efficiently solve complex regression and control tasks in biological systems. Future work will address the "sim-to-real" gap, including stochastic noise, and explore sparse network architectures that are easier to synthesize physically.

Summary updated

Abstract

Biomolecular Neural Networks (BNNs), artificial neural networks with biologically synthesizable architectures, achieve universal function approximation capabilities beyond simple biological circuits. However, training BNNs remains challenging due to the lack of target data. To address this, we propose leveraging Signal Temporal Logic (STL) specifications to define training objectives for BNNs. We build on the quantitative semantics of STL, enabling gradient-based optimization of the BNN weights, and introduce a learning algorithm that enables BNNs to perform regression and control tasks in biological systems. Specifically, we investigate two regression problems in which we train BNNs to act as reporters of dysregulated states, and a feedback control problem in which we train the BNN in closed-loop with a chronic disease model, learning to reduce inflammation while avoiding adverse responses to external infections. Our numerical experiments demonstrate that STL-based learning can solve the investigated regression and control tasks efficiently.
BibTeX
@inproceedings{palanquestost2025stl,
  author = {Eric Palanques-Tost and Hanna Krasowski and Murat Arcak and Ron Weiss and Călin Belta},
  title = {{STL-based Optimization of Biomolecular Neural Networks for Regression and Control}},
  booktitle = {CDC},
  year = {2025},
  doi = {10.1109/cdc57313.2025.11312596},
}
Figure