{"id":811317,"date":"2026-05-21T03:23:17","date_gmt":"2026-05-21T03:23:17","guid":{"rendered":"https:\/\/www.europesays.com\/us\/811317\/"},"modified":"2026-05-21T03:23:17","modified_gmt":"2026-05-21T03:23:17","slug":"a-critical-initialization-for-biological-neural-networks","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/us\/811317\/","title":{"rendered":"A critical initialization for biological neural networks"},"content":{"rendered":"<p>All experimental procedures were conducted according to the Institutional Animal Care and Use Committee (IACUC) at Howard Hughes Medical Institute (HHMI) Janelia. Data analysis and simulations were performed in Python using pytorch and numpy, and figures were made using matplotlib and jupyter-notebooks<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Van Rossum, G. &amp; Drake, F. L. Python 3 Reference Manual (CreateSpace, 2009).\" href=\"#ref-CR61\" id=\"ref-link-section-d63732419e1220\">61<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. In Proc. 33rd Annual Conference on Neural Information Processing Systems (eds Wallach, H. et al.) 8024&#x2013;8035 (Curran Associates, 2019).\" href=\"#ref-CR62\" id=\"ref-link-section-d63732419e1220_1\">62<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Harris, C. R. et al. Array programming with NumPy. Nature 585, 357&#x2013;362 (2020).\" href=\"#ref-CR63\" id=\"ref-link-section-d63732419e1220_2\">63<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Hunter, J. D. Matplotlib: a 2d graphics environment. Comput. Sci. Eng. 9, 90&#x2013;95 (2007).\" href=\"#ref-CR64\" id=\"ref-link-section-d63732419e1220_3\">64<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Kluyver, T. et al. In Positioning and Power in Academic Publishing: Players, Agents and Agendas (eds Loizides, F. &amp; Schmidt, B.) 87&#x2013;90 (IOS Press, 2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR65\" id=\"ref-link-section-d63732419e1223\" rel=\"nofollow noopener\" target=\"_blank\">65<\/a>.<\/p>\n<p>Data acquisitionAnimals<\/p>\n<p>All experimental procedures were conducted according to IACUC ethics approval received from the IACUC board at HHMI Janelia Research Campus. We performed 18 recordings in cortex in: (1) 12 mice bred to express jGCaMP8s<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Zhang, Y. et al. Fast and sensitive GCaMP calcium indicators for imaging neural populations. Nature 615, 884&#x2013;891 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR66\" id=\"ref-link-section-d63732419e1238\" rel=\"nofollow noopener\" target=\"_blank\">66<\/a> in excitatory neurons: TetO-jGCaMP8s \u00d7 Camk2a-tTA mice (available as JAX 037717 and JAX 007004); (2) 3 mice bred to express jGCaMP8s<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Zhang, Y. et al. Fast and sensitive GCaMP calcium indicators for imaging neural populations. Nature 615, 884&#x2013;891 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR66\" id=\"ref-link-section-d63732419e1242\" rel=\"nofollow noopener\" target=\"_blank\">66<\/a> in the somas of excitatory neurons: riboL1\u2013jGCaMP8s \u00d7 Slc17a7-Cre (similar to JAX 039267 without IRES; and JAX 037512) and (3) 3 mice bred to express tdTomato in inter-neurons VGAT-CRE \u00d7 Ai14 (JAX 016962; JAX 007914) with injections of a dual virus Thy1s:TTA (AAV9, 1.64\u00a0\u00d7\u00a01013 vector genomes\u2009ml\u22121) and TRE3G:RiboL1\u2013jGCaMP8s (AAV9, 2.45\u00a0\u00d7\u00a01013 vector genomes\u2009ml\u22121) as in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Zhang, Q. et al. Spatial predictive coding in visual cortical neurons. Preprint at bioRxiv &#010;                https:\/\/doi.org\/10.1101\/2025.09.17.676794&#010;                &#010;               (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR67\" id=\"ref-link-section-d63732419e1255\" rel=\"nofollow noopener\" target=\"_blank\">67<\/a>, see also ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 68\" title=\"Gr&#xF8;dem, S. et al. An updated suite of viral vectors for in vivo calcium imaging using intracerebral and retro-orbital injections in male mice. Nat. Commun. 14, 608 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR68\" id=\"ref-link-section-d63732419e1259\" rel=\"nofollow noopener\" target=\"_blank\">68<\/a>. We also performed eight recordings in hippocampal CA1 in six mice bred to express GCaMP6f in excitatory neurons: Thy1-GCaMP6f GP5.17 mice (JAX 025393)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 69\" title=\"Dana, H. et al. Thy1-GCaMP6 transgenic mice for neuronal population imaging in vivo. PloS ONE 9, e108697 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR69\" id=\"ref-link-section-d63732419e1263\" rel=\"nofollow noopener\" target=\"_blank\">69<\/a>, as well as in two wild-type C57 mice (JAX 000664) with injections of the same RiboL1-jGCaMP8s virus combination described above. These mice were male and female, and ranged from 2 to 12\u2009months of age. Mice were housed in reverse light cycle, and were pair-housed with their siblings before and after surgery. Holding rooms are set to a temperature of 70\u2009\u00b0F\u2009\u00b1\u20092\u2009\u00b0F, and humidity of 50% relative humidity\u2009\u00b1\u200920%.<\/p>\n<p>Surgical procedures<\/p>\n<p>Surgeries were performed in adult mice (P35\u2013P125) following procedures outlined in refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 70\" title=\"Stringer, C., Michaelos, M., Tsyboulski, D., Lindo, S. E. &amp; Pachitariu, M. High-precision coding in visual cortex. Cell 184, 2767&#x2013;2778 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR70\" id=\"ref-link-section-d63732419e1275\" rel=\"nofollow noopener\" target=\"_blank\">70<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 71\" title=\"Sun, W. et al. Learning produces orthogonalized state machine in the hippocampus. Nature 640, 165&#x2013;175 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR71\" id=\"ref-link-section-d63732419e1278\" rel=\"nofollow noopener\" target=\"_blank\">71<\/a>. In brief, mice were anaesthetized with isoflurane while a craniotomy was performed. Marcaine (no more than 8\u2009mg\u2009kg\u22121) was injected subcutaneously beneath the incision area, and warmed fluids plus 5% dextrose and buprenorphine 0.1\u2009mg\u2009kg\u22121 (systemic analgesic) were administered subcutaneously along with dexamethasone 7\u2009mg\u2009kg\u22121 by the intramuscular route. In the canula implants, the same total dexamethasone dose was administered tapered over 3\u2009days: 4\u2009mg\u2009kg\u22121 on the first day, 2\u2009mg\u2009kg\u22121 on the second day and 1\u2009mg\u2009kg\u22121 on the third day.<\/p>\n<p>For the visual cortical windows (which included the posterior parietal cortex), measurements were taken to determine the bregma\u2013lambda distance and location of a 4-mm circular window over the V1 cortex, as far lateral and caudal as possible without compromising the stability of the implant. For the sensorimotor windows, the craniotomy was centred at \u22120.75\u2009mm anteroposterior (AP) and 2.2\u2009mm mediolateral (ML) from bregma. A 4- and 5-mm double window was placed into the craniotomy so that the 4-mm window replaced the previously removed bone piece and the 5-mm window lay over the edge of the bone. For the hippocampal windows, the craniotomy was centred at 1.8\u2009mm AP and 2.0\u2009mm ML from bregma. Cortex was aspirated and a 3-mm glass coverslip attached to a stainless-steel was implanted over the dorsal CA1 region. CA1 surgeries were similar to those described in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 71\" title=\"Sun, W. et al. Learning produces orthogonalized state machine in the hippocampus. Nature 640, 165&#x2013;175 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR71\" id=\"ref-link-section-d63732419e1298\" rel=\"nofollow noopener\" target=\"_blank\">71<\/a>.<\/p>\n<p>After surgery, ketoprofen (5\u2009mg\u2009kg\u22121) was administered subcutaneously and the animal allowed to recover on heat. The mice were monitored for pain or distress and ketoprofen 5\u2009mg\u2009kg\u22121 was administered for 2\u2009days following surgery.<\/p>\n<p>Imaging acquisition<\/p>\n<p>We used a custom-built 2p mesoscope<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 72\" title=\"Sofroniew, N. J., Flickinger, D., King, J. &amp; Svoboda, K. A large field of view two-photon mesoscope with subcellular resolution for in vivo imaging. eLife 5, e14472 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR72\" id=\"ref-link-section-d63732419e1317\" rel=\"nofollow noopener\" target=\"_blank\">72<\/a> to record neural activity, and ScanImage<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 73\" title=\"Pologruto, T. A., Sabatini, B. L. &amp; Svoboda, K. Scanimage: flexible software for operating laser scanning microscopes. Biomed. Eng. Online 2, 13 (2003).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR73\" id=\"ref-link-section-d63732419e1321\" rel=\"nofollow noopener\" target=\"_blank\">73<\/a> for data acquisition. We used a custom online Z-correction module (now in ScanImage), to correct for Z and XY drift online during the recording. As described in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 70\" title=\"Stringer, C., Michaelos, M., Tsyboulski, D., Lindo, S. E. &amp; Pachitariu, M. High-precision coding in visual cortex. Cell 184, 2767&#x2013;2778 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR70\" id=\"ref-link-section-d63732419e1335\" rel=\"nofollow noopener\" target=\"_blank\">70<\/a>, for the visual area and hippocampal recordings, we used an upgrade of the mesoscope that allowed us to approximately double the number of recorded neurons using temporal multiplexing<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 74\" title=\"Tsyboulski, D. et al. Remote focusing system for simultaneous dual-plane mesoscopic multiphoton imaging. Preprint at bioRxiv &#010;                https:\/\/doi.org\/10.1101\/503052&#010;                &#010;               (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR74\" id=\"ref-link-section-d63732419e1339\" rel=\"nofollow noopener\" target=\"_blank\">74<\/a>.<\/p>\n<p>The mice were free to run on a styrofoam cylinder. Mice were acclimatized to running on the ball for several sessions before imaging, and one mouse was trained on a virtual reality task for 2\u2009weeks before the recording. The field of view was selected such that large numbers of neurons could be observed, with clear calcium transients. Recordings were performed for 100\u2013150\u2009min at a rate of 22\u2009Hz.\u00a0We performed one recording session in each of the 26 mice, and\u00a0did not perform a sample size analysis. Blinding and randomization were not used. Recordings from refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 43\" title=\"Syeda, A. et al. Facemap: a framework for modeling neural activity based on orofacial tracking. Nat. Neurosci. 27, 187&#x2013;195 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR43\" id=\"ref-link-section-d63732419e1346\" rel=\"nofollow noopener\" target=\"_blank\">43<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 75\" title=\"Syeda, A. et al. dataset from Facemap: a framework for modeling neural activity based on orofacial tracking. Figshare &#010;                https:\/\/doi.org\/10.25378\/janelia.23712957&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR75\" id=\"ref-link-section-d63732419e1349\" rel=\"nofollow noopener\" target=\"_blank\">75<\/a> were acquired at a rate of 3\u2009Hz. Recordings from refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Stringer, C. et al. Spontaneous behaviors drive multidimensional, brainwide activity. Science 364, eaav7893 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR2\" id=\"ref-link-section-d63732419e1353\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 76\" title=\"Stringer, C., Pachitariu, M., Reddy, C., Carandini, M. &amp; Harris, K. D. Recordings of ten thousand neurons in visual cortex during spontaneous behaviors. Figshare &#010;                https:\/\/doi.org\/10.25378\/janelia.6163622.v4&#010;                &#010;               (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR76\" id=\"ref-link-section-d63732419e1356\" rel=\"nofollow noopener\" target=\"_blank\">76<\/a> were acquired at a rate of 2.5\u20133\u2009Hz, on a Thorlabs Bergamo microscope.<\/p>\n<p>Processing of calcium imaging data<\/p>\n<p>Calcium imaging data were processed using the Suite2p toolbox (v.0.9.3)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 77\" title=\"Pachitariu, M. et al. Suite2p: beyond 10,000 neurons with standard two-photon microscopy. Preprint at bioRxiv &#010;                https:\/\/doi.org\/10.1101\/061507&#010;                &#010;               (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR77\" id=\"ref-link-section-d63732419e1368\" rel=\"nofollow noopener\" target=\"_blank\">77<\/a>, available at <a href=\"http:\/\/www.github.com\/MouseLand\/suite2p\" rel=\"nofollow noopener\" target=\"_blank\">www.github.com\/MouseLand\/suite2p<\/a>. Suite2p performs motion correction, ROI detection, neuropil correction and spike deconvolution as described elsewhere<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Stringer, C. et al. Spontaneous behaviors drive multidimensional, brainwide activity. Science 364, eaav7893 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR2\" id=\"ref-link-section-d63732419e1379\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>. We used a neuropil subtraction coefficient of 1.0. For the 22-Hz recordings, we used all ROIs output by Suite2p above a signal-to-noise ratio (SNR) threshold of 0.3, which included dendritic processes, to increase the number of units recorded. The SNR for the activity trace x for each ROI was defined as <\/p>\n<p>$$\\,{\\rm{S}}{\\rm{N}}{\\rm{R}}=1-\\frac{{\\rm{V}}{\\rm{a}}{\\rm{r}}[{x}_{t}-{x}_{t-1}]}{2\\,{\\rm{V}}{\\rm{a}}{\\rm{r}}[{x}_{t}]}$$<\/p>\n<p>(similar to ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 78\" title=\"Rupprecht, P. et al. A database and deep learning toolbox for noise-optimized, generalized spike inference from calcium imaging. Nat. Neurosci. 24, 1324&#x2013;1337 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR78\" id=\"ref-link-section-d63732419e1522\" rel=\"nofollow noopener\" target=\"_blank\">78<\/a>). 61\u00a0\u00b1\u00a016% (mean\u00a0\u00b1\u00a0s.d.) ROIs had an SNR greater than 0.3, resulting in a range of 3,981\u201310,595 ROIs across recordings.<\/p>\n<p>We improved the spike deconvolution here by using the latest version of Suite2p, which will be described in an upcoming manuscript. Our approach was similar to that in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 78\" title=\"Rupprecht, P. et al. A database and deep learning toolbox for noise-optimized, generalized spike inference from calcium imaging. Nat. Neurosci. 24, 1324&#x2013;1337 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR78\" id=\"ref-link-section-d63732419e1529\" rel=\"nofollow noopener\" target=\"_blank\">78<\/a>, where a neural network is used to predict the ground-truth spikes from the noisy convolved traces. Unlike ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 78\" title=\"Rupprecht, P. et al. A database and deep learning toolbox for noise-optimized, generalized spike inference from calcium imaging. Nat. Neurosci. 24, 1324&#x2013;1337 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR78\" id=\"ref-link-section-d63732419e1533\" rel=\"nofollow noopener\" target=\"_blank\">78<\/a> we trained the model on a large number of simulations single-neuron spiking activity convolved with GCaMP-like dynamics and we used a Unet predictive model<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 79\" title=\"Ronneberger, O., Fischer, P. &amp; Brox, T. U-Net: convolutional networks for biomedical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention (eds Navab, N. et al.) 234&#x2013;241 (Springer, 2015).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR79\" id=\"ref-link-section-d63732419e1537\" rel=\"nofollow noopener\" target=\"_blank\">79<\/a> with a style-vector to capture temporal context independently for each deconvolved trace<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 80\" title=\"Stringer, C., Wang, T., Michaelos, M. &amp; Pachitariu, M. Cellpose: a generalist algorithm for cellular segmentation. Nat. Methods 18, 100&#x2013;106 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR80\" id=\"ref-link-section-d63732419e1541\" rel=\"nofollow noopener\" target=\"_blank\">80<\/a>. We verified that the deconvolved traces better capture neural activity on real data with less noise by evaluating the responses to visual stimuli presented at known times. To estimate the effect of binning in the GCaMP8s recordings (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig11\" rel=\"nofollow noopener\" target=\"_blank\">6e<\/a>), we binned the fluorescence traces by a factor of 7 and then performed deconvolution.<\/p>\n<p>Neuropixel recordings and processing<\/p>\n<p>As described in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Stringer, C. et al. Spontaneous behaviors drive multidimensional, brainwide activity. Science 364, eaav7893 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR2\" id=\"ref-link-section-d63732419e1557\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>, eight-neuropixel electrode arrays were used to record simultaneously from up to 3,000 neurons across the brain in three mice<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 60\" title=\"Jun, J. J. et al. Fully integrated silicon probes for high-density recording of neural activity. Nature 551, 232 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR60\" id=\"ref-link-section-d63732419e1561\" rel=\"nofollow noopener\" target=\"_blank\">60<\/a>. On the day of recording, mice were anesthetized briefly with isoflurane while eight small craniotomies were made with a dental drill. After several hours of recovery, mice were head-fixed in the International Brain Laboratory (IBL) task setup: seated in a plastic tube with their forepaws on a wheel, surrounded by three computer screens in a light-isolated enclosure<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 55\" title=\"Steinmetz, N. A., Zatka-Haas, P., Carandini, M. &amp; Harris, K. D. Distributed coding of choice, action and engagement across the mouse brain. Nature 576, 266&#x2013;273 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR55\" id=\"ref-link-section-d63732419e1565\" rel=\"nofollow noopener\" target=\"_blank\">55<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 81\" title=\"The International Brain Laboratory. Standardized and reproducible measurement of decision-making in mice. eLife 10, e63711 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR81\" id=\"ref-link-section-d63732419e1568\" rel=\"nofollow noopener\" target=\"_blank\">81<\/a>. The electrodes were advanced slowly (approximately 10\u2009\u03bcm\u2009s\u22121) to their final depth (4\u2009mm or 5\u2009mm deep), and allowed to settle for around 15\u2009min before recording. During the spontaneous part of the recording, the computer screens were black. Data were pre-processed by re-referencing to the common median across all channels<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 82\" title=\"Ludwig, K. A. et al. Using a common average reference to improve cortical neuron recordings from microelectrode arrays. J. Neurophysiol. 101, 1679&#x2013;1689 (2009).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR82\" id=\"ref-link-section-d63732419e1574\" rel=\"nofollow noopener\" target=\"_blank\">82<\/a>. The probe locations were determined using <a href=\"https:\/\/github.com\/cortex-lab\/allenCCF\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/cortex-lab\/allenCCF<\/a>, and the brain mesh in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2c<\/a> was plotted using this tool, based on Allen Common Coordinate Framework data<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 83\" title=\"Shamash, P., Carandini, M., Harris, K. &amp; Steinmetz, N. A tool for analyzing electrode tracks from slice histology. Preprint at bioRxiv &#010;                https:\/\/doi.org\/10.1101\/447995&#010;                &#010;               (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR83\" id=\"ref-link-section-d63732419e1589\" rel=\"nofollow noopener\" target=\"_blank\">83<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 84\" title=\"Wang, Q. et al. The Allen mouse brain common coordinate framework: a 3D reference atlas. Cell 181, 936&#x2013;953 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR84\" id=\"ref-link-section-d63732419e1592\" rel=\"nofollow noopener\" target=\"_blank\">84<\/a>.<\/p>\n<p>These recordings were re-processed with Kilosort4 (v.4.0.14), with default settings<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 85\" title=\"Pachitariu, M., Sridhar, S., Pennington, J. &amp; Stringer, C. Spike sorting with kilosort4. Nat. Methods 21, 914&#x2013;921 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR85\" id=\"ref-link-section-d63732419e1599\" rel=\"nofollow noopener\" target=\"_blank\">85<\/a>. The Kilosort4 spike sorter found 1,756, 2,837 and 2,962 neurons defined as \u2018good\u2019, with a refractory violation rate of less than 0.2 (default), from the three recordings. We excluded neurons with a firing rate of less than 0.01\u2009Hz during the spontaneous recording period, resulting in 1,716, 2,787 and 2,914 neurons in total in each recording. The detected neurons were located across cortex, the hippocampal formation, the striatum and other subcortical areas. For the grouping in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5b,c<\/a>, the \u2018visual cortex\u2019 group consisted of primary and higher-order visual cortices; the \u2018sensorimotor cortex\u2019 group consisted of motor cortex and somatosensory cortex; the \u2018striatum\u2019 group consisted of the caudate putamen and lateral septal cortex and the \u2018subcortical areas\u2019 consisted of superior colliculus, thalamus and midbrain. Mice 1 and 2 had detected neurons in all five groups; mouse 3 had detected neurons in all groups except visual cortex. The spikes were binned at a rate of 22\u2009Hz\u2014the same acquisition rate as the calcium imaging. We also analysed bin sizes from 5\u2009ms to 100\u2009ms in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5d,e<\/a>. The period of spontaneous activity in each recording was 22\u201342\u2009min long (only this period was used for analyses).<\/p>\n<p>Data analysis<\/p>\n<p>We normalized the neural activity to avoid fitting single-neuron statistics. We z-scored the activity of each neuron so that the mean activity of each neuron is 0 and its s.d. is 1. We ran Rastermap on the recordings with 100 clusters and 128 PCs, and visualized the sorted activity using 20 neurons per bin<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 38\" title=\"Stringer, C. et al. Rastermap: a discovery method for neural population recordings. Nat. Neurosci. 28, 201&#x2013;212 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR38\" id=\"ref-link-section-d63732419e1621\" rel=\"nofollow noopener\" target=\"_blank\">38<\/a>. The behavioural running state was estimated by interpolating the running trace to the recording frames, smoothing with a 25 frame Gaussian kernel, and setting a threshold of running\/not running at 1\/100 of the maximum smoothed running speed. We included sessions for analysis in which the mouse was running at least 10% of the time, and for the DMD analysis in which the mouse was running for at least 30\u2009min (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig12\" rel=\"nofollow noopener\" target=\"_blank\">7<\/a>).<\/p>\n<p>Eigenspectrum estimation<\/p>\n<p>We estimated the eigenvalues using the covariance between two halves of neurons from the recording. This is to avoid contaminating the eigenspectrum with single-neuron noise produced from the recording methods and from Poisson variability. We divided the recordings in half spatially, using a checkerboard of size 50\u2009\u03bcm for the calcium imaging recordings, and using sections of 40\u2009\u03bcm (eight contacts) on each Neuropixels probe in the electrophysiological recordings. We did not split the data into training and testing timepoints, as we found this inflated the power-law exponent estimates<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Stringer, C. et al. Spontaneous behaviors drive multidimensional, brainwide activity. Science 364, eaav7893 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR2\" id=\"ref-link-section-d63732419e1635\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a> (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>).<\/p>\n<p>We estimated the power-law exponent of the eigenspectrum decay using a weighted linear regression in log space from rank 10 to 500, with weights as the inverse of the log of the rank<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 86\" title=\"Stringer, C., Pachitariu, M., Steinmetz, N., Carandini, M. &amp; Harris, K. D. High-dimensional geometry of population responses in visual cortex. Nature 571, 361&#x2013;365 (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR86\" id=\"ref-link-section-d63732419e1645\" rel=\"nofollow noopener\" target=\"_blank\">86<\/a>. The eigenvalue spectra are normalized by the value of the linear regression fit at rank 1. If the length of the spectrum was less than 500 due to limited numbers of neurons, then we estimated the spectrum using 10 to half the length of the spectrum.<\/p>\n<p>We subsampled the number of neurons randomly in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig11\" rel=\"nofollow noopener\" target=\"_blank\">6f\u2013h<\/a>, and subsampled by brain region in the ephys data in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5b,c<\/a>. We subsampled timepoints in the recordings using chunks of length 50 to 4,000, spaced in time by 4,000 time points.<\/p>\n<p>Estimating PC timescales from data<\/p>\n<p>To estimate the timescales of the PCs, we must take into account the noise. A naive estimation of the ACGs would find that later PCs have smaller time-lagged correlations, but that could be due simply to these PCs having lower SNR overall, and thus all their time-lagged correlations would be lower. Instead we take a similar approach to that from SVCA: we split the data into two random subsets of neurons using a checkerboard grid with size 50\u2009\u03bcm, and we calculate the components with a singular value decomposition (SVD) on the covariance between the two subsets of neurons. The resulting left and right singular vectors were used to project test data, and the correlograms were computed between the projections of one set of neurons and the other. The resulting estimates of the PC ACGs were then normalized to 1 at a time lag 0.<\/p>\n<p>Estimating rotational components from data<\/p>\n<p>When the dynamics matrix A is not symmetric, its eigenvalues are complex and the covariance of the multi-dimensional data is no longer related directly to these eigenvalues. Thus, to evaluate the complexity or rotational aspect of the dynamics directly, we cannot rely on the PCs alone. Instead, we fit linear predictive models that predict the neural population vector at time t\u00a0+\u00a0dt from the population vector at time t. Such models are referred to typically as DMD, with the small modification that we use a time lag dt\u00a0=\u00a00.23\u2009s instead of the more common dt\u00a0=\u00a01 time sample. The reason to use a time lag is to make estimation of the rotational modes more robust and, in particular, to avoid the potential influence of short timescale artefacts arising from the deconvolution of the calcium imaging data.<\/p>\n<p>To estimate DMD, we first reduced each dataset to 1,000 dimensions using PC analysis (PCA). We then used ridge regression with a penalty of 0.1 for the ephys and 0.01 for the 2p calcium imaging to predict Xt+dt from Xt in the reduced PCA space. Thus Xt+dt\u00a0\u2248\u00a0BXt, with B a square matrix mapping PCs to PCs. As usual, the neural activity was z-scored on a per neuron basis before applying PCA, but it was not re-normalized afterwards. Since PCA is an orthonormal projection, the eigenvalues of B are the same as would be expected in the full neuronal space, other than estimation errors. In the model, the matrix exponential describes the relation between Xt+dt and Xt, regardless of whether A is symmetric or not: <\/p>\n<p>$${X}_{t+{dt}}={\\exp }^{(A-I){dt}\/\\tau }{X}_{t}.$$<\/p>\n<p>Thus, the DMD matrix B we obtained from data is an estimate of \\({\\exp }^{(A-I)dt\/\\tau }\\), at least in the simulations. Looking at the complexity of the eigenvalues of B can thus indicate whether the dynamics are rotational or not. Note that the eigenvalues \\({\\lambda }^{{\\prime} }\\) of \\({\\exp }^{(A-I)dt\/\\tau }\\) are related to the eigenvalues \u03bb of A by \\({\\lambda }^{{\\prime} }={\\exp }^{(\\lambda -1)dt\/\\tau }\\). Thus the higher the complex part of \u03bb, the higher the complex part of \\({\\lambda }^{{\\prime} }\\). We can also now see why taking a larger dt is beneficial: when dt is very small relative to the timescale of the dynamics, the eigenvalues \\({\\lambda }^{{\\prime} }\\) approach 1, making it difficult to estimate their rotational component. The relation \\({\\lambda }^{{\\prime} }={\\exp }^{(\\lambda -1)dt\/\\tau }\\) could be inverted to obtain estimates of \u03bb. However, this multi-step process is likely to contain a lot of estimation error, and we preferred instead to directly compare the estimated distributions of \\({\\lambda }^{{\\prime} }\\) from data with those from appropriately matched simulations. In particular, we compute the number nrot10 of rotations per tenfold attenuation of the complex eigenvector \\({\\lambda }^{{\\prime} }\\): <\/p>\n<p>$$\\begin{array}{c}\\begin{array}{c}{n}_{\\mathrm{rot}10}=k\\cdot \\mathrm{angle}\\,({\\lambda }^{{\\prime} })\\\\ \\,|{\\lambda }^{{\\prime} }{|}^{k}=0.1\\end{array}\\end{array}.$$<\/p>\n<p>Thus: <\/p>\n<p>$${n}_{\\mathrm{rot}10}=\\frac{\\log 0.1}{\\log |{\\lambda }^{{\\prime} }|}\\cdot \\mathrm{angle}\\,({\\lambda }^{{\\prime} }).$$<\/p>\n<p>We used \u03c4\u00a0=\u00a020\u2009ms in the simulations with symmetric matrices to match approximately the timescales of the data. Longer or shorter \u03c4 in the simulations would simply contract all estimated eigenvalues towards 0, but otherwise leave the number of rotations per tenfold attenuation unchanged.<\/p>\n<p>We also estimated eigenvalues of dynamics using DMD on various recordings in which rodents and monkeys were performing tasks (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8<\/a>). In terms of rodent experiments, we analysed one session from refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 87\" title=\"Grosmark, A. D. &amp; Buzs&#xE1;ki, G. Diversity in neural firing dynamics supports both rigid and learned hippocampal sequences. Science 351, 1440&#x2013;1443 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR87\" id=\"ref-link-section-d63732419e2356\" rel=\"nofollow noopener\" target=\"_blank\">87<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 88\" title=\"Grosmark, A. D., Long, J. &amp; Buzs&#xE1;ki, G. Recordings from hippocampal area CA1, PRE, during and POST novel spatial learning. CRCNS &#010;                https:\/\/crcns.org\/data-sets\/hc\/hc-11&#010;                &#010;               (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR88\" id=\"ref-link-section-d63732419e2359\" rel=\"nofollow noopener\" target=\"_blank\">88<\/a>, in which rats ran down a linear track, and 137 neurons from CA1 were recorded using silicon probes. We analysed one session from refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 89\" title=\"Plitt, M. H. &amp; Giocomo, L. M. Experience-dependent contextual codes in the hippocampus. Nat. Neurosci. 24, 705&#x2013;714 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR89\" id=\"ref-link-section-d63732419e2363\" rel=\"nofollow noopener\" target=\"_blank\">89<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 90\" title=\"Plitt, L. M. &amp; Giocomo, L. M. Dataset from experience dependent contextual codes in the hippocampus. Dandi &#010;                https:\/\/dandiarchive.org\/dandiset\/000054&#010;                &#010;               (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR90\" id=\"ref-link-section-d63732419e2366\" rel=\"nofollow noopener\" target=\"_blank\">90<\/a> in which mice were detecting a reward location in two different virtual reality corridors, and neural activity was recorded from CA1 using 2p calcium imaging at a rate of 15\u2009Hz. We analysed one session from refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 91\" title=\"Zhong, L. et al. Unsupervised pretraining in biological neural networks. Nature 644, 741&#x2013;748 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR91\" id=\"ref-link-section-d63732419e2370\" rel=\"nofollow noopener\" target=\"_blank\">91<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 92\" title=\"Zhong, L. et al. Unsupervised pretraining in biological neural network. Figshare &#010;                https:\/\/doi.org\/10.25378\/janelia.28811129&#010;                &#010;               (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR92\" id=\"ref-link-section-d63732419e2373\" rel=\"nofollow noopener\" target=\"_blank\">92<\/a> in which mice were performing a visual discrimination task in virtual reality, and neural activity was recorded from visual cortex using 2p calcium imaging at a rate of 3\u2009Hz. For DMD analysis in each of these recordings, we used a ridge penalty of 0.1, and a time delay of 2\u2009s. We also analysed ephys data collected from monkeys, compiled by the Neural Latents Benchmark challenge<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 93\" title=\"Pei, F. et al. Neural Latents Benchmark&#x2019;21: Evaluating latent variable models of neural population activity. In Advances in Neural Information Processing Systems (NeurIPS), Track on Datasets and Benchmarks (eds Vanschoren, J. et al.) 34 (NeurIPS, 2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR93\" id=\"ref-link-section-d63732419e2377\" rel=\"nofollow noopener\" target=\"_blank\">93<\/a>. We binned the spikes in each of these recordings at a rate of 50\u2009Hz, and ran DMD on the peri-stimulus time histograms (PSTHs) computed from each of the recordings, aligned to movement onset. In refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 94\" title=\"Churchland, M. M., Cunningham, J. P., Kaufman, M. T., Ryu, S. I. &amp; Shenoy, K. V. Cortical preparatory activity: representation of movement or first cog in a dynamical machine? Neuron 68, 387&#x2013;400 (2010).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR94\" id=\"ref-link-section-d63732419e2382\" rel=\"nofollow noopener\" target=\"_blank\">94<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 95\" title=\"Churchland, M. &amp; Kaufman, M. MC_Maze: macaque primary motor and dorsal premotor cortex spiking activity during delayed reaching dataset. Dandi &#010;                https:\/\/dandiarchive.org\/dandiset\/000128&#010;                &#010;               (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR95\" id=\"ref-link-section-d63732419e2385\" rel=\"nofollow noopener\" target=\"_blank\">95<\/a>, the monkey completed a maze task with one to many targets, with 108 different configurations\u2014in the figure we plotted example PSTHs from single target trials. In refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 96\" title=\"Makin, J. G., O&#x2019;Doherty, J. E., Cardoso, M. M. B. &amp; Sabes, P. N. Superior arm-movement decoding from cortex with a new, unsupervised-learning algorithm. J. Neural Eng. 15, 026010 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR96\" id=\"ref-link-section-d63732419e2389\" rel=\"nofollow noopener\" target=\"_blank\">96<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 97\" title=\"Makin, J. G., O&#x2019;Doherty, J. E., Cardoso, M. M. B. &amp; Sabes, P. N. MC_RTT: macaque motor cortex spiking activity during self-paced reaching dataset. Dandi &#010;                https:\/\/dandiarchive.org\/dandiset\/000129&#010;                &#010;               (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR97\" id=\"ref-link-section-d63732419e2392\" rel=\"nofollow noopener\" target=\"_blank\">97<\/a>, the monkey performed reaches between random elements of a grid\u2014we binned the reaches based on movement direction angle into 15 bins. In refs. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 98\" title=\"Chowdhury, R. H., Glaser, J. I. &amp; Miller, L. E. Area 2 of primary somatosensory cortex encodes kinematics of the whole arm. eLife 9, e48198 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR98\" id=\"ref-link-section-d63732419e2396\" rel=\"nofollow noopener\" target=\"_blank\">98<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 99\" title=\"Chowdhury, R. H. &amp; Miller, L. E. Area2_Bump: macaque somatosensory area 2 spiking activity during reaching with perturbations dataset. Dandi &#010;                https:\/\/dandiarchive.org\/dandiset\/000127&#010;                &#010;               (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR99\" id=\"ref-link-section-d63732419e2399\" rel=\"nofollow noopener\" target=\"_blank\">99<\/a>, the monkey performed a centre-out reaching task in eight different directions (active trials), and on a subset of trials the joystick was moved (passive trials); recordings were performed in somatosensory Area 2. In each of these recordings, we performed DMD with a ridge penalty of 0.1 and a time delay of 200\u2009ms.<\/p>\n<p>Local correlation structure<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>, we computed the correlations using the recording sampling rate (3\u2009Hz). For the simulations, we used the correlation matrix derived from the eigenvectors. For all the analyses we excluded neuron pairs within 20\u2009\u03bcm of each other. The pairwise correlations were binned in 200-\u03bcm bins (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4d<\/a>).<\/p>\n<p>We defined the top 1% of correlations per neuron as the \u2018strong pairs\u2019 for each neuron. We then computed the probability distribution of the strong pairs across spatial bins of 200\u2009\u03bcm. This distribution was normalized by the distribution of all other correlations across bins, producing the strong pair odds versus chance shown in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4f<\/a>. The strong pair odds, near versus far, was the ratio of the first bin of this curve (within 200\u2009\u03bcm) to the average of the last four bins of this curve (2,200\u20133,000\u2009\u03bcm).<\/p>\n<p>Dynamical systems analysis<\/p>\n<p>We assume that neural activity is governed by linear dynamics with independent stochastic inputs. In the case of normally distributed inputs, this model becomes the familiar Ornstein\u2013Uhlenbeck process, with connectivity A<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 33\" title=\"Uhlenbeck, G. E. &amp; Ornstein, L. S. On the theory of the Brownian motion. Phys. Rev. 36, 823 (1930).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR33\" id=\"ref-link-section-d63732419e2435\" rel=\"nofollow noopener\" target=\"_blank\">33<\/a>: <\/p>\n<p>$$\\tau \\frac{d{\\bf{x}}}{{dt}}=-{\\bf{x}}+A{\\bf{x}}+{{\\epsilon }}_{{\\bf{t}}},$$<\/p>\n<p>\n                    (1)\n                <\/p>\n<p>where the noise is a Wiener process.<\/p>\n<p>The stationary distribution of the neural covariance matrix \u03a3 is defined by the Lyapunov equation<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 37\" title=\"Gardiner, C. W. Handbook of Stochastic Methods: For Physics, Chemistry and the Natural Sciences (Springer, 1985).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR37\" id=\"ref-link-section-d63732419e2536\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a>: <\/p>\n<p>$$(A-I)\\Sigma +\\Sigma {(A-I)}^{{\\rm{\\top }}}=-I.$$<\/p>\n<p>When A is symmetric, the solution is given by <\/p>\n<p>$$\\Sigma =\\frac{1}{2}{(I-A)}^{-1}.$$<\/p>\n<p>\n                    (2)\n                <\/p>\n<p>For the non-symmetric case, the solution must be calculated numerically<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 100\" title=\"Hammarling, S. J. Numerical solution of the stable, non-negative definite Lyapunov equation Lyapunov equation. IMA J. Numer. Anal. 2, 303&#x2013;323 (1982).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR100\" id=\"ref-link-section-d63732419e2683\" rel=\"nofollow noopener\" target=\"_blank\">100<\/a> (see also ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 101\" title=\"Gilson, M., Moreno-Bote, R., Ponce-Alvarez, A., Ritter, P. &amp; Deco, G. Estimation of directed effective connectivity from fMRI functional connectivity hints at asymmetries of cortical connectome. PLoS Comput. Biol. 12, e1004762 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR101\" id=\"ref-link-section-d63732419e2687\" rel=\"nofollow noopener\" target=\"_blank\">101<\/a> for an example of solving for A).<\/p>\n<p>For the symmetric case, we can derive the decay of the eigenvalue spectrum directly, under the assumption that A is a random symmetric matrix with an eigenspectrum distribution of a semicircle from \u22121 to 1. We assume here that the number of units is large enough to treat the eigenvalue distribution as an exact semicircle distribution and ignore finite size effects. The rank n of eigenvalue \\({\\lambda }_{A}^{n}\\) of A is defined by the integral of the semicircle distribution density p(\u03bbA) from \\({\\lambda }_{A}^{n}\\) to 1. We scale p(\u03bbA) to a maximum of 1 for convenience of the calculations. If we define \u03b8 as the angle subtended by \\(p({\\lambda }_{A}^{n})\\) on the semicircle, we can use geometric arguments to show that: <\/p>\n<p>$$\\begin{array}{c}\\begin{array}{c}n=\\pi \\left(\\frac{\\theta }{2\\pi }\\right)-\\frac{1}{2}\\cos \\theta \\sin \\theta \\\\ =\\frac{1}{2}(\\theta -\\cos \\theta \\sin \\theta )\\end{array}\\end{array}.$$<\/p>\n<p>The eigenvalues of the covariance \u03a3, denoted by \u03bb, are related to the eigenvalues \u03bbA of the connectivity matrix A: <\/p>\n<p>$$\\lambda =\\frac{1}{2(1-{\\lambda }_{A})}\\Rightarrow \\,{\\lambda }_{A}=1-\\frac{1}{2\\lambda }.$$<\/p>\n<p>Thus, we have <\/p>\n<p>$$\\theta ={\\cos }^{-1}({\\lambda }_{A})={\\cos }^{-1}\\left(1-\\frac{1}{2\\lambda }\\right).$$<\/p>\n<p>Plugging this into the equation for rank n and using \\(\\sin (\\theta )=\\sqrt{1-{\\cos }^{2}(\\theta )}\\) we have: <\/p>\n<p>$$\\begin{array}{l}2n={\\cos }^{-1}\\left(1-\\frac{1}{2\\lambda }\\right)-\\left(1-\\frac{1}{2\\lambda }\\right)\\sqrt{1-{\\left(1-\\frac{1}{2\\lambda }\\right)}^{2}}\\\\ \\,=\\,{\\cos }^{-1}\\left(1-\\frac{1}{2\\lambda }\\right)-\\left(1-\\frac{1}{2\\lambda }\\right)\\sqrt{\\frac{1}{2\\lambda }}\\sqrt{2-\\frac{1}{2\\lambda }}.\\end{array}$$<\/p>\n<p>We next used Wolfram Alpha<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 102\" title=\"Mathematica, v.14.1 (Wolfram Research, Inc., 2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR102\" id=\"ref-link-section-d63732419e3508\" rel=\"nofollow noopener\" target=\"_blank\">102<\/a> to obtain the Taylor expansion for \\(\\sqrt{2-x}\\) and Puiseux expansion for \\({\\cos }^{-1}(1-x)\\) where x is small. Keeping only terms in which x is raised to a power less than 2, gives <\/p>\n<p>$$\\begin{array}{l}2n\\approx \\sqrt{\\frac{1}{\\lambda }}+\\frac{1}{24{\\lambda }^{3\/2}}-\\sqrt{\\frac{1}{\\lambda }}+\\frac{5}{8{\\lambda }^{3\/2}}+{\\mathcal{O}}\\left(\\frac{1}{{\\lambda }^{5\/2}}\\right)\\\\ \\,\\approx \\frac{2}{3{\\lambda }^{3\/2}}\\,\\Rightarrow \\lambda \\propto \\frac{1}{{n}^{2\/3}}.\\end{array}$$<\/p>\n<p>Thus, the eigenvalues decay approximately as a power-law with exponent 2\/3, which is very close to the value we found in simulations.<\/p>\n<p>As mentioned in the text, this is different from the value of 4\/3 found in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Hu, Y. &amp; Sompolinsky, H. The spectrum of covariance matrices of randomly connected recurrent neuronal networks with linear dynamics. PLoS Comput. Biol. 18, e1010327 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR10\" id=\"ref-link-section-d63732419e3786\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a>; the discrepancy is due to estimating the \u2018long time window covariance\u2019, which assumes that the data are binned in infinitely long windows. The authors of ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Hu, Y. &amp; Sompolinsky, H. The spectrum of covariance matrices of randomly connected recurrent neuronal networks with linear dynamics. PLoS Comput. Biol. 18, e1010327 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR10\" id=\"ref-link-section-d63732419e3790\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a> argue that the formula converges for short windows (greater than\u00a050\u2009ms), which seems to use the single-neuron timescales as a reference. However, when the dynamical systems are close to critical, the emergent timescales are much longer, and thus a much longer window is needed to reach the stable state. Thus, the derivation in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Hu, Y. &amp; Sompolinsky, H. The spectrum of covariance matrices of randomly connected recurrent neuronal networks with linear dynamics. PLoS Comput. Biol. 18, e1010327 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR10\" id=\"ref-link-section-d63732419e3794\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a>, although interesting, can capture only the infraslow timescales of neural activity and predicts a 4\/3 power-law on a rank plot in this case.<\/p>\n<p>We note that the 4\/3 exponent, while not explicitly calculated there, can be derived easily from Eq.\u2009(16) in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Hu, Y. &amp; Sompolinsky, H. The spectrum of covariance matrices of randomly connected recurrent neuronal networks with linear dynamics. PLoS Comput. Biol. 18, e1010327 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR10\" id=\"ref-link-section-d63732419e3801\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a>: <\/p>\n<p>$$p(x)=\\frac{\\sqrt{2}}{\\pi }{x}^{-\\frac{7}{4}},$$<\/p>\n<p>which integrated gives: <\/p>\n<p>$${\\int }_{0}^{X}p(x)dx\\propto {x}^{-\\frac{3}{4}},$$<\/p>\n<p>which results in a power-law exponent of approximately 4\/3 in a rank plot<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Hu, Y. &amp; Sompolinsky, H. The spectrum of covariance matrices of randomly connected recurrent neuronal networks with linear dynamics. PLoS Comput. Biol. 18, e1010327 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR10\" id=\"ref-link-section-d63732419e3931\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a>.<\/p>\n<p>Relating timescales to eigenvalues<\/p>\n<p>In addition to estimating the decay of variances of the PCs, we also want to evaluate dynamical, temporal properties of the data and relate them to the model. In the model, the timescales of the system are related to the eigenvalues of A and therefore to the eigenvalues of \u03a3, following from the matrix exponential solution to the Lyapunov equation: <\/p>\n<p>$$X(t)={e}^{(A-I)t\/\\tau }X(0)+{\\int }_{0}^{t}{e}^{(I-A)(t-{t}^{{\\prime} })\/\\tau }\\sigma d{W}_{{t}^{{\\prime} }}.$$<\/p>\n<p>The second term on the right is a noise term that is independent of X(0). Using the SVD decomposition of A\u00a0=\u00a0U\u039bUT, with \u039b having the eigenvalues \\({\\lambda }_{A}^{i}=1-1\/(2{\\lambda }_{i})\\) on the diagonal, the multi-dimensional system can be divided into independent scalar equations: <\/p>\n<p>$${U}_{i}^{T}X(t)={e}^{({\\lambda }_{{A}^{i}}-1)t\/\\tau }{U}_{i}^{T}X(0)+{\\rm{noise}}.$$<\/p>\n<p>Thus, the PC component projections \\({U}_{i}^{T}X\\) have an auto-correlation that decays as<\/p>\n<p>$${e}^{({\\lambda }_{{A}^{i}}-1)t\/\\tau }={e}^{-\\frac{t}{2{\\lambda }_{i}\\tau }},$$<\/p>\n<p>and, thus, the timescales of the PCs are monotonic with the amplitude of the eigenvalue \u03bbi. For the purposes of the analysis in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>, we need only observe the cross-correlation at time lag t, although its exact decay with \u03bbi cannot be predicted owing to the unknown single-unit timescale \u03c4.<\/p>\n<p>Simulations of dynamical systems<\/p>\n<p>We simulated 10,000 neurons governed by the dynamics in Eq.\u2009(<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Equ5\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>). For the dynamics simulations, we performed integration using the Euler\u2013Maruyama method and used a step size of 2\u2009ms and a timescale \u03c4 for each neuron of 20\u2009ms using pytorch<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 62\" title=\"Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. In Proc. 33rd Annual Conference on Neural Information Processing Systems (eds Wallach, H. et al.) 8024&#x2013;8035 (Curran Associates, 2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR62\" id=\"ref-link-section-d63732419e4525\" rel=\"nofollow noopener\" target=\"_blank\">62<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 103\" title=\"Blundell, I. et al. Code generation in computational neuroscience: a review of tools and techniques. Front. Neuroinform. 12, 68 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR103\" id=\"ref-link-section-d63732419e4528\" rel=\"nofollow noopener\" target=\"_blank\">103<\/a>. The random noise was drawn from a Gaussian with a mean of zero and s.d. of one for each neuron at each time step. We ran 80 simulations on a graphics processing unit in parallel, with random initial conditions drawn from a Gaussian with mean 0 and s.d.\u2009=\u20091, each consisting of 60,000 time steps, and discarded the first 4,000 time steps. To replicate the sampling rate in the data, we binned every 23 timepoints (approximately 22\u2009Hz). We also z-scored the unit activities, as in the data. When we visualized the rastermaps of simulations, we ran 40 simulations each consisting of 100,000 time steps, to obtain longer continuous segments of dynamics.<\/p>\n<p>For testing the eigenspectrum estimation methods (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>), we normalized the activity of each neuron by its s.d., applied a relu and then used the activity of the neuron as the mean of a Poisson process, scaled by different values to represent different levels of noise. We multiplied the activity by 0.7, 0.5 and 0.3, representing \u2018low\u2019, \u2018medium\u2019 and \u2018high\u2019 noise levels respectively. To simulate 2p recordings, we used the \u2018medium\u2019 noise Poisson activity traces and convolved each trace with an exponential filter with a decay time constant of 0.25\u2009s. All the activity traces were then scaled by a factor of eight and 400 was added to each trace, and then each trace was scaled individually by a random number drawn from an exponential distribution with 0.001 added to it, to approximate a distribution of SNR values across neurons, with a minimum SNR close to 0.3. We applied shot noise to each trace, by using the trace as the mean of a Poisson process, and then applied deconvolution as in the real neural data. The exponential distribution had mean values of 0.5, 0.2 and 0.08, representing \u2018low\u2019, \u2018medium\u2019 and \u2018high\u2019 shot-noise levels, respectively. The \u2018medium\u2019 shot-noise level had a mean SNR across recordings of approximately 0.56, similar to our neural recordings.<\/p>\n<p>Dense connectivity<\/p>\n<p>We drew the excitatory connections between neurons from a uniform random distribution from zero to two. We subtracted off the mean connectivity (one). We set the diagonal values of the matrix to zero. When this matrix is symmetric, its eigenspectrum distribution follows the semicircle law; for the non-symmetric case, it follows the circular law<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 104\" title=\"Tao, T. Topics in Random Matrix Theory Vol. 132 (American Mathematical Soc., 2012).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR104\" id=\"ref-link-section-d63732419e4548\" rel=\"nofollow noopener\" target=\"_blank\">104<\/a>. We divided the matrix by a scalar so that the largest real value of the eigenvalues of the matrix was 0.998, setting A so that it is critically normalized.<\/p>\n<p>Sparse\/varied connectivity<\/p>\n<p>We created the sparse symmetric random matrices with random zero or one connections drawn from a Bernoulli with a mean varying from 2.4\u2009\u00d7\u200910\u22124 to 0.25 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4a<\/a>). The mean of the Bernoulli was subtracted globally from the entire matrix, resulting in a matrix with zero mean connectivity. The diagonal of the matrix was set to zero. Random sparse symmetric matrices and graphs also follow the semicircle law, when the sparsity is not too high<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 42\" title=\"Rodgers, G. J. &amp; Bray, A. J. Density of states of a sparse random matrix. Phys. Rev. B 37, 3557 (1988).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR42\" id=\"ref-link-section-d63732419e4568\" rel=\"nofollow noopener\" target=\"_blank\">42<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Dumitriu, I. &amp; Pal, S. Sparse regular random graphs: spectral density and eigenvectors. Ann. Probab. 40, 2197&#x2013;2235 (2012).\" href=\"#ref-CR105\" id=\"ref-link-section-d63732419e4571\">105<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Tran, L. V., Vu, V. H. &amp; Wang, K. Sparse random graphs: eigenvalues and eigenvectors. Random Struct. Algorithms 42, 110&#x2013;134 (2013).\" href=\"#ref-CR106\" id=\"ref-link-section-d63732419e4571_1\">106<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 107\" title=\"Erd&#x151;s, L., Knowles, A., Yau, H.-T. &amp; Yin, J. Spectral statistics of Erd&#x151;s&#x2013;R&#xE9;nyi graphs I: local semicircle law. Ann. Probab. 41, 2279&#x2013;2375 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR107\" id=\"ref-link-section-d63732419e4574\" rel=\"nofollow noopener\" target=\"_blank\">107<\/a>.<\/p>\n<p>We created the clustered symmetric random matrices by setting the Bernoulli mean to 0.5 for within-cluster (local) connectivity, and the mean out-of-cluster (global) connectivity in a range from 2.4\u2009\u00d7\u200910\u22124 to 0.5 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4b<\/a>). This results in a ratio of the probability of local connection to the probability of global connection (P(local)\/P(global)) ranging from 1 to 2,048. Each cluster consisted of 500 neurons. The mean of the Bernoulli distribution for each entry was subtracted (0.5 within-cluster, smaller outside), resulting in mean zero connectivity across the matrix. The diagonal of the matrix was set to zero.<\/p>\n<p>We created the locally connected symmetric random matrices using as the Bernoulli mean an exponential decay function of Euclidean distances dij in micrometres between neurons in the simulation (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>). The exponential function was defined as \\(0.5{e}^{-{d}_{ij}\/250}\\). The neurons were placed randomly on a torus of size 8,000\u2009\u00d7\u20098,000\u2009\u03bcm. The minimum value of the mean of the Bernoulli was set to a value from 2.4\u2009\u00d7\u200910\u22124 to 0.5, resulting in a range of P(local)\/P(global) from 1 to 2,048. Again, the mean of the Bernoulli was subtracted from each entry of the matrix, and the diagonal of the matrix was set to zero. To quantify the recovery of true connectivity (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4e<\/a>), we compute the fraction of true positive connections with P% of top pairwise correlations per neuron, and then normalize by the average probability of positive connection in the simulation (chance).<\/p>\n<p>As in the dense case, we divided each matrix by a scalar so that the largest eigenvalue of the matrix was 0.998. Because these connectivity matrices were symmetric, we computed the covariance matrix and the eigenspectrum directly from A using Eq.\u2009(<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Equ7\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>).<\/p>\n<p>Simulations with inputs<\/p>\n<p>For Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a> we added external inputs to the simulations described above. All simulation parameters were kept the same, and the input magnitude of m\u2009=\u20092.5 was chosen to be comparable with the amplitude of the ongoing, internally generated activity. Inputs were kept on for 50\u2009ms ending at simulation time 0\u2009s and the readout was averaged over 100\u2009ms of neural activity ending at the delay time on the x\u2009axis of Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5d\u2013f<\/a>. For time-independent decoding, the 100-ms readout ended at a randomized time in the range between 120\u2009ms at a minimum and the time on the x\u2009axis of Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5d\u2013f<\/a> at a maximum. Inputs were assumed to have 100 features, which were projected to the 10,000 neurons in the simulations either with completely random weights (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5d,e<\/a>), or with weights corresponding to the top 100 eigenvectors of spontaneous activity (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5f<\/a>). Inputs were presented in pseudo-random order at fixed intervals of 3\u2009s, except for the analyses in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5f<\/a> where the intervals were 9\u2009s. Mathematically: <\/p>\n<p>$$\\begin{array}{c}\\tau \\frac{d{\\bf{x}}}{dt}=-{\\bf{x}}+A{\\bf{x}}+d{\\bf{W}}+\\\\ \\,+\\,m\\cdot \\sum _{j}{{\\bf{v}}}_{{\\rm{\\sigma }}(j)}{\\delta }_{t\\in ({t}_{j}-0.05s,{t}_{j})}\\\\ \\,{{\\bf{v}}}_{i}=B{{\\bf{u}}}_{i},\\,{{\\bf{u}}}_{i}\\in {{\\bf{R}}}^{100}\\\\ {{\\bf{y}}}_{j}({t}^{{\\prime} })={\\int }_{{t}_{j}+{t}^{{\\prime} }-0.1s}^{{t}_{j}+{t}^{{\\prime} }}{\\bf{x}}(t)dt,\\end{array}$$<\/p>\n<p>where d<b>W<\/b> is the Wiener process corresponding to the random noise simulation, <b>v<\/b>\u03c3j is the random input added at time tj and corresponding to a random mapping \u03c3(j) to the range of inputs considered in each simulation. A is the critically normalized dynamics matrix as before and B is a 10,000\u2009\u00d7\u2009100 matrix of either random values or composed of the eigenvectors of the spontaneous activity generated in the absence of inputs. The readout \\({{\\bf{y}}}_{j}({t}^{{\\prime} })\\) for input j is calculated as the 100\u2009ms integral of activity <b>x<\/b>(t) corresponding to a time offset of \\({t}^{{\\prime} }\\) from the input time tj. For the echo-state network version<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Jaeger, H. Echo state network. Scholarpedia 2, 2330 (2007).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR12\" id=\"ref-link-section-d63732419e5271\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>, we simply added a ReLu<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 62\" title=\"Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. In Proc. 33rd Annual Conference on Neural Information Processing Systems (eds Wallach, H. et al.) 8024&#x2013;8035 (Curran Associates, 2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#ref-CR62\" id=\"ref-link-section-d63732419e5275\" rel=\"nofollow noopener\" target=\"_blank\">62<\/a> rectification on x at each Euler step of the same dynamical system. We scaled A to reach the edge of criticality, which in this case required an additional scaling factor of 1.4 to A.<\/p>\n<p>The Rastermap visualizations in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5b,c<\/a> were from 1,500\u2009s of simulations with three inputs. There were two randomly drawn 100-dimensional inputs in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5d<\/a>, with 1,000 repeats of each stimulus, half of which were used for training the decoder and half for testing. A one-nearest-neighbour decoder was used for this binary classification. There were 2,000 different, randomly drawn 100-dimensional inputs in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e,f<\/a>, with 1,000 inputs used for training and 1,000 used for testing. To decode the input, we fit a regression problem from the output of the network to the inputs, using ridge regression with L2 regularizer of 10. In this case, a classification was considered correct if the predicted input features were closest to the ground-truth input features, as opposed to any of the other 999 inputs used in the testing set.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10528-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"All experimental procedures were conducted according to the Institutional Animal Care and Use Committee (IACUC) at Howard Hughes&hellip;\n","protected":false},"author":3,"featured_media":811318,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[8],"tags":[329685,10046,10047,329686,159,67,132,68],"class_list":["post-811317","post","type-post","status-publish","format-standard","has-post-thumbnail","category-science","tag-cellular-neuroscience","tag-humanities-and-social-sciences","tag-multidisciplinary","tag-network-models","tag-science","tag-united-states","tag-unitedstates","tag-us"],"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@us\/116610427129517973","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/posts\/811317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/comments?post=811317"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/posts\/811317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/media\/811318"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/media?parent=811317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/categories?post=811317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/us\/wp-json\/wp\/v2\/tags?post=811317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}