Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A genetic algorithm for self-supervised models of oscillatory neurodynamics

Abstract

Predictive processing theories propose that the brain builds internal models of its environment by reducing the discrepancy between internally generated predictions and external sensory signals. Prior work has linked these processes to oscillatory activity in gamma (40–100 Hz) and alpha/beta (10–30 Hz) frequency ranges. Current computational approaches face a trade-off: abstract predictive-processing models can implement self-supervised computations but often omit oscillatory spiking dynamics, whereas biophysically constrained spiking models can generate neural rhythms but often require extensive manual tuning. Here, we introduce the Genetic Stochastic Delta Rule (GSDR), an evolutionary optimization framework for fitting nonlinear neural models to electrophysiological objectives. We first evaluate GSDR in simplified optimization settings, then apply it to spiking-network objectives involving firing rates, beta/gamma spectral ratios, and empirical macaque stimulus-evoked gamma dynamics from visual cortex. We show that GSDR can search constrained synaptic parameter spaces, reduce reliance on manual tuning, and reproduce spectral and circuit-level phenotypes associated with predictive routing. We also used Izhikevich simulations as a model-class robustness analysis, showing that the approach is not limited to the original Hodgkin-Huxley-style implementation. These results position GSDR as a methodological framework for automated, multi-objective exploration of oscillatory neural models, with predictive routing serving as a motivating case study rather than as a completed functional proof.

Introduction

Understanding the brain requires linking theoretical mechanisms of neurons to empirical observations in vivo. Biophysical neural models in neuroscience [18] help bridge fundamental neuronal properties, neurophysiology, cognition, and behavior. Models differ in their level of abstraction: conductance-based models can expose channel- and receptor-level mechanisms, population models can preserve efficient cell-level dynamics, and population or neural-mass models can summarize large-scale dynamics. Hodgkin-Huxley-style models [9,10] are useful when the scientific question concerns ionic currents, conductances, or their voltage and time dependencies. These modeling choices make it possible to ask how changes in ion-channel properties [1113], cell types [1416], cortical layers [1719], neurotransmitters [2022], neuronal metabolism [2326], oscillations [2730], and synaptic integration [3032] affect perception, cognition, and behavior.

Models of neuronal oscillations are particularly important for predictive processing theories [3339], which propose that top-down and bottom-up processing are associated with distinct oscillatory channels. Top-down processing reflects internal or cognitive state variables such as attention or prediction [40,41], whereas bottom-up processing reflects how external sensory states are signaled [4244]. Predictive routing (PR) [45] is one theory that links predictive processing to empirically observed oscillatory dynamics. PR proposes that gamma-band activity and increased spiking carries bottom-up signals from lower-order sensory cortex toward higher-order areas, whereas lower-frequency alpha/beta activity reflects top-down predictions that modulate sensory processing [45,46,47,48]. In the present manuscript, PR is used as a motivating neuroscience case study because its proposed building blocks include spiking dynamics and beta/gamma state changes. The goal is not to prove PR or to implement a full predictive task; instead, we test whether automated optimization can fit spiking neural models to spectral and empirical objectives relevant to this framework.

A mechanistic account of how these oscillatory dynamics emerge from neuronal circuits, and how they might support predictive routing, remains incomplete. Numerous studies have modeled oscillatory interactions with conductance-based, and population-level approaches [15,16,40,4953]. These models can generate oscillatory dynamics, including stimulus-evoked gamma oscillations. Many use Pyramidal-Interneuron networks (PIN), consisting of input drive to pyramidal neurons and feedback inhibition from interneurons. The oscillation frequency depends on inhibitory synaptic time constants, recurrent connectivity, and input structure, such that a network can be manually tuned to express PIN-gamma (PING) or PIN-beta (PINB). Networks of interconnected inhibitory neurons can also generate gamma oscillations without pyramidal participation, an alternative mechanism referred to as Interneuron Network Gamma (ING) [31]. In both PING and ING, synaptic connectivity, internal noise, and bottom-up inputs can generate rhythms that are either highly synchronous (strong PING, [1,2,15,49]) or sparse and irregular across neurons (weak PING, [5457]). Biologically observed dynamics in healthy brains are often more consistent with the latter sparse and irregular regime.

A practical limitation of many nonlinear spiking models is that they require extensive manual tuning. Exhaustive parameter sweeps can become computationally intractable, especially when models include many synaptic weights, time constants, input gains, or cell classes. Some optimization methods have been applied to neural models [5860], but many approaches still require strongly hand-specified parameter choices or do not include activity-dependent terms. We therefore frame the present work around self-supervised optimization in a specific sense: models do not rely only on external labels or experimenter-provided target updates. Instead, learning can combine objectives with structure in the model activity itself. In this manuscript, the activity-dependent component is mutual-correlation dependent plasticity (MCDP), which uses membrane-potential similarity over time to drive updates within the existing model connectivity.

In this work, we introduce the Genetic Stochastic Delta Rule (GSDR), a parameter optimization framework for biophysically constrained spiking models using evolutionary algorithms [6164]. GSDR is inspired by the stochastic delta rule [6567] and genetic algorithms [6870]. In its basic form, GSDR is a multi-variable optimization method for exploring nonlinear parameter spaces to optimize one or more objectives. Objectives can be any measurable feature of a model response, including firing rate, spectral power, synchrony, or empirical spectrotemporal similarity to observed neuronal data. In its self-supervised form, GSDR combines a supervised objective term with an activity-dependent MCDP term. The alpha parameter controls the mixture between these update paths, and the genetic component stores the best model state while deselecting states that exceed a loss threshold. We show that GSDR can train both simple and more complex spiking models (Figs 2-6), including beta/gamma spectral shifts and stimulus-induced gamma dynamics from macaque monkey visual cortex recordings. We show simulations with Izhikevich neurons to test model-class robustness. This shows that GSDR is a methodological framework for automated exploration of nonlinear neural models, with predictive routing serving as a biologically meaningful application.

Results

Evolutionary exploration with GSDR: The overall strategy of Genetic Stochastic Delta Rule (GSDR) is to combine objective-guided optimization, stochastic exploration, an activity-dependent update term, and genetic selection/deselection (Fig 1; see also Materials and Methods, Algorithm 1, Equations 2.1–2.2). The neuronal network model generates a series of neural responses (X[t], membrane potential of all neurons across time on trial t). In the activity-dependent path, these voltages define an MCDP representation R[t], which depends on membrane-potential similarity over time and is constrained by the existing model connectivity. In the supervised path, metric functions are applied to the neuronal response to calculate model-derived metrics (M[t]:= F(X[t])). The distance between each metric and its target value (T[t]) defines the loss or reward value for the current trial (L[t]:= Eval(M[t], T[t])). The trainable model parameters U[t] are then updated using a mixture of the supervised term and the activity-dependent term. The alpha parameter controls this mixture: alpha = 0 corresponds to a fully supervised update, whereas alpha = 1 corresponds to an update driven by the activity-dependent MCDP term and stochastic exploration. In dynamic-alpha simulations, alpha follows a bounded stochastic random walk, but it is still filtered by the same selection/deselection rule as other parameters. The genetic component stores the best model state found so far and reverts to that state when the current loss exceeds the threshold.

thumbnail
Fig 1. Flowchart of optimization with GSDR.

At each iteration, a simulation is performed to obtain neural signals, here membrane potentials over time. A metric or set of metrics is measured from these signals, such as power spectral density, firing rate, or synchrony. The distance between measured metrics and target metrics defines the current loss and contributes to the supervised update path. In parallel, MCDP computes an activity-dependent representation from pairwise membrane-potential similarity. The model updates parameters by mixing the supervised and activity-dependent terms according to alpha. Alpha can be static or dynamic. In the dynamic implementation, alpha follows a bounded stochastic random walk and is subject to the same selection/deselection logic as other parameters. At any step, if the ratio between current loss and selected optimal loss exceeds a threshold, the next trial resets to the selected model state.

https://doi.org/10.1371/journal.pone.0354021.g001

Advantage of stochastic exploration in noisy, non-linear spaces: We first show the advantage of evolutionary strategies in a modified version of the Rastrigin function [69,70]. This simulation illustrates the stochastic and genetic search behavior of GSDR in a low-dimensional setting before applying the framework to neural circuit models. Since neurobiological circuits contain stochastic and nonlinear elements, we modified the Rastrigin function by adding a uniform noise process. We simulated a 1000-iteration run on the noisy Rastrigin function for GSDR, Gradient Descent (GD), and Stochastic Gradient Descent (SGD). The objective of each optimization function was to find the global minimum. The results (Fig 2) indicate that GSDR, as an evolutionary algorithm, can be effective in non-convex and noisy parameter-loss spaces, similar to other methods from the same family [61,6872]. Although this is a simple two-parameter search space, it provides an accessible demonstration of the search logic before the later spectral and empirical neural-model applications.

thumbnail
Fig 2. Optimization in a noisy Rastrigin function.

Three separate runs (A,B,C) are shown for 1000 iterations for each optimization method, with their corresponding progress. Notice the advantage of gradient-free exploration (red, GSDR) versus gradient-based methods (blue, Gradient Descent – GD, green, Stochastic Gradient Descent – SGD). Stochastic exploration (GSDR) functioned well despite a parameter-loss space that is highly non-convex and noisy. Gradient -based methods tended to get stuck in local minima.

https://doi.org/10.1371/journal.pone.0354021.g002

Pedagogical spiking-network demonstrations: These examples show how GSDR behaves in progressively more neural settings, including single-neuron membrane-potential and firing-rate tuning (Supplemental Fig. 1-5 in S1 File).

Spectral push-pull through synaptic self-modulation: We next simulated an oscillatory push-pull interaction in an E-I neuronal population. We trained the model to express a flexible switch between beta and gamma spectral states, motivated by the oscillatory motifs described in predictive routing [45,73,74]. In this simulation, the architecture is related to the supplemental E-I models (Supplemental Figs. 4-5 in S1 File), but synaptic connection weights are included as trainable variables to increase the dimensionality of the parameter space. The objective was defined as a spectral ratio under two input conditions. In condition 1, used as a sensory-processing-like condition (Fig 3C), the objective was for gamma-band power (35–100 Hz) to exceed beta-band power (15–30 Hz). In condition 2 (Fig 3D), the objective was for beta-band power to exceed gamma-band power.

thumbnail
Fig 3. E-I population spectral power ratio tuning.

Broad beta [15-30 Hz] average power is compared with broad gamma [40-90 Hz] average power. (A) Variables and metrics before, during, and after training. (B) Network schematic. (C) Post-training raster plot in condition 1. (D) Post-training raster plot in condition 2.

https://doi.org/10.1371/journal.pone.0354021.g003

The model achieved the conditional objective (Fig 3): gamma-band power exceeded beta-band power in condition 1, whereas beta-band power exceeded gamma-band power in condition 2. The total synaptic gain, defined as the sum of all synaptic connectivity weights, changed minimally, whereas the variance and distribution of synaptic weights changed to match the objective. This result supports a constrained sufficiency claim: within the synaptic-weight hypothesis space, recurrent synaptic plasticity can modulate the relative spectral response of a neural circuit without changing synaptic time constants or population-average gain.

In addition, the transition from gamma (condition 1, Fig 3C) to beta (condition 2, Fig 3D) resulted in substantially suppressed population activity, especially among excitatory cells. We interpret this as a spectral/circuit-level phenotype that is consistent with prior proposals linking beta states to reduced spiking activity [75] and with predictive routing models [45,76].

Contextual spectral push-pull with top-down modulation: Predictive routing proposes that top-down inputs carrying predictions through beta-band activity can suppress or modulate bottom-up gamma-band processing [45]. We therefore modeled how top-down inputs can modulate a lower-order network state from a gamma-dominated to a beta-dominated spectral regime. We did not model two cortical regions simultaneously; instead, we modeled top-down input to a hypothetical lower-order area, similar to previous work on top-down effects of attention on sensory processing [40]. In this simulation, the model’s objective was to tune the relative beta/gamma power ratio (Fig 4). This task is related to the previous spectral-ratio model (Fig. 3), but local synaptic weights were fixed. Instead, top-down contextual gain parameters were allowed to change, as hypothesized in predictive routing. These gains modulated the strength of top-down synaptic input to excitatory cells, slow inhibitory interneurons (SST-like), and fast inhibitory interneurons (PV-like) (Fig 4B).

thumbnail
Fig 4. E-I contextual spectral relative power tuning.

Beta [~10-30 Hz] average power is compared with middle gamma [55-75 Hz] average power. (A) Summary of pre- and post-training variables and metrics. (B) Loss across trials relative to target metrics. (C) Summary of training variables and metrics during training. (D) Network schematic. (E) Spectral response before training. (F) Raster plot before training. Due to stochasticity from internal noise and receptor-synaptic interactions, the beta/gamma ratio in condition 1 varies slightly between pre- and post-training simulations.

https://doi.org/10.1371/journal.pone.0354021.g004

Top-down input gain to all populations was initially set to 0 for both conditions. In condition 1, top-down inputs remained 0, such that the model stayed near the baseline gamma-dominated state, operationalized as a beta/gamma ratio below 1 (Fig 4E). Next, GSDR was allowed to modulate top-down gain parameters with the objective of shifting the model toward a beta-dominated state in condition 2. GSDR found a solution with positive gain on the slower inhibitory population and negative gain for the fast inhibitory population (Fig 4C, red box). Post-training responses showed a context-dependent spectral power shift (Supplemental Fig. 3C-F in S1 File), with respect to the beta (~10–30 Hz) to gamma (>35 Hz) power-ratio objective, ending at a ratio of ~1.8 (Fig 4F). These gain parameters are consistent with studies suggesting that top-down feedback can drive slow inhibitory interneurons [16,77] and shift networks toward beta-dominated states [45,78].

Narrow-band gamma oscillations are observed in electrophysiology recordings from the primate visual cortex: The previous contextual model (Fig 4) generated overly synchronous oscillations (Supplemental Fig. 3D) that do not resemble typical in vivo electrophysiology. To address this, we used synaptic plasticity to model electrophysiologically recorded, visually induced gamma oscillations (~38 Hz) from the visual cortex of awake macaques. The objective was to let GSDR modulate synaptic connectivity to reproduce observed gamma-band neural dynamics across stimulus-off and stimulus-on periods. Current models of oscillatory dynamics, including Pyramidal-Interneuron Network Gamma (PING), can explain gamma-band dynamics and distinguish between strong and weak regimes [40,5456]. In strong PING, gamma-band oscillations (>35 Hz) require strong input drive and feedback inhibition with fast inhibitory time constants, yielding highly synchronous rhythms that dominate individual-neuron responses. In weak PING models [5456], noise or heterogeneous synaptic weights generate population-level gamma with sparse and irregular firing in pyramidal cells.

Prior to the simulations, we examined whether real neurons display a strong or weak PING phenotype in vivo. We performed electrophysiological recordings in the visual cortex of awake macaque monkeys during presentation of drifting grating stimuli, known to induce gamma oscillations (see Methods for details). We used neuronal data from area MT/MST because this area was highly sensitive to moving grating stimuli, and we consistently observed a strong narrow-band gamma response during stimulus presentation (Fig 5). The peak frequency of this visually evoked oscillation increased over the session by about 2.5 Hz (Supplemental Fig. 14), which replicates earlier work showing an increase in gamma peak frequency from early to later trials in a session [79]. In the same session, we also recorded from area PFC with the same type of recording electrode (upper sub-panel, Supplemental Fig. 14). PFC did not show gamma oscillations and instead had a dominant peak frequency in the beta band (~20 Hz), consistent with prior electrophysiology showing beta as a dominant frequency of higher-order cortex [75].

thumbnail
Fig 5. Single-unit neural response from visual areas MT/MST (NHP).

(A) PSTH and all-trials cumulative raster plot (100 trials, 80 neurons). (B) Trial-average cumulative raster plot of neurons. Blue line: fixation; green line: stimulus onset; red line: stimulus offset. (C) Corresponding time-frequency response, scaled from 0 as the lowest power to 1 as the highest power across the duration shown above, showing a stimulus-dependent evoked spectral response around ~37.5 Hz.

https://doi.org/10.1371/journal.pone.0354021.g005

Self-supervision guides parameter-space exploration: To study circuit mechanisms that can produce this gamma response, we implemented a model with 50 neurons (36 excitatory, 14 inhibitory). Instead of relying on tunable synaptic time constants, inhibitory neurons were defined by two connectivity classes [19,80]. One class had locally focused connectivity (PV-like, restricted to local synaptic connections with ~10% of total neurons; Supplemental Fig. 6), whereas the other class had global widespread connectivity (SST-like, with no restriction on the number of synapses to other neurons). Unlike classic PING models that rely on fast inhibitory time constants for gamma, we did not modulate synaptic time constants in this model. AMPA and GABA rise and decay constants were fixed [81,82]. Instead, GSDR was allowed to modulate recurrent synaptic conductances. This was a hypothesis-driven choice: recurrent E/I weights are a plausible circuit substrate through which local networks can alter spectral responses without changing membrane-channel kinetics or synaptic time constants. The objective was to approximate the spectrotemporal features present in the observed neurophysiology by maximizing similarity between model and data power spectra (Fig 5A and Supplemental Fig. 12) in both the pre-stimulus and stimulus periods. We refer to this as the spectral similarity task.

For this task, we used the self-supervision component of GSDR (Algorithm 1). The spectrotemporal response of both the model and the data was quantified by taking each neuron’s power spectrum and averaging spectra across neurons (see Methods). The model optimized its spectral response to reproduce the stimulus-evoked gamma as well as the pre-stimulus period spectral response. The loss was calculated using the log-ratio between the model and empirical spectral responses after normalization (Supplemental Fig. 12), along with a one-sided mean exponential error (MXE; Equation 5) penalizing models with very low spike counts. To simulate the visual stimulus, we modeled stimulus onset at time 0 as an increase in external input: a noisy direct-current step function with amplitude 1 nA, convolved with a 120 Hz pulse train and lasting 500 ms. Background noise was modeled as a stationary random current process [83], independently present for every neuron.

Model and neurophysiology data both showed a beta spectral peak (~15–20 Hz; Supplemental Fig. 7A; see also Supplemental Fig. 12) during the pre-stimulus baseline and a stimulus-induced shift toward gamma (~35–40 Hz; Supplemental Fig. 7B). The empirical and model spectra early and late in training are shown in Supplemental Fig. 12 for pre-stimulus and stimulus periods. During this training, recurrent synaptic conductances were the changing parameters; during the simulated stimulus window, those conductances were fixed and the beta-to-gamma transition was driven by stimulus input interacting with the learned circuit.

As an additional model-class robustness test, Izhikevich simulations reproduced corresponding baseline, stimulus-on, and PSD-level spectral behavior (Supplemental Fig. 16 in S1 File, baseline; Supplemental Fig. 17 in S1 File, stimulus-on; Supplemental Fig. 18 in S1 File, PSDs), showing that GSDR is not limited to the conductance-based implementation.

These results show that GSDR can optimize spiking models for the spectral similarity task without relying solely on external supervision or manual parameter dictation. Recapitulating the observed gamma-band response did not require manual adjustment of synaptic time constants or strong uniform inhibitory-to-excitatory connections. Instead, the post-training state was reached through sparse and non-uniform recurrent synaptic weights (Supplemental Fig. 6A-B in S1 File). This supports the conclusion that GSDR can search a constrained synaptic-weight space and identify candidate circuit configurations with weak-PING-like properties: the oscillation is most prominent at the population level rather than dominating every single neuron (Figs 5-6).

thumbnail
Fig 6. Single-unit neural responses from the model.

(A) Time-frequency response of the model before training, scaled from 0 as the lowest power to 1 as the highest power and 1/f adjusted. (B) Corresponding raster plot before training, reflecting highly synchronized spiking. (C) Time-frequency response during mid-training (trial ~200). (D) Corresponding raster plot during mid-training. (E) Time-frequency response after training. (F) Corresponding raster plot after training. (G) PSTH of all neurons in panel F. During the stimulus-on condition, stimulation was randomly provided to half of the excitatory neurons from 0 ms (onset, green dashed line) to 500 ms (offset, red dashed line). Network synchrony based on the kappa value[84] is also noted for each raster, showing less synchrony than the strong-PING control (Supplemental Fig. 15) and reduced kappa during stimulus presentation.

https://doi.org/10.1371/journal.pone.0354021.g006

Discussion

Our work establishes GSDR as an evolutionary optimization framework for nonlinear spiking and neural models. GSDR combines a supervised objective term, stochastic exploration, an activity-dependent MCDP term, and a genetic selection/deselection mechanism that retains selected model states and rejects states exceeding a loss threshold. The main contribution is methodological. Predictive routing provides a biologically meaningful case study because it involves oscillations, spiking activity, and beta/gamma state changes. We used GSDR in three main applications: tuning recurrent E-I connectivity to modulate beta/gamma spectral ratios (Fig 3), tuning top-down contextual input gains to shift the same network toward a beta-dominated regime (Fig 4), and fitting model spectra to empirical macaque MT/MST stimulus-evoked gamma dynamics (Figs 5-6). We also simulated Izhikevich networks (Supplemental Fig. S16 in S1 File, baseline; Supplemental Fig. S17 in S1 File, stimulus-on; Supplemental Fig. S18 in S1 File, PSDs), showing that the framework is not tied to the conductance-based model class.

What has GSDR and evolutionary approaches taught us about biophysical models?

Many nonlinear neural models perform computations [8587], but their parameter spaces often require extensive and complex search. Self-supervised learning [8891], stochastic exploration, and genetic selection/deselection is an effective strategy to search this space. The primary novelty of GSDR is not that E/I networks can generate oscillations, which is well established, but that GSDR automates the search for parameter regimes that satisfy spectral and empirical objectives under explicit constraints. The alpha parameter controls the mixture between the supervised objective term and the activity-dependent MCDP term. In the dynamic-alpha implementation, alpha is not optimized by a separate objective; it follows a bounded stochastic random walk and is retained or rejected through the same selection/deselection logic as other model quantities. The resulting connectivity patterns (Supplemental Fig. 6B) were found within a hypothesis space and were not presented as an unconstrained discovery of all possible biological mechanisms. Parameter bounds, such as non-negative conductances and maximum synaptic strengths, were used to exclude physically or biologically invalid regimes rather than to force a particular spectral solution.

Previous studies [40,51,52,55,87] have shown that E/I networks can generate gamma and beta rhythms, including strong and weak PING-like regimes [49,51,5457]. Our novelty is therefore not the existence of such rhythms. Instead, the present work shows that a hybrid evolutionary optimizer can search for bounded parameter regimes that reproduce spectral objectives and empirical spectrotemporal targets. Our empirical MT/MST recordings were more consistent with sparse, irregular, population-level gamma than with a globally synchronous strong-PING phenotype (Fig. 5). In the spectral similarity task, the post-training model also exhibited sparse participation across individual neurons (Fig 6), with narrow-band gamma during stimulation and beta-dominated activity during baseline (Supplemental Fig. 12). The added Izhikevich simulations further show that similar qualitative spectral behavior can be evaluated in the Izhikevich model (Supplemental Figs. S16-S18 in S1 File).

What has GSDR taught us about predictive routing and oscillatory shifts?

Our results showed that top-down contextual gains can be optimized to shift a network from a gamma-dominant to a beta-dominant spectral state (Fig 4). This result is consistent with predictive-routing ideas in which top-down, preparatory signals modulate sensory processing, but it should not be interpreted as a complete predictive-processing computation. The model does not perform explicit mismatch detection, belief updating, omission detection, or behavioral prediction. A formal task-performing predictive-routing model remains a future application of the framework.

We also tested whether local recurrent synaptic weights are sufficient to induce beta/gamma spectral shifts under fixed cellular and synaptic-kinetic assumptions (Fig 3). This was a hypothesis-driven search, not an unconstrained search over all possible mechanisms. Alternative implementations could include changes in intrinsic excitability, synaptic kinetics, neuromodulatory gain, or targeted external input. The present result therefore shows that GSDR can identify bounded parameter regimes in which the same network expresses different spectral regimes under different input conditions.

Connections to other computational modeling frameworks

Several computational frameworks can be used to fit observed neural dynamics, including Dynamic Causal Modeling (DCM) [9296], neural mass models [17], and conductance-based spiking networks [97100]. These approaches occupy different points on a modeling spectrum. Neural mass models provide interpretable population-level dynamics and may reproduce many spectral phenotypes with fewer state variables. Reduced-spiking models provide cell-level dynamics while preserving spike timing and E/I interactions. Conductance-based models provide access to channel-, receptor-, and current-level hypotheses.

When performing computational modeling, it is important to select a model with sufficient detail to capture the desired behavior. This does not always require the level ionic-level mechanisms in the Hodgkin-Huxley equations. We present GSDR as a model-class-flexible optimization framework. The Hodgkin-Huxley-style implementation is one compatible model class, useful when conductance-level hypotheses are central. The Izhikevich simulations provide a middle ground, showing that GSDR can also operate within simpler models while preserving spike timing and E/I interactions (Supplemental Figs. S16-S18). Future neural mass implementations would test the same optimization logic at a population scale. More exhaustive benchmarking across model classes and optimizers remains an important next step.

Future extensions of the evolutionary modeling framework.

Evolutionary strategies open an alternative class of algorithms for computational modeling in neuroscience. GSDR can be used to compare how different model classes and objective functions reproduce neuronal data, including objectives derived from predictive coding, predictive routing, or other theories. The present work focuses on oscillatory and spectrotemporal objectives because these are central to the predictive-routing case study, but the framework is not limited to that theory. Future work can apply GSDR to explicit task-performing models where the functional computation can be tested directly rather than inferred from spectral correlates.

In principle, any observed neurophysiology feature that can be measured from a model or data can be used as a GSDR objective. This includes LFP-spiking relations [101107], spike timing and rate coding, spike-field coherence (SFC) [108], neuronal metabolism and neuromodulator interactions [21,103,109], multiple co-existing gamma oscillations [110112], and distinct mechanisms for beta versus alpha oscillations [113117]. The models in the present manuscript contain relatively few neurons (~100 neurons), although smaller models can be augmented to simulate larger dynamics (for a 1,000-neuron augmentation, see Supplemental Fig. 13). Future work should extend these models to multiple areas and larger numbers of neurons and trainable parameters [116,118124], especially as modern neurophysiology enables thousands of neurons to be recorded during task performance [119].

Conclusion

To summarize, GSDR can search neural parameter spaces, reduce reliance on manual tuning, and reproduce spectral objectives using multiple neuronal model types. We propose that GSDR be applied to different objectives and datasets in an iterative model-data virtuous cycle.

Materials and methods

Here we used the DynaSim toolbox (Matlab) and Jaxley toolbox (Python) to implement neural circuit models [87,125]. These models consist of one or multiple networks of neurons with different cell types. The main simulations use conductance-based spiking neurons with synaptic mechanisms, and the revision adds Izhikevich simulations as a model-class robustness analysis. Additional mechanisms can be included when needed, such as receptor, ion-channel, synaptic, or input-current terms. The system of equations governing membrane-potential dynamics is written in Equation 1.

(1)

Here t is time, V_i is the membrane potential of neuron i, C_m is membrane capacitance, I_int denotes intrinsic membrane currents such as sodium, potassium, and leak currents, I_syn denotes synaptic currents from other neurons, and I_input denotes external or stimulus-related input current. The sign convention is that positive outward current hyperpolarizes the membrane in this formulation. This framework allows models to include multiple populations, cell classes, and synaptic mechanisms such as AMPA, NMDA, and GABA currents.

Genetic Stochastic Delta Rule (GSDR), inspired by the stochastic delta rule [66] and genetic optimization [61], explores trainable model parameter spaces and deselects suboptimal states to achieve one or more objectives. Objectives are target values for metrics derived from the model, such as membrane potential, firing rate, synchrony, or spectral population dynamics. The general update is summarized in Equations 2.1 and 2.2.

(2)(3)

Here U_t represents the trainable model parameters at trial t, delta(lambda) is a stochastic exploration term controlled by the exploration factor lambda, L_t is the current loss, D_t is the temporal difference used by the supervised update logic, alpha_t is the mixing factor between supervised and activity-dependent update paths, and R_t is the MCDP activity-dependent representation. Alpha ranges from 0 to 1. When alpha = 0, the update is fully supervised by the objective-dependent term. When alpha = 1, the update is driven by the MCDP activity-dependent term and stochastic exploration. In static-alpha simulations alpha is fixed. In dynamic-alpha simulations alpha follows a bounded stochastic random walk and is retained or reverted through the same genetic selection/deselection logic as other trainable quantities. We used stochastic delta-rule updates and, for comparison, SGD-based updates implemented in JAX [126,127].

Algorithm 1. Genetic stochastic delta rule.

U, λ, α, C, Lopt ← Init(.) ▷ Initialization

while Training do

M ← Metrics(U) ▷ Measurements from the model

X ← Reponse(U) ▷ Membrane potential responses (Neurons × Time)

L(t) ← Evaluate(M, T̂ argets) ▷ Eqn.4-5

R ← MCDP(X(t)) ▷ Eqn.3 and Alg.2

if LLopt then

  Lopt ← L

  Uopt ← U

  α ← αopt

else if LC × Lopt then ▷ Deselection condition

  U ← Uopt

else

  for Wpre,postU do ▷ Synaptic weights

   DSDR(U, T) ▷ Eqn.2.2

   Δ ← (L.D.δ(λ)(1 − α) + α).Rpre,post ▷ Eqn.2.1

   Wnew ← W + Δ

   αnew ← α + η ▷ η ~ u(−0.1, 0.1)

   W ← Clamp(Wnew)[0, maxg] ▷ Clamp synaptic weights

   α ← Clampnew)[0, 1] ▷ Clamp self-supervision

  end for

end if

end while

Alg1: GSDR pseudocode. Trainable model parameters are included in the U. After initializing model and optimization parameters (alpha: self-supervision factor; lambda: exploration factor; C: deselection threshold), the training loop begins. At each trial, simulations are performed with the current parameters while recording membrane potentials X. Metrics are calculated from X to define the loss, and activity-dependent MCDP factors R are calculated from X where applicable. If the batch loss is better than the previously selected loss, the parameters are stored as the selected model state. If the batch loss exceeds C times the selected loss, the model reverts to the selected state. For each trainable parameter set in U, the update step is applied (Equations 2.1–2.2). When MCDP is not defined for a parameter, R is set to 1. Alpha can also change by bounded stochastic steps and is retained or reverted through the same selection/deselection rule. Parameters are clamped to valid ranges, such as non-negative synaptic conductances and maximum allowed strengths, to prevent physically or biologically invalid values rather than to force a specific solution.

MCDP takes membrane-potential responses X as input and calculates the correlation between pre-synaptic potentials and time-shifted post-synaptic potentials. The post-synaptic traces are shifted according to the corresponding synaptic time constant, such as tau_AMPA or tau_GABA, to account for synaptic timing. The output is an N by M matrix for N pre-synaptic and M post-synaptic neurons. This matrix is an activity-dependent representation constrained by the existing model connectivity. It is related to STDP [128] in that it uses temporal relationships between pre- and post-synaptic activity, but it is computed from membrane-potential similarity rather than discrete spike times alone. The calculation is summarized in Equation 3.

(4)

The value of R is set to 1 for any trainable variable for which MCDP is not defined, including parameters that do not correspond to a pre-post synaptic pair.

Algorithm 2. Mutual correlation dependent plasticity.

N ← rows(X(t)) ▷ XN×N(t): Membrane potential matrices

R ← 0N×N

for Wpre,postU do ▷ Synaptic connection parameters

 τ’ ← τmechmechanismAMPA, GABA,...

m ← Xpost(t − τ’) ▷ Post-synaptic potentials (shifted)

Vn ← Xpre(t) ▷ Pre-synaptic potentials

R’n×mcorr(Vn, m) ▷ Eqn.3

R[n ∈ pre, m ∈ post] ← R’n×m ▷ Append to representations

end for

R ← (R − μRR-1 ▷ Eqn.2.1, R

Alg2: MCDP pseudocode. For trainable parameters shared between a pre-synaptic and post-synaptic neuron, the membrane-potential matrix X is used to calculate cross-correlation. For the post-synaptic matrix, signals are shifted according to the relevant synaptic time constant to account for timing relative to the pre-synaptic reference signal. After all MCDP factors are calculated, the normalization step (Equation 3) is performed and the activity-dependent representation matrix R is returned for use in the GSDR update (Algorithm 1, Equation 2.1).

GSDR can include objectives, such as specific firing rates, spectral or temporal patterns. This requires defining the corresponding metric-target for each objective. A metric (M) can be a direct or indirect measurement from the model, a function that is applied on the model’s response. A metric generally consists of three arguments; spatial annotation (which part of the circuit to be measured), temporal annotation (when in time points or intervals of simulation should be selected for this measurement) and the measurement function (what aspect of the annotated model output should be measured). In our simulations we have utilized both metrics that have a biophysical unit (current and voltage) as well as metrics that are derived from the model’s response (firing rate and spectral response). Algorithm 1 describes how GSDR uses these metrics to train models.

Objectives consist of one or more target values (T). The loss function in the single-neuron simulations (Supplemental Fig. 1) and the pedagogical population simulations (Supplemental Figs. 4-5 in S1 File) was calculated by mean square error (MSE) between the measured metric and the target. In the population firing-rate tuning simulation (Supplemental Fig. 4), two objective components were used: MSE between the excitatory population firing rate and its target, and MSE between the inhibitory population firing rate and its target. For population natural-frequency tuning (Supplemental Fig. 5), the loss was calculated by MSE between the measured natural frequency, defined as the peak-power frequency, and the assigned target. In the population spectral power-ratio task (Fig 3) and contextual top-down spectral task (Fig 4), the objective was defined on the beta/gamma power ratio.

In the spectral similarity simulations comparing the model response to electrophysiology (Figs 5-6; Supplemental Fig. 12), we defined a loss function by calculating the log ratio of the normalized model spectral response to the normalized target spectral response (Equation 4). Spectral analyses involving power spectral density (PSD) of model and electrophysiology data were performed on continuous neural traces and then averaged across neurons at each frequency bin.

(5)

In addition, we defined a one-sided loss function (eqn. 5, mean exponential error, MXE) penalizing models with a very low spike count. This was necessary because without this penalty, some models produced little to no spiking.

(6)

In neural models, it is important to consider the plausibility of objectives and parameter bounds. Some target states can violate biological assumptions, such as nonphysiological membrane potentials, negative conductances, or unrealistically high firing rates. In such cases, the model may not be able to achieve the target within valid parameter ranges. Boundary conditions were therefore used to keep parameters within a plausible and stable subspace. For example, synaptic conductances were constrained to be non-negative and scaled to a maximum strength of 1 (a.u.). These bounds were used to exclude invalid regimes rather than to predetermine a specific spectral solution.

Integrating GSDR into neural network models: As a basic step, we use a spiking neural circuit model to generate membrane-potential dynamics over time. For single-neuron parameter optimization tasks (Supplemental Fig. 1), GSDR reduces to the supervised stochastic delta-rule case because only the supervised path is included. For population-level tasks, GSDR can use both supervised and activity-dependent paths (Fig 1). In the activity-dependent path, membrane potentials define synaptic co-activation patterns through MCDP. In the supervised path, model-derived metrics are compared with prespecified objectives. The difference between model performance and the objective defines the loss value for the current trial. GSDR combines this loss-guided update with MCDP, stochastic exploration, and genetic selection/deselection to update model parameters over repeated trials. Importantly, GSDR changes parameters across optimization trials; once the model state is selected, the within-trial spectral transition is driven by the input condition interacting with the fixed learned circuit, not by rapid within-trial synaptic rewiring.

We included basic GSDR examples in the Supplement to illustrate the overall logic of the method (Supplemental Figs. 1-5 in S1 File; Fig 1). In the first single-neuron example, the model was trained to modulate membrane potential from an initial value of −64.9 mV to a target of −60.0 mV (Supplemental Fig. 1A). The trainable parameter was the leak reversal potential (E-leak). The model converged toward the target, and the loss decreased despite transient divergence (Supplemental Fig. 1B). In the second single-neuron simulation, the model was trained to modulate firing rate from 0 spikes/sec to a target of 70 spikes/sec. The model was allowed to tune the leak reversal potential and an external constant current drive. The firing rate approached the target after exploratory behavior (Supplemental Fig. 1E-F in S1 File).

We also included population simulations as supplemental pedagogical examples. The first used a 100-neuron E-I model (80 excitatory, 20 inhibitory) with AMPA and GABA synaptic mechanisms [81,82], synaptic conductances, synaptic time constants, and intrinsic noise [83]. The model was initialized with uniform connectivity and trained to achieve target population firing rates (Supplemental Fig. 4). A second population example optimized natural frequency using inhibitory synaptic time constants and noise gain (Supplemental Fig. 5). These examples are retained as implementation demonstrations, while the main text focuses on the spectral-ratio, empirical gamma, and Izhikevich robustness results.

Additional robustness simulations: To evaluate whether the GSDR framework was restricted to the original conductance-based implementation, we added Izhikevich simulations [60]. These simulations used cell-class-specific dynamics while preserving recurrent E/I interactions, spike timing, and spectral readouts. The baseline, stimulus-on, and PSD analyses are reported in Supplemental Fig. S16 in S1 File, Supplemental Fig. S17 in S1 File, and Supplemental Fig. S18 in S1 File, respectively. These simulations were not intended to replace the original model or prove a unique circuit mechanism; they serve as a model-class robustness test showing that the optimization logic can be applied beyond the original model class.

Experimental design

Description of animal use: All experimental procedures were approved by the Vanderbilt University Institutional Animal Care and Use Committee (IACUC). One adult bonnet macaque (Macaca radiata) aged 18 years (7.4 kg) was used in this study. All procedures described here were supervised by Vanderbilt’s IACUC to ensure compliance with all local and federal laws and regulations. The monkey was housed in an AAALAC approved facility (Allentown Inc., NJ, Large Animal Primate Housing units) supervised by an AALAS certified laboratory animal technician and staffed by trained caretakers. The animal was cohoused with conspecifics. Within the facility, a comprehensive preventative medicine and veterinary care program is in place that includes routine care, psychological enrichment, and daily observation of animals. Vanderbilt’s facility has been accredited by AAALAC International and is designed to meet the standards and guidelines set forth in the Animal Welfare Act and the Guide for the Care and Use of Laboratory Animals, Eighth Edition. Enrichment for the animals was provided daily and focused on promoting species-typical behaviors through social housing, complex foraging puzzles, manipulable toys, and, notably, cognitive, touchscreen-based computer tasks. These strategies aim to reduce stereotypic behaviors and improve psychological well-being. Food (macaque biscuits provided twice daily, produce/fruit provided near daily) and water were provided to the animal daily by the laboratory staff and/or the animal care staff.

The monkey was implanted with two 18 mm recording chambers (Christ) placed over the visual/temporal and prefrontal cortex and a headpost. The surgery to implant the recording chamber and headpost was performed using sterilized instruments and aseptic technique and included multimodal analgesia (local anesthetic – lidocaine injected subcutaneously before a surgical incision followed by slow-release Buprenorphine and an NSAID for 3 days) and anesthesia (induction with ketamine, followed by maintenance with the gas anesthetic isoflurane). In addition, antibiotics such as cefazolin were given perioperatively. Veterinarians and veterinary technicians monitored the health of the animal daily and communicated directly with each other and with investigative staff regarding the animal’s health at all stages of this research. Monitoring was performed by visual assessment daily and by inspection of detailed records (on feeding patterns, water consumption, and weight) and semi-annually in a comprehensive sedated exam performed by a veterinarian. Altogether, this ensured that there were no signs of pain or distress associated with these experimental procedures (which can be diagnosed by cage-side behavioral changes, changes in weight or changes in food/water consumption) and ensured the animal’s health and well-being were optimized throughout the study. The animal was not euthanized for the purposes of this study.

In-vivo neural signal recordings: To insert electrodes into the brain we used a mechanical Microdrive (Narishige, Tokyo, Japan) that was mounted onto the chambers. A guide tube was lowered through a recording grid (Christ) to penetrate the dura mater and granulation tissue. We then acutely introduced a 128-channel linear deep array into area MT/MST. We used a linear 128-channel recording array where the inter-contact spacing was 40 microns (Diagnostic Biochips, Glen Burnie, MD). Recordings were acquired using a RHD System (Intan technologies, CA) sampling at 30 kHz. Recordings were electrically grounded to the guide tube.

Grid positions were pre-determined based on a pre-recording MRI scan with the chambers and grid in place, with water-saline to mark the trajectories of each grid hole position. We advanced the electrode until there was visually responsive neuronal activity on most channels and until the local field potentials showed a distinct spectral signature of the cortical sheet, characterized by large amplitude alpha/beta (10–30 Hz) oscillations in deep channels and gamma (40–150 Hz) oscillations in superficial channels [129].

We used MonkeyLogic (developed and maintained at the National Institute for Mental Health [130]) to control the behavioral task. Visual stimuli were displayed using PROPixx Pro projectors (VPixx Technologies, Quebec, Canada) with a resolution of 1920 x 1080 at a 120 Hz refresh rate. The projector screen was positioned 57 cm in front of the monkey’s eyes. Luminance calibration was performed with a Photo Research PR-650 at the projector screen with a median value of 2.613 cd/m2. The monkey was trained to fixate its eyes around a central fixation dot (radius of fixation window: 1.5 visual degrees). Eye position was monitored using an Eyelink 1000 (SR Research, Ottawa, Canada). A task began with an isoluminant gray screen. Once the monkey maintained fixation for 500ms, a sequence of drifting gratings appeared (radius = 12 visual degrees, drift rate: 2 Hz, 1 cycle/visual degree, 0.8 Michelson contrast, angle of drifting grating was 45 or 135 degrees from the vertical midline) for 500ms, and was replaced by a blank screen with the fixation dot remaining for 500ms. This sequence was repeated 4 times in a trial, for a total trial length of 4500ms (500ms pre-sequence fixation + 4x1000ms stimulus presentations). The monkey was rewarded for maintaining fixation throughout the trial with a small juice reward. Only the first 1000ms of data was used for this analysis.

Analysis

Single units were sorted using Kilosort2 [131]. We only selected neurons which satisfied both quality requirements (Signal-to-noise ratio > 1.2, Presence ratio > 97.5%). We convolved all single unit spike times with a post-synaptic potential kernel with a rise time constant of 0.5ms and a decay time constant of 4.5ms. This convolution was applied to the model’s response and to the neurophysiological spike time data. This step was necessary in order to facilitate spectral analysis, which is more well-behaved on continuous data as opposed to point-process data [132].

We estimated each neuron’s spectrogram (time-frequency response) using multitaper spectral estimation with a Kaiser window of length 400 ms and 98% overlap between adjacent time windows. For both the model and the electrophysiology data, we performed this analysis from 500 ms before stimulus onset to 1000 ms after stimulus onset. Time-frequency responses during stimulus presentation (Fig 6; Supplemental Figs. S16-S18 in S1 File for Izhikevich analyses) were used as GSDR objectives for generating neural responses with similar spectral structure.

Supporting information

S1 File. Supplementary Information.

PDF containing Supplemental Figures S1–S18 and supplementary text.

https://doi.org/10.1371/journal.pone.0354021.s001

(PDF)

S2 File. Source code and data.

Achive containing the source code used to generate the simulations and analyses presented in this study (online version at https://github.com/HNXJ/GSDR).

https://doi.org/10.1371/journal.pone.0354021.s002

(ZIP)

Acknowledgments

We thank Nancy Kopell (and the Cognitive Rhythms and Cognition – CRC team), Homero Esmeraldo, Eli Sennesh for their critical comments to an initial version of this manuscript.

Code availability: Github repository: https://github.com/DynaSim/DynaSim/tree/devDL https://github.com/HNXJ/GSDR.

References

  1. 1. White JA, Chow CC, Ritt J, No CS-T, Kopell N. Synchronization and oscillatory dynamics in heterogeneous, mutually inhibited neurons.
  2. 2. Whittington MA, Traub RD, Kopell N, Ermentrout B, Buhl EH. Inhibition-based rhythms: experimental and mathematical observations on network dynamics. Int J Psychophysiol. 2000;38(3):315–36. pmid:11102670
  3. 3. Lee S, Sen K, Kopell N. Cortical gamma rhythms modulate NMDAR-mediated spike timing dependent plasticity in a biophysical model. PLoS Comput Biol. 2009;5(12):e1000602. pmid:20011119
  4. 4. Petousakis K-E, Apostolopoulou AA, Poirazi P. The impact of Hodgkin-Huxley models on dendritic research. J Physiol. 2023;601(15):3091–102. pmid:36218068
  5. 5. Ma J. Biophysical neurons, energy, and synapse controllability: a review. J Zhejiang Univ Sci A. 2022;24(2):109–29.
  6. 6. Cattani A, Arnold DB, McCarthy M, Kopell N. Basolateral amygdala oscillations enable fear learning in a biophysical model. 2023.
  7. 7. Song HF, Yang GR, Wang X-J. Training excitatory-inhibitory recurrent neural networks for cognitive tasks: a simple and flexible framework. PLoS Comput Biol. 2016;12(2):e1004792. pmid:26928718
  8. 8. Zhao D, Zeng Y, Li Y. BackEISNN: A deep spiking neural network with adaptive self-feedback and balanced excitatory-inhibitory neurons. Neural Netw. 2022;154:68–77. pmid:35863201
  9. 9. Hodgkin AL, Huxley AF. A quantitative description of membrane current and its application to conduction and excitation in nerve. J Physiol. 1952;117(4):500–44. pmid:12991237
  10. 10. HODGKIN AL, HUXLEY AF. Currents carried by sodium and potassium ions through the membrane of the giant axon of Loligo. J Physiol. 1952;116(4):449–72. pmid:14946713
  11. 11. Rabuffo G, Bandyopadhyay A, Calabrese C, Gudibanda K, Depannemaecker D, Takarabe LM, et al. Biophysically inspired mean-field model of neuronal populations driven by ion exchange mechanisms. 2025.
  12. 12. Xiao J, Chen Z, Yu B. A Potential Mechanism of Sodium Channel Mediating the General Anesthesia Induced by Propofol. Front Cell Neurosci. 2020;14:593050. pmid:33343303
  13. 13. Alonso A, Llinás RR. Subthreshold Na+-dependent theta-like rhythmicity in stellate cells of entorhinal cortex layer II. Nature. 1989;342(6246):175–7. pmid:2812013
  14. 14. Dura-Bernal S, Herrera B, Lupascu C, Marsh BM, Gandolfi D, Marasco A, et al. Large-Scale Mechanistic Models of Brain Circuits with Biophysically and Morphologically Detailed Neurons. J Neurosci. 2024;44(40):e1236242024. pmid:39358017
  15. 15. Lee K, Pennartz CMA, Mejias JF. Cortical networks with multiple interneuron types generate oscillatory patterns during predictive coding. Neuroscience. 2024.
  16. 16. Tahvili F, Vinck M, Di Volo M. A cortical microcircuit model reveals distinct inhibitory mechanisms of network oscillations and stability. Neuroscience. 2025.
  17. 17. Sanchez-Todo R, Bastos AM, Lopez-Sola E, Mercadal B, Santarnecchi E, Miller EK, et al. A physical neural mass model framework for the analysis of oscillatory generators from laminar electrophysiological recordings. Neuroimage. 2023;270:119938. pmid:36775081
  18. 18. Rimehaug AE, Stasik AJ, Hagen E, Billeh YN, Siegle JH, Dai K, et al. Uncovering circuit mechanisms of current sinks and sources with biophysical simulations of primary visual cortex. Elife. 2023;12:e87169. pmid:37486105
  19. 19. Del Rosario J, Coletta S, Kim SH, Mobille Z, Peelman K, Williams B, et al. Lateral inhibition in V1 controls neural and perceptual contrast sensitivity. Nat Neurosci. 2025;28(4):836–47. pmid:40033123
  20. 20. Soplata AE, McCarthy MM, Sherfey J, Lee S, Purdon PL, Brown EN, et al. Thalamocortical control of propofol phase-amplitude coupling. PLoS Comput Biol. 2017;13(12):e1005879. pmid:29227992
  21. 21. Soplata AE, Adam E, Brown EN, Purdon PL, McCarthy MM, Kopell N. Rapid thalamocortical network switching mediated by cortical synchronization underlies propofol-induced EEG signatures: a biophysical model. J Neurophysiol. 2023;130(1):86–103. pmid:37314079
  22. 22. Carannante I, Johansson Y, Silberberg G, Hellgren Kotaleski J. Data-Driven Model of Postsynaptic Currents Mediated by NMDA or AMPA Receptors in Striatal Neurons. Front Comput Neurosci. 2022;16:806086. pmid:35645751
  23. 23. Moujahid A, d’Anjou A, Torrealdea FJ, Torrealdea F. Energy and information in Hodgkin-Huxley neurons. Phys Rev E Stat Nonlin Soft Matter Phys. 2011;83(3 Pt 1):031912. pmid:21517530
  24. 24. Johnson EC, Jones DL, Ratnam R. A minimum-error, energy-constrained neural code is an instantaneous-rate code. J Comput Neurosci. 2016;40(2):193–206. pmid:26922680
  25. 25. Wang Y, Wang R, Xu X. Neural energy supply-consumption properties based on Hodgkin-Huxley model. Neural Plast. 2017;2017:1–11.
  26. 26. Theriault JE, Shaffer C, Dienel GA, Sander CY, Hooker JM, Dickerson BC, et al. A functional account of stimulation-based aerobic glycolysis and its role in interpreting BOLD signal intensity increases in neuroimaging experiments. Neurosci Biobehav Rev. 2023;153:105373. pmid:37634556
  27. 27. Lampl I, Yarom Y. Subthreshold oscillations of the membrane potential: a functional synchronizing and timing device. J Neurophysiol. 1993;70(5):2181–6. pmid:8294979
  28. 28. Klaus A, Hjorth J, Hellgren-Kotaleski J. The influence of subthreshold membrane potential oscillations and GABAergic input on firing activity in striatal fast-spiking neurons. BMC Neurosci. 2009;10(S1).
  29. 29. Börgers C, Kopell NJ. Gamma oscillations and stimulus selection. Neural Comput. 2008;20:383–414.
  30. 30. Chauhan K, Neiman AB, Tass PA. Synaptic reorganization of synchronized neuronal networks with synaptic weight and structural plasticity. PLoS Comput Biol. 2024;20(7):e1012261. pmid:38980898
  31. 31. Bartos M, Vida I, Jonas P. Synaptic mechanisms of synchronized gamma oscillations in inhibitory interneuron networks. Nat Rev Neurosci. 2007;8(1):45–56. pmid:17180162
  32. 32. Frémaux N, Gerstner W. Neuromodulated spike-timing-dependent plasticity, and theory of three-factor learning rules. Front Neural Circuits. 2016;9.
  33. 33. Srinivasan MV, Laughlin SB, Dubs A. Predictive coding: a fresh view of inhibition in the retina. 1982.
  34. 34. Rao RP, Ballard DH. Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects. Nat Neurosci. 1999;2(1):79–87. pmid:10195184
  35. 35. Friston K. A theory of cortical responses. Philos Trans R Soc Lond B Biol Sci. 2005;360(1456):815–36. pmid:15937014
  36. 36. Friston K, Kiebel S. Predictive coding under the free-energy principle. Philos Trans R Soc Lond B Biol Sci. 2009;364(1521):1211–21. pmid:19528002
  37. 37. Bastos AM, Usrey WM, Adams RA, Mangun GR, Fries P, Friston KJ. Canonical microcircuits for predictive coding. Neuron. 2012;76(4):695–711. pmid:23177956
  38. 38. Körding KP, Wolpert DM. Bayesian integration in sensorimotor learning. Nature. 2004;427(6971):244–7. pmid:14724638
  39. 39. Fletcher PC, Frith CD. Perceiving is believing: a Bayesian approach to explaining the positive symptoms of schizophrenia. Nat Rev Neurosci. 2009;10(1):48–58. pmid:19050712
  40. 40. Lee JH, Whittington MA, Kopell NJ. Top-down beta rhythms support selective attention via interlaminar interaction: a model. PLoS Comput Biol. 2013;9(8):e1003164. pmid:23950699
  41. 41. Bastos G, Holmes JT, Ross JM, Rader AM, Gallimore CG, Wargo JA, et al. Top-down input modulates visual context processing through an interneuron-specific circuit. Cell Rep. 2023;42(9):113133. pmid:37708021
  42. 42. Markov NT, Vezoli J, Chameau P, Falchier A, Quilodran R, Huissoud C, et al. Anatomy of hierarchy: feedforward and feedback pathways in macaque visual cortex. J Comp Neurol. 2014;522(1):225–59. pmid:23983048
  43. 43. Richter D, Ekman M, de Lange FP. Suppressed Sensory Response to Predictable Object Stimuli throughout the Ventral Visual Stream. J Neurosci. 2018;38(34):7452–61. pmid:30030402
  44. 44. Richter CG, Thompson WH, Bosman CA, Fries P. Top-Down Beta Enhances Bottom-Up Gamma. J Neurosci. 2017;37:6698–711.
  45. 45. Bastos AM, Lundqvist M, Waite AS, Kopell N, Miller EK. Layer and rhythm specificity for predictive routing. Proc Natl Acad Sci U S A. 2020;117(49):31459–69. pmid:33229572
  46. 46. Miller EK, Brincat SL, Roy JE. Cognition is an emergent property. Curr Opin Behav Sci. 2024;57:101388. pmid:39651342
  47. 47. Bastos AM, Vezoli J, Bosman CA, Schoffelen J-M, Oostenveld R, Dowdall JR, et al. Visual areas exert feedforward and feedback influences through distinct frequency channels. Neuron. 2015;85(2):390–401. pmid:25556836
  48. 48. Xiong Y(, Donoghue JA, Lundqvist M, Mahnke M, Major AJ, Brown EN, et al. Propofol-mediated loss of consciousness disrupts predictive routing and local field phase modulation of neural activity. Proceedings of the National Academy of Sciences. 2024;121(42):null. https://doi.org/10.1073/pnas.2315160121
  49. 49. Kopell N, Ermentrout GB, Whittington MA, Traub RD. Gamma rhythms and beta rhythms have different synchronization properties. Proc Natl Acad Sci U S A. 2000;97(4):1867–72. pmid:10677548
  50. 50. Sussillo D, Abbott LF. Generating coherent patterns of activity from chaotic neural networks. Neuron. 2009;63(4):544–57. pmid:19709635
  51. 51. Börgers C, Epstein S, Kopell NJ. Gamma oscillations mediate stimulus competition and attentional selection in a cortical network model. Proc Natl Acad Sci U S A. 2008;105(46):18023–8. pmid:19004759
  52. 52. Börgers C, Kopell N. Synchronization in networks of excitatory and inhibitory neurons with sparse, random connectivity. Neural Comput. 2003;15(3):509–38. pmid:12620157
  53. 53. Yang H, Han F, Lu W, Wang Q. Computational modeling for gratings stimulated gamma oscillations in a large-scale cortical neuronal network. Neurocomputing. 2025;655:131401.
  54. 54. Lee S, Jones SR. Distinguishing mechanisms of gamma frequency oscillations in human current source signals using a computational model of a laminar neocortical network. Front Hum Neurosci. 2013;7:869. pmid:24385958
  55. 55. Sherfey JS, Ardid S, Hass J, Hasselmo ME, Kopell NJ. Flexible resonance in prefrontal networks with strong feedback inhibition. PLoS Comput Biol. 2018;14(8):e1006357. pmid:30091975
  56. 56. Wallace E, Benayoun M, van Drongelen W, Cowan JD. Emergent oscillations in networks of stochastic spiking neurons. PLoS One. 2011;6(5):e14804. pmid:21573105
  57. 57. Ardid S, Wang X-J, Gomez-Cabrero D, Compte A. Reconciling coherent oscillation with modulation of irregular spiking activity in selective attention: gamma-range synchronization between sensory and executive cortical areas. J Neurosci. 2010;30(8):2856–70. pmid:20181583
  58. 58. Nicola W, Clopath C. Supervised learning in spiking neural networks with FORCE training. Nat Commun. 2017;8(1):2208. pmid:29263361
  59. 59. Druckmann S, Banitt Y, Gidon A, Schürmann F, Markram H, Segev I. A novel multiple objective optimization framework for constraining conductance-based neuron models by experimental data. Front Neurosci. 2007;1(1):7–18. pmid:18982116
  60. 60. Izhikevich EM, Edelman GM. Large-scale model of mammalian thalamocortical systems. Proc Natl Acad Sci U S A. 2008;105(9):3593–8. pmid:18292226
  61. 61. Vikhar PA. Evolutionary algorithms: A critical review and its future prospects. In: 2016 International Conference on Global Trends in Signal Processing, Information Computing and Communication (ICGTSPICC). 2016;261–5.
  62. 62. Evolutionary Computation in Bioinformatics. Elsevier. 2003.
  63. 63. Farinati D, Vanneschi L. A survey on dynamic populations in bio-inspired algorithms. Genet Program Evolvable Mach. 2024;25(2).
  64. 64. Hazy TE, Frank MJ, O’Reilly RC. Neural mechanisms of acquired phasic dopamine responses in learning. Neurosci Biobehav Rev. 2010;34(5):701–20. pmid:19944716
  65. 65. Rescorla RA, Wagner AR. A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and nonreinforcement. Class Cond II. 1972. p. 64–99.
  66. 66. Frazier-Logue N, Hanson SJ. The Stochastic Delta Rule: Faster and More Accurate Deep Learning Through Adaptive Weight Noise. Neural Comput. 2020;32(5):1018–32. pmid:32187001
  67. 67. Miller RR, Barnet RC, Grahame NJ. Assessment of the Rescorla-Wagner model. Psychol Bull. 1995;117(3):363–86. pmid:7777644
  68. 68. Jin Y. Evolutionary Algorithms. Advanced Fuzzy Systems Design and Applications. Heidelberg: Physica-Verlag HD. 2003. p. 49–71.
  69. 69. Hoffmeister F, Bäck T. Genetic algorithms and evolution strategies: Similarities and differences. In: Schwefel H-P, Männer R, editors. Parallel problem solving from nature. Berlin/Heidelberg: Springer-Verlag. 1991. p. 455–69.
  70. 70. Mühlenbein H, Schomisch M, Born J. The parallel genetic algorithm as function optimizer. Parallel Computing. 1991;17(6–7):619–32.
  71. 71. Whitley D. An overview of evolutionary algorithms: practical issues and common pitfalls. Inf Softw Technol. 2001;43:817–31.
  72. 72. Slowik A, Kwasnicka H. Evolutionary algorithms and their applications to engineering problems. Neural Comput & Applic. 2020;32(16):12363–79.
  73. 73. Bastos AM, Loonis R, Kornblith S, Lundqvist M, Miller EK. Laminar recordings in frontal cortex suggest distinct layers for maintenance and control of working memory. Proc Natl Acad Sci U S A. 2018;115(5):1117–22. pmid:29339471
  74. 74. Miller EK, Lundqvist M, Bastos AM. Working Memory 2.0. Neuron. 2018;100:463–75.
  75. 75. Lundqvist M, Bastos AM, Miller EK. Preservation and Changes in Oscillatory Dynamics across the Cortical Hierarchy. J Cogn Neurosci. 2020;32(10):2024–35. pmid:32573380
  76. 76. Gabhart KM, Xiong Y, Bastos AM. Predictive coding: a more cognitive process than we thought?. Trends Cogn Sci. 2025;S1364661325000300.
  77. 77. Jamali S, Bagur S, Bremont E, Van Kerkoerle T, Dehaene S, Bathellier B. Parallel mechanisms signal a hierarchy of sequence structure violations in the auditory cortex. Elife. 2024;13:RP102702. pmid:39636091
  78. 78. Giraud A-L, Arnal LH. Hierarchical Predictive Information Is Channeled by Asymmetric Oscillatory Activity. Neuron. 2018;100(5):1022–4. pmid:30521776
  79. 79. Brunet NM, Bosman CA, Vinck M, Roberts M, Oostenveld R, Desimone R, et al. Stimulus repetition modulates gamma-band synchronization in primate visual cortex. Proc Natl Acad Sci U S A. 2014;111(9):3626–31. pmid:24554080
  80. 80. Adesnik H, Bruns W, Taniguchi H, Huang ZJ, Scanziani M. A neural circuit for spatial summation in visual cortex. Nature. 2012;490(7419):226–31. pmid:23060193
  81. 81. Golowasch J, Casey M, Abbott LF, Marder E. Network stability from activity-dependent regulation of neuronal conductances. Neural Comput. 1999;11(5):1079–96. pmid:10418158
  82. 82. Prinz AA, Bucher D, Marder E. Similar network activity from disparate circuit parameters. Nat Neurosci. 2004;7(12):1345–52. pmid:15558066
  83. 83. Uhlenbeck GE, Ornstein LS. On the Theory of the Brownian Motion. Phys Rev. 1930;36:823–41.
  84. 84. Rook AJ, Penning PD. Synchronisation of eating, ruminating and idling activity by grazing sheep. Applied Animal Behaviour Science. 2005;32(2-3):157–66. https://doi.org/10.1016/S0168-1591(05)80039-5
  85. 85. Wacongne C, Changeux J-P, Dehaene S. A neuronal model of predictive coding accounting for the mismatch negativity. J Neurosci. 2012;32(11):3665–78. pmid:22423089
  86. 86. Chien VSC, Maess B, Knösche TR. A generic deviance detection principle for cortical On/Off responses, omission response, and mismatch negativity. Biol Cybern. 2019;113(5–6):475–94. pmid:31428855
  87. 87. Sherfey JS, Soplata AE, Ardid S, Roberts EA, Stanley DA, Pittman-Polletta BR, et al. DynaSim: A MATLAB Toolbox for Neural Modeling and Simulation. Front Neuroinform. 2018;12:10. pmid:29599715
  88. 88. Yuille A, Kersten D. Vision as Bayesian inference: analysis by synthesis?. Trends Cogn Sci. 2006;10:301–8.
  89. 89. Aitchison L, Lengyel M. With or without you: predictive coding and Bayesian inference in the brain. Curr Opin Neurobiol. 2017;46:219–27. pmid:28942084
  90. 90. Azabou M, Azar MG, Liu R, Lin CH, Johnson EC, Bhaskaran-Nair K. Mine your own vieW: self-supervised learning through across-sample prediction. arXiv. 2021.
  91. 91. Nejad KK, Anastasiades P, Hertäg L, Costa RP. Self-supervised predictive learning accounts for cortical layer-specificity. Nat Commun. 2025;16(1):6178. pmid:40615428
  92. 92. Friston KJ, Harrison L, Penny W. Dynamic causal modelling. Neuroimage. 2003;19(4):1273–302. pmid:12948688
  93. 93. David O, Kiebel SJ, Harrison LM, Mattout J, Kilner JM, Friston KJ. Dynamic causal modeling of evoked responses in EEG and MEG. Neuroimage. 2006;30(4):1255–72. pmid:16473023
  94. 94. Bastos AM, Litvak V, Moran R, Bosman CA, Fries P, Friston KJ. A DCM study of spectral asymmetries in feedforward and feedback connections between visual areas V1 and V4 in the monkey. Neuroimage. 2015;108:460–75. pmid:25585017
  95. 95. Garrido MI, Friston KJ, Kiebel SJ, Stephan KE, Baldeweg T, Kilner JM. The functional anatomy of the MMN: a DCM study of the roving paradigm. Neuroimage. 2008;42(2):936–44. pmid:18602841
  96. 96. Katsanevaki C, Bastos AM, Cagnan H, Bosman CA, Friston KJ, Fries P. Attentional effects on local V1 microcircuits explain selective V1-V4 communication. Neuroimage. 2023;281:120375. pmid:37714390
  97. 97. Billeh YN, Cai B, Gratiy SL, Dai K, Iyer R, Gouwens NW, et al. Systematic Integration of Structural and Functional Data into Multi-scale Models of Mouse Primary Visual Cortex. Neuron. 2020;106(3):388-403.e18. pmid:32142648
  98. 98. Roopun AK, Kramer MA, Carracedo LM, Kaiser M, Davies CH, Traub RD, et al. Period concatenation underlies interactions between gamma and beta rhythms in neocortex. Front Cell Neurosci. 2008;2:1. pmid:18946516
  99. 99. Sherfey J, Ardid S, Miller EK, Hasselmo ME, Kopell NJ. Prefrontal oscillations modulate the propagation of neuronal activity required for working memory. Neurobiol Learn Mem. 2020;173:107228. pmid:32561459
  100. 100. Ardid S, Sherfey JS, McCarthy MM, Hass J, Pittman-Polletta BR, Kopell N. Biased competition in the absence of input bias revealed through corticostriatal computation. Proc Natl Acad Sci U S A. 2019;116(17):8564–9. pmid:30962383
  101. 101. Choromanska A, Henaff M, Mathieu M, Arous GB, LeCun Y. The Loss Surfaces of Multilayer Networks. arXiv. 2023;103.
  102. 102. Bastos AM, Donoghue JA, Brincat SL, Mahnke M, Yanar J, Correa J, et al. Neural effects of propofol-induced unconsciousness and its reversal using thalamic stimulation. Elife. 2021;10:e60824. pmid:33904411
  103. 103. Van Derveer AB, Bastos G, Ferrell AD, Gallimore CG, Greene ML, Holmes JT, et al. A Role for Somatostatin-Positive Interneurons in Neuro-Oscillatory and Information Processing Deficits in Schizophrenia. Schizophr Bull. 2021;47(5):1385–98. pmid:33370434
  104. 104. Arnal LH, Giraud A-L. Cortical oscillations and sensory predictions. Trends Cogn Sci. 2012;16(7):390–8. pmid:22682813
  105. 105. Stoiljkovic M, Kelley C, Nagy D, Hajós M. Modulation of hippocampal neuronal network oscillations by α7 nACh receptors. Biochem Pharmacol. 2015;97(4):445–53. pmid:26206189
  106. 106. Mikulasch FA, Rudelt L, Wibral M, Priesemann V. Where is the error? Hierarchical predictive coding through dendritic error computation. Trends Neurosci. 2023;46(1):45–59. pmid:36577388
  107. 107. O’Toole SM, Oyibo HK, Keller GB. Molecularly targetable cell types in mouse visual cortex have distinguishable prediction error responses. Neuron. 2023;111(18):2918-2928.e8. pmid:37708892
  108. 108. Pérez-González D, Lao-Rodríguez AB, Aedo-Sánchez C, Malmierca MS. Acetylcholine modulates the precision of prediction error in the auditory cortex. Elife. 2024;12:RP91475. pmid:38241174
  109. 109. Spratling MW. Predictive coding as a model of biased competition in visual attention. Vision Res. 2008;48(12):1391–408. pmid:18442841
  110. 110. Buffalo EA, Fries P, Landman R, Buschman TJ, Desimone R. Laminar differences in gamma and alpha coherence in the ventral stream. Proc Natl Acad Sci U S A. 2011;108(27):11262–7. pmid:21690410
  111. 111. Adams RA, Pinotsis D, Tsirlis K, Unruh L, Mahajan A, Horas AM, et al. Computational Modeling of Electroencephalography and Functional Magnetic Resonance Imaging Paradigms Indicates a Consistent Loss of Pyramidal Cell Synaptic Gain in Schizophrenia. Biol Psychiatry. 2022;91(2):202–15. pmid:34598786
  112. 112. Han C, Wang T, Yang Y, Wu Y, Li Y, Dai W, et al. Multiple gamma rhythms carry distinct spatial frequency information in primary visual cortex. PLoS Biol. 2021;19(12):e3001466. pmid:34932558
  113. 113. Han C, Wang T, Wu Y, Li Y, Yang Y, Li L, et al. The Generation and Modulation of Distinct Gamma Oscillations with Local, Horizontal, and Feedback Connections in the Primary Visual Cortex: A Model Study on Large-Scale Networks. Neural Plast. 2021;2021:8874516. pmid:33531893
  114. 114. Murty DVPS, Shirhatti V, Ravishankar P, Ray S. Large Visual Stimuli Induce Two Distinct Gamma Oscillations in Primate Visual Cortex. J Neurosci. 2018;38(11):2730–44. pmid:29440388
  115. 115. Samaha J, Bauer P, Cimaroli S, Postle BR. Top-down control of the phase of alpha-band oscillations as a mechanism for temporal prediction. Proc Natl Acad Sci U S A. 2015;112(27):8439–44. pmid:26100913
  116. 116. van Kerkoerle T, Self MW, Dagnino B, Gariel-Mathis M-A, Poort J, van der Togt C, et al. Alpha and gamma oscillations characterize feedback and feedforward processing in monkey visual cortex. Proc Natl Acad Sci U S A. 2014;111(40):14332–41. pmid:25205811
  117. 117. Wang C, Rajagovindan R, Han S-M, Ding M. Top-Down Control of Visual Alpha Oscillations: Sources of Control Signals and Their Mechanisms of Action. Front Hum Neurosci. 2016;10:15. pmid:26834601
  118. 118. Schmidt M, Bakker R, Shen K, Bezgin G, Diesmann M, van Albada SJ. A multi-scale layer-resolved spiking network model of resting-state dynamics in macaque visual cortical areas. PLoS Comput Biol. 2018;14(10):e1006359. pmid:30335761
  119. 119. Westerberg JA, Xiong YS, Nejat H, Sennesh E, Durand S, Hardcastle B, et al. Adaptation, not prediction, drives neuronal spiking responses in mammalian sensory cortex. Neuroscience. 2024.
  120. 120. Kiebel SJ, Daunizeau J, Friston KJ. A hierarchy of time-scales and the brain. PLoS Comput Biol. 2008;4(11):e1000209. pmid:19008936
  121. 121. Wacongne C, Labyt E, van Wassenhove V, Bekinschtein T, Naccache L, Dehaene S. Evidence for a hierarchy of predictions and prediction errors in human cortex. Proc Natl Acad Sci U S A. 2011;108(51):20754–9. pmid:22147913
  122. 122. Chao ZC, Takaura K, Wang L, Fujii N, Dehaene S. Large-Scale Cortical Networks for Hierarchical Prediction and Prediction Error in the Primate Brain. Neuron. 2018;100(5):1252-1266.e3. pmid:30482692
  123. 123. Keller GB, Mrsic-Flogel TD. Predictive Processing: A Canonical Cortical Computation. Neuron. 2018;100:424–35.
  124. 124. Jiang LP, Rao RPN. Dynamic predictive coding: A model of hierarchical sequence learning and prediction in the neocortex. PLoS Comput Biol. 2024;20(2):e1011801. pmid:38330098
  125. 125. Deistler M, Kadhim KL, Pals M, Beck J, Huang Z, Gloeckler M, et al. JAXLEY: differentiable simulation enables large-scale training of detailed biophysical models of neural dynamics. Nat Methods. 2025;22(12):2649–57. pmid:41233544
  126. 126. Robbins H, Monro S. A Stochastic Approximation Method. Ann Math Stat. 1951;22:400–7.
  127. 127. Bradbury J, Frostig R, Hawkins P, Johnson MJ, Leary C, Maclaurin D. JAX. JAX.
  128. 128. Markram H, Gerstner W, Sjöström PJ. Spike-timing-dependent plasticity: a comprehensive overview. Front Synaptic Neurosci. 2012;4.
  129. 129. Mendoza-Halliday D, Major AJ, Lee N, Lichtenfeld MJ, Carlson B, Mitchell B, et al. A ubiquitous spectrolaminar motif of local field potential power across the primate cortex. Nat Neurosci. 2024;27(3):547–60. pmid:38238431
  130. 130. Hwang J, Mitz AR, Murray EA. NIMH MonkeyLogic: Behavioral control and data acquisition in MATLAB. J Neurosci Methods. 2019;323:13–21. pmid:31071345
  131. 131. Pachitariu M, Sridhar S, Pennington J, Stringer C. Spike sorting with Kilosort4. Nat Methods. 2024;21(5):914–21. pmid:38589517
  132. 132. Kass RE, Ventura V, Brown EN. Statistical issues in the analysis of neuronal data. J Neurophysiol. 2005;94(1):8–25. pmid:15985692