Abstract
Strongly opinionated minorities can have a dramatic impact on the opinion dynamics of a large population. Two factions of inflexible minorities, polarised into two competing opinions, could lead the entire population to persistent indecision. Equivalently, populations can remain undecided when individuals sporadically change their opinion based on individual information rather than social information. Our analysis compares the cross-inhibition model with the voter model for decisions between equally good alternatives, and with the weighted voter model for decisions among alternatives characterised by different qualities. Here we show that cross-inhibition, contrary to the other two models, is a simple mechanism that allows the population to reach a stable majority for one alternative even in the presence of a relatively high amount of asocial behaviour. The results predicted by the mean-field models are confirmed by experiments with swarms of 100 locally interacting robots. This work suggests an answer to the longstanding question of why inhibitory signals are widespread in natural systems of collective decision making, and, at the same time, it proposes an efficient mechanism for designing resilient swarms of minimalistic robots.
Similar content being viewed by others
Introduction
How a group of individuals reaches a consensus through local interactions and without any centralised authority is widely studied in social, biological, political and information sciences1,2,3,4,5,6. The voter model7,8, thanks to its simplicity and tractability, has been employed both to describe a large variety of natural systems (from plants to humans) across all scales of biological complexity9,10,11,12 and to engineer decentralised artificial systems, such as robot swarms5. Recent studies have, however, shown that the consensus dynamics of the voter model can easily be jeopardised by even a minimal number of self-willed individuals13,14,15. For each alternative, the presence of just one inflexible individual (also called zealot or stubborn in literature), influencing others but not changing their opinion, prevents the entire population from reaching any stable agreement (i.e. a large majority with the same opinion)13. Equivalently, in the absence of zealots, the population cannot achieve a stable majority if every individual makes spontaneous (asocial) changes of opinion, even if sporadic (modelled as the noisy voter model14).
Here, we show that a model of comparable simplicity, the cross-inhibition model16,17,18, makes the population resilient to the presence of both self-willed and inflexible individuals and able to reach a stable consensus. These results contribute to explaining why inhibitory signals evolved in biological systems that need group consensus despite operating in noisy contexts, such as social insect colonies and neuronal populations16,19. Additionally, our findings are relevant to the design of minimal interaction patterns that allow social networks and decentralised robotic systems to reach an agreement, despite the presence of noise or the asocial behaviour of some individuals, whether unintentional or malicious20,21. In both the voter and cross-inhibition models, population consensus emerges from pairwise interactions between individuals, with a randomly selected speaker and listener. The main difference between the two models is that when the speaker and the listener have different opinions, in the voter model, the listener directly switches to the speaker’s opinion, while in the cross-inhibition model, the listener becomes undecided or, in other words, gets inhibited and remains without an opinion. Only undecided individuals switch to the speaker’s opinion (see Fig. 1a, b).
We model asocial behaviour as noise or zealotry, which have both been shown to be mathematically equivalent in the macroscopic-level model14. Instead, at the microscopic level, the individual asocial behaviour is distinct in the case of noise and zealotry. Through the noise, every individual sporadically changes their opinion independently of others’ opinions. Zealots always ignore others’ opinions and remain unmovable (Fig. 1c); a form of antisocial behaviour more extreme than noise that, however, is followed by only a minority of the population22,23. Individuals may have asocial behaviour because they fail to comply with social pressure or retrieve information from independent sources other than peers24. Either situation is common in several biological and artificial systems that rely on noisy communication and operate in complex environments with abundant sources of conflicting information. Identifying mechanisms that provide resiliency and stability to the group is key to understanding how living groups can achieve social homoeostasis25. The cornerstone mechanism of the cross-inhibition model is inhibitory signalling between individuals with opposing opinions. This mechanism is widespread in nature. Evolution has recurrently reached the use of inhibition as the most efficient method to ‘design’ interactions of complex systems. Inhibition can be found in apparently very different systems, such as in cell metabolism26, neuronal activity19, honeybee house-hunting16 and human societies27, however, the underlying models can have striking similarities in their structure and dynamics26,28,29,30. Previous studies have shown that cross-inhibition can break symmetry in the absence of asocial behaviour16,18. Our analysis reveals an additional key feature of the minimal cross-inhibition model: the ability to reach a stable consensus despite asocial behaviour. This feature is pivotal in biological systems seeking to achieve coordinated actions, for example, house-hunting honeybees16, neurons firing to discriminate between stimuli19, and individuals agreeing on social norms3. Identifying minimal mechanisms capable of leading to a stable consensus despite asocial behaviour is also relevant in shielding artificial systems from deficient behaviour caused by malfunction or cyber-attacks (Fig. 1d).
Results and discussion
Through mean-field analysis, we show that the ODE system describing the cross-inhibition model predicts a stable group consensus (two stable fixed points) despite a considerable proportion of zealots or, equivalently, a high level of noise. More precisely, when zealots comprise less than 40% of the entire population or the noise is below a given threshold (i.e. prior to the supercritical pitchfork bifurcations in Figs. 1f and 2e, g), the ODE system has two stable fixed points representing population agreement for either option. Instead, the voter model falls into a permanent undecided state as soon as minimal asocial behaviour is present (single green attractor representing indecision in Figs. 1e and 2a, c). However, previous research has shown that, in small populations, the voter model can break the symmetry (i.e. the decision deadlock) induced by fluctuations of a finite-sized system31,32. Additionally, the stable points of the cross-inhibition model are not absorbing states—that is, there is always the possibility that through random fluctuations, the system changes state and moves from the basin of attraction of a stable point to the other. Therefore we conduct semi-analytical and computational analyses of the master equation of the two models in order both to study the stochastic dynamics of finite-sized systems and to quantify the stability of the fixed points.
Finite-sized system analysis
While the mean-field ODE system of the voter model predicts a single stable point with a polarised population split between the two options, Fig. 2a–d shows that a small-sized system with moderate levels of noise is most often in a state of agreement for either option. However, noise-induced bistability leads to highly unstable consensus states (e.g., see the insets of Fig. 2b, d) and, in addition, is vulnerable to an increase in both the system size S and the noise level σ. As shown by the master equation analysis in Fig. 2a–d, for noise values or population sizes greater than a threshold σ−1 = S, the voter model transits from a regime of decision to a regime of indecision31,32. The impact of zealotry on consensus is even more accentuated. Two equally-sized and relatively small groups of inflexible zealots are sufficient to lock a much larger social population into a state of indecision. While in the voter model, a small level of asocial behaviour impedes population agreement, on the contrary, the cross-inhibition model breaks the symmetry sustained by large proportions of zealots or by high levels of noise (Figs. 1f and 2e–h). For the cross-inhibition model, we consider two alternative types of noise (dashed and dotted lines in Fig. 1b). Through noise type 1, individuals do not immediately change opinions but go through the undecided state before adopting a new opinion (following the inhibitory mechanism). The behaviour of noise type 1 is analogous to the way in which individuals react to social information received from other individuals, including zealots. Instead, noise type 2 corresponds to the way noise is implemented in the voter model with individuals directly switching their opinions (e.g., due to self-sourced environmental information24) and allows a more thorough comparison of the two models. For both types of noise (Fig. 2e–h) and for any tested swarm size (see Supplementary Fig. S1), the cross-inhibition model has qualitatively the same dynamics: it breaks the symmetry despite relatively high levels of social noise.
Swarm robotics experiments
We tested our theoretical results through a set of experiments with 100 Kilobot robots that locally interact with each other in order to reach an agreement (see Fig. 3a and Supplementary Movie 1, also available at https://youtu.be/mQtLhMqdVWg). The swarm starts from a polarised indecision, with a 50–50 split for either alternative (represented by the blue and red colours). To test the resiliency of the two models against asocial behaviour in the robot swarm, we included 20 zealot robots—equally split between the two options—that only broadcast their opinion but do not listen to others. Figure 3b shows that the remaining 80 robots updating their commitment using the voter model are unable to reach any agreement within one hour. Instead, through the cross-inhibition model, the swarm rapidly selects any of the two alternatives and maintains a stable agreement (Fig. 3c). We can further appreciate the fragility of the voter model in the experiment of Fig. 3d where only four zealots—that is, two robots for each option—have been included in a swarm of 96 cooperative robots. The swarm remains undecided for the most part of the experiment and, in contrast to the cross-inhibition experiment with 20 zealots, the agreement is highly unstable. In Fig. 3e, we show that, in agreement with theory predictions, the stability of the cross-inhibition model can also be undermined by excessively large factions of zealots, in this case 30 zealots. The swarm of 70 cooperative robots is able to frequently attain a large majority for either alternative, however the decision is not stable and, over one hour, the consensus vacillates more than once. Our swarm robotics experiments strengthen the validity of the theoretical models by showing that our mathematical equations can predict the collective behaviour of a swarm of 100 autonomous robots that locally interact with each other. Obtaining such correspondence was not obvious and corroborates the possibility of employing our theoretical results to implement resilient swarms of minimalistic robots.
Accuracy and reward in the best-of-n problem
In robotics, inspired by social insects’ behaviour16,28, decentralised decision models have been investigated in the context of the best-of-n problem33,34,35. The opinion of the individuals refers to an option which has a certain quality. While individuals make estimates of the quality that are subject to noise and often inaccurate, the group is able to agree on the option that is better evaluated on average by the population. Therefore, in the best-of-n problem, the goal is not only to reach a consensus but also to agree on the best option. To solve the best-of-n problem, the voter model has been generalised into the weighted voter model36. Individuals vote at a rate proportional to the estimated quality. The individuals directly switch their opinion in response to others’ votes, following the same finite-state machine of the voter model of Fig. 1a. As votes are more frequent for better options, the result is that the population reaches a consensus on the option that individuals have self-estimated to be the best. By relying on the same strategy of quality-proportional voting, the cross-inhibition model has also been presented in a generalised form to tackle the best-of-n problem in artificial distributed systems17. Comparing the two models from the point of view of the best-of-n problem, we find that the two models maximise different metrics (Fig. 4). The weighted voter model demonstrates higher accuracy, that is, the ability to select the best option, while cross-inhibition can yield a higher reward (as discussed after). Figure 5a illustrates the ability of the weighted voter model to always converge to the best option in a relatively short time, despite the system being initialised with a consensus for the inferior option. In real systems, random fluctuation may lead the population to an agreement in favour of the lower-quality alternative. Through the weighted voter model, inaccurate decisions can be reverted. However, especially when the options’ qualities are similar, the dynamics of the voter model are highly unstable (e.g., see the high spread of the red shade in Fig. 4a) and can only grant a marginal majority for the best option (see also Fig. 5c). Instead, the cross-inhibition model, by granting more stability to the collective agreement, can lessen accuracy by locking the population in a consensus in favour of the lower-quality alternative (Fig. 5b).
Finding that the use of inhibition reduces collective accuracy is in contrast with extensive literature that shows inhibition as a pervasive mechanism in most natural systems that seek collective consensus16,19,26,28,37. Such discord can be reconciled by looking at a different metric. Rather than maximising accuracy, the cross-inhibition model looks better suited to yielding a high reward rate38. When measuring accuracy, only the selection of the highest quality option is labelled as the correct (accurate) decision, while selecting any other option is incorrect. Instead, in value-based decisions, the magnitude of the reward received by the decision-makers is used to measure the value of the chosen alternative. On the one hand, considering accuracy can simplify the results’ analysis33,39. On the other hand, reasoning in terms of value-based decisions—in which the group benefits from the reward of the chosen option regardless of whether it is the absolute best in the environment—is more appropriate in most applications, both in engineered and biological systems (e.g., nutritional value during foraging, site quality during house-hunting, or aggregation location for the robot swarm)38,40,41,42. As recent work has shown, the optimal strategy for value-based decisions can differ from normative accuracy-based decision policies43, especially in decisions between options with equal qualities41. Our analysis shows that, in line with the optimal policy43, the cross-inhibition model converges to the highest quality option when the quality difference between options is large (Fig. 4d), and it trades accuracy for stability when the options have similar qualities (Figs. 4c and 5a).
The benefits of inhibitory signals
This study shows the inability of the voter model—both classical and weighted—to reach group coordination when symmetric noise or asocial behaviour is present, even in minimal quantities. In both artificial and natural systems, it is well justified to assume individuals may not always follow social pressure and sometimes act independently due to, for example, information acquired through individual exploration24 or sensorial failures44. The success of the voter model is due to its mathematical simplicity and tractability, however, for scientific progress, the fields of opinion dynamics and sociophysics require their models to include more aspects from real systems45. The cross-inhibition model is an alternative to the voter model that includes a widespread mechanism in nature: inhibitory signalling between individuals with different opinions. Such a simple change in individual behaviour revealed a dramatic change in the collective dynamics of the swarm, enabling system stability and symmetry-breaking. Mathematically, the cross-inhibition model has similarities with the binary naming game3 which is also capable of breaking decision deadlocks in the presence of symmetric inflexible populations46. However, the rules of the naming game can be extended to problems with a larger number of options in a way that is fundamentally different from the cross-inhibition model, and this makes its analysis difficult due to the combinatorial explosion of the number of states47. In this article, we study the minimal formulation of a model that includes cross-inhibition and benefits from mathematical simplicity, as also shown in previous analytical studies that investigated the scalability of the cross-inhibition model to higher dimension problems18. Our analysis shows that, with cross-inhibition, the collective performance is enhanced, rather than hampered, by noise (or zealots). Figure 4 shows that increasing asocial behaviour to moderate values removes the possibility of inaccurate decisions while still granting a consensus decision. This finding is in agreement with previous research that showed that the emergence of group coordination, in humans, animals, or robots, is facilitated by noise9,48,49. This study goes in the direction of building opinion dynamics models that gradually include more biologically plausible mechanisms while preserving mathematical simplicity.
Methods
Chemical reactions
Both models, illustrated in the motifs of Fig. 1a, b can be written as a set of chemical reactions. The chemical reaction defines transition rates between the states in which an individual can be. In our model, we define the following five states: commitment for options X and Y, no opinion U, and zealots in favour of either option, ZX and ZY.
The voter model reads as
The rates of transitions resulting from interactions between individuals with different commitments (labelled in Eq. (1) as direct switching and zealots) are proportional to the option’s qualities qx and qy, for recruitment to options X and Y, respectively. When noise is absent σ = 0, there are no zealots ZX = ZY = 0, and the qualities are equal q = qx/qy = 1, the model reduces to the classical voter model7,8. The system with q ≠ 1 is a generalisation of the voter model in which individuals modulate their voting probability as a function of the option’s quality; it has been named the “weighted voter model”36 and has been introduced to make collective decisions that solve the best-of-n problem. Including noise σ > 0 in the voter model has been studied as the “noisy voter model”14. Noise can represent any form of independent (asocial) behaviour that leads the individual to change their opinion, for example, self-sourced information. Therefore, the results from our model analysis can also be relevant to study how the frequency of using personal and social information, σ and (qx + qy), impacts the system dynamics. Zealots never change their opinion but influence the opinion of others13,50. The impact of these individuals on the voter model has been shown to be equivalent to the impact of independent behaviour (i.e. noise), see ref. 14 and our discussion below.
The cross-inhibition model reads as
The cross-inhibition model17,18 is a variation of the weighted voter model that includes a null state (U) on indecision as a necessary transition step between any other state51. We consider two alternative types of noise. Noise type 1 follows the transition schema of the model by letting the individual go through the state U before adopting a new opinion (see dashed lines in Fig. 1b). To conduct a more complete comparison of the two models, we also consider noise type 2 which corresponds to the way noise is implemented in the voter model (see dotted lines in Fig. 1b).
Ordinary differential equations
The change in the size of the populations committed to X and Y can be studied through a system of ODEs. We indicate with \({S}_{X},{S}_{Y},{S}_{U},{S}_{{Z}_{X}}\), and \({S}_{{Z}_{Y}}\) the sizes of the populations in the state indicated in the subscript. As we only consider a symmetric number of zealots, we have \({S}_{{Z}_{X}}={S}_{{Z}_{Y}}={S}_{Z}\). For a total population of S individuals (i.e. S = SX + SY + SU + 2SZ), we represent the proportions of individuals in each opinion state with x = SX/S, y = Sy/S, u = SU/S, and z = SZ/S (note that the total proportion of zealots in the population is 2z). We consider only one type of asocial behaviour at a time. Therefore we first introduce a generic ODE system with the term α indicating the asocial behaviour that can be then substituted with either noise or zealotry. Assuming a large population, for S → ∞, the time derivative of x for the voter model is
When we consider asocial behaviour in the form of noise, α = σ(y − x); instead, when we consider zealot behaviour, we have α = z(qxy − qyx). The two alternative systems are
In agreement with previous research14, it is straightforward to see how independent behaviour (noise) and zealots can be mathematically equivalent, that is, when σ(y − x) = z(qxy − qyx). The equivalence is present when either the options have equal quality, q = qx/qy = 1, or when there are different rates for noise in the two populations, i.e. σx ≠ σy. In our study, we keep the two models distinct in two ways. While the number of zealots is symmetrically distributed among the two alternatives, zealots recruit peers with rates proportional to their option’s quality, instead, noise is an asocial component that has a symmetric contribution for both options. Additionally, zealots are included as part of the total population S; therefore, increasing the number of zealots indirectly reduces the number of flexible individuals (that can change opinion), as SX + SY = S − 2SZ; instead, increasing noise has no effect on the total number of flexible individuals SX + SY = S (e.g., noise σ can be the frequency of self-sourcing information24). We find it more appropriate to consider zealots as part of the total population S rather than an external source of influence. Considering different models helps in showing that the results of our analysis are consistent across different types of symmetric asocial behaviour.
The stability analysis of Eqs. (4) and (5) can be simplified by replacing the proportion y with y = 1 − x − 2z and, in the latter, by diving both sides by qy (note that the latter operation results in scaling the time by the quantity qy, that is τ = qyt). We define the quality ratio q = qx/qy. In this way, Eq. (5) can be rewritten as
The ODE system for the cross-inhibition model with generic asocial behaviour reads as
where u = 1 − x − y − 2z. When we instantiate asocial behaviour in the form of zealot behaviour, αx = z(qu − x) and αy = z(u − qy), and we obtain
The cross-inhibition models with the two types of noise are presented in Supplementary Note 1.
Stability analysis
The voter model in both conditions—with noise or zealots—has two fixed points, and only one of them is stable and in the positive plane x ∈ [0, 1]. In the case of the voter model with noise (i.e. σ > 0 and z = 0), the stable fixed point is
In the case of the voter model with zealots (i.e. σ = 0 and z > 0), the stable fixed point is
Note that Eqs. (9) and (10) only exist for q ≠ 1 (that is, qx ≠ qy); instead, when q = 1, in both conditions, the ODE system remains in decision deadlock with x = y = 0.5. The analysis of the fixed point for q ≠ 1 reveals that for relatively low values of noise, or zealotry, the system can reach a large majority only when the quality difference is large, i.e. q ≫ 1 or symmetrically q ≈ 0. Figures 2a–d, 4a, b, and 5c show the predicted agreement levels, according to Eqs. (9) and (10) for various values of the quality ratio q, the noise level σ, and the proportion of zealots z.
The cross-inhibition model has four fixed points that change their stability as a function of the system’s parameters. For the symmetric quality case, q = 1, with zealots z ≥ 0, the fixed points (pre-bifurcation) are
For the asymmetric case, q ≠ 1, the results are more complex. While it is possible to derive the fixed points’ mathematical equations and their stability conditions through standard software (e.g., see the Mathematica notebook provided in the Code Availability Statement), the complexity of the equations makes it impossible to study them from their mathematical form. Instead, we can plot the dynamics for representative cases and so interpret the general dynamics of the system. In particular, in Fig. 5c, we display the fixed point of population x for both the cross-inhibition and the voter models so that we can appreciate the differences between the two. It is noteworthy that (except for extremely high values of z), the cross-inhibition model always grants a larger majority in favour of the best option than the voter model. However, as shown in Figs. 4c, d, and 5b, the cross-inhibition model can have more than one stable state, leading to a consensus for the inferior alternative. Counterintuitively, the lower branch, in favour of the inferior alternative, is only present for low values of asocial behaviour and vanishes as the number of zealots increases. Therefore, it appears that zealotry can improve the accuracy of the cross-inhibition model by removing the possibility of selecting the inferior option. The minimum quantity of zealot behaviour z to make the lower branch vanish decreases as the quality difference increases. This effect can be measured by plotting the point of the fold bifurcation as a function of the quality ratio q; Fig. 5b shows that the parameter space where the lower branch is present reaches the maximum z = 0.2 for q = 1 and rapidly decreases as q gets larger than 1.
Master equations
The dynamics of finite-sized systems can be studied through master equations. Here, for both models, we present the master equations and find their analytical solution at equilibrium (that is, the stationary probability distribution, SPD), finally, we illustrate the numerical analysis employed to study the transitory temporal dynamics.
Master equation of the weighted voter model
We first define the rates at which transitions occur: \({T}_{x = k}^{+x}\) is the rate by which the population committed to X, with size SX = k, increases by one individual, and \({T}_{x = k}^{-x}\) is the rate by which it decreases by one individual. We recall that the total population has size S which is composed of subpopulations in different states: either committed to options X or Y with sizes SX and SY, or in state zealot with sizes \({S}_{{Z}_{X}}\) and \({S}_{{Z}_{Y}}\), that in our study, we consider symmetric \({S}_{{Z}_{X}}={S}_{{Z}_{Y}}={S}_{Z}\). Therefore, the system is completely specified (fully defined), computing only the changes for the population committed to X because SY = S − SX − 2SZ. In the voter model, the rate \({T}_{x = k}^{+x}\) describes when an individual in state Y directly switches to X after an interaction with an individual committed to X (either a susceptible individual in state X or a zealot in state ZX), which happens with a frequency proportional to option X’s quality qx. Otherwise, when there are no zealots SZ = 0, the transition can also be caused by asocial noise σ > 0. Therefore,
Symmetrically, the population committed to X decreases by one when one of its individuals (state X) directly switches to Y after an interaction with a susceptible individual in state Y or a zealot in state ZY (with a frequency proportional to option Y’s quality qy), or alternatively through asocial noise σ > 0. The reduction rate \({T}_{x = k}^{-x}\) is
The system state is characterised by the probability Px=k(t) that the number of individuals in state X at time t is SX = k. Through the rates of Eqs. (12) and (13), we can define the master equation of the weighted voter model, which describes how the probability Px=k(t) changes over time:
The first two terms of the rhs of Eq. (14) account for processes in which the number of individuals in state X after the event equals SX = k, while the last term accounts for the complementary loss processes where SX increases or decreases of one unit (i.e. (SX = k) → (SX = k + 1) or (SX = k) → (SX = k − 1), respectively).
Stationary probability distribution of the weighted voter model
In stationary conditions, the master equation reaches an equilibrium, that is \(\frac{{{{{{{{\rm{d}}}}}}}}{P}_{x = k}(t)}{{{{{{{{\rm{d}}}}}}}}t}=0\), and therefore the probability distribution is stable over time. The stationary master equation obtained from Eq. (14) is
where \({P}_{x = k}^{* }={{{\mbox{lim}}}}_{t\to \infty }{P}_{x = k}(t)\) indicates the stationary solution that is independent of time t. As the process can be considered time reversible at equilibrium conditions, the SPD can be derived from the detailed balance principle, which yields
By iterating Eq. (16), we obtain the SPD:
where the normalisation condition \(\mathop{\sum }\nolimits_{k = 0}^{S-2{S}_{Z}}{P}_{x = k}^{* }=1\) allows us to compute \({P}_{x = 0}^{* }\) as
Note that the summation on the denominator goes to a maximum of S − 2SZ, which is the maximum size that the population SX can be. It is also obvious that the complementary probability \({P}_{y = k}^{* }\) for the population committed to option Y can be computed as \({P}_{y = k}^{* }=1-{P}_{x = S-k-2{S}_{Z}}^{* }\). The expanded forms of Eq. (17) for both asocial mechanisms (noise and zealotry), with the rates from Eqs. (12) and (13) are presented in Supplementary Note 2.
The SPD of the difference of the populations committed to the two options is illustrated in Figs. 1e, 2a–d, and 4a, b, is computed as
Master equation of the cross-inhibition model
For the cross-inhibition model, the increment and reduction rates necessary to define the master equation are \({T}_{x = a,y = b}^{+x},{T}_{x = a,y = b}^{-x},{T}_{x = a,y = b}^{+y}\), and \({T}_{x = a,y = b}^{-y}\). These rates are increments (superscript +x or +y) or reductions (superscript − x or −y) of one individual in the population committed to X (+x or −x) or to Y (+y or −y) given that the committed populations are SX = a and SY = b. Here, we only describe rates for zealots and noise of type 1 (see Eq. (2)) because the SPD of the master equation with noise type 2 cannot be computed analytically using the detailed balance principle due to transitions happening both from state U to states X and Y, and directly between states X and Y. Therefore, we only conducted numerical analysis for the cross-inhibition model with noise type 2 (see Section on the stochastic simulation algorithm). For the other two types of asocial behaviours, increments by one individual in the committed populations, SX or SY, occur when individuals of that population, or zealots for that option, recruit an uncommitted individual; otherwise, through asocial noise. Rates \({T}_{x = a,y = b}^{+x}\) and \({T}_{x = a,y = b}^{+y}\) are
Instead, reduction by one individual from populations committed to X or Y occurs when individuals committed to different options interact with each other or spontaneously through asocial noise. Rates \({T}_{x = a,y = b}^{-x}\) and \({T}_{x = a,y = b}^{-y}\) are
The master equation for the cross-inhibition model describes the change over time of the probability Px=a,y=b(t), which indicates that the number of individuals committed to option X and Y at time t are SX = a and SX = b, respectively. Because each individual (except for the zealots that do not change state) can be in three possible states—committed to X, committed to Y, or uncommitted (state U)—we have SU = S − SX − SY − 2SZ and considering the sizes SX and SY is sufficient to completely specify (i.e. to fully define) the system. The master equation is
Stationary probability distribution of the cross-inhibition model
We compute the stationary solution \({P}_{x = a,y = b}^{* }={{{\mbox{lim}}}}_{t\to \infty }{P}_{x = a,y = b}(t)\) of the master equation when the dynamics have converged (\(\frac{{{{{{{{\rm{d}}}}}}}}{P}_{x = a,y = b}(t)}{{{{{{{{\rm{d}}}}}}}}t}=0\)) and the probability distribution is independent of time. Because there are no direct transitions from state X to state Y and vice versa, but the agents always pass through the uncommitted state U, each transition consists in a change of one individual (increase or reduction) either in A or in B, and it can never change both populations at once. Therefore, we can employ the detailed balance principle and obtain
By iterating Eqs. (23) and (24), we can compute, respectively,
Through Eq. (25) and iterating Eq. (24), we can compute the generic SPD equation:
Finally, the value of \({P}_{x = 0,y = 0}^{* }\) is computed through the normalisation condition
which can be written as
Replacing Eqs. (25)–(27) in Eq. (28), we obtain
The expanded forms of Eq. (27) for both asocial mechanisms (noise and zealotry), with the rates from Eqs. (20) and (21), are presented in Supplementary Note 2.
The SPD for a single state is computed as the sum of the SPD for all values of the other state, that is,
Instead, when we display the SPD of the difference of the populations committed to the two options, for instance, in Figs. 1f and 4c, d, we compute the following quantity
Stochastic simulation algorithm
We complemented the analytical form of the stationary probability distribution with its numerical approximation, which we computed through Gillespie’s stochastic simulation algorithm52. Supplementary Figure S2 shows that analytical and numerical solutions have a precise match for both the voter and the cross-inhibition model with both asocial mechanisms (noise and zealotry). As indicated earlier, we could not find the analytical solution of the SPD for the cross-inhibition model with noise type 2 because there are transitions between all three states and employing the detailed balance principle here becomes unpractical. Therefore, the results of Fig. 2g, h, which show the effect of noise type 2, are computed through the Gillespie algorithm (104 runs per condition). For every run, we initialise the system with a random initial condition and store the amount of time spent in each state throughout long runs (105 time-units, with transition rate speed defined as from Eqs. (1) and (2)). The time in each state is normalised by the total simulation length so that it approximates the stationary probability distribution52.
Mean switching time
We compute the mean switching time (MST) as the expected time to move from a state of full consensus in favour of Y—the option with lower quality—to a state of stable consensus for X, the option with superior quality. The MST illustrated in Fig. 5a is the average of 500 runs of Gillespie’s stochastic simulation algorithm, running one million time-units. A switch towards consensus for the superior option X happens when the subpopulation in favour of X has size \({S}_{X} > ={\hat{S}}_{X}\) for more than 10 time-units. We do not include these 10 time-units in the MST. The term \({\hat{S}}_{X}\) is the minimum size of the subpopulation committed to X to consider the system in a state of consensus for X. The size threshold \({\hat{S}}_{X}\) is calculated numerically from a very long run of the SSA (106 time-units) initialised at SX = S − 2SZ and SY = 0. While the population remains in the state of consensus for X, the actual size of the subpopulation SX fluctuates over time. Assuming a normal distribution of the fluctuations, we compute \({\hat{S}}_{X}\) as the average of SX when SX > (S − 2SZ)/2, subtracted by 3 times the standard deviation of the considered data points.
Swarm robotics experiments
We ran four experiments with a swarm of 100 Kilobots53, which are low-cost, small-sized robots that can move on a flat surface, display their internal state through a coloured LED light, and broadcast 9-byte infra-red messages to neighbours in a range of 10 cm (see Fig. 1d). Robot’s movements are limited to (approximately) straight motion at a speed of about 1 cm/s and rotation in place at about 40∘/s. In our experiments, by alternating straight motion and rotations, the robots diffused throughout the 1 × 1 m2 environment, using the same mobility model of35, and hence changed their neighbourhood over time. Every 30 seconds, the robot reads the last message received from its neighbours, that used to update its opinion through one of the two state machines of Fig. 1. As shown in previous research34,54, using a relatively low frequency of robot’s opinion update (30 s) compared with the random diffusion speed (1 cm/s) allows obtaining a qualitative good agreement between the macroscopic models—which assume a well-mixed interaction topology—and the robotic implementation—which relies on local interactions in a range of 10 cm. The robots showed their opinion via the coloured LED (option X as red, option Y as blue, and no opinion as green). The experiments were recorded using an overhead camera (the videos are available as Supplementary Movies 1–5), and the robots’ position and state—that is, their light’s colour—were tracked through the ARK system55. In every experiment, we included a number of zealot robots, which ran the same algorithm as the others except for refraining from updating their opinion. We began each experiment with the swarm opinion equally split, 50-50, between the two options. Each experiment lasted 60 minutes, and the algorithms run by the robots are open-source and available in the Supplementary Software (see Code Availability Statement).
Data availability
Videos of the robot experiments are available as Supplementary Movies 1–5. Supplementary Movie 1 is also available at https://youtu.be/mQtLhMqdVWg.
Code availability
All simulation code, Mathematica notebooks, and robot code to reproduce the analyses and experiments presented herein are available as Supplementary Software in the GitHub repository.
References
Castellano, C., Fortunato, S. & Loreto, V. Statistical physics of social dynamics. Rev. Mod. Phys. 81, 591–646 (2009).
Conradt, L. & List, C. Group decisions in humans and animals: a survey. Philos. Trans. R. Soc. B Biol. Sci. 364, 719–742 (2009).
Baronchelli, A. The emergence of consensus: a primer. R. Soc. Open Sci. 5, 172189 (2018).
Seeley, T. D. Honeybee Democracy. (Princeton University Press, 2011).
Valentini, G. Achieving Consensus in Robot Swarms: Design and Analysis of Strategies for the best-of-n Problem, volume 706 of Studies in Computational Intelligence. (Springer International Publishing, Cham, Switzerland, 2017).
Reina, A., Ferrante, E. & Valentini, G. Collective decision-making in living and artificial systems: editorial. Swarm Intell. 15, 1–6 (2021).
Clifford, P. & Sudbury, A. A model for spatial conflict. Biometrika 60, 581–588 (1973).
Holley, R. A. & Liggett, T. M. Ergodic theorems for weakly interacting infinite systems and the voter model. Ann. Probab. 3, 643–663 (1975).
Jhawar, J. et al. Noise-induced schooling of fish. Nat. Phys. 16, 488–493 (2020).
Fernández-Gracia, J., Suchecki, K., Ramasco, JoséJ., San Miguel, M. & Eguíluz, V. M. Is the voter model a model for voters? Phys. Rev. Lett. 112, 158701 (2014).
Zillio, T., Volkov, I., Banavar, J. R., Hubbell, S. P. & Maritan, A. Spatial scaling in model plant communities. Phys. Rev. Lett. 95, 098101 (2005).
Redner, S. Reality-inspired voter models: a mini-review. C. R. Phys. 20, 275–292 (2019).
Mobilia, M., Petersen, A. & Redner, S. On the role of zealotry in the voter model. J. Stat. Mech. 2007, P08029 (2007).
Khalil, N., San Miguel, M. & Toral, R. Zealots in the mean-field noisy voter model. Phys. Rev. E 97, 012310 (2018).
Galam, S. & Jacobs, F. The role of inflexible minorities in the breaking of democratic opinion dynamics. Physica A 381, 366–376 (2007).
Seeley, T. D. et al. Stop signals provide cross inhibition in collective decision-making by honeybee swarms. Science 335, 108–111 (2012).
Reina, A., Valentini, G., Fernández-Oto, C., Dorigo, M. & Trianni, V. A design pattern for decentralised decision making. PLoS ONE 10, e0140950 (2015).
Reina, A., Marshall, J. A. R., Trianni, V. & Bose, T. Model of the best-of-N nest-site selection process in honeybees. Phys. Rev. E 95, 052411 (2017).
Bogacz, R., Brown, E., Moehlis, J., Holmes, P. & Cohen, J. D. The physics of optimal decision making: a formal analysis of models of performance in two-alternative forced-choice tasks. Psychol. Rev. 113, 700–765 (2006).
Higgins, F., Tomlinson, A. & Martin, K. M. Threats to the swarm: security considerations for swarm robotics. Int. J. Adv. Secur. 2, 288–297 (2009).
De Masi, G. et al. Robot swarm democracy: the importance of informed individuals against zealots. Swarm Intell. 15, 315–338 (2021).
Galam, S. Collective beliefs versus individual inflexibility: the unavoidable biases of a public debate. Physica A 390, 3036–3054 (2011).
Galam, S. & Cheon, T. Tipping points in opinion dynamics: a universal formula in five dimensions. Front. Phys. 8 (2020).
Zakir, R., Dorigo, M. & Reina, A. Robot swarms break decision deadlocks in collective perception through cross-inhibition. In (eds M. Dorigo et al.) Swarm Intelligence (ANTS 2022), volume 13491 of LNCS, pp. 209–221. (Springer, Cham, 2022).
Hölldobler, B. & Wilson, E. O. The Ants. (Harvard University Press, 1990).
Cardelli, L., Hernansaiz-Ballesteros, R. D., Dalchau, N. & Csikász-Nagy, A. Efficient switches in biology and computer science. PLOS Comput. Biol. 13, e1005100 (2017).
Franci, A., Bizyaeva, A., Park, S. & Leonard, N. E. Analysis and control of agreement and disagreement opinion cascades. Swarm Intell. 15, 47–82 (2021).
Marshall, J. A. R. et al. On optimal decision-making in brains and social insect colonies. J. R. Soc. Interface 6, 1065–1074 (2009).
Reina, A., Bose, T., Trianni, V. & Marshall, J. A. R. Psychophysical laws and the superorganism. Sci. Rep. 8, 4387 (2018).
Borofsky, T. et al. Hive minded: like neurons, honey bees collectively integrate negative feedback to regulate decisions. Anim. Behav. 168, 33–44 (2020).
Biancalani, T., Dyson, L. & McKane, A. J. Noise-induced bistable states and their mean switching time in foraging colonies. Phys. Rev. Lett. 112, 038101 (2014).
Herrerías-Azcué, F. & Galla, T. Consensus and diversity in multistate noisy voter models. Phys. Rev. E 100, 022304 (2019).
Valentini, G., Ferrante, E., Hamann, H. & Dorigo, M. Collective decision with 100 Kilobots: speed versus accuracy in binary discrimination problems. Autonomous Agents Multi-Agent Syst. 30, 553–580 (2016).
Reina, A., Bose, T., Trianni, V. & Marshall, J. A. R. Effects of spatiality on value-sensitive decisions made by robot swarms. In Distributed Autonomous Robotic Systems (DARS 2016): The 13th International Symposium, volume 6 of SPAR. pp. 461–473. (Springer International Publishing, Cham, Switzerland, 2018).
Talamali, M. S., Saha, A., Marshall, J. A. R. & Reina, A. When less is more: robot swarms adapt better to changes with constrained communication. Sci. Robot. 6, eabf1416 (2021).
Valentini, G., Hamann, H. & Dorigo, M. Self-organized collective decision making: the weighted voter model. In AAMAS ’14: Proceedings of the 2014 international conference on Autonomous Agents and Multi-Agent Systems. pp. 45–52 (2014).
Bizyaeva, A., Franci, A. & Leonard, N. E. Nonlinear opinion dynamics with tunable sensitivity. IEEE Trans. Autom. Control 68, 1415–1430 (2023).
Pirrone, A., Stafford, T. & Marshall, J. A. R. When natural selection should optimize speed-accuracy trade-offs. Front. Neurosci. 8, 1–5 (2014).
Talamali, M. S., Marshall, J. A. R., Bose, T. & Reina, A. Improving collective decision accuracy via time-varying cross-inhibition. In Proceedings of the 2019 IEEE International Conference on Robotics and Automation (ICRA 2019). pp. 9652–9659 (IEEE, 2019).
Bose, T., Reina, A. & Marshall, J. A. R. Collective decision-making. Curr. Opin. Behav. Sci. 6, 30–34 (2017).
Pirrone, A., Reina, A., Stafford, T., Marshall, J. A. R. & Gobet, F. Magnitude-sensitivity: rethinking decision-making. Trends Cognit. Sci. 26, 66–80 (2022).
Rajendran, H., Haluts, A., Gov, N. S. & Feinerman, O. Ants resort to majority concession to reach democratic consensus in the presence of a persistent minority. Curr. Biol. 32, 645–653.e8 (2022).
Tajima, S., Drugowitsch, J. & Pouget, A. Optimal policy for value-based decision-making. Nat. Commun. 7, 12400 (2016).
Tsimring, L. S. Noise in biology. Rep. Prog. Phys. 77, 026601 (2014).
Schweitzer, F. Sociophysics. Phys. Today 71, 40–46 (2018).
Verma, G., Swami, A. & Chan, K. The impact of competing zealots on opinion dynamics. Physica A 395, 310–331 (2014).
Waagen, A., Verma, G., Chan, K., Swami, A. & D’Souza, R. Effect of zealotry in high-dimensional opinion dynamics models. Phys. Rev. E 91, 022811 (2015).
Shirado, H. & Christakis, N. A. Locally noisy autonomous agents improve global human coordination in network experiments. Nature 545, 370–374 (2017).
Rausch, I., Reina, A., Simoens, P. & Khaluf, Y. Coherent collective behaviour emerging from decentralised balancing of social feedback and noise. Swarm Intell. 13, 321–345 (2019).
Mobilia, M. Does a single zealot affect an infinite group of voters? Phys. Rev. Lett. 91, 028701 (2003).
Marvel, S. A., Hong, H., Papush, A. & Strogatz, S. H. Encouraging moderation: clues from a simple model of ideological conflict. Phys. Rev. Lett. 109, 118702 (2012).
Gillespie, D. T., Hellander, A. & Petzold, L. R. Perspective: stochastic algorithms for chemical kinetics. J. Chem. Phys. 138, 170901 (2013).
Rubenstein, M., Ahler, C., Hoff, N., Cabrera, A. & Nagpal, R. Kilobot: A low cost robot with scalable operations designed for collective behaviors. Robot. Auton. Syst. 62, 966–975 (2014).
Reina, A., Miletitch, R., Dorigo, M. & Trianni, V. A quantitative micro-macro link for collective decisions: the shortest path discovery/selection example. Swarm Intell. 9, 75–102 (2015).
Reina, A., Cope, A. J., Nikolaidis, E., Marshall, J. A. R. & Sabo, C. ARK: augmented Reality for Kilobots. IEEE Robot. Autom. Lett. 2, 1755–1761 (2017).
Khaluf, Y., Pinciroli, C., Valentini, G. & Hamann, H. The impact of agent density on scalability in collective systems: noise-induced versus majority-based bistability. Swarm Intell. 11, 155–179 (2017).
Acknowledgements
The authors thank Alex J. Cope for his help in taking the photo of Fig. 1d. A.R. and R.Z. acknowledge support from the Belgian F.R.S.-FNRS, of which they are Chargé de Recherches and FRIA Doctoral Student, respectively.
Author information
Authors and Affiliations
Contributions
A.R. conceived the original idea and directed the project. A.R. performed the mean-field ODE analysis. A.R., R.Z., G.D.M. and E.F. derived the solution of the master equation. R.Z. generated the results from the master equations. A.R. and R.Z. generated the figures. A.R. designed and implemented the robot control code and conducted the robot experiments. A.R. recorded and edited the videos. A.R. wrote the first draft of the paper, and all authors edited the paper.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Communications Physics thanks the anonymous reviewers for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Reina, A., Zakir, R., De Masi, G. et al. Cross-inhibition leads to group consensus despite the presence of strongly opinionated minorities and asocial behaviour. Commun Phys 6, 236 (2023). https://doi.org/10.1038/s42005-023-01345-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s42005-023-01345-3
- Springer Nature Limited
This article is cited by
-
A blockchain-based information market to incentivise cooperation in swarms of self-interested robots
Scientific Reports (2023)