Skip to main content
. Author manuscript; available in PMC: 2026 Nov 5.
Published in final edited form as: Neuron. 2026 May 8;114(18):3459–3479.e15. doi: 10.1016/j.neuron.2026.04.003

Figure 3. MRF, MOs, SCm, and CP contain pre-stimulus context representations associated with remapping behavior and biasing of the neural dynamics underlying action selection.

Figure 3.

A-B) Cross-validated MRF (A) and MOs (B) trajectories in the 2D choice subspace (median across correct trials for each of the four trial types, standardized and combined across sessions; error bars are 95% confidence interval (CI)). Trials start on the left and progresses toward movement onset on the right. Trajectories span from −250 to 0 ms aligned to movement onset in a sliding window of 75 ms bins with 10 ms step sizes. C-E) Schematics of three hypothesized mechanisms for context-dependent stimulus-action remapping. Each mechanism selectively biases one influence on choice subspace trajectories while holding others constant (initial conditions, external inputs, intrinsic dynamics) to drive center stimulus trials toward context-appropriate actions. C) Context-dependent initial conditions: pre-stimulus position along the Choice axis shifts toward the context-appropriate action (CCW in Left Blocks, CW in Right Blocks). The left plot is a zoomed-in picture of the stimulus-driven period displayed within the red box on the right. During this period, stimulus input dynamics determine trajectories, and after this period, action-related dynamics determine trajectories (denoted by underlying flow field arrows). D) Context-dependent external stimulus input: sensory-driven trajectories angle differently for center stimuli across contexts. E) Context-dependent intrinsic dynamics: distinct action selection dynamics for each context are set before stimulus onset and are determined by the position along a third Context dimension that is orthogonal to the choice subspace. F) Difference in the average pre-stimulus positions between Right Blocks and Left Blocks in the choice subspace. Each circle is a session, diamond is mean, error bar is SEM. No significant differences between blocks were found in any region using signed-rank test. G) Stimulus input angles across the four trial types (median±95% CI across all trials). Angles formed between the x axis and the line between averaged positions of 0-20 ms bins and 100-150 ms bins (aligned to stimulus onset) in choice subspace. No significant differences between center stimulus angles across blocks were found in any region using rank-sum test. H) Example MRF neurons with significant correlations (p<0.05) between pre-stimulus firing (300 to 50 ms before stimulus onset) and context. Black trace is trial-to-trial pre-stimulus spike count, block identity is indicated by shaded vs. unshaded patches, and red trace is the mean pre-stimulus spike count in each block. p-values are derived from empirical null using pseudosessions. I) Decoding of context from pre-stimulus firing (300 to 50 ms before stimulus onset). Diamonds are mean±SEM context decoding score (difference between true r relative to median of null) across sessions. Circles are individual sessions with significant decoding (p<0.05 against pseudosession null); x’s are sessions with non-significant decoding (p>0.05). p-values per region are derived from FDR-corrected Fisher’s combined probability test. J) Angles between CW and CCW dimensions vs CW and Context dimensions for MRF (top) and MOs (bottom). Individual sessions (circles) and mean± across sessions (diamond with bars) are plotted. Whereas CW and CCW dimensions have significant overlap, CW and Context dimensions are nearly orthogonal (p<0.001, signed-rank test). K-L) Cross-validated 3D trajectories of MRF (K) and MOs (L) in a subspace spanned by the Action/Choice dimensions and a third Context dimension. As opposed to the 2D choice subspace, center stimulus trajectories are separable across blocks starting at the pre-stimulus period. M) CV decoded context from MRF population activity (pink) and latent context variable z from behavioral model (black) on an example session, as in Figure 1G. Each trace was rescaled to the range [−1 1] (min-max scaling for behavioral trace, robust sliding window scaling for neural trace; see Methods). N) Projection of MRF activity onto the pre-stimulus Context dimension (left y-axis, pink) and percentage correct on center stimulus trials (right y-axis, black) as a function of number of trials after a block switch. Context dimension activity was combined across blocks by flipping the sign of Left Block trials. Mean values across trials and sessions (n=11 sessions) for each point are plotted with exponential decay fit overlaid (Methods). Time constants from exponential fits to Context dimension activity and behavior are closely matching, with overlapping 95% CIs (bootstrapped). O) Average MRF Context dimension activity on center stimulus trials as a function of the mouse’s ensuing choice (correct or error), split by block. Context dimension activity significantly represented the opposite block on error trials (p=9.8x10−4, signed-rank test on overall percentage change between correct and error trials on each session). Thinner lines represent individual sessions (two per session, one for each block), bolded lines are mean across sessions. For N) and O), only sessions with p<0.1 for decoding of context from pre-stimulus activity were included. See also Figures S4, S5, S6.