Recurrent Learning Weakens Rhythmicity

Trainable recurrent conductances produced lower reference-image rhythmicity and higher excitatory firing than the frozen PING control; outcomes depended on initialization.

Abstract

We compared fixed and trainable reciprocal PING conductances across four initialization conditions, with three MNIST training seeds per condition. Trainable recurrence had mean reference-image contrast 0.05 after epoch 1 and ended at 0.018–0.111, below the fixed-recurrence control. E→I pruning accompanied increased E firing, but the comparison does not isolate pruning as the cause or establish equivalent accuracy. The single-image rhythmicity diagnostic does not show that recurrent learning must always destroy gamma.

Results

E→I pruning accompanies low contrast

In all three networks in each condition, training from standard and 10%-standard recurrence drove most E→I weights to zero, while most I→E weights remained positive and their mean across all entries grew. Both conditions ended with lower reference-image contrast and higher E rates than frozen recurrence. Zero-initialized recurrence remained zero (Fig. 1). This pattern across three training replicates per condition remains descriptive: it does not isolate pruning as the cause of reduced contrast or establish equivalent accuracy.

Final accuracy, E/I rates and reference-image contrast across four conditions, with initial and final recurrent nonzero fractions and mean weights.

Figure 1: Final checkpoints: (A) official-test accuracy, (B) per-neuron E/I firing rates over the same 1000 test images and (C) unsmoothed reference-image contrast R=RcontrastR = R_{\text{contrast}}. Bars and error bars in A–C show means ±1 standard error of the mean (SEM) across three independently trained networks (sample standard deviation divided by 3\sqrt{3}). In B, black denotes E and red I. Frozen denotes fixed standard recurrence; Std., 10% and Zero denote trainable recurrence initialized at standard, 10%-standard and zero weights. (D, E) Positive-weight fractions for E→I and I→E; (F, G) corresponding per-edge means including zeros, in model conductance units scaled by 10−310^{- 3}. For each direction, condition and time point, weight statistics pool 786,432 entries from three equal-sized matrices, giving each network equal weight. Wide grey bars show initialization and narrow red bars show epoch 50. Error bars show ±1 SEM across the three per-network statistics, calculated separately before and after training; they do not describe uncertainty in the paired change. Individual weights are not independent training replicates. Black arrows connect pooled values before and after when the relative change is at least 5%; this is a display threshold, not a statistical-significance test.

Rhythmicity starts low

The unsmoothed trainable contrast averaged 0.05 after epoch 1 and ended at 0.018–0.111. Because these histories have no epoch-0 observation, they cannot resolve the intervening transition (Fig. 2).

Validation accuracy and E/I rates over 50 epochs, alongside reference-image rhythmicity; frozen recurrence retains high contrast while trainable recurrence has low contrast.

Figure 2: Recorded histories: (A) validation accuracy, (B) E rate, (C) I rate and (D) contrast from a fixed reference-image diagnostic. Lines show three-seed means; shading spans seed minima and maxima. Each series is smoothed with a five-epoch edge-padded moving average, not a confidence interval.

The first digit before and after training

We replayed the first official-test image, a digit 7, through each condition at initialization and epoch 50 (Fig. 3). The sampled E cells fire sparsely at initialization. At epoch 50, the frozen-recurrence example shows repeated E/I volleys, whereas the trainable examples show denser, less visibly synchronous E activity. These seed-42 examples use identical input spikes across all eight panels. They illustrate individual responses; they do not estimate variability across images or training seeds. The initial feedforward weights are reconstructed from the recorded training initializer, because no epoch-0 checkpoint was retained.

Four rows of matched before-and-after spike rasters for the first MNIST test image, a digit 7: frozen, standard, 10% and zero recurrent initialization.

Figure 3: Matched single-image replay. Rows show frozen standard recurrence, trainable standard recurrence, trainable 10%-standard recurrence and trainable zero recurrence. Left: reconstructed initialization with the retained initial E→I/I→E matrices. Right: the retained epoch-50 checkpoint. The inset shows official-test image 0 (digit 7). Every panel receives the same seed-42 Poisson spike realization for 200 ms at 0.1 ms resolution, with fresh neuronal and synaptic state. Black ticks show 200 of 1,024 E cells; red ticks show 50 of 256 I cells. Cells were sampled without replacement with NumPy RNG seed 42 and retain the same display order throughout. Both columns share time and neuron scales. Fixed recurrence still permits changes in the trained input and readout weights. These new CPU diagnostic simulations use a shared input realization distinct from the historical reference-image diagnostic; the left column is not a recovered historical epoch-0 recording.

Methods

We reused networks from the exp022 — MNIST (legacy) and reanalysed recorded observations for Figures 1–2. Figure 3 adds matched CPU diagnostic simulations of reconstructed initialization and the retained final checkpoints. No new training was performed.

  1. Compare recurrent trainability. Twelve conductance-based leaky-integrate-and-fire classifiers had 784 Poisson input channels, 1,024 excitatory (E), 256 inhibitory (I) and 10 output neurons. With three training replicates per condition, we compared frozen canonical recurrence with trainable canonical, zero and 10%-canonical E→I/I→E conductances; E→E and I→I coupling stayed zero. Canonical initializer means were 11024\frac{1}{1024} and 2256\frac{2}{256}, respectively, with standard deviations one tenth of each mean and negative draws clamped to zero.

  2. Train on a held-out split. The 7,000-image subset contained 6,300 optimizer-training and 700 validation images from the official MNIST training partition. Input and readout weights trained for 50 epochs with AdamW, learning rate 4×10−44 \times 10^{- 4}, zero weight decay, batch size 256, surrogate slope 1, voltage-gradient damping 1,000, gradient-norm clipping at 1 and no firing-rate penalty. Class scores were mean pre-reset output voltages; each 200 ms presentation used 0.1 ms steps and pixel-dependent input rates up to 25 Hz.

  3. Constrain conductance signs. Trainable recurrent magnitudes were projected onto the non-negative cone after each optimizer step. Inhibition arose through gI(EI−Vm)g_{I} ( E_{I} - V_{m} ), where gIg_{I} is inhibitory conductance, EI=−80E_{I} = - 80 mV its reversal potential, and VmV_{m} membrane voltage: a positive I→E weight need not become negative to inhibit. Input zeros remained trainable and could regrow.

  4. Evaluate final networks. All endpoint tests and weight comparisons used epoch 50, not validation-selected weights. Accuracy and whole-population mean E/I rates used the same 1000 official-test images per network; per-epoch validation metrics averaged three fixed Poisson encoding draws. For endpoint spectra, demeaned nonconstant E-population traces received full-trial Welch density estimation; the mean spectrum’s largest bin within 5–150 Hz defined the selected peak, without interpolation.

  5. Measure temporal contrast. After each epoch, the same fixed reference digit’s Poisson spike realization elicited a diagnostic response. E-population counts were binned at 1 ms; their autocorrelation was normalized by lag overlap and squared mean count, over 0–100 ms, then smoothed with weights (14,12,14)( \frac{1}{4} , \frac{1}{2} , \frac{1}{4} ) after replacing the zero-lag entry by its neighbour:

    Rcontrast=Alobe−AtroughAlobe+Atrough(1)R_{\text{contrast}} = \frac{A_{\text{lobe}} - A_{\text{trough}}}{A_{\text{lobe}} + A_{\text{trough}}} \tag{1}

    Here RcontrastR_{\text{contrast}} is dimensionless contrast, AtroughA_{\text{trough}} the first local trough from lag 2 ms onward, and AlobeA_{\text{lobe}} the preceding positive-lag maximum of the smoothed autocorrelogram. We reused the recorded scalar; it is neither a test-population rhythm estimate nor a calibrated probability of PING.

  6. Summarize recurrent weights. We reanalysed the initial and epoch-50 E→I and I→E matrices. For each direction and condition, we calculated the strictly positive fraction and arithmetic mean including zeros, both per network and over the three pooled matrices. Equal matrix sizes gave each network equal weight. Separately at each time point, we calculated SEM as the sample standard deviation of the three network summaries divided by 3\sqrt{3}. The independently trained network was the unit of replication; jointly trained weights were not additional replicates. These descriptive summaries did not test the significance of training-induced changes.

  7. Expose retained training evidence. We displayed retained validation, activity and temporal-contrast measurements with their distinct training-replicate and illustrative-probe roles.

  8. Replay a matched before/after example. For seed 42, we reconstructed the input and readout matrices using the recorded CPU initialization seed, distribution, sparsity mask and draw order. Reconstructed recurrent matrices agreed with the retained initial matrices within four float32 machine epsilons of relative error; we then used the retained matrices themselves. Each epoch-50 replay used its authenticated final checkpoint. We encoded official-test image 0 once with CPU Poisson encoder seed 42 and passed the same spike tensor to all four conditions at both time points. SNNLab’s GraphExecutor reset state on every presentation. The compute run retains the image, encoded input, full E/I recordings, native parameter snapshots and explicit endpoint ancestry. This reconstructed diagnostic does not add an epoch-0 observation to the historical training curves.

Network diagrams

Native PING classifier diagram with every weighted projection annotated.
Figure A1.

Executed network architecture from the retained paired-raster bundle; all four initialization conditions share this topology. XX denotes input spike channels, EE/II the excitatory/inhibitory populations and RR the readout. Every projection is labelled WXYW_{XY}, with target XX first and source YY second. Arrowheads show excitation; bars show inhibition. Recording aliases and score reductions are omitted.

Parameters

Model values are read from original native snapshots through the selected presentation’s compute ancestry. Paired values are E / I. Initializer parent means and SDs describe the original weight distributions, in µS for conductance projections and dimensionless for the current-based readout; they are not measured trained-weight statistics. Missing snapshots or fields are unavailable; current recipes and historical copied tables are not substituted. The recorded configuration identifies the input, numerical and analysis choices of that computation; it does not establish a separate upstream training protocol.

ParameterFixed recurrenceTrained recurrence
Network
E / I neuronsUnavailable / UnavailableUnavailable / Unavailable
Output neuronsUnavailableUnavailable
Neurons
Capacitance, E / I (nF)Unavailable / UnavailableUnavailable / Unavailable
Leak conductance, E / I (µS)Unavailable / UnavailableUnavailable / Unavailable
Resting voltage, E / I (mV)Unavailable / UnavailableUnavailable / Unavailable
Threshold, E / I (mV)Unavailable / UnavailableUnavailable / Unavailable
Reset, E / I (mV)Unavailable / UnavailableUnavailable / Unavailable
Refractory period, E / IUnavailable / UnavailableUnavailable / Unavailable
Synapses and weights
Input→E synapseUnavailable / UnavailableUnavailable / Unavailable
E→I synapseUnavailable / UnavailableUnavailable / Unavailable
I→E synapseUnavailable / UnavailableUnavailable / Unavailable
E→Output synapseUnavailable / UnavailableUnavailable / Unavailable
Input→E initializer parent mean / SDUnavailable / UnavailableUnavailable / Unavailable
E→I initializer parent mean / SDUnavailable / UnavailableUnavailable / Unavailable
I→E initializer parent mean / SDUnavailable / UnavailableUnavailable / Unavailable
E→Output initializer parent mean / SDUnavailable / UnavailableUnavailable / Unavailable
Native parameter stageUnavailableUnavailable
Input and simulation
Timestep (ms)UnavailableUnavailable
Duration (ms)UnavailableUnavailable
Evaluation samples10001000
Seeds42 / 43 / 4442 / 43 / 44
Input rate (Hz)UnavailableUnavailable
Post-burn exclusion (ms)UnavailableUnavailable
Readout and training
Output neuron modelUnavailableUnavailable
EpochsUnavailableUnavailable
Checkpoint rolefinal_epochfinal_epoch
Checkpoint purposeendpoint_dynamicsendpoint_dynamics
Analysis
Frequency search (Hz)UnavailableUnavailable
Count-bin width (ms)UnavailableUnavailable
Autocorrelation maximum lag (ms)UnavailableUnavailable

Dataset

Upstream: exp022 — MNIST

Downstream: exp110 — Manuscript

Current runset

RunDateDurationSizeEvidenceStorageRan onVerification
exp049-r020-present5s3.8 MBCurrentR2LocalLocal: absent; R2: catalog-verified
exp049-r018-analyse3s482.6 KBCurrentR2LocalLocal: absent; R2: catalog-verified
exp049-r017-compute12s19.4 MBCurrentR2LocalLocal: absent; R2: catalog-verified
exp049-r001-compute—43.6 MBCurrentR2UnknownLocal: absent; R2: catalog-verified
exp022-r001-compute2d 7h 4m 16s2 GBCurrentR2HPCLocal: absent; R2: catalog-verified