Skip to main content
PLOS Biology logoLink to PLOS Biology
. 2026 Jul 2;24(7):e3003831. doi: 10.1371/journal.pbio.3003831

Disinhibitory signaling enables flexible coding of top-down information in cortical networks

Tomas G Aquino 1,#, Robert Kim 2,#, Nuttida Rungratsameetaweemana 1,*
Editor: Adam Kohn3
PMCID: PMC13327264  PMID: 42391203

Abstract

Flexible behavior requires the ability to modulate sensory processing based on task context, yet the circuit-level mechanisms supporting this capacity remain poorly understood. Here, we combine recurrent neural network modeling and neural recordings from mouse visual cortex to investigate how task context shapes sensory coding. Networks trained on an instruction-based discrimination task develop a disinhibitory interneuron-to-interneuron motif that dynamically gates task-relevant sensory information. Perturbation and lesion analyses show that this motif is necessary for task performance and for maintaining distinct sensory representations across contexts. We validate key predictions in mouse visual cortex, where interneuron activity patterns exhibit comparable task-dependent modulation. These results identify a biologically plausible circuit motif that supports flexible sensory processing and link recurrent connectivity structure to adaptive context integration in both artificial and biological systems.


What are the circuit-level mechanisms that allow the modulation of sensory processing based on task context? This study reveals how inhibitory microcircuits support the flexible integration of sensory and contextual signals to uncover mechanisms that enable adaptive decision-making in complex environments.

Introduction

Successfully navigating complex environments requires neural systems to efficiently encode and process incoming sensory inputs alongside contextual cues and task goals [1–3]. This capacity to integrate across different sources of information allows the brain to dynamically convert identical sensory inputs into diverse behavior in a context-dependent manner. Sensory inputs can be understood as bottom-up signals with regard to their encoding within lower cortical areas. In contrast, top-down factors refer to information regarding the behavioral relevance of each stimulus, prior expectations about sensory statistics, and task contexts which provide guidelines for how the encoded sensory information should be interpreted and mapped onto behavior [4–8].

The ability to rapidly adapt to temporally varying top-down factors is a hallmark of cognitive flexibility and has been primarily attributed to the frontoparietal networks and medial temporal lobes [9–15]. However, the extent to which lower cortical areas contribute to this adaptive process is not well understood. Past work has shown that responses within sensory areas could be modulated by top-down signals such as selective attention [16–25], and that nonsensory information such as memory content can be decoded from activity within sensory areas [26–29]. Yet, it remains poorly understood how these neural codes complement computations that take place in higher cortical areas. This knowledge gap highlights the need for deeper insight into the computational principles and circuit mechanisms that enable flexible information processing for adaptive behavior.

In nature, where identical stimuli elicit diverse responses, inhibition may be a key mechanism in averting conflicting behaviors. This ensures the selection of appropriate sensorimotor mapping, aligning behavioral outcomes with the current task contexts rather than being driven solely by the stimuli. This account of inhibition as a modulatory mechanism, crucial for shaping task-optimized behavior, has been supported by past studies demonstrating the role of inhibition for the integration of top-down factors within the cortical hierarchy [17,30–33]. In addition, discoveries of specialized sensory microcircuits that rely on inhibitory-to-inhibitory connections among local interneurons further highlight the importance of inhibitory function in flexible information processing [34–39]. Notably, disinhibitory circuits have been proposed as key in facilitating top-down modulation of sensory coding [40–43] and novelty coding [44,45], highlighting the plastic nature of neural codes within lower cortical areas. This account underscores the flexibility of neural codes along the cortical hierarchy and suggests a potential mechanism for sensory multiplexing [46,47].

Models based on recurrent neural networks (RNNs) of continuous-variable firing rate units have been widely used to propose computational mechanisms for previously observed experimental findings and to explore neural dynamics associated with cognitive functions such as attention and working memory [9,48–55].

Still, further work is required to understand how top-down information and bottom-up stimuli are integrated to efficiently represent current task demands. Importantly, these top-down factors, including selective attention, task contexts, and prior knowledge, can exhibit distinct temporal structures, imposing varied but complementary guiding rules on how sensory input should be processed. This results in temporally rich and highly dynamic decision-making, a phenomenon that can be modeled with artificial neural networks, including RNNs [56]. Neglecting to account for the nuanced dynamics of top-down factors and their temporal influence limits our understanding of how neural systems efficiently integrate bottom-up and top-down signals to consistently produce optimal behavior. Additionally, we can gain better insights into this dynamic process through modifying the architecture of past models to incorporate several fundamental properties inherent in biological neural networks. These constraints, such as heterogeneous neuronal timescales, cortical hierarchies, and the balance between inhibitory and excitatory connections, can offer valuable insights into the functionality of neural networks and the types of computations they can perform [57–60].

To address these knowledge gaps, we designed dynamic decision-making tasks that require seamless integration of bottom-up sensory inputs with top-down factors. These tasks included diverse top-down signaling with varying temporal dynamics as well as orthogonal manipulation of bottom-up and top-down signals. By training biologically plausible RNNs on these tasks and parsing the trained networks, we show that disinhibitory circuit motifs governed by inhibitory-to-inhibitory connections are critical for the intricate interplay between the two essential components of decision processes. By extending our model to incorporate the functional cortical hierarchy, we further demonstrate that feedback signaling from higher-level areas and selective local inhibition enable lower-level areas to differentially process identical sensory inputs in a context-dependent manner. Moreover, we tested our model predictions using publicly available data recorded from the mouse primary visual cortex [61] and confirmed that local inhibitory-to-inhibitory connections within the visual cortex play an integral role in encoding top-down information.

Results

RNN model and dynamic decision-making tasks

To understand the cortical computations required for flexibly and optimally integrating bottom-up and top-down information, we employed a biologically plausible RNN model consisting of continuous-variable firing units (model schematic shown in Fig 1a right; see Methods) and trained the model to perform novel dynamic decision-making tasks (Fig 1a, 1b). We trained the RNNs using a supervised gradient-descent procedure, in which the network learned to adjust its recurrent synaptic weights, output readout weights, and neuron-specific synaptic decay time constants to perform the task accurately (Fig 1; see Methods). To preserve biological interpretability, we enforced Dale’s principle by constraining each unit to be either purely excitatory or purely inhibitory, using a sign-constrained weight parametrization [48]. These constraints ensure that learned network dynamics can be meaningfully related to cortical circuit motifs, enabling mechanistic interpretation of how specific inhibitory circuits support flexible encoding of top-down information.

Fig 1. Dynamic decision-making tasks and model schematic.

Fig 1

a. Schematic of a one-modality DMS task with sequential stimuli separated by a delay period. A task cue, indicating the stimulus-response mapping, is presented either before (early instruction) or after stimulus 1 (late instruction). The recurrent neural networks (RNNs) generate an output of +1 or −1 for matched and mismatched trials, respectively (pro-DMS; and vice versa for anti-DMS). The schematic of the RNN model is shown on the right. b. Schematic of a two-modality DMS task where each stimulus comprises two modalities. In addition to the task cue, an attention cue is presented on each trial, indicating the modality on which the RNNs need to perform the DMS task. The task and attention cues are presented either before (early instruction) or after stimulus 1 (late instruction). The trial timing for both one- and two-modality DMS tasks is depicted in a. c. Testing performance of the trained RNNs on the DMS tasks. The average accuracy of the trained RNNs is presented, with statistical comparisons computed using two-sided Wilcoxon rank-sum tests. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05; **P < 0.01; ***P < 0.001. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

These RNNs were employed to execute flexible decision-making tasks designed to achieve several distinct objectives. The first aim was to investigate how identical sensory inputs might be processed differently depending on distinct top-down inputs. These tasks also allowed for the independent manipulation of both bottom-up and top-down inputs. Lastly, the task incorporated separate stimulus modalities, each providing independent sources of top-down information. To meet these criteria in task design, we modified the classic delayed match-to-sample (DMS) task, commonly used in experimental studies [62–66], to develop one-modality DMS and two-modality DMS tasks.

For the one-modality DMS task (Fig 1a), the RNN model received one stream of input stimulus signal (bottom-up) containing two sequential stimuli separated by a delay period. Each stimulus was set to either +1 or −1. The model additionally received a task cue signal (top-down), indicating whether the network should employ the pro- or anti-DMS stimulus-response mapping. For the pro-DMS task (a task cue of +1 during the instruction period), the network was required to generate an output of +1 if the signs of the two stimuli matched, and −1 otherwise. For the anti-DMS (a task cue of −1 during the instruction period), the network was required to generate a negative output if the signs of the two stimuli were the same, and a positive output otherwise. The task cue was given either before (early instruction; 150–400 ms) or after the first stimulus (late instruction; 650–900 ms; Fig 1a).

Critically, in nature, not all aspects of sensory input are relevant to the task at hand. To effectively navigate this, organisms rely on additional top-down signals, such as selective attention, alongside direct task signals to optimize decisions. To study this more complex scenario, we developed the two-modality DMS task by incorporating two streams of input stimulus signals (bottom-up; modality 1 and modality 2) and an attention cue (top-down) which instructs the model which stimulus modality is behaviorally relevant on a given trial and thus should be attended to (Fig 1b; see Methods). An attention signal of −1 during the instruction period informs the model to focus on modality 1 while ignoring modality 2, and vice versa for a +1 attention cue signal. The task cue manipulation is identical to that used in the one-modality DMS task. Similar to the one-modality task, the timing of the instruction period was manipulated such that task and attention cues were delivered either before (early instruction) or after the presentation of the first stimulus (late instruction).

For each decision task (one-modality DMS and two-modality DMS), we trained 20 RNNs to perform the task with high accuracy (> 95%; see Methods). For the one-modality DMS, the models performed the task accurately regardless of the timing of the instruction window (Fig 1c; see S1 Fig for example single neuron activity and output signals). The model performance on the two-modality DMS was lower when the top-down cues were provided early (P < 0.001, two-sided Wilcoxon rank-sum test; Fig 1c). This can be attributed to the model’s requirement to retain both the task and attention signals for a longer duration in the early instruction condition.

Dynamic encoding of top-down information by RNNs

After training RNNs to perform the dynamic decision tasks, we next investigated the effects of the top-down factors (task and attention cues) on the network dynamics. To visualize RNN dynamics in response to distinct external inputs of both bottom-up and top-down signals under various conditions, we plotted the kinetic energy landscape (see Methods) of a representative RNN. This was achieved by using two principal components (Fig 2a, 2b; see Methods). The kinetic energy landscape provides a useful guideline for understanding RNNs as dynamical systems, since it offers a visual summary that illustrates how external inputs shape the structure of fixed points and “slow” points (local minima in the energy landscape) as well as neural trajectories within the state space [67–69]. Therefore, seeking to identify these fixed and “slow” points in the two-dimensional energy landscape enabled us to gain insight into how the task and attention signals influenced the RNN network dynamics.

Fig 2. Flexible incorporation of task and attention signals.

Fig 2

a. Heat map of kinetic energy in an example RNN performing the one-modality DMS task during the first instruction period (150–400 ms; Fig 1a). Background heat maps belong to the late instruction condition. The middle cross indicates the local energy minimum during the first instruction period for the late instruction condition (no instruction), while the left and right crosses indicate the new local energy minima for the pro- and anti-DMS conditions, respectively. b. Same as a, for an example, RNN performing the two-modality DMS task. Legend: pro-task modality 1, pro-DMS and first modality attended; pro-task modality 2, pro-DMS and second modality attended; anti-task modality 1, anti-DMS and first modality attended; anti-task modality 2, anti-DMS and second modality attended. c. Individual trial one-modality RNN trajectories in principal component space during the first instruction period. Principal component projections of fixed points are included. Trial top-down cue conditions are divided into pro-DMS (teal), anti-DMS (dark blue) or no instructions (gray). d. Same as c, for a two-modality RNN. e. Latent space one-modality RNN trajectories during the first instruction and first stimulus periods (150-650 ms; Fig 1a) for all combinations of top-down cues and stimulus identities. f. Same as e, for a two-modality RNN, highlighting the attended stimulus modality. g. Same as e, for a two-modality network, highlighting the unattended stimulus modality. h. Latent space two-modality RNN trajectories for pro-DMS trials, splitting trajectories by the identity of attended vs. unattended stimuli. i. Same as h, for anti-DMS trials. j and k. Temporal discriminability for the first stimulus identity of the attended modality when the attention signal is given early (j) or late (k). The task signal was fixed to anti-DMS. l and m. Temporal discriminability for the first stimulus identity of the unattended modality when the attention signal is given early (l) or late (m). The task cue was fixed to anti-DMS. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

We hypothesized that the presence of top-down cues would condition network dynamics even before the arrival of the bottom-up sensory inputs. In addition, we postulated that opposing cues would correspondingly lead to separable shifts in fixed point structure, which we first visualized through the energy landscape of the network during the first instruction period (150–400 ms, see Fig 1a). For the one-modality DMS task, the energy landscape of the example RNN model displayed an area with an inverted U-shape where the kinetic energy was notably low (darker blue area in Fig 2a). The local minimum of the landscape stayed around the center of this U-shaped profile during the period before the first stimulus presentation when the task cue was not yet presented (no instruction). However, when the task cue was presented early (early instruction), the local minimum shifted to the left and to the right for the pro- and anti-DMS condition, respectively (Fig 2a).

For the two-modality DMS task, the energy landscape again revealed a U-shaped region characterized by a low-energy profile (dark blue in Fig 2b). Consistent with what we observed in the one-modality task, the local minimum was situated at the center of the low energy structure during the first instruction period for late instruction trials, where no task or attention cues were yet presented (no instruction). Analyzing different combinations of the task and attention cue signals displayed distinct local minima points along the low-energy profile. For instance, the local minima corresponding to the pro-DMS signal were positioned to the right of the no-instruction minima. Along this pro-DMS “arm” of the energy trajectory, two local minima were observed: one corresponding to the modality-one attention signal and the other to the modality-two attention signal. These results suggest that network dynamics shift as a function of the combination of top-down attention and task signals, in a dissociable manner, even before the sensory inputs arrive.

Subsequently, we performed a quantitative fixed point search analysis [67] for different values of external input to the network during the first instruction period (150–400 ms, Fig 1a). During this time, the network could receive either a pro-DMS, an anti-DMS, or no task cue (i.e., late instruction trials). We plotted network trajectories as well as fixed points discovered for each of these conditions in the principal component space, for the representative RNN performing the one-modality (Fig 2c) and the two-modality DMS tasks (Fig 2d). We observed that the presence and content of top-down signals given to the network not only altered its trajectories in the state space but also affected its fixed point structure. The network performing the two-modality DMS task exhibited a branching pattern that reflected symmetrical top-down coding across attended modalities for each task cue condition (anti- versus pro-DMS).

The energy landscape plots and the low-dimensional trajectories are qualitative ways to visualize which portions of the neural network’s activity landscape are more likely to be stable or have slower trajectories. The intuition behind the energy landscapes is that their local minima correspond to lower trajectory velocity. It is useful to visualize the transformation of these landscapes as a function of external inputs to the network, since that determines how specific instructions reshape the structure of the energy landscapes, and, therefore, the likelihood of each type of trajectory given a stimulus-instruction input pair.

To further examine network dynamics as a function of distinct top-down and bottom-up information, we performed a manifold discovery analysis, utilizing the CEBRA method [70]. This approach enables latent structure discovery and has the advantage of conditioning latent structure discovery over variables of interest. The contrastive learning objective and nonlinear mapping give CEBRA the ability to discover structured, consistent representations that preserve data relationships beyond simple variance maximization along orthogonal axes.

Here, we performed an unsupervised analysis with regard to all task covariates except for time. This ensured that adjacent time points were mapped to closer points in latent space and that smooth latent dynamics were obtained. This method allowed us to determine the latent trajectory bifurcations in the state space following presentation of stimuli and top-down cues in the network performing the one-modality DMS (i.e., one-modality RNN; Fig 2e) and the two-modality DMS tasks (i.e., two-modality RNN; Fig 2f–2i). In the one-modality RNN, the trajectories during the first instruction period were separated into three pathways corresponding to the pro-DMS cue signal (light green and light purple in Fig 2e), anti-DMS cue signal (dark green and dark purple in Fig 2e), and the absence of the task cue instruction (i.e., late instruction condition; gray in Fig 2e). The pro-DMS and anti-DMS pathways were then further bifurcated based on the identity of the first stimulus during the first stimulus period. For the two-modality RNN, we observed similar latent trajectories for the attended modality (Fig 2f). However, the bifurcations driven by the identity of the first stimulus were not as well separated in the unattended modality (Fig 2G). To quantify this effect, we measured the Euclidean distance between latent trajectories corresponding to opposite first-stimulus identities during the stimulus-1 period using repeated random subsampling. The average trajectory separation was significantly greater for the attended modality than for the unattended modality, confirming that stimulus-driven bifurcations are selectively amplified by attention (S2 Fig). This pattern held true across pro- and anti-DMS trials, which exhibited qualitatively similar bifurcations (Fig 2h, 2i). These findings were further confirmed by the cross-temporal discriminability analysis, which revealed that the identity of the first stimulus of the attended modality was more robustly encoded throughout the trial duration compared to the unattended modality (Figs 2j–2m; S3; see Methods). Linear support vector machine (SVM) decoding analysis also revealed that the top-down cue signals were robustly encoded by the RNN models (S4 Fig; see Methods for more details). These results suggest that lower-dimensionality representations of network dynamics sufficiently capture the network’s flexibility in encoding stimuli in a context-dependent manner, depending on stimulus relevance, as flexibly determined by top-down cues.

Inhibitory units play a critical role in both encoding and maintaining top-down information

After establishing the model’s capacity for flexible encoding of top-down information, we next investigated the relative contributions of excitatory and inhibitory units in facilitating this process. Through dissection of the RNNs performing the one-modality and two-modality DMS tasks, we found that the optimized synaptic decay time constants for the excitatory units were significantly larger compared to the time constants of the inhibitory units (P < 0.001, two-sided Wilcoxon rank-sum test, Fig 3a, 3b). Importantly, these optimized decay time constants should be interpreted as effective functional timescales that emerge through training to support the task’s computational demands.

Fig 3. Inhibitory units robustly maintain top-down signals and establish functional connectivity hubs.

Fig 3

a and b. Average synaptic decay time constants of inhibitory (blue) and excitatory (red) units in one-modality RNNs (a) and two-modality RNNs (b). c. SVM decodability of the task signal from inhibitory (blue) and excitatory (red) units from the one-modality RNNs. d. SVM decodability of the task signal from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided KS test). e. Average functional connectivity centrality for all inhibitory (blue) and excitatory (red) units, across all one-modality RNNs, in early (solid) or late (dashed) instruction trials. Arrows indicate start and end of the first instruction period. Shaded areas indicate standard error of the mean. f. Same as e, for two-modality RNNs. g. Histogram of functional centrality values for all units in all one-modality networks at the beginning of the first instruction period. h. Same as g, at the end of the instruction period. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

Building on these findings, which indicate distinct roles for excitatory and inhibitory units, we conducted a series of linear SVM decoding analyses. These analyses aimed to decode the task cue identity (anti- versus pro-DMS) from the activity of excitatory and inhibitory units within RNNs engaged in the one-modality DMS task (see Methods). While the task cue identity could be readily decoded from the activities of both excitatory and inhibitory units following the cue presentation on early instruction trials, the SVM decoding accuracy was significantly higher for the inhibitory units throughout the trial duration (P < 0.05, two-sided two-sample KS test, Bonferroni corrected across time; Fig 3c). We observed similar trends for RNNs performing the two-modality DMS task (Fig 3d). In these models, the inhibitory units also exhibited stronger maintenance of the attention signal compared to the excitatory units (S5 Fig). Interestingly, decoding performance for stimulus identity was higher in inhibitory units for both the attended and unattended modalities, when compared to excitatory units (S5 Fig).

Given these findings that highlight the distinct role of inhibitory units on maintaining task-related information, we next investigated their network-level implications through the functional connectivity patterns of inhibitory units. More specifically, we measured the functional closeness centrality of all units in each network across time (see Methods). Assuming that correlations between activation rates over time establish a metric of distance between units, it follows that units with greater centrality emerge as potential candidates for serving as functional hubs in their respective networks. While both excitatory and inhibitory units increased in centrality following the top-down cue presentation (early instruction) for the RNNs performing the one-modality and two-modality DMS tasks, the average centrality was higher for the inhibitory units after the onset of task and attention cue presentation (P < 0.05, two-sided two-sample KS-test, Fig 3e, 3f). Comparing the distribution of the centrality measure from individual units in the one-modality RNNs before (at 145 ms) and after (at 395 ms) the first instruction period on early instruction trials revealed that the centrality values of inhibitory units were distributed more widely post-instructions. This finding indicates the formation of inhibitory functional connectivity hubs following the top-down cue presentation (Fig 3g, 3h). To understand the network structure underlying this increase in inhibitory centrality, we examined the connectivity patterns between rule-selective populations in the one-modality RNNs. Inhibitory neurons preferentially inhibited other inhibitory neurons with the same rule selectivity, with significantly stronger within-selectivity compared to across-selectivity I → I connections (S6 Fig). This structured motif was also observed across connection types, suggesting the emergence of rule-specific inhibitory subnetworks. Taken together, these results suggest a central role for inhibitory units in encoding task-specific top-down information, as well as stimulus identity.

Inhibitory-to-inhibitory connections carry top-down information

Given the crucial role of inhibitory units in encoding and sustaining top-down signals, we next investigated the neural circuitry surrounding these inhibitory units to further elucidate their contribution to the maintenance of task-specific top-down information.

Lesioning inhibitory connections to inhibitory units selective for the anti-DMS task cue (by reducing synaptic weights by 50%; see Methods) in a representative RNN trained to perform the one-modality DMS task resulted in the disruption of anti-DMS task signaling (Fig 4a). Consequently, the network exhibited a tendency to perform the pro-DMS task irrespective of the task cue presented. By visualizing the neural dynamics of this lesioned RNN using CEBRA [70], we confirmed that the neural trajectories were no longer separated by the task cue condition during the first instruction period in early instruction trials (Fig 4b).

Fig 4. Inhibitory-to-inhibitory connections primarily encode task and attention cue signals.

Fig 4

a. Reducing incoming inhibitory synaptic weights to inhibitory units selective to the anti-DMS cue by 50% in an example one-modality RNN led to the network performing the pro-DMS even when the anti-DMS cue was given (bottom). b) CEBRA neural trajectories of the lesioned model shown in a during the first instruction and first stimulus periods. Inset, trajectories from the intact network (identical to Fig 2e). c. Performance of all 20 RNNs trained to perform the one-modality task when task-specific inhibitory-to-inhibitory (I→I; top) or inhibitory-to-excitatory (I→E; bottom) synaptic weights were reduced by 50%. d. Performance of all 20 RNNs trained to perform the two-modality DMS when task-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when modality 1 was attended. e. Performance of all 20 RNNs trained to perform the two-modality DMS when modality-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when the task signal was fixed to pro-DMS. Ia, inhibitory units preferring anti-DMS cue; Ip, inhibitory units preferring pro-DMS cue; Ea, excitatory units preferring anti-DMS cue; Ep, excitatory units preferring pro-DMS cue; Im1, inhibitory units preferring modality-1 attention cue; Im2, inhibitory units preferring modality-2 attention cue; Em1, excitatory units preferring modality-1 attention cue; Em2, excitatory units preferring modality-2 attention cue. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

Motivated by these findings, we employed a systematic approach where we lesioned synaptic connections based on task cue selectivity (pro- versus anti-DMS) and unit type (excitatory versus inhibitory) for the one-modality DMS task. We found that disrupting inhibitory-to-inhibitory (I→I) connections led to profound impairment in task performance (Fig 4c top; **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test). Disrupting similarly tuned inhibitory connections impaired performance in both pro- and anti-DMS trials (Ia → Ia and Ip → Ip in Fig 4c top; **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test). However, lesioning oppositely tuned I→I connections resulted in greater impairment in one type of task trials (Ia → Ip and Ip → Ia in Fig 4c top; **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test). We also observed significant changes in task performance when the I→E connections were lesioned (Fig 4c bottom; **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test). Importantly, the disproportionately large behavioral effects observed following lesioning of task cue-specific I→I connections cannot be explained by a greater number of connections being perturbed, as I→I synapses constitute the smallest fraction of outgoing connections compared to other synaptic classes (S7 Fig). The effects of lesioning task cue-specific connections were similar in the RNN models trained to perform the two-modality task (Figs 4d; S8). In addition, I→I connections also carried attention cue-specific information in RNNs performing the two-modality DMS task (Figs 4e; S8). To further assess the relative contributions of excitatory versus inhibitory outputs, we extended our lesion analyses to include selectivity-matched perturbations of excitatory-to-excitatory (E→E) and excitatory-to-inhibitory (E→I) connections. Across both one- and two-modality RNNs, perturbation of E→E connections produced minimal performance changes, while lesioning E→I connections led to modest impairments that were substantially smaller than those observed following disruption of I→I connectivity (S9–S13 Figs). These results indicate that, although excitatory projections contribute to shaping inhibitory competition, disinhibitory I→I circuitry remains the dominant mechanism supporting the maintenance and flexible deployment of task- and attention-related top-down information.

These findings suggest that inhibitory-to-inhibitory connections are essential for integrating context-defining top-down information.

Two-module RNN model with hierarchical organization

Recent empirical studies have shown that inhibitory-to-inhibitory connections within early sensory areas receive strong task-specific and context-based modulation by higher cortical areas [40,61,71].

Based on our results thus far, which underscore the significance of I→I connections in contextual coding, we next investigated whether inhibitory-to-inhibitory connections in low-level sensory areas would emerge as a critical target for task-oriented top-down modulation in our model. To accomplish this, we developed a two-module RNN model inspired by the cortical hierarchy. In this model, the first module (sensory module) is modeled after the early sensory cortex and receives the stimulus input signal only (Fig 5a). The first module subsequently conveys the processed sensory signal to the second, nonsensory module through exclusively feedforward excitatory connections. Given previous findings from animal studies showing that long-range feedforward projections are overwhelmingly excitatory, whereas top-down modulation can additionally engage sparse long-range inhibitory influences [31,33], we trained our two-module RNNs to perform the one-modality DMS task without intermodule feedforward inhibitory projections. The second module of the model, designed after higher cortical areas, receives the task cue signal (Fig 5a). Using this architecture, we trained 20 two-module RNNs to perform the one-modality DMS task (see S14 Fig for example single neuron activity and output signals). On average, the two-module RNNs took longer to learn the one-modality task compared to the one-module networks (mean ± stdev, 38,571 ± 6,306 trials for the one-module RNNs versus 55,221 ± 10,187 trials for the two-module RNNs; S15 Fig).

Fig 5. Dynamic coding and emergence of hierarchical inhibitory organization in two-module RNNs.

Fig 5

a. Schematic of the two-module RNN model trained to perform the one-modality DMS task. The sensory module (red shade) contains 200 units and the non-sensory module (blue shade) contains 800 units. The sensory module receives the input stimulus signal, while the nonsensory module receives the task cue signal. There are no feedforward inhibitory projections from the sensory module to the nonsensory module. b. Heat map of kinetic energy in an example one-modality two-module RNN during the first instruction period. The middle cross indicates the local energy minimum for the late instruction condition (no instruction), while the left and right crosses indicate the new local energy minima for the pro- and anti-DMS conditions, respectively. c. Individual trial two-module RNN trajectories in principal component space during the first instruction period. Principal component projections of fixed points are included. Trial task cues are divided into pro-DMS (teal), anti-DMS (dark blue) or no instructions (gray). d and e. Average synaptic decay time constants of excitatory units (d) and inhibitory units (e) in the sensory and nonsensory modules from 20 two-module RNN models trained to perform the one-modality DMS task. f and g. Comparison of average excitatory (f) and inhibitory (g) synaptic connection strengths within and between the sensory and nonsensory modules. h. Average decoding accuracy in early instruction trials for pro- vs. anti-DMS signal in the sensory module of two-module networks, including either excitatory (red) or inhibitory (blue) units. Shaded areas indicate standard error of the mean. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided two-sample KS test). i. Same, for late instruction trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test (d and e) or Kruskal–Wallis test followed by Dunn’s multiple comparison test (f and g). Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

To investigate if the two-module RNNs processed the task cue signal in a manner similar to that observed in the one-module RNNs, we characterized the kinetic energy landscape and performed the fixed-point analysis on the two-module networks during the first instruction period (150–400 ms; see Methods). Similar to the landscape and energy minima seen in the one-module RNNs (Fig 2a), we observed an inverted U-shaped energy landscape and displacement of energy minima as a function of the task cue identity (Fig 5b). While the fixed-point analysis suggests a line-like structure as an attractor for the visualized example network (Fig 5c), this is not a consistent pattern across random initializations. The most common observation was for fixed points to cluster along unordered point clouds as opposed to line attractors, similar to the one-module network. Still, these results suggest that network trajectories are conditioned by a systematic shift in fixed point structure, which is brought about by the presence of distinct top-down signals in the form of task instructions.

Characterizing the synaptic decay dynamics of the two-module RNNs revealed slower excitatory dynamics in the nonsensory module compared to the sensory module (Fig 5d; P < 0.001 by two-sided Wilcoxon rank-sum test). The inhibitory units exhibited the opposite trend (Fig 5e; P < 0.001, two-sided Wilcoxon rank-sum test). While further work is required to understand the heterogeneous timescales across excitatory and inhibitory neurons, there are a few possible interpretations for this finding. Longer excitatory time constants in the sensory module may support integration over longer times, beneficial to context integration via top-down feedback to sensory areas. Faster excitation relative to inhibition, on the other hand, could support rapid sensory stimulus encoding. In the nonsensory module, more closely related to the final decision process, it is possible that an inverted dynamic is at play. Decision making often requires integrating evidence over time, which functionally necessitates longer effective integration windows. Slower excitatory synaptic dynamics are often incorporated to ensure that network dynamics smooth out noisy inputs and accumulate information gradually.

Investigating the average synaptic connection strength revealed strong excitatory connections within the sensory module and from nonsensory to sensory modules (Fig 5f; P < 0.001, Kruskal–Wallis test followed by Dunn’s multiple comparison test). Interestingly, the average inhibitory signaling was the strongest within the nonsensory module (Fig 5g; P < 0.001, Kruskal–Wallis test followed by Dunn’s multiple comparison test). Both I→E and I→I connections within the nonsensory module were significantly stronger than their counterparts in the sensory module (S16 Fig). These findings are consistent with previous empirical evidence suggesting increased inhibitory strength and diversity along the cortical hierarchy [60,72]. A possible interpretation for these findings is that stronger inhibition in the decision areas allows a tighter control of excitation, which supports precise modulation of internal computations that depend on context and goals rather than direct sensory drive. In higher-order modules where computations mainly rely on recurrent internal dynamics (e.g., evidence accumulation, rule maintenance), stronger inhibition may improve stability and prevent excessive activity. Recent literature suggests such a stabilizing role for inhibition in the context of strongly connected excitatory populations [53], expanding the parameter space where decision-making circuits can operate without instability.

Linear SVM decoding analyses in the two-module RNNs showed that the task signals were more readily decodable from the inhibitory units than from the excitatory units in both sensory and nonsensory modules (Fig 5h, 5i; see S17 Fig for the nonsensory module results, P < 0.05, two-sided two-sample KS test with Bonferroni corrected across time). Most notably, the SVM decodability of the task signal decayed more slowly for the inhibitory units compared to the excitatory units in both modules.

Inhibitory-to-inhibitory connections in both sensory and nonsensory modules encode top-down information

Analyzing the neural trajectories of an example two-module RNN during the first stimulus period for early instruction trials revealed trajectory grouping based on the task cue identity (Fig 6a). Lesioning I→I connections in both sensory and nonsensory modules by reducing the weights by 50% abolished this top-down modulation (Fig 6b), mirroring the results observed in the one-module RNN (Fig 4b). Lesioning other synaptic connections (i.e., E→E, E→I, I→E) did not lead to disruption of the top-down information encoding (S18–S21 Figs). Thus, these results suggest that the hierarchical, two-module RNNs also rely on inhibitory-to-inhibitory connections to encode contextual information.

Fig 6. I→I connections in both sensory and nonsensory modules contribute to task cue encoding.

Fig 6

a. CEBRA neural trajectories during the first instruction and first stimulus periods from an example two-module RNN. b. CEBRA trajectories during the first instruction and first stimulus periods from the same RNN model shown in a, but with I→I connections lesioned. c and d. Performance of all 20 two-module RNNs trained to perform the one-modality DMS task when task-specific I→I connection strengths within the sensory module (c) or within the nonsensory module (d) were reduced by 50%. e and f. Performance of all 20 two-module RNNs trained to perform the one-modality task when task-specific I→I connection strengths (e) or I→E (f) from the nonsensory to the sensory module were reduced by 50%. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

Performing a systematic lesioning analysis, similar to the one utilized for the one-module RNNs in Fig 4, demonstrated the importance of inhibitory units with opposite tuning to the task cue (i.e., anti- versus pro-DMS) in the sensory module for reliably encoding the task signal (Fig 6c). In addition, disrupting I→I connections within the nonsensory module severely impaired the task performance of all the RNNs, confirming that top-down information is primarily encoded by I→I connections in the nonsensory module (Fig 6d). Lesioning feedback inhibitory connections had minimal influence on the task performance (Fig 6e, 6f). Lesioning other synaptic connections did not lead to disruption of top-down information encoding (S18–S21 Figs), although perturbations of E→I connections led to modest performance impairments, supporting a role for long-range excitatory drive in recruiting inhibitory populations in higher-order areas.

These results suggest that the task cue information is encoded by I→I synapses in the non-sensory module. What is even more unexpected is that the top-down information is transmitted to the sensory module via feedback connections and encoded by I→I connections within the sensory module (Fig 6c).

Disinhibitory circuits in mouse primary visual cortex and RNN sensory module encode top-down information

Building on the findings from the previous section, which indicate the role of sensory areas in encoding both stimulus-driven (bottom-up) and task-related (top-down) information, we proceeded to test our hypothesis. Specifically, we proposed that cortical I→I connections within early sensory processing regions represent top-down information via feedback from higher cortical areas. To investigate this, we analyzed a publicly available experimental data which demonstrated the capability of the mouse primary visual cortex (V1) in representing contextual information [61]. This electrophysiology dataset was collected with a linear array recording electrode covering all layers of V1 and preprocessed with standard filtering and spike sorting pipelines.

In this study, during V1 activity recording, mice were trained to identify the location of a salient grating visual pattern (“figure”) that stood out from the visual background (“ground”) [61]. These patterns were distinguished based on either orientation, phase, or texture (Fig 7a). Crucially, in each of these conditions, the sensory inputs chosen to fall within the exact receptive fields of the recorded neurons remained strictly identical in both the figure and background conditions (see Methods).

Fig 7. Top-down encoding in mouse V1 and RNN sensory module.

Fig 7

a. Task summary. In the orientation condition, mice viewed an orientation pattern as either part of a figure (top left) or as part of the background (top right). In control trials (bottom row), mice must contrast a target against a gray background, which did not require figure-ground segregation. This design ensured that the same sensory information within receptive fields could possess different contextual meanings (figure vs. ground). Green circles represent the receptive field. Reproduced from [61]. b. SVM decoding of top-down figure vs. ground signal from V1 neurons, holding sensory input constant. Black bars indicate significant decoding (P < 0.05, random permutation test). Dashed lines indicate 95% confidence intervals from permutations. c. SVM decoding of top-down signals during optogenetic inhibition of VIP interneurons in V1, which normally mediate disinhibitory inhibitory-to-inhibitory (I→I) signaling through inhibition of other interneurons, in laser-on (blue) and laser-off (red) trials. The shaded area indicates laser on time window. P-value indicates significant difference in decoding across conditions (P < 0.05, one-sided t test). d. CEBRA trajectories within the sensory module of an example two-module RNN during the first stimulus period when the task signal was presented early. e. Same as d but when I→I connections within the sensory module were completely removed. f. Comparison of average decoding accuracy for the task cue identity across 20 trained, two-module RNNs under two conditions: one with intact connections and the other without I→I connections within the sensory module. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

This allows for probing the role of recurrent connections from higher visual areas into V1 on top-down representations, given previous results which causally link recurrent feedback from higher visual areas and top-down feedback into V1, beyond lateral connections within this area [61,73,74]. This mirrors our approach in configuring our RNNs to process identical bottom-up sensory information under varying contexts informed by top-down cues. Therefore, disparities in neural activity observed across conditions in the mouse dataset could be attributed to the context indicated by stimulus regions outside of the measured neural receptive field.

First, we tested whether the activity of V1 neurons could differentiate between figure and ground conditions, even when the sensory information within their receptive fields remained identical. A successful figure versus ground decodability would be evidence that feedback from regions outside receptive fields projects into the measured V1 sites. Performing a linear SVM decoding analysis on the V1 activity to decode the condition label (figure versus ground) revealed that the V1 responses were modulated by the task context (Fig 7b; P < 0.05, permutation test, Bonferroni corrected). The high decoding accuracy indicates that feedback signals from regions outside the receptive fields robustly modulate V1 activity in response to information about task context.

In sensory cortical areas, including V1, vasoactive intestinal peptide-expressing (VIP) interneurons send inhibitory projections to somatostatin-positive (SST) interneurons. This forms microcircuitry characterized by inhibitory-to-inhibitory connections, similar to the I→I connections observed in the sensory module of our two-module RNN model (Fig 5a). The canonical VIP-SST disinhibitory circuit in cortex is a natural candidate for the biological implementation of the top-down regulatory mechanism elicited by inhibitory-to-inhibitory connections that arose in our artificial models because VIP neurons are known to receive long-range regulatory feedback from frontal areas [75,76]. However, it is important to acknowledge that other types of inhibitory-to-inhibitory connections exist in sensory circuitry, such as SST to parvalbumin (PV) neuron connections [77].

Leveraging the experiments within the dataset where VIP interneurons of mouse V1 were optogenetically silenced, we analyzed the role of VIP neurons in figure-background discrimination, in trials where top-down cues were presented through the orientation of visual grating patterns. Through the SVM decoding analysis, we observed a decrease in decoding accuracy following optogenetic silencing of V1 VIP neurons (P < 0.05, one-sided t test; Fig 7c). These results demonstrate the importance of intact inhibitory-to-inhibitory projections for successfully encoding top-down information in V1 circuits.

We next utilized CEBRA [70] to analyze the neural dynamics of the sensory module in an example two-module RNN model during the first stimulus presentation in early instruction trials of the one-modality DMS task. The recovered latent space revealed distinct neural trajectories delineated by the task cue signal (Fig 7d). The trajectories were initially divided into two arms based on the identity of the task cue (light green and light purple versus dark green and dark purple trajectories in Fig 7d). Within each arm, the trajectories were further separable by the first stimulus identity (+1 or −1). Removing all the inhibitory-to-inhibitory connections within the sensory module abolished the effects of the task signal in the sensory module (Fig 7e). These results highlight a convergence between theoretical models and experimental evidence for the importance of feedback into lower sensory areas in coding top-down information.

Performing a time-resolved linear SVM decoding analysis on the sensory module across all 20 trained two-module RNNs revealed that the task cue identity could be reliably decoded from sensory population activity, providing additional confirmation of top-down modulation imposed by the nonsensory module (Fig 7f; see Methods). When inhibitory-to-inhibitory (I→I) connections within the sensory module were removed, task cue decoding accuracy was markedly reduced compared to the intact network (Fig 7f), indicating that these disinhibitory connections play a critical role in enabling reliable top-down information encoding within the sensory circuitry.

Introducing retro-cue condition elicits shift in strategy

To test whether the disinhibitory circuit mechanisms identified above generalize to settings in which attentional relevance is specified after stimulus encoding, we introduced a retro-cue variant of the two-modality task as illustrated in Fig 8a. The task still involves two streams of stimuli (modality 1 and modality 2) along with the task cue (pro- and anti-DMS). In this task version, the task cue was fixed to be given before the first stimulus (see Methods). Notably, in this modified version, the attention cue may be presented before the first stimulus (early instruction), after the first stimulus (late instruction), or after the second stimulus (retro-cue), as depicted in Fig 8a. This modification provides a more nuanced exploration of attentional processes by allowing flexibility in the timing of attention cue presentation.

Fig 8. Retro-cue signal forces the model to maintain both unattended and attended sensory signals.

Fig 8

a. Schematic of a modified version of the two-modality DMS task, which includes a retro attention cue signal. The task cue signal was always given early (before the onset of the first stimulus), while the attention cue was given before the first stimulus (early instruction), during delay (late instruction), or after the second stimulus (retro-cue). b. CEBRA trajectories during the first instruction and first stimulus periods for the attended modality when the attention cue signal was given early (example RNN). c. Same as b, but for the unattended modality. d–f. Average temporal discriminability of the first stimulus identity of the unattended modality when the attention cue was given early (d), late (e), or after the second stimulus (retro; f). g–i. Same format as d–f, but with inhibitory-to-inhibitory (I→I) connections lesioned (synaptic weights reduced by 50%). White lines denote task epoch boundaries. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

We trained 20 one-module RNNs to perform this modified two-modality DMS task. We then compared the resulting network dynamics for the case where top-down cues (both task and attention cue signals) were given before the first stimulus against the dynamics observed from the RNNs trained for the original two-modality DMS task (Fig 2). Applying CEBRA to an example RNN trained for the modified two-modality DMS task revealed that the trajectories for the attended modality closely resembled those obtained from the example RNN trained for the original two-modality DMS (i.e., compare Fig 8b with Fig 2f). The trajectories were initially distinguished by the task cue (pro- versus anti-DMS). Subsequently, each task “arm” bifurcated based on the identity of the attended first stimulus (Fig 8b). Interestingly, in the case of pro-DMS, where the unattended first stimulus had an identity of +1, the trajectories diverged based on the identity of the attended first stimulus (illustrated by the green trajectories in Fig 8c). This stands in stark contrast to the trajectories observed in the RNN model performing the original two-modality DMS task, where the trajectories of the unattended modality were unaffected by the attended modality (Fig 2g). In other words, the introduction of the retro-cue condition to the two-modality task forced the RNNs to maintain not only the attended but also the unattended stimuli throughout the trial period. This is further underscored by the robust temporal discriminability of the first stimulus of the unattended modality across the three attention cue conditions (i.e., early, late, and retro cue conditions) in the 20 RNNs trained for the modified two-modality DMS task (Fig 8d–8f; compare these to Fig 2l, 2m). Carrying out systematic lesioning analyses revealed that reducing inhibitory-to-inhibitory (I→I) connections led to a pronounced decrease in the temporal discriminability of the first stimulus (Fig 8g–8i), whereas lesioning the other synaptic classes produced substantially weaker effects (S22 Fig). These results demonstrate that, despite the altered task demands imposed by the retro-cue condition, stimulus representations continue to rely critically on disinhibitory I→I circuitry for their maintenance.

Overall, introducing the retro-cue condition resulted in the RNN model employing a different strategy to flexibly prioritize and maintain relevant information throughout the task execution. Notably, this shift in strategy preserves the same underlying circuit mechanism, with disinhibitory inhibitory-to-inhibitory interactions remaining essential for stabilizing stimulus representations under dynamically changing attentional demands.

Discussion

The present study provides a unique set of cognitive tasks that require flexible stimulus-response mapping and enable investigation into the interaction between bottom-up and top-down signaling. By constructing and training biologically constrained RNNs on these tasks, we propose possible neural mechanisms essential for such flexible information processing and cognitive control. Importantly, we show that selective inhibition plays a central role in shaping network dynamics during context-dependent decision-making. Moreover, through the utilization of hierarchically structured RNN models (i.e., two-module RNNs) and data from the mouse primary visual cortex, we demonstrate the involvement of selective inhibition in encoding top-down information within early sensory areas. Together, these findings offer a complete computational and empirical account for the role of top-down feedback into lower-level sensory areas.

Previous experimental and computational studies have highlighted the significance of disinhibitory circuits governed by inhibitory-to-inhibitory signaling in performing high-level cognitive functions [34,43,78–80]. For instance, disinhibitory effects exerted by VIP and SST interneurons in higher-level cortical areas, such as the prefrontal cortex, have been shown to be critical for working memory and social memory [59,81]. A role for VIP and SST neurons in encoding the novelty of visual stimuli has also been found, suggesting a broader role in top-down regulation [38]. While recent animal studies have started to explore how these mechanisms are utilized for other cognitive functions [75,82,83], the role of inhibitory-to-inhibitory connections in facilitating flexible cognitive switching remains poorly understood. This ambiguity is primarily attributed to the lack of computational models incorporating relevant biological constraints, coupled with scarcity of cognitive tasks that allow for orthogonal manipulation of sensory and temporally varying top-down signals. To bridge this gap, we trained RNNs composed of model neurons to perform cognitive tasks requiring adaptive switching. Through several computational analyses, including lesion studies, we demonstrate that a subset of I→I synapses naturally emerge in our model to adeptly map sensory information into context-dependent decisions. Consistent with our findings, recent animal studies have identified disinhibitory circuit motifs facilitating flexible routing of sensory information [34,40,41,61,83].

Specifically, the canonical VIP-SST disinhibitory circuit in the cortex is a candidate for the biological implementation of the top-down regulatory mechanism elicited by inhibitory-to-inhibitory connections that arose in our artificial models. While VIP neurons are known to receive long-range feedback from frontal areas [75,76], and to be flexibly modulated by task demands [84], one of their roles in cortical circuitry is to inhibit SST-expressing neurons, which are inhibitory neurons themselves [34,35,75]. Since SST neurons target excitatory pyramidal neurons in visual circuitry [85], the end goal of this circuitry may be to allow for a regulated integration of top-down feedback into disinhibited excitatory sensory neurons [86–88]. Above and beyond being utilized for top-down regulation alone, inhibition plays a role in stabilizing cortical activity as a whole, as evidenced by the onset of seizures caused by loss of cortical inhibition [89]. In networks with strong recurrent connections, excitatory-to-excitatory connections amplify responses so that the network is unstable if the firing rates of inhibitory neurons are kept fixed [90], requiring inhibitory-based stabilization to control self-amplification [91]. From the perspective of top-down control, disinhibitory feedback can act functionally as regulatory gating, which modulates bottom-up circuits as opposed to just re-writing sensory information coded by sensory pyramidal neurons, allowing for context-based selection of sensory inputs [92,93]. This type of long-range regulatory gating plays an especially important role in top-down attention-based gating of sensory inputs [17].

Although the retro-cue condition introduces task demands that differ from the standard delayed match-to-sample structure, our additional lesion analyses demonstrate that the same disinhibitory inhibitory-to-inhibitory circuitry remains critical for maintaining stimulus representations under these altered temporal and attentional constraints. This suggests that the emergence of disinhibitory motifs in our models is not specific to a particular task configuration, but instead reflects a more general circuit mechanism for stabilizing and selectively prioritizing internal representations in the presence of dynamically changing top-down demands. In line with this, prior experimental and computational studies have shown that reward expectation and value signals strongly modulate cortical processing through inhibitory interneuron populations, often via disinhibitory pathways that gate sensory or mnemonic representations in a context-dependent manner [43,53,79,83]. Within this broader framework, our results suggest that disinhibitory I→I motifs may constitute a canonical circuit mechanism through which diverse top-down signals can dynamically regulate information flow and representational stability across cortical hierarchies.

Particularly noteworthy are our findings that I→I connections within the sensory module of our two-module RNN model encode top-down information, and that these connections are necessary for context-dependent mapping of the sensory information. Furthermore, we reported that feedback signals from higher-level cortical areas contribute to emergence of these I→I connections in early sensory areas. These findings indicate a hierarchical organization of inhibitory circuits involved in encoding and processing top-down information. In support of this, Kirchberger and colleagues demonstrated the critical role of feedback inputs from higher visual areas in generating context-dependent signals in the mouse primary visual cortex through optogenetic manipulation [61]. While the authors observed reduced context-encoding upon optogenetic silencing of excitatory neurons in the higher visual cortex [61], the specific circuitry underlying these feedback projections warrants further investigation.

The possibility that aspects of complex computations, typically ascribed to higher cortical areas, may also occur in lower-level areas challenges the prevailing notion of the cognitive limitations of lower-level areas. Building representational redundancies into cortical hierarchies allows for complex computations to occur in both lower sensory areas and higher-level areas [25,46,47]. This mechanism enhances the robustness of representations and facilitates efficient processing, enabled by top-down feedback signals guiding multiplexing in sensory areas.

Building on the insights gained from this study, future directions could explore whether similar circuit mechanisms are employed across various cognitive domains, potentially uncovering universal circuit motifs underlying flexible sensory processing and cognitive control across various contexts. Furthermore, enhancing the biological realism of computational models and RNNs by incorporating spiking model neurons and biologically plausible learning rules could unveil other neural mechanisms based on precise timing-based computations. Finally, validating our experimentally testable hypotheses and predictions using neural data from both nonhuman primates and humans, particularly epilepsy patients with depth electrodes implanted for seizure monitoring and potential intervention, represents a crucial future direction. This step would provide an improved understanding of representational redundancies within cortical networks and help identify compensatory mechanisms that preserve flexible computation in networks disrupted by disorders. Additionally, these insights will inform the development of targeted interventions and therapeutic strategies for neurological disorders that impair sensory processing and cognitive control.

Methods

Continuous-rate RNN model

In this study, we constructed the following continuous-variable RNN model:

τdxdt=−x(t)+wr(t)+winu(t) (1)
r(t)=σ(x(t))=11+exp(−x(t)) (2)
o(t)=woutr(t)+b (3)

where τ∈ℝ1×N refers to the synaptic time constants, x∈ℝN×T denotes the synaptic current variable from N units across T time points. By applying a sigmoid nonlinearity, we estimated the firing rates r∈ℝN×T based on the synaptic current values (x). The connection weights from the time-varying inputs (u∈ℝNin×T; Nin, the number of input channels) to the network were represented by the weight matrix win∈ℝN×Nin. Additionally, w∈ℝN×N contains connection weights between the N units.

To compute the network output (o∈ℝ1×T), we linearly combined all the firing rates specified by the output connection weight matrix, wout∈ℝ1×N, along with the constant bias term, b. The network size (N) was set to 1,000 for all the networks. Output weights could be positive or negative.

For the one-modality DMS task, the input signals (u) contained three channels: two channels for the two sequential stimuli and one channel for the task cue signal (Fig 1a). For the two-modality DMS task, u contained 6 channels, corresponding to two stimulus modalities (two channels for each modality), one channel for the task cue signal, and another one for the attention cue (Fig 1b). For the one-module RNNs, u was projected to all the units in the network. However, for the two-module RNNs, the stimulus signals were injected into the first 200 units, while the task and attention cues were provided to the second module comprising 800 units (Fig 5a).

For the two-module RNN model, the recurrent connectivity weight matrix (w) was constrained to remove the feedforward inhibitory connections from the first module (first 200 units; sensory module) to the second module (nonsensory module) by applying a binary mask.

Training and task details

The dynamics in Equation 1 were discretized using the first-order Euler approximation method and using the step size (Δt) of 5 ms:

xt=(1−Δtτ)xt−1+Δtτ(wrt−1+winut−1) (4)

where xt=x(t). Given that the units in this network model communicate through differentiable and continuous signals, a gradient-descent supervised method, known as backpropagation through time (BPTT; [94]), was employed to train our RNNs to perform cognitive tasks. Specifically, the trainable parameters of the model included w, τ, wout, and b. We used Adam (adaptive moment estimation) optimization algorithm to update these parameters. The learning rate was set to 0.01, and the TensorFlow default values were used for the rest of the parameters, including the first and second moment decay rates. To further impose biological constraints, we enforced Dale’s law (uniform neurotransmitter release characteristics within separate excitatory and inhibitory neurons) using methods similar to those implemented in previous studies [48,54,95]. To adhere to empirical findings regarding the ratio of excitatory and inhibitory neurons observed in the brain, each RNN consists of 80% excitatory and 20% inhibitory units (i.e., E–I ratio of 80/20; [30,96,97]).

Importantly, instead of fixing the synaptic decay constant (τ) to a fixed value for all the units, we optimized the parameter for each unit. The parameter was trained to range from 20 ms to 125 ms to model heterogeneous synaptic dynamics of different receptors in the cortex [98,99]. We initialized the synaptic decay time constant parameter (τ) using

τ=σ(𝒩(0,1))τstep+τmin (5)

where σ(·) is the sigmoid function and 𝒩(0,1) refers to the standard normal Gaussian distribution. τmin=20 ms and τstep=105 ms were used to constrain the parameter to range from 20 ms to 125 ms.

Our model training was deemed successful if the following two criteria were satisfied within the first 70,000 epochs: 1) loss value (defined as the root mean squared error between the network output and target signals) < 7; and 2) task performance > 95% for the one-modality DMS task and > 85% for the two-modality DMS task. If the network did not meet the criteria within the first 70,000 epochs, the training was terminated. For each successfully trained RNN, we simulated 400 trials for the one-modality task and 1,000 trials for the two-modality task, randomizing each trial to contain one possible combination of instruction order, top-down cues, and stimulus identities. Using these criteria, we trained 20 RNNs for each task.

One-modality DMS task.

For the one-modality DMS task, the trial duration was set to 350 steps with 5 ms step size, and the input matrix (u∈ℝ3×350) contained two input channels for the two sequential stimuli (Stim 1 and Stim 2 in Fig 1a). The third channel was used to deliver the task cue signal. The first channel was employed to present Stim 1 (lasting 250 ms) at 400 ms, and the second channel delivered Stim 2 (lasting 250 ms) 250 ms after the offset of the first stimulus. During the stimulus period, the input channel was set to either −1 or +1. For the early instruction condition, the task cue channel was set to either −1 or +1 from 150 ms to 400 ms. For the late instruction condition, the task cue channel was adjusted to −1 or +1 during the delay period, spanning from 650 ms to 900 ms.

Two-modality DMS task.

The input matrix for the two-modality task contained 6 input channels (u∈ℝ6×350). The initial two channels were employed to present two sequential stimuli for the first modality, whereas the subsequent two channels delivered stimuli for the second modality. The fifth channel was dedicated to the task cue signal, while the last channel was used to present the attention cue. For the early instruction condition, both task and attention signals were delivered at 150 ms. For the late instruction condition, the task and attention signals were presented at 650 ms.

Modified two-modality DMS task.

For the modified version of the two-modality DMS task (Fig 8), the input matrix closely resembled that of the standard two-modality task (see above). The trial duration for this variant was reduced to 250 steps (1,250 ms), and the stimulus window was also shortened to 125 ms. In this task, the task cue signal was always delivered before the first stimulus at 125 ms. However, the attention cue signal was randomly delivered either before the first stimulus (early instruction), after the first stimulus at 375 ms (late instruction), or after the second stimulus at 625 ms (retro-cue).

SVM decoding and state space analyses

We performed decoding on RNN activity with a 5-fold cross-validated linear support vector machine analysis (SVM; sklearn function SVC). Given a trained RNN model, we first generated firing rate timecourses (r in Equation 3) of 1,000 units across 1,000 simulated trials. Next, the data were randomly sampled for instruction order (early versus late), stimulus identity (+1 versus −1), and top-down task signals (pro-DMS versus anti-DMS; as well as attended versus unattended for the RNNs performing two-modality DMS). The SVM classifier was trained on the firing activities from either excitatory or inhibitory units and then tested on the left-out trials to distinguish each of the signals of interest.

The decoding plots represent single trial decoding accuracy for the signal of interest. All model units of a given kind (inhibitory or excitatory) are included simultaneously in the SVM decoder as features. The measures of variability (standard error of the mean) are included as shaded areas around the decoding accuracy trajectories, which are computed in cross-validated fashion across 5 folds.

To characterize the network dynamics in response to distinct external inputs, we performed a fixed-point analysis [67] using the FixedPointFinder toolbox [68]. This method involves numerically minimizing a proxy energy function derived from the RNN update equations to identify fixed points and subsequently obtaining linearized dynamics around these points to describe their behavior. In our case, this is equivalent to minimizing q(x), defined from the RNN dynamics of Equation 1:

q(x)=12|dxdt|2=1τ(−x(t)+wr(t)+winu(t))2 (6)

We repeated this search for every set of external inputs u(t), which included null inputs for late instruction trials, task cue (pro-DMS versus anti-DMS), and attention cues (for the two-modality DMS).

For each optimization run, we randomly selected 200 out of the 1,000 simulated trials to create initial conditions for the optimizer. From each trial, one initial condition was generated by taking the 1,000-dimensional system state at the end of the first instruction period. Each optimization run had the following parameters: number of iterations = 30,000; initial learning rate = 0.1; outlier distance scale = 10; unique tolerance = 10. The outlier distance scale served as a cutoff distance for discarding outlier putative fixed points, measured from the centroid of the vector of initial conditions. The unique tolerance is the numerical precision used to determine if two fixed points are unique. Fixed points that were too close to previously identified ones were discarded. Two fixed points were considered unique if their distance exceeded this threshold.

To visualize the fixed points and RNN neural trajectories, we plotted them in principal component space spanned by the top three principal components extracted from the average activities during the first instruction period. In addition, we visualized the entire landscape of the energy function q(x) in the top two principal components during the first instruction period along with their respective energy minima for each external input u(t) condition (Figs 2a, 2b, 5b). For qualitative visualization purposes only, we created a grid of possible (x,y) coordinates in two-dimensional principal component space and performed an inverse PCA transform with sklearn function inverse_transform, which returns the unique orthogonal projection of the PC point onto native space. This function works by multiplying the PCA-space representation by the transpose of the PCA rotation matrix and adding the dataset mean. This implies that any variance that is perpendicular to the principal components is treated as zero and discarded. This is still lossy but is the best approximation possible for our visualization purposes.

CEBRA analysis

To visualize network dynamics and analyze the impact of top-down signaling on RNN dynamics, we applied unsupervised manifold discovery CEBRA [70] on the 1,000 simulated trials of representative RNN models during the first instruction and first stimulus periods. This method is capable of uncovering latent structures in multidimensional dynamical datasets, either unsupervised or conditioned on specific variables of interest. Throughout this study, we conducted unsupervised latent structure discovery based solely on the temporal sequence of data points across the entire dataset, without considering trial conditions, tasks, or stimulus identities. More specifically, we utilized the default model parameters for the ‘offset10-model’ architecture, using a batch size of 256, time offsets of 10, learning rates of 3e−4, and cosine as the distance measure.

Cross-temporal discriminability analysis

In addition to the SVM decoding analysis (see above), we also quantified the amount of information encoded by each unit within RNNs using cross-temporal discriminability analysis [100–102]. For Figs 2j–2m, the firing rate estimate time courses of each unit for each first stimulus identity were initially divided into two splits (odd versus even trials) and averaged across trials within each split. Subsequently, for each unit in each split, the difference in the average firing rates between the two conditions based on the first stimulus identity (i.e., + 1 and −1) was computed. Next, Pearson’s correlation coefficient between the two splits was calculated. The discriminability score was then obtained by applying Fisher’s z-transformation. This process was carried out separately for the attended modality (Fig 2j, 2k) and the unattended modality (Fig 2l, 2m). For Fig 7f, the first stimulus identity was fixed to −1, and the discriminability of the task cue signal was computed using the two task cue identities (pro- versus anti-DMS). The diagonal values of the discriminability matrices are shown. For Fig 8d–8f, similar procedures to those employed for Fig 2j–2m were implemented.

Centrality measure

We utilized a functional closeness centrality measure to determine the centrality of each unit within RNNs. For this, we first defined a functional distance metric di,j between unit i and j a network, based on the absolute of the Pearson correlation (ρ) between their synaptic current activity over time, denoted as xi and xj:

di,j=1−|ρ(xi,xj)| (7)

This function ensures that unit pairs that are more predictive of each other’s activity, either via positive or negative correlation, have a distance function closer to 0, while unit pairs with weak correlations have a distance function closer to 1.

Next, we used the complete distance matrix as the edge distances between nodes in a graph and employed the Python package networkx [103] to compute the network closeness centrality measure Ci for each unit i from all n units:

Ci=n−1∑j=1n−1S(i,j) (8)

Here, S(i,j) represents the shortest path distance between two units i and j, computed utilizing the distance matrix di,j via Dijkstra’s algorithm with the distance attributes as edge weights. Concretely, a node has high centrality when it is, on average, only a few steps away along shortest paths. Intuitively, a neuron is a good vantage point or information broadcast hub if communication follows shortest paths. We computed centrality for all neurons within the entire network and plotted it separately for excitatory versus inhibitory neurons.

Identifying task and attention cue selective units

To identify units selective for pro-DMS versus anti-DMS task signals, we first generated 400 trials for the one-modality DMS and 1,000 trials for the two-modality DMS. We next extracted firing rate estimates of all units in each of the trained RNNs. Then, the trials and firing rate estimates were sorted based on the early task cue signal, separating them into pro-DMS and anti-DMS groups. For each unit, we averaged the firing rate estimates during the first instruction window for each trial. Subsequently, we performed the one-sided Wilcoxon rank-sum statistical test on the average firing rates from the two task groups for each unit. Units with significantly higher average firing rates in the pro-DMS group compared to the anti-DMS group were classified as pro-DMS selective units. Similar procedures were performed to identify attention-selective units for the two-modality RNNs.

Lesioning analyses

For Figs 4 and 6, trained synaptic connections were lesioned systematically to identify specific connections important for encoding and maintenance of top-down information. For each trained network, connections were initially classified into four subgroups: I→I (inhibitory units inhibiting other inhibitory units), I→E (inhibitory units inhibiting excitatory units), E→I (excitatory units exciting inhibitory units), and E→E (excitatory units exciting other excitatory units). Within each subgroup, connections were further categorized based on their selectivity for the task and attention cue signal (see above). The selective connections were then lesioned by reducing their strength by 50%.

Experimental data

To further characterize the impact of top-down signaling over information processing, we utilized publicly available experimental data on the role of recurrent processing in the activity of mouse primary visual cortex [61]. In this task, mice had to determine the location of a salient grating visual pattern which contrasted from a visual background, distinguishing them based either on the orientation, the phase, or the texture of the grating pattern. For the purposes of our analyses, we averaged results across orientation, phase, and texture conditions. Target patterns could appear either in the right or left visual field, prompting mice to indicate their locations by licking a spout on the corresponding side to receive water or milk droplets as rewards. Crucially, neural recordings and stimuli were set up in such a way that image contents falling within the receptive fields of the recorded neurons were strictly identical in the figure and background conditions. Thus, any difference in neural activity measured across conditions was caused by the context indicated by image regions outside of the measured neural receptive field.

We first sought to determine whether V1 activity contained information distinguishing target grated stimuli from nontarget grated backgrounds even when the sensory input within receptive fields was identical. This would indicate that feedback from regions outside receptive fields projects into the measured V1 sites. For this analysis, neural activity consisted of multiunit activity from 198 recording sites in 13 different V1 electrode penetrations in 6 awake mice. To determine which information was contained in V1 multiunit activity, we performed a 4-fold cross-validated linear SVM decoding analysis (MATLAB function fitcsvm), for figure versus background labels from 0.5 s before to 1 s after stimulus presentation, utilizing activity in separate channels as features. To obtain a null distribution for decoding accuracy, we generated 1,000 random label permutations and performed the same decoding analysis.

Furthermore, we leveraged an additional analysis using the aforementioned dataset. Specifically, we determined whether activity of inhibitory neurons in V1 is necessary for figure versus background discrimination, as predicted by the central role of inhibitory neurons in our modeling approach. The analysis contained multiunit activities of different subgroups of inhibitory interneurons in V1: vasoactive intestinal peptide–expressing (VIP) and somatostatin-positive interneurons (SST). In addition, the dataset also contains recordings when VIP or SST neurons were optogenetically inhibited (see [61] for more details).

Using this dataset, we decoded figure versus background labels from V1 multiunit activity with a 5-fold cross-validated linear SVM, both with and without optogenetic VIP suppression (time window length: 250 ms, time steps: 25 ms). In the original data manuscript, authors tested 3 different figure-ground segregation schemes for visual gratings: orientation, phase, and texture. Behaviorally, authors found that orientation elicited the highest accuracy rates. Optogenetically, orientation was the one condition that elicited the highest differences in spike rates comparing laser on versus laser off conditions. Therefore, for our purposes of demonstrating the impact of optogenetic silencing on SVM decoding, we sub-selected only trials which had orientation as a top-down signaling cue and performed 5-fold cross-validation. Other than that, no further sub-selection was performed. We then compared decoding accuracy between the laser-on and laser-off conditions by performing a two-sample one-sided t test for whether accuracy was larger in trials without laser suppression. We performed this test within the main time window of interest, when the laser was delivered (250 ms to 500 ms).

In parallel to the neural data analysis, we applied an analogous linear SVM decoding framework to activity from the sensory module of the trained two-module RNNs. For each model, task cue identity (pro versus anti) was decoded from population activity using a time-resolved linear SVM. Neural activity was first averaged within sliding temporal windows (window size: 50 ms; step size: 25 ms) to generate feature vectors for each trial and time window. Classifiers were trained using a random 70% subset of trials and evaluated on the remaining 30% held-out trials, and this procedure was repeated across 100 random train-test splits. Decoding accuracy was computed independently for each neuron and time window, then averaged across neurons within the sensory module and across trained models.

Statistical analyses

All RNNs trained in the present study were randomly initialized (with random seeds) before training. Nonparametric statistical methods were employed throughout the study. In figures containing boxplots, two-sided Wilcoxon rank-sum or signed-rank tests were performed to ascertain statistically significant differences between two groups.

Following linear SVM decoding and functional centrality analyses, we aimed to determine whether decoding accuracy or functional centrality values were higher in excitatory or inhibitory neurons. To achieve this, we utilized the scipy.stats function ks2samp and performed two-sided Kolmogorov–Smirnov (KS) tests across all time bins and Bonferroni corrected for the number of tested time bins. Similarly, we performed a one-sided t test in the time bin of interest to specifically test the hypothesis that decoding accuracies in V1 would decrease following optogenetic silencing.

For cross-temporal discriminability analyses, we performed binomial tests and Bonferroni corrected for the number of tests to determine whether each decoding accuracy value was higher than chance. Assuming a false positive rate of 5%, and a Bernoulli process to generate significant decoding events at this rate, the number of instances S falsely classified as significant within a population of size N is given by a binomial distribution: S~binomial(N,0.05). Accordingly, we derived a binomial p-value for the probability of obtaining an observed sensitive instance count K larger than expected by chance, using the cumulative binomial distribution: P=1−binomialCDF(K,N,0.05).

Supporting information

S1 Fig. Example single-unit activity and output dynamics from a trained one-modality RNN.

a. Neuron-by-time heatmaps showing activity of all 1,000 units from a representative single-module, one-modality RNN during Pro-DMS (left) and Anti-DMS (right) trials. For visualization purposes only, each neuron’s activity was z-scored across time. White vertical lines demarcate key task epochs, including instruction, stimulus, delay, and response periods. b. Corresponding RNN output signals for Pro-DMS (teal) and Anti-DMS (purple) trials. Gray shaded regions indicate the presentation of stimulus 1 (Stim 1) and stimulus 2 (Stim 2). The output reflects the learned stimulus–response mapping conditioned on the task cue. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s001.eps (3.1MB, eps)
S2 Fig. Quantification of latent trajectory separation for attended versus unattended modalities.

Boxplots show the Euclidean distance between CEBRA latent trajectories corresponding to opposite first-stimulus identities, computed during the stimulus 1 epoch. Distances were calculated separately for attended and unattended modalities by randomly subsampling latent trajectories across task conditions and repeating the procedure 100 times. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s002.eps (1.3MB, eps)
S3 Fig. Temporal discriminability for the first stimulus identity when the task signal was fixed to pro-DMS.

For the attended modality (a, b), the identity of the first stimulus was more robustly encoded throughout the trial duration than in the unattended modality (c, d). Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s003.eps (3.1MB, eps)
S4 Fig. Temporal encoding of top-down signals during DMS tasks.

Cross-temporal decodability of task and attention signals is shown as the average generalization accuracy for each pair of training/testing time windows. Highlighted boundaries indicate significant decoding accuracy, P<1e−20, binomial test, Bonferroni corrected. White lines denote the reference event of each trial period (task and attention cues, stimulus onsets, response). a. One-modality DMS, task signal, early instruction. b. Same, for late instruction. c. Two-modality DMS, task signal, early instruction. d. Same, for late instruction. e. Two-modality DMS, attention signal, early instruction f. Same, for late instruction. g. Two-modality DMS, attended modality signal, early instruction, attended modality. h. Same, for unattended modality. i. One-modality DMS, stimulus identity. j. Two-modality DMS, stimulus identity, stimulus modality 1. k. Same, for stimulus modality 2. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s004.eps (4.5MB, eps)
S5 Fig. Inhibitory units robustly maintain top-down signals.

a. SVM decodability of the attention signal from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. b. SVM decodability of the attended first stimulus identity from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. c. SVM decodability of the unattended first stimulus identity from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided two-sample KS test). Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s005.eps (2.3MB, eps)
S6 Fig. Structured connectivity across rule-selective populations.

Average synaptic weights (magnitude) between rule-selective populations across all trained one-module, one-modality RNNs (n = 20), separated into within-selectivity (“Same”; anti → anti and pro → pro) and across-selectivity (“Cross”; anti → pro and pro → anti) connections. Panels show results for inhibitory-to-inhibitory (I → I), excitatory-to-inhibitory (E → I), inhibitory-to-excitatory (I → E), and excitatory-to-excitatory (E → E) connections. Each gray line represents an individual network, and black markers denote mean ± s.e.m. ***P < 0.001 by paired Wilcoxon signed-rank test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s006.eps (1.3MB, eps)
S7 Fig. Quantification of outgoing synaptic connections in single-module one-modality RNNs.

Boxplots show the total number of outgoing synaptic connections for task-selective excitatory and inhibitory neuron populations across 20 single-module RNNs trained to perform the one-modality DMS task. a. Outgoing connections from pro-DMS-selective populations; b. Outgoing connections from anti-DMS-selective populations. For each condition, outgoing connections are grouped by presynaptic and postsynaptic cell type (I→I, I→E, E→I, E→E). Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. Statistical comparisons were performed using a Kruskal–Wallis test followed by Dunn’s post hoc multiple-comparisons test. Significance levels are indicated as **P < 0.01 and ***P < 0.001. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s007.eps (1.6MB, eps)
S8 Fig. Inhibitory-to-inhibitory connections primarily encode task and attention cue signals.

a. Performance of all 20 RNNs trained to perform the two-modality DMS when task-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when modality 2 was attended. b. Performance of all 20 RNNs trained to perform the two-modality DMS when modality-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when the task signal was fixed to anti-DMS. Ia, inhibitory units preferring anti-DMS cue; Ip, inhibitory units preferring pro-DMS cue; Ea, excitatory units preferring anti-DMS cue; Ep, excitatory units preferring pro-DMS cue; Im1, inhibitory units preferring modality-1 attention cue; Im2, inhibitory units preferring modality-2 attention cue; Em1, excitatory units preferring modality-1 attention cue; Em2, excitatory units preferring modality-2 attention cue. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s008.eps (2.2MB, eps)
S9 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in one-modality RNNs.

Task performance following selective lesioning of synaptic connections based on presynaptic/postsynaptic cell type and task selectivity. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. **P < 0.01 and ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s009.eps (2.1MB, eps)
S10 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs when modality 1 is attended.

Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the attention cue fixed to modality 1. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s010.eps (2.1MB, eps)
S11 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs when modality 2 is attended.

Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the attention cue fixed to modality 2. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s011.eps (2.2MB, eps)
S12 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs with the task signal fixed to the pro-DMS condition.

Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the task cue fixed to the pro-DMS condition and performance compared between trials in which modality 1 or modality 2 was attended. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s012.eps (1.6MB, eps)
S13 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs with the task signal fixed to the anti-DMS condition.

Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the task cue fixed to the anti-DMS condition and performance compared between trials in which modality 1 or modality 2 was attended. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s013.eps (1.6MB, eps)
S14 Fig. Example single-unit activity and output dynamics from a trained two-module, one-modality RNN.

a. Neuron-by-time heatmaps showing activity of all 1,000 units from a representative two-module, one-modality RNN during Pro-DMS early (left) and late (right) instruction trials. For visualization purposes only, each neuron’s activity was z-scored across time. White vertical lines demarcate key task epochs, including instruction, stimulus, delay, and response periods. b. Corresponding RNN output signals for Pro-DMS early (red) and late (blue) instruction trials. Gray shaded regions indicate the presentation of stimulus 1 (Stim 1) and stimulus 2 (Stim 2). The output reflects the learned stimulus–response mapping conditioned on the task cue. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s014.eps (2.9MB, eps)
S15 Fig. Training two-module RNNs takes longer for the one-modality DMS compared to the one-module RNNs.

a. Comparison of the number of training trials required for training between the one-module and two-module RNNs, with 20 RNNs trained for each case. b. Both one-module and two-module RNNs achieved high accuracy in performing the one-modality DMS task (mean±stdev; 97.7±1.3% for the one-module model; 97.6±1.2% for the two-module model). Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s015.eps (1.7MB, eps)
S16 Fig. Comparison between I→E and I→I connection strength in two-module RNNs.

I→E (a) and I→I (b) connections were significantly stronger within the non-sensory module than the sensory module. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s016.eps (1.7MB, eps)
S17 Fig. Decoding task signals in nonsensory module of two-module RNNs.

a. Average decoding accuracy in early instruction trials for pro- versus anti-DMS signal in the nonsensory module of two-module networks, including either excitatory (red) or inhibitory (blue) units. Shaded areas indicate standard error of the mean. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided KS test). b. Same, for late instruction trials. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s017.eps (1.6MB, eps)
S18 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections within the sensory module in two-module RNNs.

Task performance following selective lesioning of synaptic connections within the sensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05 and **P < 0.01 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s018.eps (2.1MB, eps)
S19 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections from non-sensory module to sensory module in two-module RNNs.

Task performance following selective lesioning of synaptic connections from the nonsensory module to the sensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s019.eps (2.1MB, eps)
S20 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections from sensory module to non-sensory module in two-module RNNs.

Task performance following selective lesioning of synaptic connections from the sensory module to the nonsensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. **P < 0.01 and ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s020.eps (2.1MB, eps)
S21 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections within non-sensory module in two-module RNNs.

Task performance following selective lesioning of synaptic connections within the nonsensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

pbio.3003831.s021.eps (2.2MB, eps)
S22 Fig. Effects of synaptic lesioning on unattended stimulus representations in two-module RNNs.

Average cross-temporal discriminability of the first stimulus identity of the unattended modality in two-module RNNs trained to perform the two-modality DMS task. Discriminability matrices are shown for trials in which the attention cue was presented early (left), late (middle), or as a retro-cue (right). Rows correspond to selective lesioning (50% reduction in synaptic weights) of different connection types: a. Inhibitory-to-inhibitory (I→I). b. Inhibitory-to-excitatory (I→E). c. Excitatory-to-inhibitory (E→I). d. Excitatory-to-excitatory (E→E) connections. White lines denote task epoch boundaries. Results are averaged across 20 trained RNNs. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

(EPS)

Acknowledgments

We thank Jorge Aldana and the Computational Neurobiology Laboratory at the Salk Institute for assistance with computing resources. We thank Lisa Kirchberger of the Netherlands Institute for Neuroscience for the support in providing access to mouse data for this manuscript. We are also grateful to Mackenzie Mathis for her invaluable feedback on our work.

Data Availability

The code for the analyses performed in this study is available in Zenodo at https://doi.org/10.5281/zenodo.20148662 (Shared code for Disinhibitory signaling enables flexible coding of top-down information in cortical networks). The trained RNN models used in the study, as well as the analysis data, are available in Zenodo at https://doi.org/10.5281/zenodo.20148306 (Shared data for Disinhibitory signaling enables flexible coding of top-down information in cortical networks).

Funding Statement

This work was funded by the ARL Human Guided Intelligent Systems grant (W911NF-23-2-0067) and the Strengthening Teamwork for Robust Operations in Novel Groups (STRONG) grant (W911NF-22-2-0148). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Grossberg S, Grossberg S. How does a brain build a cognitive code? In: Studies of mind and brain: neural principles of learning, perception, development, cognition, and motor control; 1982:1–52.
  • 2.Friston K. A theory of cortical responses. Philos Trans R Soc Lond B Biol Sci. 2005;360(1456):815–36. doi: 10.1098/rstb.2005.1622 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Mumford D. On the computational architecture of the neocortex. II. The role of cortico-cortical loops. Biol Cybern. 1992;66(3):241–51. doi: 10.1007/BF00198477 [DOI] [PubMed] [Google Scholar]
  • 4.Fenske MJ, Aminoff E, Gronau N, Bar M. Top-down facilitation of visual object recognition: object-based and context-based contributions. Prog Brain Res. 2006;155:3–21. doi: 10.1016/S0079-6123(06)55001-0 [DOI] [PubMed] [Google Scholar]
  • 5.Bar M, Kassam KS, Ghuman AS, Boshyan J, Schmid AM, Dale AM, et al. Top-down facilitation of visual recognition. Proc Natl Acad Sci U S A. 2006;103(2):449–54. doi: 10.1073/pnas.0507062103 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Bullier J. Integrated model of visual processing. Brain Res Brain Res Rev. 2001;36(2–3):96–107. doi: 10.1016/s0165-0173(01)00085-6 [DOI] [PubMed] [Google Scholar]
  • 7.Rungratsameetaweemana N, Squire LR, Serences JT. Preserved capacity for learning statistical regularities and directing selective attention after hippocampal lesions. Proc Natl Acad Sci U S A. 2019;116(39):19705–10. doi: 10.1073/pnas.1904502116 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Melloni L, van Leeuwen S, Alink A, Müller NG. Interaction between bottom-up saliency and top-down control: how saliency maps are created in the human brain. Cereb Cortex. 2012;22(12):2943–52. doi: 10.1093/cercor/bhr384 [DOI] [PubMed] [Google Scholar]
  • 9.Mante V, Sussillo D, Shenoy KV, Newsome WT. Context-dependent computation by recurrent dynamics in prefrontal cortex. Nature. 2013;503(7474):78–84. doi: 10.1038/nature12742 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Cole MW, Reynolds JR, Power JD, Repovs G, Anticevic A, Braver TS. Multi-task connectivity reveals flexible hubs for adaptive task control. Nat Neurosci. 2013;16(9):1348–55. doi: 10.1038/nn.3470 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Remington ED, Narain D, Hosseini EA, Jazayeri M. Flexible sensorimotor computations through rapid reconfiguration of cortical dynamics. Neuron. 2018;98(5):1005-1019.e5. doi: 10.1016/j.neuron.2018.05.020 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Schapiro AC, Gregory E, Landau B, McCloskey M, Turk-Browne NB. The necessity of the medial temporal lobe for statistical learning. J Cogn Neurosci. 2014;26(8):1736–47. doi: 10.1162/jocn_a_00578 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Uddin LQ. Cognitive and behavioural flexibility: neural mechanisms and clinical considerations. Nat Rev Neurosci. 2021;22(3):167–79. doi: 10.1038/s41583-021-00428-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Douw L, Wakeman DG, Tanaka N, Liu H, Stufflebeam SM. State-dependent variability of dynamic functional connectivity between frontoparietal and default networks relates to cognitive flexibility. Neuroscience. 2016;339:12–21. doi: 10.1016/j.neuroscience.2016.09.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Voss JL, Gonsalves BD, Federmeier KD, Tranel D, Cohen NJ. Hippocampal brain-network coordination during volitional exploratory behavior enhances learning. Nat Neurosci. 2011;14(1):115–20. doi: 10.1038/nn.2693 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Luck SJ, Chelazzi L, Hillyard SA, Desimone R. Neural mechanisms of spatial selective attention in areas V1, V2, and V4 of macaque visual cortex. J Neurophysiol. 1997;77(1):24–42. doi: 10.1152/jn.1997.77.1.24 [DOI] [PubMed] [Google Scholar]
  • 17.Zhang S, Xu M, Kamigaki T, Hoang Do JP, Chang W-C, Jenvay S, et al. Selective attention. Long-range and local circuits for top-down modulation of visual cortex processing. Science. 2014;345(6197):660–5. doi: 10.1126/science.1254126 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Morales-Gregorio A, Kurth AC, Ito J, Kleinjohann A, Barthélemy FV, Brochier T, et al. Neural manifolds in V1 change with top-down signals from V4 targeting the foveal region. Cell Rep. 2024;43(7):114371. doi: 10.1016/j.celrep.2024.114371 [DOI] [PubMed] [Google Scholar]
  • 19.McBride EG, Lee S-YJ, Callaway EM. Local and global influences of visual spatial selection and locomotion in mouse primary visual cortex. Curr Biol. 2019;29(10):1592-1605.e5. doi: 10.1016/j.cub.2019.03.065 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Saenz M, Buracas GT, Boynton GM. Global effects of feature-based attention in human visual cortex. Nat Neurosci. 2002;5(7):631–2. doi: 10.1038/nn876 [DOI] [PubMed] [Google Scholar]
  • 21.Serences JT, Boynton GM. Feature-based attentional modulations in the absence of direct visual stimulation. Neuron. 2007;55(2):301–12. doi: 10.1016/j.neuron.2007.06.015 [DOI] [PubMed] [Google Scholar]
  • 22.Itthipuripat S, Garcia JO, Rungratsameetaweemana N, Sprague TC, Serences JT. Changing the spatial scope of attention alters patterns of neural gain in human cortex. J Neurosci. 2014;34(1):112–23. doi: 10.1523/JNEUROSCI.3943-13.2014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Debes SR, Dragoi V. Suppressing feedback signals to visual cortex abolishes attentional modulation. Science. 2023;379(6631):468–73. doi: 10.1126/science.ade1855 [DOI] [PubMed] [Google Scholar]
  • 24.Liu T, Larsson J, Carrasco M. Feature-based attention modulates orientation-selective responses in human visual cortex. Neuron. 2007;55(2):313–23. doi: 10.1016/j.neuron.2007.06.030 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Henderson MM, Serences JT, Rungratsameetaweemana N. Dynamic categorization rules alter representations in human visual cortex. Nat Commun. 2025;16(1):3459. doi: 10.1038/s41467-025-58707-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Rademaker RL, Chunharas C, Serences JT. Coexisting representations of sensory and mnemonic information in human visual cortex. Nat Neurosci. 2019;22(8):1336–44. doi: 10.1038/s41593-019-0428-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Musall S, Kaufman MT, Juavinett AL, Gluf S, Churchland AK. Single-trial neural dynamics are dominated by richly varied movements. Nat Neurosci. 2019;22(10):1677–86. doi: 10.1038/s41593-019-0502-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.International Brain Laboratory, Angelaki D, Benson B, Benson J, Birman D, Bonacchi N, et al. A brain-wide map of neural activity during complex behaviour. Nature. 2025;645(8079):177–91. doi: 10.1038/s41586-025-09235-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Ebrahimi S, Lecoq J, Rumyantsev O, Tasci T, Zhang Y, Irimia C, et al. Emergent reliability in sensory cortical coding and inter-area communication. Nature. 2022;605(7911):713–21. doi: 10.1038/s41586-022-04724-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Alreja A, Nemenman I, Rozell CJ. Constrained brain volume in an efficient coding model explains the fraction of excitatory and inhibitory neurons in sensory cortices. PLoS Comput Biol. 2022;18(1):e1009642. doi: 10.1371/journal.pcbi.1009642 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Melzer S, Monyer H. Diversity and function of corticopetal and corticofugal GABAergic projection neurons. Nat Rev Neurosci. 2020;21(9):499–515. doi: 10.1038/s41583-020-0344-9 [DOI] [PubMed] [Google Scholar]
  • 32.Wu YK, Miehl C, Gjorgjieva J. Regulation of circuit organization and function through inhibitory synaptic plasticity. Trends Neurosci. 2022;45(12):884–98. doi: 10.1016/j.tins.2022.10.006 [DOI] [PubMed] [Google Scholar]
  • 33.Schroeder A, Pardi MB, Keijser J, Dalmay T, Groisman AI, Schuman EM, et al. Inhibitory top-down projections from zona incerta mediate neocortical memory. Neuron. 2023;111(5):727-738.e8. doi: 10.1016/j.neuron.2022.12.010 [DOI] [PubMed] [Google Scholar]
  • 34.Pfeffer CK, Xue M, He M, Huang ZJ, Scanziani M. Inhibition of inhibition in visual cortex: the logic of connections between molecularly distinct interneurons. Nat Neurosci. 2013;16(8):1068–76. doi: 10.1038/nn.3446 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Pi H-J, Hangya B, Kvitsiani D, Sanders JI, Huang ZJ, Kepecs A. Cortical interneurons that specialize in disinhibitory control. Nature. 2013;503(7477):521–4. doi: 10.1038/nature12676 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Herstel LJ, Wierenga CJ. Network control through coordinated inhibition. Curr Opin Neurobiol. 2021;67:34–41. doi: 10.1016/j.conb.2020.08.001 [DOI] [PubMed] [Google Scholar]
  • 37.Isaacson JS, Scanziani M. How inhibition shapes cortical activity. Neuron. 2011;72(2):231–43. doi: 10.1016/j.neuron.2011.09.027 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Garrett M, Groblewski P, Piet A, Ollerenshaw D, Najafi F, Yavorska I, et al. Stimulus novelty uncovers coding diversity in visual cortical circuits. bioRxiv. 2023:2023–02.
  • 39.Piet A, Ponvert N, Ollerenshaw D, Garrett M, Groblewski PA, Olsen S, et al. Behavioral strategy shapes activation of the Vip-Sst disinhibitory circuit in visual cortex. Neuron. 2024;112(11):1876-1890.e4. doi: 10.1016/j.neuron.2024.02.008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Keller AJ, Dipoppa M, Roth MM, Caudill MS, Ingrosso A, Miller KD, et al. A Disinhibitory Circuit for contextual modulation in primary visual cortex. Neuron. 2020;108(6):1181-1193.e8. doi: 10.1016/j.neuron.2020.11.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Wilmes KA, Clopath C. Inhibitory microcircuits for top-down plasticity of sensory representations. Nat Commun. 2019;10(1):5055. doi: 10.1038/s41467-019-12972-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Lehr AB, Kumar A, Tetzlaff C. Spatially heterogeneous inhibition projects sequential activity onto unique neural subspaces. eLife. 2025;14. [Google Scholar]
  • 43.Shen B, Louie K, Glimcher P. Flexible control of representational dynamics in a disinhibition-based model of decision-making. Elife. 2023;12:e82426. doi: 10.7554/eLife.82426 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Schulz A, Miehl C, Berry MJ 2nd, Gjorgjieva J. The generation of cortical novelty responses through inhibitory plasticity. Elife. 2021;10:e65309. doi: 10.7554/eLife.65309 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Ito S, Piet A, Bennett C, Durand S, Belski H, Garrett M, et al. Coordinated changes in a cortical circuit sculpt effects of novelty on neural dynamics. Cell Rep. 2024;43(9):114763. doi: 10.1016/j.celrep.2024.114763 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Panzeri S, Brunel N, Logothetis NK, Kayser C. Sensory neural codes using multiplexed temporal scales. Trends Neurosci. 2010;33(3):111–20. doi: 10.1016/j.tins.2009.12.001 [DOI] [PubMed] [Google Scholar]
  • 47.Gire DH, Whitesell JD, Doucette W, Restrepo D. Information for decision-making and stimulus identification is multiplexed in sensory cortex. Nat Neurosci. 2013;16(8):991–3. doi: 10.1038/nn.3432 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Song HF, Yang GR, Wang X-J. Training excitatory-inhibitory recurrent neural networks for cognitive tasks: a simple and flexible framework. PLoS Comput Biol. 2016;12(2):e1004792. doi: 10.1371/journal.pcbi.1004792 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Miconi T. Biologically plausible learning in recurrent neural networks reproduces neural dynamics observed during cognitive tasks. Elife. 2017;6:e20899. doi: 10.7554/eLife.20899 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Yang GR, Joglekar MR, Song HF, Newsome WT, Wang X-J. Task representations in neural networks trained to perform many cognitive tasks. Nat Neurosci. 2019;22(2):297–306. doi: 10.1038/s41593-018-0310-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Barbosa J, Proville R, Rodgers CC, DeWeese MR, Ostojic S, Boubenec Y. Early selection of task-relevant features through population gating. Nat Commun. 2023;14(1):6837. doi: 10.1038/s41467-023-42519-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Park I, Ságodi Á, Sokół PA. Persistent learning signals and working memory without continuous attractors. 2023. Available from: https://arxiv.org/abs/2308.12585
  • 53.Roach JP, Churchland AK, Engel TA. Choice selective inhibition drives stability and competition in decision circuits. Nat Commun. 2023;14(1):147. doi: 10.1038/s41467-023-35822-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Kim R, Li Y, Sejnowski TJ. Simple framework for constructing functional spiking recurrent neural networks. Proc Natl Acad Sci U S A. 2019;116(45):22811–20. doi: 10.1073/pnas.1905926116 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Liu Y, Wang X-J. Flexible gating between subspaces in a neural network model of internally guided task switching. Nat Commun. 2024;15(1):6497. doi: 10.1038/s41467-024-50501-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Vyas S, Golub MD, Sussillo D, Shenoy KV. Computation through neural population dynamics. Annu Rev Neurosci. 2020;43:249–75. doi: 10.1146/annurev-neuro-092619-094115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Kleinman M, Chandrasekaran C, Kao JC. Recurrent neural network models of multi-area computation underlying decision-making. bioRxiv. 2019:798553.
  • 58.Michaels JA, Schaffelhofer S, Agudelo-Toro A, Scherberger H. A goal-driven modular neural network predicts parietofrontal neural dynamics during grasping. Proc Natl Acad Sci U S A. 2020;117(50):32124–35. doi: 10.1073/pnas.2005087117 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Kim R, Sejnowski TJ. Strong inhibitory signaling underlies stable temporal dynamics and working memory in spiking neural networks. Nat Neurosci. 2021;24(1):129–39. doi: 10.1038/s41593-020-00753-w [DOI] [PubMed] [Google Scholar]
  • 60.Kim Y, Yang GR, Pradhan K, Venkataraju KU, Bota M, García Del Molino LC, et al. Brain-wide maps reveal stereotyped cell-type-based cortical architecture and subcortical sexual dimorphism. Cell. 2017;171(2):456-469.e22. doi: 10.1016/j.cell.2017.09.020 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Kirchberger L, Mukherjee S, Schnabel UH, van Beest EH, Barsegyan A, Levelt CN, et al. The essential role of recurrent processing for figure-ground perception in mice. Sci Adv. 2021;7(27):eabe1833. doi: 10.1126/sciadv.abe1833 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Blough DS. Delayed matching in the pigeon. J Exp Anal Behav. 1959;2(2):151–60. doi: 10.1901/jeab.1959.2-151 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Hampson RE, Heyser CJ, Deadwyler SA. Hippocampal cell firing correlates of delayed-match-to-sample performance in the rat. Behav Neurosci. 1993;107(5):715–39. doi: 10.1037//0735-7044.107.5.715 [DOI] [PubMed] [Google Scholar]
  • 64.Mishkin M, Delacour J. An analysis of short-term visual memory in the monkey. J Exp Psychol Anim Behav Process. 1975;1(4):326–34. doi: 10.1037//0097-7403.1.4.326 [DOI] [PubMed] [Google Scholar]
  • 65.Wu Z, Litwin-Kumar A, Shamash P, Taylor A, Axel R, Shadlen MN. Context-dependent decision making in a premotor circuit. Neuron. 2020;106(2):316-328.e6. doi: 10.1016/j.neuron.2020.01.034 [DOI] [PubMed] [Google Scholar]
  • 66.Monk CS, Zhuang J, Curtis WJ, Ofenloch I-T, Tottenham N, Nelson CA, et al. Human hippocampal activation in the delayed matching- and nonmatching-to-sample memory tasks: an event-related functional MRI approach. Behav Neurosci. 2002;116(4):716–21. doi: 10.1037//0735-7044.116.4.716 [DOI] [PubMed] [Google Scholar]
  • 67.Sussillo D, Barak O. Opening the black box: low-dimensional dynamics in high-dimensional recurrent neural networks. Neural Comput. 2013;25(3):626–49. doi: 10.1162/NECO_a_00409 [DOI] [PubMed] [Google Scholar]
  • 68.Golub M, Sussillo D. FixedPointFinder: a Tensorflow toolbox for identifying and characterizing fixed points in recurrent neural networks. JOSS. 2018;3(31):1003. doi: 10.21105/joss.01003 [DOI] [Google Scholar]
  • 69.Driscoll LN, Shenoy K, Sussillo D. Flexible multitask computation in recurrent networks utilizes shared dynamical motifs. Nat Neurosci. 2024;27(7):1349–63. doi: 10.1038/s41593-024-01668-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Schneider S, Lee JH, Mathis MW. Learnable latent embeddings for joint behavioural and neural analysis. Nature. 2023;617(7960):360–8. doi: 10.1038/s41586-023-06031-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Bastos G, Holmes JT, Ross JM, Rader AM, Gallimore CG, Wargo JA, et al. Top-down input modulates visual context processing through an interneuron-specific circuit. Cell Rep. 2023;42(9):113133. doi: 10.1016/j.celrep.2023.113133 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Chini M, Pfeffer T, Hanganu-Opatz I. An increase of inhibition drives the developmental decorrelation of neural activity. Elife. 2022;11:e78811. doi: 10.7554/eLife.78811 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Lamme VA, Roelfsema PR. The distinct modes of vision offered by feedforward and recurrent processing. Trends Neurosci. 2000;23(11):571–9. doi: 10.1016/s0166-2236(00)01657-x [DOI] [PubMed] [Google Scholar]
  • 74.Klink PC, Dagnino B, Gariel-Mathis M-A, Roelfsema PR. Distinct feedforward and feedback effects of microstimulation in visual cortex reveal neural mechanisms of texture segregation. Neuron. 2017;95(1):209-220.e3. doi: 10.1016/j.neuron.2017.05.033 [DOI] [PubMed] [Google Scholar]
  • 75.Lee S, Kruglikov I, Huang ZJ, Fishell G, Rudy B. A disinhibitory circuit mediates motor integration in the somatosensory cortex. Nat Neurosci. 2013;16(11):1662–70. doi: 10.1038/nn.3544 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76.Zhang S, Xu M, Chang W-C, Ma C, Hoang Do JP, Jeong D, et al. Organization of long-range inputs and outputs of frontal cortex for top-down control. Nat Neurosci. 2016;19(12):1733–42. doi: 10.1038/nn.4417 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77.Yavorska I, Wehr M. Somatostatin-expressing inhibitory interneurons in cortical circuits. Front Neural Circuits. 2016;10:76. doi: 10.3389/fncir.2016.00076 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 78.Fino E, Yuste R. Dense inhibitory connectivity in neocortex. Neuron. 2011;69(6):1188–203. doi: 10.1016/j.neuron.2011.02.025 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79.Fu Y, Tucciarone JM, Espinosa JS, Sheng N, Darcy DP, Nicoll RA, et al. A cortical circuit for gain control by behavioral state. Cell. 2014;156(6):1139–52. doi: 10.1016/j.cell.2014.01.050 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Karnani MM, Jackson J, Ayzenshtat I, Hamzehei Sichani A, Manoocheri K, Kim S, et al. Opening holes in the blanket of inhibition: localized lateral disinhibition by VIP Interneurons. J Neurosci. 2016;36(12):3471–80. doi: 10.1523/JNEUROSCI.3646-15.2016 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Xu H, Liu L, Tian Y, Wang J, Li J, Zheng J, et al. A disinhibitory microcircuit mediates conditioned social fear in the prefrontal cortex. Neuron. 2019;102(3):668-682.e5. doi: 10.1016/j.neuron.2019.02.026 [DOI] [PubMed] [Google Scholar]
  • 82.Letzkus JJ, Wolff SBE, Meyer EMM, Tovote P, Courtin J, Herry C, et al. A disinhibitory microcircuit for associative fear learning in the auditory cortex. Nature. 2011;480(7377):331–5. doi: 10.1038/nature10674 [DOI] [PubMed] [Google Scholar]
  • 83.Wang X-J, Yang GR. A disinhibitory circuit motif and flexible information routing in the brain. Curr Opin Neurobiol. 2018;49:75–83. doi: 10.1016/j.conb.2018.01.002 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Kuchibhotla KV, Gill JV, Lindsay GW, Papadoyannis ES, Field RE, Sten TAH, et al. Parallel processing by cortical inhibition enables context-dependent behavior. Nat Neurosci. 2017;20(1):62–71. doi: 10.1038/nn.4436 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.Kepecs A, Fishell G. Interneuron cell types are fit to function. Nature. 2014;505(7483):318–26. doi: 10.1038/nature12983 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86.Makino H, Komiyama T. Learning enhances the relative impact of top-down processing in the visual cortex. Nat Neurosci. 2015;18(8):1116–22. doi: 10.1038/nn.4061 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 87.Chen SX, Kim AN, Peters AJ, Komiyama T. Subtype-specific plasticity of inhibitory circuits in motor cortex during motor learning. Nat Neurosci. 2015;18(8):1109–15. doi: 10.1038/nn.4049 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 88.Garrett M, Manavi S, Roll K, Ollerenshaw DR, Groblewski PA, Ponvert ND, et al. Experience shapes activity dynamics and stimulus coding of VIP inhibitory cells. Elife. 2020;9:e50340. doi: 10.7554/eLife.50340 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Steriade M, Contreras D. Spike-wave complexes and fast components of cortically generated seizures. I. Role of neocortex and thalamus. J Neurophysiol. 1998;80(3):1439–55. doi: 10.1152/jn.1998.80.3.1439 [DOI] [PubMed] [Google Scholar]
  • 90.Sanzeni A, Akitake B, Goldbach HC, Leedy CE, Brunel N, Histed MH. Inhibition stabilization is a widespread property of cortical networks. Elife. 2020;9:e54875. doi: 10.7554/eLife.54875 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Ozeki H, Finn IM, Schaffer ES, Miller KD, Ferster D. Inhibitory stabilization of the cortical network underlies visual surround suppression. Neuron. 2009;62(4):578–92. doi: 10.1016/j.neuron.2009.03.028 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Bertero A, Garcia C, Apicella AJ. Corticofugal VIP gabaergic projection neurons in the mouse auditory and motor cortex. Front Neural Circuits. 2021;15:714780. doi: 10.3389/fncir.2021.714780 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 93.Dellal S, Zurita H, Kruglikov I, Valero M, Abad-Perez P, Geron E, et al. Inhibitory and disinhibitory vip in-mediated circuits in neocortex. bioRxiv. 2025.
  • 94.Werbos PJ. Backpropagation through time: what it does and how to do it. Proc IEEE. 1990;78(10):1550–60. doi: 10.1109/5.58337 [DOI] [Google Scholar]
  • 95.Rungratsameetaweemana N, Kim R, Chotibut T, Sejnowski TJ. Random noise promotes slow heterogeneous synaptic dynamics important for robust working memory computation. Proc Natl Acad Sci U S A. 2025;122(3):e2316745122. doi: 10.1073/pnas.2316745122 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 96.Hendry SH, Schwark HD, Jones EG, Yan J. Numbers and proportions of GABA-immunoreactive neurons in different areas of monkey cerebral cortex. J Neurosci. 1987;7(5):1503–19. doi: 10.1523/JNEUROSCI.07-05-01503.1987 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 97.Sherwood CC, Raghanti MA, Stimpson CD, Bonar CJ, de Sousa AA, Preuss TM, et al. Scaling of inhibitory interneurons in areas v1 and v2 of anthropoid primates as revealed by calcium-binding protein immunohistochemistry. Brain Behav Evol. 2007;69(3):176–95. doi: 10.1159/000096986 [DOI] [PubMed] [Google Scholar]
  • 98.Duarte R, Seeholzer A, Zilles K, Morrison A. Synaptic patterning and the timescales of cortical dynamics. Curr Opin Neurobiol. 2017;43:156–65. doi: 10.1016/j.conb.2017.02.007 [DOI] [PubMed] [Google Scholar]
  • 99.Zador AM, Dobrunz LE. Dynamic synapses in the cortex. Neuron. 1997;19(1):1–4. doi: 10.1016/s0896-6273(00)80341-4 [DOI] [PubMed] [Google Scholar]
  • 100.Wasmuht DF, Spaak E, Buschman TJ, Miller EK, Stokes MG. Intrinsic neuronal dynamics predict distinct functional roles during working memory. Nat Commun. 2018;9(1):3499. doi: 10.1038/s41467-018-05961-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 101.Spaak E, Watanabe K, Funahashi S, Stokes MG. Stable and dynamic coding for working memory in primate prefrontal cortex. J Neurosci. 2017;37(27):6503–16. doi: 10.1523/JNEUROSCI.3364-16.2017 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Stokes MG, Kusunoki M, Sigala N, Nili H, Gaffan D, Duncan J. Dynamic coding for cognitive control in prefrontal cortex. Neuron. 2013;78(2):364–75. doi: 10.1016/j.neuron.2013.01.039 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 103.Hagberg A, Swart P, S Chult D. Exploring network structure, dynamics, and function using networkx. Los Alamos, NM (United States): Los Alamos National Lab; 2008. [Google Scholar]

Decision Letter 0

Christian Schnell, PhD

11 Jul 2025

Dear Dr Rungratsameetaweemana,

Thank you for submitting your manuscript entitled "Disinhibitory signaling enables flexible coding of top-down information" for consideration as a Research Article by PLOS Biology.

Your manuscript has now been evaluated by the PLOS Biology editorial staff and I am writing to let you know that we would like to send your submission out for external peer review.

However, before we can send your manuscript to reviewers, we need you to complete your submission by providing the metadata that is required for full assessment. To this end, please login to Editorial Manager where you will find the paper in the 'Submissions Needing Revisions' folder on your homepage. Please click 'Revise Submission' from the Action Links and complete all additional questions in the submission questionnaire.

Once your full submission is complete, your paper will undergo a series of checks in preparation for peer review. After your manuscript has passed the checks it will be sent out for review. To provide the metadata for your submission, please Login to Editorial Manager (https://www.editorialmanager.com/pbiology) within two working days, i.e. by Jul 13 2025 11:59PM.

If your manuscript has been previously peer-reviewed at another journal, PLOS Biology is willing to work with those reviews in order to avoid re-starting the process. Submission of the previous reviews is entirely optional and our ability to use them effectively will depend on the willingness of the previous journal to confirm the content of the reports and share the reviewer identities. Please note that we reserve the right to invite additional reviewers if we consider that additional/independent reviewers are needed, although we aim to avoid this as far as possible. In our experience, working with previous reviews does save time.

If you would like us to consider previous reviewer reports, please edit your cover letter to let us know and include the name of the journal where the work was previously considered and the manuscript ID it was given. In addition, please upload a response to the reviews as a 'Prior Peer Review' file type, which should include the reports in full and a point-by-point reply detailing how you have or plan to address the reviewers' concerns.

During the process of completing your manuscript submission, you will be invited to opt-in to posting your pre-review manuscript as a bioRxiv preprint. Visit http://journals.plos.org/plosbiology/s/preprints for full details. If you consent to posting your current manuscript as a preprint, please upload a single Preprint PDF.

Feel free to email us at plosbiology@plos.org if you have any queries relating to your submission.

Kind regards,

Christian

Christian Schnell, PhD

Senior Editor

PLOS Biology

cschnell@plos.org

Decision Letter 1

Christian Schnell, PhD

20 Aug 2025

Dear Dr Rungratsameetaweemana,

Thank you for your patience while your manuscript "Disinhibitory signaling enables flexible coding of top-down information" was peer-reviewed at PLOS Biology. It has now been evaluated by the PLOS Biology editors, an Academic Editor with relevant expertise, and by several independent reviewers.

In light of the reviews, which you will find at the end of this email, we would like to invite you to revise the work to thoroughly address the reviewers' reports.

As you will see below, the reviewers agree that the study is well executed and provides important insights. They make a few recommendations to provide additional analyses, for better integration into the existing literature, better links to existing experimental data, and for improving the clarity and presentation.

Given the extent of revision needed, we cannot make a decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is likely to be sent for further evaluation by all or a subset of the reviewers.

In addition to these revisions, you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests shortly.

We expect to receive your revised manuscript within 3 months. Please email us (plosbiology@plos.org) if you have any questions or concerns, or would like to request an extension.

At this stage, your manuscript remains formally under active consideration at our journal; please notify us by email if you do not intend to submit a revision so that we may withdraw it.

**IMPORTANT - SUBMITTING YOUR REVISION**

Your revisions should address the specific points made by each reviewer. Please submit the following files along with your revised manuscript:

1. A 'Response to Reviewers' file - this should detail your responses to the editorial requests, present a point-by-point response to all of the reviewers' comments, and indicate the changes made to the manuscript.

*NOTE: In your point-by-point response to the reviewers, please provide the full context of each review. Do not selectively quote paragraphs or sentences to reply to. The entire set of reviewer comments should be present in full and each specific point should be responded to individually, point by point.

You should also cite any additional relevant literature that has been published since the original submission and mention any additional citations in your response.

2. In addition to a clean copy of the manuscript, please also upload a 'track-changes' version of your manuscript that specifies the edits made. This should be uploaded as a "Revised Article with Changes Highlighted" file type.

*Re-submission Checklist*

When you are ready to resubmit your revised manuscript, please refer to this re-submission checklist: https://plos.io/Biology_Checklist

To submit a revised version of your manuscript, please go to https://www.editorialmanager.com/pbiology/ and log in as an Author. Click the link labelled 'Submissions Needing Revision' where you will find your submission record.

Please make sure to read the following important policies and guidelines while preparing your revision:

*Published Peer Review*

Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out. Please see here for more details:

https://blogs.plos.org/plos/2019/05/plos-journals-now-open-for-published-peer-review/

*PLOS Data Policy*

Please note that as a condition of publication PLOS' data policy (http://journals.plos.org/plosbiology/s/data-availability) requires that you make available all data used to draw the conclusions arrived at in your manuscript. If you have not already done so, you must include any data used in your manuscript either in appropriate repositories, within the body of the manuscript, or as supporting information (N.B. this includes any numerical values that were used to generate graphs, histograms etc.). For an example see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5

*Blot and Gel Data Policy*

We require the original, uncropped and minimally adjusted images supporting all blot and gel results reported in an article's figures or Supporting Information files. We will require these files before a manuscript can be accepted so please prepare them now, if you have not already uploaded them. Please carefully read our guidelines for how to prepare and upload this data: https://journals.plos.org/plosbiology/s/figures#loc-blot-and-gel-reporting-requirements

*Protocols deposition*

To enhance the reproducibility of your results, we recommend that if applicable you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Thank you again for your submission to our journal. We hope that our editorial process has been constructive thus far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Christian

Christian Schnell, PhD

Senior Editor

PLOS Biology

cschnell@plos.org

------------------------------------

REVIEWS:

Reviewer #1: This paper uses extensive training and simulations with RNNs to investigate the interplay between task context and sensory coding. The authors describe how a disinhibitory motif arises as a result of training and study how this motif influences task performance and sensory representations. For that purpose, they use a few different variants of the RNN, as well as computational lesions. In addition, they use a publicly available experimental dataset, with which they carry out analyses that, as they report, substantiate their computational findings. Overall, the paper highlights the disinhibitory motif as a biologically plausible mechanism that is important for sensory processing, retaining of relevant information, and adaptive context integration.

I find the paper interesting, significant, and useful for the community. It is well written, and results are generally well substantiated by data and analyses. Below are several suggestions, which the authors might find useful for improving the paper.

*Would it make sense to carry out perturbational analysis of E->E and E->I connections? The analysis of inhibitory connections in Figs. 4 and 6 is interesting and useful, but doing the same for excitatory connections should reveal more about their relative roles, or at the very least establish sort of a baseline against which perturbations of inhibitory connections can be considered.

*It would be useful to provide example plots of activity in the RNNs - perhaps heat maps, with time on the x-axis, neuron ID on the y-axis, and the level of activity of each neuron indicated by color. I am sure readers would like to see how those plots look like for the different tasks, conditions, and models presented. They could be added to each figure where a new task or model is introduced. Also, maybe in Fig. 1, it would be good to show an example of such activity plot early in the training and after training.

*Lines 222-224: "Through dissection of the RNNs performing the one-modality and two-modality DMS tasks, we found that the optimized synaptic decay time constants for the excitatory units were significantly larger compared to the time constants of the inhibitory units". Also Fig. 3a,b and 5d,e.

I would recommend that the authors comment on how these observations compare with real biological data. One issue is that excitatory synaptic decay time constants tend to be shorter than inhibitory ones, e.g., in the mouse visual cortex, roughly by a factor of two. And the other is that typical values for these time constants are 10-30 ms (though both smaller and greater values are observed for some connection types), as opposed to 60-100 ms emerging in this work. See, for example, Campagnola et al., Science, 2022. While one should not demand too much biological realism from an RNN, it would be reasonable to explain the discrepancies and discuss why one should not worry about them too much.

*Line 445-446: "we observed a decrease in decoding accuracy following optogenetic silencing of V1 VIP neurons (p < 0.05, one-sided Kolmogorov-Smirnov test, Bonferroni corrected; Fig. 7c)".

Yes, but the difference is only 0.6 vs. 0.7 or so, and, more importantly, it is significant only during a very short time interval. To me, this seems like something one has to approach with some skepticism. I would recommend the authors to discuss the situation carefully and avoid making any substantial conclusions from this result.

*Fig. 8 and associated text - this seems like an interesting result, but it is not clear how it connects with the rest of the paper, which is primarily about disinhibitory signaling in coding of top-down information. Perhaps there is an opportunity for the authors to investigate mechanisms of operation of their RNN in this case and compare that with what they did in the rest of the paper.

*I would suggest adding several references to recent work on the structure and function of cortical disinhibitory circuits, such as that with a large experimental dataset from the Allen Institute.

Garrett et al. Stimulus novelty uncovers coding diversity in survey of visual cortex. BioRxiv (2025), https://doi.org/10.1101/2023.02.14.528085.

Piet et al. Behavioral strategy shapes activation of the Vip-Sst disinhibitory circuit in visual cortex. Neuron (2024), https://doi.org/10.1016/j.neuron.2024.02.008

Ito et al. Coordinated changes in a cortical circuit sculpt effects of novelty on neural dynamics. Cell Reports (2024), https://doi.org/10.1016/j.celrep.2024.114763

Schulz et al. The generation of cortical novelty responses through inhibitory plasticity. eLife (2021), https://doi.org/10.7554/eLife.65309

Wu et al. Regulation of circuit organization and function through inhibitory synaptic plasticity. Trends in Neurosciences (2022), https://doi.org/10.1016/j.tins.2022.10.006

Reviewer #2 (Katrin Franke signed her report): I believe this is a well-executed study that addresses an interesting question in sensory neuroscience. Specifically, understanding how context and top-down signals influence feedforward sensory processing is essential for explaining behavior, but this question is experimentally very challenging to approach. It typically requires selective silencing or manipulation of specific neural populations under well-controlled conditions, which can be difficult to achieve, especially at the level of precise microcircuits. Here, the authors take an elegant approach by using biologically constrained recurrent neural networks (RNNs) combined with circuit-level analyses of the model. This modeling framework allows for systematic and targeted investigation of circuit motifs—such as inhibitory-to-inhibitory connections—that may be difficult to test exhaustively in vivo. The inclusion of neural recordings from mouse visual cortex further strengthens the study by grounding the model findings in empirical data and demonstrating that similar circuit patterns may exist in the biological brain. While the results build on prior work and are generally consistent with current hypotheses about disinhibitory circuits and top-down modulation, the combination of computational and experimental approaches makes this study a valuable and well-integrated contribution to the field.

Major Points

Accessibility for Non-experts

The manuscript is well written and clearly motivated, but portions of the text and figures may be challenging for readers less familiar with computational modeling.

For example, Figure 1 would benefit from a brief explanation in the main text about how the RNNs are trained and constrained (e.g., Dale's principle), and why this matters.

In Figure 2a,b, interpreting the energy landscape plots was difficult, whereas the trajectory plots were more intuitive. It would help to clarify why both principal component space and latent space are used, how they differ, and how much variance each captures.

Figure Complexity and Redundancy

Several figures (e.g., Figures 3 and 4) contain many similar panels and analyses. While I appreciate the authors' thoroughness, these sections were difficult to parse.

Consider retaining only the most essential plots in the main figures, summarizing findings at a higher level, and moving more detailed analyses to the supplement.

Clarification of Quantitative Measures

It wasn't clear to me what the decoding plots represent, is this mean performance across all model units? Would be great to plot a measure of variability, e.g. through 5 or 10 fold cross-validation. Is this how the decoders were evaluated?

The concept of functional centrality, which is used to describe inhibitory units as network hubs, could also use a more intuitive explanation—what does this measure imply in terms of network function?

Experimental Validation (Figure 7)

The use of mouse V1 data to test model predictions is valuable. However, the effect of VIP silencing in Figure 7c appears relatively modest, especially when contrasted with clearer differences in trajectory structure (Figures 7d-e).

Some commentary on this discrepancy would be helpful, along with an indication of how much variance is explained by the latent space representations.

Task-Specificity and Generalization

The retro-cue condition is a nice addition that shows flexibility in the model's behavior. However, it raises the question of how specific the findings are to this particular task design.

I would encourage the authors to discuss whether the emergence of disinhibitory motifs might generalize to other forms of top-down modulation (e.g., reward-driven, predictive, or more naturalistic settings).

Biological Interpretation

The link between the modeled inhibitory units and known interneuron types (e.g., VIP→SST motifs) could be expanded. This would help readers better connect the RNN findings to cortical microcircuitry.

A more detailed discussion of biological implementation would be appreciated—especially for readers coming from an experimental background.

Reviewer #3: In this manuscript, the authors studied recurrent neural networks (RNNs) trained to perform context-dependent delay match-to-sample tasks, where the correct response depends on the combination of sensory stimulus, task cue (pro or anti), and in some cases, the attentional cue (attend to modality 1 or 2). The RNNs have separate excitatory and inhibitory populations, and the authors also developed two-module RNNs where each module receives input about sensory stimulus and contextual cue, respectively.

The authors mainly focused on the function of the inhibitory populations in the RNNs, in terms of 1) how their activity differentially represent the task context when compared with that of the excitatory population, and 2) the impact on task performance when inhibitory synapses are "lesioned" (set to lower strength) in the network. The authors concluded that inhibitory neurons, as well as inhibitory-to-inhibitory connections, play a more important role in representing contextual signals, which is consistent with recent experimental findings that VIP inhibitory neurons, which target other inhibitory neurons, mediate contextual information.

While this message is interesting and reported by an increasing number of experiments, I feel the analyses performed are not systematic and thorough enough to support this conclusion. For example, the authors showed that lesioning inhibitory-to-inhibitory (I to I) connections leads to an impairment in contextual behavioral performance, but did not do enough control analyses to show that lesioning other connections (E to E, E to I, I to E) leads to *less* performance deficit.

In addition, I would hope that a modeling study can reveal something beyond agreement with experimental data. The manuscript did not really touch on the deeper mechanistic questions, such as "why inhibitory neurons (and I to I connections) are more important in contextual tasks", or "what are the functional benefits of it".

Below are more detailed comments:

1)The authors showed that the task and attention modality could be decoded better in the inhibitory neurons compared to excitatory neurons (Fig 3c-g; Fig 5h, i). This is interesting but could the authors explore a bit more what is driving this difference. Is it simply because I cells have a higher firing rate, and therefore a higher signal-to-noise ratio?

2)Some comments related to the model lesion results in Figures 4 and 6

a.The authors wanted to conclude that I to I connections are most important in task performance by showing that lesioning I to I connections lead to a significant decrease in performance. However, no comparison was made e effect of lesioning E to I and E to E connections, as well as I to E connections in some cases. Without these control analyses, it is difficult to see that I to I connections play an *especially* important role.

b.The authors performed the lesion by decreasing the connection between *selective* neurons. To ensure a fair comparison, it would be better to look at the fraction of selective E and I neurons, to exclude the possibility that lesioning I to I connections has a larger effect simply because a larger fraction of connections was lesioned.

c.In Figures 4 and 6, lesioning Ia -> Ip connections impair anti-DMS trials more, and vice versa. Could the authors explore further why this is the case? Is it because Ip neurons inhibit Ea neurons? On the other hand, the opposite trend is true when it comes to modality 1 and 2 (Fig 4f, g). For example, lesioning the I_m1 -> I_m2 connections has a larger impact on performance for modality 1 trials). Why is this the case? Since the authors already have classified different neuron types, maybe it is worthwhile to look at the structure in the wiring between different neuron populations.

d.The authors performed the lesion by reducing the connection strength by 50%. Could the authors motivate why they chose 50% in particular? Is there some experimental evidence for choosing this number, or are the results robust across different levels of reduction?

3)If the authors indeed found that excitatory connections are less important (which I think still needs more systematic evaluation, as mentioned in the previous point), what are the functional benefits of inhibitory neurons and I to I connections being more important in contextual tasks?

4)The authors mentioned that in the one module network, the synaptic decay time constants for the excitatory units were significantly larger compared to those of the inhibitory units. The same is true for the non-sensory module of the two-module network, but the opposite was found for the sensory module. These results seem interesting and may warrants further exploration/discussion. For example, are they related to the functional difference between the E and I neurons in the model? Are there some functional benefits for this difference in time constants?

5)In the two-module network, the authors found that that the inhibitory connections are stronger in the non-sensory module compared to the sensory module, which is consistent with experimental data showing an increase in the strength of inhibition for higher-order cortices. It is nice that the model fits the data, but it would be nicer if the authors could offer some insights on any potential functional benefits this different in inhibition strength brings.

Minor comments:

1)The authors wrote in the introduction that "… However, these studies [of RNN modeling] primarily examine scenarios in with task goals and contextual cues remain fixed over time." This is not accurate. There are many studies that train RNNs to perform contextual tasks. Examples include

*Mante, V., Sussillo, D., Shenoy, K. V., & Newsome, W. T. (2013). Context-dependent computation by recurrent dynamics in prefrontal cortex. nature, 503(7474), 78-84.

*Yang, G. R., Joglekar, M. R., Song, H. F., Newsome, W. T., & Wang, X. J. (2019). Task representations in neural networks trained to perform many cognitive tasks. Nature neuroscience, 22(2), 297-306.

*Liu, Y., & Wang, X. J. (2024). Flexible gating between subspaces in a neural network model of internally guided task switching. Nature communications, 15(1), 6497.

2)Also in the introduction, the authors mentioned: "This results in temporally rich and highly dynamic decision-making, a phenomenon that has proven challenging to investigate in artificial neural network models, including RNNs". Could the authors provide some citations that support this claim?

3)A clarification question for the model setup: can the output weights be both excitatory and inhibitory?

4)In Figure 2a and b, the authors computed the energy for each point in the low-dimensional space. However, it seems to me this quantity is ill-defined, because a point in the low-dimensional space could correspond to a continuum of points in the full space, which may have different energies. It would be good to clarify how the energy in the low-d space was computed.

5)Figure 2j-m, the authors mentioned "The task cue was fixed to anti-DMS". Did the authors find the same results for pro-DMS task?

6)The authors mentioned that "However, the bifurcations driven by the identity of the first stimulus were not as well separated in the unattended modality (Fig. 2g)." Could the authors quantify the separation of the trajectories for attended vs unattended modalities?

7) A clarification question: in Figure 3h-k, when computing the centrality for E and I populations using Equation (8), did the authors just look at the correlations *within* E and I populations, or the correlation with the rest of the network (both E and I units)?

8)The authors mentioned that after lesioning I to I connections "the network exhibited a tendency to perform the pro-DMS task irrespective of the task cue presented." Is that a consistent bias observed across all the trained networks? If so, is there an explanation for why? I would imagine some networks have the opposite bias.

9)In the two-module network, it looks like the sensory module sends exclusively excitatory connections to the non-sensory module, but the non-sensory module sends both excitatory and inhibitory connections to the sensory module. Could the authors provide some justification for this asymmetry? I thought long-range connections are predominantly excitatory regardless of feedforward/feedback.

10)In Figure 5c, the authors showed a line of fixed points in the state space for the two-module network. Could the authors clarify why a line attractor was found here but not in the one-module network? And what is the role of this line attractor in task performance (there does not seem to be anything that needs integration).

11)Fig 6a, b: the authors only showed the lesion result for the sensory module but in the text they claimed the same result holds if they lesioned the connections in the non-sensory module. Could the authors show the results for the non-sensory module?

12)Line 393-394: the authors mentioned "Lesioning other synaptic connections (i.e., E → E, E → I, I → E) did not lead to disruption of the top-down information encoding". Could the authors show these results?

13) The analyses in Figure 6c-f seem incomplete. It would be good if the authors could show the lesion results for all types of connections (I to I, E to E, I to E and E to I).

14)Line 408-409: the authors argued that "it is likely that I → E connections play a significant role in transmitting top-down information from the non-sensory module to the sensory module", but at the same time they said in line 402-403 that "lesioning feedback inhibitory connections had minimal influence on the task performance (Fig. 6e, f)." Aren't these two statements contradictory?

15)Line 405-407: the authors mentioned that "what is even more unexpected is that the top-down information is transmitted to the sensory module via feedback connections and encoded by I → I connections within the sensory module (Fig. 6a)". Because of the lack of control analyses, I think this statement is not well-supported based on the evidence in the current manuscript.

16)Lines 425-427: "this implies that any observed difference in figure versus ground coding within V1 neurons representing these receptive fields would stem from coding dependent on top-down feedback" - could it be due to lateral connections within V1 as well?

17) Lines 439-442: the authors used the VIP to SST connections in the neural dataset as a proxy for the I to I connections in the model. However, there are many other I to I connections in the brain, like PV to PV, SST to PV, and SST to VIP. The authors need to clarify why VIP to SST connections correspond to the I to I connections in their model or at least mention this caveat.

18)Figure 7f: for a better correspondence with the neural data in panel c, it would be good to (1) reverse the color, and (2) plot the same quantity on the y axis (either use decoding accuracy or discriminability).

19)The effect in neural data (Figure 7c) is very small and very transient, compared to the model. Could the authors comment on that?

20)Figure 8: I had a hard time seeing how the analyses on the retro-cue condition fit into the flow of the manuscript. Could the authors motivate a bit more the purpose of looking at retro-cue condition?

21)Methods section, Equation (6): missing a square on the RHS.

22)Could the authors expand a bit more on the CEBRA method? For example, how is it different from doing PCA, if the authors were just using the unsupervised mode in CEBRA?

Decision Letter 2

Christian Schnell, PhD

4 Mar 2026

Dear Dr Rungratsameetaweemana,

Thank you for your patience while we considered your revised manuscript "Disinhibitory signaling enables flexible coding of top-down information" for consideration as a Research Article at PLOS Biology. Your revised study has now been evaluated by the PLOS Biology editors, the Academic Editor and the original reviewers.

In light of the reviews, which you will find at the end of this email, we are pleased to offer you the opportunity to address the remaining points from the reviewers in a revision that we anticipate should not take you very long. We will then assess your revised manuscript and your response to the reviewers' comments with our Academic Editor aiming to avoid further rounds of peer-review, although we might need to consult with the reviewers, depending on the nature of the revisions.

In addition to these revisions, you may need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests shortly. If you do not receive a separate email within a few days, please assume that checks have been completed, and no additional changes are required.

We expect to receive your revised manuscript within 1 month. Please email us (plosbiology@plos.org) if you have any questions or concerns, or would like to request an extension.

At this stage, your manuscript remains formally under active consideration at our journal; please notify us by email if you do not intend to submit a revision so that we withdraw the manuscript.

**IMPORTANT - SUBMITTING YOUR REVISION**

Your revisions should address the specific points made by each reviewer. Please submit the following files along with your revised manuscript:

1. A 'Response to Reviewers' file - this should detail your responses to the editorial requests, present a point-by-point response to all of the reviewers' comments, and indicate the changes made to the manuscript.

*NOTE: In your point-by-point response to the reviewers, please provide the full context of each review. Do not selectively quote paragraphs or sentences to reply to. The entire set of reviewer comments should be present in full and each specific point should be responded to individually.

You should also cite any additional relevant literature that has been published since the original submission and mention any additional citations in your response.

2. In addition to a clean copy of the manuscript, please also upload a 'track-changes' version of your manuscript that specifies the edits made. This should be uploaded as a "Revised Article with Changes Highlighted " file type.

*Resubmission Checklist*

When you are ready to resubmit your revised manuscript, please refer to this resubmission checklist: https://plos.io/Biology_Checklist

To submit a revised version of your manuscript, please go to https://www.editorialmanager.com/pbiology/ and log in as an Author. Click the link labelled 'Submissions Needing Revision' where you will find your submission record.

Please make sure to read the following important policies and guidelines while preparing your revision:

*Published Peer Review*

Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out. Please see here for more details:

https://blogs.plos.org/plos/2019/05/plos-journals-now-open-for-published-peer-review/

*PLOS Data Policy*

Please note that as a condition of publication PLOS' data policy (http://journals.plos.org/plosbiology/s/data-availability) requires that you make available all data used to draw the conclusions arrived at in your manuscript. If you have not already done so, you must include any data used in your manuscript either in appropriate repositories, within the body of the manuscript, or as supporting information (N.B. this includes any numerical values that were used to generate graphs, histograms etc.). For an example see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5

*Blot and Gel Data Policy*

We require the original, uncropped and minimally adjusted images supporting all blot and gel results reported in an article's figures or Supporting Information files. We will require these files before a manuscript can be accepted so please prepare them now, if you have not already uploaded them. Please carefully read our guidelines for how to prepare and upload this data: https://journals.plos.org/plosbiology/s/figures#loc-blot-and-gel-reporting-requirements

*Protocols deposition*

To enhance the reproducibility of your results, we recommend that if applicable you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Thank you again for your submission to our journal. We hope that our editorial process has been constructive thus far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Christian

Christian Schnell, PhD

Senior Editor

PLOS Biology

cschnell@plos.org

----------------------------------------------------------------

REVIEWS:

Reviewer #1: The authors addressed all my questions carefully and extensively. Their paper is much improved and represents a useful contribution to the filed, of impressive depth and thoroughness.

Reviewer #2: The authors addressed my points, which were mostly concerning clarifications and discussion. It seems the authors put in a lot of effort to try addressing all reviewers' concerns.

Reviewer #3: The authors addressed many of my concerns. I believe the manuscript is substantially strengthened. I have some remaining suggestions/questions below:

1.The authors discussed the functional benefits of disinhibition in the discussion section. I feel the discussion is good but still does not get to the core of my question. Of course, in a contextual task there needs to be some top-down input that amplify/stabilize the excitatory population that carries rule information, but why this job is better suited by a disinhibition motif than, say, just excitation? I know there is experimental data that support top-down modulation through disinhibition, but I would really appreciate it if the authors could think a bit more about why it is more advantageous than simply excitation, from a computational/theoretical perspective.

2.The lesion results show the I->I local connections are particularly important for task performance. I think it is still worth trying to explain this phenomenon on a mechanistic level. For example, it would be helpful to look at the connectivity structure between the rule-selective E and I neurons. Are the I->I connections structured (I units more strongly inhibit other I units that prefer the opposite rule)? Are the other connections less structured? As shown the Roach et al paper that the authors cited, there are multiple connectivity motifs that can realize the same circuit function (in this case, selecting one population and suppressing the other). It would really get to the mechanistic level if the authors can show that the circuit connectivity matches the lesion results.

3.Also, from Response Figure 15, lesioning the top-down long-range connections from the non-sensory to sensory module does not seem to affect performance much. Does this mean the top-down connections are not important for this task? This seems counter-intuitive.

4.The authors used the "inverse_transform" function from sklearn to compute the velocity and generate the potential. But mathematically, the inverse transform of PCA is not unique. So, this function must output a special inverse transform. Can the authors explain how the inverse_transform function work?

5.On the line attractor in Figure 5c: I understand that many decision states could be compatible with the task demand. But why these states form a line, rather than scattered around in a less ordered way? What does the location on the line represent? Do they just happen to lie on a line because of the dimensionality reduction method used? Or is it just by chance (is it reproducible across RNNs)?

6.Title of Figure 6a and b seem to have not been corrected.

7.Response Figure 16, second row: it seems the excitatory long-range connections from the sensory to the non-sensory module are also helpful. Could the authors comment on that?

8.I am a bit confused about the mice experiment. Do all then neurons in the recording have the same receptive field, and the image in the receptive was held constant throughout the session? Also, why does the bottom row of Figure 7a represent "control" trials? I thought these trials also contain the same image in the RF and different surroundings, so they can also be included in the decoding analysis.

9.Figure 7f: please change the label of y axis and the caption to "decoding accuracy" as opposed to "discriminability".

10.On the difference between the old and new Figure 7c: what is the difference between the trials that the authors sub-selected and the ones that are left out? It was not too clear from reading the authors' description.

11.Title of Figure 8 reads "Retro-cue signal forces the model to maintain both unattended and attended sensory signals". But from panels d-f, the model also remembers the unattended modality for early and late instruction trials. Is the discriminability maintained for longer for the retro-cue trials? Maybe the authors can plot the diagonal of the matrices versus time and compare between the three trial types.

12.Related, in Response Figure 19, the difference between lesioning I->I and other connections seem to be mainly *after* stimulus presentation. At that time, the stimulus representation is being transformed, and therefore it is expected that the discriminability would go down. So, it seems insufficient to argue that I->I connections are particularly important for maintaining the stimulus. Again, I think it would be useful to look at how the zero-time-lag discriminability (the diagonal values) change over time and across conditions.

Decision Letter 3

Christian Schnell, PhD

30 Apr 2026

Dear Dr Rungratsameetaweemana,

Thank you for your patience while we considered your revised manuscript "Disinhibitory signaling enables flexible coding of top-down information" for publication as a Research Article at PLOS Biology. This revised version of your manuscript has been evaluated by the PLOS Biology editors and the Academic Editor.

Based on our Academic Editor's assessment of your revision, we are likely to accept this manuscript for publication, provided you satisfactorily address the following data and other policy-related requests:

* We would like to suggest a different title to improve its accessibility for our broad audience:

Disinhibitory signaling enables flexible coding of top-down information in mouse visual cortex

* Please add the links to the funding agencies in the Financial Disclosure statement in the manuscript details.

* DATA POLICY:

You may be aware of the PLOS Data Policy, which requires that all data be made available without restriction: http://journals.plos.org/plosbiology/s/data-availability. For more information, please also see this editorial: http://dx.doi.org/10.1371/journal.pbio.1001797

Note that we do not require all raw data. Rather, we ask that all individual quantitative observations that underlie the data summarized in the figures and results of your paper be made available in one of the following forms:

1) Supplementary files (e.g., excel). Please ensure that all data files are uploaded as 'Supporting Information' and are invariably referred to (in the manuscript, figure legends, and the Description field when uploading your files) using the following format verbatim: S1 Data, S2 Data, etc. Multiple panels of a single or even several figures can be included as multiple sheets in one excel file that is saved using exactly the following convention: S1_Data.xlsx (using an underscore).

2) Deposition in a publicly available repository. Please also provide the accession code or a reviewer link so that we may view your data before publication.

Regardless of the method selected, please ensure that you provide the individual numerical values that underlie the summary data displayed in the following figure panels as they are essential for readers to assess your analysis and to reproduce it: 1C, 3AB, 4CDE, 5DEFG, 6CDEF, S2, S6-S13, S15, S16, S18-S21

NOTE: the numerical data provided should include all replicates AND the way in which the plotted mean and errors were derived (it should not present only the mean/average values).

Please also ensure that figure legends in your manuscript include information on where the underlying data can be found, and ensure your supplemental data file/s has a legend.

Please ensure that your Data Statement in the submission system accurately describes where your data can be found.

* CODE POLICY

Per journal policy, if you have generated any custom code during the course of this investigation, please make it available without restrictions. Please ensure that the code is sufficiently well documented and reusable, and that your Data Statement in the Editorial Manager submission system accurately describes where your code can be found. More information on our Code Policy, what and how to share can be found here: https://journals.plos.org/plosbiology/s/code-availability

Please note that we cannot accept sole deposition of code in GitHub, as this could be changed after publication. However, you can archive this version of your publicly available GitHub code to Zenodo. Once you do this, it will generate a DOI number, which you will need to provide in the Data Accessibility Statement (you are welcome to also provide the GitHub access information). See the process for doing this here: https://docs.github.com/en/repositories/archiving-a-github-repository/referencing-and-citing-content

As you address these items, please take this last chance to review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the cover letter that accompanies your revised manuscript.

In addition to these revisions, you may need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests shortly. If you do not receive a separate email within a few days, please assume that checks have been completed, and no additional changes are required.

We expect to receive your revised manuscript within two weeks.

To submit your revision, please go to https://www.editorialmanager.com/pbiology/ and log in as an Author. Click the link labelled 'Submissions Needing Revision' to find your submission record. Your revised submission must include the following:

- a cover letter that should detail your responses to any editorial requests, if applicable, and whether changes have been made to the reference list

- a Response to Reviewers file that provides a detailed response to the reviewers' comments (if applicable, if not applicable please do not delete your existing 'Response to Reviewers' file.)

- a track-changes file indicating any changes that you have made to the manuscript.

NOTE: If Supporting Information files are included with your article, note that these are not copyedited and will be published as they are submitted. Please ensure that these files are legible and of high quality (at least 300 dpi) in an easily accessible file format. For this reason, please be aware that any references listed in an SI file will not be indexed. For more information, see our Supporting Information guidelines:

https://journals.plos.org/plosbiology/s/supporting-information

*Published Peer Review History*

Please note that you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out. Please see here for more details:

https://plos.org/published-peer-review-history/

*Press*

Should you, your institution's press office or the journal office choose to press release your paper, please ensure you have opted out of Early Article Posting on the submission form. We ask that you notify us as soon as possible if you or your institution is planning to press release the article.

*Protocols deposition*

To enhance the reproducibility of your results, we recommend that if applicable you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Please do not hesitate to contact me should you have any questions.

Sincerely,

Christian

Christian Schnell, PhD

Senior Editor

cschnell@plos.org

PLOS Biology

Decision Letter 4

Christian Schnell, PhD

18 May 2026

Dear Dr Rungratsameetaweemana,

Thank you for the submission of your revised Research Article "Disinhibitory signaling enables flexible coding of top-down information in cortical networks" for publication in PLOS Biology. On behalf of my colleagues and the Academic Editor, Adam Kohn, I am pleased to say that we can in principle accept your manuscript for publication, provided you address any remaining formatting and reporting issues. These will be detailed in an email you should receive within 2-3 business days from our colleagues in the journal operations team; no action is required from you until then. Please note that we will not be able to formally accept your manuscript and schedule it for publication until you have completed any requested changes.

While you attend to those requests, please also ensure that all corresponding figure legends in your manuscript include information on where the underlying data can be found, for example: "Source data can be found in Zenodo at 10.5281/zenodo.20148306."

Please take a minute to log into Editorial Manager at http://www.editorialmanager.com/pbiology/, click the "Update My Information" link at the top of the page, and update your user information to ensure an efficient production process.

PRESS

We frequently collaborate with press offices. If your institution or institutions have a press office, please notify them about your upcoming paper at this point, to enable them to help maximize its impact. If the press office is planning to promote your findings, we would be grateful if they could coordinate with biologypress@plos.org. If you have previously opted in to the early version process, we ask that you notify us immediately of any press plans so that we may opt out on your behalf.

We also ask that you take this opportunity to read our Embargo Policy regarding the discussion, promotion and media coverage of work that is yet to be published by PLOS. As your manuscript is not yet published, it is bound by the conditions of our Embargo Policy. Please be aware that this policy is in place both to ensure that any press coverage of your article is fully substantiated and to provide a direct link between such coverage and the published work. For full details of our Embargo Policy, please visit http://www.plos.org/about/media-inquiries/embargo-policy/.

Thank you again for choosing PLOS Biology for publication and supporting Open Access publishing. We look forward to publishing your study.

Sincerely,

Christian

Christian Schnell, PhD

Senior Editor

PLOS Biology

cschnell@plos.org

Associated Data

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

    Supplementary Materials

    S1 Fig. Example single-unit activity and output dynamics from a trained one-modality RNN.

    a. Neuron-by-time heatmaps showing activity of all 1,000 units from a representative single-module, one-modality RNN during Pro-DMS (left) and Anti-DMS (right) trials. For visualization purposes only, each neuron’s activity was z-scored across time. White vertical lines demarcate key task epochs, including instruction, stimulus, delay, and response periods. b. Corresponding RNN output signals for Pro-DMS (teal) and Anti-DMS (purple) trials. Gray shaded regions indicate the presentation of stimulus 1 (Stim 1) and stimulus 2 (Stim 2). The output reflects the learned stimulus–response mapping conditioned on the task cue. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s001.eps (3.1MB, eps)
    S2 Fig. Quantification of latent trajectory separation for attended versus unattended modalities.

    Boxplots show the Euclidean distance between CEBRA latent trajectories corresponding to opposite first-stimulus identities, computed during the stimulus 1 epoch. Distances were calculated separately for attended and unattended modalities by randomly subsampling latent trajectories across task conditions and repeating the procedure 100 times. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s002.eps (1.3MB, eps)
    S3 Fig. Temporal discriminability for the first stimulus identity when the task signal was fixed to pro-DMS.

    For the attended modality (a, b), the identity of the first stimulus was more robustly encoded throughout the trial duration than in the unattended modality (c, d). Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s003.eps (3.1MB, eps)
    S4 Fig. Temporal encoding of top-down signals during DMS tasks.

    Cross-temporal decodability of task and attention signals is shown as the average generalization accuracy for each pair of training/testing time windows. Highlighted boundaries indicate significant decoding accuracy, P<1e−20, binomial test, Bonferroni corrected. White lines denote the reference event of each trial period (task and attention cues, stimulus onsets, response). a. One-modality DMS, task signal, early instruction. b. Same, for late instruction. c. Two-modality DMS, task signal, early instruction. d. Same, for late instruction. e. Two-modality DMS, attention signal, early instruction f. Same, for late instruction. g. Two-modality DMS, attended modality signal, early instruction, attended modality. h. Same, for unattended modality. i. One-modality DMS, stimulus identity. j. Two-modality DMS, stimulus identity, stimulus modality 1. k. Same, for stimulus modality 2. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s004.eps (4.5MB, eps)
    S5 Fig. Inhibitory units robustly maintain top-down signals.

    a. SVM decodability of the attention signal from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. b. SVM decodability of the attended first stimulus identity from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. c. SVM decodability of the unattended first stimulus identity from inhibitory (blue) and excitatory (red) units from the two-modality RNNs. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided two-sample KS test). Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s005.eps (2.3MB, eps)
    S6 Fig. Structured connectivity across rule-selective populations.

    Average synaptic weights (magnitude) between rule-selective populations across all trained one-module, one-modality RNNs (n = 20), separated into within-selectivity (“Same”; anti → anti and pro → pro) and across-selectivity (“Cross”; anti → pro and pro → anti) connections. Panels show results for inhibitory-to-inhibitory (I → I), excitatory-to-inhibitory (E → I), inhibitory-to-excitatory (I → E), and excitatory-to-excitatory (E → E) connections. Each gray line represents an individual network, and black markers denote mean ± s.e.m. ***P < 0.001 by paired Wilcoxon signed-rank test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s006.eps (1.3MB, eps)
    S7 Fig. Quantification of outgoing synaptic connections in single-module one-modality RNNs.

    Boxplots show the total number of outgoing synaptic connections for task-selective excitatory and inhibitory neuron populations across 20 single-module RNNs trained to perform the one-modality DMS task. a. Outgoing connections from pro-DMS-selective populations; b. Outgoing connections from anti-DMS-selective populations. For each condition, outgoing connections are grouped by presynaptic and postsynaptic cell type (I→I, I→E, E→I, E→E). Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. Statistical comparisons were performed using a Kruskal–Wallis test followed by Dunn’s post hoc multiple-comparisons test. Significance levels are indicated as **P < 0.01 and ***P < 0.001. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s007.eps (1.6MB, eps)
    S8 Fig. Inhibitory-to-inhibitory connections primarily encode task and attention cue signals.

    a. Performance of all 20 RNNs trained to perform the two-modality DMS when task-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when modality 2 was attended. b. Performance of all 20 RNNs trained to perform the two-modality DMS when modality-specific I→I (top) or I→E (bottom) synaptic weights were reduced by 50% when the task signal was fixed to anti-DMS. Ia, inhibitory units preferring anti-DMS cue; Ip, inhibitory units preferring pro-DMS cue; Ea, excitatory units preferring anti-DMS cue; Ep, excitatory units preferring pro-DMS cue; Im1, inhibitory units preferring modality-1 attention cue; Im2, inhibitory units preferring modality-2 attention cue; Em1, excitatory units preferring modality-1 attention cue; Em2, excitatory units preferring modality-2 attention cue. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s008.eps (2.2MB, eps)
    S9 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in one-modality RNNs.

    Task performance following selective lesioning of synaptic connections based on presynaptic/postsynaptic cell type and task selectivity. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. **P < 0.01 and ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s009.eps (2.1MB, eps)
    S10 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs when modality 1 is attended.

    Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the attention cue fixed to modality 1. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s010.eps (2.1MB, eps)
    S11 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs when modality 2 is attended.

    Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the attention cue fixed to modality 2. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s011.eps (2.2MB, eps)
    S12 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs with the task signal fixed to the pro-DMS condition.

    Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the task cue fixed to the pro-DMS condition and performance compared between trials in which modality 1 or modality 2 was attended. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s012.eps (1.6MB, eps)
    S13 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections in two-modality RNNs with the task signal fixed to the anti-DMS condition.

    Task performance following selective lesioning of synaptic connections in two-modality RNNs, with the task cue fixed to the anti-DMS condition and performance compared between trials in which modality 1 or modality 2 was attended. Figure organization follows the same layout and conventions as S9 Fig. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05, **P < 0.01, ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s013.eps (1.6MB, eps)
    S14 Fig. Example single-unit activity and output dynamics from a trained two-module, one-modality RNN.

    a. Neuron-by-time heatmaps showing activity of all 1,000 units from a representative two-module, one-modality RNN during Pro-DMS early (left) and late (right) instruction trials. For visualization purposes only, each neuron’s activity was z-scored across time. White vertical lines demarcate key task epochs, including instruction, stimulus, delay, and response periods. b. Corresponding RNN output signals for Pro-DMS early (red) and late (blue) instruction trials. Gray shaded regions indicate the presentation of stimulus 1 (Stim 1) and stimulus 2 (Stim 2). The output reflects the learned stimulus–response mapping conditioned on the task cue. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s014.eps (2.9MB, eps)
    S15 Fig. Training two-module RNNs takes longer for the one-modality DMS compared to the one-module RNNs.

    a. Comparison of the number of training trials required for training between the one-module and two-module RNNs, with 20 RNNs trained for each case. b. Both one-module and two-module RNNs achieved high accuracy in performing the one-modality DMS task (mean±stdev; 97.7±1.3% for the one-module model; 97.6±1.2% for the two-module model). Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s015.eps (1.7MB, eps)
    S16 Fig. Comparison between I→E and I→I connection strength in two-module RNNs.

    I→E (a) and I→I (b) connections were significantly stronger within the non-sensory module than the sensory module. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s016.eps (1.7MB, eps)
    S17 Fig. Decoding task signals in nonsensory module of two-module RNNs.

    a. Average decoding accuracy in early instruction trials for pro- versus anti-DMS signal in the nonsensory module of two-module networks, including either excitatory (red) or inhibitory (blue) units. Shaded areas indicate standard error of the mean. Black bars indicate significant differences between excitatory and inhibitory units (P < 0.05, two-sided KS test). b. Same, for late instruction trials. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s017.eps (1.6MB, eps)
    S18 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections within the sensory module in two-module RNNs.

    Task performance following selective lesioning of synaptic connections within the sensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05 and **P < 0.01 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s018.eps (2.1MB, eps)
    S19 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections from non-sensory module to sensory module in two-module RNNs.

    Task performance following selective lesioning of synaptic connections from the nonsensory module to the sensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. *P < 0.05 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s019.eps (2.1MB, eps)
    S20 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections from sensory module to non-sensory module in two-module RNNs.

    Task performance following selective lesioning of synaptic connections from the sensory module to the nonsensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. **P < 0.01 and ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s020.eps (2.1MB, eps)
    S21 Fig. Perturbational analysis of excitatory and inhibitory synaptic connections within non-sensory module in two-module RNNs.

    Task performance following selective lesioning of synaptic connections within the nonsensory module of two-module RNNs trained to perform the one-modality task. Rows correspond to different connection classes (E→E, E→I, I→E, I→I), and columns show lesions applied to selectivity-matched or crossed populations (anti versus pro). Lesions were implemented by reducing the corresponding synaptic weights by 50%, and performance is shown separately for anti and pro trials. Boxplot: central lines, median; bottom and top edges, lower and upper quartiles; whiskers, 1.5 × interquartile range; outliers are not plotted. ***P < 0.001 by two-sided Wilcoxon rank-sum test. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    pbio.3003831.s021.eps (2.2MB, eps)
    S22 Fig. Effects of synaptic lesioning on unattended stimulus representations in two-module RNNs.

    Average cross-temporal discriminability of the first stimulus identity of the unattended modality in two-module RNNs trained to perform the two-modality DMS task. Discriminability matrices are shown for trials in which the attention cue was presented early (left), late (middle), or as a retro-cue (right). Rows correspond to selective lesioning (50% reduction in synaptic weights) of different connection types: a. Inhibitory-to-inhibitory (I→I). b. Inhibitory-to-excitatory (I→E). c. Excitatory-to-inhibitory (E→I). d. Excitatory-to-excitatory (E→E) connections. White lines denote task epoch boundaries. Results are averaged across 20 trained RNNs. Source data can be found in Zenodo at https://doi.org/10.5281/zenodo.20148306.

    (EPS)

    Attachment

    Submitted filename: 25_Aquino_Kim_Response_Letter_R1.pdf

    pbio.3003831.s025.pdf (4.1MB, pdf)
    Attachment

    Submitted filename: 25_Aquino_Kim_Response_Letter_R2.pdf

    pbio.3003831.s026.pdf (147KB, pdf)

    Data Availability Statement

    The code for the analyses performed in this study is available in Zenodo at https://doi.org/10.5281/zenodo.20148662 (Shared code for Disinhibitory signaling enables flexible coding of top-down information in cortical networks). The trained RNN models used in the study, as well as the analysis data, are available in Zenodo at https://doi.org/10.5281/zenodo.20148306 (Shared data for Disinhibitory signaling enables flexible coding of top-down information in cortical networks).


    Articles from PLOS Biology are provided here courtesy of PLOS

    RESOURCES