Skip to main content
Nature Communications logoLink to Nature Communications
. 2026 Jun 25;17:7962. doi: 10.1038/s41467-026-74466-2

Neuromorphic hierarchical modular reservoirs

Filip Milisav 1, Andrea I Luppi 1,2,3, Laura E Suárez 4, Guillaume Lajoie 4,5, Bratislav Misic 1,✉
PMCID: PMC13448079  PMID: 42350431

Abstract

Modularity is a fundamental principle of brain organization, reflected in the presence of segregated subnetworks that enable specialized information processing. These densely connected modules are often nested within larger, higher-order modules, giving rise to a hierarchical modular architecture. Yet, how hierarchical modularity shapes network function remains unclear. Here we introduce a simple blockmodeling framework for generating multi-level hierarchical modular networks and implement them as recurrent neural network reservoirs to evaluate their computational capacity. We show that hierarchical modular networks enhance memory capacity, support multitasking, and produce a broader range of temporal dynamics compared to strictly modular and random networks. These functional advantages can be traced to topological features enriched in hierarchical modular networks, including reciprocal and cyclic network motifs. We find that these benefits extend to the heterogeneous modular organization of empirical human brain structural connectivity, where hierarchical organization enhances memory capacity and contributes to the emergence of brain-like neural timescales. Altogether, these results show that hierarchical modularity endows networks with computationally advantageous properties, providing insight into the relationship between neural network structure and function.

Subject terms: Network models, Dynamical systems


Hierarchical modularity is a fundamental principle of brain organization, yet its function remains unclear. Here, authors use recurrent neural network reservoirs to show that hierarchical modularity can enhance memory capacity and support multitasking.

Introduction

Modularity is a fundamental principle in neuroscience, shaping our understanding of neural architecture, dynamics, and function. The brain is not a homogeneous system, but a complex network, composed of distinct yet interacting modules. In network neuroscience, modularity is a defining feature of brain organization, manifesting in the segregation of structural and functional subnetworks that support specialized processing1–4. These notions echo a deeply rooted principle in cognitive science, which suggests that cognitive processes operate within informationally encapsulated domains5,6, highlighting modularity as a key characteristic of mental architecture. More recent perspectives suggest that cognition emerges from a hierarchy of increasingly polyfunctional nested circuits3,7–10, dynamically recruited to support both domain-specific and integrative processes11,12. Thus, understanding modularity is essential not only for characterizing the brain’s structural and functional topology but also for elucidating the computational principles that underlie human cognition.

Beyond neurobiological organization, modularity is also increasingly studied in artificial intelligence13, both as a network feature14–22 and as a design principle23–31. In this context, a module can consist of any neural architecture component, from a layer to a whole network as part of an ensemble13,29,32,33. In deep learning, modular systems leverage intrinsic or imposed modularity in data and tasks via routing functions to select relevant modules and aggregation functions to combine their outputs13,29. Such approaches have been shown to offer key advantages such as enhanced interpretability20,27,30, efficiency24,28,29,32,34, and generalization24,25,27,28,30,35,36, enabling systems to decompose complex tasks and recombine learned solutions20,24,25,27,30,31,36. Related ideas also appear in reservoir computing, where modular or hierarchical architectures, such as deep echo state networks, stack multiple reservoirs to enable sequential processing and generate multiscale temporal representations37–40. In contrast, the present work investigates topological modularity and hierarchy in a single recurrent neural network.

In a network, small densely connected modules can be embedded into higher-order modules, leading to hierarchical modularity. Such a multi-scale organization has been hypothesized to maintain a balance between information segregation in specialized communities and global integration via intermodular communication3,8. Previous work has focused on characterizing the dynamical effects of hierarchical modularity in synthetic neural networks41–43. Notably, using both simple spreading models and spiking neural networks, it was found that hierarchical modularity supports criticality44–48, a dynamical regime characterized by advantageous computational properties49–60. Hierarchical modular networks have also been associated with increased functional diversity61,62, but only as derived from functional connectivity. Yet, how hierarchical modularity shapes cognitive function remains unclear.

Here, we take advantage of reservoir computing63–65, a machine learning framework particularly well suited to the implementation of neuromorphic networks66. This allows us to move away from the common operationalization of function as statistical associations between neural activity time-courses to instead re-conceptualize it as a computational property in the context of cognitive tasks66–68. In reservoir computing, the classic architecture consists of a recurrent neural network (RNN) of nonlinear neurons complemented by a linear readout module64,69,70. Only the readout module is trained, allowing us to constrain the network with arbitrary connectivity patterns that remain unchanged throughout learning. Furthermore, since the dynamics of the reservoir are constrained by its fixed wiring, they can be tuned and maintained by the experimenter67. This allows the exploration of the interplay between structure, dynamics, and cognitive function.

While a small number of network properties have been related to performance in reservoir computing tasks71–80, how neural network architecture supports cognitive capacity remains largely unknown. Recent evidence indicates that an optimal level of modularity can enhance reservoir memory79 and multitasking capacity81 by balancing information segregation and integration. Here, we propose that hierarchical modularity can more robustly strike this balance, leading to improved cognitive capacity (Fig. 1). To test this hypothesis, we generate synthetic multi-level hierarchical modular networks and use them as reservoirs to evaluate their cognitive capacity. We further investigate the topological and dynamical underpinnings of their computational properties. Finally, in line with recent work on connectome-based reservoir computing67,76,81–91, we endow reservoirs with empirical structural connectivity patterns of the human brain to explore the effects of biological hierarchical modularity patterns. To this end, we develop a network null model that allows us to disentangle the computational effects of modularity and hierarchical modularity in heterogeneous hierarchical modular networks. Our results offer insights into structure–function relationships in artificial neural networks and provide a potential explanation for the hierarchical modularity observed in biological neural networks.

Fig. 1. Generating hierarchical modular reservoirs.

Fig. 1

We study the computational properties of increasing levels of hierarchical modularity using reservoir computing. Top: To evaluate whether memory capacity systematically varies with hierarchical modularity, we model a three-level hierarchy that bridges strictly modular and hierarchical modular networks. Bottom: We then implement these networks as reservoirs. The reservoir is a fixed recurrent neural network complemented by a readout module. In a learning task, an input signal is introduced via an input module, transformed by the reservoir's internal dynamics, and recorded from an output module. The readout module is then trained to reproduce a target signal by forming a linear combination of the output signals.

Results

Generating hierarchical modular reservoirs

To study the functional effects of hierarchical modularity, we (1) develop a simple method to generate and compare hierarchical modular networks, and (2) implement these networks as reservoirs. We define hierarchical modular networks as networks with a nested block-diagonal structure. A straightforward method for implementing such networks is stochastic blockmodeling (see “Methods”), which allows us to parametrically tune the number of hierarchical levels, the number of modules at each level, as well as their prominence (modularity). To facilitate systematic comparison between networks with different numbers of hierarchical levels, we develop a method to iteratively remove levels of hierarchy, while preserving basic network features, such as network size, density, degree, and modularity. This ultimately yields a continuum from strictly modular networks to hierarchical modular networks.

Specifically, we model three hierarchical levels of modularity. At the first level, we specify 8 densely connected modules of 50 nodes, for a total network size of 400 nodes. We then systematically tune intermodular connectivity to coalesce pairs of lower-order modules into larger, sparser higher-order modules (4 modules of 100 nodes and 2 modules of 200 nodes). For each level, we generate 100 synthetic graphs and randomly assign uniformly distributed weights to the produced edges: W ~ U(0, 1).

The resulting networks are then implemented as reservoirs to measure their computational capacity (see “Methods”). Briefly, we use a typical reservoir computing architecture in which the reservoir is a recurrent neural network of hyperbolic tangent units, complemented by an input layer and a linear readout module69. In a standard learning task, an external time series is introduced into the reservoir through a set of selected input nodes. The input signal propagates across the reservoir, and output signals are recorded from a set of selected output nodes. The readout module is then trained using Ridge regression to approximate a target signal by forming a linear combination of the output signals. Importantly, the reservoir remains fixed during training, which enables a clear mapping between the designed network structure and its function. Fig. 1 illustrates the paradigm.

Hierarchical modularity improves memory capacity

We start by evaluating the reservoir’s ability to preserve representations of past stimuli with the widely used memory capacity task67,70,76,79,83,92–95 (see “Methods”). In this task, the readout module is trained to reproduce a time-delayed version of a random, uniformly distributed input signal. In essence, this amounts to asking the question: To what extent is past input recoverable from the current reservoir states? In contrast to other memory tasks, the memory capacity task isolates memory from other computational capacities, such as nonlinear processing or pattern recognition. After training the readout, the model’s performance is evaluated on independent data using the R2 regression score, and the results are averaged across a range of time lags to obtain the network’s memory capacity. Input nodes correspond to all the nodes in a randomly selected first-level module. All the other nodes in the reservoir are used as output.

Importantly, the computational properties of the reservoir result from an interaction between its structure, which defines the pathways for interaction, and its dynamics, which govern the flow of activity along those pathways. Here, to characterize the relationship between network structure, dynamics, and function, we parametrically tune the reservoir’s global dynamics by scaling its spectral radius α. Reservoir dynamics are guaranteed to be stable for α < 164,96. Conversely, dynamics are expected to be unstable or chaotic for α > 1 and are described as critical at α ≈ 1, or at the edge of chaos67,92 (see “Methods” and Supplementary Fig. 1 for more details).

Figure 2a shows the edge probability matrices used to generate the three levels of the modularity hierarchy (left) and examples of resulting reservoir connectivity matrices (right). In Fig. 2b, we compare the memory capacity of the three network ensembles across different dynamical regimes. For all α values considered, we find that performance systematically follows the modularity hierarchy, with higher-order hierarchical modular networks consistently outperforming their lower-order counterparts (p < 0.01, common-language effect size (CLES) ≥61.15% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests; see Supplementary Fig. 2a for an alternative, standard measure of memory capacity64,70,79). For completeness, we also show that hierarchical modular networks outperform degree-preserving random networks in Supplementary Fig. 3a (p < 10−33, CLES  = 100%, two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum test). For all levels, maximal performance is observed at α = 1 as expected. Altogether, these results demonstrate that hierarchical modularity robustly improves memory capacity over other commonly used architectures across dynamical regimes.

Fig. 2. Hierarchical modularity improves memory capacity.

Fig. 2

Hierarchical modularity improves memory capacity. a Left: Three edge probability matrices, specifying the probability of connecting two nodes based on their community affiliation, were designed to reflect three hierarchical levels of modularity. Right: The three edge probability matrices were used to define three distinct Stochastic Block Models (SBM). Each SBM was used to generate an ensemble of 100 synthetic graphs, of which examples are shown. b Memory capacity (R2) as a function of the α parameter across hierarchical levels. Asterisks indicate statistical significance of differences between levels according to Wilcoxon–Mann–Whitney tests (p < 0.01). Boxes show the quartiles of the distribution, and whiskers extend to the endpoints. Significance is shown only for the highest-performing regime.

Hierarchical modularity generates a pool of timescales

In the previous section, controlling the spectral radius allowed us to relate the reservoir’s structure, dynamics, and function at the global scale. However, how hierarchical modularity shapes local dynamics to improve memory capacity remains unclear. To determine if differences in memory capacity are reflected in node-level dynamics, we compute neural timescales from the nodal activation time series of each reservoir at the edge of chaos (α = 1). The neural timescale is a measure of the speed of decay in the autocorrelation of neural activity. Due to the discrete nature of the reservoir dynamics, timescales are expressed in arbitrary time-step units but retain the same interpretation as brain-derived timescales, with larger values indicating greater temporal persistence (see “Methods”). In the brain, neural timescales are highly variable97–100, both spatially, following a functional specialization gradient from sensory to association cortex101–104, and temporally, as they adapt to task requirements105–108. Interestingly, we find no significant difference across hierarchical levels in the reservoir-averaged neural timescales. However, we find that higher-order hierarchical modular reservoirs show more variability in timescales across nodes (Fig. 3, left; p < 10−5, CLES ≥69.98% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests). This reflects a richer temporal expansion of the input signal, which can be visually observed in raw activation time series as a stretching of slow fluctuating signals (Fig. 3, right).

Fig. 3. Hierarchical modularity generates a pool of timescales.

Fig. 3

Left: Distributions of reservoir-wise timescale variability, measured as the standard deviation across neural timescales, for each of the three levels. Right: Output node states at α = 1 for an example reservoir of each of the three levels. The time series were rescaled between  − 1 and 1 to emphasize differences. Output node states at α = 0.8 and α = 1.2 are provided in Supplementary Fig. 4 for comparison.

To uncover the topological underpinnings of these differences in dynamics, we then consider the motif composition of the reservoir. Motifs are local connection patterns that constitute the elementary computational circuits of a network109,110. The motif composition thus tiles a mosaic of recurring functional units, reflecting the network’s computational repertoire. We start by measuring the clustering coefficient, a fundamental measure of a network’s local cohesiveness111,112. Specifically, the network average clustering coefficient measures the prevalence of directed triangles around all nodes. We find that higher-order hierarchical modular networks exhibit a larger clustering coefficient than their lower-order counterparts (Fig. 4a; p < 10−32, CLES ≥98.78% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests), indicative of enhanced local recurrence.

Fig. 4. Hierarchical modularity enriches recurrent motifs.

Fig. 4

a Distributions of network average clustering coefficients across hierarchical levels. b Motif composition of the reservoirs across hierarchical levels. For all 13 possible three-node directed motifs, bars show the mean frequency across the network ensemble. Error bars correspond to a 95% bootstrapped confidence interval (1000 samples). c Distributions of the number of cycles of different lengths across hierarchical levels.

We then extend our analysis to all possible three-node directed motifs (see “Methods”). For all examined motifs, we find significant differences between all levels of the modularity hierarchy (p < 0.05, CLES ≥58.64% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests), which allow us to partition the motifs into two categories. The three simplest and most prevalent motifs across all networks are all reduced in frequency as levels are added to the hierarchy (Fig. 4b, left). These motifs contain only two edges, with no reciprocal links, and embody basic patterns of convergence (1), sequential processing (2), and divergence (3). Conversely, more complex motifs containing at least three edges are all enriched in higher-order hierarchical modular networks (Fig. 4b, right). These motifs integrate simpler dyadic (two-node) and triadic (three-node) patterns and could therefore subserve more complex computations, notably through reciprocal links and cycles.

In particular, cycles have previously been related to information storage113 and suggested as a mechanism of time scale separation in modular networks8,114. Therefore, we turn our attention beyond triadic motifs to focus on cycles of varying lengths. Specifically, we consider simple cycles, paths that begin and end at the same node without visiting a node more than once. We find significantly more cycles of length 3, 4, and 5 in higher-order hierarchical modular networks (Fig. 4c; p < 0.01, CLES ≥62.74% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests, except between levels 1 and 2 for cycle length 5), in line with a richer dynamical repertoire.

Overall, these results point to recurrence and temporal expansion as potential substrates of memory capacity in hierarchical modular networks. To validate this hypothesis, we relate timescale variability and motif composition to memory capacity across all reservoirs (Supplementary Fig. 5). We consistently find that features related to hierarchical modular reservoirs also relate to enhanced memory capacity. We also examine the mechanistic relationship between cycles and memory capacity. We find that randomized null networks that preserve first-level modules and third-level cycle counts reach similar memory capacity to the third-level hierarchical modular reservoirs (Supplementary Fig. 6a). Furthermore, we find that destroying cycles via degree-preserving rewiring systematically reduces the memory capacity of hierarchical modular reservoirs across all dynamical regimes (Supplementary Fig. 7). Altogether, these results suggest a causal role of cycles in hierarchical modular reservoir memory capacity.

Hierarchical modularity supports multitasking

Having evaluated the memory capacity of hierarchical modular networks, we now consider their ability to perform multiple tasks simultaneously. Previous work has suggested that modularity can improve multitasking capacity by providing a balance between inter-modular resource sharing and task interference81. Here, we test whether hierarchical modularity can further improve this effect by striking a more robust balance between information integration and segregation3,8. To assess multitasking capacity, we adapt a framework developed by Loeffler et al.81, which includes a non-linear transformation task, in addition to the memory capacity task. Briefly, the non-linear transformation task consists of regressing a slowly varying sinusoidal input signal to a different waveform—here, a square signal115,116. Beyond evaluating multitasking capacity, this framework also captures the reservoir’s ability to balance two fundamental yet opposing properties: information storage and non-linear information processing70,117. Furthermore, the two tasks operate on different timescales: the memory capacity task requires the reservoir to store fast random fluctuations, whereas the non-linear transformation task has slower dynamics81.

A multitasking experiment proceeds as follows: The set of 4 modules encapsulated in the first of the 2 third-level modules is designated for memory capacity tasks, whereas the other set is assigned non-linear transformation tasks (see Fig. 5a). As for the memory capacity task, input nodes correspond to all the nodes in a randomly selected first-level module. All the other nodes in the third-level module are used as output. Importantly, these task assignments remain consistent across networks spanning all three hierarchical levels. During a task, all input signals are propagated simultaneously across the network, and a separate readout module is trained for each task. The multitasking performance is then assessed on independent data as the average R2 regression score across all tasks.

Fig. 5. Hierarchical modularity supports multitasking.

Fig. 5

a Schematic of the multitasking framework: the 2 third-level modules are each assigned a different task: the memory capacity task and the non-linear transformation task. Both input signals are propagated simultaneously across the network. b Average R2 regression score across tasks as a function of the α parameter for each hierarchical level. Asterisks indicate statistical significance of differences between levels according to Wilcoxon–Mann–Whitney tests (p < 10−26). Boxes show the quartiles of the distribution, and whiskers extend to the endpoints. Significance is only shown for the highest performing regime.

Figure 5b shows the multitasking score distributions of the three hierarchical levels of modularity across different dynamical regimes. Again, we find that higher-order hierarchical modular networks consistently outperform their lower-order counterparts (p < 0.05, CLES ≥59.18% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests), including degree-preserving random networks (Supplementary Fig. 3b; p < 10−9, CLES ≥75.75%, for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests) and cycles-preserving random networks (Supplementary Fig. 6b; p < 0.01, CLES ≥63.04%, for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests, except at α = 1.2). For all levels, maximal scores are observed in a more stable regime (α = 0.8) than for the memory capacity task alone. For completeness, we consider multiple other multitasking scenarios which include incorporating more input signals and interleaving task categories instead of assigning them to different third-level modules (Supplementary Figs. 8 and 9; see “Methods” for more details). Across all evaluated scenarios, we find that hierarchical modular networks consistently outperform strictly modular ones. Note, however, that the third level of hierarchy rarely leads to additional improvements over the second level. Altogether, these results demonstrate that hierarchical modularity robustly supports multitasking in various experimental scenarios. Importantly, since performance rapidly saturates with additional hierarchical levels, our findings also suggest that a deep fractal organization might not be necessary to achieve performance improvements.

Hierarchical modularity in the human connectome

Until now, we have considered synthetic blockmodel graphs that are ostensibly neuromorphic, insofar as they reflect the multi-scale nested organization of brain modules118,119. However, these networks lack the heterogeneity of empirical brain connectomes; that is, real-world modules vary in size and the number of sub-modules they contain. To account for these differences, we endow reservoirs with empirical structural connectivity patterns of the human brain. Specifically, we build a group-representative connectome from 327 individual structural networks derived from diffusion-weighted magnetic resonance imaging (MRI) tractography (source: Human Connectome Project - HCP120; see “Methods” for detailed procedures).

To isolate the effect of hierarchical modularity on the performance of connectome-informed reservoirs, we develop a hierarchical modular network null model. Our model draws on an existing modular random graph model121 and the intuitive notion that modularity can be operationalized as the relative density of intra-modular connections122,123. For a strictly modular network null model, we can distinguish two categories of edges: within- and between-module edges. We can then rewire them separately while constraining the edge swap so that the rewired edges retain their original category. This allows us to randomize the network while preserving its modularity. Generalizing to hierarchical modularity, we can infer that L nested partitions will result in L + 1 edge categories in order for each module of each partition level to maintain intra-modular connectivity (see “Methods” for more details on how these categories are identified). Similar to the procedure used in the modular null model, we then rewire edges of each category separately, using the classic switching method124. The resulting null network’s connectivity patterns are randomized while maintaining its size, density, degree sequence, and hierarchical modularity.

To assess the computational properties of realistic hierarchical modularity, we first apply the Louvain modularity maximization algorithm to the empirical connectome. This method naturally yields a hierarchical partition: each node is assigned to a single module at each level, and lower-level modules can be nested within higher-level modules. Since the algorithm is non-deterministic, we re-run it multiple times and select a representative solution (see “Methods” for more details). The retained solution has 2 hierarchical levels with 15 modules at the first level and 6 modules at the second level (Fig. 6a). Only one of the first-level modules is not nested into a second-level module. Next, using the derived partition, we apply both the modularity-preserving and the hierarchical modularity-preserving null models to the connectome to generate two null network ensembles of 100 networks each. Figure 6b shows the within- and between-module edge categories that constrain rewiring in each model (left), as well as examples of resulting null networks (right), highlighting their preserved modular and hierarchical modular architectures, respectively.

Fig. 6. Hierarchical modularity in the human connectome.

Fig. 6

a Left: Empirical human brain structural connectivity matrices. Borders delineate the communities of a two-level hierarchical partition identified using Louvain modularity maximization. The second-level partition (bottom) encapsulates the first-level partition (top). Right: Brain mapping of the modules at each level. Each color represents a different module. b Left: Edge categories constraining the modularity-preserving and hierarchical modularity-preserving rewiring procedures. Right: Example modularity- and hierarchical modularity-preserving null networks with the empirical module borders overlayed to showcase their preserved (hierarchical) modular structures. c Memory capacity (R2) as a function of the α parameter across hierarchical levels. Asterisks indicate statistical significance of differences between levels according to Wilcoxon–Mann–Whitney tests (p < 10−9). Boxes show the quartiles of the distribution, and whiskers extend to the endpoints. Significance is only shown for the highest performing regime. d Left: Relationship between empirical and simulated timescales. Each point represents a brain region. A linear regression line is shown for visualization purposes. Right: Null distributions of timescale fits measured as the Spearman correlation coefficient between empirical and simulated timescales. The vertical line depicts the fit obtained from the empirical connectome.

Next, we instantiate reservoirs using the null connectivity matrices, as well as the empirical connectome, and use them to perform the memory capacity task. As for the synthetic networks, first-level modules are used as inputs and outputs. Performance is averaged over all possible pairwise combinations of inputs and outputs. We use 100 different input signals for the empirical connectome to create a performance distribution comparable to those of the null ensembles. Figure 6c shows the memory capacity distributions of all three ensembles as a function of spectral radius (α). Across all dynamical regimes, we find that the hierarchical modular null networks significantly outperform their strictly modular counterparts (p < 10−12, CLES ≥79.5% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests; see Supplementary Fig. 2b for an alternative, standard measure of memory capacity64), in line with the results observed in the homogeneous hierarchical modularity model. Interestingly, maximum performance is observed in a more stable regime (α = 0.8), consistent with previous reports of memory capacity in connectome-informed reservoirs67. Moreover, in the stable regime (α < 1), the hierarchical modular null ensemble consistently outperforms the empirical connectome (p < 10−24, CLES ≥92.82% for both two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests), suggesting that in this regime, additional topological features of the human brain are detrimental to maintaining signal representations. In particular, this result might reflect the numerous trade-offs that brain wiring must navigate to balance computational performance with robustness76,125,126 and wiring costs127. To account for the metabolic and material costs of longer connections, we normalize memory capacity by the average Euclidean length of reservoir edges, following Suárez et al.67. We find that the empirical connectome significantly outperforms the modular and hierarchical modular null networks across all α values when controlling for wiring costs (Supplementary Fig. 10; p < 10−30, CLES ≥97.27% for all two-tailed, Wilcoxon–Mann–Whitney two-sample rank-sum tests), providing a better economical trade-off.

To further characterize how connectome topology relates to memory capacity, we examine module-specific network features and task performance. In Supplementary Fig. 11, for each module used as input (output), we average memory capacity over all possible outputs (inputs). This results in a measure of how effective a module is as an input (output). We then relate module-wise performance to various module-average weighted nodal features, namely strength (sum of edge weights incident to each node), clustering (average intensity of triangles around a node128), and node-average communicability (communication measure integrating all possible walks on a network129,130) using Spearman correlation. We find that both input and output performance are strongly negatively related to clustering (input: ρ ≈ − 0.6, p ≈ 0.02, output: ρ ≈ − 0.62, p ≈ 0.01). Output performance is also strongly positively related to strength (ρ ≈ 0.56, p ≈ 0.03) and communicability (ρ ≈ 0.68, p ≈ 0.006). Collectively, the results indicate that segregated input and output modules reduce memory capacity. In particular, highly performing output modules are also highly integrated into the network, as indicated by high strength and communicability.

Finally, to evaluate the realism of connectome-informed reservoir dynamics, we contextualize them against empirical brain timescales. Specifically, we average output node timescales across all 100 input signals and 15 input modules in the memory capacity task. We then compare the resulting connectome-informed synthetic timescale map with an empirical brain map of group-averaged resting-state intrinsic timescales derived from magnetoencephalography (MEG) data acquired in a subset of 33 participants from the HCP (see “Methods” for additional information)131. We find a significant positive relationship between the synthetic and the empirical timescales using Spearman correlation (Fig. 6d, left, ρ ≈ 0.44, p < 10−20). Importantly, we also contrast the empirical correlation coefficient with null correlation coefficients obtained using the synthetic timescales derived from modularity- and hierarchical modularity-preserving null reservoirs (Fig. 6d, right). We define a two-sided p-value (prewired) as the proportion of more extreme null coefficients. We find that the empirical relationship is significantly greater than the null relationships obtained from modularity-preserving reservoirs (prewired < 0.01) but not hierarchical modularity-preserving reservoirs (prewired ≈ 0.13). Together, these results show that hierarchical modularity could contribute to shaping gradients of intrinsic neural timescales in the brain.

Sensitivity analyses

By replicating our findings using empirical brain connectivity patterns and (hierarchical) modularity-preserving network null models, we have shown that our results generalize to heterogeneous modularity patterns. Here, we further assess the sensitivity of the results to several other modeling choices, namely the edge probability scaling factor r (see “Methods” for more details), the size of the networks, their symmetry, the sign of the connection weights, and the presence of self-loops (connections from a node to itself). In the main analysis, we used asymmetric (directed) networks of N = 400 nodes, with positive weights and no self-loops. Inter-modular connectivity was halved (r = 0.5) at each hierarchical level. In Supplementary Fig. 12, we additionally test N-values of 200 and 600 nodes, and r-values of 0.25 and 0.75. We find that hierarchical modular networks systematically outperform their strictly modular counterparts, with peak performance near the edge of chaos (α = {0.8, 1.0}), independently of the network sizes and scaling factors considered. In Supplementary Fig. 13, we show that this result also extends to symmetric (undirected) networks and networks containing self-loops. However, no significant difference was found between levels of the modularity hierarchy when including negative weights (W ~ U( − 1, 1)). Furthermore, asymmetric networks including negative weights can achieve near-perfect performance at high α values. Importantly, note that the goal of this paper is not to present hierarchical modularity as a new state-of-the-art reservoir architecture, but to study its function in various modeling frameworks. In line with this objective, we take a more biomimetic approach to negative weight placement, constraining them to local within-module connections. Interestingly, this approach restores the effect of hierarchical modularity, despite a drop in performance compared to allowing negative weights throughout the network. Altogether, these results confirm that the computational advantages of hierarchical modularity are robust to numerous modeling settings.

Next, we go beyond architectural modeling choices and extend our sensitivity analyses to more complex chaotic-system prediction tasks commonly used as reservoir computing benchmarks. Specifically, we use the Lorenz task, which models a real-world weather system, and the NARMA task, which combines nonlinearity and memory, making it highly complex. We implement both tasks as one-step-ahead prediction tasks (see “Methods”). For both tasks, peak performance is achieved at α = 1, with higher-order hierarchical modular networks systematically outperforming their lower-order counterparts (Supplementary Fig. 14, p < 0.05, CLES ≥58.99%, for all two-tailed, Wilcoxon-Mann-Whitney two-sample rank-sum tests). These results show that the computational advantages of hierarchical modularity can extend to more complex tasks, reinforcing its potential as a versatile neuromorphic design principle for artificial neural networks.

Discussion

In the present report, we develop a simple block modeling method to generate and compare multi-level hierarchical modular networks. We implement these networks as reservoirs to evaluate their computational properties. We find that hierarchical modular networks exhibit greater memory capacity than strictly modular networks. This performance increase is associated with more diverse neural timescales in hierarchical modular reservoirs and a higher prevalence of reciprocal and cyclic motifs. Furthermore, we show that the computational advantage of hierarchical modularity extends to a multitasking setting, as well as heterogeneous empirical structural connectivity patterns. Finally, using a hierarchical modularity-preserving network null model, we find that hierarchical modularity might play an important role in shaping the diverse portrait of intrinsic neural timescales we observe in the brain.

These results extend previous work on the benefits of modular and hierarchical architectures in reservoir computing75,78–81. In particular, Rodriguez et al.79 found that modular networks of threshold neurons showed improved memory capacity in contrast to random networks. They suggest that this effect is obtained by balancing local modular cohesion and global communication to achieve maximal network activity. However, they found modularity to decrease memory performance when using a hyperbolic tangent activation function. Here, we show that hierarchical modular networks can outperform both strictly modular and random networks at the memory capacity task in classic reservoirs of hyperbolic tangent neurons. This effect might be due to hierarchical modularity providing a more robust balance of segregative and integrative graph features through a principled scaling of connectivity from the local to the global level8.

Such an architecture can also prove useful for multitasking, as we show under various experimental scenarios combining memory capacity and non-linear transformation tasks. These results extend previous work from Loeffler et al.81, who showed that modularity improved multitasking performance in neuro-memristive nanowire networks. By taking advantage of modules for input and output placement, hierarchical modularity might maximize resource allocation via integration while limiting task interference via segregation81. Alternatively, a certain level of integration might also benefit generalization via regularization by noise from different tasks132,133. More generally, recent work has emphasized a fundamental tradeoff between network architectures supporting parallel processing of independent tasks and interactive processing of tasks with shared representations134. Future research could explore the potential of hierarchical modular networks to balance these competing demands—leveraging shared representations to facilitate generalization133, while limiting interference to support multitasking in tasks with overlapping structure. More broadly, these results open the door to tailoring network architectures to specific task domains. In particular, hierarchical modularity might prove useful in tackling more complex compositional task structures. In line with this hypothesis, it was previously shown that hierarchical modular architectures could be the expression of an evolutionary pressure to adapt to a rapidly changing environment by dividing complex, changing goals into reusable basic sub-tasks135.

The improved performance of hierarchical modular networks could also be understood through the lens of their local topology. Notably, additional levels of modules increase the prevalence of cycles of different lengths. These connection patterns could act as storage circuits113, maintaining the input signal over diverse time horizons136. They can also constitute a tuning mechanism for a reservoir’s frequency response71. Here, we find that modular networks matched in the number of short cycles to hierarchical modular networks reach similar memory capacity. This suggests that the functional enhancement provided by hierarchical modularity can be explained by lower-order cyclic structure. Importantly, this clarifies the mechanisms underlying the benefits of a ubiquitous network architecture and positions our framework as a parsimonious approach for introducing structured cyclicity. Furthermore, this equivalence does not extend to the multitasking setting, where hierarchical modular reservoirs outperform cycles-preserving null models, potentially because their nested organization enables principled input and output placement across modules. Altogether, these results suggest that cycles play an important role, but do not fully account for the computational advantages conferred by hierarchical modularity.

More generally, by analyzing all possible three-node motifs, we find that hierarchical modular networks are enriched in complex reciprocal and cyclic motifs. These results extend previous work from Sporns137 et al. characterizing the motif composition of fractal connectivity patterns. Of note, the enrichment of motif 9 (see Fig. 4b) in hierarchical modular networks echoes consistent results across several large-scale mammalian brain networks110,138. This motif consists of a chain of reciprocally connected nodes that do not form a loop. It denotes the potential for strong signaling between certain node pairs and the absence of direct connections between others. For this reason, it has been posited as another potential mechanism subserving the balance between information integration and segregation110,138. Altogether, these results reiterate the importance of considering higher-order interactions to understand the behavior of real-world systems139,140.

From a dynamical perspective, modular networks have previously been shown to give rise to time-scale separation, allowing to distinguish fast intra-modular and slow inter-modular processes114. These results have been generalized to hierarchical modularity in oscillator networks, showing the emergence of as many timescales as there are hierarchical levels141,142. Here, we study neural timescales in hierarchical modular networks as the decay time of a node’s activity autocorrelation, similarly to how it is studied in the brain98,99. We find an increase in the diversity of neural timescales in higher-order hierarchical modular networks, which positively correlates with their improvement in memory capacity. This result adds to accumulating computational evidence that heterogeneous and hierarchically organized timescales enhance the processing of complex temporal information143–152.

Beyond functional implications, our results in connectome-informed reservoirs complement a growing body of computational modeling work exploring the emergence of a timescale hierarchy in the brain. While biophysical approaches have mostly focused on time constants associated with cellular and synaptic processes, network-based accounts offer important complementary explanations91,100,144,153. Notably, clustered connectivity patterns have been associated with the emergence of slow timescales154,155. Some models, such as the one by Chaudhuri et al.156, also offer integrative accounts, combining neurobiologically grounded dynamics and connectivity. Using a threshold-linear recurrent network constrained by empirical macaque inter-regional connectivity, the authors show that both long-range projections and a cytoarchitectural gradient of excitation shape the emergence of a cortical timescale hierarchy. Here, we go beyond the qualitative matching of timescales to gradients of brain organization and directly relate simulated timescales to empirical neural timescales derived from MEG. We find that while our model relies solely on structural connectivity and generic nonlinear units, it can still produce a rich landscape of timescales reminiscent of empirical observations. Furthermore, using a hierarchical modularity-preserving network null model, we show that hierarchical modularity may constitute a core architectural principle underlying intrinsic timescales, offering a parsimonious account that complements biologically detailed models. Overall, these results reinforce the idea that network topology is not just a passive substrate, but an active determinant of neural dynamics, shaping computational capacity through structured heterogeneity.

From a modeling perspective, this work introduces two main contributions. First, we develop an intuitive stochastic blockmodeling method to generate and compare hierarchical modular networks. Numerous models of hierarchical modularity have already been developed41,44–47,62,75,137,141,157–161. Notably, Moretti & Muñoz45 distinguish a bottom-up approach—local modules are recursively connected with level-dependent density45,137,158—and a top-down approach—starting from a homogeneous random network, modules are recursively split, and inter-modular connections are rewired into their source module with a given probability47. In contrast, our model directly defines the whole nested block modular architecture via an edge probability matrix, with a size determined by the number of modules at the first level of the hierarchy. Previous modeling approaches mainly focused on an edge probability scaling parameter, bridging disconnected modular networks and homogeneous random networks137 or small-world networks45. Here, we introduce a simple and principled approach that begins with hierarchical modular networks of arbitrary depth and incrementally removes hierarchical levels, creating a continuum between strictly modular and hierarchical modular architectures while preserving network size, density, degree, and modularity. Second, we introduce a broadly applicable network null model that randomizes network topology while preserving network size, density, degree, and hierarchical modular structure. This model can be applied to any complex hierarchical modular network to disentangle topological or dynamical effects resulting from higher-order topological constraints from those passively endowed by hierarchical modularity. In network neuroscience, this work aligns with a growing effort to develop increasingly realistic network null models that retain meaningful structural properties beyond basic constraints such as degree or density162–164. An important benchmark model in network neuroscience combines regional connectivity (degree) and modules164,165. Future work could explore if the addition of a hierarchical modular architecture holds significantly more explanatory power in recapitulating brain network organization.

The present findings should be interpreted with respect to some methodological limitations. First, we focus on benchmark tasks that, while common in reservoir computing, remain relatively simple. Future work should examine whether these findings generalize to more complex tasks and real-world applications. Second, to isolate the effects of hierarchical modularity on memory capacity, we employ a classic reservoir model equipped with homogeneous dynamics. Future studies could examine the effect of heterogeneous dynamics, notably via node-wise internal memory95, and introduce incremental layers of biological details, including microarchitectural excitation gradients156,166, cell type-specific dynamics167, or geometry-informed conduction delays168. Third, we find that the effect of hierarchical modularity on memory capacity only generalizes to signed networks when negative weights are introduced in first-level modules. This indicates that random placement of negative weights might effectively blur a binary hierarchical modular organization. Given the importance of negative connections for representation capacity169, future work should explore how to most efficiently integrate them in hierarchical modular architectures. Interestingly, placing negative weights only in low-level modules reflects the prevalent modeling assumption that the brain is organized in local populations of interacting excitatory and inhibitory neurons, coupled exclusively through excitatory long-range connections170,171. More broadly, these results pave the way for more complex multi-region “network of networks" RNN models172. Finally, the structural connectome used in this study was reconstructed using diffusion-weighted MRI, which is prone to false positives and false negatives173–175. Although we mitigated this by constructing a group-representative connectome, future work could benefit from using data derived from more accurate invasive techniques, such as tract tracing, to validate and extend our findings.

In summary, this work introduces a principled framework for constructing and comparing hierarchical modular networks, demonstrating that hierarchical modularity can enhance memory capacity, multitasking, and temporal processing in neuromorphic reservoir systems. Extending these findings to connectome-informed reservoirs, we show that hierarchical modularity contributes to the emergence of brain-like neural timescales. Together, these results advance our understanding of structure-function relationships in neural systems and point to hierarchical modularity as a powerful inductive bias for the design of neuromorphic computing architectures. Future work could build on this foundation by exploring more biologically realistic dynamics and validating these principles in real neural circuits. More generally, this study contributes to ongoing efforts at the intersection of neuroscience, artificial intelligence, and cognitive science, demonstrating how network science may serve as a shared language for advancing cross-disciplinary knowledge.

Methods

Hierarchical modular network model

Here, we propose a model for constructing homogeneous hierarchical modular networks using stochastic block modeling. In contrast to other models of hierarchical modularity, our implementation allows systematic comparison of networks with different numbers of hierarchical levels while preserving basic network features, such as network size, density, degree, and modularity.

We start by defining hierarchical modular networks in line with the definition of “networks with a nested hierarchical organization" proposed by Sales-Pardo et al.161. First, we define modules as communities of nodes that are more densely connected to each other than to other nodes in the network. Each module’s internal connectivity can, in turn, be divided into smaller submodules at increasingly lower, more fine-grained hierarchical levels. Importantly, submodules are entirely determined by the connections between nodes of the higher-order module, i.e., they are encapsulated8,161. Note that this definition does not accept the existence of soft boundaries or overlap between modules. Furthermore, in line with Sales-Pardo et al.161, we restrict our model to homogeneous hierarchical modular networks, that is, at each hierarchical level, all modules have the same size and can be divided into the same number of lower-order modules.

From this definition, we can infer that the resulting networks will have a nested block-diagonal structure160,161. They can therefore be implemented using a stochastic block model41,160, where edges are added independently for each pair of nodes, with a probability that only depends on the blocks to which the nodes belong176. The model is implemented as follows:

Consider Ml, the number of modules at level l, each of size nl nodes. Next, consider gl = Ml−1/Ml = nl/nl−1 for l > 1, the number of modules at level l − 1 encapsulated in each module at level l, with L, the total number of hierarchical levels. We start by creating an empty edge probability matrix of size M1 × M1. This matrix specifies the density of edges within (diagonal) and between (off-diagonal) blocks (modules) of the first hierarchical level. First, we fill the diagonal with p1, the probability that two nodes are connected if they belong to the same module at level 1. Second, for each consecutive set of g2 blocks, we assign p2 (the probability that two nodes are connected if they are part of different modules at level 1, but the same module at level 2) to the off-diagonal blocks that complete a square of size g2 blocks. We repeat this step for each hierarchical level, with bl=∏i=2lgi the number of diagonal blocks encapsulated in each level-l module. The final level consists of the whole network. Importantly, given that modules must have greater internal than external density, p1 > p2 > ⋯ > pL. Here, we define the edge probability scaling as pl = rl−1p1, with 0 < r < 1. Together, the resulting edge probability matrix and n1 fully determine the model.

From this, we can derive the expected degree E[d] of a node as the sum of contributions from all levels. At level 1, each node can connect to n1 − 1 other nodes in its module (excluding self-loops) with intra-modular probability p1. Therefore, the expected contribution at level 1 is:

E[d1]=(n1−1)p1, 1

At higher levels, l≥2, each node can connect to nodes in the other gl − 1 submodules within its module. The number of available connections is therefore (gl − 1)nl−1. With probability pl = rl−1p1, the expected degree contribution is:

E[dl]=(gl−1)nl−1rl−1p1, 2

Summing over all levels:

E[d]=(n1−1)p1+∑l=2L(gl−1)nl−1rl−1p1, 3

Using the recursive formula nl−1=n1∏i=2l−1gi, we obtain:

E[d]=(n1−1)p1+∑l=2L(gl−1)n1∏i=2l−1girl−1p1, 4

Here, we construct hierarchical modular networks with M1 = 8 first-level modules of n1 = 50 nodes, with intra-modular edge probability p1 = 0.5. These modules are iteratively paired (gl = 2) into higher-order modules, with inter-modular connectivity pl halved (r = 0.5) at each hierarchical level, for a total of L = 4 hierarchical levels. This yields the following edge probability matrix:

p1p2p3p3p4p4p4p4p2p1p3p3p4p4p4p4p3p3p1p2p4p4p4p4p3p3p2p1p4p4p4p4p4p4p4p4p1p2p3p3p4p4p4p4p2p1p3p3p4p4p4p4p3p3p1p2p4p4p4p4p3p3p2p1

Next, we develop a method for comparing networks with different numbers of hierarchical levels, while preserving basic network features, such as network size, density, degree, and modularity on average. Starting from a network with L hierarchical levels, levels can be iteratively removed, starting from the highest level L. This is done be replacing, in the edge probability matrix, the values pL and pL−1 by:

pL′=(gL−1−1)bL−2pL−1+(gL−1)bL−1pL(gL−1−1)bL−2+(gL−1)bL−1, 5

with pL′, the new inter-modular connectivity at the highest level L′=L−1, resulting from the average of pL and pL−1, weighted by their prevalence in each row (or column) of the edge probability matrix.

This procedure maintains the expected degree, and by extension, the expected number of edges of the resulting network, fixed. Moreover, since M1 and n1 are maintained, network size and expected density are also preserved. Finally, since the edge probabilities within modules at the preserved hierarchical levels are maintained, and the row (or column) sums of the edge probability matrix are maintained, expected modularity, as measured using Newman’s Q122, is also preserved for the remaining hierarchical levels.

Here, we run this procedure twice, bridging strictly modular and hierarchical modular networks across three levels. We implement all stochastic block models in the hierarchy using the openly available NetworkX package (https://networkx.org/documentation/stable/index.html)177. They all share an expected degree of 62 and an expected density of 15.54%, for a total of 24800 edges. However, note that the expected density drops to 9.95%, for a total of approximately 15873 edges following pruning in the main analyses (see “Hyperparameter tuning”).

Reservoir computing

To relate hierarchical modular network structure to function, we use reservoir computing, a dynamical systems-oriented machine learning framework taking its roots in computational neuroscience63,65,69,178. In a classic reservoir computing architecture, the reservoir is a non-linear recurrent neural network, complemented by an input layer and a linear readout module. In a standard learning task, an external time series is introduced into the reservoir through a set of selected input nodes. The input signal propagates across the reservoir, and output signals are recorded from a set of selected output nodes. The readout module is then trained to approximate a target signal by means of a linear combination of these output signals. Importantly, the reservoir remains unchanged during training, which makes this model very efficient and facilitates the mapping of the reservoir’s architectural features to its performance. Fig. 1 illustrates the paradigm.

Reservoir computing relies on two fundamental computational properties: fading memory—reservoir states depend only on a finite history of past inputs—and pairwise separation—distinct input histories lead to distinct network states65,70,179. The reservoir’s recurrent connections passively endow it with memory, whereas the complex non-linear interactions that govern its dynamics perform a high-dimensional temporal expansion of the input signal, which has the potential to transform non-linearly separable patterns into linearly separable representations70.

All the reservoir computing experiments were performed using the conn2res open-source package66 (https://github.com/netneurolab/conn2res) with Python 3.9. 0 on a machine running Ubuntu 20.04.6 LTS. A typical experiment was parallelized across networks, with up to 50 jobs running simultaneously, for a total duration of approximately 15 minutes.

Reservoir dynamics

The reservoir is a recurrent neural network of hyperbolic tangent units. The reservoir states obey the following discrete-time update equation:

x(t+1)=tanh(Winu(t+1)+Wx(t)), 6

where x(t) is the vector of nodal reservoir activation states at time t, u(t) is the input signal at time t, Win is the binary input matrix mapping the input signal to the input nodes, and W is the reservoir weight matrix. For the stochastic block model graphs, we assign random uniformly distributed weights to the produced edges: W ~ U(0, 1). For the empirical connectome, weights correspond to the connectivity measures derived from diffusion MRI data.

Stability

We parametrically tune the global dynamics of the reservoir by fixing its spectral radius, i.e., the modulus of its leading eigenvalue, to desired values. Specifically, the weight matrix was divided by its spectral radius, effectively fixing it at 1. The resulting matrix was then multiplied by a range of α values (α = {0.6, 0.8, 1.0, 1.2, 1.4}), fixing its spectral radius at α; W in equation (6) can therefore be expressed as:

W=αW0ρ(W0), 7

where W0 is the original weight matrix and ρ(W0) is its spectral radius. Reservoir dynamics are guaranteed to be stable for α < 164,69,96 and therefore satisfy the echo state property for all inputs—a property similar to fading memory in which state trajectories converge for the same input independently of initial conditions. Conversely, dynamics are unstable or chaotic for α > 1 and are described as critical at α ≈ 1, or at the edge of chaos67,92. Note, however, that dynamics are not always chaotic for α > 1. Notably, recurrent neural networks can be stabilized by strong inputs69,180,181, which can lead to unit saturation70,94,96,117. In our experiments, strictly positive weights also seem to lead to unit saturation (see Supplementary Fig. 1 for Lyapunov exponent estimations using the method presented in ref. 182).

Readout module

The readout module approximates a target signal y(t) by means of a linear combination of selected output signals xout(t):

y^(t)=Woutxout(t), 8

where Wout is the readout weight matrix and y^ is the final output which approximates y(t). The weights are trained in a supervised setting using Ridge regression as implemented in sklearn (https://scikit-learn.org/stable/)183.

Memory capacity

To evaluate reservoir memory, we chose the widely used memory capacity task, which measures the reservoir’s ability to preserve the representations of past stimuli in continuing iterations of its internal state computation67,70,76,79,83,92–95. In this task, the readout module is trained to reproduce a time-delayed version of a random uniformly distributed input signal u(t) ~ U( − 1, 1). Specifically, y(t) = u(t − τ), where τ is a given time lag. Here, we consider T = 16 time lags, monotonically increased in one time point steps in the range [1, 16]. Note that there are as many linear units as there are time lags in the readout module, and they are all trained independently.

We separately generated a training and a testing input signal of 2100 time points each. Different signals were used for each network evaluated. Reservoir states were simulated separately for each time series. The first 100 time points were discarded from the resulting reservoir state trajectories to account for initial transients. The training reservoir states of the selected output nodes were then used to train the readout module to reproduce the input signal at different time lags. Finally, the testing reservoir states were used to test the performance. For every τ, performance was measured using the R2 coefficient of determination regression score. Regression scores were then averaged across all time delays to obtain the memory capacity (MC):

MC=∑τR2(y,y^)T, 9

For the synthetic hierarchical modular networks, input nodes correspond to all the nodes in a randomly selected first-level module. Output nodes correspond to the nodes of all the other 7 50-node modules. A different readout module is trained for each one, and the final performance is averaged across all readout modules. The 8 first-level modules are used as input and output across all levels of the hierarchy. For the empirical connectome, performance is averaged across all possible combinations of input and output modules to account for module heterogeneity.

Multitasking

To evaluate reservoir multitasking capacity, we adapt a multitasking framework developed by Loeffler et al.81 for use in neuro-memristive nanowire networks. The multitasking setup involves the memory capacity task, in addition to a non-linear transformation task. Thus, in addition to evaluating multitasking, this framework captures the ability of the reservoir to balance two fundamental, but antagonistic properties: information storage and non-linear information processing70,95,117. The non-linear transformation task consists of regressing a slowly varying sinusoidal input signal to a different waveform, specifically, a square signal in this case115,116. Performance is also measured using the R2 coefficient of determination. Note that since the target signal is not time-lagged, this effectively consists in a one-step-ahead prediction, i.e., u(t) is propagated to the input nodes at time t as per equation (6), but is not propagated within the reservoir; xout(t) therefore only depends on (u(0), u(1), …, u(t − 1)).

A multitasking experiment, as performed using the synthetic hierarchical modular networks, proceeds as follows: The set of 4 modules encapsulated in the first of the 2 third-level modules is assigned memory capacity tasks. The other set is assigned non-linear transformation tasks (see Fig. 5). In the 2-task scenario, input nodes for each task correspond to all the nodes in a randomly selected first-level module. The other 3 first-level 50-node modules in the same third-level module are used as output. As for the memory capacity task, a different readout module is trained for each one, and the final performance is averaged across all readout modules. In the 4-task scenario, input nodes for each task also correspond to all the nodes in a first-level module. The other first-level 50-node module in the same second-level module is used as output. Finally, in the 8-task scenario, an input node is randomly selected in each of the 8 first-level modules. All of the other 49 nodes in each module are used as output. When using more than 2 tasks, input signals are varied within a task category by using different seeds for the memory capacity task and varying the signal frequency for the non-linear transformation task. Specifically, the sinusoidal signal can complete either 10, 20, 30, or 40 complete cycles. The initial phase is also randomized. Note that the task assignments are maintained across networks of all three levels of the hierarchy.

As for the memory capacity task, we separately generated a training and a testing input signal of 2100 time points each and a warmup period of 100 time points was discarded from the resulting reservoir state trajectories. Different signals were also used for each network evaluated. All signals were propagated simultaneously across the network, and a separate readout module was trained for each output module. The multitasking performance was assessed as the average R2 score across all tasks.

Dynamical systems

To evaluate chaotic time series prediction, we use two standard reservoir computing tasks: the Lorenz184–188 and the NARMA10 tasks95,189–193. We chose the Lorenz task because it models a real-world weather system, i.e., atmospheric convection, and the NARMA task because it combines nonlinearity and memory, making it highly complex. Both tasks were implemented as one-step-ahead prediction tasks, and performance was measured using the R2 coefficient of determination.

As for the memory capacity task, we separately generated a training and a testing input signal of 2100 time points each and a warmup period of 100 time points was discarded from the resulting reservoir state trajectories. The signals were generated using the reservoirpy open-source package194 (https://reservoirpy.readthedocs.io/en/stable/index.html). Different signals were also used for each network evaluated. An input module was randomly selected among the first 8 modules. One input node per input signal was then randomly selected from the input module. All the 350 nodes in all the other 7 modules were used as output. A single readout module was trained for all outputs.

Lorenz

The state (x, y, z) of the Lorenz system evolves according to the following set of three coupled nonlinear differential equations:

dxdt=σ(y−x)dydt=x(ρ−z)−ydzdt=xy−βz, 10

with standard parametrization (σ = 10, β = 8/3, ρ = 28) for chaotic behavior. The system state is initialized following a uniform distribution in [ − 20, 20] for each variable, and the time series is approximated using a Runge-Kutta method of order 5(4) with time step δt = 0.03.

NARMA

The nonlinear autoregressive moving average (NARMA) system is defined on discrete time. Let the state and input of the system at time t be yt and ut, respectively. The tenth-order NARMA system is expressed by:

yt+1=αyt+βyt∑i=09yt−i+γutut−9+δ 11

Following previous work95,190–193, parameters (α, β, γ, δ) are set to (0.3, 0.05, 1.5, 0.1). The system state is initialized at 0, and the input signal follows a uniform distribution in [0, 0.45]192.

Hyperparameter tuning

Reservoir computing performance depends on many interacting hyperparameters, which are set a priori70,79,195. For example, spectral radius α can be tuned to control the reservoir dynamics, and we study its effect on performance in the main analyses. Other features that pertain to the hierarchical modular network model are studied in the Sensitivity analyses. Finally, three hyperparameters are tuned via a random search196 procedure: input gain g, pruning ratio p, and Tikhonov regularization parameter λ. The input gain scales the input matrix. The pruning ratio corresponds to the fraction of randomly selected edges to delete from the reservoir. Note that on average, this retains the relative density, degree, and modularity across hierarchical levels. Finally, the Tikhonov regularization parameter controls the strength of the L2 penalty in Ridge regression.

Hyperparameter tuning allows us to control for these parameters in subsequent analyses. It also contributes to addressing our research question by aggregating data across many experimental setups to select a high-performing regime that is not biased towards any topology or dynamical regime a priori. The procedure works as follows:

We start by sampling 125 hyperparameter configurations from uniform distributions over given ranges. Specifically, log10(g)~U(−10,1), p ~ U(0, 1), and log10(λ)~U(−10,1). In parallel, we consider random subsets of 25 synthetic networks from each hierarchical level and all 5 values of α considered in the main analyses. Then, using each hyperparameter configuration, we train and test each reservoir at the task at hand using the previously described procedures. The datasets are generated independently from the ones used to test the final model. Note that hyperparameter configurations are discarded if p does not retain strongly connected networks (any node must be reachable from any other node).

For each hyperparameter combination and network, we select the best-performing spectral radius. We then average performance across all networks within each hierarchical level. Finally, we select the hyperparameter combination that leads to the best performance across levels. In this way, we obtain the hyperparameter regime with the best possible performance across dynamical regimes and hierarchical levels.

Note that for the empirical connectome and its null surrogates, we use the same procedure, but only tune input gain and regularization strength, maintaining the empirical topology. Furthermore, hyperparameter tuning is performed only on the empirical connectome, thereby favoring it in the selected dynamical regime.

Timescales

In line with previous definitions of neural timescales98,99,105, we measure the timescale of a node’s activation time series as the time constant of an exponential decay function fit to the autocorrelation function (ACF):

ACF(τ)=e−ττc, 12

where τ is the time lag and τc is the characteristic timescale.

We calculate the autocorrelation function using the statsmodels open-source package (https://www.statsmodels.org/devel/)197. We only consider lags up to the first negative autocorrelation value in each time series. We then linearize the model by taking the logarithm of the resulting autocorrelation values and fit the characteristic time scale using least-squares fitting via numpy (https://numpy.org/citing-numpy/)198. Note that we only evaluate the output nodes’ timescales to avoid the biasing effect of the input signal. Furthermore, we discard the warmup period from the activation time series prior to estimating timescales.

Graph analysis

Modularity maximization

To identify hierarchical modular partitions in the empirical connectome, we use the Louvain modularity maximization algorithm199. This algorithm detects non-overlapping communities of nodes that maximize the weight of within-community edges and minimize the weight of between-community edges using the quality function:

Q=12m∑ij(wij−sisj2m)δ(ci,cj), 13

where m is the total weight of all edges in the network, wij is the weight of the edge incident on nodes i and j, si is the strength of node i, ci is the community assignment of node i and δ(ci, cj) is the Kronecker delta function and is equal to 1 when ci = cj and 0 otherwise.

The algorithm recursively applies a sequence of two phases: modularity optimization, in which nodal community labels are updated based on their neighbors' labels, and community aggregation, in which lower-level communities are nested within higher-order communities. Thus, the algorithm naturally yields hierarchical partitions. The algorithm was applied using the openly available modularity_louvain_und function from the Python version of the Brain Connectivity Toolbox (https://github.com/aestrivex/bctpy)200. To find a representative solution, we ran the algorithm 1000 times with different seeds and computed the z-scored Rand index201 between every pair of first-level module partitions. We then chose the solution most similar to all others, retaining its higher-level modular partition. Note that we chose to select for representativeness at the finest resolution because the first-level modules are used to define reservoir inputs and outputs.

Clustering coefficient

For binary directed graphs such as the synthetic hierarchical modular networks, the clustering coefficient of a node corresponds to the fraction of all possible directed triangles around a node that exist. The clustering coefficient C of a node u can be defined as112:

Cu=Tu2(kutot(kutot−1)−2kurec), 14

where Tu is the number of directed triangles through node u, kutot is the sum of its in- and out-degree, and kurec is its reciprocal degree.

It was computed using the openly available clustering_coef_bd function from the Python version of the Brain Connectivity Toolbox (https://github.com/aestrivex/bctpy)200. The network average clustering coefficient was computed as the mean across local clustering coefficients of all nodes in the network.

For weighted undirected graphs such as the empirical human connectome, the weighted local clustering coefficient of a node corresponds to the mean intensity of triangles around a node. The clustering coefficient C of a node u can be defined as128:

Cu=2ku(ku−1)∑ijwuiwijwju13, 15

where ku is the degree of node u and wij is the weight of the edge incident on nodes i and j, scaled by the largest weight in the network. It was computed using the openly available clustering_coef_wu function from the Python version of the Brain Connectivity Toolbox (https://github.com/aestrivex/bctpy)200. The module average clustering coefficient was computed as the mean across local clustering coefficients of all nodes in a module.

Cycles and motifs

A cycle is a path that begins and ends at the same node. A simple cycle additionally does not allow for repeated nodes. For the synthetic hierarchical modular networks, we compute all simple cycles up to length 5 using networkx177, which implements a version of the algorithm of Gupta and Suzumura202. While we limit our analysis to short cycles, note that all networks considered have a short diameter. Moreover, larger cycles are usually less relevant to network function and accounting for them is computationally prohibitive203.

Motifs are local connection patterns that constitute the building blocks of a network’s functional repertoire109. Here, we study three-node motifs, for which there are 13 possible configurations. Specifically, we focus on functional motifs, which represent elementary information processing modes that can be engaged in a structural motif110. Functional motifs consist of all the subdivisions of a structural motif into the other structural motifs it contains. We count the number of each motif in a network using the Brain Connectivity Toolbox (https://sites.google.com/site/bctnet/)200. We then normalize these values by the total number of all motifs to obtain frequencies.

Communicability

Communicability between two nodes is defined as the length-weighted sum of all walks between them, with longer walks receiving progressively less weight130. The communicability matrix C of pairwise communicability estimates between all nodes in a network is calculated as the matrix exponential of the adjacency matrix A: C = eA. Following129, we first normalize the adjacency matrix as D1/2AD1/2, where D is the diagonal weighted degree matrix. This normalization mitigates the disproportionate influence of high-strength nodes on communicability estimates.

Data acquisition and connectome reconstruction

Magnetic resonance imaging (MRI) data from n = 327 unrelated, healthy young adults (28.6  ± 3.73 years old, 55% female) from the Human Connectome Project (HCP) were used to reconstruct structural connectivity networks and build a group-representative connectome204,205. Participants were scanned at Washington University using the HCP’s customized 3-Tesla Siemens Connectome Skyra MRI scanner. The protocol included (1) a magnetization-prepared rapid acquisition gradient echo (MPRAGE) sequence (TR  = 2400 ms, TE  = 2.14 ms, FOV  = 224 mm  × 224 mm, voxel size  = 0.7 mm3, 256 slices) and (2) a spin-echo echo-planar imaging (EPI) sequence (TR  = 5520 ms, TE  = 89.5 ms, FOV  = 210 mm  × 180 mm, voxel size  = 1.25 mm3, b-value  = 1000, 2000, and 3000 s/mm2, 270 diffusion directions, 18 b0 volumes). All participants provided informed written consent and the protocol was approved by the Washington University Institutional Review Board. Further details on data acquisition can be found in ref. 120.

The HCP minimal preprocessing pipelines206 were applied to the MRI data, and streamline tractography tools from the MRtrix3 open-source software207 were used to reconstruct structural connectivity networks from diffusion-weighted MRI data in individual participants. The MPRAGE volume was segmented into white matter, gray matter, and cerebrospinal fluid to perform anatomically constrained tractography. Gray matter was parcellated into 400 regions according to the Schaefer functional atlas208. Fiber orientation distributions were generated using the multi-shell multi-tissue constrained spherical deconvolution algorithm from MRtrix3209,210. Tractograms were initialized with 40 million streamlines and constrained with a maximum tract length of 250 and a fractional anisotropy cutoff of 0.06. A spherical deconvolution-informed filtering procedure (SIFT2) was then applied following Smith et al.211 to estimate streamline-wise cross-section multipliers. For additional details on MRI data preprocessing and connectome reconstruction, see ref. 212.

Group-representative structural networks were then generated to amplify signal-to-noise ratio using functions from the netneurotools open-source package (https://github.com/netneurolab/netneurotools). A consensus approach was adopted to preserve (1) the mean density across participants and (2) the participant-level edge length distribution213. First, the cumulative edge length distribution across individual structural connectivity matrices is divided into M bins, with M corresponding to the average number of edges across participants. The edge occurring most frequently across participants is then selected within each bin, breaking ties by selecting the edge with the highest average weight. This procedure is performed separately for intra- and inter-hemispheric edges to ensure that the latter are not under-represented. The resulting edge set constitutes the distance-dependent group-consensus structural network. The weight of each edge is then computed as the mean across participants. Finally, the weights were log-transformed and rescaled to the [0, 1] range to reduce variability.

Intrinsic timescales from magnetoencephalography (MEG)

The neuromaps (https://github.com/netneurolab/neuromaps)214 toolbox was used to obtain an intrinsic timescale map derived from MEG. The map was downloaded in its native fsLR4k space. The Schaefer-400 atlas in fsLR32k space was then downsampled using nearest neighbor interpolation to parcellate the map in 400 cortical regions. Details regarding data acquisition and processing are available at131. Briefly, resting-state MEG data were acquired in a subset of n = 33 unrelated healthy young adults (22-35 years old, 16 female) from the Human Connectome Project (HCP). The 6-minute scans were sampled at 2034.5 Hz and processed using Brainstorm215. MEG recordings were co-registered with individual MRI scans, downsampled to 509 Hz, and preprocessed using notch filters at 60, 120, 180, 240, and 300 Hz, along with a high-pass filter at 0.3 Hz to remove slow-wave and DC-offset artifacts. Artifacts such as heartbeats, eye movements, and muscle activity were removed using automatic procedures involving electrocardiogram (ECG) and electrooculogram (EOG) recordings and Signal-Space Projection (SSP). Source reconstruction was performed using linearly constrained minimum variance (LCMV) beamforming on the fsLR4k cortical surface, with data covariance regularization and noise covariance normalization. Finally, intrinsic neural timescales were derived from source-level power spectral densities using the FOOOF toolbox216, which decomposes power spectra into periodic and aperiodic components. The “knee frequency" from the aperiodic fit was used to compute the intrinsic timescales over the frequency range of 1-60 Hz.

Network null models

Degree-preserving rewiring

To randomize network topology while preserving network size (number of nodes), density (proportion of edges present), and degree sequence (number of edges incident to each node), we applied the classic switching method124 using the openly available randmio_dir_connected function from the Python version of the Brain Connectivity Toolbox (https://github.com/aestrivex/bctpy)200. The method was applied to the third-level hierarchical modular networks to generate an ensemble of degree-preserving randomized surrogates.

Hierarchical modular null model

To randomize a network while preserving its (hierarchical) modular architecture in addition to its size, density, and degree sequence, we develop a network null model building on conventional degree-preserving rewiring. Our model draws on an existing modular random graph model121 and the intuitive notion that modularity can be operationalized as the relative density of intra-modular connections122,123. For a strictly modular network null model, separately rewiring within and between-module edges suffices to randomize a network while preserving intra-modular density121. Generalizing to hierarchical modularity, it can be inferred that L nested partitions will result in L + 1 subgraphs of fixed density in order for each module of each partition level to maintain intra-modular connectivity (density within-module at level l + 1 but between modules at level l must also be maintained). The algorithm implementing this model proceeds as follows:

Consider Ge = (V, Ee), the empirical graph to be randomized with vertex set V and edge set Ee and Gc = Kn = (V, Ec), the complete graph of the same size n = ∣V∣, where Ec contains all possible edges. Next, consider the series of nested partitions P(1),P(2),…,P(L), where P(l)={C1(l),C2(l),…,CMl(l)} is the partition at level l, Ci(l)⊆V is community i at level l and Ml is the number of communities at level l.

We start by creating hierarchical decompositions of Ge and Gc as follows:

  • We create l subgraphs of Gc that consist of the complete graphs of all communities at level l, respectively:
    Gc(l)=⋃Ci(l)∈P(l)K∣Ci(l)∣, 16
    The final level is the fully connected graph Gc(L+1)=Gc.
  • We then build the corresponding empirical subgraphs:
    Ge(l)=Ge∩Gc(l), 17
    as the intersections of Ge and Gc(l)
  • For both Ge and Gc, we then build the incremental subgraphs:
    H(l)=G(l)−G(l−1), 18
    forl = 2, …, L + 1. 

    Subgraphs H(l) are therefore difference-based subgraphs corresponding to the additional connections introduced at level l, with H(1) = G(1) as the base case.

  • Next, for each empirical incremental subgraph He(l), we apply degree-preserving rewiring124, while introducing the additional constraint that the edge swap:
    ⟨(u,v),(w,x)⟩→⟨(u,x),(w,v)⟩, 19
    is only accepted if (u, x) and (w, v) also exist in Hc(l). This procedure results in the rewired incremental subgraphs Hr(l).
  • Finally, the hierarchical modularity-preserving randomized network Gr is obtained by summing the rewired incremental subgraphs Hr(l):
    Gr=⋃l=1L+1Hr(l), 20

Cycles-preserving null model

To randomize a third-level hierarchical modular network while preserving first-level modules and cycle counts, we start by applying degree-preserving rewiring with the additional constraint that the number of edges within and between modules is preserved. We then continue to perform degree and modularity-preserving double-edge swaps, but additionally condition swap acceptance on a probabilistic Metropolis criterion according to a simulated annealing schedule as in ref. 162. Here, we define the cost function as the sum of squared differences in counts for cycles of length 3 and 4.

Supplementary information

Acknowledgements

We thank Justine Hansen, Eric Ceballos, Vincent Bazinet, Zhen-Qi Liu, Asa Farahani, Yigu Zhou, Tahmineh Taheri, Moohebat Pourmajidian, and Aleksandar Mihajlovski for helpful comments.

Author contributions

F.M. and B.M. conceived the study. F.M. and L.E.S. contributed software. F.M. performed the formal analysis. F.M. and B.M. wrote the paper. F.M., A.I.L., L.E.S, G.L., and B.M. contributed to interpretation of data and paper revision. B.M. was the project administrator.

Peer review

Peer review information

Nature Communications thanks Constantine Dovrolis and Zdenka Kuncic for their contribution to the peer review of this work. A peer review file is available.

Funding

F.M. acknowledges support from the Fonds de Recherche du Québec—Nature et Technologies, the Healthy Brains for Healthy Lives initiative and the Center Union Neurosciences and Artificial Intelligence—Quebec. A.I.L. was supported by the Wellcome Trust [grant number 226924/Z/23/Z] and St. John’s College, Cambridge. G.L. acknowledges support from the Canada CIFAR AI Chair program as well as the Canada Research Chair in Neural Computations and Interfacing. B.M. acknowledges support from the Natural Sciences and Engineering Research Council of Canada, Canadian Institutes of Health Research, Brain Canada Foundation Future Leaders Fund, the Canada Research Chairs Program, the Michael J. Fox Foundation and the Healthy Brains for Healthy Lives initiative.

Data availability

Data used in this study is available at https://github.com/netneurolab/milisav_hierarchical_modularity217. The original HCP dataset120 is available at https://db.humanconnectome.org/data/projects/HCP_1200.

Code availability

The Python code used to perform the experiments and generate the figures presented in this manuscript is available at https://github.com/netneurolab/milisav_hierarchical_modularity217.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-026-74466-2.

References

  • 1.Chen, Z. J., He, Y., Rosa-Neto, P., Germann, J. & Evans, A. C. Revealing modular architecture of human brain structural networks by using cortical thickness from MRI. Cereb. Cortex18, 2374–2381 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.He, Y. et al. Uncovering intrinsic modular organization of spontaneous brain activity in humans. PLoS ONE4, e5226 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Meunier, D., Lambiotte, R. & Bullmore, E. T. Modular and hierarchically modular organization of brain networks. Front. Neurosci.4, 200 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Sporns, O. & Betzel, R. F. Modular brain networks. Annu. Rev. Psychol.67, 613–640 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Fodor, J. A. The Modularity of Mind (MIT Press, 1983).
  • 6.Coltheart, M. Modularity and cognition. Trends Cogn. Sci.3, 115–120 (1999). [DOI] [PubMed] [Google Scholar]
  • 7.Betzel, R. F. & Bassett, D. S. Multi-scale brain networks. NeuroImage160, 73–83 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Hilgetag, C. C. & Goulas, A. ‘hierarchy’ in the organization of brain networks. Philos. Trans. R. Soc. B375, 20190319 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Park, H.-J. & Friston, K. Structural and functional brain networks: from connections to cognition. Science342, 1238411 (2013). [DOI] [PubMed] [Google Scholar]
  • 10.Meunier, D., Lambiotte, R., Fornito, A., Ersche, K. & Bullmore, E. T. Hierarchical modularity in human brain functional networks. Front. Neuroinformat.3, 571 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Anderson, M. L., Kinnison, J. & Pessoa, L. Describing functional diversity of brain regions and brain networks. NeuroImage73, 50–58 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Shine, J. M. & Poldrack, R. A. Principles of dynamic network reconfiguration across diverse brain states. NeuroImage180, 396–405 (2018). [DOI] [PubMed] [Google Scholar]
  • 13.Sun, H. & Guyon, I. In Science and Information Conference, 561–595 (Springer, 2023).
  • 14.Achterberg, J., Akarca, D., Strouse, D., Duncan, J. & Astle, D. E. Spatially embedded recurrent neural networks reveal widespread links between structural and functional neuroscience findings. Nat. Mach. Intell.5, 1369–1381 (2023). [Google Scholar]
  • 15.Clune, J., Mouret, J.-B. & Lipson, H. The evolutionary origins of modularity. Proc. R. Soc. B Biol. Sci.280, 20122863 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Csordás, R., van Steenkiste, S. & Schmidhuber, J. Are neural nets modular? Inspecting functional modularity through differentiable weight masks. In International Conference on Learning Representations (ICLR, 2021).
  • 17.Filan, D. et al. Clusterability in neural networks. Preprint at https://arxiv.org/abs/2103.03386 (2021).
  • 18.Gu, S., Mattar, M. G., Tang, H. & Pan, G. Emergence and reconfiguration of modular structure for artificial neural networks during continual familiarity detection. Sci. Adv.10, eadm8430 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Lange, R. D., Rolnick, D. & Kording, K. Clustering units in neural networks: Upstream vs downstream information. Trans. Mach. Learn. Res. Preprint at https://arxiv.org/abs/2203.11815 (2022).
  • 20.Liu, Z., Gan, E. & Tegmark, M. Seeing is believing: Brain-inspired modular training for mechanistic interpretability. Entropy26, 41 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Malakarjun Patil, S., Michael, L. & Dovrolis, C. Neural sculpting: uncovering hierarchically modular task structure in neural networks through pruning and network analysis. Adv. Neural Inf. Process. Syst.36, 18495–18531 (2023). [Google Scholar]
  • 22.Tanner, J., Mansour L. S., Coletta, L., Gozzi, A. & Betzel, R. F. et al. Functional connectivity modules in recurrent neural networks: function, origin and dynamics. Preprint at 10.48550/arXiv.2310.20601 (2023).
  • 23.Amer, M. & Maul, T. A review of modularization techniques in artificial neural networks. Artif. Intell. Rev.52, 527–561 (2019). [Google Scholar]
  • 24.Andreas, J., Rohrbach, M., Darrell, T. & Klein, D. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 39–48 (IEEE, 2016).
  • 25.Chang, M., Gupta, A., Levine, S. & Griffiths, T. L. Automatically composing representation transformations as a means for generalization. In International Conference on Learning Representations (ICLR, 2018).
  • 26.Goyal, A. et al. Recurrent independent mechanisms. In International Conference on Learning Representations (ICLR, 2021).
  • 27.Kirsch, L., Kunze, J. & Barber, D. Modular networks: Learning to decompose neural computation. In Advances in Neural Information Processing Systems 31 (NeurIPS, 2018).
  • 28.Mittal, S., Bengio, Y. & Lajoie, G. Is a modular architecture enough? Adv. Neural Inf. Process. Syst.35, 28747–28760 (2022). [Google Scholar]
  • 29.Pfeiffer, J., Ruder, S., Vulić, I. & Ponti, E. Modular deep learning. Trans. Mach. Learn. Res. https://arxiv.org/abs/2302.11529 (2023).
  • 30.Purushwalkam, S., Nickel, M., Gupta, A. & Ranzato, M. Task-driven modular networks for zero-shot compositional learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 3593–3602 (IEEE, 2019).
  • 31.Rosenbaum, C., Cases, I., Riemer, M. & Klinger, T. Routing networks and the challenges of modular and compositional computation. Preprint at https://arxiv.org/abs/1904.12774 (2019).
  • 32.Fedus, W., Zoph, B. & Shazeer, N. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. J. Mach. Learn. Res.23, 1–39 (2022). [Google Scholar]
  • 33.Jacobs, R. A., Jordan, M. I., Nowlan, S. J. & Hinton, G. E. Adaptive mixtures of local experts. Neural Comput.3, 79–87 (1991). [DOI] [PubMed] [Google Scholar]
  • 34.Shazeer, N. et al. Outrageously large neural networks: the sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations (ICLR, 2017).
  • 35.Chandra, R., Gupta, A., Ong, Y.-S. & Goh, C.-K. Evolutionary multi-task learning for modular training of feedforward neural networks. In International Conference on Neural Information Processing, 37–46 (Springer, 2016).
  • 36.Schug, S. et al. Discovering modular solutions that generalize compositionally. In International Conference on Learning Representations (ICLR, 2023).
  • 37.Gallicchio, C., Micheli, A. & Pedrelli, L. Hierarchical temporal representation in linear reservoir computing. In Italian Workshop on Neural Nets (Springer, 2017).
  • 38.Hamidi, M. et al. Modular growth of hierarchical networks: Efficient, general, and robust curriculum learning. In Artificial Life Conference Proceedings 36, Vol. 2024, 55 (MIT Press, 2024).
  • 39.Ma, Q., Shen, L. & Cottrell, G. W. Deep-ESN: A multiple projection-encoding hierarchical reservoir computing framework. Preprint at https://arxiv.org/abs/1711.05255 (2017).
  • 40.Moon, J., Wu, Y. & Lu, W. D. Hierarchical architectures in reservoir computing systems. Neuromorph. Comput. Eng.1, 014006 (2021). [Google Scholar]
  • 41.Caprioglio, E. & Berthouze, L. Emergence of metastability in frustrated oscillatory networks: the key role of hierarchical modularity. Front. Netw. Physiol.4, 1436046 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Munn, B. R. et al. Multiscale organization of neuronal activity unifies scale-dependent theories of brain function. Cell187, 7303–7313 (2024). [DOI] [PubMed] [Google Scholar]
  • 43.Villegas, P., Moretti, P. & Munoz, M. A. Frustrated hierarchical synchronization and emergent complexity in the human connectome network. Sci. Rep.4, 5990 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Kaiser, M., Goerner, M. & Hilgetag, C. C. Criticality of spreading dynamics in hierarchical cluster networks without inhibition. N. J. Phys.9, 110 (2007). [Google Scholar]
  • 45.Moretti, P. & Muñoz, M. A. Griffiths phases and the stretching of criticality in brain networks. Nat. Commun.4, 2521 (2013). [DOI] [PubMed] [Google Scholar]
  • 46.Rubinov, M., Sporns, O., Thivierge, J.-P. & Breakspear, M. Neurobiologically realistic determinants of self-organized criticality in networks of spiking neurons. PLoS Comput. Biol.7, e1002038 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Wang, S.-J., Hilgetag, C. C. & Zhou, C. Sustained activity in hierarchical modular neural networks: self-organized criticality and oscillations. Front. Comput. Neurosci.5, 30 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Wang, S.-J. & Zhou, C. Hierarchical modular structure enhances the robustness of self-organized criticality in neural networks. N. J. Phys.14, 023005 (2012). [Google Scholar]
  • 49.Bertschinger, N., Natschläger, T. & Legenstein, R. At the edge of chaos: Real-time computations and self-organized criticality in recurrent neural networks. in Advances in Neural Information Processing Systems 17 (NeurIPS, 2004).
  • 50.Boedecker, J., Obst, O., Lizier, J. T., Mayer, N. M. & Asada, M. Information processing in echo state networks at the edge of chaos. Theory Biosci.131, 205–213 (2012). [DOI] [PubMed] [Google Scholar]
  • 51.Cocchi, L., Gollo, L. L., Zalesky, A. & Breakspear, M. Criticality in the brain: a synthesis of neurobiology, models and cognition. Prog. Neurobiol.158, 132–152 (2017). [DOI] [PubMed] [Google Scholar]
  • 52.Deco, G. & Jirsa, V. K. Ongoing cortical activity at rest: criticality, multistability, and ghost attractors. J. Neurosci.32, 3366–3375 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Fagerholm, E. D. et al. Cortical entropy, mutual information and scale-free dynamics in waking mice. Cereb. Cortex26, 3945–3952 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Gautam, S. H., Hoang, T. T., McClanahan, K., Grady, S. K. & Shew, W. L. Maximizing sensory dynamic range by tuning the cortical state to criticality. PLoS Comput. Biol.11, e1004576 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Kinouchi, O. & Copelli, M. Optimal dynamical range of excitable networks at criticality. Nat. Phys.2, 348–351 (2006). [Google Scholar]
  • 56.Larremore, D. B., Shew, W. L. & Restrepo, J. G. Predicting criticality and dynamic range in complex networks: Effects of topology. Phys. Rev. Lett.106, 058101 (2011). [DOI] [PubMed] [Google Scholar]
  • 57.Legenstein, R. & Maass, W. Edge of chaos and prediction of computational performance for neural circuit models. Neural Netw.20, 323–334 (2007). [DOI] [PubMed] [Google Scholar]
  • 58.O’Byrne, J. & Jerbi, K. How critical is brain criticality? Trends Neurosci.45, 820–837 (2022). [DOI] [PubMed] [Google Scholar]
  • 59.Shew, W. L., Yang, H., Yu, S., Roy, R. & Plenz, D. Information capacity and transmission are maximized in balanced cortical networks with neuronal avalanches. J. Neurosci.31, 55–63 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Shew, W. L. & Plenz, D. The functional benefits of criticality in the cortex. Neuroscientist19, 88–100 (2013). [DOI] [PubMed] [Google Scholar]
  • 61.Wang, R. et al. Hierarchical connectome modes and critical state jointly maximize human brain functional diversity. Phys. Rev. Lett.123, 038301 (2019). [DOI] [PubMed] [Google Scholar]
  • 62.Zamora-López, G., Chen, Y., Deco, G., Kringelbach, M. L. & Zhou, C. Functional complexity emerging from anatomical constraints in the brain: the significance of network modularity and rich-clubs. Sci. Rep.6, 38424 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Dominey, P. F. & Arbib, M. A. A cortico-subcortical model for generation of spatially accurate sequential saccades. Cereb. Cortex2, 153–175 (1992). [DOI] [PubMed] [Google Scholar]
  • 64.Jaeger, H. The “echo state” approach to analysing and training recurrent neural networks-with an erratum note. GMD Technical Report. Vol. 148, No. 13 (German National Research Center for Information Technology, Bonn, Germany, 2001).
  • 65.Maass, W., Natschläger, T. & Markram, H. Real-time computing without stable states: a new framework for neural computation based on perturbations. Neural Comput.14, 2531–2560 (2002). [DOI] [PubMed] [Google Scholar]
  • 66.Suárez, L. E. et al. Connectome-based reservoir computing with the conn2res toolbox. Nat. Commun.15, 656 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Suárez, L. E., Richards, B. A., Lajoie, G. & Misic, B. Learning function from structure in neuromorphic networks. Nat. Mach. Intell.3, 771–786 (2021). [Google Scholar]
  • 68.Luppi, A. I. et al. From abstract networks to biological realities. Phys. Life Rev.49, 12–14 (2024). [DOI] [PubMed] [Google Scholar]
  • 69.Lukoševičius, M. & Jaeger, H. Reservoir computing approaches to recurrent neural network training. Comput. Sci. Rev.3, 127–149 (2009). [Google Scholar]
  • 70.Cucchi, M., Abreu, S., Ciccone, G., Brunner, D. & Kleemann, H. Hands-on reservoir computing: a tutorial for practical implementation. Neuromorph. Comput. Eng.2, 032002 (2022). [Google Scholar]
  • 71.Aceituno, P. V., Yan, G. & Liu, Y.-Y. Tailoring echo state networks for optimal learning. iScience23, 101440.(2020). [DOI] [PMC free article] [PubMed]
  • 72.Carroll, T. L. & Pecora, L. M. Network structure effects in reservoir computers. Chaos 29, https://arxiv.org/abs/1903.12487 (2019). [DOI] [PubMed]
  • 73.Dale, M., O’Keefe, S., Sebald, A., Stepney, S. & Trefzer, M. A. Reservoir computing quality: connectivity and topology. Nat. Comput.20, 205–216 (2021). [Google Scholar]
  • 74.Deng, Z. & Zhang, Y. Complex systems modeling using scale-free highly-clustered echo state network. In IEEE International Joint Conference on Neural Network Proceedings, 3128-3135 (IEEE, 2006).
  • 75.Jarvis, S., Rotter, S. & Egert, U. Extending stability through hierarchical clusters in echo state networks. Front. Neuroinformat.4, 11 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76.Kawai, Y., Park, J. & Asada, M. A small-world topology enhances the echo state property and signal propagation in reservoir computing. Neural Netw.112, 15–23 (2019). [DOI] [PubMed] [Google Scholar]
  • 77.McAllister, J., Wade, J., Houghton, C. & O’Donnell, C. Topological and simplicial features in reservoir computing networks. In UK Workshop on Computational Intelligence, 55–71 (Springer, 2024).
  • 78.McDaniel, S. L., Villafañe-Delgado, M. & Johnson, E. C. Investigating echo state network performance with biologically-inspired hierarchical network structure. In International Joint Conference on Neural Networks, 01–08 (IEEE, 2022).
  • 79.Rodriguez, N., Izquierdo, E. & Ahn, Y.-Y. Optimal modularity and memory capacity of neural reservoirs. Netw. Neurosci.3, 551–566 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Yang, L. et al. Brain-inspired modular echo state network for EEG-based emotion recognition. Front. Neurosci.18, 1305284 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Loeffler, A. et al. Modularity and multitasking in neuro-memristive reservoir networks. Neuromorph. Comput. Eng.1, 014003 (2021). [Google Scholar]
  • 82.Costi, L., Hadjiivanov, A., Dold, D., Hale, Z. F. & Izzo, D. The Drosophila connectome as a computational reservoir for time-series prediction. Biomimetics10, 341 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Damicelli, F., Hilgetag, C. C. & Goulas, A. Brain connectivity meets reservoir computing. PLoS Comput. Biol.18, e1010639 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Goulas, A., Damicelli, F. & Hilgetag, C. C. Bio-instantiated recurrent neural networks: Integrating neurobiology-based network topology in artificial networks. Neural Netw.142, 608–618 (2021). [DOI] [PubMed] [Google Scholar]
  • 85.Hadaeghi, F., Fakhar, K. & Hilgetag, C. C. Controlling reciprocity in binary and weighted networks: a novel density-conserving approach. Chaos36, 023116 (2024). [DOI] [PubMed]
  • 86.Mijalkov, M. et al. Computational memory capacity predicts aging and cognitive decline. Nat. Commun. 16, 2748 (2025). [DOI] [PMC free article] [PubMed]
  • 87.Morra, J. & Daley, M. Imposing connectome-derived topology on an echo state network. In International Joint Conference on Neural Networks, 1–6 (IEEE, 2022).
  • 88.Morra, J., Flynn, A., Amann, A. & Daley, M. Multifunctionality in a connectome-based reservoir computer. In IEEE International Conference on Systems, Man, and Cybernetics, 4961–4966 (IEEE, 2023).
  • 89.Nishimura, R. & Fukushima, M. Comparing connectivity-to-reservoir conversion methods for connectome-based reservoir computing. In International Joint Conference on Neural Networks, 1–8 (IEEE, 2024).
  • 90.Tolle, H. M., Luppi, A. I., Seth, A. K. & Mediano, P. A. Evolving reservoir computers reveal bidirectional coupling between predictive power and emergent dynamics. Patterns7, 101457 (2026). [DOI] [PMC free article] [PubMed]
  • 91.Triebkorn, P., Jirsa, V. & Dominey, P. F. Simulating the impact of white matter connectivity on processing time scales using brain network models. Commun. Biol.8, 197 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Farkaš, I., Bosák, R. & Gergel’, P. Computational analysis of memory capacity in echo state networks. Neural Netw.83, 109–120 (2016). [DOI] [PubMed] [Google Scholar]
  • 93.Jaeger, H. Short Term Memory in Echo State Networks (GMD Forschungszentrum Informationstechnik, 2001).
  • 94.Ozturk, M. C., Xu, D. & Principe, J. C. Analysis and design of echo state networks. Neural Comput.19, 111–138 (2007). [DOI] [PubMed] [Google Scholar]
  • 95.Verstraeten, D., Schrauwen, B., d’Haene, M. & Stroobandt, D. An experimental unification of reservoir computing methods. Neural Netw.20, 391–403 (2007). [DOI] [PubMed] [Google Scholar]
  • 96.Yildiz, I. B., Jaeger, H. & Kiebel, S. J. Re-visiting the echo state property. Neural Netw.35, 1–9 (2012). [DOI] [PubMed] [Google Scholar]
  • 97.Bernacchia, A., Seo, H., Lee, D. & Wang, X.-J. A reservoir of time constants for memory traces in cortical neurons. Nat. Neurosci.14, 366–372 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 98.Gao, R., Van den Brink, R. L., Pfeffer, T. & Voytek, B. Neuronal timescales are functionally dynamic and shaped by cortical microarchitecture. eLife9, e61277 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 99.Murray, J. D. et al. A hierarchy of intrinsic timescales across primate cortex. Nat. Neurosci.17, 1661–1663 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 100.Zeraati, R., Levina, A., Macke, J. H. & Gao, R. Neural timescales from a computational perspective. Preprint at https://arxiv.org/abs/2409.02684 (2024). [DOI] [PubMed]
  • 101.Baldassano, C. et al. Discovering event structure in continuous narrative perception and memory. Neuron95, 709–721 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Hasson, U., Yang, E., Vallines, I., Heeger, D. J. & Rubin, N. A hierarchy of temporal receptive windows in human cortex. J. Neurosci.28, 2539–2550 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 103.Honey, C. J. et al. Slow cortical dynamics and the accumulation of information over long timescales. Neuron76, 423–434 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 104.Raut, R. V., Snyder, A. Z. & Raichle, M. E. Hierarchical dynamics as a macroscopic organizing principle of the human brain. Proc. Natl. Acad. Sci. USA117, 20890–20897 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 105.Çatal, Y. et al. Flexibility of intrinsic neural timescales during distinct behavioral states. Commun. Biol.7, 1667 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 106.Fontanier, V., Sarazin, M., Stoll, F. M., Delord, B. & Procyk, E. Inhibitory control of frontal metastability sets the temporal signature of cognition. eLife11, e63795 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 107.Manea, A. M. et al. Neural timescales reflect behavioral demands in freely moving rhesus macaques. Nat. Commun.15, 2151 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 108.Trepka, E., Spitmaan, M., Qi, X.-L., Constantinidis, C. & Soltani, A. Training-dependent gradients of timescales of neural dynamics in the primate prefrontal cortex and their contributions to working memory. J. Neurosci. 44, e2442212023 (2024). [DOI] [PMC free article] [PubMed]
  • 109.Milo, R. et al. Network motifs: simple building blocks of complex networks. Science298, 824–827 (2002). [DOI] [PubMed] [Google Scholar]
  • 110.Sporns, O. & Kötter, R. Motifs in brain networks. PLoS Biol.2, e369 (2004). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 111.Watts, D. J. & Strogatz, S. H. Collective dynamics of ‘small-world’ networks. Nature393, 440–442 (1998). [DOI] [PubMed] [Google Scholar]
  • 112.Fagiolo, G. Clustering in complex directed networks. Phys. Rev. E-Stat. Nonlinear Soft Matter Phys.76, 026107 (2007). [DOI] [PubMed] [Google Scholar]
  • 113.Lizier, J. T., Atay, F. M. & Jost, J. Information storage, loop motifs, and clustered structure in complex networks. Phys. Rev. E-Stat. Nonlinear Soft Matter Phys.86, 026110 (2012). [DOI] [PubMed] [Google Scholar]
  • 114.Pan, R. K. & Sinha, S. Modularity produces small-world networks with dynamical time-scale separation. Europhys. Lett.85, 68006 (2009). [Google Scholar]
  • 115.Sillin, H. O. et al. A theoretical and experimental study of neuromorphic atomic switch networks for reservoir computing. Nanotechnology24, 384004 (2013). [DOI] [PubMed] [Google Scholar]
  • 116.Fu, K. et al. Reservoir computing with neuromemristive nanowire networks. In International Joint Conference on Neural Networks, 1–8 (IEEE, 2020).
  • 117.Dambre, J., Verstraeten, D., Schrauwen, B. & Massar, S. Information processing capacity of dynamical systems. Sci. Rep.2, 514 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 118.Bassett, D. S. et al. Efficient physical embedding of topologically complex information processing networks in brains and computer circuits. PLoS Comput. Biol.6, e1000748 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 119.Betzel, R., Puxeddu, M. G. & Seguin, C. Hierarchical communities in the larval drosophila connectome: links to cellular annotations and network topology. Proc. Natl. Acad. Sci. USA121, e2320177121 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 120.Van Essen, D. C. et al. The WU-Minn human connectome project: an overview. NeuroImage80, 62–79 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 121.Sah, P., Singh, L. O., Clauset, A. & Bansal, S. Exploring community structure in biological networks with random graphs. BMC Bioinforma.15, 1–14 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 122.Newman, M. E. & Girvan, M. Finding and evaluating community structure in networks. Phys. Rev. E69, 026113 (2004). [DOI] [PubMed] [Google Scholar]
  • 123.Fortunato, S. Community detection in graphs. Phys. Rep.486, 75–174 (2010). [Google Scholar]
  • 124.Maslov, S. & Sneppen, K. Specificity and stability in topology of protein networks. Science296, 910–913 (2002). [DOI] [PubMed] [Google Scholar]
  • 125.Fakhar, K. et al. Human cortical networks trade communication efficiency for computational reliability. Preprint at bioRxiv10.64898/2025.12.11.693716 (2025). [DOI] [PMC free article] [PubMed]
  • 126.Liu, Y., Wei, Y. & Peng, H. From local motifs to global dynamical stability in the mouse brain connectome. Preprint at bioRxiv10.64898/2025.12.11.693716 (2026).
  • 127.Bullmore, E. & Sporns, O. The economy of brain network organization. Nat. Rev. Neurosci.13, 336–349 (2012). [DOI] [PubMed] [Google Scholar]
  • 128.Onnela, J.-P., Saramäki, J., Kertész, J. & Kaski, K. Intensity and coherence of motifs in weighted complex networks. Phys. Rev. E71, 065103 (2005). [DOI] [PubMed] [Google Scholar]
  • 129.Crofts, J. J. & Higham, D. J. A weighted communicability measure applied to complex brain networks. J. R. Soc. Interface6, 411–414 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 130.Estrada, E. & Hatano, N. Communicability in complex networks. Phys. Rev. E77, 036111 (2008). [DOI] [PubMed] [Google Scholar]
  • 131.Shafiei, G. et al. Neurophysiological signatures of cortical micro-architecture. Nat. Commun.14, 6000 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 132.Bishop, C. M. Training with noise is equivalent to tikhonov regularization. Neural Comput.7, 108–116 (1995). [Google Scholar]
  • 133.Caruana, R. Multitask learning. Mach. Learn.28, 41–75 (1997). [Google Scholar]
  • 134.Petri, G. et al. Topological limits to the parallel processing capability of network architectures. Nat. Phys.17, 646–651 (2021). [Google Scholar]
  • 135.Kashtan, N. & Alon, U. Spontaneous evolution of modularity and network motifs. Proc. Natl. Acad. Sci. USA102, 13773–13778 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 136.Garcia, G. C., Lesne, A., Hilgetag, C. C. & Hütt, M.-T. Role of long cycles in excitable dynamics on graphs. Phys. Rev. E90, 052805 (2014). [DOI] [PubMed] [Google Scholar]
  • 137.Sporns, O. Small-world connectivity, motif composition, and complexity of fractal neuronal connections. Biosystems85, 55–64 (2006). [DOI] [PubMed] [Google Scholar]
  • 138.Liu, Z.-Q., Zheng, Y.-Q. & Misic, B. Network topology of the marmoset connectome. Netw. Neurosci.4, 1181–1196 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 139.Battiston, F. et al. The physics of higher-order interactions in complex systems. Nat. Phys.17, 1093–1098 (2021). [Google Scholar]
  • 140.Boccaletti, S. et al. The structure and dynamics of networks with higher order interactions. Phys. Rep.1018, 1–64 (2023). [Google Scholar]
  • 141.Arenas, A., Díaz-Guilera, A. & Pérez-Vicente, C. J. Synchronization reveals topological scales in complex networks. Phys. Rev. Lett.96, 114102 (2006). [DOI] [PubMed] [Google Scholar]
  • 142.Sinha, S. & Poria, S. Multiple dynamical time-scales in networks with hierarchically nested modular organization. Pramana77, 833–842 (2011). [Google Scholar]
  • 143.Chung, J., Ahn, S. & Bengio, Y. Hierarchical multiscale recurrent neural networks. In International Conference on Learning Representations (ICLR, 2017).
  • 144.Gjorgjieva, J., Drion, G. & Marder, E. Computational implications of biophysical diversity and multiple timescales in neurons and synapses for circuit performance. Curr. Opin. Neurobiol.37, 44–52 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 145.Habashy, K. G., Evans, B. D., Goodman, D. F. & Bowers, J. S. Adapting to time: Why nature may have evolved a diverse set of neurons. PLoS Comput. Biol.20, e1012673 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 146.Koutnik, J., Greff, K., Gomez, F. & Schmidhuber, J. A clockwork rnn. In International Conference on Machine Learning, 1863–1871 (PMLR, 2014).
  • 147.Manneschi, L. et al. Exploiting multiple timescales in hierarchical echo state networks. Front. Appl. Math. Stat.6, 616658 (2021). [Google Scholar]
  • 148.Mozer, M. C. Induction of multiscale temporal structure. Advances in Neural Information Processing Systems 4 (NeurIPS, 1991).
  • 149.Perez-Nieves, N., Leung, V. C., Dragotti, P. L. & Goodman, D. F. Neural heterogeneity promotes robust learning. Nat. Commun.12, 5791 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 150.Quax, S. C., D’asaro, M. & Van Gerven, M. A. Adaptive time scales in recurrent neural networks. Sci. Rep.10, 11360 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 151.Tanaka, G., Matsumori, T., Yoshida, H. & Aihara, K. Reservoir computing with diverse timescales for prediction of multiscale dynamics. Phys. Rev. Res.4, L032014 (2022). [Google Scholar]
  • 152.Yin, B., Corradi, F. & Bohté, S. M. Effective and efficient computation with multiple-timescale spiking recurrent neural networks. In International Conference on Neuromorphic Systems, 1–8 (Association for Computing Machinery, 2020).
  • 153.Duarte, R., Seeholzer, A., Zilles, K. & Morrison, A. Synaptic patterning and the timescales of cortical dynamics. Curr. Opin. Neurobiol.43, 156–165 (2017). [DOI] [PubMed] [Google Scholar]
  • 154.Huang, C. & Doiron, B. Once upon a (slow) time in the land of recurrent neuronal networks. Curr. Opin. Neurobiol.46, 31–38 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 155.Litwin-Kumar, A. & Doiron, B. Slow dynamics and high variability in balanced cortical networks with clustered connections. Nat. Neurosci.15, 1498–1505 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 156.Chaudhuri, R., Knoblauch, K., Gariel, M.-A., Kennedy, H. & Wang, X.-J. A large-scale circuit mechanism for hierarchical dynamical processing in the primate cortex. Neuron88, 419–431 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 157.Kaiser, M. & Hilgetag, C. C. Optimal hierarchical modular topologies for producing limited sustained activation of neural networks. Front. Neuroinformat.4, 713 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 158.Pan, R. K. & Sinha, S. Modular networks with hierarchical organization: the dynamical implications of complex structure. Pramana71, 331–340 (2008). [Google Scholar]
  • 159.Ravasz, E. & Barabási, A.-L. Hierarchical organization in complex networks. Phys. Rev. E67, 026112 (2003). [DOI] [PubMed] [Google Scholar]
  • 160.Robinson, P., Henderson, J., Matar, E., Riley, P. & Gray, R. Dynamical reconnection and stability constraints on cortical network architecture. Phys. Rev. Lett.103, 108104 (2009). [DOI] [PubMed] [Google Scholar]
  • 161.Sales-Pardo, M., Guimera, R., Moreira, A. A. & Amaral, L. A. N. Extracting the hierarchical organization of complex systems. Proc. Natl. Acad. Sci. USA104, 15224–15229 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 162.Milisav, F., Bazinet, V., Betzel, R. F. & Misic, B. A simulated annealing algorithm for randomizing weighted networks. Nat. Comput. Sci.5, 48–64 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 163.Rubinov, M. Constraints and spandrels of interareal connectomes. Nat. Commun.7, 1–11 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 164.Rubinov, M. Circular and unified analysis in network neuroscience. eLife12, e79559 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 165.Sporns, O. Network attributes for segregation and integration in the human brain. Curr. Opin. Neurobiol.23, 162–171 (2013). [DOI] [PubMed] [Google Scholar]
  • 166.Demirtaş, M. et al. Hierarchical heterogeneity across human cortex shapes large-scale neural dynamics. Neuron101, 1181–1194 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 167.Tomov, P., Pena, R. F., Zaks, M. A. & Roque, A. C. Sustained oscillations, irregular firing, and chaotic dynamics in hierarchical modular networks with mixtures of electrophysiological cell types. Front. Comput. Neurosci.8, 103 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 168.Singer, W. The cerebral cortex: A delay-coupled recurrent oscillator network? In Reservoir computing. Theory, physical implementations, and applications, 3–28 (Springer Nature Singapore, 2021).
  • 169.Wang, Q. et al. Why do networks have inhibitory/negative connections? In Proceedings of the IEEE/CVF International Conference on Computer Vision, 22551–22559 (IEEE, 2023).
  • 170.Wilson, H. R. & Cowan, J. D. Excitatory and inhibitory interactions in localized populations of model neurons. Biophys. J.12, 1–24 (1972). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 171.Wilson, H. R. & Cowan, J. D. A mathematical theory of the functional dynamics of cortical and thalamic nervous tissue. Kybernetik13, 55–80 (1973). [DOI] [PubMed] [Google Scholar]
  • 172.Perich, M. G. & Rajan, K. Rethinking brain-wide interactions through multi-region ‘network of networks’ models. Curr. Opin. Neurobiol.65, 146–151 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 173.de Reus, M. A. & van den Heuvel, M. P. Estimating false positives and negatives in brain networks. NeuroImage70, 402–409 (2013). [DOI] [PubMed] [Google Scholar]
  • 174.Thomas, C. et al. Anatomical accuracy of brain connections derived from diffusion MRI tractography is inherently limited. Proc. Natl. Acad. Sci. USA111, 16574–16579 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 175.Maier-Hein, K. H. et al. The challenge of mapping the human connectome based on diffusion tractography. Nat. Commun.8, 1–13 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 176.Holland, P. W., Laskey, K. B. & Leinhardt, S. Stochastic blockmodels: first steps. Soc. Netw.5, 109–137 (1983). [Google Scholar]
  • 177.Hagberg, A. A., Schult, D. A. & Swart, P. J. Exploring network structure, dynamics, and function using networkx. In Varoquaux, G., Vaught, T. & Millman, J. (eds.) Proceedings of the 7th Python in Science Conference, 11–15 (Scipy, Pasadena, CA, USA, 2008).
  • 178.Jaeger, H. Towards a generalized theory comprising digital, neuromorphic and unconventional computing. Neuromorph. Comput. Eng.1, 012002 (2021). [Google Scholar]
  • 179.Legenstein, R. & Maass, W. New Directions in Statistical Signal Processing: From Systems to Brains (The MIT Press, 2006).
  • 180.Engelken, R., Wolf, F. & Abbott, L. F. Lyapunov spectra of chaotic recurrent neural networks. Phys. Rev. Res.5, 043044 (2023). [Google Scholar]
  • 181.Molgedey, L., Schuchhardt, J. & Schuster, H. G. Suppressing chaos in neural networks by noise. Phys. Rev. Lett.69, 3717 (1992). [DOI] [PubMed] [Google Scholar]
  • 182.Vogt, R., Puelma Touzel, M., Shlizerman, E. & Lajoie, G. On Lyapunov exponents for RNNs: Understanding information propagation using dynamical systems tools. Front. Appl. Math. Stat.8, 818799 (2022). [Google Scholar]
  • 183.Pedregosa, F. et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res.12, 2825–2830 (2011). [Google Scholar]
  • 184.Lorenz, E. N. Deterministic nonperiodic flow. J. Atmos. Sci.20, 130–141 (1963). [Google Scholar]
  • 185.Lukoševicius, M. Echo State Networks with Trained Feedback. (Jacobs University Bremen, 2007).
  • 186.Ma, H., Prosperino, D. & Räth, C. A novel approach to minimal reservoir computing. Sci. Rep.13, 12970 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 187.Nadiga, B. T. Reservoir computing as a tool for climate predictability studies. J. Adv. Modeling Earth Syst.13, e2020MS002290 (2021). [Google Scholar]
  • 188.Smith, L. M., Kim, J. Z., Lu, Z. & Bassett, D. S. Learning continuous chaotic attractors with a reservoir computer. Chaos32, https://arxiv.org/abs/2110.08631 (2022). [DOI] [PubMed]
  • 189.Atiya, A. F. & Parlos, A. G. New results on recurrent network training: unifying the algorithms and accelerating convergence. IEEE Trans. Neural Netw.11, 697–709 (2000). [DOI] [PubMed] [Google Scholar]
  • 190.Inubushi, M. & Yoshimura, K. Reservoir computing beyond memory-nonlinearity trade-off. Sci. Rep.7, 10199 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 191.Jaeger, H. Adaptive nonlinear system identification with echo state networks. Advances in Neural Information Processing Systems 15 (NeurIPS, 2002).
  • 192.Kubota, T., Takahashi, H. & Nakajima, K. Unifying framework for information processing in stochastically driven dynamical systems. Phys. Rev. Res.3, 043135 (2021). [Google Scholar]
  • 193.Rodan, A. & Tino, P. Minimum complexity echo state network. IEEE Trans. Neural Netw.22, 131–144 (2010). [DOI] [PubMed] [Google Scholar]
  • 194.Trouvain, N., Pedrelli, L., Dinh, T. T. & Hinaut, X. Reservoirpy: An efficient and user-friendly library to design echo state networks. In International Conference on Artificial Neural Networks, 494–505 (Springer, 2020).
  • 195.Hinaut, X. & Trouvain, N. Which hype for my new task? Hints and random search for echo state networks hyperparameters. In International Conference on Artificial Neural Networks, 83–97 (Springer, 2021).
  • 196.Bergstra, J. & Bengio, Y. Random search for hyper-parameter optimization. J. Mach. Learn. Res.13, 281–305 (2012). [Google Scholar]
  • 197.Skipper, S. & Josef, P. statsmodels: Econometric and statistical modeling with Python. 9th Python in Science Conference (Scipy, 2010).
  • 198.Harris, C. R. et al. Array programming with NumPy. Nature585, 357–362 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 199.Blondel, V. D., Guillaume, J.-L., Lambiotte, R. & Lefebvre, E. Fast unfolding of communities in large networks. J. Stat. Mech. Theory Exp.2008, P10008 (2008). [Google Scholar]
  • 200.Rubinov, M. & Sporns, O. Complex network measures of brain connectivity: uses and interpretations. NeuroImage52, 1059–1069 (2010). [DOI] [PubMed] [Google Scholar]
  • 201.Red, V., Kelsic, E. D., Mucha, P. J. & Porter, M. A. Comparing community structure to characteristics in online collegiate social networks. SIAM Rev.53, 526–543 (2011). [Google Scholar]
  • 202.Gupta, A. & Suzumura, T. Finding all bounded-length simple cycles in a directed graph. Preprint at https://arxiv.org/abs/2105.10094 (2021).
  • 203.Fan, T., Lü, L., Shi, D. & Zhou, T. Characterizing cycle structure in complex networks. Commun. Phys.4, 272 (2021). [Google Scholar]
  • 204.Shafiei, G. et al. Topographic gradients of intrinsic dynamics across neocortex. eLife9, e62116 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 205.Bazinet, V. et al. Assortative mixing in micro-architecturally annotated brain connectomes. Nat. Commun.14, 2850 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 206.Glasser, M. F. et al. The minimal preprocessing pipelines for the Human Connectome Project. NeuroImage80, 105–124 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 207.Tournier, J.-D. et al. MRtrix3: A fast, flexible and open software framework for medical image processing and visualisation. NeuroImage202, 116137 (2019). [DOI] [PubMed] [Google Scholar]
  • 208.Schaefer, A. et al. Local-global parcellation of the human cerebral cortex from intrinsic functional connectivity MRI. Cereb. Cortex28, 3095–3114 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 209.Christiaens, D. et al. Global tractography of multi-shell diffusion-weighted imaging data using a multi-tissue model. NeuroImage123, 89–101 (2015). [DOI] [PubMed] [Google Scholar]
  • 210.Jeurissen, B., Tournier, J.-D., Dhollander, T., Connelly, A. & Sijbers, J. Multi-tissue constrained spherical deconvolution for improved analysis of multi-shell diffusion MRI data. NeuroImage103, 411–426 (2014). [DOI] [PubMed] [Google Scholar]
  • 211.Smith, R. E., Tournier, J.-D., Calamante, F. & Connelly, A. SIFT2: Enabling dense quantitative assessment of brain white matter connectivity using streamlines tractography. NeuroImage119, 338–351 (2015). [DOI] [PubMed] [Google Scholar]
  • 212.Park, B. -y et al. Signal diffusion along connectome gradients and inter-hub routing differentially contribute to dynamic human brain function. NeuroImage224, 117429 (2021). [DOI] [PubMed] [Google Scholar]
  • 213.Betzel, R. F., Griffa, A., Hagmann, P. & Mišić, B. Distance-dependent consensus thresholds for generating group-representative structural brain networks. Netw. Neurosci.3, 475–496 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 214.Markello, R. D. et al. Neuromaps: Structural and functional interpretation of brain maps. Nat. Methods19, 1472–1479 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 215.Tadel, F., Baillet, S., Mosher, J. C., Pantazis, D. & Leahy, R. M. Brainstorm: a user-friendly application for MEG/EEG analysis. Comput. Intell. Neurosci.2011, 879716 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 216.Donoghue, T. et al. Parameterizing neural power spectra into periodic and aperiodic components. Nat. Neurosci.23, 1655–1665 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 217.Milisav, F. netneurolab/milisav_hierarchical_modularity: Publication release. 10.5281/zenodo.20360160 (2026).

Associated Data

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

Supplementary Materials

Data Availability Statement

Data used in this study is available at https://github.com/netneurolab/milisav_hierarchical_modularity217. The original HCP dataset120 is available at https://db.humanconnectome.org/data/projects/HCP_1200.

The Python code used to perform the experiments and generate the figures presented in this manuscript is available at https://github.com/netneurolab/milisav_hierarchical_modularity217.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES