Abstract
Brain state modulates sensory processing across visual cortex, yet how it relates to the organization of functional circuitry at the level of individual neurons and cell types remains largely unknown. To address this, we constructed one of the largest microscale directed functional circuit maps in mouse visual cortex from calcium imaging of more than 57,000 neurons across four visual areas and five cortical layers. Using a time-aware causal inference framework, we found that intra-areal connections dominate across arousal states, consistent with experimental findings on the local bias of cortical anatomy. Among intra-areal connections, anterolateral area (AL) had the highest density, and among inter-areal connections, the AL↔rostrolateral area (RL) axis formed the strongest pathway. Laminar circuit organization was dominated by layer 6 recurrence within-layer, while the most prominent between-layer pathway was layer 5-to-layer 6 in low arousal and layer 4-to-layer 5 in high arousal. Spatial extent was selectively greater for excitatory-to-inhibitory connections in high arousal, but not for excitatory-to-excitatory connections. Across 6,597 electron-microscopy reconstructions of neuron pairs, synapse count predicted functional connection strength in both arousal states, but structure-function coupling was weaker in high arousal. In stimulus-driven response prediction, neuron pairs with stronger functional connections exhibited more similar predictive performance in both states, with performance varying by layer and cell type. Overall, our findings map, at single-neuron resolution, the multi-scale organization of directed functional circuitry in mouse visual cortex across brain states.
1. Introduction
Microscale functional circuitry, defined here as directed, statistically causal functional connections between individual neurons inferred from their activity, provides a window into the brain’s circuit-level organization [1, 2]. Simultaneous structural and functional measurements have shown that functional circuitry is related to the anatomical wiring [3], however, the correlations are weak. More importantly, there is a large body of theoretical and computational studies demonstrating that functional circuitry captures the dynamic routing of information through the network [4-8]. Traditional functional connectivity methods rely on undirected associations and cannot capture directional interactions [9]. Recent methods have addressed this by applying statistical causal inference frameworks to neural activity recordings, enabling the estimation of directed functional connections and advancing the field from associative connectivity toward microscale functional circuitry [9-11]. Yet despite this progress, it remains unknown how such directed functional circuitry is organized across different brain states, particularly at the resolution of individual neurons.
Arousal state is a particularly important dimension along which to examine this question. Neural responses during sensory processing, attention, and behavioral tasks are known to vary with arousal, ranging from drowsiness to alertness [12-14]. Prior studies that examined functional connectivity across brain states relied on local field potential (LFP) array signals [15] or combined multi-unit spiking and LFP recordings [16]. While these revealed state-dependent shifts in population-level coordination, neither approach could resolve how circuit organization changes at the level of individual neurons. Therefore, how directed functional circuitry is shaped across arousal states, at the level of individual neurons, cell types, laminar origin, and multi-area hierarchy, remains an open question.
To answer these questions, we leveraged the MICrONS dataset [3], a unique resource combining large-scale calcium imaging of 146,388 neurons, of which 15,434 were coregistered with a dense electron microscopy reconstruction. This allowed us to map the functional circuitry of the mouse visual cortex with single-neuron resolution, estimating state-dependent connections across four distinct visual areas (V1, LM, AL, RL) and linking them to their anatomical positions, structural scaffold, and cell types [17]. To infer directed functional connections from the neural activity recordings, we employed the Time-Aware PC (TPC) algorithm [10], a causal discovery method that uses conditional independence tests on time-lagged neural activity. We mapped the directed statistically-causal functional circuitry (CFC) within each arousal state and identified state-specific differences in spatial extent, layer composition, and structure-function coupling.
We found that intra-areal connections were denser and stronger than inter-areal connections in both arousal states, with area AL showing the highest within-area density and the AL↔RL axis as the prominent inter-area pathway. Laminar organization within areas revealed state-specific motifs. Layer 6 (L6) recurrence was the dominant within-layer pathway in both states. The strongest between-layer pathway was layer 5 (L5)→L6 in low arousal and layer 4 (L4)→L5 in high arousal. Spatial extent showed cell-type selective expansion in high arousal. Excitatory-to-inhibitory () connections extended further with inter-neuron distance while excitatory-to-excitatory connections did not. Structurally, synapse count predicted functional weight in both states, but this structure-function coupling was weaker in high arousal. Neuron pairs with stronger structural support showed smaller state-dependent changes. For stimulus-driven response prediction, neuron pairs with stronger functional connections exhibited more similar predictive performance in both states, with performance varying by cortical layer and cell type. Additionally, in high arousal, predictive correlation was redistributed: lower-performing neurons improved while higher-performing ones declined.
2. Results
2.1. Intra-areal connections dominate a heterogeneous functional circuit
The architecture of cortical functional circuitry, which pathways are active and how strongly, shapes how sensory information is routed within and across visual areas [17, 18]. Structural anatomy strongly predicts local dominance: most cortical synapses are intrinsic, and long-range projections represent a minority of total synaptic input [19]. Whether this local bias is preserved in directed functional circuitry, and how it is structured across areas and arousal states, is less well characterized at single-neuron resolution. We used the MICrONS dataset to establish the baseline architecture of directed functional circuitry in each arousal state, and to ask how this architecture varies by area and whether it is consistent across arousal states. Arousal state was continuously monitored via pupil area [12, 13, 20] (Figure 1A,B). Trials were classified as High Arousal if ≥ 80% of the trial duration had pupil area above the session-specific median, and as Low Arousal if ≥ 80% was below the median; trials not meeting this criterion were excluded.
Figure 1: Large-scale multimodal recording, arousal-state definition, and directed functional circuit inference in mouse visual cortex.
(A) Data source: The MICrONS dataset combines large-scale calcium imaging with dense EM reconstruction [3]. (B) Arousal state windows defined by median split of pupil area (computed per session and scan) for more than 80% of trial duration [12, 13]. (C) The TPC algorithm infers directed functional connections with statistical causal guarantees [10]. (D) Statistically-causal functional circuitry (CFC) adjacency matrices and area-level graph for a representative trial, in Low and High arousal states. (E) Within-area functional connections are denser and stronger than between-area connections in both arousal states (bootstrap mean ± 95% CI, n = 101 fields, 5000 iterations). Both edge density and edge strength are shown. Asterisks mark bootstrap significance (two-sided, FDR-corrected): * p < 0.05, ** p < 0.01, *** p < 0.001.
To infer directed functional circuitry from the calcium traces, we employed the Time-Aware PC (TPC) algorithm [10], a causal discovery method for time-series data that extends the PC algorithm with time-lagged conditional independence tests (Figure 1C); full algorithmic details, assumptions, and implementation parameters are given in Methods. We chose TPC because it has been shown to significantly outperform standard correlation and Granger causality in reconstructing neural circuits [10, 11, 21]. Therefore, the inferred functional circuitry could serve as a more reliable recommendation system generating robust hypotheses for future experiments.
The calcium imaging recordings cover 101 imaging fields (13 session-scans) comprising 146,388 units. Units showing detectable activity events in fewer than 12% of frames during all stimulus types were not included in TPC estimation, as silent neurons contribute no detectable functional connections; this yielded 57,686 active units across the imaging fields. Field-level CFC estimates were then compared between arousal states.
TPC was run on each trial independently, yielding a per-trial directed functional connectivity matrix over all neuron pairs within each imaging field (Figure 1D). We summarized this matrix at the area level by computing edge density for each directed area pair: the fraction of all directed neuron pairs within that area pair for which TPC inferred a nonzero connection (Figure 1D-E). To aggregate per-trial estimates robustly across arousal states, we used a paired bootstrap: for each of 5000 iterations, one trial was sampled randomly from the low-arousal pool and one from the high-arousal pool for each field, and metrics were averaged across fields (n = 101 fields). This pairing avoids averaging over unequal per-state trial counts and provides bootstrap mean ± 95% CI throughout.
Consistent with the local bias of cortical anatomy, intra-areal functional connections were denser and stronger than inter-areal connections in both arousal states (Figure 1E). In high arousal, within-area edge density (bootstrap mean = 0.014, 95% CI: [0.012, 0.016]) substantially exceeds between-area density (mean = 0.006; bootstrap p < 0.001). The same pattern holds in low arousal (within: 0.013, between: 0.004; p < 0.001). Within-area edge strength likewise exceeds between-area strength in both states (low: 0.313 vs 0.225; high: 0.283 vs 0.217; both p < 0.001). These values characterize the organization of each arousal state independently. Between-state differences in overall edge density and strength were not statistically significant (Supplementary Table 1).
2.1.1. Functional circuit organization varies across visual areas
The mouse visual cortex comprises multiple areas (V1, LM, AL, RL) with distinct functional specializations and hierarchical positions [17, 18]. We characterized the organization of functional circuitry across all 16 directed area pairs separately for each arousal state, revealing heterogeneous structure within the intra-areal dominant baseline (Figure 2A).
Figure 2: Areal functional circuitry is heterogeneous across directed pairs in both arousal states.
(A) Heterogeneous functional circuitry across areas: edge density and edge strength for all 16 directed area pairs, shown separately for Low arousal (top row) and High arousal (bottom row). Bootstrap mean ± 95% CI, n = 101 fields. (B) Functional circuitry robustness across imaging fields: Wilcoxon effect size () per directed area pair, measuring the consistency of within-field functional circuitry across imaging fields. Higher indicates greater consistency across fields.
In both arousal states, functional circuitry is structured: within-area connections are denser and stronger than between-area connections (bootstrap p < 0.001; Figure 2A). Within-area density varies substantially across areas: AL exhibits the highest within-area density in both states (low: 0.0235, high: 0.0271), while V1 is the lowest (low: 0.0049, high: 0.0053), with LM and RL intermediate (~0.011–0.013). Between-area connections are markedly sparser (0.002–0.021), with the AL↔RL axis forming the densest inter-area pathway in both states (AL→RL: low = 0.014, high = 0.021; RL→AL: low = 0.011, high = 0.017), substantially above all other between-area pairs.
Within-area edge strength (mean ∣weight∣ over nonzero edges) also exceeds between-area strength in both states. The AL↔RL pathway has a relatively strong between-area weights (RL→AL: low = 0.368, high = 0.403), while RL→LM is consistently the weakest between-area pathway (low = 0.089, high = 0.093). These patterns reveal that functional circuitry in both arousal states is intra-areal dominant, with a hierarchically structured inter-area backbone dominated by specific pathways.
Among within-area pairs, AL exhibits the highest edge density in both arousal states, and the AL↔RL pathway is the dominant inter-area connection in both states. Within-area density in AL is approximately five-fold higher than in V1 (0.0235 vs. 0.0049 in low arousal), consistent with a higher-order area with stronger local recurrence [22-24].
Robustness of functional circuitry across imaging fields, measured as the Wilcoxon effect size () per area pair (Figure 2B), is consistently high across all within-area pairs (Wilcoxon range 0.839–0.870), and the AL↔RL pathway exhibits similarly high robustness, indicating that both local and this dominant inter-area pathway are stable across imaging fields.
2.2. Functional circuitry differs across arousal states by cell type, layer, and spatial extent
Functional circuitry in cortex is organized along multiple dimensions: cell type, laminar position, and spatial extent of interactions [17,25,26]. Having characterized areal organization in each arousal state, we next asked how cell type and layer structure functional circuitry, and whether the spatial extent of functional connections differs between states.
2.2.1. Excitatory subtypes display distinct functional circuit motifs in each arousal state
Excitatory neurons in visual cortex comprise molecularly and morphologically distinct subtypes across layers, each with characteristic projection targets and functional roles [17]. We constructed aggregate cell-type functional circuitry networks separately for each arousal state using a rigorous bootstrap approach (n = 43 fields with EM coregistration, 5000 iterations; Methods) and examined the organization of cell-type functional circuitry in each state (Figure 3A).
Figure 3: Cell-type, layer-specific, and spatial organization of functional circuitry.
(A) Excitatory cell-type functional circuitry networks for low (left) and high (right) arousal. Bootstrap mean, n = 43 fields with EM coregistration, 5000 iterations. (B) Within- and between-layer edge density and strength per arousal state, showing layer-specific heterogeneity. (C) Functional circuitry change (high – low) vs. inter-neuron distance, showing distance-dependent spatial expansion (bootstrap mean Spearman , p-value). (D) Cell-type specificity of spatial expansion. E→E connections (left) exhibit no significant distance dependence (bootstrap mean Spearman , FDR p = 0.884). E→I connections (right) had a significant positive correlation with distance (bootstrap mean Spearman , 95% CI [0.206, 0.850], FDR p < 0.001). Spatial expansion is specific to excitatory-to-inhibitory functional connections.
Each arousal state is characterized by a different dominant circuit motif. The two states differ in circuit topology, not merely in the magnitude of the same connections.
In low arousal, the dominant functional circuit motif is deep-layer recurrence: the strongest functional link is L6tall-a→L6short-b (bootstrap mean normalized weight 0.235), followed by the reciprocal L6short-b→L6tall-a (0.141). L5→L6 projections (e.g., L5ET→L6short-a, mean 0.013) are present but substantially weaker than the dominant L6 recurrence. Cell-type identities follow the transcriptomic taxonomy of mouse visual cortex [27-29]. This architecture suggests that in low arousal, layer 6 sustains the dominant recurrent functional dynamics, with L5-to-L6 feedforward contributions.
In high arousal, the dominant functional circuit motif centers on L6short-a: the strongest functional links are L6short-a→L6tall-a (0.079) and L6short-a→L5ET (0.030), with L5a→L5b connections (mean 0.003) present at substantially lower weights. This architecture implicates L6short-a as the key hub, with projections targeting both deep-layer recurrent partners and corticospinal/corticotectal output neurons (L5ET).
These patterns are descriptive, from the bootstrap mean network without formal edge-level statistical tests. Layer-level corroboration is provided by the statistical analysis in Section 2.2.2. The per-state graphs reveal distinct functional architectures across states rather than a simple scaling of connectivity. Individual fields contain too few neurons of each specific excitatory subtype to support reliable per-field estimates. Formal hypothesis testing of subtype-pair differences is therefore not possible; these patterns remain hypothesis-generating.
2.2.2. Layer 6 hosts the densest functional connections
Cortical layers differ in their connectivity patterns and computational roles: layer 4 receives thalamic input, layers 2/3 perform local and inter-areal integration, layer 5 provides cortical output, and layer 6 maintains corticothalamic feedback pro jections [30-32]. We characterized the layer organization of functional circuitry across excitatory subtypes in each arousal state using the per-state bootstrap (Figure 3B-D).
Within each arousal state, layer 6 neurons sustain by far the strongest within-layer functional connections. In the bootstrap-mean cell-type network (Figure 3A), the mean within-L6 functional connection weight in low arousal (0.065) exceeds that of L5 (0.0006), L4 (0.0004), and L2/3 (0.0003) by approximately two orders of magnitude; in high arousal, within-L6 weight (0.013) remains the dominant within-layer signal. Between-layer connections are overall much weaker than within-L6. In low arousal, the L5→L6 pathway is the strongest between-layer route (mean 0.0015). In high arousal, the most prominent between-layer connections are L4→L5 (mean 0.0005).
2.2.3. Spatial extent of functional circuitry is greater in high than low arousal
Functional circuitry in cortex is distance-dependent, with nearby neurons sharing more functional interactions than distant ones [1,2]. We found that spatial extent of functional circuitry is expanded in high arousal: the change in connectivity strength was significantly positively correlated with inter-neuron distance (bootstrap mean Spearman , p = 0.008, one-sided bootstrap), meaning long-range functional connections are preferentially enhanced in high arousal relative to short-range ones. The absolute changes are small in magnitude (on the order of 10−3) but consistent across distance bins. This pattern is consistent with enhanced long-range integration alongside preserved local precision (Figure 3C).
This aggregate distance-dependent expansion is, however, not uniform across connection types, as we elaborate next.
2.2.4. Greater spatial extent in high arousal is specific to excitatory-to-inhibitory functional connections
Neuromodulatory systems associated with arousal act preferentially on specific cell types, particularly through disinhibitory circuits involving excitatory-to-inhibitory connections [25, 26, 33]. To identify whether specific functional connection types account for the spatial expansion, we analyzed distance-dependent connectivity changes separately for different cell-type connection pairs. The analysis included 312,970 E→E, 1,467 E→I, 1,443 I→E, and 60 I→I functional connections. I→E functional connections showed no significant distance dependence (not shown). Excitatory-to-Excitatory (E→E) functional connections showed essentially no distance dependence (bootstrap mean Spearman , FDR-corrected p = 0.884, not significant). In contrast, Excitatory-to-Inhibitory (E→I) functional connections showed a statistically significant positive correlation with distance (bootstrap mean Spearman , 95% CI [0.206, 0.850], FDR-corrected p < 0.001), despite the much smaller number of E→I pairs relative to E→E. Thus, within the limits of our data, the distance-dependent expansion appears to be specific to E→I functional connections and subtle in magnitude rather than a large, visually dramatic effect (Figure 3D). The small number of inhibitory neurons (105 of 7,815, 1.3%) and correspondingly sparse I→I functional connections (60 total) precluded a meaningful analysis of inhibitory spatial circuitry patterns.
2.3. Structure-function coupling is weaker in high than low arousal
Having characterized the within-state architecture of functional circuitry at the area, cell-type, and spatial level, we next ask how the two states relate to the underlying anatomical scaffold and to sensory encoding quality.
Electron microscopy (EM) provides synapse-resolution structural connectivity maps [1], enabling a direct test of whether state-dependent functional changes are constrained by anatomical wiring. EM reconstruction is sparse, covering n = 43 fields and n = 6,597 connection-level observations with structural data (mean 1,176 EM-reconstructed synapses per field, range 18–3,365; pooled across fields; see Methods). We applied two complementary approaches: field-level Spearman correlations and a connection-level mixed-effects model. At the field level, synapse count positively predicted TPC-inferred functional weight in both arousal states (mean Spearman in low, in high arousal; one-sample Wilcoxon against zero, n = 43 fields; FDR-corrected p = 3.41 × 10−13 and p = 2.39 × 10−12), with the association present in essentially every field. Pairs for which TPC inferred no direct edge were assigned functional weight zero. This reflects a genuine absence of a detectable functional connection, not missing data. The field-level Spearman correlation therefore estimates the degree to which synapse count predicts functional weight within the EM-coregistered subset of synaptically connected pairs (n = 6,597). This structure-function coupling was weaker during high arousal, and synapse count was negatively associated with arousal-dependent functional changes (mean Spearman , FDR-corrected p = 1.6 × 10−3), indicating that pairs with stronger structural support exhibit smaller state-dependent change (Figure 4A).
Figure 4: Structure-function relationships and state-dependent deviation from anatomy.
(A) Field-level Spearman correlations between EM synapse count and TPC functional weight (undetected pairs set to zero) across n = 43 fields. Synapse count positively predicts TPC-inferred functional weight in both arousal states; synapse count is negatively associated with arousal-dependent functional change (). Significance assessed by one-sample Wilcoxon signed-rank tests (n = 43 field-level correlations vs. zero), with FDR correction across the three tests. Asterisks mark FDR-corrected significance (key as in Figure 1). (B) Confirmatory connection-level mixed-effects models (n = 6,597 SC-positive observations across 43 fields; field as random effect) exhibit a positive association between synapse count and functional weight in both states, weaker in high than low arousal (negative interaction), and a negative association between synapse count and . Asterisks mark FDR-corrected significance for model coefficients.
The connection-level analysis fitted the model:
| (1) |
where state = 0 (low) or 1 (high arousal) and is a random field effect. Synapse count showed a significant positive association with TPC functional weight in both states: the structural coefficient at baseline (low arousal) was , and the effective slope in high arousal () was 0.0054. The interaction (p = 1.20 × 10−17) was significantly negative, confirming that structure-function coupling is weaker in high arousal and that functional circuitry deviates further from the structural scaffold in high arousal (Figure 4B, left).
Equivalently, fitting a separate model with directly as the outcome yields the same relationship:
| (2) |
yielding (p = 1.20 × 10−17), indicating that neuron pairs with more structural synapses exhibit smaller functional changes (Figure 4B, right). Strong structural connections have smaller state-dependent changes, while weaker structural connections have larger changes. Both field-level and connection-level analyses point to the same conclusion: structure provides the scaffold for functional circuitry, but arousal-dependent changes are larger at neuron pairs with fewer EM-reconstructed synapses. These results remained significant after including inter-neuron distance, brain area, and cell type as covariates (Supplementary Table 5).
2.4. Stimulus-driven predictive correlation covaries with functional circuitry strength
A key question in systems neuroscience is whether circuit-level organization is associated with measurable difference in the brain’s ability to represent sensory stimuli [34]. To address this, we computed predictive correlation (how well a stimulus-driven model predicts each neuron’s response) as a proxy for sensory encoding quality [35], separately for each arousal state. We used the winning architecture from the Sensorium 2023 NeurIPS competition [36], trained on MICrONS data with 7-fold cross-validation and evaluated on held-out folds (Figure 5A; see Methods). Arousal was not a training target, so state differences in predictive correlation are not an artifact of the training procedure. All findings were replicated on an independent held-out test set (n = 752 trials). The analysis covers 119,913 units across 13 session-scans.
Figure 5: Neural sensory-response predictive performance varies with functional circuit organization and arousal state.
(A) Schematic of the neural encoding model used to compute predictive correlation. (B) Functional circuitry weight correlates with encoding similarity: bootstrap mean Spearman correlation between TPC weight and predictive correlation profile similarity, per directed area pair and arousal state (mean ± 95% CI). (C) Predictive correlation by cortical layer and cell type across arousal states; asterisks indicate FDR-corrected pairwise comparisons (Supplementary Table 4). (D) Scatter of low vs. high arousal predictive correlation across neurons (n = 119,913); linear fit shown. (E) Mean predictive correlation by low-arousal performance bin across arousal states. (F) Change in predictive correlation (high – low) by low-arousal performance bin, showing redistribution from high- to low-performing neurons.
Neurons with stronger functional connections exhibit more correlated predictive performance across trials: TPC functional circuitry weight was positively correlated with predictive correlation profile similarity (the across-trial Spearman correlation between source and target neurons’ predictive correlation profiles) in both arousal states (Figure 5B). This relationship was significant for all within-area pairs and several between-area pairs (Wilcoxon one-sample vs. 0, FDR-corrected).
Predictive correlation varied by cortical layer and cell type in both arousal states (Figure 5C). Among layers, L4 showed the highest mean predictive correlation in both low arousal (mean = 0.304, 95% CI [0.281, 0.327]) and high arousal (mean = 0.264, 95% CI [0.204, 0.325]), significantly exceeding L2/3 in both states (Wilcoxon, FDR-corrected: p < 0.01). Among cell types, 5P-ET showed the highest predictive correlation in both states (low: mean = 0.306; high: mean = 0.285), while L6 excitatory subtypes showed the lowest (6P-IT low: 0.179; 6P-CT low: 0.209). More cell-type pairs were significantly different in high arousal than in low arousal (FDR-corrected; Supplementary Table 4). Brain areas did not differ significantly in predictive correlation in either state.
The scatter of low versus high arousal predictive correlation across all 119,913 neurons (Figure 5D) reveals systematic redistribution rather than uniform change. The population mean showed a net decrease (, p < 0.001, paired t-test, high – low), but this average masks substantial heterogeneity. When neurons were stratified by their low-arousal predictive correlation, a clear gradient emerged: low-performing neurons improved while high-performing neurons declined (Figure 5E,F). Neurons in the lowest performance bin (correlation < 0.1) showed a mean improvement of (p < 0.001); neurons in the highest performance bin (correlation > 0.4) showed a mean decrease of (p < 0.001). At the individual-neuron level, the correlation between low-arousal predictive correlation and the arousal-associated change was (p < 0.001; 119,913 units). A permutation test confirmed the monotonic gradient (p = 0.019). To verify the gradient is not an artifact of regression to the mean, we performed split-half cross-validation: bin assignment used one half of low-arousal trials and the gradient was evaluated on held-out trials. The gradient was fully preserved (Spearman , p = 0.019). All bins remained significant after FDR correction. This gradient held consistently across all visual areas (V1: , LM: , AL: , RL: ; all p < 0.001).
Neurons with high, low, or changing predictive correlation in high arousal were distributed broadly across the imaged cortical volume rather than clustered in specific subregions (Supplementary Figure S1). We also quantified the correlation of predictive performance (the Pearson between low- and high-arousal predictive correlations across neurons), which measures how stably neurons maintain their relative predictability across arousal states. This varied by area, layer, and cell type (Supplementary Figure S2; full pairwise statistics in Supplementary Table 4), and was highest in LM among areas, L6 among layers, and L2b among cell types.
3. Discussion
This study characterizes microscale functional circuitry in mouse visual cortex across arousal states at single-neuron resolution. The characterization spans area-level topology, cell-type and laminar motifs, spatial extent, structure-function coupling, and sensory encoding.
3.1. Intra-areal dominance and hierarchical asymmetry across visual areas
The finding that within-area connections dominate functional circuitry in both arousal states is consistent with the cortical column as a fundamental unit of information processing [17, 37]. Dense recurrent functional connectivity within areas supports local computation. Sparse between-area functional connections carry the output of this local processing across the visual hierarchy [18, 38]. The observation that AL exhibits the highest within-area connection density in both states may reflect its role as a higher-order area specialized for motion processing with stronger local recurrence [22, 23]. All within-area pairs have consistently high cross-field robustness (Wilcoxon range 0.839–0.870). The AL↔RL pathway exhibits similarly high robustness. The dominance of the AL↔RL inter-area axis is consistent with the lateral, non-hierarchical connectivity between AL and RL identified in anatomical studies [39]. Unlike feedforward V1→LM projections, the AL↔RL connection links areas at similar hierarchical levels. This is consistent with lateral integration within the dorsal motion-processing stream rather than hierarchical feedforward transmission.
3.2. L6 recurrence and L5ET output as state-dependent functional circuit motifs
L6 within-layer functional connection strength exceeds that of all other layers by approximately 100-fold. This indicates that L6 is the primary substrate for within-area functional recurrence. This likely reflects L6 corticocortical neurons, which receive approximately 39% of presynaptic inputs from within L6 [40]. This circuit-level finding is compatible with single-neuron studies showing that arousal-related gain modulation is weakest in L5/6 [41]. Those results describe firing rate changes between states. The L6 recurrence finding describes connection structure within each arousal state. In high arousal, L6→L5 output pathways dominate in place of L6 recurrence, with E/I balance implications. Feedforward-like projections from deep layers to L5 may recruit stronger PV-mediated inhibition than the recurrent L6 motif. This is consistent with the known asymmetry in inhibitory recruitment between feedforward and feedback pathways [42].
At the cell-type level, the per-state analysis is based on grand-averaged networks across all fields; no per-field statistics were computed for cell-type motifs. These observations are therefore hypothesis-generating rather than confirmed findings. In low arousal, L6 recurrence between morphologically distinct subtypes (L6tall-a↔L6short-b) dominates. In high arousal, this deep-layer recurrence is absent. Instead, L6short-a-mediated projections to L5ET dominate, consistent with selective engagement of the corticospinal/corticotectal output pathway [17, 43]. These observations are consistent with the hypothesis that arousal state is associated with selective engagement of different deep-layer circuits for output routing rather than uniform modulation of all cell types.
3.3. Structure-function coupling is selectively weakened in high arousal
Previous studies have documented that high-arousal states are associated with elevated single-neuron firing rates and gain [14]. Prior work has also shown that arousal is associated with reduced pairwise noise correlations between neurons [44], capturing undirected pairwise structure. The microscale functional circuitry changes we observe represent a distinct level of analysis [45]: directed, network-level interactions across thousands of simultaneously recorded neurons. These state-dependent changes are not accessible through pairwise or single-neuron measures alone.
An additional dimension not previously examined at the level of individual EM-reconstructed synapses is the relationship between state-dependent functional circuitry and underlying structural anatomy. EM synapse count positively predicts TPC functional weight in both arousal states. Pairs with more synapses are more likely to carry a functional edge and tend to have stronger functional weights. However, structure-function coupling is weaker in high arousal. State-dependent changes in functional circuitry are greatest at neuron pairs with fewer EM-reconstructed synapses. Functional circuitry thus departs more from structural anatomy in high arousal. One interpretation is that strongly-wired neuron pairs operate near a functional ceiling imposed by their synaptic weights. This leaves less room for state-dependent modulation. Weakly-wired pairs may represent a more flexible substrate whose functional weight varies more across arousal states.
3.4. Functional circuitry weight correlates with sensory encoding similarity
The positive correlation between TPC functional circuitry weight and predictive correlation profile similarity (Figure 5B) demonstrates that stronger functional connections link neurons with more similar sensory encoding performance. This relationship holds across both arousal states and is significant for all within-area directed pairs. It validates that TPC connections are functionally meaningful: they capture not only directionality but also the degree to which connected neurons share a common sensory encoding profile across trials.
The variation in predictive correlation across layers and cell types (Figure 5C) is consistent with known hierarchical specialization of visual cortex [17, 18]. L4 carries the highest predictive correlation among all layers in both states. This is expected: L4 is the primary recipient of thalamocortical input and is therefore most tightly coupled to the sensory stimulus. Among cell types, 5P-ET neurons show the highest predictive correlation. Layer 5 extratelencephalic neurons are a principal output class of cortex; their strong sensory responses are consistent with their role in broadcasting visual information to subcortical targets [17]. At the other extreme, L6 excitatory subtypes (6P-IT, 6P-CT) show the lowest predictive correlation. The asymmetry between states is also informative: more cell-type pairs are significantly different in high arousal than in low arousal. This suggests that arousal state is associated with a broader differentiation of encoding quality at the cell-type level, beyond what is captured by mean firing-rate changes. The stability of relative encoding quality across states is measured as the Pearson between low- and high-arousal predictive correlations across neurons. This stability is highest in LM among areas, L6 among layers, and L2b among cell types. LM’s high stability is consistent with its strong reciprocal connectivity with V1, which may preserve representational structure across states [38, 46]. The high stability of L6 is notable given that L6 neurons show the lowest mean predictive correlation; neurons with weak absolute encoding can nonetheless maintain a stable relative rank across arousal states.
The redistribution of predictive correlation across neurons represents a further dimension not accessible through pairwise measures alone [34]. The population mean shows a net decrease in high arousal (), but this average conceals a pronounced gradient (Figure 5D-F). Neurons with low baseline encoding quality improve substantially in high arousal (lowest bin: ), while neurons with high baseline encoding quality decline (highest bin: ). This gradient () is not an artifact of regression to the mean: split-half cross-validation fully preserves it. The gradient holds consistently across all visual areas. This pattern is consistent with a selective rebalancing of sensory representation across the population in high arousal, rather than uniform suppression or amplification.
3.5. E-to-I spatial expansion is consistent with a disinhibitory mechanism
One candidate mechanism linking the circuit-level and coding-level findings involves the E→I spatial expansion demonstrated here. In high arousal, expanded long-range E→I connections may recruit weakly-driven neurons into the functional circuit by providing broader excitatory input. This could explain why low-baseline neurons improve while high-baseline neurons decline. This account is speculative. Causal perturbation experiments are required to test it directly.
The spatial expansion pattern is not consistent with simple gain modulation. E→I connections selectively expand their spatial extent in high arousal; E→E connections do not. Uniform gain scaling would affect all functional interactions equally [47, 48]. This selectivity suggests that specific circuit mechanisms are associated with reconfiguration of inhibitory pathway reach in high arousal [49].
The E→I-driven spatial expansion is consistent with disinhibitory circuit mechanisms [26,49,50]. During arousal, neuromodulatory systems (e.g., acetylcholine, noradrenaline) selectively suppress parvalbumin (PV) interneurons, which provide dense proximal inhibition to local excitatory neurons [25]. Suppression of proximal PV interneurons releases excitatory neurons from local inhibitory control. These disinhibited excitatory neurons can then recruit more distant inhibitory targets, specifically somatostatin (Sst) interneurons with long-range axonal projections [51]. Different Sst MET-types have distinct synaptic connectivity patterns, with some subtypes projecting at distances that could account for the observed expansion. This two-step mechanism (proximal PV suppression → distal Sst recruitment) would selectively expand E→I spatial extent without proportionally affecting E→E connections. That is the pattern observed here.
3.6. Limitations and Future Directions
This study has several methodological boundaries that motivate future work. First, pupil area is a well-established proxy for arousal [12, 13, 20], but does not capture the full complexity of arousal-related neuromodulation. Pupil area correlates with locomotion speed, and this analysis does not distinguish their independent contributions. Future work could separate them by regressing out running speed or restricting to stationary epochs. Future studies combining optogenetic manipulation of neuromodulatory systems with functional imaging would provide more direct causal evidence for the mechanisms proposed here. Relevant targets include locus coeruleus and basal forebrain. Second, our analysis focused on visual cortex. Extending these findings to other sensory and association areas would clarify whether state-dependent circuit reconfiguration is a general property of neocortex or specific to sensory hierarchies [52, 53]. Third, causal sufficiency is a standard assumption in statistical causal inference that is challenging to satisfy in vivo: all common causes of recorded neurons must be observed [54], yet unobserved inputs such as thalamic drive and neuromodulatory fluctuations cannot be fully excluded. TPC partially addresses this by testing, for each connection, whether it holds after controlling for subsets of other neurons’ activity in the lag window. When a recorded neuron is driven by the same unobserved input as the pair being tested, controlling for it absorbs that input’s influence and can remove the spurious edge [54]. Perturbation experiments targeting specific cell types would provide direct validation of the inferred connections. Fourth, the cell-type classification used here aggregates many subtypes. Future work with more granular cell-type identification (e.g., specific interneuron subtypes) could reveal more detailed mechanisms [25, 26, 33]. Finally, this analysis was limited to awake, head-fixed mice viewing natural movies. How these findings extend to other behavioral states (e.g., sleep, active locomotion) remains an open question [55, 56].
4. Methods
4.1. Data Source
We used the MICrONS dataset (Minnie65) [3], containing electron microscopy reconstruction and calcium imaging from the mouse visual cortex [57, 58]. The dataset includes detrended calcium fluorescence traces from 146,388 units across 16 session-scans, of which 15,434 were coregistered with a dense EM volume. For the predictive correlation analysis, the unit of observation is a sessionscan-unit combination (119,913 units in total across 13 session-scans after excluding 3 sessions with corrupted pupil recordings; mean 9,224 units per session-scan, range 8,395–12,675). Stratified analyses (e.g., by brain area or cell type) use subsets of these units with available annotations, and report the corresponding sample size in each case.
4.2. Arousal State Classification
Arousal states were defined based on pupil area, a well-established proxy for arousal [12, 13, 20, 59]. For each session and scan, we computed the median pupil area ( × ma jor radius × minor radius) across all trials in that session. This median split was computed separately for each session and scan to account for session-specific variations in pupil size. To ensure robust state classification, we applied a consistency criterion. Trials were classified as High Arousal only if ≥ 80% of trial duration had pupil area above the session-specific median. Trials were classified as Low Arousal only if ≥ 80% of trial duration had pupil area below the median. We excluded trials that did not meet this consistency criterion. This approach ensures that each trial represents a relatively stable arousal state and improves the reliability of state-dependent comparisons.
4.3. Functional Circuitry Analysis
Functional circuitry was estimated using the Time-Aware PC (TPC) algorithm, a causal discovery method for time-series data [10]. TPC extends the PC (Peter-Clark) algorithm [54] to time-lagged data. Standard correlation cannot distinguish a direct connection between two neurons from an indirect one mediated by a third neuron. Pairwise Granger causality [60] addresses directionality but does not account for network-wide dependencies. Multivariate extensions do, but assume linear interactions between neurons and condition on all other neurons simultaneously [61]. TPC makes no such assumption and its performance advantage over these methods on simulated neural circuits is established in prior work [10, 11]. TPC tests whether each neuron pair remains statistically dependent after controlling for progressively larger subsets of other neurons’ activity in a lag window, retaining and edge between and only if no subset renders them conditionally independent. This removes indirect dependencies and yields a directed, weighted connectivity matrix per trial.
Algorithm details:
TPC operates on a time-expanded representation in which each neuron at each time lag is treated as a distinct variable, enabling conditional independence tests that respect temporal ordering and capture inter-temporal causal relationships. For neurons and with activity and , TPC tests whether is conditionally independent of given subsets of activity of all other neurons in the lag window, where is the time lag. Edges that survive this test are retained with a signed weight reflecting the direction and magnitude of inferred influence. Positive weights indicate excitatory-like coupling; negative weights indicate inhibitory-like coupling. We used a maximum lag of one frame (approximately 159 ms at 6.3 Hz [3]) and a significance threshold of . The one-frame lag is appropriate for calcium imaging, where temporal resolution is limited by indicator kinetics rather than neural spiking.
Statistical causal inference guarantees:
TPC recovers the correct directed functional connections consistently as the number of observed time points grows [11], under two standard assumptions for causal discovery methods [54]. First, the directed Markov property: the graph structure matches the conditional independence patterns in the data. Second, faithfulness: every direct connection must produce a statistical dependency that survives conditioning on all other observed neurons, with no exact cancelations. Faithfulness is applied to temporally lagged variables, so inter-temporal causal relationships that contemporaneous methods miss are captured. Faithfulness violations are theoretically possible but unlikely to be systematic across the large number of neuron pairs analyzed here. Performance on simulated neural circuits is described in Benchmarking below. Limitations on causal sufficiency are discussed in the Limitations subsection above. These connections constitute the statistically causal functional circuitry analyzed throughout.
Unit selection:
TPC was applied separately within each of 101 imaging fields across 13 session-scans. A unit was retained if its deconvolved spike trace exceeded a value of one in more than 12% of frames during at least one stimulus type (Clip, Monet, or Trippy; union criterion). Different stimulus types selectively engage different neurons; the union captures all neurons with detectable stimulus-evoked activity across any part of the recording. Neurons below this threshold in all three stimulus types contribute no detectable functional connections. Of 146,388 total units, this yielded 57,686 active units (mean 465 per field) used for causal functional circuitry (CFC) inference.
Benchmarking:
TPC has been benchmarked against correlation, Granger causality, and the standard PC algorithm on simulated neural time series. It outperformed these methods in recovering known connectivity patterns [11, 21]. These results support TPC’s suitability for inferring directed functional circuitry from neural time-series data.
We applied TPC to calcium imaging traces separately for trials in each arousal state to infer the directed functional circuitry for each state.
4.4. Data Processing Pipeline
CFC Matrix Computation:
For each field, session, and scan, TPC was applied to calcium imaging traces (as provided in the MICrONS processed dataset) separately for trials in each arousal state. This generated causal functional circuitry matrices (CFC matrices) where each entry (, ) represents the inferred connectivity strength from neuron to neuron . CFC values can be positive (excitatory-like) or negative (inhibitory-like), reflecting the direction of inferred influence.
Data Aggregation:
Before aggregation, absolute values of all CFC values were taken to ensure that connectivity strength is represented as a magnitude, regardless of whether the coupling is positive or negative. This approach was chosen because the sign of CFC values may reflect measurement artifacts or indirect effects rather than true excitatory vs. inhibitory connectivity. For each session and scan, we computed connectivity ratios (sum CFC / sum possible pairs) for each brain area pair and cell-type pair, pooling CFC values and possible pairs across all fields within that session and scan. These ratios were then averaged across all sessions and scans to obtain the final connectivity estimates. This unweighted aggregation method ensures that each session and scan contributes equally to the final connectivity estimate, regardless of the number of neuron pairs observed in that session and scan. We chose unweighted aggregation to avoid biasing results toward session-scans with more neurons.
4.5. Statistical Analysis
4.5.1. Data Structure and Unit of Analysis
Each recording session comprised multiple scans, each of which contained up to four imaging fields (spatially distinct two-photon fields of view, each capturing a population of neurons at a specific cortical location; referred to as “fields” throughout, following MICrONS dataset conventions). For all connectivity analyses, the unit of analysis was the individual trial-level CFC matrix per field. Averaging CFC matrices across trials before computing metrics would conflate trial-to-trial variability with state estimates. We therefore used a paired bootstrap procedure. For each of 5000 iterations, one trial was drawn at random from the low-arousal pool and one from the high-arousal pool for each field. Connectivity metrics were computed separately for each drawn trial, then averaged across fields. This yields a bootstrap distribution of field-averaged metrics for each state and their difference, from which we report bootstrap mean ± 95% confidence intervals (2.5th–97.5th percentile) and two-sided bootstrap p-values. Two-sided bootstrap p-values were computed as twice the proportion of bootstrap iterations in which the sign of the difference (high minus low arousal) was opposite to the observed mean difference. A fixed random seed (seed = 42) was used throughout to facilitate reproducibility given the deposited code. The number of fields used was n = 101 for area-level analyses and n = 43 for cell-type analyses (fields with EM coregistration).
Independence of Observations:
Fields within the same session and scan may share some neurons, potentially violating independence assumptions. However, we treated fields as independent observations for the following reasons: (1) each field represents a distinct spatial location with largely non-overlapping neuron populations, (2) the number of shared neurons between fields is minimal (estimated < 5% based on unit ID overlap across fields within each session-scan), and (3) our primary analyses compare within-field changes (low vs. high arousal) rather than across-field comparisons, reducing concerns about pseudoreplication. For analyses comparing across fields (e.g., spatial correlation), we report both field-level statistics and note that results are robust to session-level aggregation. The total number of fields analyzed varied by hypothesis (ranging from n = 43 for structure-function analysis to n > 100 for connectivity comparisons), with exact sample sizes reported for each test.
4.5.2. Hypothesis Testing Procedures
Area-Specific Decomposition:
For each field, within-area connectivity metrics (edge density, edge strength) were computed separately for each area (V1, LM, AL, RL) and between-area metrics separately for each of the 12 directed between-area pairs. Within-area metrics used submatrices containing only neurons from the same area; between-area metrics used cross-area submatrices. The primary analysis characterizes within-state organization using the paired bootstrap procedure described above: bootstrap distributions of per-state means are computed for each area pair, and within-state contrasts (within-area vs. between-area) are assessed by comparing bootstrap distributions. Between-state comparisons (low vs. high arousal for each area pair) were performed with Wilcoxon signed-rank tests and are reported in Supplementary Table 1; FDR correction (Benjamini-Hochberg) was applied across all such tests within one family.
Structure-Function (field-level):
For structure-function analysis, we obtained unit id → pt root id mappings from the coregistration data for each field. Structural connectivity matrices were constructed by querying direct synapse counts from the MICrONS EM reconstruction for all neuron pairs within each field. Synapse counts were aggregated by grouping pre- and post-synaptic root ids, with multiple direct synapses between the same neuron pair summed. This measure represents the total number of direct synapses (not indirect/polysynaptic paths) between neuron pairs.
Functional circuitry matrices were computed from CFC values averaged across all trials within each arousal state per field. Absolute values of CFC were taken before computing correlations (consistent with aggregation method). The excitatory-to-inhibitory (E→I) versus excitatory-to-excitatory (E→E) distinction throughout is based on the EM-coregistered cell-type label of the source neuron, not on the sign of the CFC entry. TPC-undetected entries (NaN) were set to zero, reflecting the absence of a direct inferred functional connection for those pairs. For each field, both structural (synapse counts) and functional circuitry (absolute CFC values, undetected pairs set to zero) matrices were flattened (off-diagonal entries only (upper and lower triangles combined)) and correlated using Spearman correlation.
This analysis was performed for three comparisons: (1) structural connectivity vs. functional circuitry in low arousal, (2) structural connectivity vs. functional circuitry in high arousal, and (3) structural connectivity vs. functional circuitry changes (high arousal – low arousal). Fields were included if at least one neuron pair had EM-reconstructed synaptic data and the Spearman correlation could be computed (n = 43 fields; mean 1,176 EM-reconstructed synapses per field, range 18–3,365; 0.02–3.39% of possible neuron pairs per field). The connection-level mixed-effects model used all neuron pairs with structural data across these fields (n = 6,597 pairs). Generalizability to the full network is therefore uncertain, though the observed relationships are robust within the sampled connections. Statistical significance was assessed using the one-sample Wilcoxon signed-rank test (median correlation across fields vs. zero); FDR correction (Benjamini-Hochberg) was applied across the three field-level structure-function comparisons.
Within-Area/Between-Area:
Connections were classified as within-area (same area) or between-area (different areas). Mean connectivity per category was computed per field and arousal state. For paired comparisons (low vs. high arousal within the same field), Wilcoxon signed-rank tests were used. For unpaired comparisons (within-area vs. between-area within the same state), we used Mann-Whitney U tests.
Spatial Extent:
Euclidean distance between neuron pairs was computed from 3D coordinates. Connectivity change (high – low) was averaged within each distance bin (75 μm bins, spanning 50–800 μm; neuron pairs closer than 50 μm were excluded). For each bootstrap iteration, Spearman correlation between bin centers and the field-averaged bin means was computed. Bootstrap mean and 95% CI across 5000 iterations are reported.
Layer-Specific:
Neurons were assigned to layers by z-coordinate (L2/3: 150-350 μm, L4: 350-450 μm, L5: 450-650 μm, L6: >650 μm). Mean within-area and between-area connectivity per layer (or layer pair) was computed per field. For paired comparisons (low vs. high arousal within the same field and layer or layer pair), Wilcoxon signed-rank tests were used.
Cell-Type Network Graph:
To construct the aggregate cell-type functional circuitry network (Figure 3A), neurons were assigned to 17 cell types (DTC, Inhibitory, L2a, L2b, L2c, L3a, L3b, L4a, L4b, L4c, L5ET, L5NP, L5a, L5b, L6short-a, L6short-b, L6tall-a) based on coregistration with morphological classification from the EM reconstruction. For each bootstrap iteration (n = 5000; one low-arousal and one high-arousal trial drawn per field), the normalized connection weight for each directed cell-type pair was computed as the sum of absolute CFC values divided by the total number of possible neuron pairs for that cell-type pair, then averaged across fields (n = 43 fields with EM coregistration). The bootstrap mean across iterations constitutes the reported network weight for each cell-type pair and arousal state. Note that all analyses use 13 session-scans (three excluded due to corrupted pupil recordings).
Cell-Type Spatial:
Distance-dependent connectivity changes were computed separately for E→E and E→I pairs using the same field-averaged bootstrap approach as the overall spatial analysis (ten 75 μm-wide distance bins spanning 50–800 μm; neuron pairs closer than 50 μm were excluded). Spearman correlation between bin centers and field-averaged connectivity change was computed per bootstrap iteration; bootstrap mean and 95% CI across 5000 iterations are reported. The analysis included 312,970 E→E, 1,467 E→I, and 1,443 I→E functional connections. I→E functional connections showed no significant distance dependence and are not shown. I→I connections (60 total) were excluded due to insufficient sample size.
Structure-Function Mixed-Effects Models:
To test structure-function relationships while accounting for nested structure (connections within fields), we used mixed-effects models with field as a random intercept (random slopes were not included due to model convergence constraints). Both the mixed-effects model and the field-level analysis use the same n = 43 fields (the mixed-effects model uses n = 6,597 connections across these fields). The structural connectivity covariate is the total number of direct synapses between neuron pairs, obtained from the MICrONS EM synapse reconstruction. The reference model tested whether structural synapses predict functional circuitry, with an interaction term to test whether the relationship differs between arousal states. The changes model tested whether structural synapses predict functional circuitry changes. To demonstrate robustness, we also ran models controlling for potential confounds including interneuron distance, same brain area, and same cell type (Supplementary Table 5). Same cortical layer was excluded as a covariate because all synaptically connected neuron pairs in the EM data are within the same cortical layer, leaving no variation in this variable.
Predictive Correlation:
Pearson correlation between model predictions and actual responses was computed per neuron and trial. The architecture was chosen based on the winning model at the Sensorium 2023 competition [36]; model predictions were obtained using this architecture, which employs an ensemble of 3D convolutional networks with depthwise separable convolutions and temporal attention mechanisms (see Supplementary Methods for architectural and training details). We trained this model architecture on MICrONS data using 7-fold cross-validation (out-of-fold predictions), so that each trial’s prediction comes from a model trained on the other six folds; evaluation is on these held-out trials only. Model inputs include video frames, pupil center, pupil area, and running speed; the model was not trained to predict arousal state, and fold assignment did not use arousal labels, so differences in predictive correlation between low- and high-arousal trials are not an artifact of the training procedure. Mean predictive correlation was compared between arousal states using a paired t-test (high – low; 119,913 units, 13 session-scans). Neurons were stratified by their low-arousal predictive correlation into fixed-threshold performance bins: Poor (< 0.1), Fair (0.1 – 0.2), Good (0.2 – 0.3), Very Good (0.3 – 0.4), and Excellent (> 0.4). The gradient across performance bins (Spearman correlation between per-bin mean baseline predictive correlation and mean ) was assessed by permutation test (10,000 shuffles of the five per-bin mean values; one-sided). FDR correction (Benjamini-Hochberg) was applied to all bin-level comparisons. Brain area-specific correlations were computed separately for each visual area (V1, LM, AL, RL) with SEM error bars (Fisher z approximation).
All connectivity comparisons used non-parametric tests (Wilcoxon signed-rank, Mann-Whitney U, Spearman) due to non-normal distributions. For paired comparisons (e.g., low vs. high arousal within the same field), we used Wilcoxon signed-rank tests. For unpaired comparisons (e.g., within-area vs. between-area within the same state), we used Mann-Whitney U tests. Predictive correlation related hypothesis tests used paired t-tests given large sample size and paired design. All tests were two-sided except the following, whose one-sided direction was pre-specified: (1) within-area vs. between-area Jaccard similarity (one-sided Mann-Whitney ; local bias of cortical anatomy predicts intra > inter); (2) overall spatial reach (one-sided bootstrap Spearman; prior literature predicts expanded spatial reach in high arousal [12]).
Multiple Comparisons Correction:
We performed multiple statistical tests across different hypotheses. To control the false discovery rate (FDR), we applied the Benjamini-Hochberg procedure [62] within each hypothesis family. Families were defined as follows: (1) Connectivity decomposition: within-area vs. between-area density and edge strength (aggregate and per area pair), in one family. (2) Layer-specific: all layer-pair comparisons in one family. (3) Cell-type spatial: E→E and E→I distance-dependence tests in one family. (4) Structure-function fieldlevel: the three field-level comparisons (FC vs. SC in low arousal, FC vs. SC in high arousal, SC vs. ) in one family. (5) Predictive correlation: bin-level and area-specific comparisons in one family. This family-wise approach is appropriate because each family addresses a distinct scientific question. For all hypotheses with multiple tests, we report FDR-corrected p-values in the main text. For single-test hypotheses (e.g., overall spatial correlation), no correction is needed and we report uncorrected p-values. Tests with FDR-corrected p < 0.05 (or p < 0.05 for single tests) were considered significant.
Effect Sizes:
For correlation analyses, we report Spearman or Pearson correlation coefficients as appropriate. For differences between conditions, we report raw differences () along with the relevant test statistic and p-value (e.g., Wilcoxon or Mann-Whitney for connectivity; paired t-test for predictive correlation comparisons where used).
All analyses were implemented in Python.
Supplementary Material
Acknowledgments
We thank members of the Abbasi Lab for their insightful feedback on this work. This study was partially supported by the National Institute of Mental Health of the National Institutes of Health under award number RF1MH128672 (model development and initial validation) and by the National Library of Medicine of the National Institutes of Health under award number R01LM014619 (celltype and layer specific analysis). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
Footnotes
Data and Code Availability
All analysis code is publicly available at https://github.com/abbasilab/mfc. Raw calcium imaging data and electron microscopy reconstructions are available through the MICrONS project (https://www.microns-explorer.org/). The Time-aware PC (TPC) algorithm used to compute functional circuitry matrices is described in [10] and publicly available at https://github.com/shlizee/TimeAwarePC.
References
- [1].Sporns Olaf et al. The human connectome: a structural description of the human brain. PLoS computational biology, 1(4):e42, 2005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [2].Bullmore Ed and Sporns Olaf. Complex brain networks: graph theoretical analysis of structural and functional systems. Nature reviews neuroscience, 10(3):186–198, 2009. [DOI] [PubMed] [Google Scholar]
- [3].The MICrONS Consortium. Functional connectomics spanning multiple areas of mouse visual cortex. Nature, 640(8058):435–447, 2025. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [4].Lee Wei-Chung Allen and Reid R Clay. Specificity and randomness: structure–function relationships in neural circuits. Current opinion in neurobiology, 21(5):801–807, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [5].Kopell Nancy J, Gritton Howard J, Whittington Miles A, and Kramer Mark A. Beyond the connectome: the dynome. Neuron, 83(6):1319–1328, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [6].Rahn Rachel M, Brier Lindsey M, Bice Annie R, Reisman Matthew D, Dougherty Joseph D, and Culver Joseph P. Functional connectivity of the developing mouse cortex. Cerebral Cortex, 32(8):1755–1768, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [7].Jirsa Viktor K. Connectivity and dynamics of neural information processing. Neuroinformatics, 2(2):183–204, 2004. [DOI] [PubMed] [Google Scholar]
- [8].Finn Emily S, Shen Xilin, Scheinost Dustin, Rosenberg Monica D, Huang Jessica, Chun Marvin M, Papademetris Xenophon, and R Todd Constable. Functional connectome fingerprinting: identifying individuals using patterns of brain connectivity. Nature neuroscience, 18(11):1664–1671, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Reid Andrew T, Headley Drew B, Mill Ravi D, Sanchez-Romero Ruben, Uddin Lucina Q, Marinazzo Daniele, Lurie Daniel J, Valdés-Sosa Pedro A, José Hanson Stephen, Biswal Bharat B, et al. Advancing functional connectivity research from association to causation. Nature neuroscience, 22(11):1751–1760, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [10].Biswas Rahul and Shlizerman Eli. Statistical perspective on functional and causal neural connectomics: The time-aware pc algorithm. PLOS Computational Biology, 18(11):e1010653, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [11].Biswas Rahul and Mukherjee Somabha. Consistent causal inference from time series with pc algorithm and its time-aware extension. Statistics and Computing, 34(1):14, 2024. [Google Scholar]
- [12].McGinley Matthew J et al. Cortical membrane potential signature of optimal states for sensory signal detection. Neuron, 87(1):179–192, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [13].Reimer Jacob et al. Pupil fluctuations track fast switching of cortical states during quiet wakefulness. Neuron, 84(2):355–362, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [14].Polack Pierre-Olivier et al. Cellular mechanisms of brain state–dependent gain modulation in visual cortex. Nature neuroscience, 16(9):1331–1339, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [15].Stitt Iain, Hollensteiner Karl J, Galindo-Leon Edgar, Pieper Florian, Fiedler Eva, Stieglitz Thomas, Engler Gerhard, Nolte Guido, and Engel Andreas K. Dynamic reconfiguration of cortical functional connectivity across brain states. Scientific reports, 7(1):8797, 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [16].Stitt Iain et al. Arousal dependent modulation of thalamo-cortical functional interaction. Nature Communications, 9(1):2455, 2018. [Google Scholar]
- [17].Harris Julie A et al. Hierarchical organization of cortical and thalamic connectivity. Nature, 575(7781):195–202, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [18].Felleman Daniel J and Van Essen David C. Distributed hierarchical processing in the primate cerebral cortex. Cerebral cortex (New York, NY: 1991), 1(1):1–47, 1991. [Google Scholar]
- [19].Liu Yong-Jun, Ehrengruber Markus U, Negwer Moritz, Shao Han-Juan, Cetin Ali H, and Lyon David C. Tracing inputs to inhibitory or excitatory neurons of mouse and cat visual cortex with a targeted rabies virus. Current Biology, 23(18):1746–1755, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [20].Joshi Siddhartha et al. Relationships between pupil diameter and neuronal activity in the locus coeruleus, colliculi, and cingulate cortex. Neuron, 89(1):221–234, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [21].Biswas Rahul and Shlizerman Eli. Statistical perspective on functional and causal neural connectomics: A comparative study. Frontiers in Systems Neuroscience, 16:817962, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [22].Marshel James H, Garrett Marina E, Nauhaus Ian, and Callaway Edward M. Functional specialization of seven mouse visual cortical areas. Neuron, 72(6):1040–1054, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [23].Andermann Mark L, Kerlin Aaron M, Roumis Demetris K, Glickfeld Lindsey L, and Reid R Clay. Functional specialization of mouse higher visual cortical areas. Neuron, 72(6):1025–1039, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [24].Wang Quanxin and Burkhalter Andreas. Area map of mouse visual cortex. Journal of Comparative Neurology, 502(3):339–357, 2007. [DOI] [PubMed] [Google Scholar]
- [25].Atallah Bassam V et al. Parvalbumin-expressing interneurons linearly transform cortical responses to visual stimuli. Neuron, 73(1):159–170, 2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [26].Pi Hyun-Jae et al. Cortical interneurons that specialize in disinhibitory control. Nature, 503(7477):521–524, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [27].Tasic Bosiljka, Menon Vilas, Nguyen Thuc Nghi, Kim Tae Kyung, Jarsky Tim, Yao Zizhen, Levi Boaz, Gray Lucas T, Sorensen Staci A, Dolbeare Tim, et al. Adult mouse cortical cell taxonomy revealed by single cell transcriptomics. Nature neuroscience, 19(2):335–346, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [28].Tasic Bosiljka, Yao Zizhen, Graybuck Lucas T, Smith Kimberly A, Nguyen Thuc Nghi, Bertagnolli Darren, Goldy Jeff, Garren Emma, Economo Michael N, Viswanathan Sarada, et al. Shared and distinct transcriptomic cell types across neocortical areas. Nature, 563(7729):72–78, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [29].Yao Zizhen, Van Velthoven Cindy TJ, Nguyen Thuc Nghi, Goldy Jeff, Sedeno-Cortes Adriana E, Baftizadeh Fahimeh, Bertagnolli Darren, Casper Tamara, Chiang Megan, Crichton Kirsten, et al. A taxonomy of transcriptomic cell types across the isocortex and hippocampal formation. Cell, 184(12):3222–3241, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [30].Sun Wenzhi, Tan Zhongchao, Mensh Brett D, and Ji Na. Thalamus provides layer 4 of primary visual cortex with orientation-and direction-tuned inputs. Nature neuroscience, 19(2):308–315, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [31].Colonnese Matthew T and Phillips Marnie A. Thalamocortical function in developing sensory circuits. Current opinion in neurobiology, 52:72–79, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [32].Briggs Farran and Usrey W Martin. Corticogeniculate feedback and visual processing in the primate. The Journal of physiology, 589(1):33–40, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [33].Lee Seung-Hee et al. Activation of specific interneurons improves v1 feature selectivity and visual perception. Nature, 488(7411):379–383, 2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [34].Panzeri Stefano, Macke Jakob H, Gross Joachim, and Kayser Christoph. Neural population coding: combining insights from microscopic and mass signals. Trends in cognitive sciences, 19(3):162–172, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [35].Abbasi-Asl Reza, Chen Yuansi, Bloniarz Adam, Oliver Michael, Willmore Ben DB, Gallant Jack L, and Yu Bin. The deeptune framework for modeling and characterizing neurons in visual cortex area v4. bioRxiv, page 465534, 2018. [Google Scholar]
- [36].Turishcheva Polina, Fahey Paul, Vystrčilová Michaela, Hansel Laura, Froebe Rachel, Ponder Kayla, Qiu Yongrong, Willeke Konstantin, Bashiri Mohammad, Baikulov Ruslan, et al. Retrospective for the dynamic sensorium competition for predicting large-scale mouse primary visual cortex activity from videos. Advances in Neural Information Processing Systems, 37:118907–118929, 2024. [Google Scholar]
- [37].Mountcastle Vernon B. The columnar organization of the neocortex. Brain: a journal of neurology, 120(4):701–722, 1997. [DOI] [PubMed] [Google Scholar]
- [38].Wang Quanxin, Sporns Olaf, and Burkhalter Andreas. Network analysis of corticocortical connections reveals ventral and dorsal processing streams in mouse visual cortex. Journal of Neuroscience, 32(13):4386–4399, 2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [39].D’Souza Rinaldo D, Wang Quanxin, Ji Weiqing, Meier Andrew M, Kennedy Henry, Knoblauch Kenneth, and Burkhalter Andreas. Hierarchical and nonhierarchical features of the mouse visual cortical network. Nature communications, 13(1):503, 2022. [Google Scholar]
- [40].Vélez-Fort Mateo, Rousseau Charly V, Niedworok Christian J, Wickersham Ian R, Rancz Ede A, Brown Alexander PY, Strom Molly, and Margrie Troy W. The stimulus selectivity and connectivity of layer six principal cells reveals cortical microcircuits underlying visual processing. Neuron, 83(6):1431–1443, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [41].Niell Cristopher M and Stryker Michael P. Modulation of visual responses by behavioral state in mouse visual cortex. Neuron, 65(4):472–479, 2010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [42].D’Souza Rinaldo David, Meier Andrew Max, Bista Pawan, Wang Quanxin, and Burkhalter Andreas. Recruitment of inhibition and excitation across mouse visual cortex depends on the hierarchy of interconnecting areas. elife, 5:e19332, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [43].Lur Gyorgy, Vinck Martin A, Tang Lan, Cardin Jessica A, and Higley Michael J. Projectionspecific visual feature encoding by layer 5 cortical subnetworks. Cell reports, 14(11):2538–2545, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [44].Ecker Alexander S, Berens Philipp, Cotton R James, Subramaniyan Manivannan, Denfield George H, Cadwell Cathryn R, Smirnakis Stelios M, Bethge Matthias, and Tolias Andreas S. State dependence of noise correlations in macaque primary visual cortex. Neuron, 82(1):235–248, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [45].Bassett Danielle S and Sporns Olaf. Network neuroscience. Nature neuroscience, 20(3):353–364, 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [46].Glickfeld Lindsey L, Andermann Mark L, Bonin Vincent, and Reid R Clay. Cortico-cortical pro jections in mouse visual cortex are functionally target specific. Nature neuroscience, 16(2):219–226, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [47].Chance Frances S et al. Gain modulation from background synaptic input. Neuron, 35(4):773–782, 2002. [DOI] [PubMed] [Google Scholar]
- [48].Salinas Emilio and Thier Peter. Gain modulation: a major computational principle of the central nervous system. Neuron, 27(1):15–21, 2000. [DOI] [PubMed] [Google Scholar]
- [49].Fu Yu et al. A cortical circuit for gain control by behavioral state. Cell, 156(6):1139–1152, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [50].Letzkus Johannes J et al. A disinhibitory microcircuit for associative fear learning in the auditory cortex. Nature, 480(7377):331–335, 2011. [DOI] [PubMed] [Google Scholar]
- [51].Schneider-Mizell Casey M, Bodor Agnes L, Brittain Derrick, Buchanan JoAnn, Bumbarger Daniel J, Elabbady Leila, Gamlin Clare, Kapner Daniel, Kinn Sam, Mahalingam Gayathri, et al. Inhibitory specificity from a connectomic census of mouse visual cortex. Nature, 640(8058):448–458, 2025. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [52].Mesulam M-Marsel. From sensation to cognition. Brain: a journal of neurology, 121(6):1013–1052, 1998. [DOI] [PubMed] [Google Scholar]
- [53].Saalmann Yuri B et al. The pulvinar regulates information transmission between cortical areas based on attention demands. Science, 337(6095):753–756, 2012. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [54].Spirtes Peter, Glymour Clark, and Scheines Richard. Causation, Prediction, and Search. MIT Press, 2nd edition, 2000. [Google Scholar]
- [55].Neske Garrett T. The slow oscillation in cortical and thalamic networks: mechanisms and functions. Frontiers in neural circuits, 9:88, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [56].Stringer Carsen et al. Spontaneous behaviors drive multidimensional, brainwide activity. Science, 364(6437):eaav7893, 2019. [Google Scholar]
- [57].Shibata Shinsuke, Komaki Yuji, Seki Fumiko, Inouye Michiko O, Nagai Toshihiro, and Okano Hideyuki. Connectomics: comprehensive approaches for whole-brain mapping. Microscopy, 64(1):57–67, 2015. [DOI] [PubMed] [Google Scholar]
- [58].Chen Tsai-Wen, Wardill Trevor J, Sun Yi, Pulver Stefan R, Renninger Sabine L, Baohan Amy, Schreiter Eric R, Kerr Rex A, Orger Michael B, Jayaraman Vivek, et al. Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature, 499(7458):295–300, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [59].Wang Chin-An and Munoz Douglas P. A circuit for pupil orienting responses: implications for cognitive modulation of pupil size. Current opinion in neurobiology, 33:134–140, 2015. [DOI] [PubMed] [Google Scholar]
- [60].Granger Clive WJ. Investigating causal relations by econometric models and cross-spectral methods. Econometrica: journal of the Econometric Society, pages 424–438, 1969. [Google Scholar]
- [61].Ding Mingzhou, Chen Yonghong, and Bressler Steven L. Granger causality: basic theory and application to neuroscience. Handbook of time series analysis: recent theoretical developments and applications, pages 437–460, 2006. [Google Scholar]
- [62].Benjamini Yoav and Hochberg Yosef. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal statistical society: series B (Methodological), 57(1):289–300, 1995. [Google Scholar]
- [63].Solovyev Roman. Sensorium 2023 NeurIPS competition - 1st place solution. https://github.com/lRomul/sensorium, 2023. Accessed: 2026-02-21. [Google Scholar]
- [64].Zhu Menglong and Zhmoginov Andrey, Chen Liang-Chieh. Mobilenetv2: Inverted residuals and linear bottlenecks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4510–4520, 2018. [Google Scholar]
- [65].Vaswani Ashish, Shazeer Noam, Parmar Niki, Uszkoreit Jakob, Jones Llion, Gomez Aidan N, Kaiser Łukasz, and Polosukhin Illia. Attention is all you need. Advances in neural information processing systems, 30, 2017. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.





