bioRxivNeurosciencePreprint
Reverse engineering neural networks to characterise their cost functions
Abstract
This work considers a class of biologically plausible cost functions for neural networks, where the same cost function is minimised by both neural activity and plasticity. We show that such cost functions can be cast as a variational bound on model evidence under an implicit generative model. Using generative models based on Markov decision processes (MDP), we show, analytically, that neural activity and plasticity perform Bayesian inference and learning, respectively, by maximising model evidence. Using mathematical and numerical analyses, we then confirm that biologically plausible cost functions--used in neural networks--correspond to variational free energy under some prior beliefs about the prevalence of latent states that generate inputs. These prior beliefs are determined by particular constants (i.e., thresholds) that define the cost function. This means that the Bayes optimal encoding of latent or hidden states is achieved when, and only when, the networks implicit priors match the process that generates the inputs. Our results suggest that when a neural network minimises its cost function, it is implicitly minimising variational free energy under optimal or sub-optimal prior beliefs. This insight is potentially important because it suggests that any free parameter of a neural networks cost function can itself be optimised--by minimisation with respect to variational free energy.
- Citations
- 2
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Canonical neural networks perform active inference
Takuya Isomura, Hideaki Shimazaki, Karl John Friston·Communications BiologyPeer-reviewed·Jan 14, 2022
- In vitro neural networks minimise variational free energy
Takuya Isomura, Karl John Friston·Scientific ReportsPeer-reviewed·Nov 12, 2018
- Experimental validation of the free-energy principle with in vitro neural networks
Takuya Isomura, Kiyoshi Kotani, … Karl John Friston·bioRxiv·Oct 3, 2022
- Predicting individual learning trajectories in zebrafish via the free-energy principle
Takuya Isomura, Yuki Tanimoto, … Hideaki Shimazaki·bioRxiv·Aug 6, 2025
- Bayesian Encoding and Decoding as Distinct Perspectives on Neural Coding
Richard D. Lange, Sabyasachi Shivkumar, … Ralf M. Haefner·Nature NeurosciencePeer-reviewed·Nov 23, 2023
- An Information-Theoretic Approach to Reward Rate Optimization in the Tradeoff Between Controlled and Automatic Processing in Neural Network Architectures
Giovanni Petri, Sebastian Musslick, Jonathan D. Cohen·bioRxiv·Sep 18, 2023