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

Eric Palanques-Tost, Hanna Krasowski, Murat Arcak, Ron Weiss, Calin Belta

TL;DR

Training Biomolecular Neural Networks (BNNs) is notoriously difficult due to a lack of precise numerical target data in biological systems. This paper introduces an end-to-end differentiable framework that uses Signal Temporal Logic (STL) to define high-level behavioral specifications instead of raw data points, enabling successful gradient-based optimization of BNNs for both regression and closed-loop feedback control tasks.

What Problem Does This Paper Address?

Synthetic biology aims to engineer genetic circuits that can perform complex computations, much like Artificial Neural Networks (ANNs). Biomolecular Neural Networks (BNNs) implement these architectures using standard biochemical reactions (such as the mutual inactivation of RNA species).

However, training BNNs using traditional machine learning techniques is exceptionally hard because biological systems rarely provide clean, exact numerical "target trajectories" or labeled datasets. Instead of knowing exactly what concentration a molecule should be at every second, researchers usually have high-level, qualitative requirements (e.g., "keep tissue damage low, but allow a temporary spike in inflammation to clear an infection"). This paper addresses the lack of target data by using formal logic to guide BNN training.

Methods

The authors leverage Signal Temporal Logic (STL), a formal language used to specify constraints over time series (e.g., "always keep variable $X$ below threshold $Y$" or "eventually $Z$ must happen"). Crucially, STL has quantitative semantics, meaning it doesn't just return a true/false value; it calculates a continuous "robustness score" indicating how well a trajectory satisfies or violates a formula.

The authors build an end-to-end differentiable pipeline using JAX and the diffrax ODE solver. They simulate the BNN's chemical kinetics alongside the biological environment. The training loss function directly penalizes trajectories that violate the STL specifications based on their robustness scores. Optimization is performed using the AdaBelief optimizer in log-space to ensure the BNN's physical parameters (like reaction rates and weights) remain strictly non-negative and stable.

Overview of how a synthetic gene circuit maps to a biological perceptron and forms a BNN

Datasets

Because this work focuses on in silico biological simulation and control rather than standard ML benchmarks, the authors generated synthetic datasets by sampling biologically plausible ranges:

  • Static Regression: A grid of 121 input pairs representing steady-state concentrations of two proteins (p53 and Mdm2).
  • Dynamic Regression: 150 synthetic trajectories generated using a two-state Markov chain to simulate time-varying protein concentrations.
  • Feedback Control: A training set generated by sampling initial bacterial concentrations and immune system parameters across 20 values each.

In all cases, separate test sets were created by shifting the grids/parameters to evaluate how well the trained BNN generalizes to unseen conditions.

Key Insights and Ideas

  • Logic over Data: The core "aha" moment is that formal logic specifications can completely replace numerical target data for training neural networks in data-scarce domains like biology.
  • Temporal Filtering: In the dynamic regression task, the BNN naturally learned to act as a low-pass filter. Because the STL formula allowed a 9-hour window to detect dysregulation, the trained BNN successfully ignored brief, transient fluctuations and only reacted to sustained imbalances.
  • Adaptive Control: In the closed-loop immune system experiment, the BNN learned a nuanced, non-linear control strategy: it intentionally allowed a temporary spike in pro-inflammatory proteins to clear a bacterial infection before stepping in to suppress inflammation and prevent long-term tissue damage. A standard "bacteria-unaware" controller failed this balance.

Key Results

The framework was evaluated on three simulated biological tasks:

  1. Static Input Regression: Achieved 100% satisfaction of the STL specification on the unseen test set across successful training runs, accurately mapping cellular dysregulation. Transient behavior of the reporter output satisfying temporal constraints
  2. Dynamic Input Regression: Achieved a 94% mean test set satisfaction rate, demonstrating that the BNN can track moving biological targets over time.
  3. Closed-Loop Feedback Control: The BNN controller achieved a 99% mean test set satisfaction rate when managing a chronic inflammation model, successfully clearing infections while minimizing tissue damage.
Transient behavior of the reporter output satisfying temporal constraints

Limitations and Future Work

  • Empirical Generalization: The BNN's performance is evaluated empirically on test sets; it currently lacks formal theoretical guarantees of safety or satisfaction.
  • Deterministic Assumptions: The current BNN model is purely deterministic. Real biology is highly stochastic, so future work will need to incorporate noise and extend the framework to probabilistic STL formulations.
  • Network Density: The architectures used are densely connected, which is difficult to implement in real wet-lab genetic circuits. The authors plan to optimize for network sparsity and smaller sizes.
  • Optimization Sensitivity: Convergence is highly sensitive to random initialization (e.g., only 4 out of 10 seeds converged for dynamic regression), likely due to discontinuities in the non-smooth STL robustness formulation. Exploring smooth STL loss functions is a key next step.

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 Calin Belta},
  title = {{STL-based Optimization of Biomolecular Neural Networks for Regression and Control}},
  booktitle = {CDC},
  year = {2025},
  doi = {10.1109/cdc57313.2025.11312596},
}
Figure