{"id":505916,"date":"2026-05-27T22:50:14","date_gmt":"2026-05-27T22:50:14","guid":{"rendered":"https:\/\/www.europesays.com\/ie\/505916\/"},"modified":"2026-05-27T22:50:14","modified_gmt":"2026-05-27T22:50:14","slug":"sparse-to-dense-coding-transformation-between-hippocampal-areas-ca3-and-ca1","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ie\/505916\/","title":{"rendered":"Sparse-to-dense coding transformation between hippocampal areas CA3 and CA1"},"content":{"rendered":"<p>Bats<\/p>\n<p>Fifteen adult male Egyptian fruit bats (Rousettus aegyptiacus) were included in this study for neural recording experiments (weight, 160\u2013200\u2009g). Information on individual bats is summarized in Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>. All experimental procedures for the neural recordings were approved by the Institutional Animal Care and Use Committee of the Weizmann Institute of Science. An additional 12 bats were included in a behavioural-control experiment in a smaller setup, without neural recordings (see below).<\/p>\n<p>Behavioural setups for neural recordings<\/p>\n<p>Four different behavioural setups were used in this study, shown 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-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1a,b<\/a>. All of the setups used tunnels with identical cross-section shape, with a width of 2.3\u2009m and maximal height of 2.35\u2009m (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e1766\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>), with uniform illumination (5\u2009lux). Details on individual bats in each setup are found in Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>.<\/p>\n<ol class=\"u-list-style-none\">\n<li>\n                  (1)<\/p>\n<p>Linear flight sessions in long tunnel: ten of the recorded bats flew back and forth in fixed-size linear tunnels of lengths 200\u2009m or 130\u2009m, shuttling between two landing balls positioned at the two ends of the tunnel (Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>, bats 1, 3 and 7\u201314; Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1a<\/a>). Note that these lengths are rounded: The 200-m tunnel had an effective length of 194\u2009m, and the 130-m tunnel had a length that varied between 129\u2013134\u2009m across sessions.<\/p>\n<\/li>\n<li>\n                  (2)<\/p>\n<p>Flight sessions in short linear segment: four bats were recorded in an additional separate session in which they flew in a short segment of the tunnel: either 6\u2009m (bats 1, 14 and 15) or 15\u2009m (bat 4). These segments were blocked with opaque curtains or solid blocks at both ends.<\/p>\n<\/li>\n<li>\n                  (3)<\/p>\n<p>Landmark perturbation: two bats (bats 2 and 4) performed two recording sessions, separated by a short sleep session of 5\u201310\u2009min. A single prominent landmark was moved 7.5\u2009m between session 1 and session 2 (the positions of the perturbed landmark are shown 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-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a> (orange triangles); photograph of the perturbed landmark is shown 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-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1d<\/a>). The perturbed landmark was moved daily between the exact same two positions for these two bats.<\/p>\n<\/li>\n<li>\n                  (4)<\/p>\n<p>Switching between multicompartment session and linear-flight session in long tunnel: four bats (bats 2, 4, 5 and 6) performed two recording sessions, separated by a short sleep session. In the first recording session (session 1) the bats flew in the large multicompartment tunnel (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a>,\u00a0top); 193\u2009m length) between 3 landing balls positioned at the 3 ends of the tunnel. Rewards were given equally after landing at each landing ball, and there were therefore no correct or incorrect choices in this paradigm. In the second recording session (session 2), the junction leading to the two short compartments was blocked with a black opaque curtain, and a landing ball was positioned just before the curtain, leaving a 180\u2009m straight tunnel for the bats to fly back and forth between the two landing balls (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a>,\u00a0bottom). Note that the 180-m tunnel had an effective length of 174\u2009m.<\/p>\n<\/li>\n<\/ol>\n<p>Each behavioural session started and ended with sleep sessions (each sleep session lasting 5\u201310\u2009min). For the sleep sessions the bat was placed inside a small covered cage, which was positioned in a quiet location inside the tunnel.<\/p>\n<p>In all of the experiments, human experimenters were sitting at the ends of the tunnel (beyond the landing balls). The humans were outside of the area in which the bats were flying.<\/p>\n<p>Training of bats and recording sessions<\/p>\n<p>All 15 bats were initially pretrained for a few days in a flight-room or in a short segment of the tunnel (6\u2009m or 10\u2009m), with the aim of getting used to handling by humans and learning to perform direct flights between two landing balls. Then, 12 bats were further trained for an average of 3 weeks in the 200\u2009m tunnel (8 bats) or in the 180\u2009m multicompartment environment (4 bats) to fly continuous long flights. After this training, the neural recordings began. Two additional bats were recorded in the 130\u2009m tunnel: Neural recordings in these bats were conducted from the first day of exposure to the long tunnel; we note that in our previous study<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e1851\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>, we did not find any change in neural coding in CA1 along days in these two bats. Three of these 14 bats were also neuronally recorded in shorter tunnels (6\u2009m or 15\u2009m; see Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>). One additional bat (bat 15) was neuronally recorded only in the short 6\u2009m tunnel.<\/p>\n<p>After training, all of the bats were implanted with a microdrive for electrophysiological recordings in the dorsal hippocampus (see below).<\/p>\n<p>Animal localization system<\/p>\n<p>We tracked the position of recorded bats using wireless ultra-wideband radio-frequency localization tags (weight 6.6\u2009g, including battery; BeSpoon), which received and transmitted signals to an array of ground-based antennas that were distributed around the tunnel, as was done in our previous work<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e1869\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a> (14\u201340 ground-based antennas, depending on the experimental setup). This localization method yielded a good precision of 5\u201310\u2009cm in the longitudinal axis (x) and lateral axis (y) of the tunnel. Specifically, we used two setups: The first setup (all of the bats recorded in the 200\u2009m or 130\u2009m tunnels; Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>) had 14 ground-based localization antennas, which yielded a localization precision of 10\u2009cm in x and y. The second setup (all of the bats recorded in the 180 m tunnel and the multicompartment experiments) had 40 localization antennas with a large vertical span, which yielded a localization precision of 5\u2009cm in x and y, and a precision of 20\u2009cm in the vertical axis (z). The position of the bats was acquired at a sampling rate of between 12.8 and 18\u2009Hz. The localization system and the neural recording system were synchronized using a non-periodic sequence of TTL pulses (with temporal precision of &lt;1\u2009ms).<\/p>\n<p>Surgery and neural recordings<\/p>\n<p>All of the surgical procedures were performed as described previously<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e1907\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Sarel, A. et al. Natural switches in behaviour rapidly modulate hippocampal coding. Nature 609, 119&#x2013;127 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR57\" id=\"ref-link-section-d25611206e1910\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>. In brief, after completion of training, bats were implanted with either a 4-tetrode microdrive (weight, 2.1\u2009g; Neuralynx) or a 16-tetrode microdrive (weight, 3.4\u2009g; modified from ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 60\" title=\"Voigts, J., Newman, J. P., Wilson, M. A. &amp; Harnett, M. T. An easy-to-assemble, robust, and lightweight drive implant for chronic tetrode recordings in freely moving animals. J. Neural Eng. 17, 026044 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR60\" id=\"ref-link-section-d25611206e1914\" rel=\"nofollow noopener\" target=\"_blank\">60<\/a>), loaded with tetrodes, with each tetrode constructed from four strands of insulated wire (17.8-\u03bcm diameter platinum-iridium wire). Tetrodes were gold-plated to reduce the wire impedance to 0.3\u2009M\u03a9 (at 1\u2009kHz). The microdrive was implanted above the right dorsal hippocampus (3.0\u20133.6\u2009mm lateral to the midline and 5.8\u2009mm anterior to the transverse sinus that runs between the posterior part of the cortex and the cerebellum); the craniotomy was then covered with an inert silicone elastomer (Kwik Sil or Kwik-Cast). During the implantation surgery, we used an injectable anaesthesia cocktail composed of medetomidine (0.08\u2009mg per kg), midazolam (2.5\u2009mg per kg), fentanyl (0.025\u2009mg per kg) and ketamine (17\u2009mg per kg) (or, in some bats, medetomidine (0.25\u2009mg per kg), midazolam (2.5\u2009mg per kg) and fentanyl (0.025\u2009mg per kg)), and added supplemental injections as needed, on the basis of\u00a0the bat\u2019s breathing and heart rate (as measured using an SA Instruments model 1025T Small Animal Monitoring System). The microdrive was attached to the skull with bone screws, using a layer of adhesive (Super-Bond C&amp;B) followed by dental acrylic. We attached the ground wire from the microdrive to a bone-screw that touched the dura in the skull\u2019s frontal plate.<\/p>\n<p>After surgery, the tetrodes were slowly lowered toward the CA1 pyramidal layer; positioning of tetrodes in the layer was provisionally performed on the basis of the presence of high-frequency field oscillations (ripples) and associated neuronal firing. After recording cells in the CA1 cell layer, in five of the recorded bats we further lowered some of the tetrodes to reach the CA3 cell layer, and subsequently conducted recordings simultaneously in CA3 and CA1 (Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>). For each bat, one tetrode was left in an electrically quiet zone and served as a reference, and the remaining tetrodes served as recording probes. The tetrodes\u2019 exact recording location was later verified histologically (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5b<\/a>).<\/p>\n<p>During recordings, a wireless neural-recording device (neural logger; 16 channels or 64 channels, Deuteron Technologies) was attached to a connector on the microdrive. Signals from all channels were amplified (\u00d7200) and bandpass filtered (1\u20137,000\u2009Hz), and were then sampled continuously at 31.25 or 32\u2009kHz per channel, and stored on board the neural logger. During subsequent processing, the neural recording was further high-pass filtered with a 600\u2009Hz cut-off for spikes, creating a spike bandwidth of 600\u20137,000\u2009Hz and then a voltage threshold was used for extracting 1\u2009ms spike waveforms.<\/p>\n<p>Histology<\/p>\n<p>At the end of recordings, the bats were anaesthetized, and electrolytic lesions (DC positive current of 30 \u03bcA for 15\u2009s duration) were made in a subset of the tetrodes, to facilitate the reconstruction of tetrode positions. The bat was then given an overdose of sodium pentobarbital and, with tetrodes left in situ, was perfused transcardially using PBS followed by 4% paraformaldehyde or 4.5% Histofix. The brain was removed and post-fixed. Thin coronal sections were then cut at 30 or 40\u2009\u03bcm intervals on a freezing microtome. The sections were Nissl-stained with cresyl violet and were photographed to determine the locations of tetrode tracks in dorsal CA1 or CA3 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5b<\/a>). Positions of tetrode-tracks were then mapped onto coronal plates of a stereotaxic brain atlas of the Egyptian fruit bat<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 61\" title=\"Eilam-Altst&#xE4;dter, R., Las, L., Witter, M. P. &amp; Ulanovsky, N. Stereotaxic Brain Atlas of the Egyptian Fruit Bat (Academic Press, 2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR61\" id=\"ref-link-section-d25611206e1947\" rel=\"nofollow noopener\" target=\"_blank\">61<\/a>, and were then projected onto a 3D reconstruction of CA1 and CA3 cell layers, which we prepared on the basis of\u00a0our stereotaxic brain atlas. Finally, we used these projections to estimate the tetrode-track position along the longitudinal axis and proximodistal axis of CA1 and CA3 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>; both the proximodistal axis and longitudinal axis are curved anatomical axes within the 3D space of the bat brain; we therefore estimated the distances along these curved axes). In the analysis 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-10537-0#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>, we did not include tetrodes with poor histology, for which we were able to localize the tetrode tracks to CA1 or CA3 but were not able to localize with sufficient accuracy the exact tetrode location within each subregion (this excluded data from 3 out of the 14 bats recorded in the long tunnels).<\/p>\n<p>Spike sorting<\/p>\n<p>Spike-sorting procedures were identical to those described previously<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e1965\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Sarel, A. et al. Natural switches in behaviour rapidly modulate hippocampal coding. Nature 609, 119&#x2013;127 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR57\" id=\"ref-link-section-d25611206e1968\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>. In brief, spike waveforms were sorted manually using Plexon Offline Sorter, on the basis of their relative amplitudes on different channels of each tetrode. Data from all of the behavioural sessions and sleep sessions from the same recording day were spike-sorted together. Well-isolated clusters of spikes were manually selected, and a refractory period (&lt;2\u2009ms) in the interspike-interval histogram was verified. Spike sorting was performed in consecutive time windows to allow for drift correction of the spike clusters. We included only neurons that were stably isolated throughout the recording. We further analysed only putative pyramidal cells with mean firing rate &lt;5\u2009Hz, which met behavioural-coverage criteria as described below for the different behavioural setups. A summary of the number of cells analysed for each type of behavioural session is provided in Extended Data Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"table anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Tab1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>.<\/p>\n<p>Statistics<\/p>\n<p>For all of the pairwise comparisons, we used two-tailed (two-sided) statistical tests, with a probability threshold of \u03b1\u2009=\u20090.05. Correlations were based on Spearman\u2019s correlation coefficient (two-tailed test), unless noted otherwise. We used the Wilcoxon rank-sum test to compare distribution medians, and the two-sided Kolmogorov\u2013Smirnov test to compare distribution shapes. To determine the significance of place tuning, we compared the real data with shuffled data (see below). No power analysis was used to predetermine the sample size.<\/p>\n<p>Extracting flights<\/p>\n<p>Flight behaviour was analysed separately for the experiments in the linear tunnels (130\u2009m and 200\u2009m: Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1a<\/a>) and for the experiments in the multicompartment and 180\u2009m tunnel (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a>), as follows:<\/p>\n<p>In the linear tunnels, the bat flight behaviour was mostly restricted to a 1D narrow horizontal corridor at the middle of the tunnel<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2003\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>. Thus, for these linear environments, all of the analyses and statistical tests were performed strictly on the basis of 1D firing-rate maps (projections on the long axis of the tunnel), as described previously<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2007\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>. In brief, location data were first processed to remove outliers (we removed datapoints that were outside the tunnel\u2019s walls (&gt;80\u2009cm), or data with velocity higher than 20\u2009m\u2009s\u22121). We then linearized the data by projecting the valid positional data onto the long 1D axis of the tunnel (the tunnel\u2019s \u2018backbone\u2019, which was measured using the radio-frequency localization tag). We then filled short gaps where localization data were missing. We used linear interpolation to fill gaps up to 1.5\u2009s, only if flight speed was stable during the gap. This gap-filling procedure yielded a maximal error of no more than 25\u2009cm on average, as tested by introducing simulated gaps in real data that had no gaps. Finally, the 1D positional data were upsampled to 100\u2009Hz. Directional flight epochs were detected as periods during which the bat\u2019s speed was &gt;1\u2009m\u2009s\u22121 and reached a peak speed &gt;4\u2009m\u2009s\u22121, without changes in flight direction.<\/p>\n<p>In the multicompartment environment, to capture the 2D shape of the environment, we used 2D raw positional data from which we extracted the 2D flight speed. Thus, to define flight epochs, we increased the flight speed threshold to &gt;2\u2009m\u2009s\u22121, while maintaining the same criterion for peak speed &gt;4\u2009m\u2009s\u22121 and requiring the absence of changes in flight direction (note that typical flight speeds were actually much higher than 4\u2009m\u2009s\u22121)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2026\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>. We then extracted for each flight its start and end positions, and assigned these positions to one of the environment\u2019s compartments: long, straight or turn compartments (compartments are defined 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-10537-0#Fig15\" rel=\"nofollow noopener\" target=\"_blank\">10b<\/a>). Next, we linearized each flight to a 1D axis, while keeping the identity of the flight\u2019s start and end compartments. Gaps in the flights were filled in a manner similar to that described above\u00a0for the linear flights. As in this multi-compartment setup we had an improved localization precision of 5\u2009cm, it enabled us to fill gaps up to 5\u2009s (instead of 1.5\u2009s); only gaps that occurred in the long part of the tunnel (away from the junction) were filled, provided that the flight speed was stable during the gap, and that the bat\u2019s wingbeat-rate was highly stable (as assessed using an on-board accelerometer). Similar to the linear flight setup, the gap-filling procedure was tested by introducing simulated gaps in real data which had no gaps, and it yielded a maximal error of no more than 25\u2009cm on average. Finally, the 1D positional data were upsampled to 100\u2009Hz.<\/p>\n<p>Computing firing-rate maps<\/p>\n<p>Firing-rate maps were constructed for flight periods only\u2014separately for the two flight directions. For the multicompartment experiments we also separated the data on the basis of\u00a0the flight start and end compartments. To compute 1D firing-rate maps, we counted the number of spikes and the time spent in each spatial bin (20-cm bins). Bins with time spent &lt;0.75\u2009s per metre were discarded. We smoothed both the spike-count and time-spent 1D map with a Gaussian kernel (\u03c3\u2009=\u20092.5 bins, namely 0.5\u2009m), and then divided, bin by bin, the smoothed 1D spike-count by the smoothed 1D time spent, to produce a firing-rate map. We included for further analysis only sessions with (1) more than 10 flights per direction and (2) valid firing-rate map with no gaps for at least 100\u2009m. For the short tunnels (6\u2009m and 15\u2009m) we used 1D speed threshold of 1\u2009m\u2009s\u22121, threshold for peak speed of 2\u2009m\u2009s\u22121, smaller spatial bins of 10-cm and a smoothing kernel of \u03c3\u2009=\u20092 bins, namely 0.2\u2009m. We also analysed U-turns, as shown 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-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14<\/a>.<\/p>\n<p>Quantifying spatial coding, definition of place cells and defining place fields<\/p>\n<p>To quantify the\u00a0spatial coding of firing-rate maps, we used the spatial information (SI) index, measured in bits\/spike (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2d<\/a>): \\(\\mathrm{SI}\\left(\\frac{\\mathrm{bits}}{\\mathrm{spike}}\\right)={\\sum }_{i}{p}_{i}\\left(\\frac{{r}_{i}}{\\bar{r}}\\right){\\log }_{2}\\left(\\frac{{r}_{i}}{\\bar{r}}\\right)\\), where ri is the firing rate of the cell in the ith bin, pi is the probability of the bat to be in the ith bin, and \\(\\bar{r}\\) is the overall mean firing rate of the cell. Place cells in CA1 and CA3 were classified as significant place cells only on the basis of\u00a0the linear flight data (using the linear tunnels and the blocked session, excluding the multicompartment session) if they met the following criteria: (1) significant spatial information compared to spike shuffles (&gt;99% of shuffles): to shuffle the spike trains, we rigidly and circularly shifted in time the spikes of each flight, using a uniform random shift; the value of the shift differed randomly between individual flights, so each shuffle consisted of a unique set of temporal shifts that differed randomly across flights. We performed 1,000 such random shuffles for each neuron. (2) Spatial information was &gt;0.25 bits per spike. (3) A cell emitted a minimal number of spikes in-air per flight direction during the entire session: \u226550 spikes in the 130\u2009m and 200\u2009m tunnel experiments; and \u226520 spikes in the blocked session of the multicompartment experiment (we used here a lower spike-count threshold because the two behavioural sessions resulted in fewer straight-flight trials per session); we also required \u226520 spikes in the short tunnel experiments, where the reduced time in-air limited the spike count. (4) The cell had at least one significant place field, as described next.<\/p>\n<p>To detect place fields, we used the same algorithm as we used previously<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2213\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a> and applied it to both CA1 and CA3 data. (1) First, we extracted local peaks in the firing-rate map, with a peak-rate of &gt;1\u2009Hz. (2) To remove small local peaks \u2018riding\u2019 on a large field, we searched for shallow \u2018dips\u2019\u2014that is, cases in which the dip between two adjacent peaks was &gt;50% of the firing rate of the larger peak\u2014and then disregarded the lower peak. (3) We then defined the boundaries of the field as follows: we identified the zone covering 20% of the peak firing rate of that place field. Then, to overcome the smearing caused by the smoothing of the firing-rate map, we defined the field size as the 5\u201395% percentile of the positions of the spikes that occurred inside the 20% zone. (4) Field stability criterion: we required at least 10 different laps inside the place field, out of which there were at least 5 different laps with spikes inside the place field, or 20% of the laps with spikes, whichever is larger. (5) Field significance criterion: to capture clear distinct fields, we treated a place field as significant only if it had significant spatial information in its local area, near the place field. To quantify this, we looked at the area surrounding the field (specifically, the field itself plus 50% of the field\u2019s size on each side). Focusing on this local area around the place field, we calculated the spatial information for the real spikes and compared it to 1,000 shuffles (same rigid shuffling as above), and considered the field to be significant only if it had spatial information of &gt;95% of the shuffles in this constrained local area.<\/p>\n<p>For each neuron we computed four indices: (1) spatial information, in bits per spike, as defined above (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2d<\/a>). (2) Total coverage of all of the fields, defined as the sum of all field sizes per direction, normalized by the length of the flight track (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2e<\/a>). (3) Sparsity (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2f<\/a>), defined as \\(\\frac{{\\langle {r}_{i}\\rangle }^{2}}{\\langle {r}_{i}^{2}\\rangle }={\\left(\\sum {p}_{i}{r}_{i}\\right)}^{2}\/\\sum {p}_{i}{r}_{i}^{2}\\), which is bounded between 0 and 1, with low values indicating high spatial selectivity and sparser coding. (4) Map correlation, an index of map stability, computed as the Pearson correlation coefficient between maps constructed separately for the first half versus second half of the session (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2c<\/a>) or for odd versus even flights (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>). These four indices were computed separately for each flight direction.<\/p>\n<p>All of the comparisons of spatial coding in CA3 versus CA1 in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a> were performed using only data from the linear flight sessions (using data from the linear tunnels (200\u2009m and 130\u2009m) and from the session in which the tunnel was blocked (180\u2009m linear tunnel); here we excluded the data from the multicompartment session).<\/p>\n<p>Generating model maps and decoding simulations<\/p>\n<p>For the decoding simulations (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3a\u2013c<\/a>), we created populations of neurons with simulated place fields, using the multifield multiscale encoding scheme described before<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2440\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a> for CA1 maps, and a single-field encoding scheme for CA3 maps. We used a maximum-likelihood decoder to study the decoding accuracy implied by these two encoding schemes, for populations of CA1 neurons and CA3 neurons. Decoding was done with an integration time window of 500\u2009ms.<\/p>\n<p>Encoding<\/p>\n<p>In our simulations, the environments had a 0.2-m resolution (0.2-m bin size); the same binning as was used to analyse the real data. We varied the size of the environment, L, between 20\u2009m and 1,000\u2009m. The neurons had rectangular fields, did not fire outside their fields, and fired at a fixed rate m0 within their fields (with Poisson statistics).<\/p>\n<p>                  CA3 scheme<\/p>\n<p>For each neuron, we picked a single field, with a field location that was sampled from a uniform distribution over the environment of length L (measured in metres). The field size was sampled randomly from a gamma distribution (which is very similar to a log-normal distribution<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e2468\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>), with a shape parameter \u03b1 and a scale parameter \u03b8, which were calculated from the experimental distribution of CA1 and CA3 field sizes for the 200\u2009m and 180\u2009m environments (L\u2009=\u2009200\u2009metres) (\u03b1\u2009=\u20093.46 and \\(\\theta =1.46\\times \\sqrt{L\/200}\\,\\text{metres}\\)). The square-root scaling of the field-size distribution with the environment size L is consistent with field-size distributions measured at multiple environment sizes (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2h<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig8\" rel=\"nofollow noopener\" target=\"_blank\">3h<\/a>).<\/p>\n<p>                  CA1 scheme<\/p>\n<p>For each neuron, the field sizes were randomly chosen from a gamma distribution identical to the distribution used for the CA3 scheme. The number of fields was chosen such that the cumulative coverage of all of the fields together reached \\(0.139\\times L\\times \\sqrt{200\/L}\\,{\\rm{metres}}\\). The pre-factor 0.139 represents the neurons\u2019 average coverage at the 200\u2009m environment size in our experiments (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2i<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig8\" rel=\"nofollow noopener\" target=\"_blank\">3i<\/a>). Field locations were randomly distributed along the environment, with no overlaps. The square-root scaling of the coverage with the inverse of the\u00a0environment size is consistent with our recordings at multiple environment sizes (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2i<\/a>).<\/p>\n<p>We denote each neuron\u2019s spatial selectivity map by \\({f}_{i}^{a}(x)\\), where i is the neuron index (i\u2009=\u20091,\u2009\u2026,\u2009N), and a is the scheme index (a\u2009=\u2009CA3 or CA1). \\({f}_{i}^{a}(x)\\) is equal to 1 if the neuron has a field in position x and 0 if it does not, that is, the field shapes in our model were taken to be rectangular.<\/p>\n<p>                Generating spike counts<\/p>\n<p>We assumed that the animal starts each simulation trial at a position x\u2009=\u2009x0, and flies at speed v\u2009=\u20098\u2009m\u2009s\u22121 (the typical empirical flight-speeds) for a time interval \u0394t\u2009=\u2009500\u2009ms. The expected spike count of the neuron during that trial is given by:<\/p>\n<p>$${m}_{i}={m}_{0}\\underset{{x}_{0}}{\\overset{{x}_{0}+v\\Delta t}{\\int }}{f}_{i}^{a}(x){\\rm{d}}x,$$<\/p>\n<p>where m0 is the expected spike count if the animal spent the entire interval within a field. We used m0\u2009=\u20095 in all our simulations (taken together with the integration time window of 500\u2009ms, this gives a typical in-field firing rates of 10\u2009Hz). The actual spike-count in each trial was drawn from a Poisson distribution with rate mi and is denoted below as ni.<\/p>\n<p>Maximum-likelihood decoding<\/p>\n<p>We computed the log-likelihood of each simulated neuron\u2019s spike count, and summed it over the N neurons:<\/p>\n<p>$${A}_{\\mathrm{ML}}(x)=\\mathop{\\sum }\\limits_{i=1}^{N}{n}_{i}\\log [{m}_{0}\\,{f}_{i}^{a}(x)]-{m}_{0}\\mathop{\\sum }\\limits_{i=1}^{N}{f}_{i}^{a}(x)$$<\/p>\n<p>where the first term corresponds to a sum of the spatial tuning of all neurons, weighted by their activity. The second term corresponds to the correction for unequal coverage in different locations. The decoded location was then taken as the one that maximizes AML(x).<\/p>\n<p>Figure <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3a,b<\/a> show results from 105 simulation-trials generated by drawing random field locations 100 times, then drawing random spike counts from the Poisson distribution 20 times, and then performing decoding at 50 equally spaced locations x0 spanning the entire environment (100\u2009\u00d7\u200920\u2009\u00d7\u200950\u2009=\u2009105). Figure <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3c<\/a> shows results from 5,000 simulation trials for each value of N. Note that the probability of catastrophic decoding errors (errors larger than 5% of the environment size) shown in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3b<\/a> is not a monotonic function of environment size\u2014it first decreases and then increases again. This non-monotonic behaviour arises because catastrophic errors were defined as a fixed percentage of the environment size (namely 5%), whereas the spatial coverage of the simulated firing-rate maps scaled with the square root of the environment size (a choice that was motivated by the experimental data (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2i<\/a>)). The interaction between these differently scaled quantities resulted in the observed non-monotonic dependence of catastrophic error probability on environment size.<\/p>\n<p>Decoding using matched firing rates between CA1 and CA3<\/p>\n<p>We controlled here for the possibility that the better decoding performance in CA1 stems from higher mean firing rates in that region compared with CA3. Notably, CA1 neurons show higher mean firing rates because they have more fields and larger coverage than CA3 neurons, and not because of differences in the in-field firing rates (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">4a<\/a>). We controlled for the mean firing-rate differences by performing similar decoding simulations as in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3a\u2013c<\/a>, but after matching the mean firing rate for the maps in CA1 and CA3 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig12\" rel=\"nofollow noopener\" target=\"_blank\">7c\u2013f<\/a>). Specifically, we kept the parameters for CA1 maps as before (and therefore the decoding performance for CA1 was as in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3a\u2013c<\/a>), whereas, for CA3 maps, we matched the mean firing rate to the mean firing rate of CA1 maps, by multiplying the parameter m0 by the ratio between the average coverage of CA1 maps and the average coverage of CA3 maps. Note that this ratio depends on the environment size L, but for all values of L the ratio was greater than 1, resulting in higher peak firing rate in CA3 neurons compared with CA1 neurons.<\/p>\n<p>Target-map learning simulations and quantifying the learning time<\/p>\n<p>For the target-map learning simulations (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3d\u2013f<\/a> and Extended Data Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8<\/a>, <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig14\" rel=\"nofollow noopener\" target=\"_blank\">9g<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13g<\/a>), we implemented node perturbation (NP) and weight perturbation (WP) learning algorithms to obtain the synaptic weights that minimize the reconstruction error of a target CA1 map \\({f}_{i}^{\\mathrm{CA}1}(x)\\) for CA1 neuron i, based on banks of CA3 maps \\({f}_{k}^{\\mathrm{CA}3}(x)\\). We considered banks of N\u2009=\u2009200 independently sampled CA3 maps\u2014namely, 200 CA3 inputs to a CA1 neuron\u2014for which we systematically varied the number of fields nf that each CA3 map had (nf\u2009=\u20091,\u2009&#8230;,\u20096 fields; k\u2009=\u20091,\u2009&#8230;,\u2009200 CA3 maps; different 200 maps for each value of nf; note that 200 maps in CA3 provide sufficient coverage for each CA1 map to yield all possible fields locations, without any empty spaces). We assumed that synaptic weights Uik are learned to minimize the reconstruction error. Specifically, given the target map, the input maps, and a set of synaptic weights \\({U}_{{ik}}\\), the squared location-specific reconstruction error was defined as<\/p>\n<p>$${{\\epsilon }}_{i}^{2}(x)={\\left[{f}_{i}^{\\mathrm{CA}1}(x)-\\mathop{\\sum }\\limits_{k=1}^{N}{U}_{{ik}}{f}_{k}^{\\mathrm{CA}3}(x)\\right]}^{2}.$$<\/p>\n<p>In NP, following ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 37\" title=\"Fiete, I. R., Fee, M. S. &amp; Seung, H. S. Model of birdsong learning based on gradient estimation by dynamic perturbation of neural conductances. J. Neurophysiol. 98, 2038&#x2013;2057 (2007).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR37\" id=\"ref-link-section-d25611206e3334\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a>, in each iteration t, we perturbed the output neuron (node) by adding to its response a random number \\({\\xi }_{i}(t) \\sim \\)\\({\\mathcal{N}}(0,{\\sigma }_{\\mathrm{NP}}^{2})\\). The squared location-specific reconstruction error including the node perturbation is then<\/p>\n<p>$${{\\epsilon }}_{i,\\mathrm{NP}}^{2}(x)={\\left[{f}_{i}^{\\mathrm{CA}1}(x)-\\left(\\mathop{\\sum }\\limits_{k=1}^{N}{U}_{{ik}}{f}_{k}^{\\mathrm{CA}3}(x)+{\\xi }_{i}(t)\\right)\\right]}^{2}.$$<\/p>\n<p>The NP learning rule for the synapses between CA3 neuron k and CA1 neuron i is implemented as<\/p>\n<p>$$\\Delta {U}_{{ik}}^{\\mathrm{NP}}({t})=-{\\eta }_{\\mathrm{NP}}{\\xi }_{i}(t)\\mathop{\\sum }\\limits_{x=1}^{L}{({\\epsilon }}_{i,\\mathrm{NP}}^{2}(x)-{{\\epsilon }}_{i}^{2}(x)){f}_{k}^{\\mathrm{CA}3}(x).$$<\/p>\n<p>In WP, the weights are perturbed with synapse-specific noise \\({\\xi }_{{ik}}(t) \\sim {\\mathcal{N}}(0,{\\sigma }_{{\\rm{WP}}}^{2})\\) rather than perturbing the output. Now the squared error is<\/p>\n<p>$${{\\epsilon }}_{i,\\mathrm{WP}}^{2}(x)={\\left[{f}_{i}^{\\mathrm{CA}1}(x)-\\mathop{\\sum }\\limits_{k=1}^{N}({U}_{{ik}}+{\\xi }_{{ik}}(t)){f}_{k}^{\\mathrm{CA}3}(x)\\right]}^{2},$$<\/p>\n<p>and the WP learning rule is implemented as<\/p>\n<p>$$\\Delta {U}_{{ik}}^{\\mathrm{WP}}({t})=-{\\eta }_{\\mathrm{WP}}{\\xi }_{{ik}}(t)\\mathop{\\sum }\\limits_{x=1}^{L}{({\\epsilon }}_{i,\\mathrm{WP}}^{2}(x)-{{\\epsilon }}_{i}^{2}(x)).$$<\/p>\n<p>We ran each simulation for 1,000 time-steps for each spatial bin. We used the parameters \\({\\sigma }_{{\\rm{NP}}}=1\\) and \\({\\sigma }_{{\\rm{WP}}}=0.2\\). The learning rate parameter \\(\\eta \\) was optimized for single-field maps in CA3 (nf\u2009=\u20091), to yield the fastest learning, namely the fastest monotonic decrease of the average reconstruction error. We then used a grid search over different values of \u03b7 and nf, and confirmed that, similar to the birdsong literature<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Fiete, I. R., Hahnloser, R. H., Fee, M. S. &amp; Seung, H. S. Temporal sparseness of the premotor drive is important for rapid learning in a neural network model of birdsong. J. Neurophysiol. 92, 2274&#x2013;2282 (2004).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR36\" id=\"ref-link-section-d25611206e4226\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>, the optimal learning rate \u03b7 is inversely proportional to the number of CA3 fields nf (in the birdsong study, \u03b7 scaled inversely with the number of bursts in a song); specifically, we found \\({\\eta }_{\\mathrm{NP}}={5\\times 10}^{-6}\/{n}_{{\\rm{f}}}\\) and \\({\\eta }_{\\mathrm{WP}}={5\\times 10}^{-6.5}\/{n}_{{\\rm{f}}}\\). We therefore scaled \u03b7 inversely with nf in our simulations. For each learning algorithm and each number of fields of CA3 maps, we learned separately the weights to reconstruct 500 target maps in CA1 (namely, i\u2009=\u20091,\u2009&#8230;,\u2009500). As the learning process of a single map can be noisy, we smoothed the learning curve as follows. For each specific target error, we drew randomly 250 of the 500 target maps, averaged those 250 learning-curves and computed the learning time from this averaged learning curve; this process (of drawing 250 maps and computing the learning-time) was repeated 200 times and the resultant learning time\u2014shown in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3e<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8<\/a>\u2014was computed as the median of these 200 learning-times.<\/p>\n<p>Note that our theoretical model is deliberately simplified and does not account for contributions from other regions, such as inputs from CA2 or the\u00a0entorhinal cortex into CA1. This simplification was motivated by our previous finding showing independent dynamics of different place fields of the same CA1 neuron<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e4361\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>. This previous finding is more consistent with synaptic plasticity that potentiates or depresses independent inputs from single-field neurons<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e4365\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>, such as inputs from the sparse CA3 neurons (Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>), rather than inputs which have multiple fields, such as inputs from grid cells in entorhinal cortex, where single neurons have multiple fields<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 62\" title=\"Ginosar, G. et al. Locally ordered representation of 3D space in the entorhinal cortex. Nature 596, 404&#x2013;409 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR62\" id=\"ref-link-section-d25611206e4375\" rel=\"nofollow noopener\" target=\"_blank\">62<\/a>. In other words, our previous findings suggested that the most plastic inputs into CA1 are coming from CA3 neurons with single fields, rather than from entorhinal cortex; this is why we ignored the entorhinal cortex in our model. Nevertheless, even when we incorporated into the model additional non-plastic inputs to CA1 (non-CA3 inputs, see the next paragraph), the sparse CA3 inputs provided an advantage in the learning speed of CA1 output maps compared with dense CA3 inputs (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8c<\/a>).<\/p>\n<p>Learning with input from both CA3 and EC\/CA2<\/p>\n<p>In these simulations (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8c<\/a>), the target map was set to fi(x)\u2009+\u2009zi(x), where fi(x) is the original target map and zi(x) arises due to non-plastic spatial input representing an additional external input into CA1, such as from the\u00a0entorhinal cortex (EC) or from CA2 (this input is constant throughout the learning, but different from one position to the next). For each spatial bin x, zi(x) is sampled from a Gaussian distribution with mean 0 and variance \u03d5(1\u2009\u2212\u2009\u03d5), independently of every other bin, where \u03d5 is the average coverage of all CA1 target maps. As fi(x) for every x is a binary variable, its variance is \u03d5(1\u2009\u2212\u2009\u03d5). Thus, setting the variance of zi(x) to \u03d5(1\u2009\u2212\u2009\u03d5) ensures that the magnitudes of the learned component and the external component are equal.<\/p>\n<p>Learning after a local perturbation to an already-learned environment<\/p>\n<p>In these simulations (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3f<\/a> and Extended Data Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8d<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig14\" rel=\"nofollow noopener\" target=\"_blank\">9g<\/a>), the local perturbations were performed by increasing the firing rate of target CA1 maps by a factor of 4 in an 8-m region within the map, and learning the weights that best reconstruct this modified map. For each map these simulations were initialized using the final value of the synaptic weights obtained from the original learning simulation described above.<\/p>\n<p>Learning of context-dependent maps<\/p>\n<p>In these simulations (Extended Data Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">8e<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13g<\/a>), each neuron in CA1 received inputs from a set of CA3 neurons, each of which had a context-dependent spatial representation. Specifically, each CA3 neuron represented the animal\u2019s location based on two maps generated independently, corresponding to two different contexts (for example, flights from two different start locations: retrospective coding). Each CA1 neuron was required to produce two distinct output target maps, one for each context, using a single set of synaptic weights linking input and output maps. The synaptic weights were updated according to the node-perturbation learning rule, with a training protocol that alternated between the two contexts.<\/p>\n<p>Firing-rate map changes with respect to landmark perturbation<\/p>\n<p>Bats flew in two behavioural sessions, and one prominent landmark was moved by 7.5\u2009m between the two sessions, keeping in place all of the other landmarks (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4a,c<\/a>: the two locations of this landmark are marked with dashed and solid orange lines). This manipulation was performed in two bats, during 27 and 18 recording days in bats 2 and 4, respectively. In all of these recording days, in the first behavioural session the landmark position was x\u2009=\u200970.5\u2009m, and in the second session the landmark was moved to position x\u2009=\u200978\u2009m. The two sessions differed not only by the perturbed landmark location but also in the environment\u2019s structure: in the first session, the environment included two short 10-m segments at one end of the 180-m tunnel, while in the second session, these segments were blocked, resulting in a linear 180-m tunnel (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">1b<\/a>). Importantly, the two environments were identical in the first 180\u2009m, with the only difference being the perturbed landmark in positions between 70.5\u201378\u2009m, which was more than 100\u2009m away from the blocked short segments (the block was positioned at x\u2009=\u2009180\u2009m). Nevertheless, to isolate the effects of the perturbed landmark from any potential effects of prospective or retrospective coding at the far end of the tunnel (close to x\u2009=\u2009180\u2009m; Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>), we limited our analysis of the landmark-perturbation effects (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>) as follows. For forward flights (eastward), we analysed the first 140\u2009m of the tunnel (x\u2009=\u20090\u2013140\u2009m) and, for returning flights (westward), we analysed the last 100\u2009m of the flight trajectory, corresponding to the first 100\u2009m of the tunnel (x\u2009=\u20090\u2013100\u2009m). These areas were chosen for the analysis on the basis of\u00a0the range of prospective and retrospective coding effects (prospective coding was overall weak (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0left), and retrospective coding (for returning flights) was mostly limited to the eastern half of the tunnel, x\u2009&gt;\u2009100\u2009m (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0right)\u2014which is why we focused the analysis of landmark-perturbation on the area x\u2009=\u20090\u2013100\u2009m, which was unaffected by retrospective coding). Only days with a minimum of 10 flights in each of the two sessions and valid firing-rate maps of at least 100\u2009m were included for further analysis (n\u2009=\u200945 experimental days). Firing rate versus position for individual flights was calculated with 1-m spatial bins and smoothed with a Gaussian kernel (\u03c3\u2009=\u20092.5 bins, namely 2.5\u2009m). The firing-rate values of all of the flights within each spatial bin were compared between the two behavioural sessions (t-test with Bonferroni correction for the number of spatial bins: we corrected for the number of non-zero firing-rate bins that were compared between the two sessions). Significantly changed positions in the tunnel were defined as two or more consecutive spatial bins which were significant on the basis of\u00a0the t-test, and were located within the position range as described above (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4a<\/a>,\u00a0orange dots above the firing-rate maps; population: Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>,\u00a0grey and purple bins). The number of changes across place cell maps per spatial bin were compared to a shuffle distribution, in which the significantly changed bins of each map were shuffled with a random rigid circular shift across all of the bins of the map that had valid behaviour and non-zero firing rates. We performed 1,000 such shuffles (1,000 sets of these random shifts) and calculated in the same way as for the original map the distribution of changed bins as a function of position along the tunnel. Only one spatial bin had a larger number of changed firing-rate bins as compared to 99% of the shuffles; this significant bin was located close to the perturbed landmark position, and this spatially focused change occurred only in the CA1 maps (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>,\u00a0top left). The over-representation of firing-rate changes near the perturbed landmark was further assessed using a binomial test, under the assumption of a uniform probability of change along the tunnel. This probability was defined as the number of observed changes across all locations divided by the number of spatial bins eligible for comparison (that is, bins with non-zero spiking activity in at least one of the two sessions). The test revealed a significantly higher than chance number of changes near the perturbed landmark in CA1 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>,\u00a0top left, two spatial bins (asterisks)). In both the binomial and shuffle tests, no significant changes were found in the population of CA3 maps (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>,\u00a0top right).<\/p>\n<p>To account for the different numbers of place cells in CA1 and CA3, we matched (subsampled) the number of CA1 cells to that of CA3 (n\u2009=\u200922) and repeated the analysis over 1,000 subsampling repetitions. In 95% of these repetitions, place cells in CA1 still showed a greater number of firing-rate changes near the perturbed landmark than place cells in CA3. Furthermore, the over-representation of changes near the perturbation site was statistically significant (on the basis of\u00a0the binomial test) in 45% of the subsampling repetitions (45% at the \u03b1 = 5% chance level for an individual test is highly significant: P\u2009&lt;\u200910\u2013300, population-wise binomial test).<\/p>\n<p>Population vector correlations for prospective and retrospective coding<\/p>\n<p>For multicompartment recording sessions, we constructed population vectors from the firing-rate maps of the entire place cells population (separately for each bat, pooled over all of the recording days of the bat). These population vectors were computed separately for four different flight types (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5a<\/a>,\u00a0dark blue and red arrows): (1) forward flight direction ending in the straight compartment (to-straight) or (2) ending in the turn compartment (to-turn); and (3) returning flight direction starting from the straight compartment (from-straight), or (4) starting from the turn compartment (from-turn). The population vectors were then smoothed by averaging over a sliding window of 10\u2009m (boxcar smoothing), with 0.2\u2009m steps, and then the firing-rate map of each cell was normalized separately to a firing-rate range of 0\u20131, by dividing the smoothed map by its peak firing rate. Then, for each spatial bin (each position), we calculated the Pearson correlation between pairs of population vectors: (1) correlations between to-straight versus to-turn flights, which quantifies prospective coding in the neuronal population (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0left, black); (2) correlations between from-straight versus from-turn flights, which quantifies retrospective coding in the neuronal population (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0right, green); (3) correlations between opposite flight directions, which served as a control, capturing the baseline near-zero correlation due to the global remapping that is known to occur in 1D environments between two opposite movement directions<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Eliav, T. et al. Multiscale representation of very large environments in the hippocampus of flying bats. Science 372, eabg4020 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR12\" id=\"ref-link-section-d25611206e4630\" rel=\"nofollow noopener\" target=\"_blank\">12<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 31\" title=\"McNaughton, B. L., Barnes, C. A. &amp; O&#x2019;Keefe, J. The contributions of position, direction, and velocity to single unit activity in the hippocampus of freely-moving rats. Exp. Brain Res. 52, 41&#x2013;49 (1983).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR31\" id=\"ref-link-section-d25611206e4633\" rel=\"nofollow noopener\" target=\"_blank\">31<\/a> (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0lower grey curves; shown is the average per spatial bin of the correlation of to-turn versus from-turn and correlation of to-straight vs. from-straight, both of which are for flights in opposite directions); and (4) correlations between maps for odd and even flights in the same directions, which served as another control, capturing the high correlations expected for stable tuning (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a>,\u00a0top grey curves). The population vector correlations were plotted as a function of position (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a>). Correlations in the short compartments were calculated by correlating the data for the turn and straight compartments; the low correlations there reflects remapping. Confidence intervals for the correlation values were determined by randomly drawing 50% of all of the neurons without replacements, with 1,000 repetitions (25\u201375% of correlation values across repetitions for each position; plotted as green, black and grey shading, for the retrospective, prospective and control population-vectors, respectively, in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a>).<\/p>\n<p>This analysis was done fully in three bats: bat 2 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a> (top) and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a> (rows 1 and 5), bat 5 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a> (row 3); a small number of neurons were recorded in this bat), and bat 6 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a> (row 4); recordings in CA1 only). Bat 4 allowed only partial analysis because it always flew stereotypically from the straight 10-m tunnel to the long tunnel, and never turned left from the turn-compartment to the long tunnel, which did not permit analysis of retrospective coding, but only of prospective coding (this bat is shown 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a>,\u00a0row 2).<\/p>\n<p>Variability of retrospective coding<\/p>\n<p>Variability of retrospective coding. To quantify the variability of retrospective coding (high variability means low robustness), we analysed the population-vector correlation curves for the retrospective case (green curves for CA1 in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a> and for CA3 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13a<\/a>,\u00a0rows 5\u20136). Variability was computed separately for populations of CA1 and CA3 place cells. To allow direct comparison between CA1 and CA3, both cell populations were randomly subsampled to include an equal number of cells (n\u2009=\u200950 place cells; 1,000 repetitions). For each of the 1,000 subsamples, the variability of the population-vector retrospective curve was quantified as the median of the s.d. of this curve in 10-m spatial windows, therefore reflecting local fluctuations in the population-vector correlation curve on a 10-m scale. The distribution of variability values across subsampling iterations was summarized using box plots, comparing CA1 versus CA3 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5g<\/a>,\u00a0left, and 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13e,f<\/a>,\u00a0left). To further examine the contribution of multi-field coding to robustness, the analysis was repeated after restricting the dataset to neurons with single spatial fields (in both CA1 and CA3; right panels in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5g<\/a> and 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13e,f<\/a>).<\/p>\n<p>Prospective and retrospective place-field classification<\/p>\n<p>To analyse significant prospective\/retrospective changes in individual place fields (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13c,d<\/a>), we performed the following analysis on the long arm of the tunnel (180\u2009m). Place fields were detected as described above (see the \u2018Quantifying spatial coding, definition of place cells and defining place fields\u2019 section). The fields were detected separately for firing-rate maps for the four conditions: to-straight, to-turn, from-straight, from-turn. Owing to significant differences in behaviour within the 20\u2009m closest to the junction (positions between x\u2009=\u2009160 and 180\u2009m), all place fields in this region were excluded from the analysis 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13c,d<\/a> (this range is marked by peach shading in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5e<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13c-d<\/a>; on average, across recording sessions and bats, there were significant changes in trajectory and speed for 22\u2009m after the turn (x\u2009=\u2009158\u2013180\u2009m)). For positions 0\u2013160\u2009m, place fields were classified as significant prospective or retrospective fields if they met the following two criteria: (1) firing rate during flight passes inside the place field was significantly different for straight-compartment versus turn-compartment flights (two-sided t-test over all of the individual flights of a session). (2) No difference in behavioural variables: y position (flight position along the lateral axis of the tunnel width), z position (flight height) and flight speed were all not significantly different for straight-compartment flights versus turn-compartment flights that passed inside the place field (t-test for each variable separately; 228 fields out of total of 1,668 fields were excluded from this analysis due to significant differences in behaviour in either of these 3 behavioural variables). These requirements ensured that the firing-rate changes inside the place field were genuinely representing effects of the future or past compartment\u2014namely prospective or retrospective coding\u2014and were not due to behavioural differences in flight trajectory or speed. In cases in which one or more behavioural variables was significantly different inside the place field, between flights ending in the straight and turn compartments, a matching procedure was performed, such that only flights that overlapped in y-position, z-position and speed were included as valid flights for the firing-rate comparison. If, after removal of unmatched flights, the firing rate inside the place field was significantly different for straight-compartment versus turn-compartment flights, then the place field was considered as a significant prospective or retrospective field. All statistical comparisons required a minimum of five valid flights passes through the examined place field in each of the flight types (5 flights after flight\u00a0removal based on matching of the behaviour). We then classified all of the place fields in the multicompartment behavioural session, which were located at the long compartment of the tunnel (0\u2013160\u2009m), to one of four categories: (1) prospective fields; (2) retrospective fields; (3) non-significant prospective or retrospective fields; or (4) fields with non-valid behaviour (a field was classified in this fourth category if within the field any one of the behavioural variables was significantly different between flight types, or if there were fewer than 5 flight\u00a0passes in one of the flight types). The percentage of significant prospective and retrospective fields versus position in the tunnel was plotted 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-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13c<\/a>, separately for CA1 and CA3 place cells. We also computed a contrast index for prospective, retrospective and non-significant fields, as follows (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig18\" rel=\"nofollow noopener\" target=\"_blank\">13d<\/a>): \\(\\mathrm{Contrast}\\,\\mathrm{index}=\\frac{|{\\mathrm{FR}}_{a}-{\\mathrm{FR}}_{b}|}{{\\mathrm{FR}}_{a}+{\\mathrm{FR}}_{b}}\\), where FRa is the mean firing rate inside the field for flights starting or ending in the turn compartment, and FRb is the mean firing rate for flights starting or ending in the straight compartment.<\/p>\n<p>Echolocation analysis in the long tunnel<\/p>\n<p>To assess whether differences in echolocation can explain retrospective coding (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>), we performed an analysis of echolocation click rate in the multicompartment experiments (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14a\u2013e<\/a>). To detect the echolocation clicks, we used an ultrasonic microphone on board the neural logger. In all of the experimental sessions in the long tunnel, we recorded simultaneously the audio signal, together with the neuronal signal (both were saved on the neural logger, synchronized at a microsecond precision). The audio signal was filtered (in hardware on the logger) between 4\u201340\u2009kHz, and was recorded at a 100\u2009kHz sampling rate. Detection of echolocation clicks emitted during flight was then performed offline similarly to ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Sarel, A. et al. Natural switches in behaviour rapidly modulate hippocampal coding. Nature 609, 119&#x2013;127 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR57\" id=\"ref-link-section-d25611206e4846\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>. We first further high-pass-filtered the audio signal at 10\u2009kHz. We then normalized the signal by its mean absolute deviation (MAD) over the entire session\u2014transforming the amplitude to an SNR. We then used an amplitude threshold of 50 MADs (that is, SNR\u2009=\u200950), which detected clicks reliably. We also applied several additional criteria for click-detection, as described in detail in ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Sarel, A. et al. Natural switches in behaviour rapidly modulate hippocampal coding. Nature 609, 119&#x2013;127 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR57\" id=\"ref-link-section-d25611206e4850\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>.<\/p>\n<p>To exclude the possibility that the observed strong retrospective coding after 90\u00b0 turns (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>) is directly linked to the observed increase in echolocation clicks\u2014that is, that the retrospective coding reflects direct sensory or motor neuronal responses, or changes in attention levels (as echolocation click-rate is known to be a proxy of attention<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 57\" title=\"Sarel, A. et al. Natural switches in behaviour rapidly modulate hippocampal coding. Nature 609, 119&#x2013;127 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR57\" id=\"ref-link-section-d25611206e4860\" rel=\"nofollow noopener\" target=\"_blank\">57<\/a>)\u2014we used U-turns as a control. The rationale is that the motor action of mid-flight U-turns is at least as challenging as 90\u00b0 turns. For each experimental day we calculated the echolocation click-rate maps for individual flights, in the same way, with the same parameters and bin-sizes as for the neural firing-rate maps, and compared the echolocation click-rate in 90\u00b0 turns versus U-turns. We found that echolocation click rates were similar between the two types of turn flights (90\u00b0 turns and U-turns; Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14d<\/a>), which suggests that a similar sensory input and similar attention levels are required for 90\u00b0 turns and U-turns\u2014yet the neural representations after 90\u00b0 turns and U-turns were very different (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14h\u2013j<\/a>). We therefore conclude that differences in echolocation or attention level cannot explain the strong retrospective coding that we found in the hippocampus (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>)\u2014rather, the retrospective coding probably reflects memory of where the bat came from.<\/p>\n<p>Behavioural control experiments and echolocation analysis in small L-shaped setup<\/p>\n<p>As a further behavioural control for the potential origin of retrospective coding (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>), we also performed a separate experiment to assess the possible effects of echolocation beam aim (direction of the echolocation beam in space; Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14f,g<\/a>). The purpose of this additional control experiment was to further examine the relationship between echolocation and turning behaviour during flight. To this end, we performed a separate set of behavioural experiments on an additional cohort of bats without neural recordings. These bats were flying in a separate small L-shaped environment that was constructed with similar dimensions to the turn in the large tunnel (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14f<\/a>). These behavioural control experiments were performed at Johns Hopkins University and were approved by the Institutional Animal Care and Use Committee of Johns Hopkins University. The walls of this L-shaped setup were made from cardboard and were lined with felt to minimize echo reflections that could interfere with sonar signal analysis. Twelve Egyptian fruit bats (6 males, 6 females) participated in these control experiments. The bats were released from both ends of the tunnel. Opening or closing the central door at the L-junction prompted bats to make different navigational choices: fly straight or perform 90\u00b0 turns or 180\u00b0 turns (U-turns). The conditions were pseudorandomized across bats and trials. Echolocation clicks were recorded with a 32-channel microphone array consisting of 32 electret condenser microphones (D500X Ultrasound Detector, Pettersson Elektronik). The sensitivity of each microphone was calibrated using a precision microphone (40DP 1\/8\u2032\u2032, GRAS, and 7016 1\/4\u2032\u2032, ACO Pacific). Signals picked up by each microphone were band-pass filtered between 10 and 100\u2009kHz, amplified with a gain of 10\u00d7 (SBPBP-S1, Alligator Technologies) and recorded at a 250\u2009kHz sampling rate.<\/p>\n<p>Bat flight trajectories were recorded using a motion-capture camera system with 15 cameras (Vicon T40 and T40S), operating at 200 fps. Three reflective markers were affixed to a lightweight crown that was glued on the bat\u2019s head. These markers served as reference points for reconstructing 3D flight paths<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 63\" title=\"Lee, W.-J. et al. Tongue-driven sonar beam steering by a lingual-echolocating fruit bat. PLoS Biol. 15, e2003148 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR63\" id=\"ref-link-section-d25611206e4893\" rel=\"nofollow noopener\" target=\"_blank\">63<\/a>. Moreover, three markers were placed on each of the microphones in the room to capture the microphones\u2019 positions and directions. Infrared cameras (Phantom Miro 310, Vision Research) were used to record the bats\u2019 flight behaviour and confirm their position in the tunnel.<\/p>\n<p>Sonar gaze deviation and click-rate patterns were compared across different navigation trajectories: straight flights, 90\u00b0 turns and 180\u00b0 turns (U-turns). Sonar gaze deviation was defined as the angular deviation between each echolocation click\u2019s directional vector<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 63\" title=\"Lee, W.-J. et al. Tongue-driven sonar beam steering by a lingual-echolocating fruit bat. PLoS Biol. 15, e2003148 (2017).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR63\" id=\"ref-link-section-d25611206e4900\" rel=\"nofollow noopener\" target=\"_blank\">63<\/a> and the bat\u2019s instantaneous flight direction, with 0\u00b0 representing alignment between the two. Instantaneous flight direction was calculated as the vector between the bat\u2019s position in the current video-frame and its position in the subsequent video-frame. A three-point boxcar filter was applied to each click\u2019s sonar gaze measurement, and the absolute value of this smoothed average was used as a measure of the sonar gaze deviation.<\/p>\n<p>Sonar gaze deviation and click-rate were then measured relative to the time of the bat\u2019s turn. For each flight trajectory, the moment of maximum curvature was identified and set as time zero (turn time). All clicks were then aligned relative to this timepoint. The median sonar-gaze deviation across all clicks that occurred within a time window of 1\u2009s centred around time zero was compared between U-turns and 90\u00b0 turns, and showed similar sonar gaze deviation values between the two trajectory types (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14g<\/a>). This result further supports the finding that the echolocation behaviour of Egyptian fruit bats is comparable between U-turns and 90\u00b0 turns in the main experiment (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14d<\/a>). Thus, the fact that we observed strong retrospective coding after the 90\u00b0 turns (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>), but not after the U-turns in the long multicompartment tunnel (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig19\" rel=\"nofollow noopener\" target=\"_blank\">14h\u2013j<\/a>), suggests that the retrospective effect is not due to the motor action\u00a0of turning, or attention levels, but is instead\u00a0due to the past trajectory or context (the originating compartment).<\/p>\n<p>Additional discussion<\/p>\n<p>Previous theoretical studies had suggested that dense and sparse codes offer both computational advantages and disadvantages. Dense distributed codes\u2014whereby each neuron represents many inputs (locations) and, consequently, many neurons are active at any moment\u2014allow efficient coding, whereby a large number of different stimuli can be represented by a small number of neurons<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 51\" title=\"Malerba, S. B., Pieropan, M., Burak, Y. &amp; da Silveira, R. A. Random compressed coding with neurons. Cell Rep. 44, 115412 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR51\" id=\"ref-link-section-d25611206e4927\" rel=\"nofollow noopener\" target=\"_blank\">51<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 64\" title=\"Foldiak, P. in The Handbook of Brain Theory and Neural Networks 2nd edn (ed Arbib, M. A.) 1064&#x2013;1068 (MIT Press, 2003).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR64\" id=\"ref-link-section-d25611206e4930\" rel=\"nofollow noopener\" target=\"_blank\">64<\/a>. Sparse codes\u2014whereby each neuron represents only a few inputs, and where, consequently, only a small fraction of neurons are active at any moment\u2014allow higher memory capacity, efficient use of associative memory for storage and retrieval, and faster learning compared with dense codes<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Fiete, I. R., Hahnloser, R. H., Fee, M. S. &amp; Seung, H. S. Temporal sparseness of the premotor drive is important for rapid learning in a neural network model of birdsong. J. Neurophysiol. 92, 2274&#x2013;2282 (2004).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR36\" id=\"ref-link-section-d25611206e4934\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 64\" title=\"Foldiak, P. in The Handbook of Brain Theory and Neural Networks 2nd edn (ed Arbib, M. A.) 1064&#x2013;1068 (MIT Press, 2003).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR64\" id=\"ref-link-section-d25611206e4937\" rel=\"nofollow noopener\" target=\"_blank\">64<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 65\" title=\"Palm, G. Neural associative memories and sparse coding. Neural Netw. 37, 165&#x2013;171 (2013).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR65\" id=\"ref-link-section-d25611206e4940\" rel=\"nofollow noopener\" target=\"_blank\">65<\/a>. Furthermore, studies of artificial neural networks have demonstrated additional advantages of sparse coding. When sparse neural representations are enforced in the hidden layers of a network through regularization, this sparsification reduces computational complexity, helps avoid overfitting and enhances the network\u2019s generalization ability<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 66\" title=\"Hoefler, T., Alistarh, D., Ben-Nun, T., Dryden, N. &amp; Peste, A. Sparsity in deep learning: pruning and growth for efficient inference and training in neural networks. J. Mach. Learn. Res. 22, 241 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR66\" id=\"ref-link-section-d25611206e4944\" rel=\"nofollow noopener\" target=\"_blank\">66<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 67\" title=\"Ahmad, S. &amp; Scheinkman, L. How can we be so dense? The benefits of using highly sparse representations. Preprint at &#010;                https:\/\/arxiv.org\/abs\/1903.11257&#010;                &#010;               (2019).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR67\" id=\"ref-link-section-d25611206e4947\" rel=\"nofollow noopener\" target=\"_blank\">67<\/a>. Our results suggest that the hippocampus may use the advantages of both dense and sparse coding: Our spatial decoding analysis showed that the CA1 dense code allows high-efficiency positional encoding (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3a\u2013c<\/a>), and our neural network simulations showed that the CA3 sparse code allows faster learning of spatial maps in CA1 (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3d\u2013f<\/a>). Such rapid learning of CA1 maps is consistent with experimental findings on rapid emergence of place fields in CA1, supported by mechanisms of behavioural timescale synaptic plasticity<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 41\" title=\"Magee, J. C. &amp; Grienberger, C. Synaptic plasticity forms and functions. Annu. Rev. Neurosci. 43, 95&#x2013;117 (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR41\" id=\"ref-link-section-d25611206e4958\" rel=\"nofollow noopener\" target=\"_blank\">41<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 68\" title=\"Monaco, J. D., Rao, G., Roth, E. D. &amp; Knierim, J. J. Attentive scanning behavior drives one-trial potentiation of hippocampal place fields. Nat. Neurosci. 17, 725&#x2013;731 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR68\" id=\"ref-link-section-d25611206e4961\" rel=\"nofollow noopener\" target=\"_blank\">68<\/a>.<\/p>\n<p>Sparse representations can have multiple manifestations. We found here that spatial maps in CA3 are much sparser than those in CA1 within the same environment, in the sense that place cells in CA3 have much fewer fields than in CA1. Although previous studies of place cells in rodents have not found such large differences in spatial coding between the CA3 and CA1, it has been observed that CA3 cells are less likely to be active in each environment than CA1 place cells, that is, a smaller fraction of CA3 cells participates in spatial encoding for a given space<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 3\" title=\"Leutgeb, S., Leutgeb, J. K., Treves, A., Moser, M.-B. &amp; Moser, E. I. Distinct ensemble codes in hippocampal areas CA3 and CA1. Science 305, 1295&#x2013;1298 (2004).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR3\" id=\"ref-link-section-d25611206e4968\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 11\" title=\"Mizuseki, K., Royer, S., Diba, K. &amp; Buzs&#xE1;ki, G. Activity dynamics and behavioral correlates of CA3 and CA1 hippocampal pyramidal neurons. Hippocampus 22, 1659&#x2013;1680 (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR11\" id=\"ref-link-section-d25611206e4971\" rel=\"nofollow noopener\" target=\"_blank\">11<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Vazdarjanova, A. &amp; Guzowski, J. F. Differences in hippocampal neuronal population responses to modifications of an environmental context: evidence for distinct, yet complementary, functions of CA3 and CA1 ensembles. J. Neurosci. 24, 6489&#x2013;6496 (2004).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR27\" id=\"ref-link-section-d25611206e4974\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 69\" title=\"Alme, C. B. et al. Place cells in the hippocampus: eleven maps for eleven rooms. Proc. Natl Acad. Sci. USA 111, 18428&#x2013;18435 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR69\" id=\"ref-link-section-d25611206e4977\" rel=\"nofollow noopener\" target=\"_blank\">69<\/a>. Even stronger population-level sparsity was reported in the dentate gyrus<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Neunuebel, J. P. &amp; Knierim, J. J. Spatial firing correlates of physiologically distinct cell types of the rat dentate gyrus. J. Neurosci. 32, 3848&#x2013;3858 (2012).\" href=\"#ref-CR70\" id=\"ref-link-section-d25611206e4981\">70<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Jung, M. &amp; McNaughton, B. Spatial selectivity of unit activity in the hippocampal granular layer. Hippocampus 3, 165&#x2013;182 (1993).\" href=\"#ref-CR71\" id=\"ref-link-section-d25611206e4981_1\">71<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 72\" title=\"Treves, A., Tashiro, A., Witter, M. P. &amp; Moser, E. I. What is the mammalian dentate gyrus good for? Neuroscience 154, 1155&#x2013;1172 (2008).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR72\" id=\"ref-link-section-d25611206e4984\" rel=\"nofollow noopener\" target=\"_blank\">72<\/a>. In our study, we also observed stronger population-level sparsity in CA3 than in CA1 in bats (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2j<\/a>). This form of sparsity in the rodent CA3 and dentate gyrus has been a key ingredient for several computational models of hippocampal function<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Treves, A., Tashiro, A., Witter, M. P. &amp; Moser, E. I. What is the mammalian dentate gyrus good for? Neuroscience 154, 1155&#x2013;1172 (2008).\" href=\"#ref-CR72\" id=\"ref-link-section-d25611206e4991\">72<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Ketz, N., Morkonda, S. G. &amp; O&#x2019;Reilly, R. C. Theta coordinated error-driven learning in the hippocampus. PLoS Comp. Biol. 9, e1003067 (2013).\" href=\"#ref-CR73\" id=\"ref-link-section-d25611206e4991_1\">73<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Schapiro, A. C., Turk-Browne, N. B., Botvinick, M. M. &amp; Norman, K. A. Complementary learning systems within the hippocampus: a neural network modelling approach to reconciling episodic memory with statistical learning. Phil. Trans. R. Soc. B 372, 20160049 (2017).\" href=\"#ref-CR74\" id=\"ref-link-section-d25611206e4991_2\">74<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 75\" title=\"Treves, A. &amp; Rolls, E. T. Computational analysis of the role of the hippocampus in memory. Hippocampus 4, 374&#x2013;391 (1994).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR75\" id=\"ref-link-section-d25611206e4994\" rel=\"nofollow noopener\" target=\"_blank\">75<\/a>, which highlights again the theoretical advantages of this architecture. We propose that the sparse-to-dense coding transformation between CA3 and CA1 that we identified here may constitute one stage in a broader sparse-to-dense information-processing hierarchy, extending from the sparsest region, the dentate gyrus, through CA3, to CA1, and possibly ending with the highly dense subiculum<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 10\" title=\"Barnes, C. A., McNaughton, B. L., Mizumori, S. J., Leonard, B. W. &amp; Lin, L. H. Comparison of spatial and temporal characteristics of neuronal activity in sequential stages of hippocampal processing. Prog. Brain Res. 83, 287&#x2013;300 (1990).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR10\" id=\"ref-link-section-d25611206e4998\" rel=\"nofollow noopener\" target=\"_blank\">10<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"Mizuseki, K. &amp; Kitanishi, T. Oscillation-coordinated, noise-resistant information distribution via the subiculum. Curr. Opin. Neurobiol. 75, 102556 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR28\" id=\"ref-link-section-d25611206e5001\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Sharp, P. E. &amp; Green, C. Spatial correlates of firing patterns of single cells in the subiculum of the freely moving rat. J. Neurosci. 14, 2339&#x2013;2356 (1994).\" href=\"#ref-CR76\" id=\"ref-link-section-d25611206e5004\">76<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Kitanishi, T., Umaba, R. &amp; Mizuseki, K. Robust information routing by dorsal subiculum neurons. Sci. Adv. 7, eabf1913 (2021).\" href=\"#ref-CR77\" id=\"ref-link-section-d25611206e5004_1\">77<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Ledergerber, D. et al. Task-dependent mixed selectivity in the subiculum. Cell Rep. 35, 109175 (2021).\" href=\"#ref-CR78\" id=\"ref-link-section-d25611206e5004_2\">78<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 79\" title=\"Kim, S. M., Ganguli, S. &amp; Frank, L. M. Spatial information outflow from the hippocampal circuit: distributed spatial coding and phase precession in the subiculum. J. Neurosci. 32, 11539&#x2013;11558 (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR79\" id=\"ref-link-section-d25611206e5007\" rel=\"nofollow noopener\" target=\"_blank\">79<\/a>. A similar proposal can be found in the literature<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"Mizuseki, K. &amp; Kitanishi, T. Oscillation-coordinated, noise-resistant information distribution via the subiculum. Curr. Opin. Neurobiol. 75, 102556 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR28\" id=\"ref-link-section-d25611206e5012\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a>. We view our model focusing on the CA3-to-CA1 connectivity as a first approximation for the hippocampal computation, and suggest that future neural recordings should be performed in large environments from all of these subregions, as well as from entorhinal cortex and CA2, to elucidate the contribution of these areas to hippocampal spatial computations.<\/p>\n<p>Finally, we found in the landmark perturbation experiment (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>) that in response to a local spatial perturbation in the environment, CA1 neurons\u2014but not CA3 neurons\u2014showed over-representation of firing-rate changes around the perturbed landmark. We note that this difference in responses between CA1 and CA3 place cells may be consistent with previous rodent studies showing that CA3 place fields typically tile environments rather uniformly, whereas CA1 place fields tend to accumulate around locations associated with learning, such as reward sites<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 80\" title=\"Dupret, D., O&#x2019;neill, J., Pleydell-Bouverie, B. &amp; Csicsvari, J. The reorganization and reactivation of hippocampal maps predict spatial memory performance. Nat. Neurosci. 13, 995&#x2013;1002 (2010).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR80\" id=\"ref-link-section-d25611206e5022\" rel=\"nofollow noopener\" target=\"_blank\">80<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 81\" title=\"Li, Y., Briguglio, J. J., Romani, S. &amp; Magee, J. C. Mechanisms of memory-supporting neuronal dynamics in hippocampal area CA3. Cell 187, 6804&#x2013;6819 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-10537-0#ref-CR81\" id=\"ref-link-section-d25611206e5025\" rel=\"nofollow noopener\" target=\"_blank\">81<\/a> (although we note that we did not observe accumulation of place fields but rather accumulation of changes in fields near the perturbation area).<\/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-10537-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"Bats Fifteen adult male Egyptian fruit bats (Rousettus aegyptiacus) were included in this study for neural recording experiments&hellip;\n","protected":false},"author":2,"featured_media":505917,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[74],"tags":[18,48949,1099,19,17,1100,133,219623,82],"class_list":["post-505916","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-eire","tag-hippocampus","tag-humanities-and-social-sciences","tag-ie","tag-ireland","tag-multidisciplinary","tag-science","tag-spatial-memory","tag-technology"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/505916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/comments?post=505916"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/505916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media\/505917"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media?parent=505916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/categories?post=505916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/tags?post=505916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}