- 1Experimental Otolaryngology, Neuroscience Lab, University Hospital Erlangen, Friedrich-Alexander University Erlangen-Nürnberg (FAU), Erlangen, Germany
- 2Department of Physics, Chair for Biophysics, Friedrich-Alexander University Erlangen-Nürnberg (FAU), Erlangen, Germany
Recurrent neural networks can produce ongoing state-to-state transitions without any driving inputs, and the dynamical properties of these transitions are determined by the neuronal connection strengths. Due to non-linearity, it is not clear how strongly the system dynamics is affected by discrete local changes in the connection structure, such as the removal, addition, or sign-switching of individual connections. Moreover, there are no suitable metrics to quantify structural and dynamical differences between two given networks with arbitrarily indexed neurons. In this work, we present such permutation-invariant metrics and apply them to motifs of three binary neurons with discrete ternary connection strengths, an important class of building blocks in biological networks. Using multidimensional scaling, we then study the similarity relations between all 3,411 topologically distinct motifs with regard to structure and dynamics, revealing a strong clustering and various symmetries. As expected, the structural and dynamical distance between pairs of motifs show a significant positive correlation. Strikingly, however, the key parameter controlling motif dynamics turns out to be the ratio of excitatory to inhibitory connections.
Introduction
Recently, a number of projects seek to map the human connectome, aiming to connect its structure to function and behavior (Markram, 2012; Van Essen et al., 2013; Glasser et al., 2016). However, even if the connectome would be known completely, it remains an unresolved problem how to translate this detailed structural data into meaningful information processing functions and algorithms (Jonas and Kording, 2017). For instance, the connectome of C. elegans has been known for decades, and involves only 302 neurons. Nevertheless, even this relatively small system is not yet understood in terms of its dynamics, let alone at a functional level (Hobert, 2003; Gray et al., 2005).
Moreover, the problem is complicated by the fact that very similar dynamics of a neural network at a macroscopic level might be realized by very different structures at the microscopic level (Newman, 2003). Therefore, an important step toward extracting function from structure is a tool to quantitatively compare different structures and dynamics.
In a neural network, all relevant structural information is encoded in a weight matrix, containing the mutual connection strength of all neurons (Hertz et al., 1991; LeCun et al., 2015; Schmidhuber, 2015; Goodfellow et al., 2016). Quantifying the similarity of two weight matrices by standard measures, such as the sum of squared differences between corresponding matrix elements, is however not sufficient because of possible permutations of the neuron indices. Similarly, the dynamical properties of a neural network are encoded in a matrix of transition probabilities between all possible network states. As mentioned before, comparing the sum of squared differences between corresponding matrix elements fails in case of neuron permutations.
To solve this problem, we develop permutation-invariant metrics for the structural distance dstr(A, B) and for the dynamical distance ddyn(A, B) of two given networks A and B. By construction, these distance-measures yield dstr(A, B) = 0 and ddyn(A, B) = 0 whenever B is topologically identical to A, even though the corresponding weight and transition matrices of A and B may differ due to inconsistent neuron indices.
We apply these distance metrics to so-called motifs, a class of small recurrent networks which have been shown to be fundamental building blocks of various complex networks (Milo et al., 2002), such as gene regulatory networks (Shen-Orr et al., 2002; Alon, 2007), the world wide web (Milo et al., 2002), and the human brain (Song et al., 2005).
We exhaustively compute the structural and dynamical distances between all possible pairs of the 3,411 different classes of three-neuron motifs with ternary connection strengths, resulting in two distance matrices with 3,411 × 3,411 entries each. Based on these matrices, we use classical multidimensional scaling (Kruskal, 1964a,b; Cox and Cox, 2000; Borg et al., 2017; Krauss et al., 2018) to visualize the structural and dynamical similarity relations between different motifs on a two-dimensional plane.
Remarkably, it turns out that the distribution of motifs, both in structural and dynamical “space,” is not uniform, but strongly clustered and highly symmetrical. Moreover, the position of a motif within structural and dynamical space correlates with the ratio of excitatory and inhibitory connections (balance) in the motif's connection matrix.
Methods
Three-Neuron Motifs
Our study is based on Boltzmann neurons (Hinton and Sejnowski, 1983) without bias. The total input zi(t) of neuron i at time t is calculated as:
where yj(t − 1) is the binary state of neuron j at time t − 1 and wij is the corresponding weight from neuron j to neuron i. The probability pi(t) of neuron i to be in state yi(t) = 1 is given by:
where σ(x) is the logistic function
We investigate the set of all possible network motifs that can be built from 3 Boltzmann neurons with ternary connections wij ∈ {−1, 0, +1}, where self connections wii are permitted (Figure 1A). In principle there are 39 = 19, 683 possible ternary 3×3 weight matrices. However, due to permutation of the neuron indices, not every matrix corresponds to a unique motif class.
Figure 1. Motifs of three coupled Boltzmann neurons. Each motif is characterized by a 3 × 3 weight matrix W (A), defining the connection strength between the neurons. There are 23 = 8 possible states Y = 0…7 for each motif. The transition probabilities between these states are summarized in a 8 × 8 state transition matrix (B).
We have exhaustively listed all possible ternary weight matrices in a set. We then partitioned this set into equivalence classes, defining two matrices as equivalent if they can be made element-wise identical by a suitable permutation of neuron indices. By this way, we found that there are exactly 3,411 distinct motif classes. For later convenience we label all motif classes with unique indices, which are derived from the corresponding weight matrices.
State Transition Matrices of Motifs
Since every neuron can be in one of two binary states, a 3-node motif can be in 23 = 8 possible motif states. Given the momentary motif state and the weight matrix, the probabilities for all eight successive motif states can be computed, thus defining the 8 × 8 state transition matrix of a Markov process (Figure 1B). All information theoretical properties of 3-neuron motifs, such as entropy or mutual information of successive states, are determined by the state transition matrix. We therefore calculate the transition matrices for each of the 3,411 motif classes.
Motif Classes
A motif class A is defined as the set {A(m):m = 1…6} of weight matrices, which are all related to each other by index permutations, such as , where πm is the m-th permutation (Figure 2).
Figure 2. Unique labeling of motif classes. Possible entries in the 3 × 3 weight matrix of a motif are −1 (blue), 0 (white), and +1 (red). Shown are all possible permutations of topologically equivalent motifs for two arbitrary chosen cases (A,B). Each motif class is assigned a unique label (green numbers), as described in the Methods section.
Unique Labels of Motif Classes
The nine entries of the weight matrix of one motif class are treated as a vector w = (abcdefghi). The components of this vector are then treated as the digits of a number in the ternary system:
It can be simplified to
Here, w[0] equals the first entry of the vector w and the value of the sum is the name of the motif. Due to the possible entries w[i] ∈ {−1, 0, 1} the motif names range between “−9,841” and “9,841,” starting with the motif with just “−1” as entries and finishing in the motif with just “1” as entries. Of course not every number in this range is assigned a motif class as there are in total only 3411 motif classes. This version of the formula is used because the motif class with just zeros as entries gets the name “0” and the names are approximately symmetrical around that motif class. Furthermore, in order to make the system more balanced, each motif class is represented by the weight matrix with the smallest absolute value of name among all of its permutations (Figure 2).
Structural Distance Between Motif Classes
The dynamical distance is calculated as follows (Figure 3): Given are two motif classes A, B. For each class we derive all six permuted weight matrices A(m) and B(n). For each of the 36 pairs of weight matrices A(m) and B(n), we compute a generalized Hamming distance ĥ, defined as the number of different ternary matrix elements:
where δx, y is the Kronecker symbol. The structural distance dstr between motif classes matrices A, B is defined as the smallest of the above 36 Hamming distances
Figure 3. Structural distance between motif classes. Rows and columns show the six possible permutations of two given motif classes. For each of the 36 combinations, the generalized Hamming distance ĥ (green numbers) is computed. Black and white matrices indicate the Hamming distances between corresponding matrix elements. As described in the Methods section, the structural distance is defined as the minimum of all 36 generalized Hamming distances (green numbers with yellow background).
Dynamical Distance Between Motif Classes
The dynamical distance is calculated as follows (Figure 4): For each motif classes A, we compute general features F(A), which can be scalars, vectors or matrices. In the case of matrix-like features F and G (e.g., state transition probability matrices), the Euclidean distance is defined as
To compute the dynamical distance ddyn(A, B) between two motif classes A and B, we derive all 36 pairs of features (e.g., the state transition matrix) from permuted weight matrices (F(A(m)), F(B(n))) and calculate the Euclidean distance d(F(A(m)), F(B(n))) of each pair. The dynamical distance ddyn between motif classes A, B is defined as the smallest of the 36 Euclidean distances
Figure 4. Dynamical distance between motif classes. As in Figure 3, rows and columns contain the six possible permutations of two given motif classes (structure). For each permutation the corresponding state transition matrix is calculated (gray shaded matrices). Subsequently, for each of the 36 combinations, the Euclidean distance between each pair of state transition matrices is calculated (green numbers). As described in the Methods section, the dynamical distance is defined as the minimum of all 36 Euclidean distances (green number with yellow background). Note that green numbers do not correspond to actual distances, but are for illustration purposes only.
Multidimensional Scaling
We compute the pair-wise structural and dynamical distances between all 3,411 motif classes. In order to visualize their similarity relations, we use classical multidimensional scaling (Kruskal, 1964a,b; Cox and Cox, 2000; Borg et al., 2017; Krauss et al., 2018). This method assigns to each motif class a point on the two-dimensional plane, so that the mutual geometric distances between the points reflect the structural or dynamical distances between the motif classes. In contrast to alternative visualization methods such as t-SNE (Maaten and Hinton, 2008) where the results depend crucially on the choice of parameters (Wattenberg et al., 2016), classical multidimensional scaling has no adjustable parameters and therefore produces more robust and reproducible results.
Results
By an exhaustive listing of all possible weight matrices and a subsequent numerical sorting into equivalence classes, we could show that there exist 3,411 structurally distinct three-neuron motif classes with ternary connection strengths. We computed the structural and dynamical distances between all possible pairs of these motif classes, resulting in two 3,411 × 3,411 distance matrices.
In a first step, we tested the intuitive expectation that the dynamical distance ddyn between motifs should grow, at least as a general trend, with their structural distance dstr. For this purpose, we produced a scatter plot of ddyn versus dstr, including all 3, 4112 pairs of motif classes (Figure 5). We found that for each given structural distance (except for dstr = 0), the distribution of possible dynamical distances is very large. Nevertheless, there is a clear positive correlation of r = 0.59 (p < 0.001) between structure and dynamics, thus confirming the expectation.
Figure 5. Scatterplot of all pairwise dynamical and structural distances. Each point (dstr, ddyn) represents the relation between structural distance dstr and dynamical distance ddyn of a certain motif. Dynamical and structural distances are significantly correlated (r = 0.59, p < 0.001), but also show a large variance.
In a next step, we investigated the similarity relations between motif classes, as they are contained in the two 3,411 × 3,411 matrices of structural and dynamical distances. For this purpose, we have used classical multidimensional scaling (MDS) (Kruskal, 1964a,b; Cox and Cox, 2000; Borg et al., 2017; Krauss et al., 2018) to arrange all motif classes as points on a two-dimensional plane, so that the mutual geometric distances between the points reflect the corresponding structural or dynamical distances.
This two-dimensional representation reveals that the distribution of motif classes in both structural and dynamical “space” is not uniform, but instead is strongly clustered (Figure 6). The structural distribution (Figures 6a,c) also reveals a six-fold rotation symmetry, which might be due to the six possible permutations of 3-neuron motifs.
Figure 6. Multidimensional scaling of motif distribution in structural (a,c) and dynamical (b,d) space. Plots are color coded according to balance (a,b) and density (c,d) parameters. The structural distribution reveals a six-fold rotation symmetry due to the six possible permutations of 3-neuron motifs. In addition, motifs are ordered linearly according to the balance parameter, in both structural (a) and dynamical (b) space. By contrast, motifs are not ordered with respect to the density parameter (c,d). Note that absolute coordinates of points have no particular meaning other than scaling relative distances between any pair of points.
As a final step, we investigated how motifs are affected by the statistical properties of the weight matrix. In particular, we considered the statistical parameters “density,” defined as the fraction of non-zero connections among all possible connections, as well as “balance,” the ratio between excitatory and inhibitory connections. We computed the values of these two statistical parameters for all motif classes and color-coded them correspondingly in the two-dimensional MDS representations (Figure 6).
We find that the density parameter is not at all related to the position of a motif class in the structural or dynamical plane (Figures 6c,d). By contrast, there is a clear linear ordering of motif classes with respect to the balance parameter (Figures 6a,b), both in the structural and in the dynamical plane. Indeed, altering the ratio between excitatory and inhibitory connections has a much more pronounced effect on the motif dynamics than changing the structural distance itself.
Discussion
The relation of structure and function is a long-standing topic in biology (Bullock and Horridge, 1965; Estes and Cohen, 1989; Blackburn, 1991; Harris, 1996; Missale et al., 1998; Mitchell et al., 2011). On the one hand, the micro-structure of a biological system determines the set of possible functions that this system can serve. On the other hand, human observers may not be able to deduce the function of a system from its structure alone: even if we know all neural connection strengths in some sub-network of the animal brain, as well as all its input and output signals, the specific purpose of this sub-network within the whole of the organism may remain elusive (Hobert, 2003; Gray et al., 2005; Jonas and Kording, 2017). Indeed, “function” is not a property of the isolated subsystem alone, but can only be defined in the context of its embedding global system. For this reason, we focus in this work not on the function of neural systems, but on their dynamics—a property that is completely determined by the network structure and, if present, the system's input signals.
An additional advantage of this approach is that dynamics, just as structure, can be conveniently expressed in the form of matrices. Based on these matrices, we have developed suitable metrics that measure the distance of two neural networks in structural or dynamical space respectively. Using this tool, we can investigate how sensitive network dynamics reacts to small changes in network structure. Robustness with respect to structural changes is crucial in biological brains, as the synaptic weights cannot be adjusted with extremely high accuracy (Pinneo, 1966; Faisal et al., 2008; Rolls and Deco, 2010).
For the case of isolated three-neuron networks, we have found that the question of robustness has no definitive answer on the microscopic level of individual neuron connection strength: a small topological change in the connection matrix (i.e., adding or removing a connection, or inverting its sign), can have, both, small and large dynamical consequences. By contrast, a much clearer correlation is found between certain statistical (macroscopic) properties of a network's weight matrix and its dynamics. In particular, the ratio of excitatory to inhibitory connections (balance) affects network dynamics very strongly, while the ratio of non-zero connections (density) is much less important. This is in line with recent micro-anatomical studies of the hippocampus and the neocortex, where it was found that the balance is conserved (Megías et al., 2001; Gal et al., 2017).
This result suggests that a recurrent neural network can gain or lose a large random fraction of neural connections without drastically changing its dynamical state, provided the balance remains unchanged. We speculate that, in the brain, this surprising robustness may help to keep the cortex functional in periods of increasing density during development and contribute to the phenomenon of graceful degradation (Rolls and Treves, 1990).
In this work we abstracted from biological detail in that we included all possible three-neuron motifs with ternary connection strengths. By contrast, in the human brain the vast majority of neurons is either purely excitatory or purely inhibitory. However, there are prominent exceptions to this rule, such as the dopaminergic transmission within the basal ganglia (Kandel et al., 2000).
Future work will need to investigate whether our results extend to larger neural networks, to networks with continuous rather than ternary connection strengths between the neurons, and to networks based on alternative neuron models, such as non-probabilistic threshold units. It might also be interesting to consider networks built from mixed neuron types. Finally, we note that our choice of probabilistic Boltzmann neurons together with zero bias leads to a firing probability of 0.5 without any input, which is not biologically realistic. Neurons with a low spontaneous firing rate might lead to other interesting dynamics and might therefore also be investigated in future work.
Author Contributions
PK and CM designed the study and developed the theoretical approach. AZ performed computer simulations. PK, AS, and AZ prepared the figures. PK and CM wrote the paper. HS and AZ provided helpful discussion. All authors read and approved the final manuscript.
Funding
This work was supported by the Deutsche Forschungsgemeinschaft (DFG, grant SCHU1272/12-1). The authors are grateful for the donation of two Titan Xp GPUs by the NVIDIA Corporation.
Conflict of Interest Statement
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
Alon, U. (2007). Network motifs: theory and experimental approaches. Nat. Rev. Genet. 8, 450–461. doi: 10.1038/nrg2102
Blackburn, E. H. (1991). Structure and function of telomeres. Nature 350, 569–573. doi: 10.1038/350569a0
Borg, I., Groenen, P. J., and Mair, P. (2017). Applied Multidimensional Scaling and Unfolding. New York, NY: Springer.
Bullock, T., and Horridge, G. A. (1965). Structure and Function in the Nervous Systems of Invertebrates. San Francisco, CA: W.H. Freeman.
Estes, M. K., and Cohen, J. (1989). Rotavirus gene structure and function. Microbiol. Rev. 53, 410–449.
Faisal, A. A., Selen, L. P., and Wolpert, D. M. (2008). Noise in the nervous system. Nat. Rev. Neurosci. 9, 292–303. doi: 10.1038/nrn2258
Gal, E., London, M., Globerson, A., Ramaswamy, S., Reimann, M. W., Muller, E., et al. (2017). Rich cell-type-specific network topology in neocortical microcircuitry. Nat. Neurosci. 20, 1004–1013. doi: 10.1038/nn.4576
Glasser, M. F., Smith, S. M., Marcus, D. S., Andersson, J. L., Auerbach, E. J., Behrens, T. E., et al. (2016). The human connectome project's neuroimaging approach. Nat. Neurosci. 19, 1175–1181. 87. doi: 10.1038/nn.4361
Goodfellow, I., Bengio, Y., Courville, A., and Bengio, Y. (2016). Deep Learning, Vol. 1. Cambridge:MIT Press.
Gray, J. M., Hill, J. J., and Bargmann, C. I. (2005). A circuit for navigation in caenorhabditis elegans. Proc. Natl. Acad. Sci. U.S.A. 102, 3184–3191. doi: 10.1073/pnas.0409009101
Harris, C. C. (1996). Structure and function of the p53 tumor suppressor gene: clues for rational cancer therapeutic strategies. J. Natl. Cancer Inst. 88, 1442–1455.
Hertz, J., Krogh, A., and Palmer, R. G. (1991). Introduction to the Theory of Neural Computation. Addison-Wesley/Addison Wesley Longman.
Hinton, G. E., and Sejnowski, T. J. (1983). “Optimal perceptual inference,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (Piscataway, NJ: Citeseer), 448–453.
Hobert, O. (2003). Behavioral plasticity in C. elegans: paradigms, circuits, genes. J. Neurobiol. 54, 203–223. doi: 10.1002/neu.10168
Jonas, E., and Kording, K. P. (2017). Could a neuroscientist understand a microprocessor? PLoS Comput. Biol. 13:e1005268. doi: 10.1371/journal.pcbi.1005268
Kandel, E. R., Schwartz, J. H., Jessell, T. M., Jessell, M. B. T., Siegelbaum, S., and Hudspeth, A. J. (2000). Principles of Neural Science, Vol. 4. New York, NY: McGraw-hill.
Krauss, P., Metzner, C., Schilling, A., Tziridis, K., Traxdorf, M., Wollbrink, A., et al. (2018). A statistical method for analyzing and comparing spatiotemporal cortical activation patterns. Sci. Rep. 8:5433. doi: 10.1038/s41598-018-23765-w
Kruskal, J. B. (1964a). Multidimensional scaling by optimizing goodness of fit to a nonmetric hypothesis. Psychometrika 29, 1–27.
Kruskal, J. B. (1964b). Nonmetric multidimensional scaling: a numerical method. Psychometrika 29, 115–129.
LeCun, Y., Bengio, Y., and Hinton, G. (2015). Deep learning. Nature 521, 436–444. doi: 10.1038/nature14539
Maaten, L. v. d., and Hinton, G. (2008). Visualizing data using t-SNE. J. Mach. Learn. Res. 9, 2579–2605.
Megías, M., Emri, Z., Freund, T., and Gulyás, A. I. (2001). Total number and distribution of inhibitory and excitatory synapses on hippocampal ca1 pyramidal cells. Neuroscience 102, 527–540. doi: 10.1016/S0306-4522(00)00496-6
Milo, R., Shen-Orr, S., Itzkovitz, S., Kashtan, N., Chklovskii, D., and Alon, U. (2002). Network motifs: simple building blocks of complex networks. Science 298, 824–827. doi: 10.1126/science.298.5594.824
Missale, C., Nash, S. R., Robinson, S. W., Jaber, M., and Caron, M. G. (1998). Dopamine receptors: from structure to function. Physiol. Rev. 78, 189–225.
Mitchell, G. F., van Buchem, M. A., Sigurdsson, S., Gotal, J. D., Jonsdottir, M. K., Kjartansson, Ó., et al. (2011). Arterial stiffness, pressure and flow pulsatility and brain structure and function: the age, gene/environment susceptibility–reykjavik study. Brain 134, 3398–3407. doi: 10.1093/brain/awr253
Newman, M. E. (2003). The structure and function of complex networks. SIAM Rev. 45, 167–256. doi: 10.1137/S003614450342480
Rolls, E., and Deco, G. (2010). The Noisy Brain: Stochastic Dynamics as a Principle of Brain Function (Oxford University Press).
Rolls, E. T., and Treves, A. (1990). The relative advantages of sparse versus distributed encoding for associative neuronal networks in the brain. Netw. Comput. Neural Syst. 1, 407–421.
Schmidhuber, J. (2015). Deep learning in neural networks: an overview. Neural Netw. 61, 85–117. doi: 10.1016/j.neunet.2014.09.003
Shen-Orr, S. S., Milo, R., Mangan, S., and Alon, U. (2002). Network motifs in the transcriptional regulation network of Escherichia coli. Nat. Genet. 31:64. doi: 10.1038/ng881
Song, S., Sjöström, P. J., Reigl, M., Nelson, S., and Chklovskii, D. B. (2005). Highly nonrandom features of synaptic connectivity in local cortical circuits. PLoS Biol. 3:e68. doi: 10.1371/journal.pbio.0030068
Van Essen, D. C., Smith, S. M., Barch, D. M., Behrens, T. E., Yacoub, E., Ugurbil, K., et al. (2013). The WU-minn human connectome project: an overview. Neuroimage 80, 62–79. doi: 10.1016/j.neuroimage.2013.05.041
Keywords: three-node network motifs, neural networks, Boltzmann neurons, structure, dynamics
Citation: Krauss P, Zankl A, Schilling A, Schulze H and Metzner C (2019) Analysis of Structure and Dynamics in Three-Neuron Motifs. Front. Comput. Neurosci. 13:5. doi: 10.3389/fncom.2019.00005
Received: 02 November 2018; Accepted: 18 January 2019;
Published: 07 February 2019.
Edited by:
Chris G. Antonopoulos, University of Essex, United KingdomReviewed by:
Masami Tatsuno, University of Lethbridge, CanadaErnest Barreto, George Mason University, United States
Copyright © 2019 Krauss, Zankl, Schilling, Schulze and Metzner. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Patrick Krauss, patrick.krauss@uk-erlangen.de