Chemical Reaction Networks Learn Better than Spiking Neural Networks

Sophie Jaffard, Ivo F. Sbalzarini

TL;DR

Researchers have mathematically proven that Chemical Reaction Networks (CRNs) can solve complex classification tasks more efficiently than Spiking Neural Networks (SNNs). By leveraging the intrinsic physics of chemical interactions, a CRN without any "hidden layers" can outperform an SNN that requires them, offering a new perspective on how biological cells might "learn" without a brain.

What Problem Does This Paper Address?

In the world of AI, we usually look to neurons for inspiration. However, individual biological cells—which don't have nervous systems—perform incredibly complex information processing and decision-making through biochemical reaction networks.

The authors address a fundamental question: Can chemical systems learn from experience as effectively as neural ones? While CRNs were already known to be "Turing complete" (meaning they can compute anything a standard computer can), we didn't have rigorous mathematical proof that they could implement supervised learning algorithms with the same efficiency and performance guarantees as neural networks. This paper bridges that gap, comparing the "computational power" of molecules versus spikes.

Methods

The authors design a CRN based on deterministic mass-action kinetics—a mathematical framework where the rate of a reaction depends on the product of the concentrations of the reactants. Their architecture consists of two main phases:

  1. Selection Phase: An unsupervised process where the network identifies "informative" sets of input species (features) that appear together frequently. Unlike neural networks that often start with a fixed, dense set of connections, this CRN starts "empty" and only creates weight species for relevant feature combinations.
  2. Learning Phase: The network implements a classic machine learning algorithm called Exponentially Weighted Average (EWA) entirely through chemical reactions. Input species act as catalysts to produce "gain-function" species, which in turn adjust the concentrations of "weight" species.

The "secret sauce" here is intrinsic multiplication. In a neural network, calculating the interaction between two signals usually requires a sequence of weighted sums and non-linear activations. In a CRN, the physics of mass-action kinetics is a product: the reaction rate is naturally the product of reactant concentrations.

Datasets

The researchers evaluated their model using the handwritten digits dataset from scikit-learn.

  • Format: 1797 digital images of 8x8 grayscale pixels (64 features).
  • Task: Classify images into digits 0 through 9.
  • Preprocessing: Pixel intensities were encoded as concentrations of input chemical species, with added Gaussian noise to simulate the "messy" reality of biological environments.

Key Insights and Ideas

  • Hidden Layers are Optional: The most striking finding is that CRNs don't need hidden layers to capture correlations between features. Because a single chemical reaction can involve multiple reactants, the "product" of those features is computed instantly by the physics of the reaction itself.
  • Efficiency through Sparsity: The selection mechanism allows the CRN to be much smaller than a comparable SNN. It only "builds" the parts of the network that see high activity, leading to lower model complexity.
  • Local Rules, Global Intelligence: The equations for each class (e.g., the "is this a digit 5?" species) evolve independently. There is no central controller; the global classification emerges from these parallel, local chemical reactions.
  • Theoretical Rigor: The authors didn't just run a simulation; they provided analytical regret bounds and calculated the VC-dimension (a measure of learning capacity), proving that the network's performance is asymptotically optimal.

Key Results

The CRN was compared against a Spiking Neural Network (SNN) from a 2026 study (Jaffard et al.) using the same task:

  • Accuracy: A CRN with no hidden layers ($n=1$) achieved 85.8% accuracy. For comparison, an SNN without hidden layers only managed 53%.
  • Outperforming Complexity: The simplest CRN ($n=1$) even outperformed an SNN with hidden layers, which saturated at 83.5%.
  • Peak Performance: When the CRN was allowed to look at pairs of pixels ($n=2$, effectively one hidden layer), accuracy climbed to 88.6%.
  • Efficiency: The CRN achieved these results with significantly lower network complexity (fewer "neurons" and "connections") than the SNN.

Limitations and Future Work

While the math is robust, the authors acknowledge a few hurdles:

  • Binary Flux Assumption: Some of the deeper proofs rely on "binary flux" (features being either present or absent), which might not capture the full nuance of continuous biological signals.
  • Scaling: While 8x8 images are a great proof of concept, scaling this to high-resolution data or more complex "chemical computers" remains a challenge.
  • Biological Realism: The paper provides a mathematical explanation for how cells could learn, but the next step is finding specific, real-world biochemical pathways that mirror this EWA-based architecture.

This research paves the way for "chemical AI" and helps explain how a single cell can be "smarter" than we ever gave it credit for.

Summary updated

Abstract

We mathematically prove that chemical reaction networks without hidden layers can solve tasks for which spiking neural networks require hidden layers. Our proof uses the deterministic mass-action kinetics formulation of chemical reaction networks. Specifically, we prove that a certain reaction network without hidden layers can learn a classification task previously proved to be achievable by a spiking neural network with hidden layers. We provide analytical regret bounds for the global behavior of the network and analyze its asymptotic behavior and Vapnik-Chervonenkis dimension. In a numerical experiment, we confirm the learning capacity of the proposed chemical reaction network for classifying handwritten digits in pixel images, and we show that it solves the task more accurately and efficiently than a spiking neural network with hidden layers. This provides a motivation for machine learning in chemical computers and a mathematical explanation for how biological cells might exhibit more efficient learning behavior within biochemical reaction networks than neuronal networks.
BibTeX
@misc{jaffard2026chemical,
  author = {Sophie Jaffard and Ivo F. Sbalzarini},
  title = {{Chemical Reaction Networks Learn Better than Spiking Neural Networks}},
  year = {2026},
  eprint = {2603.12060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12060},
}

Loading related content...

Figure