bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license.

Robust Rhythmogenesis via Spike Timing Dependent Plasticity

Gabi Socolovsky1, 2, ∗ and Maoz Shamir1, 2, 3 1Department of Physics, Faculty of Natural Sciences, 2Zlotowski Center for Neuroscience, 3Department of Physiology and Cell Biology, Faculty of Health Sciences, Ben-Gurion University of the Negev, Be’er-Sheva, Israel (Dated: March 31, 2021) Rhythmic activity has been observed in numerous animal species ranging from insects to humans, and in relation to a wide range of cognitive tasks. Various experimental and theoretical studies have investigated rhythmic activity. The theoretical efforts have mainly been focused on the neuronal dynamics, under the assumption that network connectivity satisfies certain fine-tuning conditions required to generate oscillations. However, it remains unclear how this fine tuning is achieved. Here we investigated the hypothesis that spike timing dependent plasticity (STDP) can provide the underlying mechanism for tuning synaptic connectivity to generate rhythmic activity. We addressed this question in a modeling study. We examined STDP dynamics in the framework of a network of excitatory and inhibitory neuronal populations that has been suggested to underlie the generation of oscillations in the gamma range. Mean field Fokker Planck equations for the synaptic weights dynamics are derived in the limit of slow learning. We drew on this approximation to determine which types of STDP rules drive the system to exhibit rhythmic activity, and demonstrate how the parameters that characterize the plasticity rule govern the rhythmic activity. Finally, we propose a novel mechanism that can ensure the robustness of self-developing processes, in general and for rhythmogenesis in particular.

I. INTRODUCTION Since the cross-correlation of neural activity is central to STDP dynamics, we next define the network dynam- Rhythmic activity in the brain has been observed for ics and analyze its phase diagram and the dependence more than a century [1, 2]. Oscillations in different fre- of the correlations on the synaptic weights. Using the quency bands have been associated with different cogni- separation of timescales in the limit of slow learning we tive tasks and mental states [2–6]. Specifically, rhyth- analyze STDP dynamics and investigate under what con- mic activity in the Gamma band has been described in ditions STDP can stabilize a specific rhythmic activity association with sensory stimulation [7], attentional se- and how the characteristics of the STDP rule govern the lection [8, 9], working memory [10] and other measures resultant rhythmic activity. Finally, we summarize our [11]. Deviation from normal rhythmic activity has been results, discuss possible extensions and limitations and associated with pathology [12–15]. propose a general principle for robust rhythmogenesis. Considerable theoretical efforts have been devoted to unraveling the neural mechanism responsible for gener- ating rhythmic activity in general [2] and in the Gamma II. STDP DYNAMICS band in particular [16–21]. One possible mechanism is based on delayed inhibitory feedback [21–24]. The basic The basic coin of information transfer in the central architecture of this mechanism is composed of one ex- nervous system is the spike: a short electrical pulse that citatory and one inhibitory neuronal populations, with propagates along the axon (output branch) of the trans- reciprocal connections (Fig. 1a). A target rhythm is mitting neuron to synaptic terminals that relay the infor- obtained by tuning the strengths of the excitatory and mation to the dendrites (input branch) of the receiving inhibitory interactions (Fig. 1b-1c). However, it is un- neurons downstream. While spikes are stereotypical, the clear which mechanism results in the required fine-tuning relayed signal depends on the synaptic weight, which can [23, 25]. be thought of as interaction strength. Learning is the We hypothesized that activity dependent synaptic process that modifies synaptic weights (the dynamics of plasticity can provide the mechanism for tuning the inter- the interaction strengths themselves), and typically oc- action strengths in order to stabilize a specific rhythmic curs on a slower timescale than the timescale of the neu- activity in the gamma band. ronal responses. Here we focused on spike timing dependent plastic- STDP is an empirically observed microscopic learning ity (STDP) as the rhythmogenic process [23, 25]. Be- rule in which the modification of the synaptic weight de- low, we briefly describe STDP and derive the dynam- pends on the temporal relation between the spike times ics of the synaptic weights in the limit of slow learning. of the pre (transmitting) and post (receiving) synaptic neurons [26–30]. Following [31] the change, ∆Jij, in the synaptic weight Jij from the pre-synaptic neuron j to the ∗ [email protected] post-synaptic neuron i is expressed as the sum of two pro- bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 2

that learning occurs on a slower timescale than the char- acteristic timescales that describe neuronal activity (for given fixed synaptic weights). A wide range of temporal structures of STDP rules has been reported [32–39]. Here we focus on two families of rules. One is composed of temporally symmetric rules and the other is made up of temporally asymmetric rules. For the temporally symmetric family we apply a dif- ference of Gaussian STDP rule; namely:

1 2 −(t/τ±) /2 K±(t)= √ e , (2) 2πτ± (a) (b) where τ± denotes the characteristic time scales of the potentiation (+) and depression (−). Consistent with the popular description of the famous Hebb rule that ‘neurons that fire together wire together’ [40], we refer to the case of τ+ < τ− as Hebbian, and τ+ < τ− anti- Hebbian. For the temporally a-symmetric STDP rules we take: 1 ∓Ht/τ± K±(t)= e Θ(±Ht), (3) τ±

(c) where Θ(x) is the Heaviside step function, τ± are the (d) characteristic time scales of the potentiation (+) and de- pression (−), and H = ±1 dictates the Hebbianity of FIG. 1: The excitatory-inhibitory network. (a) Model the STDP rule. The rule will be termed Hebbian for architecture. The neuronal network here is composed of an H = 1, when potentiation occurs in the causal branch, excitatory (E) and an inhibitory (I) populations with inter- tpost > tpre, and anti-Hebbian for H = −1. (JIE and JEI ) and intra- (JII and JEE , that will be taken Different types of synapses have been reported to ex- to zero hereafter) connections. The interaction is not symmetric and is delayed. (b) The oscillatory dynamics of hibit different types of STDP rules. Consequently, there the mean excitatory end inhibitory population firing rates is no a-priori reason to assume that excitatory and in- mE and mI , respectively, at a frequency of 24.9Hz. Here we hibitory synapses share the exact same learning rule. In used JEE = JII = 0, JIE = 8.91, JEI = 0.9, τm = d = 5ms. particular, the characteristic time constants τE,± for ex- (c) Rhythmic activity. The oscillation frequency is depicted citatory synapses and τI,± for inhibitory synapses may as a function of the strength of the inhibitory to excitatory differ. connection, JEI . The following parameters were Changes to synaptic weights due to the plasticity rule implemented here: JEE = JII = 0, JIE = 8.91, τm = 10ms, of Eq. (1) at short time intervals occur as a result of d = 1ms. (d) Phase diagram of the delayed rate model. either a pre or post-synaptic spike during this interval. Strong inhibition, JI > 1, leads the system to a purely Thus, inhibitory fixed point, in which mE is fully suppressed, and mI = 1. For weak to moderate inhibition, JI ∈ (0, 1), and Z ∞ ˙ 0 0 0 0 below the black line, the system converges to a fixed point, Ji,j(t)= λρi(t) ρj(t − t )[K+(t ) − αK−(t )] dt (4) where both populations are active. For J¯ > J¯ (above the 0 d Z ∞ black line) the model exhibits rhythmic activity. For a given 0 0 0 0 ¯ ¯ + λρj(t) ρi(t − t )[K+(−t ) − αK−(−t )] dt , time delay, the frequency is governed by J. When J is 0 increased, higher frequencies are observed. Here we used post/pre τm = d = 1. P where ρpost/pre(t)= l δ(t−tl ) is the spike train of the post/pre neuron written as the sum of the delta func- tion at the neuron’s spike times {tpost/pre} . In the limit cesses: potentiation (i.e., increasing the synaptic weight) l l of slow learning, λ → 0, the right hand side of Eq. (4) can and depression (i.e., decreasing the synaptic weight): be replaced by its temporal mean (see [31] for complete ∆Jij = λ [K+(∆t) − αK−(∆t)] , (1) derivations). This approximation, has been termed the mean field Fokker-Planck approximation [27]. As fluc- where ∆t = ti − tj is the pre and post spike time differ- tuations vanish in this limit and deterministic dynamics ence. Functions K±(t) ≥ 0 describe the temporal struc- are retained for the mean synaptic weights, we get ture of the potentiation (+) and depression (−) of the Z ∞ STDP rule. Parameter α denotes the relative strength 0 0 0 0 J˙ij(t)= λ Γij(−t )[K+(t ) − αK−(t )] dt , (5) of the depression and λ is the learning rate. We assume −∞ bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 3 where Γij(t) is the cross correlation of neurons i and j: However, this fixed point is not stable for J¯ > J¯d, where ¯2 2 0 0 Jd = 1 + ωd, ωd = cot (ωdd) and ωd ∈ [0, π/2d] (see Γij(t)= hρi(t )ρj(t + t)i. (6) Roxin et al. [21]). In this region (J¯ > J¯d and JI < 1) The angular brackets h· · · i denote ensemble averaging the system converges to a limit cycle solution, Fig. 1d. over the neurnal noise and temporal averaging over one By rescaling the firing rates, the two dimensional first period in the case of rhythmic activity (see Soloduchin order delayed dynamics, Eq. (7)-(8), can be reduced to a [23] & Shamir and Luz & Shamir [31] for more details). one dimensional delayed dynamic equation: Note that the dependence of the r.h.s. of Eq. (5) on time, ¯2 t, occurs through the dependence of the cross-correlations x¨(t)+2˙x(t)+ x(t) − [1 − J x(t − 2d)]+ = 0, (9) on the synaptic weights at time t. Thus, the key to an- with alyzing STDP dynamics is the ability to compute the 2 cross-correlations of the neural activities and grasp their mI (t)=1+ JE − J¯ x (t) (10) dependence on the synaptic weights. To this end we ex- 2 JE − J¯ amined rhythmogenesis in the gamma band using the mE(t − d) = (x (t)+x ˙ (t)) . (11) framework of a reduced rate model with delay, proposed JE by Roxin and colleagues (Fig. 1a). A complete analysis Equation (9) highlights the fact that the temporal struc- of the model appears in [21, 22, 24]. Below we briefly ture of the limit cycle solution depends on the synaptic describe the phase diagram of the system and derive the weights, JE and JI , only via J¯. In particular, the period cross-correlations. of oscillations is solely a function of J¯ and d. As shown in Fig. 2a the period is a monotonically increasing function of both J¯ and d. III. THE DELAYED EXCITATORY In our model the cross-correlations are given by tem- INHIBITORY NETWORK poral averaging of the mean firing rates, ΓIE (∆) ≡ hmI (t) mE (t + ∆)i. In the fixed point region of The firing of different neurons is assumed to follow in- the phase diagram, the cross-correlation is simply dependent inhomogeneous Poisson process statistics with given by the product of the mean rates, ΓIE (∆) = instantaneous firing rates that adhere to the reduced 22 (1 − JI ) (1 + JE) / 1 + J¯ . model in Roxin et al. [21]. In their work, Roxin and In the region of the phase diagram where the system colleagues considered a full model that included inter- converges to a limit cycle solution, Eqs. (10) & (11) pro- population as well as intra-population interactions (i.e., vide the scaling of the cross-correlations; namely, excitatory-excitatory and inhibitory-inhibitory). Here, for simplicity we restrict the analysis to the minimal  d  Γ (∆) = ax¯ + b Γ (∆ + d) + Γ (∆ + d) (12) model that can reproduce oscillations in the gamma IE x d∆ x band. To do so, we model the rate dynamics of the gamma generating network by: 2 22 where a ≡ JE − J¯ /JE, b ≡ JE − J¯ /JE,x ¯ ≡ hx (t)i, and Γ (s) ≡ hx (t) x (t + s)i. Note thatx ¯ and τmm˙ E(t)= −mE(t)+[I − JI mI (t − d)]+ (7) x Γ depend solely on the delay, d, and J¯. Numerical in- τ m˙ (t)= −m (t)+[I + J m (t − d)] , (8) x m I I E E + vestigation reveals that the auto-correlation of x(t) is well where mE/I (t) is the mean firing rate of the excitatory approximated by a cosine function, (E) and inhibitory (I) population at time t. τ is the m ¯ ˜ neuronal time constant. Unless stated otherwise, we take Γx (s) ≈ Γx + Γx cos (ωs) (13) τm = 1, which is equivalent to measuring time in units where we used of the neuronal time constant. Parameter d denotes the T delay, and I is the external input to the system. In our Z Γ¯x = Γx (s) ds/T (14) analysis we took I = 1. JE and JI are the effective inter- 0 action strengths between the two populations. JE (JI ) Z T can be thought of as a global order parameter reflect- Γ˜x = 2 Γx (s) cos(2πs/T )ds/T, (15) ing the mean synaptic weight from the excitatory (in- 0 hibitory) pre-synaptic population to the inhibitory (ex- with T denoting the period of the limit cycle, as can be citatory) post-synaptic population. seen from the value of R2, Fig. 2b. The goodness of fit For strong inhibition, JI > 1, the system converges to of the cosine approximation decreases when J¯ or d are a fixed point in which the excitatory population is fully increased. Nevertheless, for a wide range of parameters 0 relevant to the generation of gamma oscillations R2 is suppressed by the inhibitory population, ~m∗ = . For 1 extremely high (R2 > 0.98 throughout Fig. 2b). Bothx ¯ ¯ ¯ weak to moderate levels of inhibition, JI ∈ (0, 1), the sys- and Γx monotonically decrease as J increases, Fig. 2c-2d. tem has a fixed point in which both populations are ac- In addition, they transition the bifurcation line contin-  ∗    √ ˜ ∗ mE 1 1 − JI ¯ uously. On the other hand, Γx does not transition in a tive, ~m ≡ ∗ = 1+J¯2 , with J ≡ JEJI . mI 1 + JE continuous manner: it is zero in the fixed point region bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 4

14 1 0.6

0.5 12 0.995 0.4 10 0.99 0.3 8 0.2 0.985 6 0.1

4 0.98 0 1 2 3 4 1 2 3 4 1 2 3 4

(a) (b) (c)

0.3 0.1

0.25 0.08

0.2 0.06 0.15 0.04 0.1

0.02 0.05

0 0 1 2 3 4 1 2 3 4

(d) (e)

FIG. 2: Dynamics of the one dimensional variable x, Eq. (9). Different features characterizing the dynamics of x are shown as a function of J¯, for different values of the delay, d, differentiated by color. The dashed lines indicate the values of J¯d, for different delays, shown by color. The parameters plotted are: (a) The period of the oscillations. (b) The goodness of fit of the 2 cosine approximation, Eq. (13), of Γx. R .(c) The temporal average of x,x ¯. (d) The zeroth order Fourier component of the auto-correlation of x, Γ¯x.(e) The first order Fourier component of the auto-correlation of x, Γ˜x. .

and jumps to a positive value in the rhythmic region, IV. STDP INDUCED FLOW ON THE PHASE Fig. 2e. DIAGRAM

Using the cosine approximation for the correlations, Utilizing the semi-empirical cross-correlations, Eq. (13) and the scaling Eqs. (10) & (11) yields the semi- Eq. (16), yields the following dynamics for the synaptic empirical excitatory-inhibitory cross-correlations func- weights: tion:   J˙σ = λ Γ¯K¯ + Γ˜K˜σ (17)

where ΓIE (∆) ≈ Γ¯ + Γ˜ cos (ω∆ +ϕ ˜) (16) Z ∞ K¯ = K (∆) d∆, (18) −∞ 1/2 with Γ¯ = ax¯ + bΓ¯ , Γ˜ = bΓ˜ 1 + ω2 ,ϕ ˜ = ω (d + ϕ ) x √ x ω Z ∞ 2 ˜ and ωϕω = arcsin ω/ 1 + ω . Figure 3 shows the val- Kσ ≡ K (∆) cos(ω∆σ +ϕ ˜)d∆, (19) ues ofϕ ˜ on the phase diagram. The phase,ϕ ˜(J,¯ d) is −∞ π/2 on the bifurcation line and weakly decreases as J¯ is where σ = E,I, we used the notation K (∆) = K+ (∆)− further increased. Note that ΓEI (∆) = ΓIE (−∆). αK− (∆), and ∆E = −∆ whereas ∆I = ∆. bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 5

with σ ∈ {E, I}. Consequently, the dynamical equa- 10 0.5 tions of JE and JI will be identical if the characteristic 0.495 time scales of potentiation and depression are the same; namely, if τE,+ = τI,+ and τE,− = τI,−. Note that on 8 0.49 the r.h.s. of Eq. (20), the term cosϕ ˜ ensures that K˜σ 0.485 is zero on the bifurcation (see Fig. 3). Figures 4a and 4b depict the nullclines of J and J , respectively, for 0.48 E I 6 different values of the relative strength of depression, α 0.475 (in 4a), and the characterstic time of depression, τ− (in 0.47 4b), differentiated by color. We show that for α < 1 4 (α > 1) and τ+ > τ− (τ+ < τ−) the nullcline of JE and 0.465 the left branch of the nullcline of JI are stable (unsta- 0.46 ble). A fixed point of the STDP dynamics is obtained by 2 the intersection of JE and JI nullclines. For the differ- 0.455 ence of Gaussians rule, a stable fixed point that exhibits 0.45 rhythmic activity in the gamma band can thus be ob- tained. However, this requires a delicate adjustment of 0 0 0.2 0.4 0.6 0.8 1 the parameters characterizing the STDP learning rules. For the temporally asymmetric Hebbian exponential rule, Eq. (3) with H = 1, we obtain FIG. 3: The values ofϕ ˜. The parameter,ϕ/π ˜ is shown by color as a function of JE and JI on the phase diagram. Here K˜σ = cos (θσ,+) cos (θσ,+ − ϕ˜σ) d = 1 was used. (21) − α cos (θσ,−) cos (θσ,− +ϕ ˜σ)

2 −1/2 where cos (θσ,±) = (1 + (ωτσ,±) ) ,ϕ ˜E =ϕ ˜ and The STDP dynamics, Eq. (17), induces a flow in the ϕ˜I = −ϕ˜. Now, due to θσ,±, K˜σ transitions discontinu- phase plane of the synaptic weights [JI ,JE], which is also ously across the bifurcation line, thus inducing disconti- the phase diagram of the neural responses. The right nuity in J˙E and J˙I along the transition from fixed point hand side of Eq. (17) depends on the synaptic weights to the rhythmic region. Figures 4c and 4d depict the through the Fourier transforms of the cross-correlations ¯ ˜ nullclines of JI , for the temporally asymmetric Hebbian Γ and Γ. Using the separation of timescales between the learning rule for different values of the relative strength fast neuronal responses and the slow learning rate, in the ¯ ˜ of depression, α (in 4c), and the characteristic time of limit of slow learning λ → 0, one can compute Γ and Γ depression, τ (in 4d), differentiated by color. The left from the neuronal dynamics for fixed synaptic weights. − branch of the nullclines of JI is stable (unstable) for Thus, STDP induces a flow on the phase diagram of α < 1 (α > 1) and τ+ < τ− (τ+ > τ−). Interestingly, a the system. Rhythmogenesis is obtained when this flow considerable part of the JI nullcline is on the bifurcation guides the system and stabilizes it at a fixed point on line. the phase diagram that is characterized by the desired For the temporally asymmetric Hebbian learning rule, rhythm. the dynamics of JE do not have a nullcline. As a result, a In the region of the phase diagram in which the mean fixed point does not exist, and the temporally asymmet- ˜ neuronal firings relax to a fixed point, Γ = 0. Due ric Hebbian STDP rule cannot stabilize rhythmic activity ¯ to our choice of normalization, K± = 1, in this region in the gamma range. ˙ sign(Jσ) = sign(1 − ασ), σ ∈ {E,I}. Consequently, the However, as ΓEI (∆) = ΓIE (−∆) the temporally STDP dynamics will induce a flow from the fixed point asymmetric anti-Hebbian exponential rule (Eq. (3) with region towards the rhythmic region if and only if the po- H = −1) for excitatory synapses, JE, in our model, de- tentiation is strong relative to the depression for both fines the exact same dynamics as that of an inhibitory types of synapses, αE, αI < 1 (except for a small region synapses, JI , with a Hebbian rule (Eq. (3) with H = +1). of the phase diagram with high inhibition and low ex- Therefore, an asymmetric Hebbian learning rule for JI citation, which also depends on the learning rates, λE and an asymmetric anti-Hebbian learning rule for JE and λI , of the different synapses). This result holds true yield the same nullclines (see Fig. 4c-4d). Moreover, be- for any STDP rule. In contrast, the STDP dynamics in cause a considerable part of the nullcline is on the bifur- the rhythmic region of the phase diagram depend on the cation line, no fine tuning of the parameters is required temporal structure of the learning rule. to obtain a fixed point of the STDP dynamics that will The difference of Gaussians learning rule, Eq. (2), generate rhythmic activity at ωd. Thus, the STDP dy- yields namics have a line attractor on (part of) the bifurcation line. Furthermore, when the left branches of the null-  (ωτ )2 (ωτ )2  − σ,+ − σ,− clines of JE and JI are stable (α < 1, τE,− > τE,+ and K˜σ = cosϕ ˜ e 2 − αe 2 , (20) τI,− > τI,+) and the nullcline of JI departs from the bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 6

10 10

8 8

6 6

4 4

2 2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1

(a) (b)

10 10

8 8

6 6

4 4

2 2

0 0 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1

(c) (d) (e)

FIG. 4: Nullclines of the STDP dynamics. (a) and (b) The nullclines of JE and JI for the difference of Gaussians learning rule (in this case the nullclines are identical for the same choice of parameters α, τ±) The nullclines are shown for different values of of α = 0.99, 0.991, ...0.999, differentiated by color, with τ+ = 2 and τ− = 1, in (a). The nullclines are shown for different values of τ− = 0.25, 0.5, ...3.25, by colors, with τ+ = 5 and α = 0.999, in (b). (c) and (d) The nullclines of JI (JE ) for the temporally asymmetric Hebbian (anti-Hebbian) STDP rule. The nullclines are shown for different values of α = 0.9, 0.91, ...0.99, with τ+ = 2 and τ− = 5, in (c). The nullclines are shown for different values of τ− = 2.5, 3, ...7, with τ+ = 2 and α = 0.94, in (d). The nullclines were computed using the cosine approximation for the neuronal cross-correlations. (e) The vector flow in the case of a temporally asymmetric Hebbian learning rule for JI and a temporally asymmetric anti-Hebbian learning rule for JE . The nullclines are shown for α = 0.88, τI,+ = τE,+ = 1, τI,− = 2 and τE,− = 5. The learning rates are λI = 1 and λE = 10. In every subfigure d = 1 was used. .

bifurcation line below the nullcline of JE, the attractor Previously, Soloduchin & Shamir investigated rhyth- line is stable against perturbations in every direction (See mogenesis using the framework of two neuronal popula- Fig. 4e). tions with reciprocal inhibition and short term adapta- tion in the form of firing rate adaptation [23, 25]. The network motif of reciprocal inhibition has been widely re- ported in the central nervous system [51–53]. However, V. DISCUSSION it is mainly associated with winner-take-all like compe- tition [54–60] rather than generating rhythmic activity Previous studies have investigated the effects of rhyth- (but see [61, 62] in the spinal cord). Here, rhythmoge- mic activity on STDP [20, 41–50]. However, in these nesis was studied in the framework of a network that studies, rhythmic activity was hard-wired in the system is considered a valid hypothesis for generating gamma and the issue of rhythmogenesis was not addressed. rhythm in the brain [21, 22, 24]. Rhythmogenesis can be thought of as self organizing In Soloduchin & Shamir [23], rhythmogenesis was ob- temporal activity; i.e., the ability of a non-rhythmic sys- tained as a specific stable fixed point on the phase dia- tem to spontaneously develop rhythmic activity. In our gram of the system, in which due to the temporal charac- approach, the process of rhythmogenesis was mapped to teristics of the STDP rule, the dynamics of the synaptic a flow on the phase diagram. This mapping relies on the weights vanish at a specific frequency. This scenario is separation of timescales. similar to the case of temporally symmetric STDP (Fig. bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 7

4a-4b). However, scientifically, this scenario is somewhat this scenario the dynamics do not necessarily vanish on ∗ disappointing, since we have traded the problem of fine- x∞, F(~x∞, ~α ) 6= 0. Rather, due to the discontinuity tuning of the synaptic weights for the problem of fine- there exists a wide range of parameters, {α1, α2 . . . αm}, tuning of characteristics of the STDP rule [25]. such that the dynamics draw the system towards the The temporally asymmetric STDP rule provides a pos- discontinuity from both sides, as is the case for critical sible solution to the fine-tuning problem of rhythmogen- rhythmogenesis. Consequently, this scenario can stabi- esis, which we term critical rhythmogenesis (Fig. 4c-4d). lize the system in a critical condition on the boundary of Rhythmogenesis in the temporally asymmetric STDP two phases. rule is not obtained as a fixed point of the STDP dy- The idea that the central nervous system may operate namics. Rather, in this case, rhythmogenesis utilizes the in (or near) a critical condition has been suggested in discontinuity of Γ˜ across the bifurcation line. For a wide the past, and may have computational advantages [64– range of parameters the flow induced by the STDP is di- 66]. However, this latter scenario also has shortcomings. rected from the fixed point region towards the rhythmic The most obvious is that it can only be used to ensure region and from the rhythmic region to the fixed point and stabilize critical behavior. In addition, it cannot be region, and the system will settle on the bifurcation line used when one of the phases near the critical line is lethal. itself. Consequently, the resultant rhythmic activity will An advantage of critical rhythmogenesis is that it al- be dictated by bifurcation (e.g., the firing rates will oscil- lows for rapid switching between rhythmic and non- late at ωd), which is independent of the synaptic plastic- rhythmic phases, for example by neuromodulators, since ity thus accounting for the robustness to the parameters the system is on the boundaries of these phases. This that characterize the STDP. raises the question of the likelihood of critical rhythmo- Recently, Pernelle and colleagues studied the possible genesis: what is the probability that a biological system contribution of gap junction plasticity to rhythmic activ- will ‘choose’ the exact rhythmic activity that also charac- ity [63]. They postulated a plasticity rule for gap junc- terizes the bifurcation? One possible explanation is that tions that tuned the system to operate on the boundary the opposite took place. In other words, biological sys- of asynchronous regular firing activity, on one hand, and tems have evolved to operate at the critical conditions rhythmic activity of synchronous bursts, on the other. In chosen by the critical rhythmogenesis mechanism. Thus, the context of our work this can be viewed as an example in our example, the characteristic delays, d, do not mirac- of critical rhythmogenesis, which explains the robustness ulously fit the desired rhythm. Rather, due to the specific of their putative mechanism to variations in the plasticity values of d, the critical rhythmogenesis tunes the system rule. to oscillate at ωd which is why the biological system ‘uses’ We suggest that the scenario of critical rhythmoge- this specific frequency band. nesis may provide a general principle for robustness in In our work we made several simplifying assumption biological systems. Assume a certain biological system, to facilitate the analysis. We studied the dynamics of which is characterized by set parameters: {x1, x2 . . . xn} the effective couplings between excitatory and inhibitory (i.e., ~x is a point in the phase diagram of the sys- populations and did not incorporate the STDP dynam- tem), is required to maintain a certain living condi- ics of individual synapses. We investigated a model with tion, f({x1, x2 . . . xn}) = 0. This condition is met by only inter-connections, hence ignoring the effective cou- a homeostatic process. The homeostatic process defines plings that represent the intra-population synapses. We the dynamics on {x1, x2 . . . xn}, which are characterized estimated neuronal correlations using a simplified rate by another set of parameters, {α1, α2 . . . αm}, namely: model, and did not study the effects of spiking neurons. ˙ ~x = F(~x,~α). A viable homeostatic process is a choice of These issues are beyond the scope of the current study parameters, ~α∗, such that the homeostatic dynamics will and will be addressed elsewhere. Nevertheless, this work lead the system to a set of parameters, x∞, that satisfy lays the foundation for studying a novel mechanism for the living condition, f(~x∞) = 0. robust homeostatic plasticity, in general, and rhythmo- How can this be achieved? One possibility is that x∞ genesis in particular. is a stable fixed point of the homeostatic dynamics, in ∗ which F(~x∞, ~α ) = 0. This solution requires fine-tuning of the parameters that define the homeostatic process, ~α. In this case, fluctuations in ~α will generate fluctuations ACKNOWLEDGMENTS in ~x away from x∞. An alternative scenario is that the homeostatic dynam- This work was supported by the Israel Science Foun- ics utilize some discontinuity in the phase diagram. In dation, grant number 300/16.

[1] R Jung and W Berger. Fiftieth anniversary of hans records in 1924–1931 (author’s transl). Archiv fur Psy- berger’s publication of the electroencephalogram. his first chiatrie und Nervenkrankheiten, 227(4):279, 1979. bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 8

[2] Gy¨orgyBuzs´aki. Rhythms of the Brain. Oxford Univer- [19] Thilo Womelsdorf, Pascal Fries, Partha P Mitra, and sity Press, 2006. Robert Desimone. Gamma-band synchronization in vi- [3] Gy¨orgyBuzs´akiand Walter Freeman. Editorial overview: sual cortex predicts speed of change detection. Nature, brain rhythms and dynamic coordination. Current opin- 439(7077):733, 2006. ion in neurobiology, 31:v, 2015. [20] Yotam Luz and Maoz Shamir. Oscillations via spike- [4] Marco Bocchio, Sadegh Nabavi, and Marco Capogna. timing dependent plasticity in a feed-forward model. , engrams, and network oscillations in PLoS computational biology, 12(4):e1004878, 2016. amygdala circuits for storage and retrieval of emotional [21] Alex Roxin, Nicolas Brunel, and David Hansel. Rate memories. Neuron, 94(4):731–743, 2017. models with delays and the dynamics of large networks [5] Maoz Shamir, Oded Ghitza, Steven Epstein, and Nancy of spiking neurons. Progress of Theoretical Physics Sup- Kopell. Representation of time-varying stimuli by a net- plement, 161:68–85, 2006. work exhibiting oscillations on a faster time scale. PLoS [22] Demian Battaglia, Nicolas Brunel, and David Hansel. Comput Biol, 5(5):e1000370, 2009. Temporal decorrelation of collective oscillations in neural [6] Aryeh Hai Taub, Rita Perets, Eilat Kahana, and Rony networks with local inhibition and long-range excitation. Paz. Oscillations synchronize amygdala-to-prefrontal Physical review letters, 99(23):238106, 2007. primate circuits during aversive learning. Neuron, [23] Sarit Soloduchin and Maoz Shamir. Rhythmogenesis 97(2):291–298, 2018. evolves as a consequence of long-term plasticity of in- [7] Charles M Gray, Peter K¨onig,Andreas K Engel, and hibitory synapses. Scientific reports, 8(1):13050, 2018. Wolf Singer. Oscillatory responses in cat visual cor- [24] Demian Battaglia and David Hansel. Synchronous chaos tex exhibit inter-columnar synchronization which reflects and broad band gamma rhythm in a minimal multi-layer global stimulus properties. Nature, 338(6213):334, 1989. model of primary visual cortex. PLoS Comput Biol, [8] Pascal Fries, John H Reynolds, Alan E Rorie, and 7(10):e1002176, 2011. Robert Desimone. Modulation of oscillatory neuronal [25] Maoz Shamir. Theories of rhythmogenesis. Current opin- synchronization by selective visual attention. Science, ion in neurobiology, 58:70–77, 2019. 291(5508):1560–1563, 2001. [26] Hideyuki Cˆateau and Tomoki Fukai. A stochastic [9] Narcisse P Bichot, Andrew F Rossi, and Robert Desi- method to predict the consequence of arbitrary forms of mone. Parallel and serial neural mechanisms for visual spike-timing-dependent plasticity. Neural Computation, search in macaque area v4. Science, 308(5721):529–534, 15(3):597–620, 2003. 2005. [27] Robert G¨utig,Ranit Aharonov, Stefan Rotter, and Haim [10] Bijan Pesaran, John S Pezaris, Maneesh Sahani, Sompolinsky. Learning input correlations through non- Partha P Mitra, and Richard A Andersen. Temporal linear temporally asymmetric hebbian plasticity. Journal structure in neuronal activity during working memory in of Neuroscience, 23(9):3697–3714, 2003. macaque parietal cortex. Nature neuroscience, 5(8):805, [28] Abigail Morrison, Markus Diesmann, and Wulfram Ger- 2002. stner. Phenomenological models of synaptic plasticity [11] Ryan T Canolty, Erik Edwards, Sarang S Dalal, based on spike timing. Biological cybernetics, 98(6):459– Maryam Soltani, Srikantan S Nagarajan, Heidi E Kirsch, 478, 2008. Mitchel S Berger, Nicholas M Barbaro, and Robert T [29] Jonathan Rubin, Daniel D Lee, and H Sompolinsky. Knight. High gamma power is phase-locked to theta os- Equilibrium properties of temporally asymmetric heb- cillations in human neocortex. science, 313(5793):1626– bian plasticity. Physical review letters, 86(2):364, 2001. 1628, 2006. [30] Sen Song and Larry F Abbott. Cortical development [12] Alexandra J Mably and Laura Lee Colgin. Gamma os- and remapping through spike timing-dependent plastic- cillations in cognitive disorders. Current opinion in neu- ity. Neuron, 32(2):339–350, 2001. robiology, 52:182–187, 2018. [31] Yotam Luz and Maoz Shamir. The effect of stdp temporal [13] Wei Cao, Shen Lin, Qiang-qiang Xia, Yong-lan Du, Qian kernel structure on the learning dynamics of single exci- Yang, Meng-ying Zhang, Yi-qing Lu, Jing Xu, Shu-min tatory and inhibitory synapses. PloS one, 9(7):e101109, Duan, Jun Xia, et al. Gamma oscillation dysfunction in 2014. mpfc leads to social deficits in neuroligin 3 r451c knockin [32] Guo-qiang Bi and Mu-ming Poo. Synaptic modifications mice. Neuron, 97(6):1253–1260, 2018. in cultured hippocampal neurons: dependence on spike [14] Supriya Ghosh, T Rao Laxmi, and Sumantra Chattarji. timing, synaptic strength, and postsynaptic cell type. Functional connectivity from the amygdala to the hip- Journal of neuroscience, 18(24):10464–10472, 1998. pocampus grows stronger after stress. Journal of Neuro- [33] Melanie A Woodin, Karunesh Ganguly, and Mu-ming science, 33(17):7234–7244, 2013. Poo. Coincident pre-and postsynaptic activity modifies [15] Peter J Uhlhaas and Wolf Singer. Neural synchrony in gabaergic synapses by postsynaptic changes in cl- trans- brain disorders: relevance for cognitive dysfunctions and porter activity. Neuron, 39(5):807–820, 2003. pathophysiology. neuron, 52(1):155–168, 2006. [34] Aparna Suvrathan, Hannah L Payne, and Jennifer L [16] Pascal Fries, Danko Nikoli´c, and Wolf Singer. The Raymond. Timing rules for synaptic plasticity matched gamma cycle. Trends in neurosciences, 30(7):309–316, to behavioral function. Neuron, 92(5):959–967, 2016. 2007. [35] Julie S Haas, Thomas Nowotny, and Henry DI Abar- [17] Alon Amir, Drew B Headley, Seung-Chan Lee, Darrell banel. Spike-timing-dependent plasticity of inhibitory Haufler, and Denis Pare. Vigilance-associated gamma os- synapses in the entorhinal cortex. Journal of neurophys- cillations coordinate the ensemble activity of basolateral iology, 2006. amygdala neurons. Neuron, 97(3):656–669, 2018. [36] Curtis C Bell, Victor Z Han, Yoshiko Sugawara, and [18] Cristin G Welle and Diego Contreras. New light on Kirsty Grant. Synaptic plasticity in a cerebellum- gamma oscillations. Neuron, 93(2):247–249, 2017. like structure depends on temporal order. Nature, bioRxiv preprint doi: https://doi.org/10.1101/2020.07.23.217026; this version posted March 31, 2021. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. 9

387(6630):278, 1997. roscience, 10(4):494–504, 2007. [37] Makoto Nishiyama, Kyonsoo Hong, Katsuhiko [52] Joshua Kim, Michele Pignatelli, Sangyu Xu, Shigeyoshi Mikoshiba, Mu-Ming Poo, and Kunio Kato. Cal- Itohara, and Susumu Tonegawa. Antagonistic negative cium stores regulate the polarity and input specificity of and positive neurons of the basolateral amygdala. Nature synaptic modification. Nature, 408(6812):584–588, 2000. neuroscience, 19(12):1636, 2016. [38] Robert C Froemke, Mu-ming Poo, and Yang Dan. Spike- [53] Minoru Koyama and Avinash Pujala. Mutual inhibition timing-dependent synaptic plasticity depends on den- of lateral inhibition: a network motif for an elementary dritic location. Nature, 434(7030):221–225, 2005. computation in the brain. Current Opinion in Neurobi- [39] Thanos Tzounopoulos, Maria E Rubio, John E Keen, ology, 49:69–74, 2018. and Laurence O Trussell. Coactivation of pre-and post- [54] Dezhe Z Jin and H Sebastian Seung. Fast computation synaptic signaling mechanisms determines cell-specific with spikes in a . Physical Re- spike-timing-dependent plasticity. Neuron, 54(2):291– view E, 65(5):051922, 2002. 301, 2007. [55] Tomoki Fukai and Shigeru Tanaka. A simple neural net- [40] Donald O Hebb. The organization of behavior. na, 1961. work exhibiting selective activation of neuronal ensem- [41] Nimrod Sherf and Shamir Maoz. Multiplexing rhythmic bles: from winner-take-all to winners-share-all. Neural information by spike timing dependent plasticity. PLOS computation, 9(1):77–97, 1997. Computational Biology, 16(6):e1008000, 2020. [56] Maoz Shamir. The scaling of winner-takes-all accuracy [42] Hideyuki Cˆateau,Katsunori Kitano, and Tomoki Fukai. with population size. Neural computation, 18(11):2719– Interplay between a phase response curve and spike- 2729, 2006. timing-dependent plasticity leading to wireless cluster- [57] John Hertz, Anders Krogh, Richard G Palmer, and Heinz ing. Physical Review E, 77(5):051909, 2008. Horner. Introduction to the theory of neural computa- [43] , Richard Kempter, J Leo Van Hem- tion. PhT, 44(12):70, 1991. men, and Hermann Wagner. A neuronal learning rule for [58] Maxim Bazhenov, Ramon Huerta, and Brian H Smith. sub-millisecond temporal coding. Nature, 383(6595):76– A computational framework for understanding decision 78, 1996. making through integration of basic learning rules. Jour- [44] Matthieu Gilson, Moritz B¨urck, Anthony N Burkitt, and nal of Neuroscience, 33(13):5686–5697, 2013. J Leo van Hemmen. Frequency selectivity emerging from [59] Christian K Machens, Ranulfo Romo, and Carlos D spike-timing-dependent plasticity. Neural computation, Brody. Flexible control of mutual inhibition: a neu- 24(9):2251–2279, 2012. ral model of two-interval discrimination. Science, [45] Jan Karbowski and G Bard Ermentrout. Synchrony 307(5712):1121–1124, 2005. arising from a balanced synaptic plasticity in a network [60] Oran Zohar and Maoz Shamir. A readout mechanism for of heterogeneous neural oscillators. Physical Review E, latency codes. Frontiers in computational neuroscience, 65(3):031902, 2002. 10:107, 2016. [46] Robert R Kerr, Anthony N Burkitt, Doreen A Thomas, [61] Simon M Danner, Natalia A Shevtsova, Alain Frigon, and Matthieu Gilson, and David B Grayden. Delay selec- Ilya A Rybak. Computational modeling of spinal circuits tion by spike-timing-dependent plasticity in recurrent controlling limb coordination and gaits in quadrupeds. networks of spiking neurons receiving oscillatory inputs. Elife, 6:e31050, 2017. PLoS Comput Biol, 9(2):e1002897, 2013. [62] Jessica Ausborn, Abigail C Snyder, Natalia A Shevtsova, [47] Shane Lee, Kamal Sen, and Nancy Kopell. Cortical Ilya A Rybak, and Jonathan E Rubin. State-dependent gamma rhythms modulate nmdar-mediated spike timing rhythmogenesis and frequency control in a half-center lo- dependent plasticity in a biophysical model. PLoS Com- comotor cpg. Journal of neurophysiology, 119(1):96–117, put Biol, 5(12):e1000602, 2009. 2018. [48] Timoth´eeMasquelier, Etienne Hugues, Gustavo Deco, [63] Guillaume Pernelle, Wilten Nicola, and Claudia Clopath. and Simon J Thorpe. Oscillations, phase-of-firing cod- Gap junction plasticity as a mechanism to regulate ing, and spike timing-dependent plasticity: an efficient network-wide oscillations. PLoS computational biology, learning scheme. Journal of Neuroscience, 29(43):13484– 14(3):e1006025, 2018. 13493, 2009. [64] Osame Kinouchi and Mauro Copelli. Optimal dynamical [49] Lyle E Muller, Romain Brette, and Boris Gutkin. Spike- range of excitable networks at criticality. Nature physics, timing dependent plasticity and feed-forward input oscil- 2(5):348–351, 2006. lations produce precise and invariant spike phase-locking. [65] Woodrow L Shew, Hongdian Yang, Shan Yu, Rajarshi Frontiers in Computational Neuroscience, 5:45, 2011. Roy, and Dietmar Plenz. Information capacity and trans- [50] Jean-Pascal Pfister and Peter Tass. Stdp in oscilla- mission are maximized in balanced cortical networks with tory recurrent networks: theoretical conditions for desyn- neuronal avalanches. Journal of neuroscience, 31(1):55– chronization and applications to deep brain stimulation. 63, 2011. Frontiers in computational neuroscience, 4:22, 2010. [66] Oren Shriki and Dovi Yellin. Optimal information rep- [51] Emre Aksay, Itsaso Olasagasti, Brett D Mensh, Robert resentation and criticality in an adaptive sensory re- Baker, Mark S Goldman, and David W Tank. Functional current neuronal network. PLoS computational biology, dissection of circuitry in a neural integrator. Nature neu- 12(2):e1004698, 2016.