Manuscript Offprint
arXiv:2610.33498Optimal Connectivity of Random Boolean Networks for Reservoir Computing
Christopher Michael Skeide Vibe , Aliaksandr Hubin , and Stefano Nichele
Machine Learning Research Group, Østfold University of Applied Sciences, B R A
Veien 4, NO-1783 Halden, Norway
Bioinformatics and Applied Statistics, Faculty of Chemistry, Biotechnology and Food Science, Norwegian University of Life Sciences, Chr. M. Falsens vei 18, NO-1433 Ås, Norway
Abstract. Reservoir computing shifts the focus from training a system's internal dynamics to designing dynamics that expose useful computational capabilities via linear projection. We study random Boolean networks as reservoirs: cellular automata with random recurrent wiring and a random rule at each node. Their main parameter is the connectivity, the mean number of edges into a node. Without input, these networks pass from ordered to chaotic dynamics at a connectivity of 2, where their dynamics are expected to facilitate computation. How the input is connected is itself a design factor: if the input shares the network's edges, the connectivity sets both the dynamics and how many nodes receive the input, the input fan-out. We set the input fan-out separately and compare 7,560 reservoir designs, all combinations of six design factors, each built as many random reservoirs, on recalling the majority or the parity of a few input bits seen several steps earlier. The optimal connectivity falls from 2.5 to 1.75–2 as more nodes receive the input, but hardly depends on the task or on the other design factors, except self-loops, which connect a node to itself and raise the optimal connectivity. A measure computed from the reservoir states without a trained readout peaks at a connectivity that also falls with the fan-out and rises with self-loops, but does not replace training a readout. Reservoirs of one design vary widely, so a design should be judged by its typical reservoir.
1 Introduction
In reservoir computing, the input drives a dynamical system, the reservoir, and only a linear readout of its states is trained [6,9]. Thus the design of the reservoir limits what the system can compute. Random Boolean networks (RBNs) generalize cellular automata (CA), with random instead of local wiring and a rule drawn for each node. CA with a rule per cell have served as reservoirs [12], and Snyder et al. call RBNs used as reservoirs Boolean reservoirs [13]. Without input, an RBN with unbiased rules is ordered when its connectivity, the mean in-degree of its nodes, is below 2 and chaotic above it [7,4]. Reservoirs are expected to perform best near this transition [1,8].
C. M. S. Vibe et al.
A reservoir, however, is driven: at every step the input enters the rules of the nodes it reaches, so the critical value of the undriven network need not be the optimal connectivity of a reservoir, the at which it is most accurate. Earlier results differ. Snyder et al. draw the input and recurrent edges from one shared pool, so that also sets how many nodes receive the input, the input fan-out (Sect. 2); their trained 500-node reservoirs are most accurate at the largest tested, 8, at the shortest delay, and at between 3 and 4 at long delays [13]. In a second study they wire the input to separate nodes and vary and ; on their tasks, accuracy falls least at as the window and the input stream grow [14]. Echlin et al. also set the fan-out separately and find among , except in large reservoirs with many input nodes, where [5]; in threshold networks, Calvet et al. find [2]. Each study varies a few design factors and fixes the rest, so has not been measured while the input fan-out and other factors vary together.
We therefore ask how depends on the design of the reservoir and on the task. We expect to vary with every design factor, the input fan-out among them, and with how much memory and computation the task demands. As in the second study of Snyder et al. and in Echlin et al., we give the input its own edges, to r reservoir nodes drawn at random, so that the input fan-out is set apart from . We vary six design factors jointly: the input fan-out, , state updates per input bit, initialization, input injection, and self-loops. The classical RBN has no self-loops; Montagna et al. replace one in-edge of a node with a self-loop, preserving its random rule, and find that the undriven network has more cyclic attractors the more nodes have a self-loop [11]. Our self-loops replace an in-edge in the same way, so at a given a network with self-loops has fewer edges between distinct nodes. In a driven reservoir, the input variance is also expected to affect the dynamics; we hold it fixed (Sect. 3.2) and vary the demands of the task instead. Each task recalls a short window of past input bits, either its majority or its parity. Majority and parity are two ends of a scale from memory to computation: the majority can still be guessed when some bits of the window are lost, while the parity falls to chance when a single bit is lost. Memory and nonlinear computation share the bounded capacity of a dynamical system [3].
Boolean reservoirs are often judged without training a readout [13,14], by two measures computed from the reservoir states alone [8]. Kernel quality (KQ) is computed by driving the reservoir with streams that differ and counting the linearly independent states that result, so a high value means that distinct input histories give distinct states; generalization rank (GR) uses streams that are identical at selected bit positions, so a low value means that histories which agree there end in similar states. Snyder et al. take the at which the difference of KQ and GR peaks as the optimal one: 2.25 in 25-node reservoirs [13], and near 2 when is summed over the input fan-out [14]. We test whether the at which peaks lies near across the design grid.

Fig. 1. A toy Boolean reservoir with reservoir nodes, input fan-out and . Left: the input bit is written into the input node , which has an edge to ; the recurrent edges form the cycle . Solid edges are fixed, dashed edges are the trained readout . Middle: the rules (' marks the next state). receives the input, so its lookup table has one column per combination of and ; and have one in-neighbour each. Right: the state after each step for (override injection, one tick, ). At , for example, : every node reads the state before the update.
With the setup of Snyder et al. ( , one input node) we reproduce their S-curve: KQ (Sect. 3.3) rises from low to full rank as grows. We then change only the input wiring. Drawing the input edges separately from the recurrent edges, as many on average as in the shared pool, changes the curve little at low , so there KQ is limited by how few nodes receive the input, not by the two kinds of edges sharing one pool. A one-to-one mapping from input nodes to reservoir nodes instead fixes the input fan-out at for every , and at raises KQ at every , at from 1.5 to 4.2 of 25. The replication details are in Appendix A.2, and the code behind every curve is available (Sect. 3.4). The rest of the paper uses this mapping over the full design grid (Sects. 3 and 4.2).
3 Method
3.1 Model
Input. A sample is one stream of bits, at step . The input fan-out is the number of reservoir nodes that receive each bit.
Graph. The network has input nodes and reservoir nodes , which form one Boolean node set with state , whose reservoir part is (Fig. 1). Two kinds of fixed edges connect them. The input edges
C. M. S. Vibe et al.
are one-to-one: each bit is copied to input nodes, each with a single edge to a distinct reservoir node drawn at random (Sect. 2), and input nodes receive no edges. The recurrent edges number exactly , so the connectivity is the mean in-degree of a reservoir node. The wiring mode sets how these edges are spread over the nodes. In the homogeneous mode every node has in-degree , which requires an integer . In the heterogeneous mode the edges are drawn without replacement from possible in-edges per node, so the in-degree is hypergeometric, at most , with a mean that can be fractional. At no node reaches , and input edges do not count toward it. In both wiring modes each node draws distinct sources uniformly from the reservoir, and exactly a fraction of the nodes has a self-loop, which replaces one of its sources. The design grid uses the heterogeneous mode; a second grid in the homogeneous mode, at with one tick, no self-loops and random initialization, tests whether the in-degree distribution moves .
Rules. Each reservoir node has a rule, a random lookup table (LUT) over its in-neighbours, . A node that receives the input reads its input node first, so its rule is , as for in Fig. 1. The table entries are drawn once, i.i.d. from Bernoulli with , for which the critical connectivity is 2 [4]. A reservoir's graph, LUTs and initial state are drawn from one seed (Sect. 3.4).
Dynamics. Each step injects the input through the injection map P,
and applies the synchronous update : every node with at least one in-neighbour sets , the others keep their value. One step is , with applications of per input bit (the ticks). Under the input node holds the running parity of the stream rather than the current bit. changes only the input nodes; the input enters the rules of reservoir nodes as one argument. One state per input bit is recorded, after the last application of ; unlike CA reservoirs that read every iteration within a step [12], no readout sees the state between ticks. Each sample starts from the same state , with input nodes at 0 and the reservoir part in one of three initialization modes: zeros, ; random, i.i.d.; or random-warmup, with drawn as in random, that is ticks without input. is drawn once per reservoir and is the same for every sample, so it carries no information about the input.
3.2 Tasks and Readout
Washout. Every sample starts from the same initial state, which would make a sample's first input bits trivially readable, so each sample begins with 10 random washout bits of its own, followed by 15 pattern bits that contain every target window . The pattern bits run through all patterns once each, so the bits are independent, with maximum variance.
Targets. The targets are computed from one window of pattern bits at delay from the end of the stream: the bits at .
Majority asks whether most bits of the window are 1; parity is the XOR of all w bits. Both tasks follow Snyder et al. [13], who call majority density classification, as in CA [10]. A task is majority or parity, a task variant is one task at one window, delay and readout ( in all), and target is reserved for the y of Eq. (2). All task variants read the same reservoir run.
Split. The samples, one per pattern, are shuffled and split 50/30/20 into training, development and test sets, so no pattern is in two sets. Each target value holds for exactly half of the patterns, since flipping one window bit flips the parity and flipping all of them flips the majority of an odd window, so the split needs no stratification. The readout trains on the training set, and every reported accuracy is on the development set unless marked as test. The test set only checks that the choices of the analysis did not fit the development samples: the mean difference is 0.5–0.8 % per task variant, and at most 0.9 % at any , close to the sampling noise of the split (0.64%).
Readout. A linear readout reads the reservoir nodes only, at the steps for the final-state readout and , the steps after the washout, for the summed readout. Each task variant has its own logistic regression
with the reservoir part of the state, fitted by Newton–IRLS with an penalty of relative to the feature scale, only to keep separable and rank-deficient fits well posed. The readout predicts 1 when and is evaluated by its development-set accuracy.
3.3 Kernel Quality and Generalization Rank
KQ and GR [8], and their difference , follow Snyder et al. [13], except that is signed (theirs is ) and each stream begins with the washout. A probe set holds streams built like samples, so that the state matrix is square, as in Snyder et al. The readout input of stream forms row of the state matrix , so KQ, GR and are measured separately for each readout: on the final state, as in Snyder et al., or on the summed states. Then
C. M. S. Vibe et al.

Fig. 2. The setup and the design grid. A sample is a stream of 25 bits, the first 10 washout; the target is the majority or the parity of the last w bits, shifted back by d. The figure lists the levels of each design factor (Table 2 in the appendix) and the windows and delays of the task variants; only the linear readout is trained.
with the numerical rank over . is with the last bits of every stream replaced by those of one reference stream, and its streams are drawn so that they stay distinct. This construction is one of 12, chosen on the selection run (Sect. 3.4); Appendix A.4 gives the others and the further results of KQ, GR and . Every reservoir is measured on the same streams.
3.4 Experiments
Design grid. A design takes one level of each design factor in Fig. 2, and the grid is full factorial: 504 combinations of input fan-out, injection, ticks, initialization and self-loops, each at 15 values of , give 7,560 designs.
Reservoirs. Each design is built as 20 reservoirs, each with its own random wiring and rules, seeded by the design and the reservoir's index, so no two designs share a reservoir. Every reservoir is evaluated on all 16 task variants (Sect. 3.2) on the same patterns and split, and measured by KQ and GR, so task variants are always compared on the same reservoirs. A design's design accuracy on a task variant, or accuracy for short, is the median over its 20 reservoirs. Every choice of the analysis (the construction of , each task variant's best design and the at which self-loops are compared, below) was made on a selection run of the same grid with 12 other reservoirs per design, so the choices and the reported numbers come from different reservoirs. Held-out patterns alone would not suffice, since a design's accuracy varies far more between its reservoirs than between pattern sets (Appendix A.3).
Floors. The floor of a task variant is the best accuracy without a reservoir, predicting from the last input bit (final-state readout) or from the count of ones among the pattern bits (summed readout). The floor is 66–71% for summed majority and chance (50–51.5%) otherwise.
Operating point. The operating point of a task variant is the r, P and of its best design. Ticks, initialization and self-loops vary freely there, giving 42 designs per task variant. is fixed as well because with only r and P fixed many designs are at the floor, where the other factors show no difference. When ticks or initialization are compared, self-loops are held equal, as is, since a self-loop replaces one of its node's sources and so changes the number of edges between distinct nodes. Self-loops are compared on each combination of the other factors, placed at the where it is most accurate on the selection run (its own ), against the same combination without self-loops, placed likewise.
Analysis. Accuracies are in %, and differences between them are absolute. The analysis makes two choices. First, input fan-out and injection are compared by the best design over the whole grid, and by mean curves (design accuracy averaged over all designs at one fan-out and and over a task's four variants, with the optimal connectivity at a curve's peak). Every other factor is compared at the operating point, since fan-out and determine whether a design rises above its floor, and over the whole grid their effects are larger than those of the other factors. Second, designs are always compared by design accuracy, the median defined above, since reservoirs of the same design differ widely; a design is never judged by its best reservoir. Appendix A.3 describes how each interval was computed, and a script for every number in the paper is at https://github.com/chrisvibe/furu.
4 Results
4.1 Accuracy, Input Fan-Out and Injection


Fig. 3. Design accuracy of the best design at each input fan-out and injection (w=5), final-state readout (left) and summed (right). The best design over , ticks, initialization and self-loops is chosen per task variant on the selection run (Sect. 3.4). Colour: task; line style: delay (solid d=5, dotted d=10); marker: injection (filled override, open xor). Dashed grey line: the floor of summed majority (70.7% at both delays).
C. M. S. Vibe et al.
Every task variant's best design is 9–41% more accurate than its floor (Sect. 3.4), except final-state parity at (6%). At (Fig. 3), on the final-state readout, majority is most accurate at fan-out 64 at (80%) and at 16 at (67%), and parity at 64 at (63%, against at most 56% at lower fan-out); parity at stays at 50–57% at every fan-out. On the summed readout, majority is most accurate at fan-out 16 (85–86%), and parity at 64 at (61%); parity at stays at 58–60%. Beyond its best fan-out every majority variant is less accurate, by 9–15% at fan-out 512. At accuracy is higher, at the same best fan-outs except on summed parity at (256) (up to 91% on majority and 72% on parity).
Between the best override design and the best xor design over all fan-outs, on the final-state readout override is more accurate on majority, by 8–17%, and xor on parity at d=5, by 6% at w=5 and 1% at w=3. On the summed readout override is more accurate on majority, by 10–14%, and on parity override and xor differ by at most 2%.
4.2 The Optimal Connectivity
In Fig. 4, of the majority task falls as the fan-out grows, on both readouts: from 2.5 at fan-out 4, above the critical value of RBNs, to 2 (final-state) and 1.75 (summed) at fan-out 512. Its 95% interval spans at most one grid step (0.25), and the median of each combination's own falls in the same way (Appendix A.3). On the majority task, is 3.5–4.5% less accurate than at fan-out 4, 0.8–2.6% at 16, and at most 0.2% from 64 up. Parity's equals the majority task's from fan-out 16 up. At fan-out 4 parity's mean curves stay within 2% of chance, so their says little: from to 8 they stay within 1% of their maximum.
The dashed lines in Fig. 4 mark the at which peaks, computed without a trained readout (Sect. 3.3). On the final-state readout this falls from 2.5 at fan-out 4 to 2 at 512; it is at most 0.4% less accurate than at every fan-out, and more accurate than at fan-out 4 and 16. On the summed readout the at 's peak falls from 3 to 1.5; on majority at fan-out 4 it is 3.1% less accurate than , and is 3.5% less accurate. From fan-out 16 up, the at 's peak and are both at most 0.8% less accurate than .
The task and the delay move beyond its interval only where the best design is at most 58% accurate. We compare pairs of task variants that differ only in the task (task pairs) or only in the delay (delay pairs), on the same reservoirs at each fan-out from 4 up (Appendix A.3), leaving out three pairs of each kind, all with final-state parity at (50%). The two variants of a pair have the same in 26 of the remaining 37 task pairs and in 24 of 37 delay pairs, and a longer delay never lowers . All 8 pairs whose 95% interval of the difference excludes 0 involve such a variant.
Injection, ticks and initialization move by at most one grid step in 59 of the 60 combinations of factor, readout, task and fan-out. Self-loops move in one direction: from to , rises in all 20 combinations of readout, task and fan-out, by 0.25–0.75, less than the one edge from another node that each


Fig. 4. The optimal connectivity against input fan-out (categorical axis), final-state readout (left) and summed (right). Solid lines: of each task, from the mean design-accuracy curve over all designs at that fan-out and and over the task's four variants (windows and delays); bars span the within of the accuracy at . Dashed lines: the at the peak of the mean curve over the same designs; does not depend on the task, so each readout has one. Fan-out 1 is left out: its mean curves are within of their peak from up to 8. At fan-out 4 the parity bars run to , beyond the axis.
self-loop replaces. The at 's peak rises with self-loops as well: at it lies within 0.5 of in of these combinations, and in .
Homogeneous wiring, every node at in-degree exactly , gives the same as heterogeneous wiring on the integer grid in of the 96 combinations of task variant and fan-out, and within 1 in . The best homogeneous design is at least as accurate, and more accurate at fan-out 64 and 256, by 2.7 and on average, with intervals above 0 (Appendix A.3).
Table 1. Effect of ticks and self-loops at the operating point: the median difference in design accuracy between designs that differ only in that factor, relative to one tick and no self-loops, in %. The self-loop rows place each combination at its own (Sect. 3.4). Each column takes the pairs from its four task variants (84 pairs for ticks, 24 per self-loop level). Brackets: the interquartile range over the pairs.
| final-state majority | final-state parity | summed majority | summed parity | |
|---|---|---|---|---|
| ticks | -10.6[-14.2, -5.9] | -4.8[-6.4, -3.4] | -6.2[-9.7, -2.7] | -3.3[-4.1, -1.1] |
| self-loops | -2.2[-3.9, +0.4] | -0.1[-2.0, +1.2] | -0.9[-2.3, +0.5] | 0.0[-1.2, +0.7] |
| self-loops | -9.8[-15.5, -3.7] | -1.4[-7.2, +0.5] | -6.3[-10.4, -0.4] | -3.4[-5.0, -0.1] |
C. M. S. Vibe et al.
4.3 Other Design Factors and Variation Between Reservoirs
At the operating point (Table 1), a second tick lowers accuracy by 3–11% on every readout and task. Self-loops lower accuracy, more on the majority task than on parity; with self-loops on a tenth of the nodes (s=0.1), no median decrease exceeds 2.2%. A Beta regression of single-reservoir accuracy finds a larger decrease at s=1 than at s=0.1 on every readout and task (Appendix A.3). The initialization changes design accuracy by at most 0.5%.
Reservoirs of the same design differ in their random wiring and rules. On the majority task these differences account for 17–45% of the variance of single-reservoir accuracy over the grid, and on parity for 16–65%, most on final-state parity at (63–65%). In each task variant's best design, the best of the 20 reservoirs is more accurate than the median one by 6–28%, more than the median effect of any design change at the operating point. Single reservoirs reach 100% on every task variant (at least 99.86% on test), on parity even in designs whose median is about 51%.
5 Discussion
What moves the optimal connectivity. Against our expectation, moves only with the fan-out and self-loops; the task, the delay, injection, ticks and initialization hardly move it. Snyder et al. [13] find parity's at or above that of the majority task and a lower at longer delays; here neither appears where accuracy rises above chance, but their reservoirs use a shared pool, and their readout is trained online and evaluated at every step. With a self-loop on every node, each node has one edge from another node fewer, yet rises by only 0.25–0.75, not by 1. Either a node's own previous state partly replaces the missing edge, or self-loops move the transition between order and chaos, since a self-loop carries a change in its node's state to no other node; neither explanation was tested.
Connectivity and input. The critical value of RBNs [7,4] is close to the optimal connectivity only when many nodes receive the input (fan-out 64 and up); with few input nodes, reservoirs are most accurate above , where the undriven network is chaotic. The classical critical point applies here only approximately: nodes that receive the input have inputs on average, one of them the injected bit, and a driven network is not a closed system. One untested interpretation: the more nodes the input reaches, the more changes it injects, and the lower must be to keep the network at the same point between order and chaos. Since depends on the fan-out, studies with different fan-outs can find different values of , which may explain part of why earlier optima range from to 8. Two earlier findings agree in direction with the fall of as the fan-out grows: Echlin et al. [5] find best in large reservoirs with many input nodes, and Snyder et al. [14] find that their more chaotic reservoirs reach their best accuracy with a smaller fan-out. In a shared pool, where also sets the fan-out, an optimum mixes the effects of and fan-out [13], and summed over the fan-out cannot show how changes with fan-out [14].
Estimating the optimal connectivity. Two estimates of need no trained readout: , and the at 's peak, which falls with fan-out and rises with self-loops, as does. On the final-state readout, the at 's peak is the better estimate at fan-out 4 and 16. On the summed readout, at fan-out 4, the at 's peak and are both more than 3% less accurate than on the majority task; from fan-out 16 up, each is within 0.8%. Neither estimate replaces training a readout.
Accuracy. The explanations in this paragraph fit the results but were not tested. The task changes how accurate a design can be: final-state parity at d=10 stays at 50–57% at every fan-out, in line with the scale from memory to computation (Sect. 1): the majority of a window can still be guessed when some of its bits are lost over the later input, its parity cannot. Under xor the input node holds the running parity of the stream (Sect. 3.1), so a window's parity is the XOR of only two past values of the input node, which may explain why xor is the better injection on final-state parity at d=5 and override on majority. A second tick passes an input bit's effect through two rules before the next bit arrives, so the state keeps fewer past input bits, which fits the lower accuracy on every readout and task. The initialization makes no difference, as expected if the ten washout bits remove the effect of the initial state.
Limits. This study has one reservoir size, one input distribution and two tasks at short delays; self-loops that add an edge instead of replacing one, and a readout of every tick, are untested. Our intervals, uncorrected for multiple comparisons, cover only the variation between reservoirs of the same design, so the results hold for the explored grids. Two questions remain open: why is near the critical value at high fan-out, and what sets apart the single reservoirs that reach 100% where their design's median is about 51%.
6 Conclusion
In the reservoirs studied here, the optimal connectivity falls as the input fan-out grows and rises with self-loops, but hardly depends on the task or on the other design factors. The critical value is close to optimal only when many nodes receive the input (fan-out 64 and up). When few do (fan-out 4), majority is most accurate at and up to 4.5% less accurate at , and parity shows no clear optimum. The connectivity should therefore be chosen together with the input fan-out and self-loops. The at 's peak estimates the optimal connectivity on the final-state readout but not on the summed one.
Both tasks are solved at least 9% above their floors, except final-state parity at the longer delay. Majority is most accurate at an intermediate fan-out and with override injection, parity at a high fan-out; one state update per input bit is better than two on every task, self-loops on many nodes lower accuracy, and the initialization does not matter. Single reservoirs of one design differ more than a change of ticks, self-loops or initialization changes their median, so a design, and its optimal connectivity, should be judged by the median of many reservoirs.
C. M. S. Vibe et al.
References
-
Bertschinger, N., Natschläger, T.: Real-time computation at the edge of chaos in recurrent neural networks. Neural Computation 16(7), 1413–1436 (2004). https://doi.org/10.1162/089976604323057443
-
Calvet, E., Reulet, B., Rouat, J.: The connectivity degree controls the difficulty in reservoir design of random boolean networks. Frontiers in Computational Neuroscience 18 (Mar 2024). https://doi.org/10.3389/fncom.2024.1348138
-
Dambre, J., Verstraeten, D., Schrauwen, B., Massar, S.: Information Processing Capacity of Dynamical Systems. Scientific Reports 2(1), 514 (Jul 2012). https://doi.org/10.1038/srep00514
-
Derrida, B., Pomeau, Y.: Random Networks of Automata: A Simple Annealed Approximation. Europhysics Letters 1(2), 45 (Jan 1986). https://doi.org/10.1209/0295-5075/1/2/001
-
Echlin, M., Aguilar, B., Notarangelo, M., Gibbs, D.L., Shmulevich, I.: Flexibility of Boolean Network Reservoir Computers in Approximating Arbitrary Recursive and Non-Recursive Binary Filters. Entropy 20(12), 954 (Dec 2018). https://doi.org/10.3390/e20120954
-
Jaeger, H.: The “echo state” approach to analysing and training recurrent neural networks – with an Erratum note. Tech. Rep. 148, German National Research Center for Information Technology (GMD) (Jan 2010)
-
Kauffman, S.A.: Metabolic stability and epigenesis in randomly constructed genetic nets. Journal of Theoretical Biology 22(3), 437–467 (Mar 1969). https://doi.org/10.1016/0022-5193(69)90015-0
-
Legenstein, R., Maass, W.: Edge of chaos and prediction of computational performance for neural circuit models. Neural Networks 20(3), 323–334 (Apr 2007). https://doi.org/10.1016/j.neunet.2007.04.017
-
Maass, W., Natschläger, T., Markram, H.: Real-time computing without stable states: A new framework for neural computation based on perturbations. Neural Computation 14(11), 2531–2560 (Nov 2002). https://doi.org/10.1162/089976602760407955
-
Mitchell, M., Hraber, P.T., Crutchfield, J.P.: Revisiting the Edge of Chaos: Evolving Cellular Automata to Perform Computations. Complex Systems 7(2), 89–130 (1993)
-
Montagna, S., Braccini, M., Roli, A.: The Impact of Self-Loops on Boolean Networks Attractor Landscape and Implications for Cell Differentiation Modelling. IEEE/ACM Transactions on Computational Biology and Bioinformatics 18(6), 2702–2713 (Nov 2021). https://doi.org/10.1109/TCBB.2020.2968310
-
Nichele, S., Gundersen, M.S.: Reservoir Computing Using Nonuniform Binary Cellular Automata. Complex Systems 26(3) (2017)
-
Snyder, D., Goudarzi, A., Teuscher, C.: Finding Optimal Random Boolean Networks for Reservoir Computing. In: ALIFE 2012: The Thirteenth International Conference on the Synthesis and Simulation of Living Systems. pp. 259–266 (Jul 2012). https://doi.org/10.1162/978-0-262-31050-5-ch035
-
Snyder, D., Goudarzi, A., Teuscher, C.: Computational Capabilities of Random Automata Networks for Reservoir Computing. Physical Review E 87(4), 042808 (Apr 2013). https://doi.org/10.1103/PhysRevE.87.042808
A Supplementary Material
A.1 Design Factors
Table 2. The design factors of the grid (Fig. 2), their values, and what each controls. Every factor is defined in Sect. 3.1.
| factor | symbol | values | controls |
|---|---|---|---|
| input fan-out injection | r | 1, 4, 16, 64, 256, 512 | |
| P | override, xor | how enters the input nodes (Eq. (1)) | |
| ticks | 1, 2 | applications of per input bit | |
| initialization | zeros, random, random-warmup | initial state vector | |
| self-loops | s | 0-0.5 by 0.1, then 1 | fraction of nodes with a self-loop |
| connectivity wiring mode | 1-3 by 0.25; 3.5, 4, 5, 6, 7, 8 heterogeneous; homogeneous in a second grid (Sect. 4.2) | distribution of |
A.2 Snyder Replication
We reproduce Snyder et al.'s kernel-quality curve and then change only the input wiring (Fig. 5; generate_replication.py). The setup follows theirs: , one input node, 25 streams drawn from all streams of 10 bits, GR streams that share their last steps (Appendix A.4), KQ and GR streams drawn independently, 25 reservoirs per point, and no washout, as in the definition of Snyder et al. The replication reproduces the published S-curve on the shared pool with heterogeneous in-degrees, as in their Fig. 1a: KQ rises from 1.5 of 25 at to 24.9 at (homogeneous in-degrees: 2.2 to 25.0), and GR rises with KQ. Drawing the input edges separately from the recurrent ones, as many on average as in the shared pool, changes the curve little at low (KQ 1.6 against 1.5 shared at , and 16.2 against 14.3 at ), since at low the input may still reach no node. The one-to-one mapping with connects the input to exactly one reservoir node at every , and KQ reaches only 16.6 by ; at , KQ is 4.2, 18.6 and 25.0 at , above the shared pool at every .
A.3 Statistical Checks
Every number in Sect. 4 and in Appendices A.3–A.4 is computed by analyze_design_choices.py in the released code (Sect. 3.4), which writes it to a CSV file; each check below names its file. Design accuracy is a median
C. M. S. Vibe et al.

Fig. 5. Replication of Snyder et al.'s kernel-quality curve: the rank of the final reservoir states over 25 streams drawn from all ten-bit streams, against ( ). Shared pool: the wiring of Snyder et al., where input and recurrent edges come from one pool. Separate draw: the input edges drawn on their own, as many on average as in the shared pool. Dedicated: the one-to-one mapping at input fan-out , 3 and 5. Under the shared pool and the separate draw, few or no nodes receive the input at low ; the dedicated mapping at raises KQ there. Lines: smoothing splines through the means over 25 reservoirs at each ; the numbers in the text are the means at the grid points.
over a design’s 20 reservoirs, and the checks test whether the comparisons in the main text exceed the variation between reservoirs of the same design. Each reservoir belongs to one design only, so the checks resample reservoirs within each design or cluster standard errors by design, instead of fitting a random effect per design.
Precision of (k_boot). Each of 200 draws resamples every design's 20 reservoirs with replacement, uses the same resampled reservoirs for every task variant, and recomputes , the at the peak of each mean curve. The designs are not resampled, since the grid contains every design. The 95% interval of is at most one grid step wide at every fan-out, readout and task except summed parity at fan-out 4, where it spans two steps (Table 4), so the fall of with fan-out is not an effect of which reservoirs were drawn. The bars of Fig. 4 show the range of within 1% of a curve's peak, not how precisely the peak is known: from fan-out 16 up, the within 1% of a peak span 0.25–1 (k_by_drive).
Each combination’s (k_design). comes from a curve averaged over the combinations of the other factors, and a single combination may be most accurate at another . Each combination’s own , taken over the combinations whose accuracy varies by at least 2% over , agrees: from fan-out 4 up, its median over combinations equals at 19 of the 20 points of Fig. 4, and lies 0.25 below it, inside the interval, on final-state majority at fan-out 512; no interquartile range is wider than 0.5. On final-state parity at fan-out 4 only 73 of the 336 curves (84 combinations, four task variants) vary by 2%, and every other combination keeps at least 154. At fan-out 1 the medians are 4–7 (k_by_drive_low gives the mean curves there).
Choosing on the selection run (selection_drop). The design chosen as best on the selection run is less accurate on the reported reservoirs, since part of its advantage on the selection run came from that run's reservoirs. Over the 8 task variants of a readout, the mean drop is 3.4–10.5% at fan-out 1–64 and 0.4–1.7% at 256–512; the largest is 22.6%, at fan-out 1. Within each task variant's best design, single-reservoir accuracy has a standard deviation of 1.4–19.5%, above 4% in 14 of the 16 task variants (draws), against a sampling noise of 0.64% between pattern sets (Sect. 3.2).
Task and delay (k_task, k_task_summary). Task pairs and delay pairs (Sect. 4.2), at the same readout, window and fan-out, are compared on the same reservoirs. Each of 200 draws resamples every design's reservoirs once and recomputes of both task variants; the two values of differ beyond the variation between reservoirs when the 95% interval of their difference excludes 0. A pair is left out when either variant's own has an interval wider than 1. This rule leaves out three task pairs and three delay pairs, all with final-state parity at and fan-out 256–512, where accuracy stays at chance; the intervals of their differences are 3–4.25 wide, and every other interval of a difference is at most 0.75 wide.
Other factors and (k_shift). The shifts of with injection, ticks, initialization and self-loops are differences between the at the peaks of mean curves, one curve per level, and have no interval. At a node without in-edges has no source for its self-loop to replace, so it first receives an edge moved from a node with two or more in-edges. The rise of does not depend on these moved edges: already at , where no edge is moved, rises by 0–0.5, and the mean number of edges from other nodes at , , falls or stays equal in all 20 combinations. The rise stays below one edge per node and is not proportional to : at , rises by 0.75, one grid step less than one edge per node, in 7 of the 20 combinations, and from to 1 it rises by 0.5, as many edges per node as the added self-loops replace, in 8.
Homogeneous wiring (wiring_k, wiring_best, wiring_best_summary). The second grid, in the homogeneous mode, has no selection run, so each wiring mode's best design over injection and is chosen on 10 of a design's reservoirs and evaluated on the other 10, then the other way round, and the two accuracies are averaged. The homogeneous and the heterogeneous mode choose among the same 16 designs; the heterogeneous reservoirs are those of the main grid. Each of 200 draws resamples each half's reservoirs within each design, so choosing and evaluating stay disjoint. The mean difference, homogeneous minus heterogeneous, over the 16 task variants is +1.1, +3.7, +4.1, +2.7, +2.0 and
C. M. S. Vibe et al.
+0.4% at fan-out 1 to 512; the 95% interval of this mean lies above 0 at fan-out 64 (0.3 to 4.6%) and 256 (1.2 to 2.9%), and is 7–10% wide at fan-out 1–16. Per task variant and fan-out, 24 of the 96 intervals lie above 0 and none below.
Variance shares (variance, draw_share). Over the whole grid, input fan-out and account for 42–86% of the variance in design accuracy, depending on the task variant. A large share means that a factor separates good designs from bad ones, not that it changes accuracy among good designs, which is why the other factors are compared at the operating point. Of the other factors, injection accounts for at most 21%, and ticks, initialization and self-loops for at most 7% each. The differences between reservoirs of the same design account for more than half of the variance of single-reservoir accuracy on three task variants of final-state parity (w=5 at d=5, and both windows at d=10).
Other factors (twins_summary, self_loops_summary, beta_op). At a task variant's operating point, ticks, initialization and self-loops form a full factorial. Per readout and task we fit a Beta regression (logit link) of single-reservoir accuracy on the task variant and the three factors, as main effects relative to one tick, random initialization and no self-loops, with standard errors clustered by design (3,360 reservoirs per fit). The fit for ticks and initialization uses the operating point's , with self-loops as a control; the fit for self-loops places each combination at its own , with ticks and initialization as controls (Sect. 3.4). Table 3 gives each factor's average marginal effect, the mean change in predicted accuracy when only that factor changes. The model estimates mean effects, whereas Table 1 reports medians of paired differences, so the sizes differ, but the conclusions agree: a second tick, and self-loops on 20% or more of the nodes, lower accuracy on every readout and task; the 95% intervals of self-loops on 10% of the nodes (s=0.1) and of either initialization include 0 on every readout and task.
A.4 The Probe
Probe settings (settings_summary). copies pattern bits from one reference stream, at the same positions in every stream. The placement sets the positions: the first pattern bits (first), the last (last), or pattern bits drawn at random (random). In steal mode the copied bits replace pattern bits; in augment mode every stream has more pattern bits, so all 15 original pattern bits keep their own values, and . The streams of are drawn at random after duplicate streams are removed, and holds the same streams before the copy. A probe setting is one combination of placement, and mode, 12 in all; larger is not used, since leaves fewer than 512 distinct streams for the GR rank. The probe means KQ, GR and under one probe setting. Every reservoir is measured under all 12. Last + steal with was chosen on the selection run. On the reported reservoirs, only under last + steal, with or 5, does correlate with single-reservoir accuracy at the operating point, within each self-loop level, on summed parity ( , averaged over its four task variants, against at most 0.11 for the other ten settings). Why only last + steal correlates on summed parity is open.
Table 3. Average marginal effect of each factor at the operating point, in %, from a Beta regression per readout and task (logit link; baseline one tick, random initialization, no self-loops; standard errors clustered by design). Ticks and initialization: at the operating point's , with self-loops as a control. Self-loops: each combination at its own , with ticks and initialization as controls. Brackets: interval from 2,000 coefficient draws.
| final-state majority | final-state parity | summed majority | summed parity | |
|---|---|---|---|---|
| ticks | -13.0[-15.1, -10.8] | -5.8[-6.9, -4.8] | -8.0[-9.7, -6.3] | -2.8[-3.5, -2.2] |
| self-loops | -5.4[-10.6, +0.2] | -2.3[-4.7, +0.1] | -2.2[-5.6, +1.6] | -0.7[-2.2, +0.8] |
| self-loops | -9.3[-13.9, -4.1] | -3.5[-6.0, -0.9] | -3.8[-6.7, -0.4] | -1.8[-3.2, -0.4] |
| self-loops | -11.2[-15.6, -6.1] | -4.4[-6.7, -2.1] | -4.7[-7.8, -1.2] | -1.7[-3.2, -0.3] |
| self-loops | -12.7[-17.3, -7.5] | -5.0[-7.3, -2.7] | -6.4[-9.8, -2.8] | -2.4[-3.8, -1.0] |
| self-loops | -13.9[-18.6, -8.7] | -5.4[-7.6, -3.1] | -6.9[-9.9, -3.3] | -2.7[-4.1, -1.2] |
| self-loops | -15.5[-20.6, -9.9] | -5.6[-8.1, -3.2] | -8.2[-12.1, -3.8] | -3.3[-4.8, -1.8] |
| init zeros | -1.2[-4.2, +1.9] | -0.2[-1.6, +1.2] | -0.4[-2.7, +1.8] | -0.3[-1.1, +0.5] |
| init random-warmup | -0.7[-4.0, +2.4] | 0.0[-1.2, +1.3] | -1.0[-3.1, +1.2] | -0.4[-1.2, +0.4] |
Analysis. KQ and GR are compared with accuracy only within groups of equal and equal self-loops, never across them, since changes KQ, GR and accuracy at once, and a self-loop, like a change of , changes the number of edges between distinct nodes. At a fixed , falls with self-loops, as accuracy does, so across all 42 designs of an operating point a correlation of with accuracy would mostly measure the effect of self-loops.
Locating (peaks, peaks_s). KQ and GR rise up to at every fan-out (the S-curve, Sect. 2); only peaks inside the range. For each readout and task, the at 's peak lies within 0.5 of each task variant's own in 85–100% of the combinations of fan-out and task variant, and a fixed in 65–100%. The only cases where neither the at 's peak nor is within 0.5 are final-state parity at d=10 at fan-out 256 and 512, whose mean curve stays at chance. At every self-loop level the at 's peak lies within 0.5 of in 95–100% of the combinations of readout, task and fan-out, and in 85–100% below s=1 and in 50% at s=1.
C. M. S. Vibe et al.
Table 4. The optimal connectivity per input fan-out (the at the peak of the mean curve, as in Fig. 4). Brackets: interval over 200 bootstrap draws of each design's reservoirs.
| fan-out | final-state majority | final-state parity | summed majority | summed parity |
|---|---|---|---|---|
| 4 | 2.5 [2.5, 2.5] | 3 [2.75, 3] | 2.5 [2.5, 2.5] | 2.75 [2.5, 3] |
| 16 | 2.25 [2.25, 2.25] | 2.25 [2.25, 2.25] | 2.25 [2.25, 2.25] | 2.25 [2.25, 2.25] |
| 64 | 2.25 [2, 2.25] | 2.25 [2, 2.25] | 2 [2, 2] | 2 [2, 2] |
| 256 | 2 [2, 2] | 2 [2, 2] | 1.75 [1.75, 2] | 1.75 [1.75, 1.75] |
| 512 | 2 [1.75, 2] | 2 [2, 2] | 1.75 [1.75, 1.75] | 1.75 [1.75, 1.75] |
Ranking designs (design_rho, design_rho_k_step). Within each self-loop level at the operating point, design accuracy differs mainly with ticks, since the initialization changes it by at most 0.5%. Final-state parity at d=10 is left out here: its design accuracies are 51–59%, close to chance. At the chosen operating points, a design's mean correlates positively with design accuracy (permutation p < 0.05) on 9 of the other 14 task variants (row 1 of Table 5): all four of summed majority, three of summed parity and final-state majority at d=5. On final-state majority at d=10 the correlation is negative ( and -0.38, p = 0.003 and 0.03); on final-state parity at d=5 and on summed parity at w=5, d=10 there is none ( , ). These correlations depend on the operating point's : one grid step lower, is positive on final-state majority at d=10 (0.37 and 0.30) and on both final-state parity variants at d=5, and one step higher it is negative on those parity variants. On final-state majority at d=10, the negative correlation comes from the second tick, which raises while it lowers accuracy (Fig. 7): on final-state majority at w=5, d=10 without self-loops, a second tick raises from 21 to 30 and lowers design accuracy from 67% to 55% (means over the three initializations). A possible reading, not tested here: two updates per input bit make the states of different streams differ more, which raises , and keep fewer past input bits in the state, which does not measure. KQ and GR correlate positively with design accuracy on all 14 task variants.
Ranking reservoirs (seeds, seeds_recommended). Within a design, correlates with accuracy, but the reservoir with the highest is often not the most accurate: the between and accuracy across the reservoirs of one design is positive on 15 of the 16 task variants (row 2 of Table 5), but on the operating point's three designs with one tick and no self-loops, the reservoir with the highest is more accurate than the median one on 10 task variants, up to 4.6% less accurate on 5, all on the final-state readout, and equal on one (row 3).
Table 5. against accuracy, under last + steal with ; each entry is a range over the column's four task variants. Row 1: the Spearman between a design's mean over its reservoirs and design accuracy, across the operating point's designs with the same fraction of self-loops (six: ticks initialization), averaged over the seven self-loop levels. Row 2: across the reservoirs of one design, the mean over the operating point's 42 designs. Rows 3–4: accuracy minus that of the design's median reservoir, in %, for the reservoir with the highest (row 3) and the most accurate reservoir (row 4), the mean over the operating point's three designs with one tick and no self-loops (one per initialization); row 3 averages tied reservoirs, since for of final-state reservoirs and of summed ones.
| final-state majority | final-state parity | summed majority | summed parity | |
|---|---|---|---|---|
| across designs | -0.48–0.79 | -0.09–0.79 | 0.72–0.80 | -0.21–0.81 |
| within designs | 0.26–0.56 | 0.16–0.49 | 0.43–0.48 | -0.01–0.21 |
| highest | -3.6–9.8 | -4.6–6.2 | 2.6–7.2 | 0.0–8.5 |
| most accurate | 9.8–25.6 | 14.5–23.2 | 13.2–18.0 | 2.2–33.1 |
C. M. S. Vibe et al.
A.5 Supplementary Scatters
Figures 6–8 show the single designs and reservoirs behind the summaries in the main text. Each caption states whether a point is a reservoir or a design; rings mark reservoirs at 100% accuracy.

(a)

(b)
Fig. 6. Single-reservoir accuracy against for each input fan-out, final-state readout, one point per reservoir. (a) Majority: at accuracy is highest at a lower than at ; the vertical spread at one comes from the other factors and from the variation between reservoirs of the same design. (b) Parity: the same picture, with more reservoirs near 50%, many of them at .

(mean over the reservoirs of a design)
(a)

(mean over the reservoirs of a design)
(b)
Fig. 7. against design accuracy at the operating point, final-state majority at , one point per design; colour gives the fraction of nodes with a self-loop, filled markers one tick and open markers two. (a) Delay 5: and accuracy fall together as rises, and within each the one-tick designs are the more accurate; within an level , the mean over the levels. (b) Delay 10: below the second tick raises the mean of a level and lowers its accuracy, so within an level ranks the designs in reverse ( , the mean over the levels).

Fig. 8. Test against development accuracy, final-state readout at w=5, d=5, one point per reservoir; reservoirs at 100% on the development set stay at 100% or just below on test.