Introduction

While inhibition has been long measured (Eccles et al., 1954; Hartline et al., 1956; Lloyd, 1946), the past twenty years have witnessed a newfound appreciation of its diversity. The invention and widespread use of cell-specific labeling and optogenetic control (Fenno et al., 2011), combined with the detailed genetic and physiological characterization of cortical interneurons (Jiang et al., 2015; Markram et al., 2004) has painted a complex picture of a circuit. The standard cortical circuit now includes (at a minimum) somatostatin (SOM) and parvalbumin (PV) expressing interneuron classes, with distinct synaptic interactions between these classes as well as with pyramidal neurons (Campagnola et al., 2022; Jiang et al., 2015; Kepecs and Fishell, 2014; Pfeffer et al., 2013; Tremblay et al., 2016). This new circuit reality presents some clear challenges (Cardin, 2018; Ferguson and Cardin, 2020; Urban-Ciecko and Barth, 2016; Wood et al., 2017; Yavorska and Wehr, 2016), foremost being to uncover how functions that were previously associated with inhibition in a broad sense, should be distributed over these diverse interneuron classes.

Inhibition is been long identified as a physiological or circuit basis for how cortical activity changes depending upon processing or cognitive needs (Isaacson and Scanziani, 2011). Inhibition has been implicated in the suppression of neuronal activity (Adesnik, 2017; Adesnik et al., 2012; Haider et al., 2013; Kato et al., 2017), gain control of pyramidal neuron firing rates (Ferguson and Cardin, 2020; Katzner et al., 2011; Phillips and Hasenstaub, 2016; Silver, 2010) and correlated neuronal fluctuations (Okun and Lampl, 2008), rhythmic population activity (Atallah and Scanziani, 2009; Womelsdorf et al., 2014), spike timing of pyramidal neurons (Berman and Maler, 1998; Wehr and Zador, 2003), and gating synaptic plasticity (Canto-Bustos et al., 2022; Paille et al., 2013; Wu et al., 2022). However, inhibition must also prevent runaway cortical activity that would otherwise lead to pathological activity (Haider et al., 2013; Ozeki et al., 2009; Veit et al., 2017), enforcing constraints on how inhibition can modulate pyramidal neuron activity. This broad functional diversity has prompted theorists to build circuit models to expose how the synaptic structure and dynamics of inhibition affect network behavior.

Cortical models with both excitatory and inhibitory pathways have a long history of study (Griffith, 1963; Wilson and Cowan, 1972). Models with just a single inhibitory interneuron class have successfully explained a wide range of cortical behavior; from contrast dependent nonlinearities in cortical response (Ozeki et al., 2009; Rubin et al., 2015), to the genesis of irregular and variable spike discharge (Brunel, 2000; van Vreeswijk and Sompolinsky, 1996), to the mechanisms underlying high-frequency cortical network rhythms (Bos et al., 2016; Wang, 2010). However, these models explore how inhibition supports a single function or network dynamic. In this way, these models are unique and are designed to capture only a restricted dataset. This is a reflection of the limitations imposed by considering only one type of inhibitory interneuron in a cortical circuit.

An attractive hypothesis is that distinct interneurons are within-class functionally homogeneous, yet each class performs functions that are distinct from those of the other classes (Hattori et al., 2017; Kepecs and Fishell, 2014; Wang et al., 2004). In recent years, computational studies have used circuit models with multiple inhibitory neuron types to study distinct roles of inhibitory neurons like effects on network oscillations (Ter Wal and Tiesinga, 2021; Veit et al., 2023), circuit modulation e.g. via locomotion or attention (Dipoppa et al., 2018; Myers-Joseph et al., 2023; Poort et al., 2022), network stabilization (del Molino et al., 2017; Kumar et al., 2023; Litwin-Kumar et al., 2016; Palmigiano et al., 2023), and many more (Aponte et al., 2021; Hertäg and Sprekeler, 2019; Keijser and Sprekeler, 2022; Pedrosa and Clopath, 2020; Richter and Gjorgjieva, 2022; Sadeh et al., 2017; Waitzmann et al., 2024; Wilmes and Clopath, 2019). A prominent example of the division of labor hypothesis is that PV neurons are well-positioned to provide network stability (Wang et al., 2004), allowing SOM neurons the freedom to modulate the circuit.

We present a circuit theory for previously developed multi-interneuron cortical circuit models (del Molino et al., 2017; Kuchibhotla et al., 2017; Kumar et al., 2023; Litwin-Kumar et al., 2016; Mahrach et al., 2020; Palmigiano et al., 2023; Veit et al., 2023; Waitzmann et al., 2024) with the goal of giving a mechanistic understanding of how modulations of SOM neurons affect various circuit components. At the core of our theory, SOM modulations can impact excitatory neurons differentially through either a direct inhibitory path onto excitatory neurons or an indirect disinhibitory path via PV interneurons. Depending on the recurrent connections from excitatory or PV neurons onto SOM neurons these distinct SOM modulations can have, sometimes non-intuitive, influence on circuit firing rates, network stability, stimulus gain and stimulus tuning. Our theoretical framework offers an attractive platform to probe how interneuron circuit structure determines gain and stability which may generalize well beyond the sensory cortices where these interneuron circuits are currently best characterized.

Results

The inhibitory and disinhibitory pathways of the E – PV – SOM circuit

There is strong in vivo evidence that SOM interneurons play a critical role in the modulation of cortical response (Urban-Ciecko and Barth, 2016; Yavorska and Wehr, 2016). However, the complex wiring between excitatory and inhibitory neurons (Campagnola et al., 2022; Jiang et al., 2015; Pfeffer et al., 2013; Tremblay et al., 2016) presents a challenge when trying to expose the specific mechanisms by which SOM neurons modulate cortical response. Two distinct inhibitory circuit pathways are often considered when disentangling the impact of SOM inhibition on excitatory neuron (E) response: an inhibitory SOM → E pathway or a disinhibitory SOM → PV → E pathway.

Experimental studies find different, at first glance contradicting, affects of SOM neurons on E. In one line of study, SOM neuron activity seems to directly inhibit E neurons. Increased SOM activity resulted in decreased activity in E neurons in studies of layer 2/3 mouse visual cortex (Adesnik, 2017; Adesnik et al., 2012). Similarly, decreased SOM activity resulted in increased E neuron activity in the piriform cortex (Canto-Bustos et al., 2022), and other studies (Wang and Yang, 2018). In another line of study, changes in E activity following SOM perturbation seem to follow from disinhibitory pathways. For example, silencing layer 4 SOM neurons in mouse somatosensory cortex resulted in decreased activity of E neurons (Xu et al., 2013). Taken together, these two lines of studies seem in opposition to one another, with SOM neuron activity providing either a source or a relief of E neuron suppression. This response dichotomy prompted us to consider what physiological and circuit properties of the E – PV – SOM circuit are critical determinants of whether an increase in SOM neuron activity results in an increase or a decrease in E neuron response.

An answer to this question requires consideration of the full recurrent connectivity within the E – PV – SOM neuron circuit, as opposed to analysis restricted to just the SOM → E and SOM → PV → E sub motifs within the circuit. We set up a recurrent network where we model the firing rates of E, PV, and SOM neurons (Fig. 1A; see Methods), as has been done by similar studies of the E – PV – SOM cortical circuit (del Molino et al., 2017; Kuchibhotla et al., 2017; Kumar et al., 2023; Litwin-Kumar et al., 2016; Mahrach et al., 2020; Palmigiano et al., 2023; Veit et al., 2023; Waitzmann et al., 2024). Using our model we ask how a modulation of the SOM neuron activity (via results in a modulation of E neuron activity . Examples of such modulation include suppressed VIP inhibition onto SOM neurons (Pi et al., 2013), activation of pyramidal cells located outside the circuit yet preferentially projecting to SOM neurons (Adesnik et al., 2012), and direct cholinergic modulation of SOM neurons (Kuchibhotla et al., 2017; Urban-Ciecko and Barth, 2016).

Tradeoff between two inhibitory motifs in the E – PV – SOM cortical circuit.

A.Sketch of the full E – PV – SOM network model. A positive or negative modulatory input is applied to the SOM neurons. B. Transfer function (top) and population gain bX (bottom) for neuron population X = {E, P, S} (see Eq. (4)). C. Top: Relation between modulation of input to the SOM population and changes in E rates when summing over all possible paths (see Eq. (10)). Bottom: After summing over all paths. Sketches visualize the tradeoff between the inhibitory and disinhibitory pathways (see Eq. (15)). D. Positive SOM modulation decrease (left, or increase (right, the E rate rE (red line). Case 1: Change connectivity of SOM → E and SOM → PV population. Case 2: Change strength of self-inhibition of PV population. Case 3: Change the rate of PV neurons.

The model response is nonlinear, with neurons in each population having an expansive nonlinear transfer function (Fig. 1B; top, see Eq. (4)), consistent with many experimental reports (Priebe and Ferster, 2008). To understand which circuit parameters can influence the sign of E rate changes, we apply a widely used concept: if the modulation of SOM inputs is sufficiently small we can linearize around a given dynamical state of the model. At the neuronal level, this linearization defines a cellular gain bX (X ∈ {E, P, S}) from the transfer function (Fig. 1B; bottom). At the network level the linearization involves the entire circuit (del Molino et al., 2017; Litwin-Kumar et al., 2016; Palmigiano et al., 2023) and yields:

where LES is the transfer coefficient between SOM and E neuron modulations. In principle, LES depends on the synaptic weight matrix W in which each element wXY defines the coupling between neuron classes (with X, Y = {E, P, S}), as well as the cellular gain bX of all neuron classes (see Methods). In principle LES depends on twelve parameters: the nine synaptic couplings within the E – PV – SOM circuit and the three cellular gains. This large parameter space convolutes any analysis of modulations; our study provides a framework to navigate this complexity.

To begin, it is instructive to express the effect of SOM on E based on all possible synaptic pathways. Intuitively, the effect of SOM modulation on E rates can be understood by an infinite sum of synaptic pathways with increasing order of synaptic connections (Fig. 1C; top). Hence, the changes in SOM rate affect E rates via the monosynaptic pathway SOM → E, disynaptic pathways SOM → PV and PV → E or SOM → E and E → E, trisynaptic pathways, etc. Fortunately, the sum can be simplified so that just two network motifs determine the sign of changes in E rates (Fig. 1C; bottom, see Eq. (15)). These motifs reflect both the disinhibitory component of the network (the SOM → PV → E and PV → PV connections) and the inhibitory component (SOM → E connections). Whether the full motif is biased towards the inhibitory or disinhibitory pathway depends on the connection strengths wEP, wPS, wES, and wPP. Further, since the PV gain depends on the operating point of the network, the tradeoff between the two pathways can be controlled by changes in PV rates. In particular, since PV gain increases with PV rates (Fig. 1B), then LES can transition from effectively inhibitory for low PV activity (small bP) to effectively disinhibitory for higher PV activity (large bP). We remark that other connections and the activity of the E and SOM neurons only contribute to the amplitude but not the sign of the effective pathway (as reflected in the positive prefactor ψES > 0 in Fig. 1C; see Methods).

Therefore, for a certain choice of connectivity and input parameters, SOM modulation yields a decrease of E rates , as reported from neuronal recordings in layer 2 and 3 of visual cortex of mice (Adesnik, 2017; Adesnik et al., 2012) (Fig. 1D; left). A different choice of parameters yields an increase of E rates , consistent with recordings from layer 4 neurons from the somatosensory cortex of mice (Xu et al., 2013) (Fig. 1D; right). Our analysis of how synaptic pathways determine the sign of (Fig. 1C) provides a framework to discuss the possible mechanistic reasons for this discrepancy. Specifically, this change in E rate for the same SOM modulation can in principle follow from differences in: direct inhibition of E via SOM versus disinhibition of E via SOM (Fig. 1D; Case 1), strong versus weak self-inhibition of PV (Fig. 1D; Case 2), or low versus high firing rates of PV (Fig. 1D; Case 3). Hence, differential modulations in E rate response might follow from any of those circuit or cellular factors.

In sum, while the full E – PV – SOM recurrent circuit invokes a multitude of polysynaptic pathways, a tradeoff between the inhibitory and disinhibitory pathway does indeed determine the modulatory influence of SOM neurons upon E neuron activity. Having now identified the central role of these two pathways, in the following sections we investigate how they control network stability and the stimulus – response gain of E neurons.

Gain modulation and stability measures

In the following, we ask how SOM modulation can affect stimulus representation. In most primary sensory cortices, sensory stimulus information arrives at E and PV neurons via feedforward connections (Tremblay et al., 2016). Therefore, we model stimulus as a feedforward input onto E and PV populations (Fig. 2A; left). An important feature of cortical computation is gain modulation, which refers to changes in the sensitivity of neuron activity to changes in a driving input (Ferguson and Cardin, 2020; Silver, 2010; Williford and Maunsell, 2006). Many experimental studies suggest that inhibitory neurons play an important role in gain modulation (Ferguson and Cardin, 2020; Isaacson and Scanziani, 2011). In the following, we analyze how a modulation via SOM neurons can affect the stimulus – response gain of the E population.

Gain and stability in E – PV – SOM circuits.

A. Left: Sketch of a disinhibitory network with stimulus input onto E and PV populations and positive SOM modulation. Right: Numerical E (red), PV (blue) and SOM (green) rate dynamics of the case with positive SOM modulation at 0.05s (solid line), and the case without modulation (dashed line). Stimulus presentation at 0.35s. Symbols indicate calculated values based on Eq. (1) and Eq. (2). B.Measures to quantify the effect of SOM modulation: (i) Effect of modulation on E and PV rates, (ii) calculation of network gain with and without (gE) SOM modulation, , (iii) calculation of stability measure with and without (λmax) SOM modulation, . C. Same as A for a negative SOM modulation in a disinhibitory circuit with feedback PV → SOM. D. Same as B with (ii) Δg = 0.35, and (iii) Δλ = 0.04 (only maximum eigenvalues shown).

To motivate our analysis we compare the influence of a stimulus with and without SOM modulation in a disinhibitory pathway (Fig. 2A). Since the linearization framework outlined above allows us to calculate the effect of a SOM modulation on E rates (Fig. 2Bi; ), we can further ask how a SOM modulation affects the gain of the network. We define the network gain as the rate change of the E population in response to a change in the stimulus (δIstim), assuming that stimuli target E and PV populations

Here, network gain measures the sensitivity of E rates owing to the activity of the full recurrent circuit in response to a change in input. This is opposed to the cellular gain bE which measures the sensitivity of E rates to a change in the full input current to E neurons due to both the external stimulus and internal interactions (Fig. 1B; top). The expression in Eq. (2) allows us to calculate the difference in network gain with and without SOM modulation when a stimulus is presented (Fig. 2A,Bii). Since the cellular gains bE and bP depend upon the operating point about which the circuit dynamics are linearized, the tradeoff between amplification and cancellation can be controlled through an external modulation (e.g. via SOM) that shifts this point.

In addition to network gain, we will also measure how SOM modulation affects the stability of the network. Unstable firing rate dynamics are typified by runaway activity when recurrent excitation is not stabilized by recurrent inhibition (Griffith, 1963; Ozeki et al., 2009; van Vreeswijk and Sompolinsky, 1996; Wilson and Cowan, 1972). To quantify stability, we measure the distance of the largest real eigenvalue (i.e. least negative) to zero (Fig. 2Biii; Methods). To compare stability for the modulated versus the unmodulated case, we subtract the largest real eigenvalues . Therefore, if Δλ > 0 stability increases via SOM modulation, and if Δλ < 0 stability decreases. In the example of purely disinhibitory influence of SOM modulation, network gain is increased (Fig. 2Bii; Δg = 0.12) and stability slightly decreases (Fig. 2Biii; Δλ = −0.03). Hence, in this network example increase in network gain is accompanied by decreases in network stability. By contrast, in a network with feedback PV → SOM neurons (Fig. 2C), a negative modulation of SOM neurons leads to decreases in E and PV rates (Fig. 2Di) while increasing both, network gain (Fig. 2Dii; Δg = 0.35) and stability (Fig. 2Diii; Δλ = 0.04).

Therefore, the direction and magnitude of gain and stability changes depend on the connectivity details of the inhibitory circuit. The central goal of our study is to dissect how firing rates and synaptic weights within the E – PV – SOM circuit contribute to modulations of network gain and stability.

Gain and stability controlled by feedforward SOM inhibition

We start by considering a network without connections between the E – PV network and the SOM population (Fig. 3Ai). To compare network gain across different network states we consider a grid of possible firing rates (rE, rP). A given network state is found by determining the external input required to position the network at that rate (see Methods). For each E – PV rate pair, we linearize the network dynamics (i.e. determine the cellular gains bX) and compute the network gain via Eq. (2) (Fig. 3Aii). It is immediately apparent that network gain is largest for high E rates and low PV rates. Gain modulation is most effective when it connects two network states that are orthogonal to a line of constant gain (Fig. 3Aii; gray lines). Thus, for most network states the highest gain increase occurs for modulations that increase E neuron rates while simultaneously decreasing PV neuron rates. In a similar fashion, we consider how stability depends on network activity (rE, rP) (Fig. 3Aiii). Network dynamics are most stable for large PV and low E neuron rates. Discontinuities in the lines of constant stability follow from discontinuities in the dependence of eigenvalues on PV rate (Fig. 3Aiv; see Methods). In total, we have an inverse relationship between these two network features, where high gain is accompanied by low stability and vice-versa (compare heatmaps Fig. 3Aii and Aiii). This ‘tangling’ of gain and stability places a constraint on network modulations, ultimately limiting the possibility of high gain responses.

Network gain and stability in the E – PV network.

A. Network sketch (i), firing rate grid (rE, rP) in the form of a heatmap for normalized network gain gE (ii) and normalized stability λmax (iii), and the eigenvalues for changing PV rates rP (iv) for a network without connections between the E – PV network and SOM. Every value in the heatmap is a fixed point of the population rate dynamics. The color denotes normalized network gain (Eq. (2)) or normalized stability (Fig. 2Biii). Lines of constant network gain and stability are shown in gray (from dark to light gray in steps of 0.2). The black line marks where the rate dynamics become unstable. The black dashed line separates ISN from non-ISN regime. Blue line in iii indicates the parameters for which the eigenvalues are shown in iv.

We next expand our network and include SOM neurons in order to consider how their modulation can affect network gain and stability. For now, we neglect feedback from E or PV populations onto SOM. Consequently, SOM neuron modulation can only affect the stability and gain of E neurons by changing the dynamic state of the E – PV subcircuit. Positive or negative input modulations to SOM neurons increase or decrease their steady-state firing rate, which in turn affects the steady-state rates of the E and PV neurons. To build intuition we first consider only the SOM → E connection and set the SOM → PV connection to zero, thereby isolating the inhibitory pathway (Fig. 4Ai). A specific modulation can be visualized as a vector (ΔrE, ΔrP) in the firing rate grid (Fig. 4Aii). The direction of the vector indicates where the E – PV network state would move to if SOM neurons are weakly positively modulated. We remark that the modulation (ΔrE, ΔrP) not only depends on the feedforward SOM projections to E and PV neurons, but also on the dynamical regime (i.e linearization) of the unmodulated state (rE, rP). Applying a positive modulation to SOM neurons causes the E and PV rates to decrease (Fig. 4Aii; arrows). We quantify the effect of all the possible modulations in the (rE, rP) grid on network gain and stability by calculating the difference in network gain (Δg) and stability (Δλ) before and after SOM modulation. For almost all cases, network gain and stability have an inverse relationship to each other. For a positive SOM modulation, network gain decreases while stability increases (Fig. 4Aiii; black dots in the Δλ > 0 and Δg < 0 quadrant). Similarly, for a negative SOM modulation, network gain mostly increases while stability decreases (Fig. 4Aiii; gray dots in the Δλ < 0 and Δg > 0 quadrant).

Modulation of SOM neurons with feedforward SOM connectivity.

A. Network sketch (i), firing rate grid (rE, rP) in the form of a heatmap for normalized network gain and stability (ii), and modulation measures Δ Gain (Δg) and Δ Stability (Δλ) (iii), for a network with SOM → E connection (inhibitory pathway). The arrows indicate in which direction a fixed point of the rate dynamics is changed by a positive SOM modulation. All arrow lengths are set to the same value. The modulation measure quantifies the change in stability and gain from an initial condition in the (rE, rP) grid for a positive (black dots) and negative (gray dots) SOM modulation. Q1-Q4 indicates the percent of data points in the respective quadrant (only |Δg| > 0.1 and |Δλ| > 0.01 are considered). B. Same as B for a network with SOM → PV connection (disinhibitory pathway). The purple dot in Ciii is the case of Fig. 2A. C. Same as A for a network with SOM → E and SOM → PV connections. SOM rate r2 = 2 Hz in all panels.

We next consider only the SOM → PV connection and set SOM → E to zero, isolating the disinhibitory pathway (Fig. 4Bi). If the unmodulated network state has low E rates then the modulation vector field shows a transition from decreases in PV rates to increases in PV rates. A network response where PV rates increase with a decrease in the inputs to PV population is often labeled a paradoxical effect (Litwin-Kumar et al., 2016; Ozeki et al., 2009; Tsodyks et al., 1998). Therefore, with a disinhibitory pathway we can get changes from non-paradoxical to paradoxical responses when switching from non-inhibition stabilized network (non-ISN) to an inhibition stabilized network (ISN) (Litwin-Kumar et al., 2016; Ozeki et al., 2009; Tsodyks et al., 1997), indicated by ΔrP < 0 for low rE yet shifting to ΔrP > 0 for larger rE (Fig. 4Bii). Similar to the inhibitory pathway, network gain and stability are inversely related (Fig. 4Biii). If we extend our analysis by including weak SOM → E connectivity (Fig. 3Di), the SOM → PV connection continues to dominate and maintains a mostly disinhibitory effect on E neurons for high rates (Fig. 4Cii). The vector field changes so that the modulation now strongly increases gain but also shifts the circuit more directly into the unstable region while keeping the inverse relationship between gain and stability changes (Fig. 4Ciii).

In sum, our analysis shows that modulation of the E – PV circuit via feedforward SOM modulation results in an inverse relationship between network gain and stability. Hence, increases in gain are accompanied by a decrease in stability and vice versa. These results prompt the question: can a cortical circuit be modulated through inhibition to a higher gain regime without compromising network stability? In the next section, as indicated by the motivating example (Fig. 2C), we show how feedback to SOM neurons can shift the E – PV – SOM circuit from a low to a high gain state while maintaining stability.

Recurrent inputs to SOM neurons allow modulations to increase both gain and stability

Neglecting feedback connections to SOM in the E – PV – SOM circuit makes SOM activity simply an intermediate step in a feedforward modulation of the E – PV subcircuit. In this section, we consider how the E → SOM and PV → SOM interactions determine how an external modulation to SOM neurons affects E network gain and stability.

We first remark that by adding feedback onto SOM then different SOM rates can drastically change the underlying heatmaps in the (rE, rP) grid since Eq. (2) has a dependency on the SOM rates (rS) through its control on cellular gain (bS). In the case of an inhibitory pathway with feedback from E → SOM, SOM modulations can change gain and stability in the same direction (Fig. 5). Dependent on the initial rates in the (rE, rP) grid, a positive SOM modulation can lead to an increase in both, network gain and stability (Fig. 5Aiii,Biii,Ciii). The higher the SOM rates, the more likely it becomes for a positive modulation to result in a gain and stability increase. However, we note that the network gain changes with the highest amplitude are accompanied by decreases in stability. Similarly, in the example of a disinhibitory pathway with feedback from PV → SOM, SOM modulation can lead to changes of network gain and stability in the same direction (Suppl. Fig. S1). Here a negative SOM modulation can lead to increases in both, network gain and stability.

Modulation of SOM neurons with E to SOM feedback.

Heatmaps and modulation measures as defined in Fig. 3 and Fig. 4 for a network with an inhibitory pathway and E → SOM feedback. Left to right: Network sketch (i), normalized network gain (gE) and stability (λmax) (ii), and modulation measures Δ Gain (Δg) and Δ Stability (Δλ) (iii). Top to bottom: increase of the SOM firing rate from rS = 1 Hz (A), to rS = 2 Hz (B), rS = 3 Hz (C). The arrows indicate in which direction a fixed point of the rate dynamics is changed by a positive SOM modulation.

In summary, adding a recurrent connection onto SOM neurons from the E – PV subcircuit allows network gain and stability to change in the same direction for a SOM modulation. This ‘disentangling’ of the inverse relation between gain and stability allows SOM mediated modulations to sample a broader range of responses.

Influence of weight strength on network gain vs stability

In the previous sections, we have studied how the population firing rates influence network gain and stability in various network configurations through changes in the cellular gain and inhibitory versus disinhibitory pathways with and without feedback to SOM. However, following from our motivating example, the decrease or increase of E rates to SOM modulation can depend on the exact strength of certain synaptic weights (Fig. 1D; Case 2). In this section, we show in detail how changes in synaptic weight strength can affect network gain and stability. We consider four cases: a network with a biased inhibitory pathway (wES > wPS) (Fig. 6Ai-Aiv), or a biased disinhibitory pathway (wES < wPS) (Fig. 6Bi-Biv,) and we distinguish between the network being in the non-ISN regime where the E → E connection (wEE) is weak (Fig. 6) and the ISN regime with strong wEE (Suppl. Fig. S2). We note that throughout we keep the rates of all populations fixed (see Methods).

Effect of synaptic weight strength on network gain and stability.

A. Effect of synaptic weight change on network gain (gE) and stability (λmax) in a network biased to inhibitory SOM influence (wES > wPS). We change the strength of one weight at a time, either wEP or wPE (i), wES or wSE (ii), wPS or wSP (iii), or wPP or wSS (iv). Colorbar indicates the weight strength, red corresponds to weights onto E, blue onto PV, and green onto SOM. B. Same as A but in a network biased to disinhibitory SOM influence (wES < wPS). The networks are in the non-ISN regime (wEE is weak) and all the rates are fixed rE = 3, rP = 5, rS = 0.5.

For weakening either the connection from PV → E (wEP) or E → PV (wPE) the network gain drastically increases and is mostly accompanied by decrease in stability (Fig. 6Ai, Bi). However, if the influence of SOM on E is biased to be inhibitory, increases in network gain can lead to slight increases in stability (Fig. 6Ai; strong wEP or wPE). This follows from the discontinuity of the stability measure, as we have already pointed out in a previous section (Fig. 3Aiv; see Methods). The influence of the feedback connection E → SOM (wSE) depends on the bias of SOM connectivity. For inhibitory biased networks, increasing the strength of wSE reduces both gain and stability (Fig. 6Aii). In contrast, for disinhibitory biased networks, it leads to an increase of gain (Fig. 6Bii). The connection SOM → E (wES) moderately increases both, stability and gain (Fig. 6Aii, Bii). Similarly, the influence of the feedback connection PV → SOM (wSP) is opposed for the inhibitory biased versus disinhibitory biased case and the SOM → PV connection (wPS) changes gain and stability in the same direction (Fig. 6Aiii, Biii).

An important distinction between PV and SOM neurons is that PV neurons are strongly connected to other PV neurons, while SOM → SOM (wSS) coupling has not been found in the mouse sensory neocortex (Campagnola et al., 2022; Pfeffer et al., 2013; Tremblay et al., 2016; Urban-Ciecko and Barth, 2016). The PV self coupling strength can have a large effect on both network gain and stability (Fig. 6Aiv, Biv). An interesting aspect of PV → PV (wPP) coupling is that it appears that there is an optimal weight strength for maximal stability. On the other hand, SOM self coupling has only minimal effect on gain and stability.

In summary, changing synaptic weights have often non-intuitive effects on network gain and stability. Network gain always either decreases or increases when changing the strength of a single weight, but the direction in which network gain changes depends on inhibitory biased versus disinhibitory biased, e.g. as shown for changing wSE (Fig. 6Aii, Bii). For stability, discontinuities appear making the direction of change for stability dependent on the absolute weight strengths of the respective weight, e.g. increasing PV self connection strength first increases stability while when further increasing the weight strength leads to a decrease of stability (Fig. 6Aiv, Biv).

Modulation of SOM neurons can have diverse effects on tuning curves

In the previous sections, we measured network gain as the increase of E neuron activity in response to a small increase in stimulus intensity. We now extend our analysis to E – PV – SOM circuits with distributed responses, whereby individual neurons are tuned to a particular value of a stimulus (i.e the preferred orientation of a bar in a visual scene or the frequency of an acoustic tone). In what follows the stimulus θ is parametrized with an angle ranging from 0° to 180°.

We begin by giving the E and PV populations feedforward input which is tuned to θ = 90° with a Gaussian profile (see Eq. (19)). Providing tuned input leads to a tuned response at E, PV and SOM populations (Fig. 7A; top, solid lines). Even though the SOM population does not receive tuned external input, the tuning of SOM is expected since they receive input from tuned E. A small negative modulation of the SOM population can modify the tuning properties of all populations (Fig. 7A; top, dashed lines). In experimental studies that optogenetically activate or inactivate inhibitory populations, changes in tuning curves are often characterized as a linear transformation containing shifting (additive or subtractive) and scaling (multiplicative or divisive) components (Arandia-Romero et al., 2016; Phillips and Hasenstaub, 2016). By fitting a line to the rates before versus after SOM modulation we can quantify the respective components (Fig. 7A; bottom). The slope of the fitted line corresponds to the magnitude of the multiplicative (slope > 1) or divisive (slope < 1) component while the intercept with the y-axis reveals the additive (intersect > 0) or subtractive (intersect < 0) component of tuning curve changes. In the example of a network with connections from SOM → E and SOM → PV and a feedback connection from E → SOM (as shown in Fig. 7A), modulation of SOM leads to subtractive and divisive changes at SOM and additive and multiplicative changes at E and PV populations (Fig. 7B; diamond).

Tuning curve changes induced by SOM modulation depend on network connectivity.

A. Top: Tuning curves of E (red), PV (blue) and SOM (green) populations in a network with connections SOM → E and SOM → PV and a feedback connection E → SOM (wES, wPS, wSE ≠ 0). Solid lines represent the tuning curve before modulation and dashed lines after a negative SOM modulation. Bottom: Linear regression of unmodulated versus modulated rates (black dots: unmodulated versus modulated rate pairs, gray solid line: fit, gray dashed line: unity line). B. Multiplicative/divisive component versus additive/subtractive component for different network connectivities. Add/sub component is normalized to the maximum rate response. Diamond case shown in panel A.

For other network configurations, changes in tuning following a negative SOM modulation can be based on different components. For example, in a network with SOM → E, SOM → PV connections and PV → SOM feedback all populations have an additive and divisive component (Fig. 7B; filled circle).

In sum, tuning curve changes following from SOM modulation depend on the underlying network configuration and can differ largely in their components.

Discussion

Cortical inhibition is quite diverse, with molecularly distinguished cell classes having distinct placement within the cortical circuit (Campagnola et al., 2022; Jiang et al., 2015; Markram et al., 2004; Pfeffer et al., 2013; Tremblay et al., 2016). Cell specific optogenetic perturbations are a critical probe used to relate circuit wiring to cortical function. In many cases, a preliminary analysis of these new optogenetic datasets involves building circuit intuition only from the dominant direct synaptic pathways while neglecting indirect or disynaptic pathways. This is understandable given the complexity of the circuit; however, this is precisely the situation where a more formal modeling approach can be very fruitful. Toward this end, recent modeling efforts both at the large (Billeh et al., 2020; Markram et al., 2015) and smaller (Aponte et al., 2021; del Molino et al., 2017; Hertäg and Sprekeler, 2019; Keijser and Sprekeler, 2022; Kuchibhotla et al., 2017; Kumar et al., 2023; Litwin-Kumar et al., 2016; Mahrach et al., 2020; Palmigiano et al., 2023; Richter and Gjorgjieva, 2022; Ter Wal and Tiesinga, 2021; Veit et al., 2023; Waitzmann et al., 2024) scales have incorporated key aspects of interneuron diversity. These studies typically explore which aspects of cellular or circuit diversity are required to replicate a specific experimental finding.

In our study, we provide a general theoretical framework that dissects the full E – PV – SOM circuit into interacting sub-circuits. We then identify how specific inhibitory connections support both network stability and E neuron gain control; two ubiquitous functions often associated with inhibition (Ferguson and Cardin, 2020; Haider et al., 2013; Isaacson and Scanziani, 2011; Ozeki et al., 2009). In this way, our approach gives an expanded view of the mechanics of cortical function when compared to more classical results that focus only on how circuit structure supports a single feature of cortical dynamics. The theoretical framework we develop can be adopted to investigate other structure-function relationships in complicated multi-class cortical circuits.

Division of labor between PV and SOM interneurons

Compelling theories for both network stability (Griffith, 1963; Ozeki et al., 2009; van Vreeswijk and Sompolinsky, 1996) and gain control (Stern et al., 2018; Sutherland et al., 2009) have been developed using simple cortical models having only one inhibitory neuron class. Thus, network stability and gain control do not necessarily require cortical circuits with diverse inhibition. What our study points out is that SOM neurons are ideal for modulating firing rate changes, network gains, and stability.

Two key circuit features support our division of labor breakdown. Firstly, E neurons and PV neurons experience very similar synaptic environments. Both receive excitatory drive from upstream areas (Tremblay et al., 2016), and both receive strong recurrent excitation, as well as PV- and SOM-mediated inhibition (Campagnola et al., 2022; Pfeffer et al., 2013). This symmetry in the synaptic input to E and PV neurons allows PV neurons to dynamically track E neuron activity. Consequently, any spurious increase in excitatory drive to E neurons, that could cause a cascade of E population activity due to recurrent E → E connections, is quickly countered by an associated increase in PV inhibition. Secondly, SOM neurons do not connect to other SOM neurons (Campagnola et al., 2022; Jiang et al., 2015; Pfeffer et al., 2013; Urban-Ciecko et al., 2015). SOM neurons do provide strong inhibition to E neurons, and this lack of input symmetry makes them less fit to stabilize E neuron activity than PV neurons. However, it is precisely the lack of SOM neuron self-inhibition that allows a high gain for any top-down modulatory signal to induce a change in E neuron response. A large component of the analysis in our manuscript is devoted to establishing this circuit-based view of a division of inhibitory labor in E – PV – SOM cortical circuits. However, there is also evidence for the reverse labor assignment, namely that optogenetic perturbation of PV neurons can shift E neuron response gain (Atallah et al., 2012; Seybold et al., 2015; Wilson et al., 2012), and SOM neurons can suppress E neuron firing which in principle would also quench runaway E neuron activity (Adesnik, 2017; Adesnik et al., 2012).

In our study, both PV and SOM neurons affect stimulus – response gain and stability. We show that the PV firing rate strongly modulates both gain and stability, often in opposing directions (Fig. 4). Similarly, changing the connection strength of the E – PV subcircuit has the largest effect on network gain (Fig. 6). That said, SOM neurons can control how E and PV neurons interact. A key result of our study is that feedforward SOM inhibition of the E – PV circuit leads to an inverse relationship between network gain and stability. Increases (decreases) in gain are often followed by decreases (increases) in stability (Fig. 4). However, adding recurrent feedback onto SOM neurons can disentangle this inverse relationship. Indeed, for many circuit parameter choices gain and stability can increase or decrease together (Fig. 5). This suggests that feedback onto SOM neurons is an important feature to have more flexibility for circuit computation.

There are circuit and cellular distinctions between PV and SOM neurons that were not considered in our study, but could nonetheless still contribute to a division of labor between network stability and modulation. Pyramidal neurons have widespread dendritic arborizations, while by comparison PV neurons have restricted dendritic trees (Markram et al., 2004). Thus, the dendritic filtering of synaptic inputs that target distal E neurons dendrites would be quite distinct from that of the same inputs onto PV neurons. Fortunately, PV neurons target both the cell bodies and proximal dendrites of both PV and E neurons (Di Cristo et al., 2004; Markram et al., 2004; Tremblay et al., 2016), so that the symmetry of PV inhibition onto PV and E neurons as viewed by action potential initiation is maintained. In stark contrast, SOM neurons inhibit the distal dendrites of E neurons (Markram et al., 2004). Dendritic inhibition has been shown to gate burst responses in pyramdial neurons greatly reducing cellular gain (Larkum et al., 2004; Mehaffey et al., 2005), and theoretical work shows how such gating allows for a richer, multiplexed spike train code (Hertäg and Sprekeler, 2019; Keijser and Sprekeler, 2022; Naud and Sprekeler, 2018). Further, dendritic inhibition is localized near the synaptic site for E → E coupling, and modelling (Yang et al., 2016) and experimental (Adler et al., 2019) work shows how such dendritic inhibition can control E synapse plasticity. This implies that SOM neurons may be an important modulator not only of cortical response but also of learning.

The E – PV – SOM cortical circuit is best characterized in superficial layers of sensory neocortex (Pfeffer et al., 2013; Tremblay et al., 2016; Urban-Ciecko and Barth, 2016). However, cell densities and connectivity patterns of interneuron populations change across the brain (Kim et al., 2017) and across cortical layers (Jiang et al., 2015; Tremblay et al., 2016). Our circuit based division of labor thus predicts that any differences in inhibitory connectivity compared to the one we studied will be reflected in changes of the roles that interneurons play in distinct cortical functions.

Influence of synaptic strength in the E – PV – SOM circuit

In most of our study, the distinction between different circuits is based on the existence or nonexistence of a synaptic connection. For example, the distinction between inhibitory and disinhibitory circuit can be made by setting the other connection to zero (Fig. 4A,B). However, the exact synaptic strength of a connection relative to the strength of all other connection strengths in the circuit is an important determinant of circuit response. Small changes can switch the sign of how SOM modulation affects rates (Fig. 1C,D) or change the stability and network gain of the circuit (Fig. 6). Hence, our analysis suggests that including short- or long-term plasticity dynamics of synaptic weight strength can have profound impacts on the circuit.

Short-term synaptic dynamics in cortical circuits often show net depression (Zucker and Regehr, 2002), however, the E → SOM connection facilitates with increasing pre-synaptic activity (Beierlein et al., 2003; Reyes et al., 1998; Thomson, 1997; Tremblay et al., 2016; Urban-Ciecko and Barth, 2016; Yavorska and Wehr, 2016). Indeed, prolonged activation of E neurons recruits SOM activity through this facilitation (Beierlein et al., 2003). Thus, this enhanced gain control would require a strong and long-lasting drive to E neurons to facilitate the E → SOM synapses. Recent computational work has shown how distinct short-term plasticity dynamics at inhibitory synapses impact auditory processing (Park and Geffen, 2020; Phillips et al., 2017; Seay et al., 2020), multiplexing (Hertäg and Sprekeler, 2019; Keijser and Sprekeler, 2022; Naud and Sprekeler, 2018), and SOM response reversal (Waitzmann et al., 2024).

Recent experimental work also finds subtype-specific long-term plasticity dynamics (Lagzi et al., 2021; Udakis et al., 2020; Wu et al., 2022). A prominent role of inhibition, and specifically SOM neurons, is the gating of synaptic plasticity at excitatory neurons (Canto-Bustos et al., 2022; Miehl and Gjorgjieva, 2022). Our work suggests that there are weight strengths for which the stability of the circuit becomes maximal (Fig. 6), therefore a potential goal of long-term synaptic plasticity might be to keep the synaptic weight strength of inhibitory connections at an optimal value.

Impact of SOM neuron modulation on tuning curves

Neuronal gain control has a long history of investigation (Ferguson and Cardin, 2020; Salinas and Thier, 2000; Williford and Maunsell, 2006), with mechanisms that are both bottom-up (Schwartz and Simoncelli, 2001) and top-down (Reynolds and Heeger, 2009; Ruff et al., 2018) mediated. A vast majority of early studies focused on single neuron mechanisms; examples include the role of spike frequency adaptation (Ermentrout, 1998), interactions between fluctuating synaptic conductances and spike generation mechanics (Chance et al., 2002; Ly and Doiron, 2009), and dendritic-dependent burst responses (Larkum et al., 2004; Mehaffey et al., 2005). These studies often dichotomized gain modulations into a simple arithmetic where they are classified as either additive (subtractive) or multiplicative (divisive) (Silver, 2010; Williford and Maunsell, 2006). More recently, this arithmetic has been used to dissect the modulations imposed by SOM and PV neuron activity onto E neuron tuning (Atallah et al., 2012; Lee et al., 2014; Wilson et al., 2012). Initially, the studies framed a debate about how subtractive and divisive gain control should be assigned to PV and SOM neuron activation. However, a pair of studies in the auditory cortex gave a sobering account whereby activation and inactivation of PV and SOM neurons had both additive and multiplicative effects on tuning curves (Phillips and Hasenstaub, 2016; Seybold et al., 2015), challenging the tidy assignment of modulation arithmetic into interneuron class.

Past modelling efforts have specifically considered how tuned or untuned SOM and PV projections combine with nonlinear E neuron spike responses to produce subtractive or divisive gain changes (Litwin-Kumar et al., 2016; Seybold et al., 2015). However, the insights in these studies were primarily restricted to feedforward SOM and PV projections to E neurons, and ignored E neuron recurrence within the circuit. We show that additive/subtractive and multiplicative/divisive changes in tuning properties can strongly depend on the underlying circuit connectivity, in line with arge heterogeneity of subtractive and divisive gain control reported in various studies (Atallah et al., 2012; Lee et al., 2014; Natan et al., 2017; Seybold et al., 2015; Wilson et al., 2012).

Acknowledgements

We thank Xinruo Yang, Fereshteh Lagzi and Gregory Handy for useful comments on the manuscript. Funding was provided by the National Institutes of Health Grants 1U19NS107613 (BD), CRCNS R01DC015139 (AMO, BD), and R01EB026953 (BD), the Vannevar Bush Faculty Fellowship ONR-N00014-18-1-2002 (BD, AMO), an award from the Simons Foundation Collaboration on the Global Brain 542967 (BD), and an Human Frontier Science Program Postdoctoral Fellowship LT0005/2024-L (CM).

Code

Code to replicate simulation and theory results is freely available at https://github.com/brain-math/stability-gain-with-multiple-INs

Methods

Population model

The population rate dynamics (rX) of E, PV and SOM neurons are described by a firing rate model (Wilson and Cowan, 1972)

with τX being the rate time constant (τX = 10 ms for all populations). The input to the circuit component X is the linearly rectified sum over all presynaptic components Y of synaptic weights wXY multiplied by the respective rate dynamics rY plus external input IX: . Here X, Y either represent the excitatory (E), PV (P), or SOM (S) population with the exponent q = 1 (q = 2) if population Y is inhibitory (excitatory). The nonlinear transfer functions are described by a power law

To simplify our analysis we chose the same parameters a = 1/4 and b = 2 for all populations (Fig. 1B).

In vector notation, Eq. (3) can be written as

with T being a diagonal matrix of rate time constants τX, r the vector of firing rates rX, I the vector of external inputs IX and W the synaptic connectivity matrix

Note that in this notation we dropped the linear rectifier and assume only positive q.

We summarize the weight parameters for each Figure in Table 1. Self-connection of SOM cells (wSS) is always zero, besides in Fig. 6Aiv,Biv. In Fig. 6, we keep the strength of each weight at wXY = 0.5 while changing the strength of only one weight (for the inhibitory case in Fig. 6A we set wPS = 0.1 and for the disinhibitory case we set wES = 0.1). In Fig. S2 we use the same parameters, besides the E → E weights are higher (wEE = 0.8).

Weight parameters

To generate the panels containing the grid of possible firing rates (rE, rP) we choose the external inputs to each population IX accordingly. The numerical results in Fig. 1D, Fig. 2A,C and Fig. 7 are obtained via Euler integration with a timestep of 0.01.

Calculation of modulation and gain

In the steady-state the population rates are given by the self-consistent equation

Changes of the steady-state rates induced by small changes in the external rate I are given by (del Molino et al., 2017; Litwin-Kumar et al., 2016)

The matrix has been termed a response matrix and can be written as (del Molino et al., 2017)

Here 1 denotes the identity matrix. If all eigenvalues of BW are smaller than 1 the response matrix can be written as

The response of the E population to modulations of SOM following Eq. (10) can be expressed as

Here denotes the element in the first row and third column of the matrix. Our expression shows that the response matrix describes the summed effect of all possible pathways through the network whereby an externally applied signal could influence population E rates, as shown in Fig. 1D (top).

Similarly, assuming that modulation only targets SOM neurons , the rate change of excitatory neurons induced by modulation following Eq. (9) is given by

With being the prefactor in Fig. 1D. If the system is stable, ψES is positive.

Network gain is defined as the rate change of neurons in response to a stimulus, assuming that stimuli target E and PV neurons , E neuron network gain is given by

This is the expression in Eq. (2) with prefactor . Again, for a stable system ψg > 0.

Paradoxical responses and gain maximum

The response of PV to SOM modulation is given by

When SOM neurons only project to PV but not E neurons (wES = 0), the rate of PV neurons decreases for positive SOM modulation if the E – PV circuit is in the non-ISN regime and increases otherwise (Fig. 3Cii). The latter case has been termed paradoxical response (Tsodyks et al., 1997). If SOM neurons also project to E neurons, PV neurons get additional negative drive from the lack of E feedback yielding decreased PV rates even in the ISN regime (Fig. 3Bii,Dii). Hence we only expect paradoxical responses if the product of connection strength wESwPE is small. Thus the observation of paradoxical responses of PV neurons in response to suppression via SOM neurons cannot disclose whether the E neurons operate in the ISN or non-ISN regime if SOM neurons also suppress the activity of E neurons. Rather, one should observe a paradoxical response of the total inhibitory current (from PV and SOM) onto E neurons to establish that the network is in the ISN regime (Litwin-Kumar et al., 2016).

Quantifying network stability

The Jacobian matrix of the system is given by

which can be linked to the response matrix since L = (B−1W)−1 = (−𝕁)−1 (Palmigiano et al., 2023). The system is stable, if the real parts of all three Eigenvalues of the Jacobian are negative. We quantify stability by measuring the distance of the Eigenvalue with the largest real part λmax to zero (see Fig. 2Biii,Diii). This stability measure ignores the oscillatory behavior of the system (i.e. the imaginary part of the eigenvalues).

As mentioned in the results section the stability measure can show discontinuities when changing either the rate (Fig. 3Aiii) of a population or a synaptic weight (Fig. 6). This discontinuity follows from either switches of the leading Eigenvalue or changes from non-oscillatory to oscillatory dynamics (Fig. 3Aiv).

Modulation of tuned populations

We separate the input to each population into two components, a background and a tuned input I = Iback + Istim. We assume that the feedforward stimulus input is tuned with a Gaussian profile and that it only targets E and PV neurons:

with wff = 2, the preferred angle θp = 90° and σθ = 20. For simplicity, we assume that E and PV receive the exact same input tuning. The background input is Iback = (1, 1, 1.5)T. In Fig. 7 we compare five different circuits, where the E–PV weight strength is fixed and we change the connections to and from SOM.

To quantify if changes in tuning curves are additive/subtractive or mulitplicative/divisive, we use the same measure as in experimental studies (Arandia-Romero et al., 2016; Phillips and Hasenstaub, 2016). We fit a line to the rates before versus after SOM modulation. The tuning curve undergoes a multiplicative change if the slope is > 1, and a divisive change if the slope is < 1. If the intersect with the y-axis is > 0, the tuning curve change has an additive component and if the intersect is < 0 the change has a subtractive component (Fig. 7A; bottom).

Supplementary Material

Modulation of SOM neurons with PV to SOM feedback.

Same as Fig. 5 for a network with a disinhibitory pathway and PV → SOM feedback (wSP). Left to right: Network sketch (i), Network gain (gE) and stability (λmax) (ii), and modulation measures Δ Gain (Δg) and Δ Stability (Δλ) (iii). Top to bottom: increase of the SOM firing rate from rS = 1 Hz (A), to rS = 2 Hz (B), rS = 3 Hz (C). The purple dot corresponds to the case in Fig. 2C.

Effect of synaptic weight strength on network gain and stability (ISN regime).

A. Effect of synaptic weight change on network gain (gE) and stability (λmax) in a network biased to inhibitory SOM influence (wES > wPS). We change the strength of one weight at a time, either wEP or wPE (i), wES or wSE (ii), wPS or wSP (iii), or wPP or wSS (iv). Colorbar indicates the weight strength, red corresponds to weights onto E, blue onto PV, and green onto SOM. B. Same as A but in a network biased to disinhibitory SOM influence (wES < wPS). The networks are in the ISN regime (wEE is strong) and all the rates are fixed rE = 3, rP = 5, rS = 0.5.