1. Introduction
A dynamical network is a set of entities connected by point-to-point links in which each entity is associated with a state that may change over time due to link-conveyed influences. Physics (interacting particle systems), biology (neural systems, bacteria, …), computer science (distributed systems), as well as social sciences all provide a wide range of examples of dynamical networks. In particular, individuals in complex social environments typically form and change their opinion on the basis of the social influence they receive from the environment.
Consider the following scenario. A set of individuals is engaged in a social network, so that each of them is linked to a subset of other individuals. At a given time, all individuals in the network hear about information that can be true or false, and each of them takes his own prior opinion about the information being true or false. Then, each individual starts discussing (with the individuals he is related with) about the truth/falsity of the information, and the opinions of his friends and foes may make him change his opinion. Continuing the discussion, each individual possibly moves between true and false an indefinite number of times. Questions naturally arising in this scenario are: will the discussion ever end, that is, will the individuals opinions ever reach a point at which nobody changes his opinion any longer (stability or equilibrium)? Or will the discussion ever reach a point where all individuals have the same opinion (consensus)? Or will the discussion ever reach a point where more than half of the individuals have the same opinion (majority)?
The scenarios described above are suitable for several daily life problems: discovering fake news in a social environment, foreseeing a referendum results, and so on. But they are also able to describe somehow more technical issues that lie in community detection, leader election, and consensus establishment in (fully) distributed systems. Generally speaking, the common characteristic of all the problems cited here is the request that a set of (interrelated) entities reach a state with some given property when no centralized control is available.
The typical setting considered throughout this paper is that of a social environment in which each individual is engaged in a set of stronger or weaker friendship or hostility relations: simply speaking, a relation may range from strong hostility/distrusting to weak disliking (negative relations), as well as from weak liking to strong friendship/trusting (positive relations). Given a topic, every individual has an a priori (positive or negative) opinion about it and gets influenced over time by his relationships: a positive relationship provides him with some evidence in favor of the opinion received by his friend; a negative relation provides him with some evidence in contrast to the opinion received by his foe (that is, evidence in favor of the opposite opinion received by his foe). In a synchronous environment, at each (discrete) time step, every individual checks whether his social influence works in favor of keeping or changing his opinion at that step and behaves accordingly. If the environment is asynchronous, individuals check his social influence at some step only. Within this setting, the evolution of an initial opinion configuration in a given network under some opinion dynamics model is studied here.
Related studies. The interest in network dynamics dates several decades ago; recent surveys on dynamic models can be found in [
1,
2]. Several stochastic models for opinion dynamics in the case of positive-only relations have been considered starting with the French–DeGroot model [
3,
4] and continuing with the social impact model [
5], the Voter model [
6,
7], and the majority rule model [
8], among others. Some of these models have been adapted more recently to the case of positive/negative relations [
9,
10,
11,
12].
Generally speaking, when considering network dynamics, each individual might change his opinion an unlimited number of times, and the change can or must happen whenever some conditions are met. Models considered in more recent papers [
8,
13,
14,
15,
16,
17,
18,
19,
20] are called
asynchronous, meaning that, at each step, individuals that could change their opinion are not forced to actually do it, so that only a subset of the individuals that could change their opinion actually change it. A random choice is used to model this feature.
The study of deterministic opinion dynamics models, in which an individual allowed to change his opinion actually does it, has also been attempted. In [
21], a framework for the definition of deterministic opinion dynamics is proposed. Deterministic dynamics have been studied in [
22,
23,
24,
25,
26], ranging from the majority rule [
22,
23] to rules simplifying the Game of Life [
24,
27]. A framework encompassing both the deterministic majority rule and the underpopulation one introduced in [
24] has been proposed in [
25,
26].
Paper contribution. Local threshold-based dynamics introduced in [
25,
26] are regulated by a pair of functions,
and
, that determine when an individual changes his opinion: an individual
u in relation with
k other individuals and having a positive (negative) opinion at some time-step changes to the negative (positive) opinion if and only if the number of his related individuals providing him evidence in favor of a positive (negative) opinion is at most
(at least
) and symmetrically for
u with a negative opinion.
The local threshold-based rule, introduced to encompass the underpopulation and the deterministic majority rule, is here furtherly generalized in several aspects.
First of all, heterogeneous threshold-based rules (simply referred to as threshold-based rules) will be considered in which the functions and are authonomously chosen by each individual: that is, by denoting as V the set of individuals, , and . Hence, while in a local threshold-based rule two individuals with the same number of relations are associated with the same pair of thresholds, this is no longer the case in a heterogeous threshold-based rule.
Secondly, the existence of stronger and weaker relations is taken into account so that the network of individuals is modeled by a weighted graph with (stronger positive or negative relations have larger absolute value weights).
Finally, an attempt to model asyncronism in a deterministic setting is pursued. A general setting for asynchronism may consist of a pair of functions
and
such that every node
u listens at its neighbors’ opinions only at times
such that
, and then, if this is the case, it updates its opinion at time
with the constraint that
for all
. In this paper, a special case of the model just introduced is considered in which
for every node
u and
and each node
u is associated with a pair of integer values,
and
, so that
if and only if
for some
. Hence,
u checks its neighbors’ opinions to decide whether to keep or change its current opinion only at steps
, for
, (being in a quiescent state all the other time steps) and may change its opinion only at steps
, for
. The resulting model will be called
periodic asynchronous and closely resembles the model of neural systems with a refractory period [
28].
Continuing the study performed in [
25,
26], the
orbit of an initial opinion configuration in a graph evolving according to a given opinion dynamics was studied, that is, the set of distinct opinion configurations met by the graph while evolving from the initial one. This means that the interest is in studying how node opinions evolve over time starting from a setting in which each node has its own (initial) opinion. The study of the orbit of an initial configuration concerns questions like “will all the individuals ever reach a consensus configuration (a configuration in which all the individuals have the same opinion)?” or “will the individuals ever reach a stable configuration (a configuration in which no individual will change his opinion)?”, which can be referred to as
-
reachability questions, where
is a polynomial-time checkable property that has to be satisfied by some opinion configuration received by a graph during its evolution from a given initial opinion configuration. There is a strong relation between
-reachability questions and the size of the orbit: actually, in order to answer to any
-reachability question, it is sufficient to let the graph evolve until the requested conguration is met or until it is possible to deduce that it will never be met. Hence, if the size of the orbit of an initial opinion configuration is polynomial in the size of the graph, then the above-mentioned
-reachability questions can be answered in polynomial time. And, conversely, if it is proved that some of such question cannot be answered in polynomial time, then the orbit size is not polynomial in the size of
G. In [
25,
26], it is proved that answering to a couple of
-reachability questions in the case of directed unsigned graph evolving according, respectively, to the deterministic (synchronous) majority rule and to the (synchronous) underpopulation rule are PSPACE-complete problems; as a consequence, the size of the orbit of a configuration in a directed unsigned graph evolving according to the deterministic (synchronous) majority rule or to the (synchronous) underpopulation rule is not bounded by any polynomial in the size of the network unless P = PSPACE. Since the deterministic majority rule and the underpopulation rule are special cases of the dynamics considered in this paper, in what follows, the attention will be focused on undirected graphs only.
The first result of this paper presented in
Section 3 concerns the impact of negative relations on the orbit of a configuration. Preliminary achievements regarding this issue can be found in [
25,
26], where the opinion evolution of a signed graph is simulated by the opinion evolution of a related size unsigned graph if the network is structurally balanced and the opinion dynamics are symmetric local threshold-based (that is,
) [
25] or if the opinion dynamics are 1-symmetric local threshold-based (that is,
) [
26]. It was left as an open problem whether the results could be extended to more general topologies and/or more general opinion dynamics. The simulation of the opinion evolution of a signed graph by the opinion evolution of a related size unsigned graph is here extended to the weighted case and to any asyncronous (heterogeous) threshold-based rule independent of the network topology, so closing the mentioned open problem. All of this allows us to only consider unsigned weighted graphs.
Secondly, in
Section 4, periodic asynchronous opinion dynamics are taken into account. It is here shown that the opinion evolution of a directed graph
G according to any synchronous threshold-based opinion dynamics can be simulated by the opinion evolution of a related undirected graph
according to related periodic asynchronous threshold-based opinion dynamics. After the PSPACE-completeness proof in [
26], this implies that deciding if an undirected unsigned weighted graph evolving from a given opinion configuration according to a periodic asynchronous threshold-based rule will ever reach an equilibrium configuration is a PSPACE-complete problem and, needless to say, such a result extends to the more general asynchronous dynamics setting introduced above. In more detail, since the weights in
, the thresholds values, and the values of
ℓ and
in the simulation are at most 4, it holds that the just reminded decision problem is strong PSPACE-complete. Hence, the size of the orbit of an opinion configuration in an undirected unsigned weighted graph evolving according to an asynchronous threshold-based opinion dynamics is not polynomial in the graph size and the numerical component of the instance (namely, edge weights, thresholds, and timing values) unless P = PSPACE.
The last contribution of this paper (
Section 5) is proving that the size of the orbit of a configuration in an undirected (signed) weighted graph evolving according to any synchronous threshold-based opinion dynamics has a pseudo-polynomial upper bound in the graph size, that is, an upper bound which is a polynomial in the number of nodes and edges and in the value of the numerical component of the instance. We remark that the upper bound is polynomial when the graph is not weighted; hence, since the opinion dynamics according to which the unsigned graph simulating the opinion evolution of a signed graph evolves described in
Section 3 is a (nonlocal) threshold-based one, this proves that the orbit of any opinion configuration of any signed unweighted graph evolving according to any local threshold-based dynamics (including the underpopulation rule) is upper bounded by a polynomial in the graph size, and this closes the open problem left in [
25].
The state of the art concerning orbit size and reachability problems is finally summarized in
Table 1.
2. Preliminary Definitions and Notations
A signed weighted graph is a graph together with an edge-weight function . A weighted graph is unsigned if . For any node u of a signed weighted graph G, is the set of neighbors of u.
An
opinion configuration of a graph
G is a node-labeling function
: for
,
if
u endorses a specific topic, and
if
u contrasts that topic. The opinion of any node
u may change over time due to the influences of
u’s neighbors opinions: for each
, if
, then
v positively influences
u, that is,
v pushes
u to obtain its same opinion; if
, then
v negatively influences
u, that is,
v pushes
u to get its opposite opinion. Furthermore, for any edge
, the larger that
is, the stronger the influence
u and
v exert on each other: specifically,
v positively influences u of an amount
if
and
or if
and
: summarizing,
v positively influences
u of an amount
if
. The value
is the
positive influence acting on
u at configuration
.
Opinion dynamics define a functional which specifies, for a given opinion configuration of a graph G at some time step t, the opinion configuration of G at step . Hence, an opinion dynamics entails a (possibly infinite) discrete dynamic process during which, at each time step, each node might change the opinion it received at the previous step.
Periodic asynchronous threshold-based opinion dynamics
for a signed weighted graph
are ruled by a quadruple
, where each of
,
,
ℓ, and
is a function defined on
V associating to every
an integer value. For any node
u and for any opinion configuration
of
G at step
t,
is defined as
Notice that, if , without loss of generality, the bounds and can be assumed for every .
If
for every
, the dynamics are
synchronous. The
local threshold-based dynamics introduced in [
26] for unweighted graphs are synchronous threshold-based dynamics such that, for any pair of nodes
u and
v, it holds that
and
whenever
.
In the rest of this paper, any node u will be said to be listening at time steps , for some , and to be sleeping all the remaining time steps.
The evolution sequence of the opinion configuration at time 0 of a graph G with respect to periodic asynchronous threshold-based dynamics is the sequence such that for . The evolution sequence of a periodic opinion dynamics is periodic. Indeed, define the state of a node u as a pair , with and , which represents its opinion at some step and the number of steps it has to wait before checking the changing opinion conditions: hence, at any step, node u can be in one of states, where . This implies that the total number of state configurations of G is at most , where . Once the evolution of an opinion configuration of a graph has covered all possible state configurations, it must necessarily end in a loop.
The orbit of an opinion configuration of a graph G at time 0 with respect to the periodic opinion dynamics (or, in short, the -orbit of G at ) is the smallest prefix of before a loop starts, that is, , where and the following holds:
For , ;
There exists such that for and .
The opinion configuration is an equilibrium configuration if .
For ease of notation, in what follows, the sequence will be considered a set as well.
3. Removing Negative Relations
It is here shown the description the opinion evolution of a signed weighted graph according to any asynchronous threshold-based opinion dynamics by the opinion evolution of a related unsigned graph according to related asynchronous threshold-based opinion dynamics. Formally, it is as follows.
Theorem 1. For any undirected signed weighted graph and for any asyncronous threshold-based opinion dynamics , we have an undirected unsigned weighted graph , with and , and the asyncronous threshold-based opinion dynamics can be derived from G and such that, for any opinion configuration ω of G,where is an opinion configuration of that can be computed in polynomial time from ω. The proof of the above theorem exploits the technique introduced in [
26]. Let
be an undirected signed weighted graph; the
display graph of
G is the undirected unsigned weighted graph derived from
G as follows (
Figure 1):
For each , the pair of nodes and are contained in , that is, ;
For every , contains the following:
- −
Edges and if ;
- −
Edges and if .
In both cases, the weight of all such arcs is .
Let be an opinion configuration of G. The extension of is the opinion configuration of such that, for every , , and .
Let
be the asymmetric threshold-based opinion dynamics for
G ruled by the quadruple
. The
mirror dynamics
for
are the asymmetric threshold-based opinion dynamics ruled by the quadruple
such that, for every
,
It remains to prove that, for any asynchronous threshold-based dynamics for G, if is in an opinion configuration of extending an opinion configuration of G, then the opinion evolution of according to the mirror dynamics of simulates the opinion evolution of G according to . This is the aim of the next lemma.
Lemma 1. Let be an undirected signed weighted graph, and let be the display graph of G. For any asynchronous threshold-based opinion dynamics and for any opinion configuration ω of G at any time step t, if is the extension of ω for and if is the asynchronous threshold-based opinion dynamics mirroring , then is the extension of .
Proof. Within this proof, the sets of neighbors of a generic node
v in
G and in
will be denoted, respectively, as
and
; similarly,
is the positive influence at
acting on node
v in
G and, since
for any
,
is the positive influence at
acting on node
v in
. Finally,
and
are the one-step evolutions of, respectively,
and
, that is,
, and
.
For any
, by construction, it holds that
if and only if either
and
or
and
; hence,
Furthermore, since is an extension of , for any , the following hold:
If z positively influences v at , then either and or and . In the former case, and , and symmetrically, and so that positively influences , and does not positively influence . In the latter case, and , and symmetrically, and so that does not positively influence , and positively influences . In both cases, the neighbor of in positively influences , and the neighbor of in does not positively influence at .
If z does not positively influence v at , then either and , or and . In the former case, and , and symmetrically, and so that does not positively influence , and positively influences . In the latter case, and , and symmetrically, and so that positively influences , and does not positively influence . In both cases, the neighbor of in does not positively influence , and the neighbor of in positively influences to 1 at .
Hence, , and .
As a consequence, since
extends
, then, for any
, either
v is sleeping at time
t, as well as
and
, so that
or
v is listening at time
t, as well as
and
, so that we have the following:
If
and
, then
; hence,
, and
Since and , this implies that and .
Similarly, it can be proved that the following hold:
- −
Tf and , then and so that, since and , then , and ;
- −
If and , then and so that, since and , then , and ;
- −
If and , then and so that, since and , then , and .
This proves the assertion. □
It is worthwhile to be noticed that the constructions of and , as well as the proof of Lemma 1, are almost the same in the directed case.
This completes the proof of Theorem 1.
4. Periodic Asynchronous Threshold-Based Dynamics
The next theorem is the starting contribution of this section. In addition to its consequences, it has some interest on its own.
Theorem 2. For any directed (unsigned unweighted) graph , for any opinion configuration ω of G and for any synchronous threshold-based opinion dynamics , there exists an undirected weighted graph with , an opinion configuration of , and asyncronous threshold-based opinion dynamics such that, if and , it holds that Proof. The undirected graph
is derived from
as follows (see
Figure 2):
, that is, is obtained by adding to V a pair of new nodes for every arc in A;
, that is, contains a chain of length two for every arc in A;
, , and for every arc .
Let be the pair of functions ruling . The quadruple ruling is defined in the following:
For each , we have the following: , , , and .
For each , we have the following: , , , and .
For each , we have the following: , , , and .
Finally, the opinion configuration of is derived from as follows:
For each , ;
For each , .
The assertion is proved by induction on t together with the claim that for every , and .
By construction, the assertion and claim both hold.
Assume that and for all , that , and that .
Let ; by the inductive hypothesis, , and . Hence, we have the following:
Step is defined as follows:
- −
Since u is sleeping at time-step , then ;
- −
Since is listening at time-step , since its neighbors in are u and , since , and since , then :
- −
Since is sleeping at time-step , then ;
Step is defined as follows:
- −
Since u is sleeping at time-step , then ;
- −
Since is sleeping at time-step , then ;
- −
Since is listening at time-step , since its neighbors in are and v, since , and since , then ;
Step is defined as follows:
- −
Since u is sleeping at time-step , then ;
- −
Since is listening at time-step and since and , then whatever its neighbors’ opinions are;
- −
Since is sleeping at time-step , then ;
Step is defined as follows:
- −
Since u is listening at time-step and since, by the previous item, for each , , since and since and , then ;
- −
Since is sleeping at time-step , then ;
- −
Since is listening at time-step and since and , then whatever its neighbors’ opinions are.
This completes the induction and the proof. □
Deciding if a graph
G is in a given opinion configuration
and is evolving according to the deterministic majority rule
that will ever reach an equilibrium configuration has been proved to be a PSPACE-complete problem in [
26] when
G is directed, unsigned, and unweighted. Since the deterministic majority rule entails synchronous (local) threshold-based opinion dynamics such that
and
for every node
u in
G, it can be easily verified that
,
, and
are computable in polynomial time in the size of
G. Hence, by noticing that the values of the functions
,
,
,
, and
in the proof of Theorem 2 are constant, from Theorem 2, the next corollary follows.
Corollary 1. Deciding if an undirected unsigned weighted graph G in a given opinion configuration ω and if it is evolving according to periodic asynchronous threshold-based opinion dynamics that will ever reach an equilibrium configuration is a strong PSPACE-complete problem.
Recall that in order to decide the just introduced problem, it is sufficient to let the graph evolve until an equilibrium conguration is met or it is possible to deduce that it will never be met. As a consequence, the following corollary holds.
Corollary 2. Unless P = PSPACE, there does not exist any polynomial such that, for every undirected unsigned weighted graph , for every opinion configuration of G, and for all periodic asynchronous threshold-based opinion dynamics ruled by the quadruple , it holds that , where M is the maximum value taken by π, , , ℓ, and ρ.
5. Synchronous Threshold-Based Dynamics
The last section of this paper is devoted to proving that there exists a polynomial
such that, for any synchronous threshold-based dynamics
and for any undirected weighted graph
G,
, where
is the sum of the edge weights of
G. After Theorem 1, is is sufficient to consider unsigned weighted graphs, that is, all edge weights are positive. The goal will be accomplished by exploiting the technique introduced in [
24] for the Underpopulation rule suitably adapted to general threshold-based rules and weighted graphs.
Let be an undirected unsigned weighted graph, with , let be an opinion configuration of G, and let be synchronous threshold-based dynamics. Since is synchronous, it is not needed to specify the starting time of the evolution of G at . Furthermore, the evolution set of G at is periodic. Denote as , that is, . For any , the string is called the history of v.
A sequence will denote, in short, the set of sequences of length h in which every ? is replaced by 0 and by 1 so that, for instance, is the set of sequences . For and , y matches z (in short, ) if whenever (no matter what happens if ) for every .
For any
and
with
, and for any
, we set
and we denote as
the number of matches of
y inside the history of
v, that is,
and as
the total number of matches of
y inside the histories of all nodes in
V.
The aim of the next lemma is proving an upper bound on the size of
for any synchronous dynamics, and it has already been proved in [
24] for the Underpopulation rule and in [
26] for local threshold-based dynamics. Although the proof for the general case is almost the same as that for the Underpopulation rule and the local threshold-based dynamics, for the sake of completeness, it is repeated here.
Lemma 2. If defines synchronous opinion dynamics, then, for any undirected unsigned weighted graph G and for any opinion configuration ω of G, Proof. Let
. Since
defines synchronous dynamics, then, for every
with
,
, there exists a node
in
G such that
. By choosing
we obtain that, for any
, the string
belongs to
. This proves that
. □
It remains to prove an upper bound on when the synchronous dynamics are threshold-based. This is the goal of the next lemma.
Lemma 3. If defines threshold-based opinion dynamics, then, for any undirected unsigned weighted graph and for any opinion configuration ω of G such that , it holds thatwhere Π is the sum of edge weights in G. Proof. Since
and
, and since
and
, it follows that
Bounding
requires taking into account the edge weights and introducing some more notation. Let
be such that
. Then, for any
, we set
and finally,
Notice that, for every
, it holds that
(with the equality occurring when
). Furthermore, by the edge weights simmetry, for every
such that
, it holds that
Hence, in particular,
so that, since
and
we obtain
and, by (
3),
Since the state of a node
u changes from 0 to 1 if and only if the weighted number of its neighbors in state 1 is at least
, and since a node
u in state 0 remains in state 0 if and only if the weighted number of its neighbors in state 1 is less than
, then, for
,
and, similarly,
And, by (
4), this implies that
By Equations (
1), it holds that
and
for any
. Hence, by recalling that
and
,
Finally, by (
2), the assertion follows. □
The next theorem then follows from Lemmas 2 and 3.
Theorem 3. For any synchronous threshold-based opinion dynamics , for any unsigned weighted undirected graph , and for any opinion configuration ω of G, .
As a consequence of the above theorem, by Theorem 1, the following corollary holds.
Corollary 3. For any synchronous threshold-based opinion dynamics , for any signed weighted undirected graph , and for any opinion configuration ω of G, .