Hydrodynamic models of preference formation in multi-agent societies
Lorenzo Pareschi, Giuseppe Toscani, Andrea Tosin, Mattia Zanella

TL;DR
This paper derives hydrodynamic equations from kinetic models of opinion formation, highlighting how opinion and preference dynamics influence collective decision-making in multi-agent societies.
Contribution
It introduces a novel hydrodynamic modeling approach for opinion and preference formation, based on kinetic theory and local equilibrium analysis.
Findings
Hydrodynamic models effectively describe opinion dynamics.
Numerical examples validate the model's accuracy.
Distinction between opinion and preference impacts collective choices.
Abstract
In this paper, we discuss the passage to hydrodynamic equations for kinetic models of opinion formation. The considered kinetic models feature an opinion density depending on an additional microscopic variable, identified with the personal preference. This variable describes an opinion-driven polarisation process, leading finally to a choice among some possible options, as it happens e.g. in referendums or elections. Like in the kinetic theory of rarefied gases, the derivation of hydrodynamic equations is essentially based on the computation of the local equilibrium distribution of the opinions from the underlying kinetic model. Several numerical examples validate the resulting model, shedding light on the crucial role played by the distinction between opinion and preference formation on the choice processes in multi-agent societies.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Hydrodynamic models of preference formation
in multi-agent societies
Lorenzo Pareschi Department of Mathematics and Computer Sciences, University of Ferrara, Via Machiavelli 35, 44121 Ferrara, Italy ([email protected])
Giuseppe Toscani Department of Mathematics “F. Casorati”, University of Pavia, Via Ferrata 1, 27100 Pavia, Italy ([email protected])
Andrea Tosin Department of Mathematical Sciences “G. L. Lagrange”, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Torino, Italy ([email protected])
Mattia Zanella Department of Mathematical Sciences “G. L. Lagrange”, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Torino, Italy ([email protected])
Abstract
In this paper, we discuss the passage to hydrodynamic equations for kinetic models of opinion formation. The considered kinetic models feature an opinion density depending on an additional microscopic variable, identified with the personal preference. This variable describes an opinion-driven polarisation process, leading finally to a choice among some possible options, as it happens e.g. in referendums or elections. Like in the kinetic theory of rarefied gases, the derivation of hydrodynamic equations is essentially based on the computation of the local equilibrium distribution of the opinions from the underlying kinetic model. Several numerical examples validate the resulting model, shedding light on the crucial role played by the distinction between opinion and preference formation on the choice processes in multi-agent societies.
**Keywords: Opinion and preference formation, choice processes, kinetic modelling, hydrodynamic equations
**
Mathematics Subject Classification: 35L65, 35Q20, 35Q70, 35Q91, 82B21
1 Introduction
The mathematical modelling of opinion formation in multi-agent societies has enjoyed in recent years a growing attention [4, 5, 6, 29, 36, 46]. In particular, owing to their cooperative nature, the dynamics of opinion formation have been often dealt with resorting to methods typical of statistical mechanics [14, 16]. Among other approaches, kinetic theory served as a powerful basis to model fundamental interactions among the so-called agents [8, 9, 10, 17, 30, 47] and to provide a sound structure for related applications [1, 49]. In kinetic models, analogously to the kinetic theory of rarefied gases, the mechanism leading to the opinion variation is given by binary, i.e. pairwise, interactions among the agents. Then, depending on the parameters of such microscopic rules, the society develops a certain macroscopic equilibrium distribution [37, 40], which describes the formation of a relative consensus about certain opinions.
Two main aspects are usually taken into account in designing the elementary binary interactions. The first is the compromise [20, 52], namely the tendency of the individuals to reduce the distance between their respective opinions after the interaction. The second is the self-thinking [47], i.e. an erratic individual change of opinion inducing unpredictable deviations from the prescribed deterministic dynamics of the interactions.
Recently, many efforts have been devoted to include further details in the opinion formation models, so as to capture more and more realistic phenomena. The usual strategy consists in taking additional behavioural aspects into account, such as the stubbornness of the agents [34, 45], the emergence of opinion leaders [25, 27], the influence of social networks [2, 48], the expertise in decision making tasks [41], the personal conviction [3, 7, 11, 19]. Generally, the aim of such additional parameters is to model on one hand the resistance of the agents to change opinion and, on the other hand, the prominent role played by some individuals in attracting others towards their opinions. In all these contributions, the additional variables act as modifiers of the microscopic interactions. This means that they affect the process of opinion formation but are not affected in turn by the evolving opinions.
In the present paper we aim instead at modelling a parallel process to opinion formation, namely the formation of preferences. The preference, which is driven by, but need not coincide with, the opinion, is here understood as representative of the choice that an agent makes among some possible options, such as e.g. some candidates in an election or yes/no in a referendum [18]. As such, and unlike the opinion, the preference evolves towards necessarily polarised states, which reflect the available options.
To pursue this goal, we consider a novel class of inhomogeneous kinetic models for the joint distribution function , where is the variable describing the preference and the one describing the opinion. In particular, is the proportion of agents who, at time , express a preference in the interval and simultaneously an opinion in the interval . As far as the modelling of the interactions leading to the evolution of the opinion is concerned, we take advantage of the well consolidated background recalled before. Conversely, concerning the evolution of the preference, we assume transport-type dynamics of the form
[TABLE]
Here, in analogy with the classical kinematics, plays morally the role of the velocity, i.e. it drags the preference in time, however biased by a perceived social opinion , which accounts for the predominant social feeling. Moreover, the zeros of the function define the options where the preference may polarise.
These ingredients lead us to an inhomogeneous Boltzmann-type kinetic equation of the form
[TABLE]
where is a Boltzmann-type collision operator encoding the opinion formation interaction dynamics. From here, analogously to the classical kinetic theory of rarefied gases, we derive macroscopic equations for the density and the mean opinion of the agents with preference at time by means of a local equilibrium closure based on the identification of the local equilibrium distribution of the opinions – the equivalent of a local “Maxwellian”. The precise type of hydrodynamic equations that we obtain in this way depends on whether the mean opinion of the agents is or is not conserved in time by the microscopic dynamics of opinion formation. For instance, if it is conserved we get the following system of conservation laws:
[TABLE]
where denotes the energy of the local Maxwellian. For special classes of local equilibrium distributions, that we compute from the collisional kinetic equation by an asymptotic procedure reminiscent of the grazing collision limit of the classical kinetic theory [47, 50], we can express such an energy analytically in terms of the hydrodynamic parameters , . We recover therefore a self-consistent macroscopic model, which we show to be hyperbolic for all the physically admissible values of and able to reproduce the preference polarisations, viz. the choices, discussed above.
In more detail, the paper is organised as follows. In Section 2 we give preliminary microscopic insights into the joint process of opinion and preference formation, stressing in particular the role of the perceived social opinion . In Section 3 we move to an aggregate analysis of the opinion formation by means of Boltzmann-type kinetic models, studying in particular their steady states which, as set forth above, pave the way for the identification of the local equilibrium distributions needed in the passage to the hydrodynamic equations. In Section 4 we derive various types of macroscopic models of preference formation out of the aforementioned inhomogeneous Boltzmann-type equation and we link them precisely to key features of the microscopic interactions among the agents. In Section 5 we present several numerical tests, both at the kinetic and at the macroscopic scales, which exemplify the distinction between the preference formation and the opinion formation processes and show how much such a distinction enhances the interpretation of the social dynamics. Finally, in Section 6 we discuss further developments and research prospects.
2 A microscopic look at the opinion-preference interplay
The first mathematical models of consensus formation in opinion dynamics were proposed in the form of systems of ordinary differential equations (ODEs) describing the behaviour of a finite number of agents. After the pioneering works [21, 28], which introduced simple agent-based models to understand the effects of the influence among connected individuals, many research efforts have been devoted to the construction of sophisticated differential models of opinion formation. Besides those dealing with simple consensus dynamics, in recent years new models of more realistic social phenomena have been proposed to capture additional aspects. Without intending to review all the literature, we give here some references on certain classes of models for finite systems: the celebrated Hegselmann-Krause model [32], which considers bounded-confidence-type interactions to stress the impact of homophily in learning processes, see also [15, 35]; models incorporating leader-follower effects [38]; models of social interactions on realistic networks [51]; models of opinion control [12].
An aspect which, to our knowledge, has been so far basically disregarded in mathematical models of opinion dynamics, in spite of its realism, is the distinction between the opinion in the strict sense of the individuals about single issues and their overall preference, which, in some cases, is actually mainly responsible for their choices. For instance, in case of referendums or political elections, the preference of a voter can be identified with his/her voting intention, which may not always coincide with his/her opinion on every topic debated during the election campaign. Obviously, the preference evolves in time with the opinion, in such a way that if a certain opinion persists for a sufficiently long time it can affect the preference considerably. For example, a voter with a voting intention biased towards right (left, respectively) parties, who however finds him/herself frequently in agreement with the positions taken by left (right, respectively) parties on key topics of the election campaign, may end up with a final vote opposite to his/her original intention.
As a foreword to the subsequent contents of the paper, in this section we present some preliminary considerations about the effect of the interplay between opinion and preference, taking advantage of a deterministic microscopic model for a finite number of agents. Let us consider then a system composed by agents with microscopic state given by a pair , where is the opinion of the th agent, is his/her preference and . Sticking to a standard custom in the literature of models of opinion dynamics, we describe mathematically the opinion of an agent as a bounded scalar variable conventionally taken in the interval . In particular, we understand the values as the two extreme opinions, while as the maximum of indecisiveness. Since, from the physical point of view, the preference is commensurable with an opinion, we adopt the same mathematical conventions also for the variable .
In order to highlight the different roles of the opinion and the preference variables, we rely on the analogy with the classical kinetic theory of rarefied gases. There, a molecule moving on a line is characterised by its position and its velocity . In the absence of external forces, the velocity remains constant, whereas the position varies according to the kinematic law
[TABLE]
In practice, a particle with positive velocity will move rightwards, while a particle with negative velocity will move leftwards. In first approximation, it seems natural to assume that the opinion plays the role of the velocity and the preference that of the position. Indeed, at least in the case in which an agent has to end up with one of the two preferences , like e.g. in a referendum, one can assume that a large part of the agents with positive opinion will move their preferences rightwards, while agents with negative opinion will move their preferences leftwards. Clearly, one cannot resort to a law like (1), which allows the position to increase or decrease indefinitely in time: a correction is required in order to maintain the preference variable in the allowed interval .
A primary example of the analogy just discussed is provided below, where the time evolution of the opinions and the preferences of the agents is modelled by the ODE system
[TABLE]
for , supplemented with initial conditions . The second equation describes standard alignment dynamics among the opinions of the agents, i.e. consensus, driven by the interaction/compromise function , see e.g., [40, 47]. The first equation describes instead the evolution of the preference of the th agent based on the signed distance between its true opinion and a reference opinion perceived in the society, which we will refer to as the perceived social opinion. The function has to be primarily chosen so as to guarantee that for all . However, as we will see in a moment, this function will be also useful to take into account meaningful polarisations of the preferences.
In model (2)-(3), the coupling between opinion and preference is actually one-directional, indeed the evolution of depends on that of the ’s but not vice versa. In particular, the system (3) for the ’s can be solved a priori, before analysing the dynamics (2) of the ’s. Let us consider, in particular, the case of interactions with bounded confidence, which are described by taking
[TABLE]
where denotes the characteristic function and is a given confidence threshold, above which agents do not interact because their opinions are too far away from each other. If then only agents with the very same opinion interact, whereas if then we speak of all-to-all interactions, considering that for all . The latter case is actually equivalent to choosing .
Depending on the value of , one can observe a loss of global consensus. Asymptotically, the opinions may form several clusters, whose number is dictated by and by the initial conditions , see Figure 1. However, since the function given in (4) is symmetric, i.e. for all , the mean opinion is conserved in time and for all coincides, in particular, with the mean opinion at .
Now we give some insights into the preference dynamics modelled by (2), at least under special forms of the function . In order to avoid that the preference leaves the interval , a very natural condition is . This implies that the constant functions and are indeed stationary solutions to (2) and may therefore represent attractive or repulsive equilibria of the system, depending on the sign of .
For instance, we may choose
[TABLE]
Taking for granted from (3) that for all , if we integrate (2) starting from an initial condition then for all times in which remains non-negative we find
[TABLE]
Likewise, taking for granted from (3) that for all , if we start from an initial condition then for all times in which remains non-positive we deduce
[TABLE]
This argument, applied to the various time intervals in which has constant sign, shows indeed that for all . Nevertheless, we cannot solve (2) exactly, because from (3) we cannot calculate exactly the function . On the other hand, we can get a useful idea at least of the large time dynamics of (2) by fixing to its asymptotic value, say , and considering the equation
[TABLE]
whose solution reads
[TABLE]
From here we easily deduce that:
- •
if and then for ;
- •
if and then for .
In both cases, the final preference confirms and consolidates the initial one, because has the same sign as . Conversely,
- •
if but then for ;
- •
if but then for .
In these cases, the final preference reverses the initial one, because has opposite sign with respect to .
Another possible choice of the function is:
[TABLE]
which vanishes also at . Thus we are led to consider the equation
[TABLE]
whose solution reads
[TABLE]
Now the asymptotic trend of the preference can be summarised as follows.
- •
For :
- –
if then for ;
- –
if then for .
- •
For :
- –
if then for ;
- –
if then for .
We observe that the large time behaviour of the preference is again a polarisation in poles coinciding with the zeroes of the function . Unlike the previous case, however, the presence of an intermediate pole at prevents a complete reversal of the initial preference when the latter has opposite sign with respect to . In such a situation, the agents simply become indecisive, their preference tending indeed to zero.
In order to illustrate the actual coupled dynamics of (2)-(3), we solve numerically the coupled system of equations with agents and with the functions , given in (4), (5), respectively.
In Figure 2 we present the curves in the case and for . Since the agents reach a global consensus around the centrist opinion , cf. Figure 1(a), with a leftward-biased perceived social opinion we observe the polarisation of the preferences either towards the indecisiveness , if the initial preference was in turn leftward-biased, i.e. , or in , if the initial preference was rightward-biased, i.e. , cf. Figure 2(a). Conversely, with a rightward-biased perceived social opinion we observe indecisiveness if and consolidation in if , cf. Figure 2(b).
Such rather simple dynamics may become more complex under the formation of multiple opinion clusters. To exemplify this case, we consider now , like in Figure 1(b), and again the two cases , cf. Figure 3(a, b) along with also , cf. Figure 3(c, d). In this case, simultaneous polarisations in can also be observed, depending on the distribution of the pairs at the initial time.
3 Aggregate analysis of opinion dynamics
The discussion set forth in the previous section shows that it is in general quite hard to analyse exactly the interplay between opinions and preferences from a strictly microscopic point of view. Due to the severe dependence of the microscopic system on the particular initial state and trajectory of each agent, the main difficulty is, as usual, to grasp the essential facts able to explain the big picture, namely to depict the collective behaviour. For this reason, from this section we move to a more aggregate analysis, which, starting from a description of opinion dynamics by methods of statistical physics and kinetic theory, will finally lead us to macroscopic equations for the preference dynamics written in terms of hydrodynamic parameters such as the density of the agents and their mean opinion.
3.1 Microscopic binary interactions
In order to approach the opinion dynamics (3) from the point of view of kinetic theory, we need to set up a consistent scheme of binary, i.e. pairwise, interactions among the agents. To this purpose, inspired by [13], we consider (3) for just two agents, say , , and we discretise the differential equation with the forward Euler formula during a small time step . Setting
[TABLE]
we obtain the binary rules
[TABLE]
where we have also added a random contribution, given by a centred random variable , modelling stochastic fluctuations induced by the self-thinking of the agents. Here, is an opinion-dependent diffusion coefficient modulating the amplitude of the stochastic fluctuations, that is the variance of .
In general, the binary interactions (6) are such that
[TABLE]
where denotes the expectation with respect to the distribution of . Hence the mean opinion is in general not conserved on average in a single binary interaction unless is symmetric, i.e. for all . Furthermore, at leading order for small enough we have
[TABLE]
where denotes the variance of . Therefore, in general, also the energy is not conserved on average in a single binary interaction, not even for a symmetric function .
Equations (7), (8) show that a particularly interesting case is when is constant, for then from (7) we deduce that the mean opinion is conserved in each binary interaction, while from (8) we see that, at least in the absence of stochastic fluctuations (i.e. formally for ), the average energy is dissipated:
[TABLE]
In order to be physically admissible, the interaction rules (6) have to be such that for . Observing that
[TABLE]
where we have used the fact that , we see that a sufficient condition for is
[TABLE]
which is satisfied if there exists a constant such that
[TABLE]
Considering that by assumption, the first condition can be further enforced by requiring , which implies that has to be chosen as a compactly supported random variable. The second condition forces instead . Taking inspiration from [47], possible choices are: and , which produces ; or and , which yields . Another less obvious option is
[TABLE]
where denotes the positive part, which produces . This function converges uniformly to in when . Notice, however, that such a uniform limit does not comply with (10) regardless of choice of , because of the infinite derivative at .
Exactly the same considerations hold true for the second interaction rule in (6).
3.2 Kinetic description and steady states
Introducing the distribution function , such that is the fraction of agents with opinion in at time , the binary rules (6) can be encoded in a Boltzmann-type kinetic equation, which, in weak form, writes:
[TABLE]
where is an arbitrary test function, i.e. any observable quantity depending on the microscopic state of the agents. Choosing , we obtain that the integral of with respect to is constant in time, i.e. that the total number of agents is conserved. This also implies that, up to normalisation at the initial time, can be thought of as a probability density for every . Choosing instead we discover
[TABLE]
therefore the mean opinion is either conserved in time, if is symmetric so that the right-hand side of the previous equation vanishes, or not conserved, if is non-symmetric. This difference has important consequences on the steady distributions of (11), which in turn will impact considerably on the equations describing the formation of the preferences. Therefore, in what follows we investigate it in some detail.
3.2.1 Symmetric
The prototype of a symmetric is the constant function . In this case, from (11) we can recover an explicit expression of the asymptotic distribution function at least in the so-called quasi-invariant regime, i.e. the one in which the variation of the opinion in each binary interaction is small. To describe such a regime, we scale the parameters , in (6) as
[TABLE]
where is an arbitrarily small scaling coefficient. Parallelly, in order to study the large time behaviour of the system, we introduce the new time scale and we scale the distribution function as . In this way, it is clear that, at every fixed and in the limit , describes the large time trend of . Since , substituting in (11) and using the symmetry of the interactions (6) with we see that the equation satisfied by is
[TABLE]
Now, because of the scaling (13), if is sufficiently smooth then the difference is small and can be expanded about to give:
[TABLE]
where . Plugging into (14) this produces
[TABLE]
where we have denoted by the constant mean opinion and where is a reminder such that under the assumption that has finite third order moment, i.e. , cf. [47] for details. Hence for it results and we get
[TABLE]
Integrating back by parts the terms on the right-hand side and assuming , due to the arbitrariness of this can be recognised as a weak form of the Fokker-Planck equation
[TABLE]
Fixing111In view of the scaling (13), as the function (10) converges uniformly to , which can therefore be chosen as diffusion coefficient in the Fokker-Planck equation (15) after performing the quasi-invariant limit. , the unique asymptotic () solution with unitary mass, say , to (15) reads
[TABLE]
where denotes the Beta function. Notice that such a is a Beta probability density function on the interval . Using the known formulas for the moments of Beta random variables, we easily check that its mean is indeed and we compute its energy as
[TABLE]
In Figure 4 we illustrate some typical trends of the distribution function (16) with positive mean, in this example. We observe that, depending on the value of , such a distribution may depict a transition from a strong consensus around the mean () to a milder consensus () and further to a radicalisation in the extreme opinion () up to the appearance of a double radicalisation in the two opposite extreme opinions ().
3.2.2 Non-symmetric
A natural prototype of a non-symmetric function is a linear perturbation of a constant depending on only one of the two variables , . More specifically, we consider
[TABLE]
where have to be chosen in such a way that for all . This is obtained if
[TABLE]
With respect to model (6), such a function describes a situation in which agents with opinion are more persuasive than agents with opinion if and vice versa if .
Using (18) in (12) we obtain that the evolution of the mean opinion is ruled by
[TABLE]
whence we see that the sign of the time derivative coincides with that of . Thus, if the mean opinion is non-decreasing, while if the mean opinion is non-increasing. Continuing the previous calculation, we further find:
[TABLE]
which indicates that at the steady state () it results invariably . This implies that the asymptotic distribution has zero variance, thus that it is necessarily a Dirac delta centred in the asymptotic mean opinion, i.e. . Plugging this into (11) we discover
[TABLE]
which has to hold for every test function . As a consequence, we deduce , whence if the only zeroes of the diffusion coefficient are like in the examples considered in Section 3.1.
In conclusion, with the non-symmetric function given by (18) we fully characterise the asymptotic distribution function as:
- •
if , the mean opinion decreasing from its initial value to ;
- •
if , the mean opinion increasing from its initial value to .
The considerations above can be generalised to the following function :
[TABLE]
where , so that is non-symmetric, and where the coefficients have to be chosen in such a way that for all . Repeating the previous calculations, we conclude that:
- •
if ; in this case, the mean opinion decreases from its initial value to ;
- •
if ; in this case, the mean opinion increases from its initial value to .
From the modelling point of view, we may interpret the difference as a balance between the persuasion ability of the agents, expressed by , and their tendency to be persuaded, expressed by . Notice indeed that for and we obtain the mirror case of (18), in which agents with opinion are more inclined to change their opinion than agents with opinion if and vice versa if .
The discussion above clearly shows that an arbitrarily small perturbation of a constant , by destroying the conservation of the mean opinion, may drag the system towards asymptotic configurations much less variegated than (16) independently of the parameters , of the interactions.
4 Macroscopic description of preference formation
According to model (2)-(3), the opinions of the agents evolve through mutual interactions independent of the preferences; on the other hand, the preference of each agent is transported in time by his/her opinion. This suggests that a proper way to account for the interplay between opinion and preference in an aggregate manner is by means of an inhomogeneous Boltzmann-type kinetic equation, whose transport term describes the evolution of the preference and whose “collisional” term accounts simultaneously for the changes in the opinions.
4.1 Inhomogeneous Boltzmann-type description and hydrodynamics
A Boltzmann-type description of the opinion dynamics in the form of binary interactions (6) coupled to the transport of the preference (2) is obtained by introducing the kinetic distribution function
[TABLE]
such that is the proportion of agents that at time have a preference in and an opinion in . The distribution function satisfies the following weak Boltzmann-type equation:
[TABLE]
where the transport term (second term on the left-hand side) has been written taking into account that, according to (2), the transport velocity of the preference is and where , on the right-hand side are given by (6).
From the distribution function , by integration with respect to the opinion , we can compute macroscopic quantities in the space of the preferences, such as the density of the agents with preference at time :
[TABLE]
and the mean opinion of the agents with preference at time :
[TABLE]
The interest in (20) is that it allows one to obtain evolution equations directly for the quantities , , provided one is able to characterise the large time statistical trends of the opinions, like in Section 3. The underlying key idea is to consider a so-called hydrodynamic regime, in which the opinions reach a local equilibrium much more quickly than the preferences, pretty much in the spirit of the microscopic investigations performed in Section 2.
Let be a small parameter, which we use to define a macroscopic time scale , i.e. the time scale of the evolution of the preferences, which then turns out to be much larger, viz. slower, than the characteristic one of the binary interactions among the agents. If we want that, on this new scale, the preference dynamics remain the same, from (2) we see that we need to scale simultaneously the transport speed of the preference by letting .
Let , whence . Plugging into (20) we find that satisfies the equation
[TABLE]
Basically, the aforesaid scaling produces the coefficient in front of the interaction term, hence is analogous to the Knudsen number in classical fluid dynamics. Since we are assuming that is small, a hydrodynamic regime is justified and, in particular, it can be described by a splitting of (21), cf. [26], totally analogous to the one often adopted in the numerical solution of the inhomogeneous Boltzmann equation, see e.g. [22, 23, 39]. One first solves the fast interactions:
[TABLE]
which, owing to the high frequency , reach quickly an equilibrium described by a local (in and ) asymptotic distribution function playing morally the role of a local Maxwellian. Notice indeed that (22) is actually an equation on the time scale of the microscopic interactions, because can be scaled back to using the factor . Next, one transports such a local equilibrium distribution according to the remaining terms of (21) on the slower hydrodynamic scale:
[TABLE]
Due to (22), and taking the definition of into account, the local “Maxwellian” can be given the form , where is one of the asymptotic opinion distribution functions found in Section 3. This is the distribution transported by (23), hence we finally obtain
[TABLE]
and we can use the knowledge of to compute explicitly the remaining integral terms.
4.2 First order hydrodynamic models
Let us consider at first the case of the non-symmetric functions (18), (19) discussed in Section 3.2.2. The asymptotic opinion distribution is either or , depending on the asymmetry of . Plugging into (24) along with the choice we find therefore either
[TABLE]
or
[TABLE]
In both cases, we get a self-consistent equation for the sole density and we speak thus of first order hydrodynamic model.
Unlike typical conservation laws, in (25) and (26) the flux does not only depend on the variable through the conserved quantity but also explicitly through the function . An analogous characteristic is found, for instance, in conservation-law-based macroscopic models of vehicular traffic featuring different flux functions in different roads, see [31].
We observe that both (25) and (26) admit the family of stationary distributional solutions
[TABLE]
where the ’s are the zeroes of the function . This indicates that models (25) and (26) reproduce the asymptotic polarisation of the agents in the preference poles individuated by the points where vanishes. The coefficients represent the masses concentrating in each pole. Furthermore, (25) describes invariably a leftward transport of in the space of the preferences, because for all (if the density is simply not transported). Conversely, (26) describes invariably a rightward transport of , since for all (now the density is not transported if ).
4.3 Second order hydrodynamic model
We now consider the symmetric case discussed in Section 3.2.1, which produces the asymptotic opinion distribution given by (16). Notice that this distribution is parametrised by the (local) mean opinion , because the latter is conserved by the opinion dynamics. This implies that, if we plug such a into (24) together with the choice , we do not get a self-consistent equation for the density . In fact, we find:
[TABLE]
with both hydrodynamic parameters , unknown. In order to close the macroscopic equations, we need a further equation relating and , which we can obtain from (24) with and recalling also (17):
[TABLE]
On the whole, we get the second order (i.e., composed of a self-consistent pair of equations) hydrodynamic model
[TABLE]
where the parameter , which here enters the game through the energy of the stationary opinion distribution (16), is reminiscent of the self-thinking (diffusion) of the agents.
Also in this case, (27) is a family of admissible stationary distributional solutions. Hence model (28) can in turn reproduce the asymptotic polarisation of the preferences already observed in the microscopic model.
It is useful to ascertain under which conditions system (28) is hyperbolic in the natural state space . To this purpose, we rewrite it in the quasilinear matrix form
[TABLE]
where , is the matrix
[TABLE]
and denotes lower order terms, which is not important to write explicitly. Since is real-valued, system (28) is hyperbolic if both eigenvalues of are real. To check this, we compute the discriminant of the characteristic polynomial of :
[TABLE]
Since , thus , and , we easily see that is always non-negative. Therefore, we conclude:
Proposition 4.1**.**
System (28) is hyperbolic in the whole state space for every choice of the parameters , and for every function .
4.4 General first and second order hydrodynamic models
If the asymptotic opinion distribution is not known analytically, like e.g. in the significant case (4), the hydrodynamic models can still be written from (24), although only in a semi-analytical form.
Assume that the microscopic dynamics (6) do not conserve the mean opinion. Then the sole conserved quantity is the mass of the agents and from (24) with we obtain the first order model
[TABLE]
in the unknown , where is the asymptotic mean opinion. The latter may be computed e.g. from (12), by means of an appropriate numerical approach.
Conversely, if the microscopic dynamics (6) conserve the mean opinion then is parametrised by and from (24) with we obtain the second order model
[TABLE]
in the unknowns , . Here, is the energy of the asymptotic opinion distribution, expressed as a function of the conserved quantity .
The precise calculation of requires, in general, an accurate numerical reconstruction of . The latter is a stationary solution to the Fokker-Planck equation
[TABLE]
with
[TABLE]
which is obtained in the quasi-invariant regime starting from the binary interactions (6) with a symmetric but not necessarily constant compromise function . In particular, the following implicit representation of can be given:
[TABLE]
where is a normalisation constant and the integral on the right-hand side denotes any antiderivative of the function . For instance, if is the function (19) with
[TABLE]
so that is symmetric and for all , then from (33) we find the semi-explicit expression
[TABLE]
which brings the calculation of back to the numerical solution of the non-linear system of equations
[TABLE]
parametrised by .
In general, however, we observe that the type of dependence of on valid for , cf. (17), is somewhat paradigmatic. In fact, let us consider (14) in the quasi-invariant limit for binary interactions (6) with a symmetric . Fixing , we obtain the following equation for :
[TABLE]
Set , . Then
[TABLE]
which produces asymptotically
[TABLE]
This suggests that a perhaps rough but possibly useful approximation of , to be used in (30), is the average of these lower and upper bounds, i.e.:
[TABLE]
which for , like e.g. in case (4), yields .
5 Numerical tests
In this section we exemplify, by means of several numerical tests, the main features of the formation of preferences at the kinetic and hydrodynamic scales as described by the models presented in the previous sections.
The numerical approach is essential, in particular, to investigate the cases in which the compromise function does not allow for an explicit computation of the asymptotic opinion distribution . Therefore, first we will briefly review Structure Preserving (SP) numerical methods, which are able to capture the large time solution to possibly non-local Fokker-Planck equations with non-constant diffusion, such as those introduced in Sections 3.2.1 and 4.4, see [42, 43]. Next, we will compare the large time distributions so computed with those obtained from the numerical solution of the original Boltzmann-type equation (14) in the quasi-invariant limit () by means of classical Monte Carlo (MC) methods for kinetic equations [23, 40]. After validating in this way the accuracy of the numerical solver for the sole opinion dynamics (homogeneous kinetic model), we will investigate the inhomogeneous kinetic model (20) as well as the hydrodynamic models derived therefrom.
5.1 MC and SP methods for the homogeneous kinetic equation (14)
We begin we rewriting the Boltzmann-type equation (14) in strong form:
[TABLE]
where is the gain part of the kinetic collision operator:
[TABLE]
Here, are the pre-interaction opinions generating the post-interaction opinions according to the binary interaction rule (6) and is the Jacobian of the transformation from the former to the latter.
To compute the solution of (34), we adopt a direct MC scheme based on the Nanbu algorithm for Maxwellian molecules [40]. We introduce a uniform time grid with fixed step and we denote . A forward discretisation of (34) on such a mesh reads then
[TABLE]
From (34), owing to mass conservation, we see that for all if , therefore can be regarded as a probability density function at all times. From (35), under the restriction , we obtain therefore that is a convex combination of two probability density functions and is therefore in turn a probability density function. The probabilistic interpretation of (35) is clear: with probability any two particles interact during the time step ; with complementary probability they do not. This is the basis on which to ground an MC-type numerical method for the approximate solution of (34).
However, it is in general numerically demanding to obtain from (35) an accurate reconstruction of the asymptotic distribution . To obviate this difficulty, one can take advantage of the fact that, for sufficiently small, the large time trend of (34) is well approximated by the Fokker-Planck equation (31). In [43], an SP numerical scheme has been specifically designed to capture the large time behaviour of the solution to (31) with arbitrary accuracy and no restriction on the -mesh size. Moreover, in the transient regime that scheme is second order accurate, preserves the non-negativity of the solution and is entropic for specific problems with gradient flow structure. See also [24, 33, 42] for further applications.
To derive SP schemes for the Fokker-Planck equation (31), we rewrite the latter in flux form:
[TABLE]
where the flux is
[TABLE]
and
[TABLE]
Next, we introduce a uniform grid such that , we denote by an approximation of the grid value and we consider the conservative discretisation of (36)
[TABLE]
where is an approximation of at . In particular, we choose a numerical flux of the form
[TABLE]
with defined as a convex combination of , :
[TABLE]
The coefficient has to be properly chosen. Setting in particular
[TABLE]
where is given by (32), we obtain explicitly
[TABLE]
The order of this scheme for large times coincides with that of the quadrature formula employed for computing the integral contained in (38). In particular, if a standard Gaussian quadrature rule is used then spectral accuracy is achieved in the variable. In the transient regime, instead, the scheme is always second order accurate.
5.1.1 Comparison of the numerical solutions for large times
We now compare the large time numerical solution of the Boltzmann-type equation (34), obtained by means of the MC scheme with the following specifications:
- •
particles;
- •
quasi-invariant regime approximated by taking either or ,
with the numerical solution of the Fokker-Planck equation (31), obtained by means of the SP scheme with the following specifications:
- •
grid points for the mesh , yielding a mesh step ;
- •
fourth order Runge-Kutta method for the time integration of (37);
- •
Gaussian quadrature rule, with quadrature points in each cell , for the approximation of the integral in (38).
We use the symmetric bounded-confidence-type compromise function given by (4) with several choices of the confidence threshold . At the initial time , we prescribe the uniform distribution in , i.e.
[TABLE]
In Figure 5 we fix (left panels) and (right panels) and we take . We observe that, as expected, the smaller the more the MC solution coincides with the SP solution of the Fokker-Planck equation for either value of the confidence threshold . Furthermore, the asymptotic profiles compare qualitatively well with those obtained with the deterministic microscopic model (3), cf. Figure 1(a, b), in terms of number and location of the opinion clusters.
In Figure 6 we repeat the same comparisons between the MC and SP numerical solutions but with . For (left panels) we recover both a transient behaviour and an asymptotic trend of the solution fully consistent with those already observed with the deterministic microscopic model (3). In particular, four opinion clusters emerge in the long run. Interestingly, for a slightly larger parameter , indicating a higher relevance of the self-thinking (stochastic fluctuation) in the behaviour of the individuals, two opinion clusters merge, thereby giving rise to just three clusters in the long run. This aggregate phenomenon can only be observed if some microscopic randomness is duly taken into account in the model.
5.2 Inhomogeneous kinetic equation (21)
We now pass to the inhomogeneous kinetic model, in which the formation of the preferences is driven by an interplay with the opinion dynamics studied before.
We start by outlining the procedure by which we solve the inhomogeneous Boltzmann-type equation (21). Since the Knudsen-like number is assumed to be small, at each time step we adopt the very same splitting procedure already discussed in Section 4.1. Therefore, upon introducing a time discretisation , with constant, we proceed as follows.
Interaction step.
At time , we solve the interactions towards the equilibrium during half a time step:
[TABLE]
for all belonging to a suitable mesh . In this step, we take advantage of the MC scheme introduced in Section 5.1, which has proved to give asymptotic solutions comparable to those of the more accurate SP scheme, provided the parameter is sufficiently small. In particular, we use a sample of particles and we fix .
In (39), denotes the collision operator that appears on the right-hand side of (21) once this equation has been written in strong form.
Transport step.
Next, we take the asymptotic distribution obtained in the interaction step as the input of a pure transport towards the next time step :
[TABLE]
In the tests of this section, unless otherwise specified, we prescribe the uniform distribution in the variables , as initial datum:
[TABLE]
we fix and we take the function given in (5).
5.2.1 Symmetric
First, we consider symmetric interactions described again by the bounded confidence compromise function (4) with . In Figures 7, 8 we show the evolution of the inhomogeneous kinetic model for two different choices of the perceived social opinion, respectively. We clearly observe that while the opinions distribute around the conserved mean opinion , as expected, the preferences polarise in two possible ways. For , cf. Figure 7, polarisations emerge in and . Specifically, individuals with an initial preference in tend to polarise in , whereas individuals with an initial preference in tend to polarize in . For , cf. Figure 8, the mirror trends emerge. These polarisation patterns of the preferences are very much consistent with those observed in Section 2 with the deterministic microscopic model (2)-(3), cf. Figure 2.
Next, we consider the same symmetric compromise function as before but now we fix . In Figure 9 we depict the evolution of the inhomogeneous kinetic model for . As far as the opinion dynamics are concerned, we recognise that individuals tend to cluster in two well distinct positions, see Figure 10(a), directly comparable with the emerging clusters shown in Figure 5(right) and also, up to diffusion, in Figure 1(b). Nevertheless, the social detail is now higher, because we clearly distinguish that individuals with the same asymptotic opinion may actually polarise in different preferences. More specifically, the opinion cluster near is formed by individuals with preferences polarised in either or , while the opinion cluster near is formed by individuals with preference polarised in either or , see Figure 9(c). Remarkably, three polarisations of the preference emerge on the whole in the long run, see Figure 10(b), because the opinions do not reach a global consensus.
Also these polarisation patterns of the preferences are consistent with those discussed in Section 2, indeed the deterministic microscopic model can account in principle for three preference poles. The fact that Figure 3(b) shows asymptotically only two of them depends essentially on the choice of the initial conditions, which in a particle model hardly allow one to observe the representative average trend in a single realisation.
The case is qualitatively analogous to the one just discussed, therefore we do not report it in detail.
5.2.2 Non-symmetric
Finally, we investigate the effect of a non-symmetric compromise function . As already discussed in Section 3.2.2, we recall that the asymmetry of can be understood as a systematic bias of the individuals, who for some reason are more prone to change opinion in a specific direction. In this numerical example, we remain in the class of the bounded confidence models and, taking inspiration from [32], we consider
[TABLE]
where are two confidence thresholds.
In order to understand the effect of function (41), we observe that if then interactions are allowed provided . Otherwise, if then interactions are allowed provided . Thus, if e.g. then an individual with opinion is more incline to interact with other individuals with opinion . The converse holds if instead .
Remark 5.1*.*
If then (41) actually reduces to (4) with .
We choose and , meaning that individuals compromise preferentially with other individuals with an opinion located on the right of their own. Moreover, we consider the perceived social opinion . In Figure 11 we show the evolution of the inhomogeneous kinetic model starting from the uniform distribution (40).
We observe that initially the mean opinion is neutral at any preference, indeed
[TABLE]
Nevertheless, due to the non-symmetric interactions, the mean opinion is not conserved in time, cf. Figure 11(d). In particular, owing to the bias induced by , the opinions tend to shift on the whole rightwards, cf. Figure 11(e), while the preferences polarise in the three poles , cf. Figure 11(f). Again, we notice that the joint picture preference-opinion is a lot more informative than the sole opinion dynamics, because it allows us to observe e.g. that two clusters with nearly the same asymptotic opinion about actually include individuals expressing strongly different preferences (), cf. Figures 11(b, c).
5.3 Hydrodynamic model
Now we test the hydrodynamic model of preference formation derived in Section 4. In particular, since the dynamics predicted by the first order models of Section 4.2 are quite well understood analytically, we focus on the second order model presented in Section 4.3, cf. (28).
To discretise the system of conservation laws (28), we introduce a uniform mesh in the preference domain made of grid points. Furthermore, we choose a time step such that the following CFL condition is met at each computational time:
[TABLE]
where , are the eigenvalues of the matrix (29). Then we use a WENO reconstruction in the variable with a Godunov-type numerical flux, coupled with a third order Runge-Kutta integration in time. See [44] for a detailed description of the numerical scheme.
In all the numerical tests of this section we consider the following initial condition:
[TABLE]
which represents a uniform distribution of the density over the whole range of preferences with a null mean opinion, denoting initial indecisiveness, at all preferences.
In the first test, whose results are displayed in Figure 12 at time , we fix the perceived social opinion and we consider three increasing values of the parameter , in particular , denoting a progressively stronger influence of the self-thinking. The numerical solution clearly shows that, due to , the symmetry of the initial density is preserved, cf. Figure 12(a). In other words, the system is not driven spontaneously towards a specific preference, hence three symmetric polarisations emerge in . The inspection of the trend of the mean opinion, cf. Figure 12(b), reveals that individuals ending in one of the two choices tend to develop opinions in agreement with their preference, while individuals ending in the neighbourhood of the choice tend to develop opinions markedly opposite to their preference. Such shapes of the solution are more and more evident for increasing . The role of the parameter is further stressed by Figures 12(c), (d), which show the time trend of the mass of agents concentrating in suitable neighbourhoods of the preference poles , specifically the intervals , , . For small , cf. Figure 12(c), there is a perfect equilibrium among the concentrations in the three poles. For relatively larger , cf. Figure 12(d), denoting an increased relevance of the self-thinking, the individuals who concentrate about raise considerably with respect to those who concentrate instead in . On the other hand, the latter remain symmetric.
In the second test, cf. Figure 13, we consider the same situation described before but we set the perceived social opinion to , which induces a bias in the transport of the preference. The system exhibits again three polarisations, but now with an overall trend towards and a residual polarisation in , cf. Figure 13(a). The reason is that now the perceived social opinion is higher than the initial mean opinion of the individuals, therefore initially the dominant drift is leftwards. During time, mean opinions higher than emerge, cf. Figure 13(b), which give rise to the polarisation in and to a further contribution to the polarisation in . The latter subtracts mass to the polarisation in , especially for large , cf. Figures 13(c), (d).
In order to validate the macroscopic model, in Figure 14 we compare the hydrodynamic quantities , with the numerical marginals , computed from the solution to the inhomogeneous Boltzmann model (21). In particular, we solve the kinetic equation via the numerical procedure outlined in Section 5.2 with grid points in the -mesh. Starting from the initial condition (40) for the Boltzmann model, to which there corresponds the initial condition (42) at the hydrodynamic level, we observe that the macroscopic model describes consistently the time evolution of the density of agents and of their mean opinion, as expected.
Finally, in Figure 15 we show that the mirror behaviour is observed with , with an overall trend towards and a residual polarisation in .
6 Summary and outlook
In this paper we have proposed a development of classical consensus-based opinion formation models by including an additional variable, that we have called preference, which is transported in time by the evolving opinions of the agents. Although commensurable with an opinion, the preference does not simply replicate the opinion dynamics. It is rather the expression of a final choice, which is often necessarily much sharper, i.e. more polarised, than the opinion, like for instance in case of polls, referendums, elections.
At the agent-based level, the inspiration to model the interplay between opinion and preference is brought from the classical kinematic relation between position and velocity in mechanics: roughly speaking, the time variation of the preference is dictated by the sign of the instantaneous opinion . However, here we introduce two main differences:
(i) a polarisation mechanism of the preference on some values denoting the choices available to the agents;
(ii) a bias linked to the general feeling perceived in the society, that we identify with a perceived social opinion .
Hence, ultimately, the time variation of depends on the signed distance . The meaning is clear: an agent will tend to move his/her preference, hence to orient his/her choice, according to the relative collocation in the society that s/he perceives for him/herself. For instance, if there are three possible choices, viz. preference poles, say , and the perceived social opinion is , an agent with preference and opinion will move his/her preference towards , because ; conversely, if the opinion is , the agent will move his/her preference towards , because . Such a distinction between opinion and preference is crucial to explain how the choice processes, although originating from the opinion dynamics, produce finally outcomes different from those of the opinion formation processes.
Taking advantage of the methods of statistical physics, in particular of the kinetic theory, we have given an aggregate description of the interplay between opinion and preference by means of an inhomogeneous Boltzmann-type equation, in which plays morally the role of the “velocity” and that of the “position”. Specifically, the collision term of this equation accounts for the opinion formation due to binary interactions among the agents, while the transport term accounts for the opinion-driven preference formation. From here, we have finally derived macroscopic hydrodynamic models of preference formation with the technique of the local equilibrium closure, thanks to the possibility to identify precisely, from the kinetic model, the local equilibrium distribution of the opinions.
The analytical investigation of our models, and the related numerical results further extending the scope of the qualitative analysis, have shown the soundness and consistency of our hierarchical approach across all the considered scales. Moreover, they have highlighted the importance of the parameter in shaping the collective distribution of the preferences. In this work, we have considered simply as a given constant. Future research may instead address a variable perceived social opinion, which changes in time driven by various social forces. For instance, the control of could be the goal of antithetical communication strategies commonly seen in contemporary political scenarios. Majority parties might try to weaken the opposition parties by creating the possibly exaggerated perception of a social opinion strongly oriented in their favour. At the same time, opposition parties might try to exaggerate the social bias towards the majority parties, in order to guard the electorate against the risks of too extremist positions. On the other hand, truly extremist parties might prefer to falsely soften the perceived social opinion, in order to avoid scaring the electorate and losing consensus. All these competitive strategies amount to controlling with the aim of optimising a certain cost functional. This implies controlling the flux of the macroscopic models of preference formation proposed in this paper, taking however into account that the control strategy depends necessarily on the instantaneous opinion distribution, because is itself an opinion. From the mathematical point of view, this requires to control the inhomogeneous Boltzmann-type kinetic equation and then to study the passage from the controlled kinetic model to hydrodynamic equations. Suitable techniques need to be explored, in order to make such a passage feasible from both the analytical and the numerical point of view.
Acknowledgements
This work has been written within the activities of the Excellence Project CUP: E11G18000350001 of the Department of Mathematical Sciences ”G. L. Lagrange” of Politecnico di Torino funded by MIUR (Italian Ministry for Education, University and Research), and within the activities of GNFM (Gruppo Nazionale per la Fisica Matematica) and GNCS (Gruppo Nazionale per il Calcolo Scientifico) of INdAM (Istituto Nazionale di Alta Matematica), Italy. This work is also part of the activities of the Starting Grant “Attracting Excellent Professors” funded by “Compagnia di San Paolo” (Torino) and promoted by Politecnico di Torino.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] G. Albi, L. Pareschi, G. Toscani, and M. Zanella. Recent advances in opinion modeling: control and social influence. In N. Bellomo, P. Degond, and E. Tadmor, editors, Active Particles Volume 1, Theory, Methods, and Applications , Modeling and Simulation in Science, Engineering and Technology. Birkhäuser, 2016.
- 2[2] G. Albi, L. Pareschi, and M. Zanella. Opinion dynamics over complex networks: kinetic modelling and numerical methods. Kinet. Relat. Models , 10(1):1–32, 2017.
- 3[3] C. Anteneodo and N. Crokidakis. Symmetry breaking by heating in a continuous opinion model. Phys. Rev. E , 95(4), 2017.
- 4[4] E. Ben-Naim. Opinion dynamics: rise and fall of political parties. Europhys. Lett. , 69(5):671–677, 2005.
- 5[5] E. Ben-Naim, P. L. Krapivsky, and S. Redner. Bifurcations and patterns in compromise processes. Phys. D , 183(3):190–204, 2003.
- 6[6] E. Ben-Naim, P. L. Krapivsky, F. Vazquez, and S. Redner. Unity and discord in opinion dynamics. Phys. A , 330(1):99–106, 2003.
- 7[7] S. Biswas. Mean-field solutions of kinetic-exchange opinion models. Phys. Rev. E , 84:056106, 2011.
- 8[8] L. Boudin, A. Mercier, and F. Salvarani. Conciliatory and contradictory dynamics in opinion formation. Phys. A , 391(22):5672–5684, 2012.
