Skip to main content
eLife logoLink to eLife
. 2022 Jun 23;11:e76051. doi: 10.7554/eLife.76051

Cognitive experience alters cortical involvement in goal-directed navigation

Charlotte Arlt 1, Roberto Barroso-Luque 1, Shinichiro Kira 1, Carissa A Bruno 1, Ningjing Xia 1, Selmaan N Chettih 1, Sofia Soares 1, Noah L Pettit 1, Christopher D Harvey 1,
Editors: Mathieu Wolff2, Joshua I Gold3
PMCID: PMC9259027  PMID: 35735909

Abstract

Neural activity in the mammalian cortex has been studied extensively during decision tasks, and recent work aims to identify under what conditions cortex is actually necessary for these tasks. We discovered that mice with distinct cognitive experiences, beyond sensory and motor learning, use different cortical areas and neural activity patterns to solve the same navigation decision task, revealing past learning as a critical determinant of whether cortex is necessary for goal-directed navigation. We used optogenetics and calcium imaging to study the necessity and neural activity of multiple cortical areas in mice with different training histories. Posterior parietal cortex and retrosplenial cortex were mostly dispensable for accurate performance of a simple navigation task. In contrast, these areas were essential for the same simple task when mice were previously trained on complex tasks with delay periods or association switches. Multiarea calcium imaging showed that, in mice with complex-task experience, single-neuron activity had higher selectivity and neuron–neuron correlations were weaker, leading to codes with higher task information. Therefore, past experience is a key factor in determining whether cortical areas have a causal role in goal-directed navigation.

Research organism: Mouse

Introduction

The activity of neurons in the mammalian cortex and its correlation with aspects of sensation, cognition, and action have been studied extensively using decision tasks, but the factors that determine whether cortical areas are actually necessary for these tasks are not fully understood (Gold and Shadlen, 2007; Hanks et al., 2006; Katz et al., 2016; Salzman et al., 1990). Across studies, the necessity of cortical areas has been tested during tasks that involve different sensory, behavioral, and cognitive features (Ceballo et al., 2019; Erlich et al., 2011; Fischer et al., 2020; Goard et al., 2016; Guo et al., 2014; Harvey et al., 2012; Inagaki et al., 2018; Licata et al., 2017; Raposo et al., 2014; Yang and Zador, 2012; Zhou and Freedman, 2019; Znamenskiy and Zador, 2013). Collectively, these studies have formed proposals on the types of tasks for which specific cortical areas are essential. For example, in rodents, posterior parietal cortex (PPC) is necessary for visual but not some auditory discrimination tasks (Licata et al., 2017) and is considered to be especially involved in tasks that have a short-term memory component, such as a delay period between sensory cues and choice reports, or a requirement for evidence accumulation over time (Lyamzin and Benucci, 2019). As another example, area LIP in monkeys is thought to be essential for sensory but not motor aspects of visual motion discrimination tasks (Zhou and Freedman, 2019). Notably, these studies have focused on how specific features of a task-of-interest determine which cortical areas are causally involved. However, in addition to the task-of-interest in a study, individual animals have learned a variety of associations throughout their lifetime and may have performed a diversity of tasks previously, often with different experiences between individuals. Although it is intuitive that past learning, beyond the demands of the task-of-interest, may impact how individuals perform decision tasks, most studies have not investigated the effect of past learning on the involvement of cortex. It therefore is not well understood how learning of previous tasks affects the necessity of cortical activity.

Two previous studies investigated this topic in the sensory domain, comparing the involvement of visual area MT in depth and motion perception in monkeys with different perceptual experience (Chowdhury and DeAngelis, 2008; Liu and Pack, 2017). For coarse depth discrimination, MT was only necessary in monkeys that had no prior experience in fine depth discrimination tasks (Chowdhury and DeAngelis, 2008), showing a decrease in cortical involvement with additional experience. In contrast, for motion discrimination, previous training on moving dot stimuli rendered MT necessary for discriminating the motion of gratings (Liu and Pack, 2017), showing that sensory experience can also increase cortical involvement. Relatedly, studies of motor learning have shown that cortex is essential during the learning process but becomes dispensable after learning is completed (Hwang et al., 2019; Kawai et al., 2015). In these cases, the animal’s prior training was largely based on sensory or motor experience. However, studies have not investigated as extensively the impact of ‘cognitive experience’ on cortical necessity, which we broadly define as learning that extends beyond sensory or motor learning and includes learning of task rules and associations.

To explore the effects of cognitive experience on cortical necessity during decision tasks, we used the well-studied paradigm of spatial navigation, in which mice use sensory cues to navigate toward goal locations. Specifically, we used a virtual reality Y-maze in which mice encounter one of two visual cues and use the cue to virtually navigate to the left or right Y-arm to receive a reward (Harvey et al., 2012). This paradigm involves decision-making because it requires mice to choose one of two Y-arms based on a learned association with a visual cue. Furthermore, it involves navigation because mice must execute a sequence of movements to reach a goal location in a virtual environment, and movement through virtual mazes is known to recruit navigation-related circuits (Aronov and Tank, 2014; Domnisoru et al., 2013; Harvey et al., 2009). We therefore refer to our paradigm as goal-directed navigation, which implicitly includes decision-making to choose a goal location. We focused on two cortical association areas implicated in goal-directed navigation tasks, PPC and retrosplenial cortex (RSC) (Driscoll et al., 2017; Fischer et al., 2020; Goard et al., 2016; Harvey et al., 2012; Morcos and Harvey, 2016). PPC has been studied extensively in the context of decision-making across species and is generally thought to convert sensory cues into motor plans (Freedman and Ibos, 2018). Moreover, a comparison of several inactivation studies in rodents suggested that specific task components relying on short-term memory may determine whether PPC is necessary for a given decision task (Lyamzin and Benucci, 2019), offering a suitable entry point for exploring the effects of cognitive experience. PPC is strongly interconnected with RSC, which is considered to be critical for reference frame transformations underlying basic navigation and to support spatial memory across various timescales (Alexander et al., 2020; Alexander and Nitz, 2015; Fischer et al., 2020; Milczarek et al., 2018; Pothuizen et al., 2009; Powell et al., 2017). RSC is furthermore involved in cognitive processes beyond spatial navigation, such as context-dependent cue–choice associations, temporal learning, and value coding (Franco and Goard, 2021; Hattori et al., 2019; Todd et al., 2015), making it an especially interesting area to study in the context of cognitive experience.

To investigate the impact of cognitive experience on the necessity of these areas, we trained mice to perform different variants of a navigation task in virtual reality. One group of mice was trained only on a simple navigation task, whereas other groups were trained on complex tasks before being transitioned to the same simple task. The complex tasks involved the same visual cues and choice reports as the simple task but contained additional delay periods or association switches hypothesized to account for PPC involvement (Lyamzin and Benucci, 2019). This ensured that sensory and movement aspects of the complex and simple tasks were as identical as possible and allowed us to test the effect of ‘cognitive experience’ instead of perceptual or motor learning. Thus, this design tested the effect of cognitive experience on already learned associations and is potentially distinct from how cognitive experience may affect learning of new tasks involving novel associations, as in schema learning (Bartlett, 1932; McKenzie et al., 2013; Piaget, 1926; Tse et al., 2007) and learning sets (Caglayan et al., 2021; Eichenbaum et al., 1986; Harlow, 1949).

We discovered that mice with different previous task experience used distinct sets of brain areas to solve the same simple task. During the simple navigation task, mice without prior training on complex tasks performed well above chance levels when RSC or PPC was inhibited using optogenetics. In contrast, during the same simple task, mice with prior complex-task training performed close to chance levels when these areas were inhibited. In addition, calcium imaging revealed that prior complex-task experience resulted in increased selectivity of neural activity patterns for task-relevant variables and decreased correlations in neural activity during the simple task. Thus, individuals with distinct cognitive experience make outwardly identical navigation decisions using different combinations of brain areas and neural activity patterns. We suggest that, because neural circuits are optimized for a wide range of computations beyond the ones required by a current task-of-interest, a global set of constraints and optimizations can dramatically impact the cortical areas that are necessary during goal-directed navigation.

Results

Increased necessity of cortical association areas in complex versus simple tasks

We developed a paradigm in which head-restrained mice running on a spherical treadmill were trained to use visual cues to make navigation decisions in a virtual reality Y-maze (Figure 1A, B). We used this paradigm to create a ‘simple task’ and two ‘complex tasks’. In the simple task, mice learned to associate visual cues – horizontal and vertical bars – with left and right turns, respectively, to obtain rewards. In this task, the visual cue was present throughout the entire Y-maze, and the rewarded cue–choice associations (e.g., horizontal bars-left choice) did not change (Figure 1C).

Figure 1. Increased necessity of cortical association areas in complex versus simple decision tasks.

(A) Schematic overview of the behavioral tasks and task training sequences used in this study. Top row: One group of mice is trained in the simple task only. Middle row: Another group of mice is trained on the delay task and then transitioned to the simple task. Bottom row: Another group of mice is trained on the switching task and then transitioned to the simple task. The middle and bottom rows indicate complex training histories. (B) Top: Schematic of virtual reality behavioral setup. Bottom right: Schematic of optogenetic inhibition with bilateral target locations. Bottom left: Top view of Y-maze. Inhibition lasted from trial onset throughout maze traversal. (C) Left: Simple task schematic indicating two trial types (horizontal or vertical cues) and corresponding rewarded navigation decisions (running left or right). Corresponding VR screenshots at the trial start are below. Right: Top view of the two maze schematics. Water drops indicate hidden reward locations. (D) Left: Example session in the simple task showing mean performance for each inhibited location. Right: Performance in the simple task for each inhibited location across 45 sessions from 4 mice. Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. S1 p = 0.84; RSC p < 0.001; PPC p = 0.006; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. *: p < 0.05; **: p < 0.01; ***: p < 0.001. Sessions per mouse: 11 ± 2. Trials per session: 53 ± 23 (control), 19 ± 8 (S1), 18 ± 9 (RSC), 20 ± 9 (PPC), mean ± standard deviation (SD). (E) Similar to (C), but for the delay task. (F) Similar to (D), but for the delay task. Sixty-two sessions from 7 mice. S1 p = 0.006; RSC p < 0.001; PPC p < 0.001. Sessions per mouse: 9 ± 4. Trials per session: 60 ± 15 (control), 16 ± 6 (S1), 15 ± 4 (RSC), 17 ± 5 (PPC), mean ± SD. (G) Left: Schematic of the switching task, utilizing the identical mazes as the simple task. The cue–choice associations from the simple task (Rule A) were switched within a session (to Rule B). Right: Behavioral performance from an example session. Dotted orange lines indicate rule switches. (H) Similar to (D), but for the switching task, Rule A trials only. 89 sessions from 6 mice. S1 p = 0.036; RSC p < 0.001; PPC p < 0.001. Sessions per mouse: 15 ± 5. Trials per session: 26 ± 9 (control), 8 ± 3 (S1), 7 ± 4 (RSC), 8 ± 3 (PPC), mean ± SD. (I) Comparison of inhibition effects (ΔFraction Correct) in the simple and the delay tasks for each cortical inhibition location. Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. *: p < 0.05; **: p < 0.01; ***: p < 0.001. Same datasets as in (F, G). (J) Similar to (I), but for the simple versus switching task (Rule A trials only). Same datasets as in (F, H). The simple task data are the same as in (I). (K) Left: Comparison of performance on control trials across tasks, using only the first two laser-on blocks in each session. Bars indicate mean ± SEM of a bootstrap distribution of the mean. Delay versus simple p < 0.001; switching versus simple p < 0.001; two-tailed comparisons of bootstrapped Fraction Correct distributions, α = 0.05. *** p < 0.001. Right: The number of training sessions needed to reach performance criteria across tasks (Methods). Bars indicate mean ± SEM across mice, n = 4 for simple task, n = 5 for delay task, n = 6 for switching task. Both delay and switching task data were compared to the simple task data using an unpaired two-sided t-test. Delay versus simple p = 0.015; switching versus simple p = 0.006. *: p < 0.05, **: p < 0.01.

Figure 1.

Figure 1—figure supplement 1. Behavioral training stages and task transitions.

Figure 1—figure supplement 1.

(A) Behavioral training stages for mice trained on the simple task only. Top: In the initial training stage, to get used to running in the virtual environment, mice learned to run down a linear maze toward a checkerboard pattern to obtain a reward. Linear maze length was gradually increased across sessions. Left: The number of days spent in this training stage across mice and tasks (including mice from (B) (top) and (C) (top)). Error bars indicate mean ± standard error of the mean (SEM) across 13 mice. Middle: The second training stage was the simple task with 100% visually guided trials, meaning the correct choice to be made in each trial was indicated with a checkerboard pattern at the left or right maze end depending on the visual cue on the maze walls. Across sessions, the fraction of visually guided trials was gradually decreased (dotted arrow), until only 10% of trials were visually guided in the full simple task (bottom). Left: The number of training days that mice were trained on the simple task, regardless of the fraction of visually guided trials (mean ± SEM across 4 mice). Note that the number of training days is the overall number of days mice were run on the simple task prior to photoinhibition sessions, including sessions after they had reached high simple task performance levels. (B) Similar to (A), but for mice trained on the delay task. The first three training stages are the same as in (A). After full simple task training, mice were moved to the delay task. In this stage, the delay was gradually increased, and the visual cue was shortened across sessions. Left: The number of days spent on the delay stage (mean ± SEM across seven mice). Bottom: After delay task training and photoinhibition, five out of seven mice were transitioned to the simple task (see Figure 2). (C) Similar to (A), but for mice trained on the switching task. After initial linear maze training, the second training stage was the switching task with 100% visually guided trials. The fraction of visually guided trials was gradually decreased across sessions (dotted arrow). Right: The number of training days that mice were trained on the switching task, regardless of the fraction of visually guided trials (mean ± SEM across six mice). Bottom: After switching task training and photoinhibition, five out of six mice were transitioned to the simple task (see Figure 3).
Figure 1—figure supplement 2. Choice decoding from running, stability of inhibition effects and choice biases from inhibition across tasks.

Figure 1—figure supplement 2.

(A) Left: Decoding accuracy of the reported choice using instantaneous treadmill velocities and lateral position, binned along the maze’s long axis (5 cm bins) per task, using control trials only. Shading indicates mean ± standard error of the mean (SEM) across sessions. Dashed lines indicate the different maze segments. In the delay task, the choice-informative cue was only present in the first maze segment (stem first half). Right: First maze position (as a fraction of the maze long axis) at which decoding of choice exceeded 90%, approximating decision points in the maze. Error bars indicate mean ± SEM across sessions. Compared to simple task: delay task p = 1.91 × 10−06; switching task p = 0.74; two-sample t-test with α = 0.05. Sessions per task per mouse: 11± 2 (simple, four mice), 12 ± 5 (delay, seven mice), and 15 ± 5 (switching, six mice, Rule A trials only). (B) Maze decision positions are plotted versus the inhibition effects on task performance for each cortical inhibition location. Circles indicate individual sessions color coded by task as in (A). Black line: regression line, error bars: 95% confidence intervals. N sessions overall: 166 (S1), 167 (RSC), and 175 (PPC). (C) For each cortical inhibition location, the number of experienced simple task sessions is plotted versus the inhibition effect on performance in the simple task (n = 45 sessions). Circles indicate individual sessions. Black line: regression line, error bars: 95% confidence intervals. (D) Signed choice bias (left) and unsigned choice bias (right) for each inhibited location in the simple task. Line colors indicate different mice. Error bars indicate mean ± SEM across sessions. 11 ± 2 sessions per mouse. (E) Similar to (C), but for the delay task. N = 62 sessions. (F) Similar (D), but for the delay task. 12 ± 5 sessions per mouse. (G) Similar to (C), but for the switching task. N sessions = 61 (S1), 62 (RSC), and 70 (PPC). (H) Similar to (D), but for the switching task. 15 ± 5 sessions per mouse.
Figure 1—figure supplement 3. Performance after rule switches and inhibition effects in high-performance periods of Rule B in the switching task.

Figure 1—figure supplement 3.

(A) In the switching task, behavioral performance after rule switches across rules from eight mice total (middle, switches per mouse: 23 ± 18) and separately for each rule (right, switches per mouse per rule: 11 ± 9 (mean ± standard deviation [SD])). Fraction Correct was Gaussian filtered (window of seven trials, sigma of three trials). Error bars indicate mean ± standard error of the mean (SEM) across mice. Dashed line indicates chance level. (B) Comparison of number of trials needed to reach performance criterion (Methods) after switches to Rule A versus switches to Rule B. p = 0.18, two-sample t-test, n = 91 switches to Rule A and 93 switches to Rule B across eight mice. (C) Performance in high-performance periods of Rule B in the switching task for each inhibited location across 87 sessions from 6 mice. Bars indicate mean ± SEM of a bootstrap distribution of the mean. S1 p = 0.07; RSC p < 0.001; PPC p < 0.001; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. ***: p < 0.001. Sessions per mouse: 15 ± 5. Trials per session: 29 ± 11 (control), 5 ± 5 (S1), 6 ± 5 (RSC), 7 ± 6 (PPC), mean ± SD. (D) Comparison of inhibition effects (ΔFraction Correct) in the simple task and the switching task (Rule B trials only) for each cortical inhibition location. Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. **: p < 0.01; ***: p < 0.001. (E) Comparison of performance on control trials in the simple task and Rule B trials of the switching task, using only the first two laser-on blocks in each session. Bars indicate mean ± SEM of a bootstrap distribution of the mean. p < 0.001; two-tailed comparison of bootstrapped Fraction Correct distributions, α = 0.05. ***: p < 0.001.
Figure 1—figure supplement 4. Similar deficits from inhibition in a run-to-target task as in the simple task.

Figure 1—figure supplement 4.

(A) Schematic and virtual reality screenshots of run-to-target task showing left and right trials. (B) Performance in the run-to-target task for each inhibited location across 15 sessions from 3 mice. Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. S1 p = 0.85; RSC p < 0.001; PPC p = 0.16; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. ***: p < 0.001. Sessions per mouse: 5 ± 2. Trials per session: 93 ± 11 (control), 26 ± 5 (S1), 24 ± 5 (RSC), 28 ± 6 (PPC), mean ± standard deviation (SD). (C) Comparison of performance on control trials in the simple task (same dataset as in Figure 1K) versus the run-to-target task using only the first two laser-on blocks in each session. Bars indicate mean ± SEM of a bootstrap distribution of the mean; p < 0.001, two-tailed comparison of bootstrapped Fraction Correct distributions, α = 0.05. ***: p < 0.001. Trials per session: 51 ± 23 (simple task), 93 ± 11 (run-to-target task), mean ± SD. (D) Comparison of inhibition effects (ΔFraction Correct) in the simple task (same dataset as in Figure 1F) and the run-to-target task for each cortical inhibition location. Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05.
Figure 1—figure supplement 5. Cue only or delay only inhibition in the delay task.

Figure 1—figure supplement 5.

(A) Left: Schematic of the delay task. Right: Inhibition was restricted to either the cue period only or the delay period only in a given session. (B) Performance in the delay task with cue only (blue, 48 sessions from 5 mice) or delay only (green, 45 sessions from 5 mice) inhibition for each inhibited location. Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. For cue only or delay only inhibition individually, inhibition performance was compared to control performance, two-tailed test, α = 0.05 plus Bonferroni correction. Cue only: S1 p = 0.09; RSC p < 0.001; PPC p < 0.001. Sessions per mouse: 10 ± 2. Trials per session: 59 ± 16 (control), 14 ± 6 (S1), 14 ± 5 (RSC), 15 ± 5 (PPC), mean ± standard deviation (SD). Delay only: S1 p = 0.27; RSC p < 0.001; PPC p < 0.001. Sessions per mouse: 9 ± 2. Trials per session: 61 ± 15 (control), 14 ± 5 (S1), 15 ± 4 (RSC), 15 ± 5 (PPC), mean ± SD. (C) Comparison of inhibition effects (ΔFraction Correct) in the simple task (same dataset as in Figure 1F) and the delay task with cue inhibition only for each cortical location. Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. (D) Similar to (C), but for delay inhibition only in the delay task.
Figure 1—figure supplement 6. Performance on trials following inhibition and rule switching with inhibition during the feedback/ITI period.

Figure 1—figure supplement 6.

(A) Left: Schematic of the inhibition locations (same as in Figure 1). Middle: Inhibition lasted from trial onset throughout maze traversal. Right: As in Figure 1, inhibition target locations per trial were randomly interleaved. Analysis here used performance on control trials that directly followed inhibition of the labeled location on the preceding trial. (B) Performance on control trials immediately following an inhibition trial, for the simple task, for each inhibited location across 45 sessions from 4 mice. Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. S1 p = 1; RSC p = 1; PPC p = 1; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. Sessions per mouse: 11 ± 2. Trials per session: 22 ± 12 (control), 8 ± 3 (S1), 8 ± 4 (RSC), 9 ± 4 (PPC), mean ± standard deviation (SD). (C) Similar to (B), except for the delay task. Sixty-two sessions from seven mice. S1 p = 1; RSC p = 0.12; PPC p = 0.50. Sessions per mouse: 9 ± 4. Trials per session: 29 ± 8 (control), 8 ± 3 (S1), 9 ± 4 (RSC), 7 ± 3 (PPC). (D) Similar to (B), except for the switching task (Rule A trials only). 89 sessions from 6 mice. S1 p = 0.66; RSC p = 0.27; PPC p = 0.19. Sessions per mouse: 15 ± 5. Trials per session: 13 ± 6 (control), 4 ± 2 (S1), 5 ± 2 (RSC), and 4 ± 2 (PPC). (E) Top: Schematic of the switching task. Bottom: Schematic of a single trial with inhibition during the feedback and ITI period. (F) Left: Schematic of PPC and control targets. Right top: Example behavioral performance in one session in the switching task. Right bottom: Inhibition blocks of 50 trials started after a rule switch, with inhibition during the feedback/ITI period. The same area was targeted on every trial. (G) Average performance after a rule switch with PPC (blue) or control (black) inhibition on every trial during the feedback/ITI. Thirty-three sessions from four mice (8 ± 2 sessions per mouse, mean ± SD). Shading indicates mean ± SEM across sessions. Thin lines indicate single sessions. Fraction Correct was Gaussian filtered (window of seven trials, sigma of three trials) and smoothed again with a moving average filter of three trials for plotting. (H) Comparison of mean performance with PPC versus control inhibition after a rule switch in bins of 10 trials. Error bars indicate mean ± SEM across sessions, gray lines show single sessions (n = 33). Paired two-sided t-tests. p (trials 1–10): 0.42; p (trials 11–20): 0.43; p (trials 21–30): 0.64; p (trials 31–40): 0.66; p (trials 41–50): 0.34.

The complex tasks were designed based on the same Y-maze concept and used the identical horizontal and vertical bars as visual cues. In the ‘delay task’, the visual cues were only present at the beginning of the maze, followed by a neutral visual pattern on the walls for the remainder of the maze (Figure 1E). This neutral pattern was identical across trials and did not provide information about the reward location. We chose this task design because it is common in decision tasks to insert a delay period between the sensory cues and choice reports and because this task has previously been shown to require activity in PPC (Driscoll et al., 2017; Harvey et al., 2012; Pinto et al., 2019). Mice trained on the delay task were initially trained on the simple task, and then the delay was introduced and gradually increased across sessions (Figure 1—figure supplement 1). Interestingly, mice apparently made decisions early in the trial even before the onset of the delay segment, as suggested by an early divergence in running trajectories for left and right choices (Figure 1—figure supplement 2). Nevertheless, task performance was lower in the delay task than the simple task, suggesting that the additional delay period increased task difficulty (Figure 1K).

We created another complex task termed the ‘switching task’, approximating more dynamic real-world environments in which associations between cues and rewarded actions change frequently. In the switching task, the rewarded relationships between the visual cues and left–right choices were switched across blocks several times within a single session, resulting in two rules (Rules A and B) (Figure 1G). The same visual cue was thus associated with left choices in one rule block and right choices in the other rule block. The value of each cue and action was constant across switches, in contrast to tasks with changing reward probabilities. The current rule and rule switch were not explicitly signaled, so mice inferred rule switches by trial and error and stored a belief of the current rule in short-term memory. Accordingly, after rule switches, performance dropped and then recovered to high and stable levels after tens of trials (Figure 1G), with similar performance recovery after both rule switches (Figure 1—figure supplement 3). For one of the two rules (Rule A), the trials were designed to be exactly the same as in the simple task, including the same cues and rewarded choices. In fact, the software code used to create the virtual environments was identical between the simple task and Rule A of the switching task. We chose this task design because rule switches are commonly used in decision tasks (Johnston et al., 2007; Saez et al., 2015; Siniscalchi et al., 2016), and the switch allowed us to preserve identical trials between Rule A and the simple task.

Across the simple and two complex tasks, mice experienced the same choice-informative sensory cues and had to run through similar or identical mazes to report their choices. Thus, the key difference between the simple and complex tasks was due to ‘cognitive’ complexity through the addition of a delay period or frequent switches in the associations, rather than differences in the sensory cues informing choices or differences in motor output.

We tested the necessity of various cortical areas during the simple and complex tasks using optogenetics to activate GABAergic interneurons, which leads to silencing of nearby excitatory neurons (Guo et al., 2014; Li et al., 2019; Minderer et al., 2019). Channelrhodopsin-2 (ChR2) was expressed in inhibitory interneurons in transgenic mice and photostimulated using a clear-skull preparation with a two-dimensional laser scanning system (Figure 1B). We focused inhibition on two cortical association areas previously linked to decision-making and navigation, PPC and RSC (Driscoll et al., 2017; Fischer et al., 2020; Harvey et al., 2012). To match each area’s anatomical extent, we used three inhibition spots in each hemisphere for RSC and one spot per hemisphere for PPC. As a control, we inhibited a spot in primary somatosensory cortex (S1), an area not implicated in visual decision-making (Figure 1B). Inhibition trials were interleaved with control trials in which the laser spot was positioned outside the mouse’s brain. On inhibition trials, photostimulation was applied bilaterally and throughout the duration of the mouse’s maze traversal.

We first considered inhibition effects on performance of the simple task in mice that had only been trained in the simple task (Figure 1D). Silencing S1 did not affect performance, and inhibition of PPC resulted in a very small performance decrease, with mean performance of 90 ± 2% correct (mean ± standard error of the mean [SEM]). Inhibition of RSC had the largest effect, resulting in intermediate performance levels of 77 ± 3% correct. However, mice still performed well above chance (50% correct). To assess whether the effect of RSC inhibition was specific to the cognitive requirements of the simple task or related to lower-level processes required for task performance such as vision, movement, and basic navigation, we silenced the same areas in an even simpler task in which mice ran toward a visual target present on either side of the maze end to obtain rewards (Harvey et al., 2012). Effects on performance were similar in this run-to-target task, suggesting that RSC inhibition in the simple task may impair lower-level processes such as basic navigation instead of decision-making based on cue–choice associations (Figure 1—figure supplement 4). Together, these results indicate that the cortical areas we silenced were only modestly involved in the simple task.

We next considered the effects of inhibition on mice performing the delay task or the switching task (Figure 1E-H). In the switching task, we silenced cortical areas during the periods of high performance after accuracy had recovered following a rule switch (Figure 1G) and initially focused analysis only on Rule A trials, as they are the exact same trials as present in the simple task. S1 inhibition during the complex tasks caused a modest decrease in performance, but mice still performed the tasks at high levels (Figure 1F, H). In contrast, inhibition of PPC or RSC greatly impaired performance in the delay and switching tasks and resulted in performance of 55 ± 3% correct, which is close to chance levels. With PPC and RSC inhibition, many mice exhibited biases in the choices they made, whereas others appeared to choose randomly between left and right (Figure 1—figure supplement 2). The effects of inhibiting PPC and RSC were markedly larger in the delay and switching tasks than in the simple task (Figure 1I, J). Therefore, adding a delay epoch to the trial or frequent association switches across trials increased the necessity of cortex relative to the simple task. Similar results were observed when comparing the simple task to Rule B trials of the switching task (Figure 1—figure supplement 3). Furthermore, inhibition effects appeared stable across dozens of experienced sessions and were independent of how early in the maze a mouse’s choice could be inferred from its running pattern (Figure 1—figure supplement 2).

We also asked whether the increased cortical necessity was especially apparent in the task period that was changed compared to the simple task. In the delay task, we thus restricted photoinhibition to the cue or the delay segment of the trial (Figure 1—figure supplement 5). Inhibition of PPC or RSC in both trial segments decreased performance to a greater degree than in the simple task, indicating that PPC and RSC are necessary for multiple epochs of the task. In the switching task, the main difference relative to the simple task is the introduction of association switches, so activity in PPC and RSC may be necessary for storing or updating the rule. Taking advantage of interleaved control and inhibition trials, we found that the effects of inhibition were restricted to the current trial, as inhibition did not affect subsequent control trials (Figure 1—figure supplement 6). We also looked for a role in updating the rule, which is likely critical following the completion of a trial, in particular after a rule switch. We focused on PPC as a candidate for updating the rule because PPC has sensory- and choice-related history signals (Akrami et al., 2017; Morcos and Harvey, 2016). We silenced PPC during the intertrial interval on every trial following a rule switch, for 50 consecutive trials. However, PPC inhibition did not affect the recovery of performance after a rule switch (Figure 1—figure supplement 6). Together, these results suggest that the large inhibition effects during the switching task are not due to impaired storing or updating of the rule. Thus, the increased necessity of PPC and RSC during the delay and switching tasks did not appear to be specific to the added task components.

Overall, our results indicate that more complex tasks require cortical activity, specifically in PPC and RSC, to a larger extent than a simple task. We verified that the complex tasks were indeed more challenging for mice. Relative to the simple task, it took mice longer to become experts at the delay and switching tasks (Methods), and their performance on control trials was lower (Figure 1K). These findings are consistent with, and extend, previous work that concluded cortical necessity increases with task complexity (Harvey et al., 2012; Pinto et al., 2019).

The necessity of PPC and RSC depends on a mouse’s previous cognitive experience

This set of tasks provided a platform for testing the effects of cognitive experience on cortical necessity for simple task performance, by comparing groups of mice with or without previous training on the complex tasks. A first group of mice was only trained on the simple task. The second group was first trained on one of the complex tasks and then transitioned to the simple task for 14 consecutive sessions (one session per day), without experiencing the complex task again. Different cohorts of mice were transitioned to the simple task from the switching and delay tasks (also see Figure 1—figure supplement 1). Note that both for mice trained on the delay and switching tasks, the simple task is not a novel task in that it contains the same cue–choice associations as those learned in each complex task. This design allowed us to compare different mice performing the same task (the simple task) but with distinct training histories.

We first considered the mice that were trained to be experts on the delay task and then transitioned to the simple task (Figure 2A). In these mice, inhibition of PPC and RSC during the simple task greatly impaired behavioral performance to 67 ± 3% and 62 ± 2% correct (mean ± SEM), respectively (Figure 2B, C). Thus, these mice needed PPC and RSC activity to perform at high levels on the simple task. These results were strikingly different from the inhibition effects in mice trained only on the simple task. Without complex-task experience, mice performed at 90 ± 2% and 77 ± 3% correct with PPC or RSC inhibited (Figure 2C), respectively, indicating they did not strongly rely on PPC or RSC activity for task performance. In contrast, inhibition of S1 had little effect on performance in the simple task both with and without previous delay task training. The larger effect of PPC and RSC inhibition due to previous delay task experience was not only apparent immediately after the transition to the simple task but persisted for the full 2 weeks that we investigated (Figure 2D, E). Therefore, the effect of PPC and RSC inhibition had markedly larger effects in the simple task when mice had previous training in the delay task, both in the first and second weeks after the task transition. Thus, mice with distinct previous task experience require different cortical areas to perform the same task.

Figure 2. Delay task experience increases the necessity of RSC and PPC in a simple decision task.

(A) Schematic of the training history sequence. One group of mice was trained on the delay task and then permanently transitioned to the simple task. This group of mice was compared to another group trained only on the simple task. (B) Performance of an example mouse transitioned from the delay task to the simple task on control and inhibition trials. (C) Performance in the simple task for each inhibited location in mice with simple task experience only (gray, 45 sessions from 4 mice, same dataset as in Figure 1F), and in mice with previous delay task experience (blue, 70 sessions from 5 mice). Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. S1 p = 0.012; RSC p < 0.001; PPC p < 0.001; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. *: p < 0.05; ***: p < 0.001. Sessions per mouse: 14. Trials per session: 53 ± 7 (control), 13 ± 3 (S1), 13 ± 2 (RSC), 14 ± 2 (PPC), mean ± standard deviation (SD). (D) Inhibition effects (ΔFraction Correct) across sessions in the simple task in mice with only simple task experience (gray), and in mice with previous delay task experience (blue), for each cortical inhibition location. Thin lines show individual mice (n = 4 with simple task experience, n = 5 with delay task experience), thick lines show average across mice. ΔFraction Correct was smoothed with a moving average filter of three sessions. (E) Comparison of inhibition effects (ΔFraction Correct) in the simple task for mice with simple task experience only (45 sessions from 4 mice) versus delay task experience 1 or 2 weeks after transition from the delay task to the simple task (35 sessions per week from 5 mice). Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. **: p < 0.01; ***: p < 0.001. Simple experience datasets are the same as in Figure 1F and Figure 2C. (F) Comparison of performance on control trials in the simple task with simple versus delay task experience, using only the first two laser-on blocks in each session. Bars indicate mean ± SEM of a bootstrap distribution of the mean. Simple task data in week 1 (p = 0.59) and week 2 (p = 0.19) after transition from the delay task were compared to the simple task only experience data; two-tailed comparisons of bootstrapped Fraction Correct distributions, α = 0.05. Trials per session: 51 ± 23 (simple experience), 51 ± 6 (delay experience, week 1), 53 ± 3 (delay experience, week 2), mean ± SD.

Figure 2.

Figure 2—figure supplement 1. Mice with complex-task experience perform at high levels in the simple task.

Figure 2—figure supplement 1.

(A) Top: Schematic of the training history sequence. Mice were trained on the delay task and then permanently transitioned to the simple task. Bottom: Performance on no-laser trials for each session after transition to the simple task. Bars indicate mean ± standard error of the mean (SEM) across mice (n = 5). Gray lines show individual mice. (B) Similar to (A), but for mice transitioned to the simple task from the switching task (n = 5). (C) Left: Performance for an example mouse with switching task experience across the first 30 trials per session for sessions 1, 2, and 14 in the simple task. Each session started with a block of no-laser trials (minimum of 50 trials) before the first laser-on block. Fraction Correct was Gaussian smoothed with a window size of seven trials, sigma of three trials. Middle: Average performance in the first 30 no-laser trials of a session in the simple task. Gray lines: individual mice. Bars indicate mean ± SEM across mice (n = 5). Right: Average initial performance in the switching task (orange, 90 sessions from 6 mice), in each week in the simple task of mice with previous switching task experience (red, 35 and 34 sessions from 5 mice in weeks 1 and 2, respectively), and in the simple task in mice with simple-task-only experience (gray, 45 sessions from 4 mice). Bars indicate mean ± SEM across sessions. Unpaired two-sided t-tests comparing performance in the simple task with and without switching task experience. Week 1: p = 0.00096, week 2: p = 0.43. ***: p < 0.001. (D) Schematic of task sequence: After training in the switching task, mice were transitioned to the simple task without any rule switches for 14 sessions. Then for a single session, mice were exposed to the rule they had not been exposed to for 14 sessions. (E) Performance in the rule mice had not experienced for 14 sessions. Gray lines: individual mice. Black line: average across mice. Lines are only shown until the next rule switch, which different mice encountered at different numbers of trials based on their performance.

This persistent effect of previous task experience is particularly surprising because the task transition should be immediately visually apparent to mice due to the lack of a delay period in each trial. We wondered whether mice with delay task experience may find the simple task to be challenging or need to undergo a significant learning phase to perform the simple task at expert levels. However, these mice performed at very high levels on trials without laser light even in the first session after the transition to the simple task (Figure 2—figure supplement 1). Relatedly, performance on control trials in the simple task was as high in mice with delay task experience as in mice with simple task experience only, indicating that subjective task difficulty did not differ depending on training history (Figure 2F). These results support the notion that the simple task was not a newly learned task but rather the same associations as learned for the delay task.

We reached a similar conclusion when we compared mice performing the simple task with and without previous training on the switching task (Figure 3A). In mice that had previously been experts on the switching task, PPC and RSC inhibition resulted in performance of 67 ± 3% and 61 ± 3% correct (mean ± SEM), respectively, on the simple task (Figure 3B, C). As for previous training on the delay task, this effect of PPC and RSC inhibition during the simple task was markedly larger than when these areas were inhibited in mice without previous training on the switching task (Figure 3D, E). PPC activity was necessary even 2 weeks after the transition to the simple task. RSC’s involvement was greatest in the first week after the transition. Therefore, mice with previous experience in the switching task require PPC and RSC activity to perform the simple task, whereas these areas are largely dispensable during performance of the same simple task in mice without this previous training.

Figure 3. Switching task experience increases the necessity of RSC and PPC in a simple decision task.

(A) Schematic of the training history sequence. One group of mice was trained on the switching task and then permanently transitioned to the simple task. This group of mice was compared to another group trained only on the simple task. (B) Performance of an example mouse transitioned from the switching task to the simple task on control and inhibition trials. (C) Performance in the simple task for each inhibited location in mice with simple task experience only (gray, 45 sessions from 4 mice, same dataset as in Figure 1F), and in mice with previous switching task experience (red, 69 sessions from 5 mice). Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean. S1 p = 0.26; RSC p<0.001; PPC p < 0.001; from bootstrapped distributions of ΔFraction Correct (difference from control performance) compared to 0, two-tailed test, α = 0.05 plus Bonferroni correction. ***: p < 0.001. Sessions per mouse: 13 ± 0.4. Trials per session: 55 ± 11 (control), 14 ± 4 (S1), 13 ± 4 (RSC), 15 ± 4 (PPC), mean ± standard deviation (SD). (D) Inhibition effects (ΔFraction Correct) across sessions in the simple task in mice with only simple task experience (gray), and in mice with previous switching task experience (red), for each cortical inhibition location. Thin lines show individual mice (n = 4 with simple task experience, n = 5 with switching task experience), thick lines show average across mice. ΔFraction Correct was smoothed with a moving average filter of three sessions. (E) Comparison of inhibition effects (ΔFraction Correct) in the simple task for mice with simple task experience only (45 sessions from 4 mice) versus switching task experience 1 (35 sessions from 5 mice) or 2 (34 sessions from 5 mice) weeks after transition from the switching task to the simple task. Bars indicate mean ± SEM of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. ***: p < 0.001. Same datasets as in Figure 1F and Figure 3C. (F) Comparison of performance on control trials in the simple task with simple versus switching task experience using only the first two laser-on blocks in each session. Bars indicate mean ± SEM of a bootstrap distribution of the mean. Simple task data in week 1 (p = 0.32) and week 2 (p = 0.81) after transition from the switching task were compared to the simple task only experience data; two-tailed comparisons of bootstrapped Fraction Correct distributions, α = 0.05. Trials per session: 51 ± 23 (simple experience), 51 ± 5 (switching experience, week 1), 50 ± 7 (switching experience, week 2), mean ± SD.

Figure 3.

Figure 3—figure supplement 1. Increased cortical involvement in the simple task after complex-task experience does not generalize to the run-to-target task.

Figure 3—figure supplement 1.

(A) Schematic of task training sequence. One group of mice was trained in the simple task and then transitioned to the run-to-target task. Another group of mice was first trained in a complex task (switching or delay task), then transitioned to the simple task for 14 days, and then tested on the run-to-target task. (B) Comparison of inhibition effects (ΔFraction Correct) in the run-to-target task in mice with simple task-only versus complex- and simple task experience, for each cortical inhibition location. Bars indicate mean ± standard error of the mean (SEM) of a bootstrap distribution of the mean; two-tailed comparisons of bootstrapped ΔFraction Correct distributions, α = 0.05. Simple task-only experience (same dataset as in Figure 1—figure supplement 1): 15 sessions from 3 mice, 5 ± 2 sessions per mouse. Trials per session: 93 ± 11 (control), 26 ± 5 (S1), 24 ± 5 (RSC), 28 ± 6 (PPC), mean ± standard deviation (SD). Complex- and simple task experience: 11 sessions from 3 mice, 4 ± 2 sessions per mouse. Trials per session: 94 ± 4 (control), 28 ± 2 (S1), 23 ± 2 (RSC), 28 ± 4 (PPC), mean ± SD.

We wondered if the mice transitioned from the switching task to the simple task might continue to behave as if they were in the dynamic context of the switching task, and thus may find the simple task more challenging than mice without switching task experience. However, it appeared that mice adapted behaviorally to the simple task quickly after the transition. As for mice with previous delay task experience, performance on trials without laser light was high even in the first session after the switching-to-simple task transition (Figure 2—figure supplement 1), and performance on control trials reached levels observed in mice without previous training on the switching task (Figure 3F). Thus, mice did not appear to require de novo learning of the simple task, as expected since the associations in the simple task are identical to those contained in the switching task. Also, in the switching task, performance at the start of sessions was only at intermediate levels as mice determined the current rule (Figure 2—figure supplement 1). In contrast, after a few days in the simple task, performance was near perfect even in the first tens of trials within a session. Interestingly, when presented with the opposite rule from the switching task again after 2 weeks on the simple task, mice could still switch back to the long unseen rule within a single session (Figure 2—figure supplement 1). Thus, although mice appeared to retain an understanding of potential association switches, their behavior did not reflect such expectations soon after they were transitioned to the simple task.

We also assessed whether the persistent increase of cortical necessity due to complex-task experience extended to the run-to-target task. Notably, inhibition of PPC and RSC during the run-to-target task resulted in similarly minor performance drops in groups of mice with and without prior complex-task experience (Figure 3—figure supplement 1). Thus, previous experience in complex tasks did not make cortex essential for all simple tasks.

Collectively, these results highlight that the cortical areas used to perform a task can be profoundly shaped by experience from weeks ago. Mice with different previous task experience use distinct sets of cortical areas to solve the same task. Therefore, an understanding of which areas of cortex are necessary for decision tasks requires considering both the demands of the task-of-interest and the previous experiences of the individual.

PPC and RSC neurons have activity patterns with higher selectivity in the switching task

Given that the necessity of cortical areas was modulated by previous training, we next asked if the neural activity patterns in these areas are also affected. Changes in an area’s necessity from previous experience may or may not be accompanied by changes in neural activity. For instance, previous learning in the sensory domain changes cortical necessity, but not neural activity patterns, which can be explained by changes solely to how an area’s activity is read out by downstream areas (Chowdhury and DeAngelis, 2008; Liu and Pack, 2017). Alternatively, neural activity patterns may also change along with an area’s necessity, as observed in comparisons across different types of navigation tasks (Harvey et al., 2012; Pinto et al., 2019).

We simultaneously measured the activity of neurons in PPC, RSC, and primary visual cortex (V1) with two-photon calcium imaging using a large field-of-view, random-access microscope (Sofroniew et al., 2016; Figure 4A–C). This microscope allowed us to simultaneously image hundreds of neurons in each of these three cortical areas, with single-cell resolution. We focused our imaging on PPC and RSC because these areas showed major differences in necessity depending on previous experience. We also included V1 because it is densely interconnected with PPC and RSC (Zhang et al., 2016), contains cognitive, nonvisual signals in navigation decision tasks (Koay et al., 2020; Saleem et al., 2018), and is likely a key contributor during visual navigation. Note that we did not choose V1 as a target in our photoinhibition experiments because inhibition of V1 would likely cause visual processing deficits in all visual navigation tasks regardless of cognitive experience. We restricted our imaging experiments to the simple task and the switching task, given that they contain the identical virtual environments.

Figure 4. RSC and PPC neurons have activity patterns with higher selectivity in the switching task.

(A) Left: Schematic of virtual reality behavioral setup with mesoscopic two-photon imaging. Right: Two-photon overview image of cortical window and locations of three areas imaged simultaneously. Scale bar: 500 μm. (B) Mean intensity two-photon images of each imaged area, color coded by area as in (A). Areas were imaged at two depths. Scale bars: 100 μm. (C) Example activity traces of 10 cells from each area. (D) In each area, mean activity levels across cells by maze segment are compared in the simple (gray) versus the switching (orange) task (only Rule A trials). The maze segments are the first half of the Y-stem (15–75 cm Y-Position), the second half of the Y-stem (75–150 cm), and the Y-arms (150–220 cm). Shading indicates mean ± standard error of the mean (SEM) of bootstrapped distributions of the mean. p(segment) shows p values of two-tailed comparisons of bootstrapped distributions per maze segment. p(overall) shows the p value for the task factor from a two-way analysis of variance (ANOVA; factors: task and maze segment). Simple task: n = 3 mice, 4 sessions per mouse, neurons per session by area: RSC: 1438 ± 217, PPC: 456 ± 172, V1: 498 ± 170. Switching task: n = 3 mice, 4 sessions per mouse, neurons per session by area: RSC: 1510 ± 398, PPC: 513 ± 304, V1: 363 ± 92 (mean ± standard deviation [SD]). (E) Left and right panel columns show activity from two different example neurons. Top: Spatially binned activity separated by trial type. Each row shows a single trial. Trials were subsampled to 30 trials per trial type. Middle: Mean activity for each trial type (pink: right trials, blue: left trials). Bottom: The area under the ROC curve (auROC) was calculated for each spatial bin. A shuffled distribution of auROC values (gray) was generated by randomly assigning left/right trial labels to each trial and recomputing auROC 100 times. Trial-type selectivity was defined as an absolute deviation of auROC from chance level (2*|auROC − 0.5|). To determine significance of trial-type selectivity, at each bin, this value was compared to the trial-type selectivity of the shuffle distribution (gray, significance threshold of p < 0.01). (F) Similar to (D), except for the metric of trial-type selectivity, that is 2*|auROC − 0.5|. (G) Similar to (D), except for the fraction of trial-type selective cells as determined from comparing each cell’s selectivity value to a distribution with shuffled trial labels (significance threshold of p < 0.01). (H) In each area, trial-type decoding accuracy using activity of subsampled neurons is compared in the simple versus the switching task (Rule A trials only). Shading indicates mean ± SEM across sessions. p value is for the task factor from a two-way ANOVA (factors: task and neuron number).

Figure 4.

Figure 4—figure supplement 1. Task training times, task performance, and neuronal trial-type selectivity sequences across task conditions.

Figure 4—figure supplement 1.

(A) Schematic overview of the behavioral tasks and task training sequences used in the two-photon imaging experiments. Left: One group of mice is trained on the switching task and then transitioned to the simple task. Right: Another group of mice is trained in the simple task only. (B) The number of training sessions needed to reach performance criteria for mice trained in the simple task only (n = 3 mice) or the switching task (n = 3 mice) (Methods). Bars indicate mean ± standard error of the mean (SEM) across mice. p = 0.0004, unpaired two-sided t-test. ***: p < 0.001. (C) Overall number of sessions experienced (including task learning sessions) until each two-photon imaging session in the different task conditions. Bars indicate mean ± SEM across sessions (simple task: 12 sessions from 3 mice, switching task: 12 sessions from 3 mice, simple task after switching task: 10 sessions from 2 mice). Note that in the simple task after switching task condition, the total number of sessions includes all switching and simple task sessions. (D) Comparison of performance across task conditions using all trials per session. Bars indicate mean ± SEM across sessions. Both switching and simple tasks with switching experience data were compared to the simple task only data using an unpaired two-sided t-test. Switching versus simple only: p = 8.90 × 10−07; simple with switching experience versus simple only: p = 0.97. ***: p < 0.001. (E) Trial-type selectivity (absolute deviation of auROC from chance level, 2*|auROC − 0.5|) was calculated per neuron and spatial maze bin (5 cm bin size) and is shown for all neurons pooled across mice and sessions in each cortical area and task condition. Neurons were sorted by the maze position of their selectivity peak. Mice per task: simple (3), switching (3), and simple after switching (2).
Figure 4—figure supplement 2. Trial-type selectivity for sessions with similar running patterns.

Figure 4—figure supplement 2.

(A) Left: Decoding accuracy of the reported choice using instantaneous treadmill velocities and lateral position, binned along the maze’s long axis (5 cm bins). Shading indicates mean ± standard error of the mean (SEM) across all sessions per task. Sessions per task: 12 (simple), 12 (switching), and 8 (simple after switching). Right: Decoding accuracy using a subset of sessions with similar running patterns, that is with average choice decoding accuracy in the maze stem ranging from 85% to 95%. Sessions per task: 4 (simple), 5 (switching), and 5 (simple after switching). (B) For sessions with similar running patterns, in each area, mean trial-type selectivity levels across cells by maze segment are compared in the simple versus the switching task (Rule A trials only). Shading indicates mean ± SEM of bootstrapped distributions. p(segment) shows p values of two-tailed comparisons of bootstrapped distributions per maze segment. p(overall) shows the p value for the task factor from a two-way analysis of variance (ANOVA; factors: task and maze segment). (C) For sessions with similar running patterns, similar to (B), except for the fraction of trial-type selective cells as determined from comparing each cell’s selectivity value to a distribution with shuffled trial labels (significance threshold of p < 0.01). (D) For sessions with similar running patterns, similar to (B), but for the simple task after switching task experience. (E) For sessions with similar running patterns, similar to (C), but for the simple task after switching task experience.
Figure 4—figure supplement 3. Neuronal activity and selectivity in Rule B of the switching task compared to the simple task.

Figure 4—figure supplement 3.

(A) In each area, mean activity levels across cells by maze segment are compared in the simple (gray) versus the switching task (pink, only Rule B trials). The maze segments are the first half of the Y-stem (15–75 cm Y-Position), the second half of the Y-stem (75–150 cm), and the Y-arms (150–220 cm). Shading indicates mean ± standard error of the mean (SEM) of bootstrapped distributions of the mean. p(segment) shows p values of two-tailed comparisons of bootstrapped distributions per maze segment. p(overall) shows the p value for the task factor from a two-way analysis of variance (ANOVA; factors: task and maze segment). Simple task: n = 3 mice, 4 sessions per mouse, neurons per session by area: RSC: 1438 ± 217, PPC: 456 ± 172, V1: 498 ± 1 70. Switching task: n = 3 mice, 4 sessions per mouse, neurons per session by area: RSC: 1510 ± 398, PPC: 513 ± 304, V1: 363 ± 92 (mean ± standard deviation [SD]). (B) Similar to (A), except for the metric of trial-type selectivity, that is 2*|auROC − 0.5|. (C) Similar to (A), except for the fraction of trial-type selective cells as determined from comparing each cell’s selectivity value to a distribution with shuffled trial labels (significance threshold of p < 0.01). (D) In each area, trial-type decoding accuracy using activity of subsampled neurons is compared in the simple versus the switching task (Rule B trials only). Shading indicates mean ± SEM across sessions. p value is for the task factor from a two-way ANOVA (factors: task and neuron number). (E) Comparison of mean noise correlations in the simple task versus the switching task (Rule B trials only), p value is for the task factor from a two-way ANOVA (factors: task and area combination). Error bars indicate mean ± SEM across sessions per area combination (n = 6 area combinations, n sessions: 12 [simple task] and 12 [switching task]).
Figure 4—figure supplement 4. Neuronal selectivity in the switching task across rules.

Figure 4—figure supplement 4.

(A) In each area, mean selectivity levels (i.e., 2*|auROC − 0.5|) across cells by maze segment are plotted for different selectivity categories in the switching task. Selectivity values for the categories ‘Trial-Type in Rule A only’ (orange) or ‘Trial-Type in Rule B only’ (pink) were calculated using only trials from Rule A or B, respectively. For the categories ‘Cue’ (blue), ‘Choice’ (green), or ‘Rule’ (brown), trials from both rules were used. Maze segments are the first half of the Y-stem (15–75 cm Y-Position), the second half of the Y-stem (75–150 cm), and the Y-arms (150–220 cm). Shading indicates mean ± standard error of the mean (SEM) of bootstrapped distributions of the mean. n = 3 mice, 4 sessions per mouse, neurons per session by area: RSC: 1510 ± 398, PPC: 513 ± 304, V1: 363 ± 92 (mean ± standard deviation [SD]). (B) Each column shows activity from an example neuron to illustrate different selectivity categories (Methods). Activity was spatially binned and separated by the four trial types constituting the switching task (see color codes for the 4 cue–choice combinations on the right). Shading indicates mean ± SEM across trials. (C) For the selectivity categories exemplified in (C), the fraction of neurons falling into each category are shown by area. Error bars show mean ± SEM across sessions.

We first imaged neural activity in separate sets of mice in the simple and switching tasks (Figure 4D). Again, mice took longer to learn the switching task than the simple task (Figure 4—figure supplement 1). For a direct comparison of the switching and simple tasks, as was done for the inhibition experiments, we restricted analysis in the switching task to periods of high performance after performance had recovered following rule switches. While the trials around the rule switch are of interest generally, they may be challenging to compare to the simple task because performance is at different levels and mice might use distinct behavioral strategies after a rule switch versus during periods of high performance. To compare identical trial types across tasks, that is trials with the same cue–choice associations, we initially only considered Rule A trials in the switching task. We started by looking at a basic measure of neural activity, the overall level of activity in individual neurons. Interestingly, this basic measure revealed differences across tasks, as neurons in RSC and PPC had higher activity in the switching task than in the simple task (Figure 4D).

Next, we considered that a direct way a cortical area may contribute to the task is by having activity that is different for the two trial types containing distinct cue–choice associations. Trial-type selectivity is a common measure for neural correlates of decision-related functions because it would allow a downstream area to read out the identity of the association and to execute the appropriate choice. We measured this selectivity as our ability to identify the trial type based on a neuron’s activity and quantified it as the area under the receiver operating characteristics curve (auROC, Figure 4E). PPC and RSC neurons showed higher average levels of trial-type selectivity in the switching task than in the simple task (Figure 4F). At the level of populations of neurons, the trial-type selectivity was structured as sequences of neural activity, in which individual neurons were transiently active and different neurons were active at different locations along the maze (Figure 4—figure supplement 1). In addition, the fraction of RSC or PPC neurons with significant trial-type selectivity was higher in the switching task than in the simple task (Figure 4G).

We next assessed how well the current trial type could be decoded from the activity of neural populations of varying sizes in each area. In the simple task, RSC and PPC populations contained task-relevant information that led to above-chance decoding from a population of neurons. However, for the same size population in the switching task, this decoding accuracy in RSC and PPC was even higher, in line with the observed increased selectivity and larger fraction of selective neurons relative to the simple task (Figure 4H). These differences in activity across tasks in RSC and PPC were especially striking because, in the simple task and Rule A of the switching task, mice ran through a maze with identical visual cues and made similar left–right behavioral choices in both tasks. Therefore, the activity levels and selectivity of single neurons are higher in PPC and RSC when mice perform a more complex task, even when the sensory stimuli and choice reports in the tasks are identical, leading to better ability to decode the trial type.

In contrast, V1 neurons had similar levels of activity, selectivity, and population-level trial-type decoding in the simple and switching tasks (Figure 4D–H). This finding is consistent with the identical visual scene in these tasks but is perhaps surprising given that V1 neurons have been shown to contain nonvisual signals (Koay et al., 2020; Saleem et al., 2018).

We verified that the differences in selectivity across tasks were not due to differences in running patterns. When we selected sessions so that the time course and magnitude of decoding the mouse’s reported choice from its running were similar across tasks, we largely observed the same differences in neural trial-type selectivity as reported above (Figure 4—figure supplement 2). Thus, the differences in neural selectivity cannot be trivially explained by differences in running patterns.

We also compared activity in the simple task to Rule B trials in the switching task and found similar differences in mean activity and selectivity levels across tasks (Figure 4—figure supplement 3). Given that selectivity was higher in both rules of the switching task, we wondered how selectivity was organized across rules in the switching task. By examining single-neuron activity across all four trial types, that is cue–choice combinations, we found that rather than being generally cue-, choice-, or rule-selective, a large fraction of neurons in all imaged areas, but highest in RSC, showed increased activity specifically for a single trial type (Figure 4—figure supplement 4). Thus, neurons were selective for a specific cue–choice combination, which is consistent with a phenomenon often called nonlinear mixed selectivity (Fusi et al., 2016; Rigotti et al., 2013).

In summary, we found increased activity and selectivity levels in RSC and PPC, but not V1, when comparing mice performing the switching task to mice performing the simple task. The relative increase was observed in both rules constituting the switching task, supported by mixed selectivity in single neurons. Thus, task complexity affected not only the necessity of cortical association areas for task performance as revealed in our photoinhibition experiments, but also their activity and selectivity levels.

Previous switching task experience increases neural trial-type selectivity in PPC and RSC

We then examined if previous experience in the switching task affected the neural activity patterns in the simple task. Similar to our tests of cortical necessity, we compared neural activity during the simple task in mice that either had or had not been trained previously in the switching task (Figure 5A, Figure 4—figure supplement 1). We trained one group of mice on the switching task and then permanently transitioned these mice to the simple task. A separate set of mice was trained only on the simple task. We thus compared the activity patterns in PPC, RSC, and V1 in mice in the same task except with distinct experience. As previously observed in our photoinhibition experiments, both groups of mice performed the simple task at similarly high levels irrespective of previous task experience (Figure 4—figure supplement 1).

Figure 5. Previous switching task experience increases trial-type selectivity in RSC and PPC.

Figure 5.

(A) Schematic of the training history sequence. One group of mice was trained on the switching task and then permanently transitioned to the simple task. This group of mice was compared to another group trained only on the simple task. (B) In each area, mean activity levels across cells by maze segment are compared in the simple task in mice with (red) and without (gray) previous experience in the switching task. Shading indicates mean ± standard error of the mean (SEM) of bootstrapped distributions of the mean. p(segment) shows p values of two-tailed comparisons of bootstrapped distributions per maze segment. p(overall) shows the p value for the previous task experience factor from a two-way analysis of variance (ANOVA; factors: previous task experience and maze segment). Simple task: n = 3 mice, 4 sessions per mouse, cells per session by area: RSC: 1438 ± 217, PPC: 456 ± 172, V1: 498 ± 170 (same dataset as in Figure 4D–H). Simple task after switching task experience: n = 2 mice, 3 and 5 sessions per mouse, neurons per session by area: RSC: 1407 ± 327, PPC: 744 ± 219, V1: 351 ± 90 (mean ± standard deviation [SD]). (C) Similar to (B), except for the metric of trial-type selectivity, that is 2*|auROC − 0.5|. (D) Similar to (B), except for the fraction of trial-type selective cells as determined from comparing each cell’s selectivity value to a distribution with shuffled trial labels. (E) In each area, trial-type decoding accuracy using activity of subsampled neurons is compared in the simple task in mice with and without previous experience in the switching task. Shading indicates mean ± SEM across sessions. p value is for the previous task experience factor from a two-way ANOVA (factors: previous task experience and neuron number).

Strikingly, during the simple task, neurons in RSC and PPC had higher activity in mice with experience in the switching task than in mice trained only in the simple task (Figure 5B). Furthermore, in mice with switching task experience, RSC and PPC neurons had higher average selectivity for the trial type and higher fractions of neurons with significant trial-type selectivity (Figure 5C, D). As a result, the decoding of the trial type from population activity was more accurate in these areas in mice with the complex-task experience (Figure 5E). Notably, selectivity in V1 neurons was similar between mice with and without complex-task experience. Therefore, the activity patterns of single neurons in PPC and RSC, including mean activity levels and selectivity, are strongly influenced not only by the current task performed, but also by previous task experience, mirroring the effect of previous task experience on the necessity of these areas for task performance.

Switching task experience decreases noise correlations

A key feature of neural codes beyond the properties of single cells is the collective activity of populations of neurons. Properties of population codes affect the amount of information in neural populations and have been shown to depend on behavioral context, task learning, and other factors (Cohen and Kohn, 2011). We thus examined if features of the neural population code are also affected by task complexity and past experience. We took advantage of the simultaneous imaging of hundreds of neurons per area and analyzed the correlation in activity for pairs of neurons on a given trial type, a measure commonly referred to as noise correlation, that quantifies trial-to-trial co-fluctuations in neurons (Cohen and Kohn, 2011). As for analyses of trial-type selectivity, we restricted analyses to the maze traversal period and only included correct trials from high-performance periods (Methods). The noise correlations within individual areas and across pairs of areas were lower on average in mice performing the switching task than in mice performing the simple task (Figure 6A–C, Figure 4—figure supplement 3). Notably, noise correlations were not only lower in RSC and PPC, but also within V1 and in V1 interactions with RSC and PPC, suggesting that changes in noise correlations may be a more global phenomenon than changes in selectivity. Strikingly, when we compared mice with different experience as they performed the same simple task, we also observed a difference in noise correlations both within and across cortical areas, with lower correlations in mice with switching task experience compared to mice trained only in the simple task (Figure 6A–C). Therefore, mice with different task experience have significant differences in their population codes as they perform the same task.

Figure 6. Switching task experience decreases noise correlations.

Figure 6.

(A) Schematic of the training history sequence. One group of mice was first trained on the switching task and then permanently transitioned to the simple task. Another group was trained only on the simple task. (B) Mean pairwise noise correlations within and across areas from bootstrapped distributions of the mean in the switching task (left), the simple task with previous switching task experience (middle), and the simple task with only simple task experience (right). Noise correlations were calculated on spatially binned data in correct trials during high-performance periods (Methods). (C) Left: Comparison of mean noise correlations in the switching task versus the simple task, p value is for the task factor from a two-way analysis of variance (ANOVA; factors: task and area combination). Error bars indicate mean ± standard error of the mean (SEM) across sessions per area combination (n = 6 area combinations, n sessions: 12 (simple task) and 12 (switching task)). Right: Similar to left, except for the comparison of simple task noise correlations with and without previous switching task experience. n sessions: 12 (simple experience) and 8 (switching experience). (D) For each area and task or previous task experience, the difference in trial-type decoding accuracy between neural populations (200 subsampled neurons) with intact and disrupted noise correlations. Noise correlations were disrupted by shuffling trials independently for each cell within a given trial type. Error bars show mean ± SEM across sessions.

Noise correlations can in some cases limit the information contained in a neural population because these correlations are co-fluctuations in activity that cannot be removed by averaging across neurons (Averbeck et al., 2006; Kafashan et al., 2021; Panzeri et al., 1999; Zohary et al., 1994). To reveal the impact of correlations on coding in our experiments, we disrupted noise correlations by shuffling trials of a given trial type separately for each neuron and repeated the trial-type decoding. The accuracy of decoding the trial type was slightly higher with correlations disrupted (Figure 6D). Therefore, the lower correlations in mice performing the switching task or the simple task with switching task experience boosts information encoding along with higher trial-type selectivity levels.

Thus, these results reveal that the activity patterns in single neurons and neural populations are shaped by previous task experience. Together, our findings demonstrate that different sets of cortical areas and distinct neural activity patterns are utilized for the same task depending on an individual’s training history.

Discussion

Our central finding is that mice with enhanced cognitive experience due to previous training on complex tasks require PPC and RSC to perform a simple task, whereas in mice without this previous training, PPC and RSC are largely dispensable for performing the same, simple task. Thus, the necessity of cortical areas depends on factors separate from the task itself. Here, we aimed to vary the ‘cognitive experience’ of the mouse, which we define broadly as past learning of task rules and cue–action associations. We varied the cognitive experience by adding delay periods (delay task) or frequent switches of associations within a session (switching task) to a simple navigation task. This resulted in tasks of varying complexity, but the maze shape, and thus behavioral outputs needed, and choice-informative cues were identical between the complex and simple tasks. Therefore, the differential cortical involvement in the groups of mice with and without training on the complex tasks is likely due to cognitive experience instead of sensory or motor learning.

Studies of perceptual experience and motor learning have emphasized that cortical necessity for task performance decreases with experience (Chowdhury and DeAngelis, 2008; Hwang et al., 2019; Kawai et al., 2015) but see Liu and Pack, 2017. Instead, we found an increased necessity of cortical association areas due to cognitive experience in two distinct, complex tasks (delay and switching tasks). Future work should investigate how differences in the types of experience (cognitive versus perceptual), tasks, and areas studied (association versus sensory or motor cortices) influence whether experience increases or decreases cortical necessity. In addition, these earlier works did not identify differences in neural tuning in MT with perceptual experience despite differences in necessity, leading to the proposal that differences in cortical necessity with experience arise from whether an area’s activity is read out by a downstream network. On the other hand, studies comparing various behavioral tasks with distinct levels of cortical necessity reported differences in neural activity across tasks (Harvey et al., 2012; Pinto et al., 2019), suggesting that differences in cortical necessity may result from differential neural activity in the same areas. Here, we did find differences in neural activity depending not only on current task complexity, but also on training history. During the same task, mice with complex training experience had higher selectivity in single neurons and weakened neuron–neuron correlations, compared to mice without this experience, which together allowed for easier decoding of the relevant information from a population of neurons. We found these increases in neural selectivity specifically in RSC and PPC, that is the same areas for which we observed differential necessity based on training history. However, these areas already contained high amounts of task-relevant information in the simple task without complex-task experience, contrasting the small performance deficits from inhibiting these areas in the same condition. This picture is in line with several studies reporting encoding of task variables in brain areas that leave task performance largely intact when inhibited (Allen et al., 2017; Katz et al., 2016; Zatka-Haas et al., 2021). Therefore, although the boost in neural selectivity with complex-task experience increases the encoded information, it appears unlikely to be the sole reason for the large increase in cortical necessity for task performance. Rather, increased cortical necessity may result from a combination of increases in task information, reshaped representations of information, and/or modifications to information readouts (Ruff and Cohen, 2019). Further work will be needed to test directly the relationship between specific features of the neural code and the causal roles of PPC and RSC in decision tasks.

We found that cortical association areas had higher selectivity in their neural activity and were more strongly required for the complex tasks than the simple task. This finding supports the notion that cortex is needed for cognitively more challenging tasks. Previous work presented a similar finding but focused on tasks with a wide gap in their demands, such as comparing running toward a visual target versus using learned cue–choice associations to make navigation decisions (Buschman et al., 2011; Ceballo et al., 2019; Fuster, 1997; Harvey et al., 2012; Lashley, 1931; Pinto et al., 2019; Sarma et al., 2016). In our work, we extended this concept by keeping the visual and behavioral aspects of the complex and simple tasks as similar as possible and adding specific cognitive challenges. We added task components requiring short-term memory on various timescales, which is hypothesized to cause increased PPC necessity for task performance based on a synthesis of previous PPC inactivation studies (Lyamzin and Benucci, 2019). Indeed, the insertion of a delay period or of frequent association switches caused large increases in PPC necessity. However, PPC necessity was not restricted to the task parameters changed relative to the simple task. In the delay task, PPC was necessary not only in the delay period but also in the cue period, possibly due to additional top-down attentional signals in the delay task relative to the simple task (Freedman and Ibos, 2018). In the switching task, PPC activity was dispensable in the intertrial interval following rule switches, when previous cues, choices, and outcomes are likely combined to update rule beliefs. Thus, PPC may be especially important not for the combination of sensory cues with internal signals alone, but for their transformation into actions, consistent with strong encoding of ongoing movement in this area (Minderer et al., 2019).

In contrast to PPC, inhibition of RSC had an intermediate effect on performance even in the simple task, in line with previous work on RSC supporting spatial navigation in general by relating egocentric sensory cues to allocentric positional information (Alexander et al., 2020; Alexander and Nitz, 2015; Fischer et al., 2020). However, like for PPC, inhibiting RSC caused larger deficits when navigation was embedded in complex tasks. In those cases, because the navigation and visual components of a trial were identical across tasks, larger RSC involvement was unlikely due to increased difficulty of navigating the visual scenery itself. These results support the emerging view that RSC plays a crucial role in cognitive aspects of navigation decisions, integrating visual cues flexibly with memory signals to plan navigational routes or choices (Franco and Goard, 2021; Spiers and Maguire, 2006; Stacho and Manahan-Vaughan, 2022). The finding of highly selective activity levels in single neurons in the switching task, especially in RSC, further highlights this point. The imaging data we collected during the switching task provide a starting point for future analysis of how PPC and RSC contribute to various aspects of goal-directed navigation.

The long-lasting effect of cognitive experience on the necessity of PPC and RSC has important implications for the experimental study of cortical involvement in decision tasks. Many studies, including our previous work, test an area’s involvement or activity patterns in a single task and develop interpretations of an area’s functions by extrapolating across studies (Lyamzin and Benucci, 2019). However, given that factors beyond the task-of-interest contribute to an area’s necessity and activity in a task, we encourage consideration of a variety of factors that have often been ignored and not reported. Because prior task expertise can have a large effect on the involvement of cortical areas, it seems critical to report the full details of how animals were trained on a task and what previous experiences they encountered, both of which are commonly omitted from publications.

What may be the reason for persistent cortical necessity from cognitive experience? Increased PPC and RSC involvement relative to mice lacking complex-task experience is unlikely to stem from differences in task exposure times. The modest performance deficits from cortical inhibition in the simple task for mice without complex-task experience were stable over long-time periods, and our training and task exposure times were similar to or exceeded those in other studies reporting substantial RSC involvement and task-related RSC activity (Fischer et al., 2020; Franco and Goard, 2021; Milczarek et al., 2018; Smith et al., 2018; Vedder et al., 2017). Importantly, our experimental design meant that for mice with complex-task experience, the simple task did not present an unfamiliar challenge but was a simplification of a well-known task. Mice trained on the delay task transitioned to the task they originally learned before the delay was introduced in their training protocol, and mice expert at the switching task were simply transitioned to a setting in which they did not experience rule switches anymore. Simple task performance on trials without cortical silencing was similarly high in mice with and without complex-task experience, suggesting that all groups of mice found the simple task similarly easy. In contrast to comparisons across tasks of varying complexity, this represents an interesting dissociation between cortical necessity and apparent task difficulty. We speculate that learning of the cue–choice associations in the complex tasks may create a network that is then used for the same associations in the simple task, with PPC and RSC as essential nodes that cannot be readily disengaged even when task complexity decreases. This reliance on association areas for simple task performance may equip animals with the capacity to quickly adjust behaviorally should the task complexity increase again. This idea is supported by the fact that mice previously trained on the switching task could still perform the switching task after 2 weeks of only simple task exposure.

Previous work has investigated how prior learning impacts subsequent learning, including in studies describing schema learning, learning sets, learning-to-learn meta-learning, and transfer learning. It will be of interest to investigate if these types of learning could contribute to our findings. However, we note that in our case, the cue–choice associations in the simple task were identical to those learned previously in the complex tasks for mice with experience in the delay or switching tasks. Thus, it is unlikely that mice had to undergo substantial learning to perform the simple task after transitioning from a complex task, which was supported by high behavioral performance in even the first session in the simple task after this transition.

Together, our results indicate that the cortical implementation of a task flexibly depends on initial conditions, as defined by past experience, and the overall optimization goal for the animal, which in many cases is not just a single task but also previous tasks or other tasks occurring in parallel (Golub et al., 2018; Sadtler et al., 2014). These results highlight the tremendous flexibility of the brain to perform outwardly identical tasks using distinct sets of brain areas and neural activity patterns and raise exciting challenges for understanding neural computation in the framework of dynamic and distinct neural solutions for a given cognitive problem. We propose that understanding cognitive processes will require considering the wider set of functions an animal is trying to optimize, beyond the computation of interest in a particular study. To understand how long-ago cognitive experience and current cognitive demands set up these different neural circuit landscapes for outwardly identical navigation decisions, we suggest to carefully control for and to intentionally vary cognitive experience in laboratory settings (Plitt and Giocomo, 2021; Sharpe et al., 2021), thereby approximating more naturalistic scenarios. We anticipate this approach will be particularly powerful to illuminate neural circuit differences underlying interindividual variability and changes in neural dynamics during learning (Oby et al., 2019; Sadtler et al., 2014).

Materials and methods

Mice

All experimental procedures were approved by the Harvard Medical School Institutional Animal Care and Use Committee and were performed in compliance with the Guide for the Care and Use of Laboratory Animals. All optogenetic inhibition data were acquired from 19 male VGAT-ChR2-YFP mice (The Jackson Laboratory, stock 014548). All calcium imaging data were acquired from six C57BL/6J-Tg (Thy1-GCaMP6s) GP4.3Dkim/J mice (stock 024275) of both sexes (five females, one male). Mice were 11–32 weeks old at the start of behavioral training. Age at training start did not vary systematically across tasks (simple task: 21 ± 7 weeks (n = 7), switching task: 17 ± 5 weeks (n = 13), delay task: 21 ± 11 weeks (n = 5), mean ± standard deviation (SD), including photoinhibition and calcium imaging mice). Mice were kept on a reverse dark/light cycle and housed in groups of 2–3 littermates per cage (mice for optogenetic inhibition) or single housed (mice for calcium imaging).

Virtual reality setup

Virtual reality environments (Harvey et al., 2009) were designed and operated in VirRMEn (Virtual Reality Mouse Engine) (Aronov and Tank, 2014). A novel, custom-made compact virtual reality design was employed (overall dimensions of approximately 15 inches wide × 21 deep × 18 high), using modifiable laser-cut acrylic and mirror pieces. A micro projector (Laser Beam Pro) projected the virtual environment onto a double-mirror system and a 15-inch diameter half-cylindrical screen. The mouse was head-fixed on top of an 8-inch diameter Styrofoam spherical treadmill. The mouse’s position in the virtual environment, and thus the projection, was controlled by the mouse’s movement of the treadmill, which was measured with two optical sensors (ADNS-9800, Avago Technologies) placed 90° apart from each other beneath the ball. The treadmill velocity was translated into pitch, roll, and yaw velocity relative to the mouse’s body axis using custom code on a Teensy microcontroller (PJRC). Pitch controlled forward/backward movement in the virtual world, while roll controlled lateral movement. The virtual view angle was fixed so that the mouse could not rotate in the virtual world. Designs for the virtual reality apparatus are available at https://github.com/HarveyLab/mouseVR.

Behavioral training

Mice were limited to 1 ml of water per day for several days before starting training. Body weight and body condition were checked daily. Mice were maintained at approximately 80% of their body weight prior to water restriction and received additional water if their body weight fell below 75% of their original weight. Mice were trained daily for 45–80 min (except for some weekends, when they received 1 ml of water without training). In the first training phase, to get accustomed to the experimental setup and to moving in virtual space, mice had to run down the length of a rectangular environment (‘linear maze’) toward a checkerboard pattern (Figure 1—figure supplement 1). When reaching the checkerboard, they received a reward (3–4 μl of 10% sweetened condensed milk in water delivered through a lick spout) and were teleported back to the beginning after a brief intertrial interval (ITI, 1 s). The linear maze contained the visual cues on the walls that the mice would later learn to associate with rewarded choice directions. Linear maze length was increased on a session-by-session basis until mice completed approximately 200 trials of a 200 cm maze in 60 min (minimum/maximum maze length of 10/200 cm). Linear maze training typically lasted 7–14 sessions.

Y-maze training, general procedures

After training on the linear maze, mice were transitioned to a Y-shaped maze (180 cm long) in which they had to run toward one of two possible Y-arms to get rewarded. In all tasks, visual cues presented on maze walls were associated with rewarded choice arms at the end of the maze. Initially, in all tasks, the correct choice was signaled with a checkerboard at the end of the correct Y-arm (100% “visually guided trials”, Figure 1—figure supplement 1). Throughout training, the fraction of “visually guided trials” was gradually reduced on a session-by-session basis by the experimenter, based on the mouse’s previous performance. For the simple and delay task, average performance in the preceding session had to exceed 80%. For the switching task, overall performance including periods after rule switches had to exceed 70% correct, performance after rule switches was inspected for drops followed by recovery over tens of trials, and mice had to obtain at least two rule switches per session. Across all tasks, after extensive training, a minority of trials were still ‘visually guided trials’ (10–15%). In nonvisually guided trials, the checkerboard appeared for 2 s as visual feedback once the mouse made a correct choice, followed by the reward and an ITI with a gray screen of 2 s. After incorrect choices, no checkerboard was presented, and the ITI lasted for 4 s. A different cohort of mice was trained on each task unless specified otherwise. As some mice developed biases during training, making predominantly left or right choices, we employed a bias correction algorithm in some training sessions. If the mouse made the same choice on the last five trials irrespective of correctness, the next trial would contain a maze in which the opposite choice would be correct. This bias correction was only used at intermediate training stages and was not employed during inhibition or calcium imaging sessions.

Simple task

In the simple task, mice encountered one of two possible cues in a given trial, with a fixed association between cue identity and rewarded Y-arm. Horizontal gratings were associated with a left rewarded choice and vertical gratings were associated with a right rewarded choice. This pair of associations constitutes what we call ‘Rule A’ in the switching task. Visual cues were present along the entire extent of the maze, including the stem and the Y-arms.

Delay task

Mice trained in the delay task were first trained in the simple task (Figure 1—figure supplement 1). After reaching high-performance levels in the simple task (at least 90% correct), a delay was introduced, that is a neutral visual texture present in all trial types that was uninformative about the choice to make on a given trial. In the first sessions of delay task training, the delay texture was only present in the Y-arms of the maze. Then the delay onset (i.e., cue offset) was gradually shifted earlier in the trial by 10 cm increments on a session-by-session basis if performance in the preceding session exceeded 80% correct, until only the first half of the Y-maze stem contained the visual cue (50 cm). Thus, mice had to traverse the rest of the maze without the informative cue on the walls. Once a 50-cm delay length was reached, the spatial delay length was kept constant across sessions including the photoinhibition sessions, and mice spent 4.06 ± 0.87 s in the delay period overall (second half of maze stem + maze funnel), of which 1.4 ± 0.35 s were spent in the delay period of the maze stem only (mean ± SD, n = 85 sessions across 7 mice). A subset of mice (two out of seven: Mouse IDs 38, 41) was used for photoinhibition experiments both during the simple task before delay task training, and later during the delay task after delay task training.

Switching task

In the switching task, mice encountered the trial types that were visually identical to those in the simple task, but now the associations between visual cue and rewarded choice were switched in blocks (Rules A and B). In ‘Rule B’, mice had to make the opposite choices given the same cue identities as in Rule A to get rewarded, that is horizontal/vertical gratings were associated with a rightward/leftward choice, respectively. Rule switches were not explicitly signaled to the mice, so they had to integrate information of past cues, choices, and rewards to inform their belief about the current rule. Rule switches were present from the first day of the Y-maze training period. Given the increased cognitive demand of the switching task, the fraction of visually guided trials was reduced more slowly in the switching task than in the simple task, resulting in more training sessions in the switching task than the simple task (Figure 1—figure supplement 1). The initial rule in a given session was alternated on a daily basis, starting out with Rule A on the first day of training. Within a training session, a rule switch occurred if several criteria were met: a minimum of 75 trials from the previous rule switch or the session start, a minimum average performance in the last 30 trials of 85% correct, and a correct choice on the immediately preceding trial. Mice encountered 2–3 rule switches per session, indicating they could repeatedly switch associations successfully.

Run-to-visual-target task

To establish a baseline for cortical involvement in a simple navigation task in which mice did not use visual cues on the maze walls to guide their choices, we employed a run-to-visual target task. The maze had the standard Y-shape architecture, but no informative visual cues on the maze walls. Instead, mice simply had to run toward the checkerboard present at one of the two Y-arm ends in each trial. The checkerboard location (left or right) was randomly chosen on each trial. We used mice previously trained in either the simple task only (Figure 1—figure supplement 4) or trained on a complex task (switching or delay) before simple-task-only exposure (Figure 3—figure supplement 1), so the mice already knew that the checkerboard signified a reward location and required minimal training on this task (1–2 days prior to photoinhibition).

Photoinhibition experiments

Clear skull cap surgery

We followed procedures described previously (Guo et al., 2014; Minderer et al., 2019). In brief, the scalp and the periosteum were removed from the dorsal skull surface. The skull surface was covered with a thin layer of cyanoacrylate glue (Insta-Cure, Bob Smith Industries). A bar-shaped titanium headplate was attached to the interparietal bone using dental cement (Metabond, Parkell). Several layers of transparent dental acrylic (Jet Repair Acrylic, Lang Dental, P/N 1223-clear) were applied to the parietal and frontal bones to create a transparent skull cap. In a subsequent procedure preceding photoinhibition experiments, the acrylic was polished with a polishing drill (Model 6100, Vogue Professional) with denture polishing bits (HP0412, AZDENT). Clear nail polish was applied on top of the polished acrylic (Electron Microscopy Sciences, 72180). An aluminum ring was attached to the skull using dental cement mixed with carbon powder (Sigma-Aldrich) for light shielding.

Experimental setup and logic

Light from a 470-nm collimated laser (LRD-0470-PFFD-00200, Laserglow Technologies) was focused onto the skull using an achromatic doublet lens (f = 300 mm, AC508-300-A-ML, Thorlabs). We coupled the laser to a pair of galvanometric scan mirrors (6210H, Cambridge Technology) in combination with rapid analog laser power modulation to allow fast movement of the focused beam between cortical target sites. At the focus, the laser beam had a diameter of approximately 200 µm.

We started photoinhibition only after mice reached expert performance in a given task (criterion for the simple or delay task: performance of approximately 85% correct or higher, criteria in the switching task: at least two rule switches with only 15% visually guided trials per session). We thus started inhibition after shorter training times in the simple task group of mice, compared to the complex task (delay or switching) groups that required longer training times to reach expert performance (see Figure 1). In each session, we bilaterally targeted PPC, RSC, S1, and a control site outside of the brain (on the dental cement) on separate, interleaved trials. For PPC, S1, and control targets, we used single bilateral laser spots, with laser power sinusoidally modulated at 40 Hz and a time-average power of approximately 6.5 mW/spot. For RSC, we used three spots on each hemisphere to match the region’s anatomical extent, with laser power sinusoidally modulated at 20 Hz and a mean power of approximately 5 mW/spot. The target coordinates in mm from bregma were: RSC (−3.5, −2.5, −1.5 anterior–posterior [AP]; 0.5 medial–laterial [ML]); PPC (−2 AP, 1.75 ML); S1 (−0.5 AP, 2.5 ML); control (2 AP, 5 ML). Based on previous calibration studies (Guo et al., 2014; Pinto et al., 2019), we estimate that the laser powers employed here inhibited a cortical area with a radius of 1–2 mm per inhibition spot and a depth spanning the entire cortex (900 μm), indicating inhibition of both dysgranular and granular areas of RSC.

In each experimental session, blocks of at least 50 trials without laser light were alternated with laser-on blocks of 50 trials. Laser-on blocks only started if the mouse’s average performance in the preceding 30 trials was at least 85% correct. Thus, in the switching task, laser-on blocks occurred once the mouse had reached stable performance in the current rule block. In the switching task, rule switches happened after the end of each laser-on block. Within laser-on blocks, approximately 50% of trials were control trials, and the laser target location was randomly chosen for each trial. Within a trial, the laser was on from 0.5 s before visual cue onset at the trial beginning until the mouse reached the end of the maze, excluding the visual feedback and reward/ITI periods of the trial. In the run-to-visual-target task and a subset of sessions in the simple task, a single long block of 200 laser-on trials was delivered after the mouse reached high-performance levels, again with approximately 50% control trials randomly interleaved with cortical inhibition trials. In the simple task, inhibition effects did not vary between sessions with laser-on blocks of 50 or 200 trials.

For experiments with maze segment-specific inhibition in the delay task (Figure 1—figure supplement 5), the stem of the Y-maze was doubled in length to 200 cm, and the laser-on period per session was restricted to either only the cue period (maze beginning until delay onset) or the delay period (delay onset until the end of the maze, excluding visual feedback and reward/ITI periods). Cue only and delay only inhibition sessions were generally alternated from day to day. Mice spent 4.99 ± 1.12 s in the delay period in these experiments including the Y-arms of the maze, of which 2.26 ± 0.53 were spent in the delay period of the maze stem only (mean ± SD, 71 sessions across 5 mice).

For experiments with ITI inhibition in the switching task (Figure 1—figure supplement 6), PPC was the only cortical inhibition target. PPC was inhibited during the ITI for 50 consecutive trials following either the first or the second rule switch per session. In all other trials, the laser was steered to the control location during the ITI so that rule switches could not be inferred simply from the presence of laser light. Inhibition started upon the mouse reaching one of the two possible Y-arm maze ends and lasted throughout checkerboard feedback presentation and the ITI/reward delivery.

Long-term experimental stability and order of experiments across tasks

To ensure stability of experimental conditions across long times, we maintained constant laser power by measuring maximum power daily and cleaning optics if necessary. To ensure stability of inhibition conditions per mouse, we verified the alignment of the laser beam orientation to the mouse’s skull by creating a laser cross pattern to be centered on Bregma and to be aligned with the mouse’s AP–ML skull axes. To aid in the latter, we added marks on the mouse’s dental cement in AP and ML that the laser cross had to intersect. To change alignment horizontally or vertically, we moved an X–Y stage that the laser apparatus was mounted on. We controlled for rotation by slight adjustments to the posts holding the mouse’s headplate. Experiments in different cohorts across tasks were not systematically interleaved but were clustered in time as we iterated through hypotheses throughout the project. We have several indicators that experimental conditions remained stable and that differences across tasks were not the result of experimental drift. First, data for the switching task were collected in several groups of mice spanning the full range of data collection times, yet the average inhibition effects on performance were similar (group 1 [early] (mouse IDs 24, 27, 42) versus group 2 [late] (mouse IDs 72, 73, 74): ΔFraction correct for Rule A: S1: −9 ± 2% versus −7 ± 2%, RSC: −31 ± 1% versus −38 ± 4%, PPC: −34 ± 3% versus −30 ± 3 %, mean ± SEM). Second, data from the simple task with notably smaller inhibition effects were collected in between these two groups and were partly on overlapping days as the first group. Third, in some mice (Mouse IDs 38, 41), we tested the effect of inhibition in the identical mice in the simple task first, as well as after they learned the delay task, observing large differences in cortical inhibition effects in the same mice within weeks (ΔFraction correct in simple versus delay task: S1: −1 ± 2% versus −18 ± 18%, RSC: −16 ± 6% versus −36 ± 3%, PPC: −5 ± 2% versus −37 ± 8%, mean ± SEM).

Calcium imaging experiments

Large chronic cranial window surgery

We slightly modified procedures described previously (Kim et al., 2016; Kilic et al., 2020). Mice were injected with dexamethasone (3 µg per g body weight) 4–8 hr prior to surgery and anesthetized with isoflurane (1–2% in air). A cranial window surgery was performed to either fit a ‘crystal skull’ curved window (LabMaker UG) exposing the dorsal surface of both hemispheres (Kim et al., 2016) or the left hemisphere only (Kilic et al., 2020), or to fit a stack of custom laser-cut quartz glass coverslips (three coverslips with #1 thickness each [Electron Microscopy Sciences], cut to a ‘D’-shape with maximum dimensions of 5.5 mm medial–lateral and 7.7 mm anterior–posterior, and glued together with UV-curable optical adhesive [Norland Optics NOA65]), exposing the left cortical hemisphere. The skull was kept moist using saline throughout the drilling procedure and soaked in saline for 1–2 min before being lifted. The dura was removed before sealing the window using dental cement (Parkell). A custom titanium headplate was affixed to the skull using dental cement mixed with carbon powder (Sigma-Aldrich) to prevent light contamination. A custom aluminum ring was affixed on top of the headplate using dental cement. During imaging, this ring interfaced with a black rubber balloon enclosing the microscope objective for light shielding.

Calcium imaging setup and data acquisition

Data were collected using a large field of view two-photon microscope assembled as described previously (Sofroniew et al., 2016). In brief, the system consisted of a combination of a fast resonant scan mirror and two large galvanometric scan mirrors allowing for large scan angles. Together with a remote focusing unit to rapidly move the focus depth, this setup enabled random access imaging in a field of view of 5 mm diameter with 1 mm depth. The setup was assembled on a vertically mounted breadboard whose XYZ positions and rotation were controlled electronically via a gantry system (Thorlabs). Thus, to position the imaging objective with respect to the mouse, the position and rotation of the entire microscope were adjusted while the position of the mouse remained fixed. The excitation wavelength was 920 nm, and the average power at the sample was 60–70 mW. The microscope was controlled by ScanImage 2016 (Vidrio Technologies). We imaged in three distinct regions in the left cortical hemisphere: V1, PPC, and RSC. These regions were identified based on retinotopic mapping (see below). In each region, we acquired images in layer 2/3 from two planes spaced 50 µm in depth, at 5.36 Hz per plane at a resolution of 512 × 512 pixels (600 µm × 600 µm). Imaging was performed in expert mice in the simple task, switching task, and simple task after switching task experience (criterion for the simple task: performance of approximately 85% correct or higher, criteria in the switching task: at least two rule switches with only 15% visually guided trials per session). The stem of the Y-maze was extended by 50% (50 cm) compared to the maze architecture in photoinhibition sessions, resulting in a maze length of 230 cm. Each imaging session lasted 45–80 min. During imaging, slow drift of the image was occasionally corrected manually by moving the gantry to align the current image with an image from the beginning of the session. For synchronization of imaging and behavior data, both the imaging and the behavior frame clock were recorded on another computer using Wavesurfer (https://wavesurfer.janelia.org/).

Retinotopic mapping for selecting calcium imaging locations

We performed retinotopic mapping in mice used for calcium imaging experiments as previously described (Driscoll et al., 2017; Minderer et al., 2019). Mice were lightly anesthetized with isoflurane (0.7–1.2% in air). A tandem-lens macroscope was used in combination with a CMOS camera to image GCaMP fluorescence at 60 Hz (455 nm excitation, 469 nm emission). A periodic spherically corrected black and white checkered moving bar (Marshel et al., 2011) was presented in four movement directions on a gamma-corrected 27 inch IPS LCD monitor (MG279Q, Asus). The monitor was centered in front of the mouse’s right eye at an angle of 30° from the mouse’s midline. To produce retinotopic maps, we calculated the temporal Fourier transform at each pixel of the imaging data and extracted the phase at the stimulus frequency (Kalatsky and Stryker, 2003). These phase images were smoothed with a Gaussian filter (25 μm s.d.). Field sign maps were generated by computing the sine of the angle between the gradients of the average horizontal and vertical retinotopic maps.

For each retinotopic mapping session, we acquired an image of the superficial brain vasculature pattern under the same field of view. We acquired a similar brain vasculature image under the large field of view two-photon microscope. These two reference images were manually aligned and used to directly locate V1 and PPC locations for two-photon imaging. V1 imaging was performed in the most anterior part of V1 closest to PPC. The location for RSC imaging was positioned adjacent to the midline and about 300 μm anterior of the PPC location, thus targeting an anterior portion of dysgranular RSC.

General analyses

Statistical estimates and significance were generally generated with hierarchical bootstrapping (Saravanan et al., 2019), and data are reported as mean ± SEM of hierarchical bootstrap distributions, unless noted otherwise. SEM was calculated as the standard deviation of the means from a bootstrap distribution (n = 1000 resampled datasets). For analyses of optogenetic inhibition effects, resampled datasets were generated by sampling with replacement first at the level of sessions pooled across mice and then at the level of trials. For analyses of calcium imaging data, resampled datasets were generated by resampling at the level of sessions then neurons. For significance testing of differences between bootstrap distributions, the probability that one was greater or less than the other, whichever was smaller, was computed. To obtain a p value for a two-tailed test with α = 0.05, this probability was doubled. Analyses were performed with custom code in MATLAB. No statistical methods were used to predetermine sample sizes, but our sample sizes were similar to ones in previous publications in the field. Allocation of individual mice into experimental groups, that is behavioral tasks, was not randomized, and co-housed mice were trained on the same behavioral task and task sequence. Data collection was not performed blind to the experimental groups. Blinding experimenters would have been challenging as experimenters remained present throughout behavioral sessions to ensure the sessions were running smoothly, and many experimental groups were inferable by observing the virtual reality display and rewarded choices over time. Data collection was performed by four different experimentalists. Analyses were also nonblinded but performed by two different experimentalists. A small number of behavioral sessions were excluded from analysis due to low performance of the mouse on control trials. Imaging sessions were excluded in case of noticeable drift after motion correction.

Analysis of photoinhibition experiments

Effects of photoinhibition on performance

Performance was quantified as ‘fraction correct’, the fraction of trials in which the mouse made the correct choice. Chance performance was 50% correct. Effects of cortical inhibition were measured as ΔFraction Correct, the fraction correct with inhibition minus the fraction correct with the laser steered to the control (off-cortex) spot. Fraction correct and ΔFraction Correct were calculated on a session basis. For comparisons of control performance and performance with various cortical inhibition targets within a task, significance levels were adjusted with the Bonferroni method.

Photoinhibition effects on choice biases

Choice biases were calculated per mouse and task (Figure 1—figure supplement 2). For each session, a signed choice bias value for each inhibition target was calculated as: (Frac Corrleft − Frac Corrright)/(Frac Corrleft + Frac Corrright). Thus, a signed choice bias of 1 or −1 indicates that the mouse only made left or right choice, respectively.

Analysis of calcium imaging experiments

Preprocessing of imaging data

To correct for motion artifacts, custom code was used as described in detail previously (Chettih and Harvey, 2019; Chettih et al., 2019). In brief, motion correction was implemented as a sum of shifts on three distinct temporal scales: subframe, full-frame, and minutes-to-hour-long warping. After motion correction, regions of interest (ROIs) were extracted with Suite2P (Pachitariu et al., 2016). Afterwards, somatic sources were identified with a custom two-layer convolutional network in MATLAB trained on manually annotated labels to classify ROIs as neural somata, processes, or other (Chettih and Harvey, 2019). Only somatic sources were used. After identifying individual neurons, average fluorescence in each ROI was computed and converted into a normalized change in fluorescence (ΔF/F). We corrected the numerator of the ΔF/F calculation for neuropil by subtracting a scaled version of the neuropil signal estimated per neuron during source extraction:

FneuropilCorrected = F − 0.7*Fneuropil.

The baseline fluorescence of this trace was estimated as the 8th percentile of fluorescence within a 60-s window (baselineneuropilCorrected), and subtracted to get the numerator:

ΔF = FneuropilCorrected − baselineneuropilCorrected

We divided this by the baseline (again 8th percentile of 60-s window) of the raw fluorescence signal to get ΔF/F. The ΔF/F trace per neuron was deconvolved using the constrained AR-1 OASIS method (Friedrich et al., 2017). Decay constants were initialized at 2 s and optimized separately for each neuron.

All analyses were performed on deconvolved activity that was spatially binned along the long axis of the maze (5 cm bins). To be able to compare neural activity across tasks, only correct trials from high-performance periods were included (minimum of 80% correct in a window of 10 trials, which excludes periods after rule switches in the switching task). In the switching task, only trials from a single rule (Rule A, i.e., the vertical grating cue/horizontal grating cue requires a right/left choice) were included, unless noted otherwise. Furthermore, for comparisons of trial-type selectivity, noise correlations, or trial-type decoding across tasks, trials were subsampled to the low number of trials per trial type (i.e., horizontal cue/left trial versus vertical cue/right trial) per session in the switching task when considering only high-performance trials for Rule A (n = 30 trials per trial type).

Trial-type selectivity

To quantify if activity of single neurons was informative about the current trial type, the auROC was calculated for each bin and averaged per maze segment (first half of stem, second half of stem, Y-arms). Trial-type selectivity was defined as the unsigned version of the auROC: 2*|auROC – 0.5| (Najafi et al., 2020). To identify neurons with significant trial-type selectivity, for each neuron, unsigned auROC values were recomputed 100 times with shuffled trial labels, and the original value was compared to the resulting distribution. Trial-type selectivity was considered significant if the probability of drawing this value from the shuffled distribution was less than 0.01. The fraction of trial-type selective neurons was calculated for each spatial bin and subsequently averaged per maze segment. To analyze selectivity across both rules in the switching task, all four trial types were considered simultaneously to quantify if single-neuron activity per spatial bin was selective to trials with different cues, choices, or rules (Figure 4—figure supplement 4A). In these cases, trials were subsampled to 15 per trial type, rendering 60 trials overall to match the total number used in quantifications of trial-type selectivity when considering only Rule A or Rule B trials. To categorize single-neuron selectivity across spatial bins (Figure 4—figure supplement 4B, C), a neuron was first categorized as selective within each rule if its selectivity values were significant for three consecutive spatial bins, and the direction of selectivity per rule (left or right choice) was noted. Selectivity per neuron was then compared across rules to categorize each neuron into the following selectivity categories: ‘single trial-type’ (only selective in one of the two rules), ‘cue’ (selective in both rules, but to opposite choices), ‘choice’ (selective in both rules to the same choice), or ‘complex’ (selective to opposite choices at different spatial positions within a single rule or both rules).

Trial-type decoding

For each session and area, at each spatial bin, a linear SVM was trained to predict the current trial type (i.e., horizontal cue/left trial versus vertical cue/right trial) using the activity of a subsample of neurons (n = 5, 10, 25, 50, 75, 150, or 200 neurons, activity of each neuron z-scored), with 10-fold cross-validation. This procedure was repeated 40 times for populations of 5 or 10 neurons, and 20 times for populations of 25–200 neurons. For each repetition, the decoding accuracy per bin was calculated as the fraction of test trials in which the trial type was predicted correctly. Decoding accuracy was averaged across spatial bins and repetitions per subsampled population per session. To compare trial-type decoding across tasks, a two-way analysis of variance (ANOVA) with factors for task and population size was used.

Noise correlations

To measure pairwise noise correlations, we calculated the Pearson correlation coefficient for pairs of neurons separately for each trial type, and then averaged the coefficients across trial types. To compare noise correlations across tasks, a two-way ANOVA with factors for task and brain area combination was used. To assess the effect of noise correlations on population information, we disrupted noise correlations by shuffling the order of trials for each neuron independently for each trial type and repeated the trial-type decoding analysis above. We then calculated the difference in decoding accuracy, subtracting the mean accuracy with disrupted noise correlations from the mean accuracy with intact noise correlations, for a given population size and task.

Analysis of learning times and running

Quantification of learning times

To compare the number of training sessions necessary to achieve expert performance across tasks (Figure 1, Figure 4—figure supplement 1), training sessions were counted from the first day on the Y-maze, after training on the linear maze, until both of the following performance criteria were reached per session: maximum of 20% ‘visually guided trials’ and average fraction correct of at least 70% correct (switching task) or 85% (simple task and delay task). Note that in the switching task, these performance criteria included all trials per session, including trials following rule switches. For the delay task, an additional performance criterion was a delay length of 50 cm, and only mice without prior photoinhibition sessions in the simple task were included (five out of seven delay task mice).

Choice decoding based on running parameters

To quantify how well a mouse’s reported choice could be decoded from its running parameters in a given task, a generalized linear model was fit using as predictors the instantaneous treadmill velocities for all axes (pitch, roll, yaw), and the lateral maze position. Running parameters were spatially binned along the maze’s long axis (5 cm bins), and a different model was trained for each bin with 10-fold cross-validation. In photoinhibition experiments, only control trials were used. In calcium imaging experiments, only correct trials from high-performance periods were used (minimum of 80% correct in a window of 10 trials, which excludes periods after rule switches in the switching task), and in each session, trials were subsampled to the low number of trials per trial type in the switching task when considering only high-performance trials for a single rule per session (n = 30 trials per trial type). To subselect calcium imaging sessions with similar running patterns to control for differences in running patterns across tasks (Figure 4—figure supplement 2), we used a session-wise criterion of average choice decoding accuracy of 85–95% in the maze stem.

Acknowledgements

We thank Yvette Fisher, Lauren Orefice, and members of the Harvey lab for feedback on the manuscript, Matthias Minderer for optogenetics designs and code, Shih-Yi Tseng for input on behavioral training, Kıvılcım Kılıç for demonstrating a crystal skull cranial window surgery, and the Research Instrumentation Core at Harvard Medical School. This work was supported by grants from the NIH (R01 MH107620, R01 NS089521, R01 NS108410, DP1 MH125776), an NIMH Diversity Supplement, a Louis Perry Jones Postdoctoral Fellowship (CA), Alice and Joseph Brooks Postdoctoral Fellowships (CA, SK), a Mahoney Postdoctoral Fellowship (CA), a Leonard and Isabelle Goldenson Postdoctoral Fellowship (SK), a Uehara Foundation Research Fellowship (SK), a NARSAD Young Investigator Grant (SK), a JSPS Overseas Research Fellowship (SK), an EMBO postdoctoral fellowship (SS), and a Stuart H.Q. & Victoria Quan Fellowship (NLP).

Funding Statement

The funders had no role in study design, data collection, and interpretation, or the decision to submit the work for publication.

Contributor Information

Christopher D Harvey, Email: harvey@hms.harvard.edu.

Mathieu Wolff, CNRS, University of Bordeaux, France.

Joshua I Gold, University of Pennsylvania, United States.

Funding Information

This paper was supported by the following grants:

  • National Institutes of Health R01 MH107620 to Christopher D Harvey.

  • National Institutes of Health R01 NS089521 to Christopher D Harvey.

  • National Institutes of Health R01 NS108410 to Christopher D Harvey.

  • National Institutes of Health DP1 MH125776 to Christopher D Harvey.

  • Louis Perry Jones Postdoctoral Fellowship to Charlotte Arlt.

  • Alice and Joseph Brooks Postdoctoral Fellowship to Charlotte Arlt.

  • Uehara Memorial Foundation Uehara Foundation Research Fellowship to Shinichiro Kira.

  • Leonard and Isabelle Goldenson Postdoctoral Fellowship to Shinichiro Kira.

  • Brain and Behavior Research Foundation NARSAD Young Investigator Grant to Shinichiro Kira.

  • Japan Society for the Promotion of Science Overseas Research Fellowship to Shinichiro Kira.

  • EMBO Postdoctoral Fellowship to Sofia Soares.

  • Mahoney Postdoctoral Fellowship to Charlotte Arlt.

  • Stuart H.Q. & Victoria Quan Fellowship to Noah L Pettit.

Additional information

Competing interests

No competing interests declared.

No competing interests declared.

Author contributions

Conceptualization, Formal analysis, Investigation, Methodology, Project administration, Resources, Software, Supervision, Visualization, Writing – original draft, Writing – review and editing.

Investigation, Methodology, Resources, Software, Writing – review and editing.

Methodology, Project administration, Resources, Supervision, Writing – review and editing.

Investigation.

Investigation.

Methodology, Resources, Writing – review and editing.

Methodology, Resources, Writing – review and editing.

Methodology, Resources, Writing – review and editing.

Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Supervision, Visualization, Writing – original draft, Writing – review and editing.

Ethics

All experimental procedures were approved by the Harvard Medical School Institutional Animal Care and Use Committee (protocol # 00000073-6) and were performed in compliance with the Guide for the Care and Use of Laboratory Animals.

Additional files

Transparent reporting form

Data availability

Data have been deposited in Dryad with the DOI: https://doi.org/10.5061/dryad.34tmpg4nr.

The following dataset was generated:

Arlt C. 2022. Cognitive experience alters cortical involvement in goal-directed navigation. Dryad Digital Repository.

References

  1. Akrami A, Kopec CD, Diamond ME, Brody CD. Posterior Parietal Cortex Represents Sensory History and Mediates Its Effects on Behavior. bioRxiv. 2017 doi: 10.1101/182246. [DOI] [PubMed]
  2. Alexander AS, Nitz DA. Retrosplenial cortex maps the conjunction of internal and external spaces. Nature Neuroscience. 2015;18:1143–1151. doi: 10.1038/nn.4058. [DOI] [PubMed] [Google Scholar]
  3. Alexander AS, Carstensen LC, Hinman JR, Raudies F, Chapman GW, Hasselmo ME. Egocentric boundary vector tuning of the retrosplenial cortex. Science Advances. 2020;6:eaaz2322. doi: 10.1126/sciadv.aaz2322. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Allen WE, Kauvar IV, Chen MZ, Richman EB, Yang SJ, Chan K, Gradinaru V, Deverman BE, Luo L, Deisseroth K. Global Representations of Goal-Directed Behavior in Distinct Cell Types of Mouse Neocortex. Neuron. 2017;94:891–907. doi: 10.1016/j.neuron.2017.04.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Aronov D, Tank DW. Engagement of neural circuits underlying 2D spatial navigation in a rodent virtual reality system. Neuron. 2014;84:442–456. doi: 10.1016/j.neuron.2014.08.042. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Averbeck BB, Latham PE, Pouget A. Neural correlations, population coding and computation. Nature Reviews. Neuroscience. 2006;7:358–366. doi: 10.1038/nrn1888. [DOI] [PubMed] [Google Scholar]
  7. Bartlett FC. Remembering. Cambridge University Press; 1932. [Google Scholar]
  8. Buschman TJ, Siegel M, Roy JE, Miller EK. Neural substrates of cognitive capacity limitations. PNAS. 2011;108:11252–11255. doi: 10.1073/pnas.1104666108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Caglayan A, Stumpenhorst K, Winter Y. Learning Set Formation and Reversal Learning in Mice During High-Throughput Home-Cage-Based Olfactory Discrimination. Frontiers in Behavioral Neuroscience. 2021;15:1–12. doi: 10.3389/fnbeh.2021.684936. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Ceballo S, Piwkowska Z, Bourg J, Daret A, Bathellier B. Targeted Cortical Manipulation of Auditory Perception. Neuron. 2019;104:1168–1179. doi: 10.1016/j.neuron.2019.09.043. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Chettih SN, Harvey CD. Single-neuron perturbations reveal feature-specific competition in V1. Nature. 2019;567:334–340. doi: 10.1038/s41586-019-0997-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Chettih SN, Minderer M, Morcos A, Driscoll L, Runyan C, Jaffe A, Pettit N. Acquisition2P_class. ca45544GitHub. 2019 https://github.com/HarveyLab/Acquisition2P_class/tree/motionCorrection
  13. Chowdhury SA, DeAngelis GC. Fine discrimination training alters the causal contribution of macaque area MT to depth perception. Neuron. 2008;60:367–377. doi: 10.1016/j.neuron.2008.08.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Cohen MR, Kohn A. Measuring and interpreting neuronal correlations. Nature Neuroscience. 2011;14:811–819. doi: 10.1038/nn.2842. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Domnisoru C, Kinkhabwala AA, Tank DW. Membrane potential dynamics of grid cells. Nature. 2013;495:199–204. doi: 10.1038/nature11973. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Driscoll LN, Pettit NL, Minderer M, Chettih SN, Harvey CD. Dynamic Reorganization of Neuronal Activity Patterns in Parietal Cortex. Cell. 2017;170:986–999. doi: 10.1016/j.cell.2017.07.021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Eichenbaum H, Fagan A, Cohen NJ. Normal olfactory discrimination learning set and facilitation of reversal learning after medial-temporal damage in rats: implications for an account of preserved learning abilities in amnesia. The Journal of Neuroscience. 1986;6:1876–1884. doi: 10.1523/jneurosci.06-07-01876.1986. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Erlich JC, Bialek M, Brody CD. A cortical substrate for memory-guided orienting in the rat. Neuron. 2011;72:330–343. doi: 10.1016/j.neuron.2011.07.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Fischer LF, Mojica Soto-Albors R, Buck F, Harnett MT. Representation of visual landmarks in retrosplenial cortex. eLife. 2020;9:e51458. doi: 10.7554/eLife.51458. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Franco LM, Goard MJ. A distributed circuit for associating environmental context with motor choice in retrosplenial cortex. Science Advances. 2021;7:eabf9815. doi: 10.1126/sciadv.abf9815. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Freedman DJ, Ibos G. An Integrative Framework for Sensory, Motor, and Cognitive Functions of the Posterior Parietal Cortex. Neuron. 2018;97:1219–1234. doi: 10.1016/j.neuron.2018.01.044. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Friedrich J, Zhou P, Paninski L, Vogelstein J. Fast online deconvolution of calcium imaging data. PLOS Computational Biology. 2017;13:e1005423. doi: 10.1371/journal.pcbi.1005423. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Fusi S, Miller EK, Rigotti M. Why neurons mix: high dimensionality for higher cognition. Current Opinion in Neurobiology. 2016;37:66–74. doi: 10.1016/j.conb.2016.01.010. [DOI] [PubMed] [Google Scholar]
  24. Fuster JM. Network memory. Trends in Neurosciences. 1997;20:451–459. doi: 10.1016/S0166-2236(97)01128-4. [DOI] [PubMed] [Google Scholar]
  25. Goard MJ, Pho GN, Woodson J, Sur M. Distinct roles of visual, parietal, and frontal motor cortices in memory-guided sensorimotor decisions. eLife. 2016;5:e13764. doi: 10.7554/eLife.13764. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Gold JI, Shadlen MN. The Neural Basis of Decision Making. Annual Review of Neuroscience. 2007;30:535–574. doi: 10.1146/annurev.neuro.29.051605.113038. [DOI] [PubMed] [Google Scholar]
  27. Golub MD, Sadtler PT, Oby ER, Quick KM, Ryu SI, Tyler-Kabara EC, Batista AP, Chase SM, Yu BM. Learning by neural reassociation. Nature Neuroscience. 2018;21:607–616. doi: 10.1038/s41593-018-0095-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Guo ZV, Li N, Huber D, Ophir E, Gutnisky D, Ting JT, Feng G, Svoboda K. Flow of cortical activity underlying a tactile decision in mice. Neuron. 2014;81:179–194. doi: 10.1016/j.neuron.2013.10.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Hanks TD, Ditterich J, Shadlen MN. Microstimulation of macaque area LIP affects decision-making in a motion discrimination task. Nature Neuroscience. 2006;9:682–689. doi: 10.1038/nn1683. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Harlow HF. The formation of learning sets. Psychological Review. 1949;56:51–65. doi: 10.1037/h0062474. [DOI] [PubMed] [Google Scholar]
  31. Harvey CD, Collman F, Dombeck DA, Tank DW. Intracellular dynamics of hippocampal place cells during virtual navigation. Nature. 2009;461:941–946. doi: 10.1038/nature08499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Harvey CD, Coen P, Tank DW. Choice-specific sequences in parietal cortex during a virtual-navigation decision task. Nature. 2012;484:62–68. doi: 10.1038/nature10918. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Hattori R, Danskin B, Babic Z, Mlynaryk N, Komiyama T. Area-Specificity and Plasticity of History-Dependent Value Coding During Learning. Cell. 2019;177:1858–1872. doi: 10.1016/j.cell.2019.04.027. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Hwang EJ, Dahlen JE, Hu YY, Aguilar K, Yu B, Mukundan M, Mitani A, Komiyama T. Disengagement of motor cortex from movement control during long-term learning. Science Advances. 2019;5:eaay0001. doi: 10.1126/sciadv.aay0001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Inagaki HK, Inagaki M, Romani S, Svoboda K. Low-Dimensional and Monotonic Preparatory Activity in Mouse Anterior Lateral Motor Cortex. The Journal of Neuroscience. 2018;38:4163–4185. doi: 10.1523/JNEUROSCI.3152-17.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Johnston K, Levin HM, Koval MJ, Everling S. Top-down control-signal dynamics in anterior cingulate and prefrontal cortex neurons following task switching. Neuron. 2007;53:453–462. doi: 10.1016/j.neuron.2006.12.023. [DOI] [PubMed] [Google Scholar]
  37. Kafashan MM, Jaffe AW, Chettih SN, Nogueira R, Arandia-Romero I, Harvey CD, Moreno-Bote R, Drugowitsch J. Scaling of sensory information in large neural populations shows signatures of information-limiting correlations. Nature Communications. 2021;12:1–16. doi: 10.1038/s41467-020-20722-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Kalatsky VA, Stryker MP. New paradigm for optical imaging: temporally encoded maps of intrinsic signal. Neuron. 2003;38:529–545. doi: 10.1016/s0896-6273(03)00286-1. [DOI] [PubMed] [Google Scholar]
  39. Katz LN, Yates JL, Pillow JW, Huk AC. Dissociated functional significance of decision-related activity in the primate dorsal stream. Nature. 2016;535:285–288. doi: 10.1038/nature18617. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Kawai R, Markman T, Poddar R, Ko R, Fantana AL, Dhawale AK, Kampff AR, Ölveczky BP. Motor cortex is required for learning but not for executing a motor skill. Neuron. 2015;86:800–812. doi: 10.1016/j.neuron.2015.03.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Kilic K, Desjardins M, Tang J, Thunemann M, Sunil S, Erdener ŞE, Postnov DD, Boas DA, Devor A. Chronic Cranial Windows for Long Term Multimodal Neurovascular Imaging in Mice. Frontiers in Physiology. 2020;11:1–10. doi: 10.3389/fphys.2020.612678. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Kim TH, Zhang Y, Lecoq J, Jung JC, Li J, Zeng H, Niell CM, Schnitzer MJ. Long-Term Optical Access to an Estimated One Million Neurons in the Live Mouse Cortex. Cell Reports. 2016;17:3385–3394. doi: 10.1016/j.celrep.2016.12.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Koay SA, Thiberge SY, Brody CD, Tank DW. Amplitude modulations of cortical sensory responses in pulsatile evidence accumulation. eLife. 2020;9:e60628. doi: 10.7554/eLife.60628. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Lashley KS. MASS ACTION IN CEREBRAL FUNCTION. Science (New York, N.Y.) 1931;73:245–254. doi: 10.1126/science.73.1888.245. [DOI] [PubMed] [Google Scholar]
  45. Li N, Chen S, Guo ZV, Chen H, Huo Y, Inagaki HK, Chen G, Davis C, Hansel D, Guo C, Svoboda K. Spatiotemporal constraints on optogenetic inactivation in cortical circuits. eLife. 2019;8:e48622. doi: 10.7554/eLife.48622. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Licata AM, Kaufman MT, Raposo D, Ryan MB, Sheppard JP, Churchland AK. Posterior Parietal Cortex Guides Visual Decisions in Rats. The Journal of Neuroscience. 2017;37:4954–4966. doi: 10.1523/JNEUROSCI.0105-17.2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Liu LD, Pack CC. The Contribution of Area MT to Visual Motion Perception Depends on Training. Neuron. 2017;95:436–446. doi: 10.1016/j.neuron.2017.06.024. [DOI] [PubMed] [Google Scholar]
  48. Lyamzin D, Benucci A. The mouse posterior parietal cortex: Anatomy and functions. Neuroscience Research. 2019;140:14–22. doi: 10.1016/j.neures.2018.10.008. [DOI] [PubMed] [Google Scholar]
  49. Marshel JH, Garrett ME, Nauhaus I, Callaway EM. Functional specialization of seven mouse visual cortical areas. Neuron. 2011;72:1040–1054. doi: 10.1016/j.neuron.2011.12.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. McKenzie S, Robinson NTM, Herrera L, Churchill JC, Eichenbaum H. Learning causes reorganization of neuronal firing patterns to represent related experiences within a hippocampal schema. The Journal of Neuroscience. 2013;33:10243–10256. doi: 10.1523/JNEUROSCI.0879-13.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Milczarek MM, Vann SD, Sengpiel F. Spatial Memory Engram in the Mouse Retrosplenial Cortex. Current Biology. 2018;28:1975–1980. doi: 10.1016/j.cub.2018.05.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Minderer M, Brown KD, Harvey CD. The Spatial Structure of Neural Encoding in Mouse Posterior Cortex during Navigation. Neuron. 2019;102:232–248. doi: 10.1016/j.neuron.2019.01.029. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Morcos AS, Harvey CD. History-dependent variability in population dynamics during evidence accumulation in cortex. Nature Neuroscience. 2016;19:1672–1681. doi: 10.1038/nn.4403. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Najafi F, Elsayed GF, Cao R, Pnevmatikakis E, Latham PE, Cunningham JP, Churchland AK. Excitatory and Inhibitory Subnetworks Are Equally Selective during Decision-Making and Emerge Simultaneously during Learning. Neuron. 2020;105:165–179. doi: 10.1016/j.neuron.2019.09.045. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Oby ER, Golub MD, Hennig JA, Degenhart AD, Tyler-Kabara EC, Yu BM, Chase SM, Batista AP. New neural activity patterns emerge with long-term learning. PNAS. 2019;116:15210–15215. doi: 10.1073/pnas.1820296116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Pachitariu M, Stringer C, Dipoppa M, Schröder S, Rossi LF, Dalgleish H, Carandini M, Harris KD. Suite2p: Beyond 10,000 Neurons with Standard Two-Photon Microscopy. bioRxiv. 2016 doi: 10.1101/061507. [DOI]
  57. Panzeri S, Schultz SR, Treves A, Rolls ET. Correlations and the encoding of information in the nervous system. Proceedings. Biological Sciences. 1999;266:1001–1012. doi: 10.1098/rspb.1999.0736. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Piaget J. The Language and Thought of the Child. Harcourt, Brace; 1926. [Google Scholar]
  59. Pinto L, Rajan K, DePasquale B, Thiberge SY, Tank DW, Brody CD. Task-Dependent Changes in the Large-Scale Dynamics and Necessity of Cortical Regions. Neuron. 2019;104:810–824. doi: 10.1016/j.neuron.2019.08.025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Plitt MH, Giocomo LM. Experience-dependent contextual codes in the hippocampus. Nature Neuroscience. 2021;24:705–714. doi: 10.1038/s41593-021-00816-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Pothuizen HHJ, Davies M, Albasser MM, Aggleton JP, Vann SD. Granular and dysgranular retrosplenial cortices provide qualitatively different contributions to spatial working memory: evidence from immediate-early gene imaging in rats. The European Journal of Neuroscience. 2009;30:877–888. doi: 10.1111/j.1460-9568.2009.06881.x. [DOI] [PubMed] [Google Scholar]
  62. Powell AL, Vann SD, Olarte-Sánchez CM, Kinnavane L, Davies M, Amin E, Aggleton JP, Nelson AJD. The retrosplenial cortex and object recency memory in the rat. The European Journal of Neuroscience. 2017;45:1451–1464. doi: 10.1111/ejn.13577. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Raposo D, Kaufman MT, Churchland AK. A category-free neural population supports evolving demands during decision-making. Nature Neuroscience. 2014;17:1784–1792. doi: 10.1038/nn.3865. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Rigotti M, Barak O, Warden MR, Wang XJ, Daw ND, Miller EK, Fusi S. The importance of mixed selectivity in complex cognitive tasks. Nature. 2013;497:585–590. doi: 10.1038/nature12160. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Ruff DA, Cohen MR. Simultaneous multi-area recordings suggest that attention improves performance by reshaping stimulus representations. Nature Neuroscience. 2019;22:1669–1676. doi: 10.1038/s41593-019-0477-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. Sadtler PT, Quick KM, Golub MD, Chase SM, Ryu SI, Tyler-Kabara EC, Yu BM, Batista AP. Neural constraints on learning. Nature. 2014;512:423–426. doi: 10.1038/nature13665. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Saez A, Rigotti M, Ostojic S, Fusi S, Salzman CD. Abstract Context Representations in Primate Amygdala and Prefrontal Cortex. Neuron. 2015;87:869–881. doi: 10.1016/j.neuron.2015.07.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Saleem AB, Diamanti EM, Fournier J, Harris KD, Carandini M. Coherent encoding of subjective spatial position in visual cortex and hippocampus. Nature. 2018;562:124–127. doi: 10.1038/s41586-018-0516-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Salzman CD, Britten KH, Newsome WT. Cortical microstimulation influences perceptual judgements of motion direction. Nature. 1990;346:174–177. doi: 10.1038/346174a0. [DOI] [PubMed] [Google Scholar]
  70. Saravanan V, Berman GJ, Sober SJ. Application of the Hierarchical Bootstrap to Multi-Level Data in Neuroscience. bioRxiv. 2019 doi: 10.1101/819334. [DOI] [PMC free article] [PubMed]
  71. Sarma A, Masse NY, Wang XJ, Freedman DJ. Task-specific versus generalized mnemonic representations in parietal and prefrontal cortices. Nature Neuroscience. 2016;19:143–149. doi: 10.1038/nn.4168. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Sharpe MJ, Batchelor HM, Mueller LE, Gardner MPH, Schoenbaum G. Past experience shapes the neural circuits recruited for future learning. Nature Neuroscience. 2021;24:391–400. doi: 10.1038/s41593-020-00791-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Siniscalchi MJ, Phoumthipphavong V, Ali F, Lozano M, Kwan AC. Fast and slow transitions in frontal ensemble activity during flexible sensorimotor behavior. Nature Neuroscience. 2016;19:1234–1242. doi: 10.1038/nn.4342. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Smith DM, Miller AMP, Vedder LC. The retrosplenial cortical role in encoding behaviorally significant cues. Behavioral Neuroscience. 2018;132:356–365. doi: 10.1037/bne0000257. [DOI] [PMC free article] [PubMed] [Google Scholar]
  75. Sofroniew NJ, Flickinger D, King J, Svoboda K. A large field of view two-photon mesoscope with subcellular resolution for in vivo imaging. eLife. 2016;5:e14472. doi: 10.7554/eLife.14472. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Spiers HJ, Maguire EA. Thoughts, behaviour, and brain dynamics during navigation in the real world. NeuroImage. 2006;31:1826–1840. doi: 10.1016/j.neuroimage.2006.01.037. [DOI] [PubMed] [Google Scholar]
  77. Stacho M, Manahan-Vaughan D. Mechanistic flexibility of the retrosplenial cortex enables its contribution to spatial cognition. Trends in Neurosciences. 2022;45:284–296. doi: 10.1016/j.tins.2022.01.007. [DOI] [PubMed] [Google Scholar]
  78. Todd TP, Meyer HC, Bucci DJ. Contribution of the retrosplenial cortex to temporal discrimination learning. Hippocampus. 2015;25:137–141. doi: 10.1002/hipo.22385. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Tse D, Langston RF, Kakeyama M, Bethus I, Spooner PA, Wood ER, Witter MP, Morris RGM. Schemas and memory consolidation. Science (New York, N.Y.) 2007;316:76–82. doi: 10.1126/science.1135935. [DOI] [PubMed] [Google Scholar]
  80. Vedder LC, Miller AMP, Harrison MB, Smith DM. Retrosplenial Cortical Neurons Encode Navigational Cues, Trajectories and Reward Locations During Goal Directed Navigation. Cerebral Cortex (New York, N.Y. 2017;27:3713–3723. doi: 10.1093/cercor/bhw192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  81. Yang Y, Zador AM. Differences in sensitivity to neural timing among cortical areas. The Journal of Neuroscience. 2012;32:15142–15147. doi: 10.1523/JNEUROSCI.1411-12.2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Zatka-Haas P, Steinmetz NA, Carandini M, Harris KD. Sensory coding and the causal impact of mouse cortex in a visual decision. eLife. 2021;10:e63163. doi: 10.7554/eLife.63163. [DOI] [PMC free article] [PubMed] [Google Scholar]
  83. Zhang S, Xu M, Chang WC, Ma C, Hoang Do JP, Jeong D, Lei T, Fan JL, Dan Y. Organization of long-range inputs and outputs of frontal cortex for top-down control. Nature Neuroscience. 2016;19:1733–1742. doi: 10.1038/nn.4417. [DOI] [PMC free article] [PubMed] [Google Scholar]
  84. Zhou Y, Freedman DJ. Posterior parietal cortex plays a causal role in perceptual and categorical decisions. Science (New York, N.Y.) 2019;365:180–185. doi: 10.1126/science.aaw8347. [DOI] [PMC free article] [PubMed] [Google Scholar]
  85. Znamenskiy P, Zador AM. Corticostriatal neurons in auditory cortex drive decisions during auditory discrimination. Nature. 2013;497:482–485. doi: 10.1038/nature12077. [DOI] [PMC free article] [PubMed] [Google Scholar]
  86. Zohary E, Shadlen MN, Newsome WT. Correlated neuronal discharge rate and its implications for psychophysical performance. Nature. 1994;370:140–143. doi: 10.1038/370140a0. [DOI] [PubMed] [Google Scholar]

Editor's evaluation

Mathieu Wolff 1

The paper is of interest to people interested in understanding the neural substrates of learning and how these can be impacted by previous knowledge and training history. It also has relevance for behavioral neuroscientists when considering possible order effects of experiments.

Decision letter

Editor: Mathieu Wolff1
Reviewed by: Mathieu Wolff2

Our editorial process produces two outputs: i) public reviews designed to be posted alongside the preprint for the benefit of readers; ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.

Decision letter after peer review:

Thank you for submitting your article "Cognitive experience alters cortical involvement in navigation decisions" for consideration by eLife. Your article has been reviewed by 3 peer reviewers, including Mathieu Wolff as the Reviewing Editor and Reviewer #1, and the evaluation has been overseen by Joshua Gold as the Senior Editor.

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

Essential revisions:

1) The current narrative on training history is the unique angle to discuss the data but there are other alternative interpretations that cannot be ruled out by the present dataset. For example, one could argue that mice can form learning sets during the whole behavioral procedure and this may impact how well they perform in a given task. Alternatively, it is possible that switching from one task to another in the exact same environment is actually challenging behavioral flexibility. These are important points to consider, as all referees expressed specific concerns along these lines and you can find in the individual reviews multiple options and possibilities to address that. It is expected that if no new data is provided, substantial revisions in the introduction, discussion and possibly the title are necessary to have a more balanced analysis of the behavioral data.

2) The calcium imaging dataset does not deliver a very clear message because the link with the functional study is not very clear (see ref 2) and no clear rationale is provided to consider only very specific portions of the data (see ref 1).

3) On the theoretical ground, authors need to better explain why these 3 particular tasks were selected and why they put such a strong emphasis on "decision-making" (see ref 1 and 2). These tasks do not seem to correspond to classic "decision-making" tasks. The take on decision-making is thus unclear and needs to be justified or removed to provide a fair and accurate description of each task.

Reviewer #1 (Recommendations for the authors):

The whole rationale for selecting each of these tasks really needs much clearer statements and reasoning and the analysis needs to focus on the specific features of each of these tasks otherwise it is very difficult to provide a straightforward interpretation of the data.

Perhaps it is possible to provide more behavioral data to disentangle these different possibilities? In particular, providing more information on the kinetics of each task could be useful (trials to criterion for a given task, depending on prior history) if this is not limited by interindividual variability.

Reviewer #2 (Recommendations for the authors):

What is the rationale for assessing S1 in the optogenetic study and V1 in the calcium imaging study?

It would be helpful to have greater specificity about the areas that are being investigated. For example, are the authors looking at dygranular/granular retrosplenial cortex or both? For the more posterior site (-3.5) for retrosplenial inhibition, from the coordinates and description it appears that the area of impact would encroach into the visual cortex.

I cannot quite work out the time-line for the calcium imaging study. Is the simple experience-simple task study carried out first or is this carried out in a separate group of animals? I have concerns about the extent to which these comparisons are properly matched. There are a number of studies showing that retrosplenial in particular shows a slow development of neural representation related to spatial tasks/stimuli. That retrosplenial cortex is particularly important for familiar landmarks/cues. As such this would need to be considered with the calcium imaging. The simple experience and complex experience groups should be matched for the length of actual exposure/training with the cues allowing the possible development of spatial engrams/cell selectivity irrespective of cognitive demands. Likewise, there could be differences in terms of photobleaching depending on the timelines, number of imaging sessions. it may be that all this has been considered and taken into account but as it is currently written I can't work out these details.

The authors state there is no difference in running speed but from what I can gather they have just looked at the running speed across the entire trial. Is there any evidence of difference at the decision point – i.e., more slowing down in some conditions that could be linked to decision making?

There is a large amount of relevant literature, particularly relating to retrosplenial cortex, that the authors do not cite which could help in contextualising the current research more accurately.

For the calcium imaging the authors state they only look at the Rule A trials during the switching task – i.e., the ones that then match the simple task. I understand that provides the closest comparison across tasks but it does seem a shame not to be also looking at the Rule B data. This could provide very useful information about the specificity of the neural responses across the different rules. This could inform the extent to which these neural responses reflect specific cue/response representations or reflect more global task requirement representations and perhaps help address whether the more extensive training just helps with the encoding of the cue/responses for these specific cues or provides a better neural framework for general learning/attention.

Reviewer #3 (Recommendations for the authors):

These are a really interesting set of experiments that speak to an important question in the field about how prior experiences affect subsequent learning/information processing. The authors present robust data that suggest that learning the complex task (switching or delay tasks) leads to a profound effect on the role of PPC and RSC for performing a subsequent similar but different (simple) task.

One nagging question is why this is the case? I do not think more data is required for publication but it would be helpful for the authors to address the following questions either with data or further comments in the discussion/speculation portion of their manuscript.

Is this a form of schema-learning? Such that due to the prior learning of the complex task that is more dependent on PPC and RSC, the new subsequent task that is similar across many features is now being integrated with the representation of the prior complex task and thus more dependent on cortical representations? I don't think the authors need to do experiments to tease this idea apart but it would be helpful to include this in the discussion or speculation portion.

Could it be due to the timecourse of systems consolidation? I assume that more time elapses between the start of when animals learn the complex task and when they are being imaged/optogenetically manipulated on the simple task compared to the animals that just get the simple task. Meaning, animals that only get the simple task have less time experiencing these cues. If that's true, is it possible that over time, these cues/representations become more and more cortically dependent? If the authors have the data to address this question, then it would be helpful. If not, please comment on this idea in the discussion/speculation.

Is there competitive processing between the complex and simple task? Does activity in the PPC or RSC support inhibiting the prior complex task rule so that animals can better perform the simple task? If authors have the data- are there mice that perform poorly on the complex task? Does inhibition of PPC or RSC have a smaller effect on the simple task in those mice? Is there a competition between accessing/inhibiting prior tasks and the current simple task?

[Editors' note: further revisions were suggested prior to acceptance, as described below.]

Thank you for resubmitting your work entitled "Cognitive experience alters cortical involvement in goal-directed navigation" for further consideration by eLife. Your revised article has been evaluated by Joshua Gold (Senior Editor) and a Reviewing Editor.

The manuscript has been improved but there are some remaining issues that need to be addressed, as outlined below:

All reviewers confirmed the general interest of the paper and the high quality of the data but still felt that the paper is somewhat undermined by the lack of clarity on the conceptual framework. We suggest two lines to help address the remaining issues and improve the paper.

1. The description of the behavioral paradigm would still benefit from a revision. All reviewers felt that mentions to "navigation" and "decision-making" do not seem adequate considering the tasks that are being used do not really specifically assess these processes (navigation is at best virtual here and the task do not specifically tap into decision-making, the new take on 'decision points' – Fig1Sup1 and related text – does not really add to the story and is possibly distracting). Perhaps "visual discrimination" or "visually-cued task" or anything similar would be more relevant here (with a 'delay' and 'reversal' conditions). It is important here to edit the ms beyond simply replacing a word by another to ensure a comprehensive and consistent description of the task from abstract to discussion – this has not been done previously. When navigation was added in the revision, it was on top of decision-making, making this issue even worse. That the delay condition is not discussed in terms of working memory is still a bit puzzling (the role of the PPC could be discussed relative to that) as it operationally corresponds quite strictly to that, at least as most commonly assessed in rodent.

2. The schematics provided to explain the behavioral approach could be a little more straightforward and complete. It needs to be more explicitly stated when conditions are matched and when they are not. Based on the rebuttal from the authors, it seems that animals reportedly trained first on 'complex' tasks (that is, delay or switching) are actually trained first on the simple task so plots in Figure 1A / 2A are factually incorrect (it should be simple task --> delay/switching task --> simple task). This may certainly impact on the interpretation and it should be discussed: animals are thus not matched in terms of time from first exposure to stimuli and they are not matched in terms of overall exposure to stimuli and training apparatus. Perhaps considering David Smith's work could be relevant here to stress the importance of the rsc in encoding salient cues but also for late stage learning (Smith et al., Behav Neurosci, 2018). See also Vedder et al., Cereb Cortex 2017.

eLife. 2022 Jun 23;11:e76051. doi: 10.7554/eLife.76051.sa2

Author response


Essential revisions:

1) The current narrative on training history is the unique angle to discuss the data but there are other alternative interpretations that cannot be ruled out by the present dataset. For example, one could argue that mice can form learning sets during the whole behavioral procedure and this may impact how well they perform in a given task. Alternatively, it is possible that switching from one task to another in the exact same environment is actually challenging behavioral flexibility. These are important points to consider, as all referees expressed specific concerns along these lines and you can find in the individual reviews multiple options and possibilities to address that. It is expected that if no new data is provided, substantial revisions in the introduction, discussion and possibly the title are necessary to have a more balanced analysis of the behavioral data.

We thank the reviewers for these interesting perspectives on training history effects. We want to emphasize that we do not view these suggestions as strict alternatives to our general conclusion that cognitive experience affects cortical task involvement. Rather, we have used ‘cognitive experience’ or ‘training history’ as umbrella terms agnostic to the underlying mechanism causing persistent cortical involvement after transition from a complex task to the simple task.

We found the reviewers’ possible explanations very interesting and have evaluated them both in the context of our experimental design and results. A key point to consider is that when mice were transitioned from a complex task to the simple task, the simple task is not a novel task. Indeed, the simple task is a well-experienced simplification of the previous task that the mouse has already encountered. Mice that are experts on the delay task have experienced the simple task, i.e. trials without a delay period, during their training procedure before being exposed to delay periods. Mice that are experts at the switching task know the simple task as one rule of the switching task and have performed according to this rule in each session prior to the task transition. Accordingly, both delay task experts and switching task experts perform at very high levels on the very first simple task session after the task transition, which we now quantify in Figure 2—figure supplement 1 (A, B). This is crucial to keep in mind when assessing ‘learning sets’ or ‘behavioral flexibility’ as possible explanations for the persistent cortical involvement after the task transitions. In classical learning sets paradigms, animals are exposed to a series of novel associations, and the learning of previous associations speeds up the learning of subsequent ones (Caglayan et al., 2021; Eichenbaum et al., 1986; Harlow, 1949). This is a distinct paradigm from ours as the simple task does not contain novel associations that are unfamiliar to the mice previously trained on the complex tasks. Relatedly, the simple task is unlikely to present a challenge of behavioral flexibility to these mice given our experimental design and the observation that mice exhibit very high performance on the first session in the simple task after the task transition. We now clarify these points in the introduction, results, and Discussion sections, also acknowledging that it will be of interest for future work to investigate how learning sets may affect cortical task involvement.

2) The calcium imaging dataset does not deliver a very clear message because the link with the functional study is not very clear (see ref 2) and no clear rationale is provided to consider only very specific portions of the data (see ref 1).

We thank the reviewers for pointing out that the relationship between the inhibition dataset and calcium imaging dataset is not clear enough. We restricted analyses of inhibition and calcium imaging data in the switching task to the identical cue-choice associations as present in the simple task (i.e. Rule A trials of the switching task). We did this because we sought to make the fairest and most convincing comparison across tasks for both datasets. However, we can now see that not reporting results with trials from the other rule causes concerns that the reported differences across tasks may only hold for a specific subset of trials.

We have now added analyses of optogenetic inhibition effects and calcium imaging results considering Rule B trials. In Figure 1—figure supplement 2, we show that when considering only Rule B trials in the switching task, effects of RSC or PPC inhibition on task performance are still increased relative to the ones observed in mice trained on and performing the simple task. We also show that overall task performance is lower in Rule B trials of the switching task than in the simple task, mirroring the differences across tasks when considering Rule A trials only.

We extended the equivalent comparisons to the calcium imaging dataset and now consider Rule B trials of the switching task in Figure 4—figure supplement 3. With Rule B trials, we still find larger mean activity and trial-type selectivity levels in RSC and PPC, but not in V1, compared to the simple task, as well as lower noise correlations. We thus find that our conclusions about area necessity and activity differences across tasks hold for Rule B trials and are not due to only considering a subset of the switching task data.

In Figure 4—figure supplement 4, we further leverage the inclusion of Rule B trials and present new analyses of different single-neuron selectivity categories across rules in the switching task, reporting a prevalence of mixed selectivity in our dataset.

Furthermore, to clarify the link between the optogenetic inhibition and the calcium imaging datasets, we have revised the motivation for the imaging dataset, as well as the presentation of its results and discussion. Investigating an area’s neural activity patterns is a crucial first step towards understanding how differential necessity of an area across tasks or experience can be explained mechanistically on a circuit level. We now elaborate on the fact that mechanistically, changes in an area’s necessity may or may not be accompanied by changes in activity within that area, as previous work in related experimental paradigms has reported differences in necessity in the absence of differences in activity (Chowdhury and DeAngelis, 2008; Liu and Pack, 2017). This phenomenon can be explained by differences in the readout of an area’s activity. We now make more explicit that in contrast to the scenario where only the readout changes, we find an intriguing correspondence between increased necessity (as seen in the inhibition experiments) and increased activity and selectivity levels (as seen in the imaging experiments) in cortical association areas depending on the current task and previous experience. Rather than attributing the increase in necessity solely to these observed changes in activity, we highlight that in the simple task condition already, cortical areas contain a high amount of task information, ruling out the idea that insufficient local information would cause the small performance deficits from inhibition. Our results thus suggest that differential necessity across tasks and experience may still require changes at the readout level despite changes in local activity. We view our imaging results as an exciting first step towards a mechanistic understanding of how cognitive experience affects cortical necessity, but we stress that future work will need to test directly the relationship between cortical necessity and various specific features of the neural code.

3) On the theoretical ground, authors need to better explain why these 3 particular tasks were selected and why they put such a strong emphasis on "decision-making" (see ref 1 and 2). These tasks do not seem to correspond to classic "decision-making" tasks. The take on decision-making is thus unclear and needs to be justified or removed to provide a fair and accurate description of each task.

We thank the reviewers for pointing this out and acknowledge that the previous emphasis on decisionmaking may have created expectations that we demonstrate effects that are specific to the ‘decisionmaking’ aspect of a decision task in contrast to sensory processing or motor output. As we do not isolate the decision-making process specifically, we have substantially revised our wording around the tasks and removed the emphasis on decision-making, including in the title. Rather than decision-making, we now highlight the navigational aspect of the tasks employed.

Furthermore, we now have elaborated on the motivation for the specific tasks in this study, on their cognitive requirements, and on behavioral quantifications indicating how mice solve the different tasks. We used the paradigm of spatial navigation as an ethologically relevant behavior in which mice use sensory cues to navigate to hidden reward locations associated with those cues. We chose PPC as one of the main areas studied here because there is a long history of literature on PPC in the context of decisionmaking across species, generally proposing that PPC is thought to convert sensory cues into actions (Freedman and Ibos, 2018; Goard et al., 2016; Harvey et al., 2012). Moreover, several studies have highlighted the importance of PPC for navigation-based decision tasks (Driscoll et al., 2017; Harvey et al., 2012; Pinto et al., 2019). Importantly, a recent comparison of several inactivation studies in rodents proposed that specific task components involving short-term memory may cause PPC to be necessary for a given decision task (Lyamzin and Benucci, 2019). In choosing what complex tasks to use for establishing more complex cognitive experience in comparison to the simple task, these task components represented concrete modifications of the simple task to use, one of which was the insertion of a delay period. Indeed, a delay period between the sensory cue and ultimate choice point or choice report is a common design in decision tasks, and this task has previously been shown to require PPC activity (Driscoll et al., 2017; Harvey et al., 2012; Pinto et al., 2019). It thus seemed like an obvious ‘complex task’ candidate to compare the simple task to.

We also employed another complex task termed the switching task in this study for several reasons. First, the switching task allowed us to compare the same, visually identical trial types across tasks, offering a clean experimental comparison. Second, we wanted to understand whether a short-term memory component across trials as is necessary in the switching task, as opposed to a within-trial component like in the delay task, would also cause increased cortical involvement, thereby testing and expanding on the task parameters hypothesized to underlie PPC involvement (Lyamzin and Benucci, 2019). Third, this additional task enabled us to probe whether the effect of cognitive experience on cortical involvement was a more general phenomenon, or one that was rather specific to experience of delay periods.

Finally, while we removed the emphasis on the decision-making process in our tasks, the reviewers’ comments made us realize that it seems illuminating to infer ‘decision points’ in the tasks employed here, that is how soon a mouse’s ultimate choice can be decoded from its running pattern as it progresses through the maze towards the Y-intersection. We now show these results in Figure 1—figure supplement 1. Interestingly, we found that in the delay task, choice decoding accuracy was already very high during the cue period before the onset of the delay. Nevertheless, we had shown that overall task performance and performance with inhibition were lower in the delay task compared to the simple task. Also, in segment-specific inhibition experiments, we had found that inhibition during only the delay period still decreased task performance substantially more than in the simple task. Thus, how early a mouse made its ultimate decision does not appear predictive of the inhibition-induced task decrements, which we also directly quantify in Figure 1—figure supplement 1.

Reviewer #1 (Recommendations for the authors):

The whole rationale for selecting each of these tasks really needs much clearer statements and reasoning and the analysis needs to focus on the specific features of each of these tasks otherwise it is very difficult to provide a straightforward interpretation of the data.

We have followed this recommendation in detail. Please see our reply to point 1 above.

Perhaps it is possible to provide more behavioral data to disentangle these different possibilities? In particular, providing more information on the kinetics of each task could be useful (trials to criterion for a given task, depending on prior history) if this is not limited by interindividual variability.

In addition to our detailed reply to point 2 above, we thank the reviewer for this specific suggestion. In our task training procedures, all trials were initially ‘visually guided trials’, where the correct choice was signaled with a checkerboard at the end of the correct Y-arm. This was especially crucial during initial learning of the switching task. To keep training procedures as similar as possible across tasks, mice trained on the simple task also learned the cue-choice associations initially with visually guided trials. Throughout training, the fraction of “visually guided trials” was gradually reduced on a session-by-session basis by the experimenter, based on the mouse’s previous performance. Unfortunately, this training procedure precludes a fair comparison between de novo learning of the simple task and simple task performance in mice transitioned to the simple task from a complex task. Instead, we quantify the performance of the mouse on the very first session in the simple task after a transition from a complex task. We find that mice perform at very high levels even on the first session in the simple task after this transition, which we now report in Figure 2—figure supplement 1. This new analysis allows us to assess (and rule out) the hypothesis that the transition to the simple task presents a challenge of cognitive flexibility, as explained in detail above.

Reviewer #2 (Recommendations for the authors):

What is the rationale for assessing S1 in the optogenetic study and V1 in the calcium imaging study?

We thank the reviewer for pointing out a lack of clarity on this in the previous version. In the optogenetic experiments, we chose S1, an area not implicated in visual decision-making, as a control spot size-matched to the PPC inhibition spot to see if the effects of task complexity and cognitive experience would be completely generalized across cortical areas. The small effects of S1 inhibition on task performance revealed that this was not the case. We did not choose V1 as a target because inhibition of V1 would likely cause visual processing deficits in all visual navigation tasks regardless of cognitive experience. From unpublished data from our lab in a different but related behavioral task, we find that inhibiting V1 using the optogenetics methods used in this paper results in behavior consistent with the mouse not being able to see the visual virtual environment. Mice end up spinning in the virtual environment and are unable to complete trials. We did not feel that V1 inhibition would be very informative for that reason.

In the calcium imaging experiments, we chose to include V1 because it is densely interconnected with PPC and RSC (Zhang et al., 2016), contains cognitive, non-visual signals in navigation-based decision tasks (Koay et al., 2020; Saleem et al., 2018), and is likely a key contributor during visual navigation. We acknowledge that imaging in S1 as well would have given additional insight into how localized the observed differences in neural selectivity across tasks and experiences are to RSC and PPC, but a lack of difference in V1 already established that this is not a general phenomenon across all cortical areas. We have clarified our motivation for S1 and V1 inclusion in different experiments in the Results section.

It would be helpful to have greater specificity about the areas that are being investigated. For example, are the authors looking at dygranular/granular retrosplenial cortex or both? For the more posterior site (-3.5) for retrosplenial inhibition, from the coordinates and description it appears that the area of impact would encroach into the visual cortex.

We apologize that we did not explicitly specify which parts of RSC were targeted across experiments beyond providing the coordinates. In the inhibition experiments, we targeted the entire RSC including both dysgranular and granular areas and spanning the entire anterior-posterior extent. In the imaging experiments, as we imaged other cortical areas simultaneously with RSC, we were limited to imaging a subregion of RSC to maintain sufficient temporal resolution. We targeted the anterior part of dysgranular RSC. V1 imaging was performed in the most anterior part of V1. We have now provided this information in the Methods section.

As to possible off-target effects during the inhibition experiments, we cannot exclude that a small part of medial V1 may have been affected. However, previous work using similar experimental conditions has reported that inhibition of posterior RSC resulted in different behavioral effects than inhibition of medial V1 (Pinto et al., 2019), making it unlikely that the effects of RSC inhibition we report here can be accounted for by affecting V1.

I cannot quite work out the time-line for the calcium imaging study. Is the simple experience-simple task study carried out first or is this carried out in a separate group of animals? I have concerns about the extent to which these comparisons are properly matched. There are a number of studies showing that retrosplenial in particular shows a slow development of neural representation related to spatial tasks/stimuli. That retrosplenial cortex is particularly important for familiar landmarks/cues. As such this would need to be considered with the calcium imaging. The simple experience and complex experience groups should be matched for the length of actual exposure/training with the cues allowing the possible development of spatial engrams/cell selectivity irrespective of cognitive demands. Likewise, there could be differences in terms of photobleaching depending on the timelines, number of imaging sessions. it may be that all this has been considered and taken into account but as it is currently written I can't work out these details.

We thank the reviewer for pointing out missing information on task learning and when the imaging sessions took place in relation to that. We have now added quantifications of both to Figure 4—figure supplement 1. We show that in the imaging dataset, like in the inhibition dataset, learning of the simple task is much faster than learning of the switching task (panel B), which is performed by different groups of mice. Indeed, mice with switching task experience that were transitioned to the simple task have overall been trained for a longer period of time than mice with simple task experience only. In panel C, we now directly quantify the number of sessions that the mice had experienced until a given imaging session, illustrating that we did not match the number of sessions across experiences for the different groups of mice performing the simple task. However, we have various reasons to believe that it is unlikely for this difference to cause the observed differences across experiences in cortical necessity or activity patterns. First, inhibition effects are stable across long periods of times, even over weeks, which we now demonstrate in Figure 1—figure supplement 1. Second, mice in the ‘simple task with only simple task experience’ condition had extensive experience in the visual cues and the task by the time they were imaged. They had experienced the visual cues from the very beginning of VR training, including the first linear maze training stage which typically lasted 7-14 sessions. We had failed to specify the duration of this training stage but have now added it to the Methods section. Furthermore, while the mice reached high performance levels after less than 10 sessions of simple task training (Figure 4—figure supplement 1, panel B), we now show that the imaging sessions in these mice occurred on average only after around 20 sessions of overall simple task experience (panel C). Thus, mice had experienced the simple task for about three weeks by the time of imaging, and the visual cues themselves for another 1-2 weeks before. This amount of cue and task experience is well in line with previous work on the representation of spatial landmarks in RSC. For example (Fischer et al., 2020) report 2-4 week training periods preceding imaging in expert mice, and (Milczarek et al., 2018) reported the emergence of stable context-specific engrams in RSC over a period of 3 weeks.

As to the possibility of photobleaching, we acknowledge that this may be an issue if especially high laser powers need to be employed, which was not the case in our study. Further, we would expect that if photobleaching affected neural activity levels, it would lead to lower measurements of activity and trialtype selectivity with long-term laser exposure, thus decreasing such measures in mice with more imaging sessions, i.e. mice imaged in the simple task that we previously had imaged in the switching task. However, in those mice we reported higher activity and trial-type selectivity levels compared to mice imaged in the simple task without switching task experience, who had experienced fewer imaging sessions. It thus seems highly unlikely that the effects we observe here stem from photobleaching.

The authors state there is no difference in running speed but from what I can gather they have just looked at the running speed across the entire trial. Is there any evidence of difference at the decision point – i.e., more slowing down in some conditions that could be linked to decision making?

We thank the reviewer for this interesting suggestion of characterizing decision points. We have now included additional analyses in Figure 1—figure supplement 1 where we ask how soon we can decode a mouse’s ultimate choice from its running pattern as it progresses down the maze. Across tasks, we found that choice decoding accuracy rose early in the maze, especially early on in the delay task, even during the cue period before the onset of the delay. Nevertheless, we had shown that overall task performance and performance with inhibition were lower in the delay task compared to the simple task. Also, in segment-specific inhibition experiments (now in Figure 1—figure supplement 4), we had found that inhibition during only the delay period or only the cue period decreased task performance substantially more than in the simple task, thus finding an interesting absence of differential inhibition effects around decision points in the delay task.

Based on the reviewers’ shared issues around our previous emphasis on decision-making, we decided to remove the focus on decision-making instead of pursuing further analyses in this direction. We have substantially revised our wording around the tasks and now highlight the navigational aspect of the tasks employed, including in the title.

There is a large amount of relevant literature, particularly relating to retrosplenial cortex, that the authors do not cite which could help in contextualising the current research more accurately.

We apologize that we had not contextualized our findings appropriately, particularly for RSC function. We have now extended the introduction section to better motivate the particular areas studied here, including additional citations on RSC. We introduce that RSC is poised to enable the transformation between egocentric and allocentric reference frames and to support spatial memory across various timescales (Alexander et al., 2020; Alexander and Nitz, 2015; Fischer et al., 2020; Milczarek et al., 2018; Pothuizen et al., 2009; Powell et al., 2017). It furthermore has been shown to be involved in cognitive processes beyond spatial navigation, such as such as context-dependent cue-choice associations, temporal learning and value coding (Franco and Goard, 2021; Hattori et al., 2019; Todd et al., 2015), making it an especially interesting area to study in the context of cognitive experience. We have furthermore expanded the Discussion section to explain the implications of our findings not just for cortical function in general, but also for PPC and RSC individually. We now discuss that increased RSC necessity in more complex tasks as well as due to complex task experience further support the emerging view that RSC plays a crucial role in cognitive aspects of navigation decisions, integrating visual cues flexibly with memory signals to plan navigational routes or choices (Franco and Goard, 2021; Spiers and Maguire, 2006; Stacho and Manahan-Vaughan, 2022).

If the reviewer has in mind other specific references or findings that are important to cite or mention regarding RSC, we would be happy to include them.

For the calcium imaging the authors state they only look at the Rule A trials during the switching task – i.e., the ones that then match the simple task. I understand that provides the closest comparison across tasks but it does seem a shame not to be also looking at the Rule B data. This could provide very useful information about the specificity of the neural responses across the different rules. This could inform the extent to which these neural responses reflect specific cue/response representations or reflect more global task requirement representations and perhaps help address whether the more extensive training just helps with the encoding of the cue/responses for these specific cues or provides a better neural framework for general learning/attention.

We acknowledge that not reporting results with trials from the other rule caused concerns that the reported differences across tasks may only hold for a specific subset of trials. We have now added analyses of both optogenetic inhibition effects and calcium imaging results considering Rule B trials. In Figure 1— figure supplement 2, we show that when considering only Rule B trials in the switching task, effects of RSC or PPC inhibition on task performance are still increased relative to the ones observed in mice trained on and performing the simple task. We also show that overall task performance is lower in Rule B trials of the switching task than in the simple task, mirroring the differences across tasks when considering Rule A trials only.

We extended the equivalent comparisons to the calcium imaging dataset, only considering Rule B trials of the switching task in Figure 4—figure supplement 3. With Rule B trials only, we still find larger mean activity and trial-type selectivity levels in RSC and PPC, but not in V1, compared to the simple task, as well as lower noise correlations. We thus find that our conclusions about area necessity and activity differences across tasks hold for Rule B trials and are not due to only considering a subset of the switching task data.

Finally, following the reviewer suggestion above, in Figure 4—figure supplement 4, we further leverage the inclusion of Rule B trials and present new analyses of different single-neuron selectivity categories across rules in the switching task. Interestingly, we find low rule selectivity across the population (panel A), but a prevalence of mixed selectivity in our dataset (panels B, C) (Rigotti et al., 2013), that is neurons with selectivity to a single cue-choice combination instead of general selectivity to the cue, choice, or rule. Overall, we found a high degree of specificity in neuronal responses rather than general modulation of activity in one rule over the other. More detailed analyses of activity in the switching task seem beyond the scope of this paper, and other ongoing work in the lab is investigating behavioral strategies and neural coding properties in the switching task in more detail.

Reviewer #3 (Recommendations for the authors):

These are a really interesting set of experiments that speak to an important question in the field about how prior experiences affect subsequent learning/information processing. The authors present robust data that suggest that learning the complex task (switching or delay tasks) leads to a profound effect on the role of PPC and RSC for performing a subsequent similar but different (simple) task.

We are glad to see that the reviewer finds our main finding interesting and convincing.

One nagging question is why this is the case? I do not think more data is required for publication but it would be helpful for the authors to address the following questions either with data or further comments in the discussion/speculation portion of their manuscript.

We thank the reviewer for raising these points. We have addressed each of the specific comments below with new analyses and discussion text. We have also added a paragraph to the Discussion section of the paper that is directly related to this topic.

Is this a form of schema-learning? Such that due to the prior learning of the complex task that is more dependent on PPC and RSC, the new subsequent task that is similar across many features is now being integrated with the representation of the prior complex task and thus more dependent on cortical representations? I don't think the authors need to do experiments to tease this idea apart but it would be helpful to include this in the discussion or speculation portion.

We thank the reviewer for this suggestion and have carefully evaluated this hypothesis. The main point to consider is that for mice transitioned from either of the complex tasks to the simple task, the simple task is not a novel task, but rather a well-known simplification of the previous tasks. Mice that are experts on the delay task have experienced the simple task, i.e. trials without a delay period, during their training procedure before being exposed to delay periods. Switching task expert mice know the simple task as one rule of the switching task and have performed according to this rule in each session prior to the task transition. Accordingly, upon the transition to the simple task, both delay task expert mice and switching task expert mice perform at very high levels on the very first simple task session. We now quantify and report this in Figure 2—figure supplement 1 (A, B).

This is crucial to keep in mind when assessing schema learning as a possible explanation for the persistent cortical involvement after the task transitions. In many classical schema learning or related ‘learning sets’ paradigms, animals are exposed to a series of novel associations, and the learning of previous associations has created a mental schema into which subsequent novel associations are readily incorporated (Bartlett, 1932; Caglayan et al., 2021; Eichenbaum et al., 1986; Harlow, 1949; McKenzie et al., 2013; Piaget, 1926; Tse et al., 2007). This is a distinct paradigm from ours because the simple task does not contain novel associations that are new to the mice already trained on the complex tasks. Relatedly, the simple task is unlikely to present a challenge of behavioral flexibility to these mice given our experimental design and the observation of high simple task performance in the first session after the task transition. We now introduce and discuss these points in the introduction, results and Discussion sections.

Could it be due to the timecourse of systems consolidation? I assume that more time elapses between the start of when animals learn the complex task and when they are being imaged/optogenetically manipulated on the simple task compared to the animals that just get the simple task. Meaning, animals that only get the simple task have less time experiencing these cues. If that's true, is it possible that over time, these cues/representations become more and more cortically dependent? If the authors have the data to address this question, then it would be helpful. If not, please comment on this idea in the discussion/speculation.

We thank the reviewer for this hypothesis, which we have evaluated on theoretical ground and with additional analyses. In Figure 1—figure supplement 1, we have now correlated the number of experienced sessions in each task with the task performance decrements from cortical inhibition. We found that inhibition effects were stable across long periods of times, even over weeks, in all tasks including the simple task, which we now mention in the Discussion section. Our inhibition dataset thus does not support the idea of incomplete systems consolidation accounting for small inhibition effects on performance in the simple task without preceding complex task experience.

In presentation of the calcium imaging dataset, we apologize for previously missing information on task learning and when the imaging sessions took place in relation to that. We have now added quantifications of both to Figure 4—figure supplement 1. We show that in the imaging dataset, like in the inhibition dataset, learning of the simple task is much faster than learning of the switching task (panel B), which is performed by different groups of mice. Indeed, mice with switching task experience that were transitioned to the simple task have overall been trained for a longer period of time than mice with simple task experience only. In panel C, we now quantify the number of sessions that the mice had experienced until a given imaging session, illustrating that we did not match the number of sessions across experiences for the different groups of mice performing the simple task. However, mice in the ‘simple task with only simple task experience’ condition had extensive experience in the visual cues and the task by the time they were imaged. They had experienced the visual cues from the very beginning of VR training, including the first linear maze training stage which typically lasted 7-14 sessions. We had failed to specify the duration of this training stage but have now added it to the Methods section. Furthermore, while the mice reached high performance levels after less than 10 sessions of simple task training (Figure 4—figure supplement 1, panel B), we now show that the imaging sessions in these mice occurred on average only after around 20 sessions of overall simple task experience (panel C). Thus, mice had experienced the simple task for about three weeks by the time of imaging, and the visual cues themselves for another 1— 2 weeks before. This amount of cue and task experience is well in line with previous work on the representation of spatial landmarks in RSC. For example (Fischer et al., 2020) report 2-4 week training periods preceding imaging in expert mice, and (Milczarek et al., 2018) reported the emergence of stable context-specific engrams in RSC over a period of 3 weeks. Therefore, it overall seems unlikely that incomplete systems consolidation would account for lower mean activity and trial-type selectivity in mice performing the simple task without complex task experience.

Is there competitive processing between the complex and simple task? Does activity in the PPC or RSC support inhibiting the prior complex task rule so that animals can better perform the simple task? If authors have the data- are there mice that perform poorly on the complex task? Does inhibition of PPC or RSC have a smaller effect on the simple task in those mice? Is there a competition between accessing/inhibiting prior tasks and the current simple task?

We thank the reviewer for raising this interesting possibility. The overall high control performance levels in both the delay task and the switching task across mice may make it challenging or impossible to see a possible relationship between each mouse’s prior complex task performance and subsequent performance decrements from RSC or PPC inhibition in the simple task after the task transition. We nevertheless followed the reviewer’s suggestion and looked for such a possible signature of competition. We did not see a systematic relationship between these two variables across areas and tasks, though perhaps an interesting trend in PPC in the switching task-to-simple task transition. We imagine that future studies with larger sample sizes and larger ranges of performance in the complex task would be better suited to address this question, so we chose not to include plots in Author response image 1 in the revised manuscript.

Author response image 1.

Author response image 1.

Further behavioral data that seem relevant to the question of competition are presented in what is now Figure 2—figure supplement 1. There we show that mice initially trained on the switching task could still perform the switching task even after two weeks of only simple task experience, i.e. they reached high performance levels on the long unseen rule within a single session after re-exposure to the switching task (panels D-E). This suggests that if the switching task was indeed inhibited during performance of the simple task, this inhibition or competition could not have been permanent.[Editors' note: further revisions were suggested prior to acceptance, as described below.]

All reviewers confirmed the general interest of the paper and the high quality of the data but still felt that the paper is somewhat undermined by the lack of clarity on the conceptual framework. We suggest two lines to help address the remaining issues and improve the paper.

1. The description of the behavioral paradigm would still benefit from a revision. All reviewers felt that mentions to "navigation" and "decision-making" do not seem adequate considering the tasks that are being used do not really specifically assess these processes (navigation is at best virtual here and the task do not specifically tap into decision-making, the new take on 'decision points' – Fig1Sup1 and related text – does not really add to the story and is possibly distracting). Perhaps "visual discrimination" or "visually-cued task" or anything similar would be more relevant here (with a 'delay' and 'reversal' conditions). It is important here to edit the ms beyond simply replacing a word by another to ensure a comprehensive and consistent description of the task from abstract to discussion – this has not been done previously. When navigation was added in the revision, it was on top of decision-making, making this issue even worse. That the delay condition is not discussed in terms of working memory is still a bit puzzling (the role of the PPC could be discussed relative to that) as it operationally corresponds quite strictly to that, at least as most commonly assessed in rodent.

We thank the reviewers for providing this feedback and identifying a point that needs clarification. We continue to think that “navigation” and “decision-making” are appropriate descriptors of our behavioral paradigm. We realize now that it will be helpful to explicitly state our reasoning on this point in the manuscript. Our task is a two-alternative forced choice task, which is a common paradigm used to study decision-making. In our task, the mouse must discriminate between two visual cues and then make a choice to run to the right or the left in a virtual reality Y-maze. This design is similar in concept to some of the classic decision-making tasks, such as the random dot motion task. In the random dot motion task, a monkey must discriminate between the motion of the stimulus in one direction versus another and then report a choice with a saccadic eye movement to the left or the right. While it is true that the visual discrimination in our task is a simple one between two very different stimuli, the task nevertheless captures the main components of making a decision and has similar design to classic decision-making tasks. That is, our task requires mice to choose between two options based on a visual cue. We therefore feel that “decision-making” is an appropriate descriptor. We also feel that “navigation” is appropriate as the paradigm of navigation in virtual environments has been used to study many of the key elements of navigation circuits, including place cells, grid cells, and head direction cells, across a wide range of species, including mice, rats, flies, humans, and monkeys. Multiple papers using VR have reproduced key aspects of navigation cells and circuits found in freely moving animals and have yielded important new insights into the mechanisms of spatial navigation. Given the long list of papers that have used virtual reality to study navigation, we feel that “navigation” is an appropriate term to use. We note that we and others have used the terms “navigation” and “decision-making” in multiple previous papers to describe similar behavioral tasks. There is thus a strong precedent for using these terms for these tasks in the literature. We remain unsure why the reviewers consider these terms not appropriate. However, we feel they are appropriate descriptors that follow the terminology used in the literature, and thus we do not feel it is necessary to remove or change these terms.

We agree with the reviewers that it might be helpful to define what we mean by “navigation” and “decision-making” in relation to our behavioral paradigm. We have therefore added sentences to the introduction section that provide this clarification. While this topic could be discussed in great length in the paper, to keep the introduction as succinct as possible, we limited to the new sentences to only brief definitions. In the introduction, we now write: “Specifically, we used a virtual reality Y-maze in which mice encounter one of two visual cues and use the cue to virtually navigate to the left or right Y-arm to receive a reward (Harvey et al., 2012). This paradigm involves decision-making because it requires mice to choose one of two Y-arms based on a learned association with a visual cue. Furthermore, it involves navigation because mice must execute a sequence of movements to reach a goal location in a virtual environment, and movement through virtual mazes is known to recruit navigation-related circuits (Aronov and Tank, 2014; Domnisoru et al., 2013; Harvey et al., 2009). We therefore refer to our paradigm as goal-directed navigation, which implicitly includes decision-making to choose a goal location.” (lines 57-64).

Regarding the delay task, we agree with the reviewers that terminologies for working memory and delay tasks are often used interchangeably and that delay tasks are typically thought to require working memory. However, as mentioned in our previous response, we have concerns about using the term “working memory” in our specific case because it is not clear how the mice actually solve the task. We report that, in the delay task, mice start to turn to the right or left before the delay segment starts. It is possible that the mice might simply continue running to the right or the left through the delay without actually remembering the identity of the cue. While we think this possibility is unlikely, we cannot formally rule it out with this paper’s dataset. Rather than using a term that suggests some interpretation of how the mice solve the task, we instead prefer to use a naming of the task that is descriptive of the task design.

2. The schematics provided to explain the behavioral approach could be a little more straightforward and complete. It needs to be more explicitly stated when conditions are matched and when they are not. Based on the rebuttal from the authors, it seems that animals reportedly trained first on 'complex' tasks (that is, delay or switching) are actually trained first on the simple task so plots in Figure 1A / 2A are factually incorrect (it should be simple task --> delay/switching task --> simple task). This may certainly impact on the interpretation and it should be discussed: animals are thus not matched in terms of time from first exposure to stimuli and they are not matched in terms of overall exposure to stimuli and training apparatus. Perhaps considering David Smith's work could be relevant here to stress the importance of the rsc in encoding salient cues but also for late stage learning (Smith et al., Behav Neurosci, 2018). See also Vedder et al., Cereb Cortex 2017.

We thank the reviewers for pointing out this issue that needs clarification. The schematics in Figures 1A and 2A are factually correct, but they are indeed incomplete descriptions of the training procedure for each set of mice. We prefer to use these schematics because they highlight the main difference between the two groups of mice being compared. It would be too complex to show the complete training procedure in the schematics in the main figures. We have therefore added a new supplementary figure (Figure 1—figure supplement 1) that shows the complete training procedure for each set of mice. We note that it would be incomplete to show “simple task -> delay/switching task -> simple task” as suggested by the reviewers because the mice experienced a training step even before the simple task. Also, it is factually incorrect to show “simple task -> switching task -> simple task” because this training sequence was not used. The mice in the switching task had experience in the simple task in the sense that one rule of the switching task is identical to the simple task. However, these mice were never trained on the simple task alone before experiencing the switching task. In addition, in this new supplementary figure, we have included the average number of training days spent at each step. We hope this will clearly illustrate to readers that the mice studied on different tasks had undergone different numbers of training sessions on average. In addition to this new supplementary figure, we note that in the revision, we added multiple sentences to the paper that specifically talk about the training procedure and the differences in training times (lines 115-117, 210-212, 485-495). We hope these lines, the new supplementary figure, and the description of mouse training in the methods section collectively provide a transparent description of the experience of each mouse.

Thank you for the suggestion to mention the work from David Smith and others. We have added citations to the suggested papers in the Discussion section, as further evidence that our task training and exposure times preceding calcium imaging or optogenetic perturbations were well in line with or even exceeded previous work.

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Citations

    1. Arlt C. 2022. Cognitive experience alters cortical involvement in goal-directed navigation. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]

    Supplementary Materials

    Transparent reporting form

    Data Availability Statement

    Data have been deposited in Dryad with the DOI: https://doi.org/10.5061/dryad.34tmpg4nr.

    The following dataset was generated:

    Arlt C. 2022. Cognitive experience alters cortical involvement in goal-directed navigation. Dryad Digital Repository.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES