The PING-gated-sparsity paper. This entry is the methods backbone — neuron model, network architecture, training recipe, and mean-field derivation — kept in one place so the results-and-discussion companion ar010 and the notebook chain in the Gamma Gated Sparsity collection can cite a single definitions source. The aggregation companion (ar010) carries the introduction, results figures, discussion, and conclusion.
Methods
The neuron model
This paper uses a conductance-based leaky integrate-and-fire (LIF) network with separate excitatory and inhibitory populations, fixed recurrent E↔I matrices, and exponential synapses. The COBA neurons obey
CmdtdV=−gL(V−EL)−ge(V−Ee)−gi(V−Ei)(1)
where V is membrane potential, t is time, Cm is capacitance, gL is leak conductance, ge is the excitatory synaptic conductance and gi is the inhibitory synaptic conductance with reversal potentials EL=−65mV (leak), Ee=0mV (excitatory), Ei=−80mV (inhibitory). Each conductance term pulls V toward its reversal potential at a rate proportional to the conductance. Excitatory synapses drive V up towards Ee=0 and inhibitory synapses both pull it down towards Ei=−80 and increase total conductance, which lowers the effective membrane time constant — this is shunting inhibition.
Conductances are non-negative; the sign lives in the driving force
In the COBA formulation gL, ge, and gi are all non-negative — they measure how many ion channels are open, not how much current flows or in which direction. The signed-ness lives in the current, Iion=gion(V−Eion). At a typical resting V≈−65mV, the driving force (V−Ee)=−65<0 makes Ie inward (depolarising, pulls V up toward Ee=0), while (V−Ei)=+15>0 makes Ii outward (hyperpolarising, pulls V down toward Ei=−80). A single positive gi trace does both jobs: it raises gtot (the shunting) and pulls V∞ toward Ei (the hyperpolarising drive, hidden inside V∞). This is what distinguishes COBA from current based models (CUBA), where inhibition is a signed weight that subtracts from a net current; in COBA the sign flip is purely in the driving force, never in the conductance.
Equation (1) can be written as a linear first-order ODE in the form CmV˙=−AV+B with A=gL+ge+gi and B=gLEL+geEe+giEi. Setting V˙=0 we find the voltage at which the inflow B exactly balances the outflow AV, and name that voltage V∞. We define accordingly:
Substituting equations (2)–(4) into (1) and dividing through by gtot yields the standard “decay-to-steady-state” form
τeffdtdV=−(V−V∞)(5)
Integrating over an interval where τeff and V∞ are held constant gives the closed-form solution
V(t)=V∞+(V0−V∞)exp(τeff−t),
the membrane interpolates from its starting value V0 toward V∞ on timescale τeff. However in continuous time τeff and V∞ are not constant — both depend on ge(t) and gi(t) which evolve as spikes arrive. A zero-order hold makes this numerically tractable: freeze ge and gi over one timestep Δt, integrate (5) exactly under that freeze, then update ge and gi for the next timestep. Under that freeze, (5) integrates analytically to
Vt+1=V∞+(Vt−V∞)exp(τeff−Δt).
After the membrane update, apply the spike reset:
St+1=1[Vt+1≥Vth],Vt+1←Vreset if St+1=1 or refractory
with Vth=−50mV and Vreset=−65mV. Refractory periods are τrefe=3ms and τrefi=1.5ms, held in a per-neuron countdown that suppresses spiking until exhaustion.
Each conductance is the convolution of its presynaptic spike train with a decaying exponential. For a single neuron receiving feedforward input only:
ge,t+1=αge,t+Winstinp
where α=exp(−Δt/τAMPA) is the per-step AMPA decay factor. Between spikes the conductance decays exponentially toward zero; each arriving spike adds a kick proportional to the synaptic weight. The inhibitory conductance gi follows the same form with GABA decay γ=exp(−Δt/τGABA).
In a network with E and I populations, two recurrent pathways close the PING loop alongside the feedforward input. There are no E→E connections.
Equation (6) is the excitatory conductance on E neurons — purely feedforward, no recurrent E→E term. Equation (7) is the inhibitory conductance on E neurons — driven by I spikes through Wie. Equation (8) is the excitatory conductance on I neurons — driven by E spikes through Wei. I neurons receive no inhibition. The trainable feedforward input Winstinp enters E’s excitatory conductance after the decay step, arriving fresh each timestep regardless of recurrent state.
The model emits two modes, COBA and PING; when PING mode is active the Wei and Wie matrices are fixed at init and are not trainable. They are controlled by a single scalar flag s:
Wei∼N(s,0.1s)Wie∼N(2.0s,0.2s)
At s=0 both matrices are zero, the loop is open, and the network is feedforward COBA. At s=1 the default initialisation gives Wei≈1μS and Wie≈2μS, strong enough to sustain the PING rhythm from the first forward pass of training.
For each timestep t→t+1, the simulator applies the four updates below in a fixed order. The two populations are updated by the same template but with different driving inputs; they’re written out separately here so the recurrent coupling is explicit.
Equations Summary
E neurons (driven by feedforward input and inhibitory feedback):
(i)(ii)(iii)(iv)ge,t+1E=αge,tE+Winstinp,gi,t+1E=γ(gi,tE+Wiesti)gtotE=gL+geE+giE,τeffE=gtotECm,V∞E=gtotEgLEL+geEEe+giEEiVt+1E=V∞E+(VtE−V∞E)exp(−Δt/τeffE)st+1e=1[Vt+1E≥Vth],Vt+1E←Vreset if st+1e=1 or refractory[eqs. 6, 7][eqs. 2, 3, 4]membranespike + reset
I neurons (driven by excitatory feedback only; no inhibitory input):
(i)(ii)(iii)(iv)ge,t+1I=α(ge,tI+Weiste)gtotI=gL+geI,τeffI=gtotICm,V∞I=gtotIgLEL+geIEeVt+1I=V∞I+(VtI−V∞I)exp(−Δt/τeffI)st+1i=1[Vt+1I≥Vth],Vt+1I←Vreset if st+1i=1 or refractory[eq. 8][eqs. 2, 3, 4]membranespike + reset
Symbols
VtE,VtI — membrane potential of E and I populations at step t (mV)
geE,giE — excitatory / inhibitory conductances on E neurons (µS)
geI — excitatory conductance on I neurons (µS); I receives no inhibition
gtot,τeff,V∞ — per-step aggregate conductance, effective membrane time constant, steady-state voltage
Cm — membrane capacitance (1.0 nF on E, 0.5 nF on I)
gL,EL — leak conductance (0.05 µS on E, 0.1 µS on I) and reversal potential (−65 mV)
Win,Wei,Wie — feedforward (trained), E→I, and I→E weight matrices (Wei≈1 µS, Wie≈2 µS at PING init s=1)
stinp,ste,sti — input, excitatory, and inhibitory spike trains at step t
Δt — integration timestep (0.1 ms)
The E and I populations are updated synchronously: at step t+1 both read the spike outputs ste, sti from step t to drive their conductances, and both emit fresh spikes st+1e, st+1i at the end of the step. Synchronous-step semantics keep the E→I→E gamma cycle phase-locked to the integration grid.
Network model
Training
Mean field derivation
Homogeneous coupling
The weight matrices in the simulator are random with finite variance. We replace them by their means: WkjEI→wEI and WjkIE→wIE for all j,k, and introduce population mean firing rates
Under equations (10)–(11) every E cell sees the same giE and every I cell sees the same geI. The per-cell conductance equations collapse to two population-mean equations.
The synaptic terms in equation (1) still depend on V through driving force terms (V−Ei) and (V−Ee). Take V to its resting value in the synaptic terms, with Vrest=−65 mV:
A LIF cell receiving constant net input current I fires at a rate ϕ(I) where ϕ is its f-I curve. Replacing each cell’s spike output by its rate response gives:
E(t)≈ϕE(IeffE(t)),I(t)≈ϕI(IeffI(t))(19)
with effective input currents (from equation (1) with the linearisation (17)–(18) substituted):
The instantaneous-rate replacement (19) is only valid when input changes are slow compared to the membrane integration time. In reality, E(t) relaxes toward the f-I-curve fixed point on its membrane time constant τE. Encode this with an explicit relaxation:
where ΦE,ΦI are the smooth steady-state gain functions (sigmoids in the numerics). Drives that change faster than τE,τI are filtered; the rate doesn’t snap to the f-I curve instantaneously. Together with the conductance dynamics (13)–(14) we now have four equations in (E,I,geI,giE).
Absorb the driving-force constants
The fixed prefactors ΔVinh,∣ΔVexc∣ in equations (22)–(23) and the fan-in scalings W~EI,W~IE in (12) are just multiplicative constants — they don’t carry dynamical information. Fold them into the couplings:
WEI≡W~EI⋅∣ΔVexc∣,WIE≡W~IE⋅ΔVinh(24)
and likewise absorb the ∣ΔVexc∣ inside the I-cell argument by redefining geI↦geI⋅∣ΔVexc∣ (similarly for giE). The conductances now have units of input current rather than µS; the f-I curves take their argument directly. This change of variables is pure bookkeeping — no dynamics are lost.
The 4D system
After applying equations (10)–(24), the mean-field system in state (E,I,geI,giE) is
with ΦE′,ΦI′ at the fixed-point arguments. The Hopf is the smallest Iext⋆ at which the leading pair crosses the imaginary axis: Re(λ)=0, Im(λ)=ω⋆, with predicted gamma frequency f⋆=ω⋆/(2π).