betaFeedback

WorksPhysics and Astronomy

An evolutionary origin of collective decision making in humans and machines

Abstract

Groups of individuals can solve collective problems more accurately than any single member, by aggregating their opinions. Recent theoretical work has identified individual-level reward schemes that allow uninformed individuals to evolve collective intelligence from the bottom up, through social learning. Yet these results are restricted to linear prediction problems and simple averaging, while the decision tasks that real groups confront are often non-linear, and the institutions that aggregate opinions are seldom single-layer averages: districts elect representatives who in turn vote on policy, referees advise editors who decide on publication. Here we develop a framework for the evolution of collective intelligence in multi-layer voting populations, where individuals observe limited information and groups recursively aggregate their opinions by majority rule. We prove that single-layer voting cannot solve non-linear classification problems under any individual reward scheme. We then identify a "marginal feedback" payoff structure, which rewards individuals only when their opinion is pivotal in their group, and at every layer above them. This reward scheme induces a layered population to evolve accurate collective solutions to complex, non-linear decision tasks through individual-level peer imitation alone. The collective behavior that emerges is equivalent to a multi-layer perceptron in machine learning. Our results provide a naturalistic account of hierarchical institutions, in which the outsize importance of swing voters is the incentive that sustains collective accuracy; and they identify the credit-assignment rule in machine learning as not just an engineered solution but a natural evolutionary outcome.

How does collective intelligence emerge in a population of individuals, each with limited access to the full problem being solved? This question has a long history in the study of human and animal groups ([6, 34, 42, 9, 16, 1, 12, 4]), and a growing body of theory works to identify individual-level incentives that allow collective intelligence to assemble from the bottom up through social learning ([7, 10, 19, 18, 38]). The central challenge is that strategy imitation, the process by which behaviors spread through populations ([37, 29, 32, 24]), tends to erode the diversity of opinions that collective accuracy requires ([15, 34]). This tension can be resolved for simple, linear prediction tasks by rewarding individuals in proportion to how much their personal opinion moves the collective prediction towards the truth ([38]). Under such a “feedback” reward scheme, individuals who imitate higher-payoff neighbors maintain opinion diversity and drive the population to collectively perform linear regression, with no central planner.

But the most important decision problems we face are highly non-linear: the true outcome depends in a complicated way on many independent random factors. Moreover, each individual may observe only a single causal factor at a time. Non-linearity is pervasive in classification problems like whether a candidate is qualified for office or not, whether a proposed law will do more good than harm, whether a medical treatment will benefit a patient. The institutions that human societies use to make collective decisions are seldom single-layer averages of personal opinions. Voters in districts elect representatives, who in turn vote on policy; employees report to managers who report to executives; etc. Hierarchical, threshold-based aggregation appears across cultures, and it is the dominant architecture by which modern societies translate dispersed information into collective decisions ([17, 26] (Strom 2000)). Within such institutions, certain individuals and groups attract disproportionate attention and rewards: swing voters in battleground states, pivotal senators on a closely divided floor ([31, 22]). The empirical pattern of layered aggregation, and the importance of pivotal actors within it, has been documented at length ([30]), but its origins lack a theoretical account.

A separate and growing literature in machine learning has shown that the hierarchical aggregation of simple computational units produces flexible classifiers for complex input-output relationships ([27, 13, 8]). Multi-layer perceptrons and their descendants achieve expressive power by composing non-linear thresholding across layers, with credit assigned to each unit by backpropagation (Rumelhart et al. [27]). These architectures are designed rather than evolved, and their training requires an external optimizer with global access to the full computational graph. Whether biological populations could give rise to anything resembling these machine-learning solutions, without explicit engineering, is an outstanding question ([14, 40, 5]).

Here we unify these topics. We study a population of cognitively limited individuals, each observing a single factor of a high-dimensional prediction problem and forming a personal opinion about a binary outcome. Their opinions are aggregated by voting, in structures that range from a single-layer majority vote to recursive threshold voting across many layers of groups, as in real human institutions. We ask three questions. Can such a population evolve, through peer imitation alone, to solve a non-linear classification problem? What individual-level rewards make this possible, and how do the number of groups and layers shape the population’s collective performance? And how do the collective predictors that emerge relate to the layered classifiers of machine learning? We will show that layered voting under a reward we call marginal feedback, which pays individuals only when their opinion is currently pivotal, evolves accurate non-linear prediction, and that the predictor it produces is a multi-layer perceptron emerging from individual incentives, with marginal feedback playing the role of backpropagation.

A model of collective prediction

We consider a population of NN individuals who must repeatedly predict a binary outcome, Y∈{+1,−1}Y \in\{+1,-1\}, that depends in a complicated way on many factors (Figure 1A). The outcome is determined by mm real-valued random factors, X1,…,XmX_1,\ldots,X_m, through a fixed but unknown true classification rule

Figure 1. A model of collective prediction by layered voting. The population predicts a binary outcome by aggregating the opinions of individuals, either in a single vote or in layers. (A) A binary outcome YY is determined by mm factors through a fixed but unknown true classification rule Y=sign⁡{f(X1,…,Xm)}Y = \operatorname{sign}\{f(X_1,\ldots,X_m)\}. The factors are redrawn at random in each round, so the outcome varies over time. (B) Each individual observes a single factor XeAX_{e_A} and issues an opinion YA=cAxeAY_A = c_Ax_{e_A}, encoded by their strategy (eA,cA)(e_A,c_A): which factor to observe, eAe_A, and the believed correlation between that factor and the outcome, cAc_A. (C) Under single-layer voting the collective prediction is the sign of the total opinion, Y^=sign⁡{∑AYA}\hat{Y} = \operatorname{sign}\{\sum_A Y_A\}. (D) Under two-layer voting each group of individuals first returns a majority verdict, and then the majority of the group verdicts produces the collective prediction.

Y=sign⁡{f(X1,X2,…,Xm)},(1)Y = \operatorname{sign}\{f(X_1,X_2,\ldots,X_m)\}, \tag*{(1)}

where ff is any continuous function of the factors, and Y=+1Y=+1 when ff is positive and Y=−1Y=-1 when ff is negative. The values of the factors are drawn afresh in each round of prediction, so the outcome varies from round to round (Figure 1A). When ff is linear, Y=sign⁡{a0+a1X1+⋯+amXm}Y=\operatorname{sign}\{a_0+a_1X_1+\cdots+a_mX_m\}, the outcome depends linearly on the factors; we call this a linear prediction problem. When ff is non-linear, we call it a non-linear prediction problem. A canonical example is the product Y=sign⁡{a0(X1−a1)(X2−a2)⋯(Xm−am)}Y=\operatorname{sign}\{a_0(X_1-a_1)(X_2-a_2)\cdots(X_m-a_m)\}, which is a generalized exclusive-or (XOR) problem, where the outcome flips each time a factor crosses its threshold aia_i.

Each individual has only limited information about this prediction problem. In a given round, individual AA observes the value of a single factor, XeAX_{e_A} (whose value is xeAx_{e_A}), and issues a personal opinion about the outcome, YA=cAxeAY_A=c_Ax_{e_A}. The individual’s strategy is the pair (eA,cA)(e_A,c_A): the index eAe_A of the factor they choose to observe, and a real coefficient cAc_A that encodes their believed relationship between that factor and the outcome. The sign of cAc_A is the believed direction of the correlation, and its magnitude the believed strength, so that an opinion of large magnitude weighs more heavily in the aggregate. We also allow individuals who ignore the factors and always give a fixed opinion; formally, we include a virtual factor X0=1X_0=1, so that the strategy (0,cA)(0,c_A) produces the constant opinion YA=cAY_A=c_A. Here each individual observes one factor and forms a linear opinion about it. In the supplementary materials we relax this assumption and show that richer ways of forming opinions (binary opinions, thresholded opinions, or opinions based on several factors at once) leave our conclusions unchanged (Figure S1 and Figure S2).

Figure S1. Collective intelligence is robust to the way individuals form opinions. In the main text an individual forms the continuous opinion YA=cAxeAY_A = c_A x_{e_A}; here we vary how individuals form opinions and re-measure the stationary accuracy of two-layer voting, across different groupings. Faint lines reproduce the accuracy of the baseline model from panel A for comparison. (A) The baseline model, YA=cAxeAY_A = c_A x_{e_A} (the same data as Figure 3B). (B) Individuals give a binary opinion from the sign of the observed factor, YA=sign⁡{cAxeA}Y_A = \operatorname{sign}\{c_A x_{e_A}\}; discarding the magnitude of the factor lowers the stationary accuracy. (C) Individuals give a thresholded binary opinion, YA=sign⁡{cA,1xeA+cA,2}Y_A = \operatorname{sign}\{c_{A,1}x_{e_A} + c_{A,2}\}, with strategy (eA,cA,1,cA,2)(e_A, c_{A,1}, c_{A,2}); accuracy exceeds the baseline, especially for few groups. (D) Individuals give the sign of a quadratic function of the observed factor, YA=sign⁡{cA,1xeA2+cA,2xeA}Y_A = \operatorname{sign}\{c_{A,1}x_{e_A}^{2} + c_{A,2}x_{e_A}\}. (E) A population mixing all four ways of forming opinions, where imitation copies a neighbor’s method together with its parameters. Across all cases, two-layer voting evolves collective intelligence, with peak accuracy at an intermediate number of groups. The qualitative results are driven by the population and reward schemes, not by the specific way individuals form opinions. Parameters: N=104N = 10^{4} (two layers), ai∼U(−1,1)a_i \sim U(-1,1), u=0.02u = 0.02 (B), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=103s = 10^{3}.

Figure S2. Observing more factors raises the accuracy of collective prediction. Here each individual observes kk factors and forms a linear opinion from them, YA=cA,1xeA,1+⋯+cA,kxeA,kY_A = c_{A,1}x_{e_{A,1}} + \cdots+ c_{A,k}x_{e_{A,k}}, with strategy (eA,1,cA,1,…,eA,k,cA,k)(e_{A,1}, c_{A,1}, \ldots, e_{A,k}, c_{A,k}). (A to C) Each individual observes one (the baseline model), two, and three factors, respectively. The more factors an individual observes, the more accurate the collective prediction, since individuals then process more information about the prediction problem. Parameters: N=104N = 10^4 (two layers), ai∼U(−1,1)a_i \sim U(-1, 1), xi∼U(−3,3)x_i \sim U(-3, 3), ci∼U(−3,3)c_i \sim U(-3, 3), s=103s = 10^3.

Single-layer and two-layer voting

The individual opinions in a population are combined into a single collective prediction, Y^\hat{Y}, by voting. Under single-layer voting the population forms one group and takes the sign of the total opinion, Y^=sign⁡{∑A=1NYA}\hat{Y}=\operatorname{sign}\{\sum_{A=1}^{N}Y_A\}, so that the collective prediction is +1+1 when positive opinions outweigh negative ones and −1-1 otherwise (Figure 1C). Real institutions rarely aggregate opinions in a single step, however. We therefore also consider layered voting, where the population is partitioned into ngn_g groups of equal size ZZ, with ngZ=Nn_gZ=N (unequal group sizes are treated in Figure S3). Each group first reaches its own binary verdict,

Figure S3. Collective accuracy persists under unequal group sizes. For a fixed population size N=10000N = 10000, group ii is given size proportional to iαi^{\alpha}, so that α≥0\alpha\ge0 controls the inequality in group sizes and α=0\alpha= 0 recovers equal groups. Two updating rules are shown: (A) an individual AA is drawn from the population and then a partner BB from AA’s group; (B) a group is drawn and then two individuals within it. The two updating rules produce qualitatively similar stationary accuracies. When groups are few, greater inequality lowers accuracy; when groups are many, greater inequality raises it, because concentrating individuals into fewer, larger groups restores the within-group diversity that small groups lack. Parameters: N=10000N = 10000, ai∼U(−1,1)a_i \sim U(-1,1), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=102s = 10^2, u=0.02u = 0.02, m=4m = 4.

Y^x=sign⁡{ϕx},ϕx=∑A∈GxYA,(2)\hat{Y}_x=\operatorname{sign}\{\phi_x\}, \qquad\phi_x=\sum_{A\in\mathcal{G}_x}Y_A, \tag*{(2)}

where Gx\mathcal{G}_x denotes the set of individuals belonging to group xx, and ϕx\phi_x is the total opinion within group xx; and then the group verdicts are aggregated with each other to produce the population’s final verdict:

Y^=sign⁡{∑x=1ngY^x}(3)\hat{Y}=\operatorname{sign}\left\{\sum_{x=1}^{n_g}\hat{Y}_x\right\} \tag*{(3)}

(Figure 1D). We take the number of groups ngn_g to be odd, so that every vote resolves; the case ng=1n_g=1 recovers single-layer voting. Later we extend this two-layer construction to any number of layers.

Individuals do not know the true classification rule ff, nor even how many factors the prediction problem contains. Instead, individuals attempt to increase their payoff by imitating each other’s strategies. After each round of prediction, individual AA receives a payoff πA\pi_A that depends on their personal opinion, and over many rounds this payoff averages to a stationary value E(πA)\mathbb{E}(\pi_A) across the random draws of the factors. The form of the payoff scheme governs the population’s evolution, and we compare several reward schemes. below. Strategies spread by payoff-biased imitation on a slow timescale: a random individual AA compares its stationary payoff with a random member BB of the same group and adopts BB’s strategy with probability 1/[1+exp⁡(s(E(πA)−E(πB)))]1/[1 + \exp(s(\mathbb{E}(\pi_A) - \mathbb{E}(\pi_B)))], where the selection intensity s≥0s \ge0 sets how strongly payoffs bias imitation [43]. With a small probability uu the individual instead innovates, drawing a new random strategy. We measure the performance of the whole population by its accuracy, R=P(Y=Y^)R = \mathbb{P}(Y = \hat{Y}), the long-run fraction of rounds in which the collective prediction is correct; perfect prediction corresponds to R=1R = 1, and random guessing to R=1/2R = 1/2.

Single-layer voting cannot solve non-linear problems

Strategy evolution in the population, and its associated collective accuracy, depend on how its members are rewarded. The simplest payoff scheme rewards individuals for personal accuracy, πA=−(YA−Y)2\pi_A = -(Y_A - Y)^2, but this structure fails to produce accurate collective predictions even for linear problems. Rewarding individuals for their own accuracy leads the population to observe the single most predictive factor and eliminates the diversity of strategies that collective accuracy requires [38, 19]. A reward scheme that does succeed for linear prediction problems is feedback [38],

πA=YA(Y−Y^),(4)\pi_A = Y_A(Y - \hat{Y}), \tag*{(4)}

which pays individual AA in proportion to the product of their own opinion, YAY_A, and the collective error, Y−Y^Y - \hat{Y}. When the collective prediction is too low (Y−Y^>0Y - \hat{Y} > 0), individuals whose opinions were larger earn more; when it is too high (Y−Y^<0Y - \hat{Y} < 0), individuals whose opinions were smaller earn more. Feedback therefore rewards those individuals whose opinion has the same sign as the collective error, that is, those whose opinion was correct when the population was wrong. Under feedback rewards, a single-layer population evolving by payoff-biased imitation will eventually achieve near-perfect accuracy for any linear prediction problem (R→1R \to1; Figure 2A).

Figure 2. A two-layer population whose members are rewarded only for pivotal opinions evolves, through peer imitation alone, to solve non-linear prediction problems. Panels A to D show the collective accuracy RR as individuals in the population evolve their strategies in response to marginal feedback rewards; panels E to L compare a prediction sampled from an evolved two-layer population to the true outcome, with predictions shown in blue (+1) and white (−1). (A and B) Single-layer voting under the feedback reward scheme evolves near-perfect accuracy for a linear prediction problem (A) but performs no better than chance in a non-linear XOR problem (B). The linear problem is shown for m=10,50,100m = 10, 50, 100 factors and the non-linear XOR problem for m=2,3,4m = 2, 3, 4. (C and D) Two-layer voting with the marginal feedback reward scheme evolves accurate prediction for both linear (C) and non-linear (D) problems. Accuracy on the non-linear problem declines as mm grows, because mm sets both the number of factors and the degree of the classification boundary. (E to L) The stationary prediction of a two-layer population (F, H, J, and L) closely matches the true outcome (E, G, I, and K) as seen in four two-factor problems: a linear boundary Y=sign⁡{x1+x2}Y = \operatorname{sign}\{x_1 + x_2\} (E and F), a product boundary Y=sign⁡{(x1−0.2)(x2+0.4)}Y = \operatorname{sign}\{(x_1 - 0.2)(x_2 + 0.4)\} (G and H), a parabola Y=sign⁡{x12−2x2−3}Y = \operatorname{sign}\{x_1^2 - 2x_2 - 3\} (I and J), and a circle Y=sign⁡{x12+x22−6}Y = \operatorname{sign}\{x_1^2 + x_2^2 - 6\} (K and L), reaching accuracies of 92–97%. Parameters: N≈104N \approx10^4 (so that ngZn_g Z is close to 10410^4), ng=101n_g = 10^1 (C to L), u=0.02u = 0.02, ai∼U(−1,1)a_i \sim U(-1,1) (uniform distribution), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=103s = 10^3.

Single-layer voting can solve only linear prediction problems, however, no matter how it rewards its members. The collective prediction is the sign of a sum of opinions, and each opinion is linear in the single factor it observes, so the aggregate is Y^=sign⁡{K0+K1x1+⋯+Kmxm}\hat{Y} = \operatorname{sign}\{K_0 + K_1x_1 + \cdots+ K_mx_m\}, with Ki=1N∑A:eA=icAK_i = \frac{1}{N}\sum_{A:e_A=i} c_A. This collective opinion is simply a linear function of the factors, whose coefficients KiK_i are the population’s average beliefs about each factor. Imitation and innovation adjust the coefficients KiK_i, but they cannot change the linear form of the collective prediction. A single layer of voting can therefore resolve only a linear classification boundary, and it cannot solve any non-linear problem whatever the reward scheme (and even, in fact, if personal opinions are binary, see Figure S1). This impossibility is the population-level counterpart of a classical result in machine learning, that a single-layer perceptron cannot compute the exclusive-or function (Minsky and Papert [21]). On the generalized XOR problem, for example, single-layer voting in an evolving population with feedback payoffs never improves collective accuracy beyond random chance, R≈1/2R \approx1/2 (Figure 2B).

Layered voting with marginal feedback solves non-linear problems

Collective intelligence for non-linear problems requires more than one layer of voting — but layering alone is not enough. A two-layer population evolving under feedback payoffs still fails to improve accuracy in a non-linear prediction problem (Figure S4). The obstacle is that the feedback scheme rewards an individual according to the sign of the collective error even when that individual’s group did not affect the collective prediction, and so the reward scheme does not identify which individuals were responsible for the error.

Figure S4. Figure S4 Both layered voting and marginal feedback are required to solve non-linear decision problems. Figure 2 shows that single-layer voting evolved under feedback fails on non-linear prediction problems while two-layer voting evolved under marginal feedback succeeds. Here we test the two remaining combinations: single-layer voting under marginal feedback (A and B) and two-layer voting under feedback (C and D). (A and C) For a linear prediction problem, both combinations evolve accurate prediction. (B and D) In a non-linear prediction problem, both fail to exceed random chance. Layered voting and marginal feedback are therefore each necessary, and neither alone is sufficient, for non-linear prediction problems. Parameters: N=104N=10^4, ng=101n_g=101, u=0.02u=0.02, ai∼U(−1,1)a_i\sim U(-1,1), xi∼U(−3,3)x_i\sim U(-3,3), ci∼U(−3,3)c_i\sim U(-3,3), s=103s=10^3.

We therefore introduce a reward scheme suited to layered voting, which we call marginal feedback:

πA=YA(Y−Y^) 1∣ϕg(A)∣≤∣YA∣(5)\pi_A = Y_A(Y-\hat{Y})\,1_{\lvert\phi_{g(A)}\rvert\leq\lvert Y_A\rvert} \tag*{(5)}

where g(A)g(A) is the group containing individual AA, and the indicator 1∣ϕg(A)∣≤∣YA∣1_{\lvert\phi_{g(A)}\rvert\leq\lvert Y_A\rvert} equals one only when AA’s opinion is pivotal within their group — that is, when the within-group opinion sum ϕg(A)\phi_{g(A)} is small enough that AA’s own opinion could change the group’s verdict. Marginal feedback rewards an individual only when they are pivotal in their group, so that the group’s binary verdict depends on their opinion; whereas individuals in groups with a clear majority, whose opinions do not change the verdict, receive no payoff.

An individual can be pivotal in one of two ways (Figure S5): if removing their opinion would change their group’s verdict, or if adding a second copy of their opinion would change their group’s verdict. In the first case (when ϕg(A)\phi_{g(A)} and YAY_A have the same sign), marginal feedback rewards (or penalizes) the individual for the verdict their opinion currently determines; in the second case (when ϕg(A)\phi_{g(A)} and YAY_A have different signs), marginal feedback rewards (or penalizes) an individual whose opinion could correct a wrong verdict (or disrupt a currently correct verdict) if a second copy of the opinion were added. Either reward alone increases accuracy, and the two together converge faster (Figure S6), so we use marginal feedback (Eq. (5)) throughout.

Figure S5. Marginal feedback rewards only pivotal opinions. (A) Under the feedback payoff scheme, πA=YA(Y−Y^)\pi_A = Y_A(Y-\hat{Y}), every individual is rewarded or penalized regardless of whether their opinion is pivotal. (B) The marginal feedback scheme, πA=YA(Y−Y^)1∣ϕ∣≤∣YA∣\pi_A = Y_A(Y-\hat{Y})1_{|\phi|\leq|Y_A|}, adds the indicator 1∣ϕ∣≤∣YA∣=1ϕ(ϕ−YA)≤0+1ϕ(ϕ+YA)≤01_{|\phi|\leq|Y_A|}=1_{\phi(\phi-Y_A)\leq0}+1_{\phi(\phi+Y_A)\leq0}, where the two terms cannot hold at once (except when ϕ=0\phi=0). The first term marks an individual whose removal would flip the group verdict (individual A); the second marks an individual a copy of whose opinion would flip it (individual B). Only such pivotal individuals are rewarded (or penalized). For illustration a single group is shown, with ϕ\phi the sum of all opinions (i.e., ϕ=ϕg(A)\phi=\phi_g(A)).

Figure S6. Figure S6 Either component of marginal feedback promotes collective intelligence. Marginal feedback decomposes into two terms: YA(Y−Y^)1ϕg(A)(ϕg(A)−YA)≤0Y_A(Y-\hat{Y})\mathbf{1}_{\phi_g(A)(\phi_g(A)-Y_A)\leq0} and YA(Y−Y^)1ϕg(A)(ϕg(A)+YA)≤0Y_A(Y-\hat{Y})\mathbf{1}_{\phi_g(A)(\phi_g(A)+Y_A)\leq0}. The first term represents rewards for individuals whose opinion currently determines the group verdict (i.e., the group verdict will change if YAY_A is removed); and the second term represents rewards for individuals whose opinion has potential to correct a wrong verdict (or disrupt a currently correct verdict) if a second copy of this opinion were added into the group. Thus, the first term measures individuals’ present decisiveness and the second term measures their potential decisiveness. Either component alone raises accuracy to the same stationary level as the combination of the two; the combination converges faster. Parameters: N=104N=10^4, m=3m=3, ng=101n_g=101, s=20s=20, u=0.02u=0.02.

Marginal feedback and layering together evolve accurate collective predictions for non-linear problems. On the generalized XOR problem, single-layer voting performs no better than chance, while the two-layer population reaches high accuracy (Figure 2, C and D). The population’s stationary prediction reconstructs the shape of the true classification boundary, whether it is a diagonal, a set of quadrants, a parabola, or a circle (Figure 2, E to L). Both ingredients are necessary: a single-layer population under marginal feedback, and a two-layer population under feedback, each performs no better than chance on non-linear problems (Figure S4). The difficulty of the task grows with the number of factors: in the XOR problem mm sets both the number of factors and the degree of the polynomial, so accuracy declines as mm increases (Figure 2D).

Marginal feedback works because it delivers to each individual a signal of whether changing their own opinion would change the collective outcome. We make this simple idea precise in the materials and methods through a Lyapunov function, V=E[(Y^−Y)ϕ]V = \mathbb{E}[(\hat{Y}-Y)\phi], which is the collective prediction error weighted by the margin ∣ϕ∣\lvert\phi\rvert of the final vote. Every within-group imitation that raises an individual’s marginal-feedback payoff lowers VV, and a lower value of VV raises the lower bound on collective accuracy. Selection on marginal-feedback payoffs therefore provably increases accuracy, round after round, until payoffs equalize across the population. The decrease in VV does not continue without limit, however, because the number of groups and their size limit the accuracy a population can attain (Figure 3).

Stationary accuracy and diversity as a function of the number of groups

Figure 3. An intermediate number of groups predicts best, by balancing two kinds of diversity. For a fixed population size (N=104N = 10^4) we vary the number of groups ngn_g and measure the stationary accuracy (A and B) and the diversity of predictions (C). (A) For a linear prediction problem, accuracy is highest for a single group and declines only slightly as the group number increases. (B) For the non-linear (XOR) problem, accuracy is maximized at an intermediate number of groups. (C) For the non-linear prediction problem with m=4m = 4, within-group diversity (the entropy of individual opinions) falls while inter-group diversity (the entropy of group verdicts) rises, as the number of groups increases; both types of diversity are large only for an intermediate number of groups. Diversity is shown in the initial and in the stationary state. Parameters: N≈104N \approx10^4, ai∼U(−1,1)a_i \sim U(-1,1), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=103s = 10^3, u=0.02u = 0.02.

An intermediate number of groups performs best

How should a population of a given size be apportioned into voting groups so that it will evolve to maximize collective accuracy? For a linear prediction problem with a single layer of voting, a single group is ideal: single-layer voting is itself a linear predictor, whereas partitioning the population into groups makes the collective prediction non-linear and slightly lowers accuracy (Figure 3A).

For a non-linear task, such as the XOR problem, collective accuracy is maximized at an intermediate number of groups (Figure 3B): too few groups and too many groups both fail, for different reasons. At one extreme, a single group of large size (ng=1n_g = 1, Z=NZ = N) reduces layered voting to single-layer voting, which cannot resolve a non-linear problem at all. At the other extreme with many small groups (such as ng=N/2n_g = N/2, Z=2Z = 2) imitation within a group can explore only a few strategies, and the population again fails to achieve high collective accuracy. Only an intermediate number of groups

avoids both failures.

This phenomenon reflects a tradeoff in diversity, which prior work has identified as a prerequisite for collective intelligence [10, 15, 25]. A two-layer population carries diversity at two levels. Within-group diversity is the variety of individual opinions inside a group, and it sets the range of classification boundaries a single group can represent, since a group’s verdict Y^x=sign⁡{∑A∈GxcAxeA}\hat{Y}_x = \operatorname{sign}\{\sum_{A \in\mathcal{G}_x} c_A x_{e_A}\} depends on its strategic composition. Inter-group diversity is the variety of verdicts across groups, and it sets the range of boundaries the whole population can represent by voting over its groups. At a fixed population size the two cannot be maximized together: adding groups shrinks each one and lowers within-group diversity, while enlarging groups leaves fewer of them and lowers inter-group diversity (Figure 3C). An intermediate number of groups is required to maintain both kinds of diversity and produce accurate predictions. In larger populations, accuracy rises and the optimal number of groups increases, though the optimal group size grows only slowly (Figure S7 and Figure S8); a larger population improves its predictions mainly by forming new groups rather than by enlarging existing ones.

Figure S7. Larger populations reach higher accuracy in non-linear prediction problems. Stationary accuracy against population size, for a non-linear prediction problem with m=2,3,4m = 2, 3, 4 factors. (A) A single-layer population cannot predict a non-linear prediction problem, so enlarging it does not help. (B and C) A two-layer population can be enlarged either by adding groups at fixed group size (B) or by enlarging groups at fixed group number (C); in both cases a larger population reaches higher stationary accuracy. Parameters: ai∼U(−1,1)a_i \sim U(-1, 1), xi∼U(−3,3)x_i \sim U(-3, 3), ci∼U(−3,3)c_i \sim U(-3, 3), u=0.02u = 0.02, Z=25Z = 25 (B), ng=100n_g = 100 (C), s=103s = 10^3.

Figure S8. The optimal number of groups grows slowly with population size. (A) The number of groups that maximizes stationary accuracy increases with population size, and decreases with the number of factors at fixed population size. (B) The corresponding optimal group size grows only slowly with population size, or remains roughly constant. A growing population therefore improves its predictions mainly by forming new groups rather than by enlarging existing ones. Parameters: ai∼U(−1,1)a_i \sim U(-1,1), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=103s = 10^3, u=0.02u = 0.02.

These theoretical results are consistent with empirical findings in animals and humans. In animal groups, decision accuracy in complex environments is often maximized by small, finite group sizes rather than by ever-larger crowds ([11]). In human experiments, the average of consensus estimates from a smaller number of five-person groups was more accurate than the average of independent estimates from a far larger crowd ([23]).

Deeper hierarchies solve more complex problems

Human institutions for decision making often have more than two layers of aggregation, and our framework extends to any number. In an LL-layer population, n1n_1 individuals form each first-layer group, n2n_2 first-layer groups form each second-layer group, and so on, with N=n1n2⋯nLN = n_1 n_2 \cdots n_L individuals in total (Figure 4A). Voting proceeds from the bottom layer upward, each layer taking the sign of the summed opinions or verdicts beneath it, producing a single collective verdict at the top. As in the two-layer setting, individuals imitate only within their own first-layer group.

Figure 4. Deeper hierarchies solve more complex problems under global marginal feedback. (A) A three-layer population, illustrated with first-layer groups of size n1=5n_1 = 5, second-layer groups of size n2=5n_2 = 5, and a third-layer group of size n3=7n_3 = 7. The population size is N=n1n2n3N = n_1 n_2 n_3. Individual A lies in first-layer group xx (opinion sum ϕx\phi_x), and xx lies in second-layer group yy (verdict sum ϕy\phi_y). Under global marginal feedback A is rewarded only when their opinion is pivotal at both layers, that is when 1∣ϕx∣≤∣YA∣=11_{\lvert\phi_x\rvert\leq\lvert Y_A\rvert} = 1 and 1∣ϕy∣≤1=11_{\lvert\phi_y\rvert\leq1} = 1. (B) On the XOR problem (m=4m = 4), evolution under global marginal feedback (Eq. (6)) produces the highest accuracy; the two forms of local marginal feedback, each retaining a single pivotality indicator improve accuracy but less so; and feedback alone performs no better than random chance. (C) Stationary accuracy against the first-layer group size n1n_1, for three-layer populations with n3=5n_3 = 5, 11 and 25 (fixed NN). An intermediate group size is best, and most three-layer structures exceed the maximum accuracy of any two-layer structure in the same population (red dashed line). (D) Across problem complexities mm, the best three-layer population (n2=51n_2 = 51 and n3=5n_3 = 5) predicts more accurately than the best two-layer population (ng=100n_g = 100). (E) Searching over all grouping structures, the maximum achievable accuracy grows with the number of layers: 0.57 for two layers, 0.87 for three, and 0.90 for four (m=6m = 6). Parameters: N≈104N \approx10^4, m=4m = 4 (B and C), m=6m = 6 (E), u=0.02u = 0.02, ai∼U(−1,1)a_i \sim U(-1,1), xi∼U(−3,3)x_i \sim U(-3,3), ci∼U(−3,3)c_i \sim U(-3,3), s=2×103s = 2 \times10^3, n3=5n_3 = 5 and n2=51n_2 = 51 (B and D).

Payoffs in a multi-layer population now depend on the whole sequence of nested groups that contain an individual. We define a generalized form of feedback, which we call global marginal feedback, that probably induces the evolution of collective accuracy: an individual is rewarded only when their opinion is pivotal at every layer of aggregation that contains them. For a three-layer population, for example, individual AA in first-layer group xx and second-layer group yy earns pay-off

πA=γA(γ−γ^)1∣ϕx∣≤∣YA∣1∣ϕy∣≤1(6)\pi_A = \gamma_A(\gamma- \hat{\gamma}) \mathbf{1}_{|\phi_x| \le|Y_A|} \mathbf{1}_{|\phi_y| \le1} \tag*{(6)}

where ϕx\phi_x and ϕy\phi_y are the opinion sums in groups xx and yy: the first indicator asks whether AA’s opinion could change the verdict of their first-layer group, and the second asks whether that group’s changed verdict could in turn change the verdict of their second-layer group (the condition ∣ϕy∣≤∣Y^x∣|\phi_y| \le|\hat{Y}_x| becomes ∣ϕy∣≤1|\phi_y| \le1 because Y^x\hat{Y}_x is binary; Figure 4A). Dropping either indicator gives a local marginal feedback that requires pivotality at some layers but not all; dropping both recovers plain feedback. The three reward schemes differ in how many layers of pivotality they require, and their accuracies differ accordingly. Global marginal feedback evolves the highest accuracy; local marginal feedback does substantially worse; and plain feedback performs no better than random chance (Figure 4B). The most accurate prediction with many layers of voting thus requires that an individual be rewarded only when they are pivotal at every layer between themselves and the collective verdict. The Lyapunov argument that guarantees increasing accuracy as evolution proceeds by payoff-biased imitation extends to LL layers, with one pivotality indicator per layer (supplementary text section S4).

Deeper hierarchies, with more layers of voting, can solve more complex prediction problems. For a fixed population size, some three-layer structures reach an accuracy higher than any two-layer structure of the same size can achieve (Figure 4C); and across a range of problem complexities the best three-layer population predicts more accurately than the best two-layer population (Figure 4D). Searching over all grouping structures, the maximum achievable accuracy grows with the number of layers (Figure 4E). This is because an LL-layer population is a special case of an (L+1)(L + 1)-layer population, and so adding a layer can only enlarge the set of prediction problems a population can solve. As with two layers, intermediate group sizes predict best, reflecting the same diversity tradeoff now operating across levels (Figure 4C).

More layers of voting also make the reward signal sparser. Global marginal feedback in an LL-layer population contains L−1L - 1 pivotality indicators, so the more layers a population has, the less often any given individual receives a non-zero reward. A population with more layers can represent more prediction problems, but its individuals receive an informative reward less often, so it converges more slowly and requires stronger selection to reach a given accuracy (Figure S9).

Figure S9. Global marginal feedback in multi-layer populations. (A) An LL-layer population: in layer KK, every nKn_K entities form a higher-layer group whose verdict passes to layer K+1K+1, with N=n1n2⋯nLN = n_1 n_2 \cdots n_L. Writing gK(A)g_K(A) for the layer-KK entity containing individual AA, global marginal feedback is πA=YA(Y−Y^)1∣ϕg2(A)∣≤∣YA∣1∣ϕg3(A)∣≤1⋯1∣ϕgL(A)∣≤1\pi_A = Y_A(Y-\hat{Y})1_{\lvert\phi_{g_2}(A)\rvert\leq\lvert Y_A\rvert}1_{\lvert\phi_{g_3}(A)\rvert\leq1}\cdots1_{\lvert\phi_{g_L}(A)\rvert\leq1}, with L−1L-1 pivotality indicators. (B and C) The probability that a random individual receives a nonzero payoff, given YA(Y−Y^)≠0Y_A(Y-\hat{Y})\ne0. In the two-layer case (B) it rises with the number of groups and is independent of the problem scale mm; in the three-layer case (C) it is set mainly by the number of top-layer entities (i.e., n3n_3). Individuals in deeper hierarchies are rewarded less often, because of the extra indicator. (D) In two-layer populations, the stationary payoffs are small due to the pivotality indicator, especially for few groups. So stronger selection amplifies payoff differences and raises accuracy until saturation; with more groups, a lower selection intensity suffices. Main-text results are in the saturation regime. Parameters: N=104N = 10^4, u=0.02u = 0.02, m=2m = 2 (C and D), ai∼U(−1,1)a_i\sim U(-1,1), xi∼U(−3,3)x_i\sim U(-3,3), ci∼U(−3,3)c_i\sim U(-3,3).

Discussion

The study of collective intelligence has mostly asked what forms of aggregation yield accurate collective judgments, and when ([6, 34, 10, 7, 19, 18, 3, 23]). A distinct question is whether individual incentives can induce a population of self-interested learners to evolve accurate collective predictions on its own; this is understood only for linear problems ([19, 38]). Yet real prediction problems are seldom linear. Here we ask what individual incentives produce collective accuracy when the problem is realistically complex and non-linear. We find that layered voting under marginal feedback, a reward given only to individuals pivotal in their own group and at every group above it, evolves collective accuracy where a single layer of voting cannot. The collective predictor that emerges in the evolved population is a multi-layer perceptron assembled from the bottom up, by selection on individual incentives.

This account explains two pervasive features of human institutions. The first is layered aggregation itself. Voters elect representatives who vote on legislation; employees answer to managers who answer to executives; juries return verdicts that higher courts may review. Such hierarchies are sometimes explained by the costs of communication or the logistics of scale, but our results suggest a deeper reason: layered aggregation is the only architecture of majority voting that can resolve a complex, non-linear classification problem. The second feature is the disproportionate attention paid to pivotal actors in real-world institutions. Campaigns concentrate their money and attention on swing voters and battleground states, and on pivotal senators on a closely divided floor, whose votes can decide the outcome. In our model these are precisely the individuals and groups whose reward is nonzero under marginal feedback, because their opinion is currently decisive. The outsize importance of swing actors, sometimes seen as a deficiency of democratic systems, is instead, in our account, a sign of a functional reward scheme supplying the credit-assignment signal needed for a collective to learn from individual imitation. Our results also bear on institutional design: the number of groups and layers that predicts best is generally intermediate, which suggests that the size and depth of real deliberative bodies should be matched to the complexity of the decisions they face.

Our framework for the evolution of collective intelligence has a strong correspondence to the multi-layer perceptron of machine learning. Each individual is a single linear unit acting on an observed feature. The within-group sum-and-threshold operation is identical to the activation of a hidden neuron with a sign non-linearity. And the recursive aggregation across layers is the same as the forward pass in a deep network ([8]). The correspondence extends to imitation and training. Marginal feedback rewards an individual only when their opinion is pivotal at every higher layer that contains them, which is precisely the condition under which a perturbation to that individual would propagate all the way to the network’s output. In the language of automatic differentiation, marginal feedback is a sample-based estimator of the gradient of the output with respect to a unit’s parameters ([41, 35, 20]). Backpropagation in machine learning computes this gradient analytically by repeated application of the chain rule ([39, 27, 28]); our population computes it implicitly, by withholding reward from individuals whose change of opinion would not change the verdict at some intermediate layer ([41, 36]). Both procedures select for changes that actually move the global classification, and discard changes that do not. That a population of selfish imitators can, in equilibrium, perform credit assignment equivalent to backpropagation suggests that the central learning rule of modern artificial intelligence is not just a clever engineering solution but a discoverable solution that natural populations can reach through evolutionary dynamics alone.

Our conclusions are robust to specific assumptions of the model. They persist when individuals give binary rather than continuous opinions, threshold their observations, or observe several factors at once (Figure S1 and Figure S2); when groups differ in size (Figure S3); across a range of innovation rates (Figure S10); and as the population grows (Figure S7). Marginal feedback can be split into a reward for present decisiveness and a reward for potential decisiveness, and either component alone suffices (Figure S6); an alternative form of marginal feedback, derived from a different Lyapunov function, reaches the same accuracy (Figure S11).

Figure S10. Collective accuracy is robust to the innovation rate. Stationary accuracy against the innovation rate uu, for two-layer populations with few groups (ng=51n_g = 51), an intermediate number (ng=401n_g = 401), and many groups (ng=1001n_g = 1001). Innovation adds strategic diversity within groups. When groups are few and large, within-group diversity is already high, so accuracy is nearly independent of the innovation rate, and a very high rate lowers it by adding noise. When groups are many and small, within-group diversity is low, so a higher innovation rate raises accuracy, until a very high rate again adds noise. Parameters: N=104N = 10^4, m=4m = 4, s=103s = 10^3.

Figure S11. Figure S11 Two forms of marginal feedback reach the same accuracy. The marginal feedback of Eq. (5) and the global marginal feedback of Eq. (6) follow from requiring the Lyapunov function V=E[(Y^−Y)ϕ]V = \mathbb{E}[(\hat{Y} - Y)\phi] to decrease; we call them VV-induced. Requiring instead that U=E[(Y^−Y)2]=4(1−R)U = \mathbb{E}[(\hat{Y} - Y)^2] = 4(1 - R) decrease yields UU-induced forms, equal to the VV-induced forms times an extra indicator 1∣ϕ∣≤11_{|\phi|\leq1} on the top-layer margin (see supplementary text § 13). (A and B) The two forms reach the same stationary accuracy in a two-layer (A) and a three-layer (B) population, so the extra top-layer indicator is redundant; the VV-induced form, with one fewer indicator, pays individuals more often and converges faster. Parameters: N=103N = 10^3, m=3m = 3 (A), m=4m = 4 (B), ng=101n_g = 10^1 (A), n2=51n_2 = 51 and n3=5n_3 = 5 (B), s=103s = 10^3.

Our model is deliberately simple: individuals observe one factor and vote by strict majority. We do not propose this model as a quantitative account of any particular human institution. Rather, its purpose is to isolate what individual-level mechanism can promote collective intelligence in general. Many questions remain open. Real hierarchies are not static, as layers form and dissolve; and how these structural changes interact with the diversity tradeoff we identify is unknown. Real credit is noisy, as institutions may misjudge whether individuals are pivotal. And real deliberative bodies are also partisan, with individuals who may hold a preferred outcome before any evidence arrives (although even partisan crowds can converge on accurate estimates Becker et al. [2]). Finally, some collective problems require that a population produce a quantitative prediction, as opposed to the binary verdict that we have studied. Nonetheless, that a population of self-interested imitators can evolve accurate, layered collective decision-making, with swing voters as its learning signal, suggests that the hierarchical institutions in human societies and the deep networks in machine intelligence are answers to the same basic problem: assigning credit across the layers of a collective so that local imitation can improve a global judgment.

Supplementary Materials

Materials and Methods

Supplementary Text

Figs. S1 to S12

Supplementary Materials for An evolutionary origin of collective decision making in humans and machines

Guocheng Wang; Qi Su; Joshua B. Plotkin

This PDF file includes:

Materials and Methods

Supplementary Text

Figs. S1 to S12

Materials and Methods

Continuous approximation of the vote

The collective prediction is a discontinuous function of the opinions, Y^=sign⁡{ϕ}\hat{Y} = \operatorname{sign}\{\phi\}, which we smooth for analysis by S(ϕ)=tanh⁡(ϕ/ϵ)S(\phi) = \tanh(\phi/\epsilon), whose bandwidth ϵ\epsilon sets the width of the transition between −1-1 and +1+1. In the voting system, the smallest change in the opinion sum ϕ\phi is on the order of a single opinion (e.g., ∣YA∣\lvert Y_A\rvert), thus we can assume ϵ\epsilon is of the same order as individuals’ opinions (i.e., ϵ∼YA\epsilon\sim Y_A). Its derivative S′(ϕ)=(1−S(ϕ)2)/ϵS'(\phi) = (1-S(\phi)^2)/\epsilon is concentrated where ∣ϕ∣≲ϵ\lvert\phi\rvert\lesssim\epsilon. So we approximate S′(ϕ)≈1∣ϕ∣≤ϵ≈1∣ϕ∣≤∣YA∣S'(\phi) \approx\mathbf{1}_{\lvert\phi\rvert\leq\epsilon} \approx\mathbf{1}_{\lvert\phi\rvert\leq\lvert Y_A\rvert} up to a positive constant that does not affect the sign of the derivative. This identifies the pivotality indicator in marginal feedback with the derivative of the smoothed vote — the sensitivity of the collective prediction to an individual’s opinion. Taking ϵ→0\epsilon\to0 recovers the majority vote rule.

Evolutionary dynamics and Lyapunov functions

For a large population the frequency pαp_\alpha of strategy α=(eα,cα)\alpha= (e_\alpha,c_\alpha) evolves by the replicator equation p˙α=pα(fα−fˉ)\dot{p}_\alpha= p_\alpha(f_\alpha-\bar{f}). Here fα=E(πα)f_\alpha= \mathbb{E}(\pi_\alpha) is the stationary payoff of strategy α\alpha, that is its per-round payoff averaged over random draws of the factors; and fˉ=∑αpαfα\bar{f} = \sum_\alpha p_\alpha f_\alpha is the mean stationary payoff in the population. We also write fAf_A for the stationary payoff to a strategy carried by individual AA. When every strategy earns the same stationary payoff, the evolutionary dynamics are in equilibrium.

We propose a Lyapunov function, V=E[(Y^−Y)ϕ]=E[12∣ϕ∣(Y^−Y)2]V = \mathbb{E}[(\hat{Y}-Y)\phi] = \mathbb{E}[\frac{1}{2}\lvert\phi\rvert(\hat{Y}-Y)^2], which represents the prediction error weighted by the vote margin ∣ϕ∣\lvert\phi\rvert. Assuming that the vote margin is bounded away from zero, i.e., ∣ϕ∣≥c>0\lvert\phi\rvert\geq c > 0, we have V≥c2E[(Y^−Y)2]V \geq\frac{c}{2}\mathbb{E}[(\hat{Y}-Y)^2]. Since E[(Y^−Y)2]=4(1−R)\mathbb{E}[(\hat{Y}-Y)^2] = 4(1-R), the prediction accuracy satisfies R≥1−V2cR \geq1-\frac{V}{2c}. Therefore, as the Lyapunov function decreases, the lower bound of collective accuracy RR increases. If VV converges to zero, the collective prediction becomes perfectly accurate, i.e., R=1R=1.

In single-layer voting on linear problems, we can prove that the feedback payoff (Eq. (4)) guarantees a uniform decrease in the Lyapunov function (see supplementary text). The time derivative of VV is dV/dt=−Var⁡(f)≤0\mathrm{d}V/\mathrm{d}t=-\operatorname{Var}(f)\leq0, where Var⁡(f)\operatorname{Var}(f) is the variance in stationary payoff across the population. So VV will decrease monotonically until all individuals obtain the same stationary payoff, which also implies an increasing lower bound of RR until R=1R=1.

Single-layer voting is restricted to linear classification boundaries: the collective prediction is Y^=sign⁡{∑iKixi}\hat{Y}=\operatorname{sign}\{\sum_i K_i x_i\} with Ki=1N∑A=iNcAK_i=\frac{1}{N}\sum_{A=i}^{N}c_A, so it cannot fit a non-linear classification boundary under any payoff scheme. For two-layer voting we again track V=E[(Y^−Y)ϕ]V=\mathbb{E}[(\hat{Y}-Y)\phi], now with ϕ\phi the opinion sum at the top layer (ϕ=∑j=1ngY^j\phi=\sum_{j=1}^{n_g}\hat{Y}_j). When individual AA imitates a group-mate BB with higher stationary payoff, the induced change in VV is

ΔV≈E[(Y^−Y)S′(ϕ(gA))(YB−YA)].\Delta V \approx\mathbb{E}[(\hat{Y}-Y)S'(\phi_{(g_A)})(Y_B-Y_A)].

Under marginal feedback the expectation can be approximated by the difference in stationary payoff between the two individuals, fA−fBf_A-f_B. Imitation is biased toward higher stationary payoff, so the payoff difference fA−fBf_A-f_B has negative expectation for imitation events, and the Lyapunov function VV again decreases over time. A lower value of VV raises the lower bound on the collective accuracy RR. For the case with more than two layers, the chain rule across layers produces one pivotality indicator per intervening layer, which is the origin of the L−1L-1 indicators in (6) (supplementary text sections S3 and S4).

Diversity

We quantify diversity at two levels by the joint entropy of predictions. For a group of ZZ individuals, each opinion YAY_A is discretized into λ\lambda bins (YA∈{1,…,λ}Y_A \in\{1,\ldots,\lambda\}; in our simulations, λ=2\lambda=2). Let (k1,…,kλ)(k_1,\ldots,k_\lambda) denote the composition counts with ∑j=1λkj=Z\sum_{j=1}^{\lambda} k_j=Z, and let p(k1,…,kλ)p(k_1,\ldots,k_\lambda) be its probability under repeated sampling of factors. The within-group entropy is

−∑k1,…,kλp(k1,…,kλ)log⁡p(k1,…,kλ).(7)-\sum_{k_1,\ldots,k_\lambda} p(k_1,\ldots,k_\lambda)\log p(k_1,\ldots,k_\lambda). \tag*{(7)}

The average within-group entropy H1H_1 is the mean of this entropy over all groups. For inter-group diversity, each group outputs a binary prediction (±1\pm1). Let k+k^+ and k−k^- be the numbers of groups predicting +1+1 and −1-1, respectively, and let p(k+,k−)p(k^+, k^-) be the probability of observing that prediction pattern. The joint entropy across groups is

H2=−∑k+,k−p(k+,k−)log⁡p(k+,k−).(8)H_2 = - \sum_{k^+,k^-} p(k^+,k^-) \log p(k^+,k^-). \tag*{(8)}

Simulations

We estimate the stationary accuracy and the diversities by Monte Carlo simulation of the prediction-and-imitation dynamics. In each run, the factors are drawn afresh each round from their distributions; individuals earn payoffs under the chosen reward scheme. After many rounds of prediction, individuals’ average payoffs become stationary. Then, strategies are updated by payoff-biased imitation within groups (based on the stationary payoff), with innovation rate uu. Accuracy for a given strategy composition is the fraction of correct collective predictions in the many rounds of prediction.

Model description

Population prediction

Consider a prediction problem in which a binary outcome YY depends on mm factors. The relation can be expressed by

Y=sign⁡{f(X1,X2,⋯ ,Xm)},(9)Y = \operatorname{sign}\{f(X_1, X_2, \cdots, X_m)\}, \tag*{(9)}

where X1,⋯ ,Xm∈RX_1, \cdots, X_m \in\mathbb{R} are mm factors whose values, denoted x1,⋯ ,xmx_1, \cdots, x_m, are sampled at random in each round from an mm-dimensional distribution with finite variance; the factors may be uncorrelated or correlated. The outcome is Y=1Y = 1 when f(x1,x2,⋯ ,xm)f(x_1, x_2, \cdots, x_m) is positive and Y=−1Y = -1 when f(x1,x2,⋯ ,xm)f(x_1, x_2, \cdots, x_m) is negative.

If ff is linear, i.e.,

Y=sign⁡{a0+a1X1+a2X2+⋯+amXm},(10)Y = \operatorname{sign}\{a_0 + a_1X_1 + a_2X_2 + \cdots+ a_mX_m\}, \tag*{(10)}

this represents a linear classification problem, and the factor values giving outcome 1 are separated from those giving −1-1 by a flat boundary — a line when m=2m = 2, a flat surface in higher dimensions — along a0+a1X1+a2X2+⋯+amXm=0a_0 + a_1X_1 + a_2X_2 + \cdots+ a_mX_m = 0. We call this a linear prediction problem. If f(X1,X2,⋯ ,Xm)f(X_1, X_2, \cdots, X_m) is non-linear, the boundary between the two outcomes is curved, and we call it a non-linear prediction problem.

Consider a group with nn individuals. Each individual has a personal opinion (prediction) on this outcome, and the final collective prediction is obtained by aggregating all individuals’ opinions. We assume that individual AA’s opinion is YAY_A and the collective prediction is Y^\hat{Y}. A natural and widely used way to aggregate all individuals’ opinions in reality is voting. It means the collective prediction Y^\hat{Y} is obtained by

Y^=sign⁡{Y1+Y2+⋯+Yn}.(11)\hat{Y} = \operatorname{sign}\{Y_1 + Y_2 + \cdots+ Y_n\}. \tag*{(11)}

Note that in this model, individuals’ opinions YAY_A are not necessarily equal to −1-1 or 11. It can be any real number, where the sign of YAY_A represents the individual’s belief that the outcome YY is more likely to be 11 (positive YAY_A) or −1-1 (negative YAY_A), and the absolute value of YAY_A represents the assurance of the individual’s belief. This is because an individual’s opinion with a large absolute value (compared with other individuals’ opinions) will have greater influence on the collective prediction Y^\hat{Y}.

Due to the limited capability of information collecting and processing of a single individual, we assume that each individual can only choose to observe one of the mm factors and give their personal opinion. Specifically, individual AA can choose to observe factor XeAX_{e_A} and obtains its value xeAx_{e_A}. They can estimate how YY is correlated with XeAX_{e_A}. Then, individual AA gives their personal opinion YA=cAxeAY_A=c_Ax_{e_A}. Here, cA>0c_A>0 means individual AA believes YY is positively correlated with XeAX_{e_A}, and cA<0c_A<0 implies they believe XeAX_{e_A} and YY are negatively correlated. The absolute value of cAc_A (i.e., ∣cA∣\lvert c_A\rvert) describes the believed strength of correlation. Furthermore, we assume there are some stereotypical individuals who always give constant opinions without observing any factors. Their opinions can be denoted by YA=cAY_A=c_A (for individual AA). Formally, we can assume that there is a virtual factor X0X_0, whose value x0x_0 always equals 1. Then the opinion of a stereotypical individual is YA=cAx0=cAY_A=c_Ax_0=c_A. Thus, an individual AA’s strategy can be expressed by a 2-tuple (eA,cA)(e_A,c_A), where eA∈{0,1,⋯ ,m}e_A\in\{0,1,\cdots,m\} is the index of the factor they choose to observe and cA∈Rc_A\in\mathbb{R} is the believed strength of correlation of YY and xeAx_{e_A}. Player AA’s personal opinion is

YA=cAxeA.(12)Y_A=c_Ax_{e_A}. \tag*{(12)}

Given all individuals’ opinions, the collective prediction is generated by Eq. (11).

The model introduced above is a baseline model. It describes how a group of people generates a collective prediction of the outcome YY. Based on this baseline model, we can propose models for single-layer voting and two-layer voting.

Single-layer voting

For a population with NN individuals, a single-layer voting structure is the same as the baseline model, just by assuming all individuals are in one group (i.e., n=Nn=N). So, the collective prediction equals

Y^=sign⁡{Y1+Y2+⋯+YN}.(13)\hat{Y}=\operatorname{sign}\left\{Y_1+Y_2+\cdots+Y_N\right\}. \tag*{(13)}

Two-layer voting

In a two-layer voting population, we assume that the population (with size NN) is divided into ngn_g groups. For simplicity, we assume that each group has the same group size ZZ. So we have the relation N=ngZN=n_gZ. But our model can also apply to populations with unequal group sizes (see Figure S3).

In this case, within each group, all individuals’ opinions will be aggregated within each group to generate a group prediction first, like Eq. (11). For example, in group xx, the group prediction is obtained by

Y^x=sign⁡{∑A∈GxYA}.(14)\hat{Y}_x=\operatorname{sign}\left\{\sum_{A\in\mathcal{G}_x}Y_A\right\}. \tag*{(14)}

Here, Gx\mathcal{G}_x is the player set, which contains all individuals belonging to group xx. After all groups have generated their group predictions, the final collective prediction is obtained by aggregating all groups’ predictions:

Y^=sign⁡{∑x=1ngY^x}.(15)\hat{Y}=\operatorname{sign}\left\{\sum_{x=1}^{n_g}\hat{Y}_x\right\}. \tag*{(15)}

To ensure the voting can always generate a final prediction, we assume ngn_g is odd.

To describe the performance of a population’s prediction, we define the accuracy of the population’s prediction, given by

R=P(Y=Y^).(16)R=\mathbb{P}(Y=\hat{Y}). \tag*{(16)}

If R=1R=1, the prediction is perfectly accurate and always equals the real outcome YY.

Social learning

In a round of prediction, after all individuals have given their personal opinions, each individual obtains a payoff according to their performance. How to measure their performance (i.e., how to design a payoff structure) is the key question we study. In the following sections, we will introduce several kinds of payoff structures. But here we just use πA\pi_A to denote the payoff of player AA in a round of prediction. Individuals with lower payoffs tend to imitate the strategies of those with higher payoffs. In different rounds of prediction, the values of all factors are re-sampled, which also generates different outcomes. So, a player will obtain different payoffs in different rounds of prediction. We assume the timescale of imitation is much slower than that of the prediction, which means that before imitation takes place, each individual has predicted for many rounds and obtained a stationary payoff (i.e., the expected payoff over the distribution of the factors). The stationary payoff of individual AA is denoted fA=E(πA)f_A = \mathbb{E}(\pi_A).

Then, two individuals AA and BB are randomly selected. With probability 1−u1-u (u≪1u \ll1), individual AA imitates BB’s strategy with probability

eA→B=11+exp⁡(s(fA−fB)),(17)e_{A\to B} = \frac{1}{1+\exp\left(s(f_A-f_B)\right)}, \tag*{(17)}

where ss is the selection intensity, which controls to what degree the payoff can affect the evolutionary dynamics. And with probability uu, AA adopts a randomly-generated strategy (may not exist in the population), which represents innovation or mutation.

After the imitation, the population enters the next generation.

Single-layer voting

Payoff structures

We consider two reward structures, feedback and marginal feedback. The feedback structure was shown in prior work to evolve accurate collective prediction when the outcome Y∈RY \in\mathbb{R} is a linear function of the factors [38]:

Y=a0+a1X1+⋯+amXm.(18)Y = a_0 + a_1X_1 + \cdots+ a_mX_m. \tag*{(18)}

In each round of prediction, given individual AA’s prediction YAY_A, the collective prediction Y^\widehat{Y} and the real outcome YY, the feedback reward structure for player AA is

πA=YA(Y−Y^).(19)\pi_A = Y_A(Y-\widehat{Y}). \tag*{(19)}

Under this reward structure, when the collective prediction is too low (Y^<Y\widehat{Y}<Y) individuals who voiced larger personal opinions earn higher payoffs, and when it is too high (Y^>Y\widehat{Y}>Y) individuals who voiced smaller personal opinions earn higher payoffs. We propose a second reward structure, marginal feedback, which augments feedback with a pivotality indicator:

πA=YA(Y−Y^)1∣ϕ∣≤∣YA∣,(20)\pi_A = Y_A(Y-\widehat{Y})\mathbf{1}_{|\phi|\leq|Y_A|}, \tag*{(20)}

where

ϕ=Y1+Y2+⋯+YN(21)\phi= Y_1 + Y_2 + \cdots+ Y_N \tag*{(21)}

is the sum of all individuals’ opinions, and 1∣ϕ∣≤∣YA∣\mathbf{1}_{|\phi|\leq|Y_A|} is an indicator function equal to 1 if ∣ϕ∣≤∣YA∣|\phi|\leq|Y_A| and 0 otherwise. Marginal feedback is the product of the feedback term, YA(Y−Y^)Y_A(Y-\widehat{Y}), and the pivotality indicator, 1∣ϕ∣≤∣YA∣\mathbf{1}_{|\phi|\leq|Y_A|}. Note that 1∣ϕ∣≤∣YA∣=1ϕ(ϕ−YA)<0+1ϕ(ϕ+YA)<0\mathbf{1}_{|\phi|\leq|Y_A|} = \mathbf{1}_{\phi(\phi-Y_A)<0} + \mathbf{1}_{\phi(\phi+Y_A)<0} (except ϕ=0\phi=0). This implies that individuals obtain non-zero payoffs (assuming the feedback term YA(Y−Y^)Y_A(Y-\widehat{Y}) is non-zero) only when their opinion is decisive for the collective prediction. More specifically, 1ϕ(ϕ−YA)<0\mathbf{1}_{\phi(\phi-Y_A)<0} means individual AA obtains a non-zero payoff only when the collective prediction will be changed if AA’s opinion is excluded from the population. Similarly, 1ϕ(ϕ+YA)<0\mathbf{1}_{\phi(\phi+Y_A)<0} means individual AA obtains a non-zero payoff only when a new copy of individual AA’s opinion added into the population can change the collective prediction. So the marginal feedback can also be written as

πA=YA(Y−Y^)1ϕ(ϕ−YA)<0+YA(Y−Y^)1ϕ(ϕ+YA)<0,(22)\pi_A = Y_A(Y-\widehat{Y})\mathbf{1}_{\phi(\phi-Y_A)<0} + Y_A(Y-\widehat{Y})\mathbf{1}_{\phi(\phi+Y_A)<0}, \tag*{(22)}

The feedback term means individuals obtain non-zero payoffs only when the collective prediction is wrong (i.e., Y^≠Y\widehat{Y}\ne Y, which also means YY^=−1Y\widehat{Y}=-1). 1ϕ(ϕ−YA)<0\mathbf{1}_{\phi(\phi-Y_A)<0} implies that ϕYA>0\phi Y_A>0 (i.e., YY^A>0Y\widehat{Y}_A>0) should be satisfied. So if the first term of Eq. (22) is non-zero, it must be negative. Thus, this term represents punishments for those individuals whose personal prediction directly leads to a wrong collective prediction. Similarly, we can check that the second term of Eq. (22) represents the (positive) rewards for those individuals whose predictions can potentially save the collective prediction (a new copy of individual AA’s opinion can make the collective prediction accurate).

The opinion sum ϕ\phi ranges over both large positive and large negative values. Marginal feedback pays an individual only when their opinion is pivotal, that is when the positive and negative opinions in the population nearly balance, so that the collective prediction is sensitive to any single opinion. And note that the marginal term does not mean only one individual can obtain a non-zero payoff in the population. For example, when ϕ\phi is close to zero, nearly all individuals’ opinions are decisive and earn non-zero payoffs.

The payoffs given above describe the payoff in a single round of prediction. Since the factor values (x1,x2,⋯ ,xm)(x_1,x_2,\cdots,x_m) are re-sampled in different rounds, the expected payoffs for individual AA under the two reward structures are

fA=E(πA)=E[YA(Y−Y^)],(feedback)(23)f_A = \mathbb{E}(\pi_A) = \mathbb{E}\left[Y_A(Y-\widehat{Y})\right], \qquad\text{(feedback)} \tag*{(23)}
fA=E(πA)=E[YA(Y−Y^)1∣ϕ∣≤∣YA∣].(marginal feedback)(24)f_A = \mathbb{E}(\pi_A) = \mathbb{E}\left[Y_A(Y-\widehat{Y})\mathbf{1}_{|\phi|\leq|Y_A|}\right]. \qquad\text{(marginal feedback)} \tag*{(24)}

Continuous approximation of the voting function

In the voting population, the voting outcome is obtained through a sign function Y^=sign⁡{ϕ}\hat{Y} = \operatorname{sign}\{\phi\}, which is not continuous. Before we study the evolutionary dynamics, we will define a continuous approximation for the sign function first. We use the tanh function as a continuous approximation of the sign function (Figure S12). Specifically, the following function is considered

Figure S12. The approximation of the sign function and its derivative. (A) Here we use function tanh⁡(x/ϵ)\tanh(x/\epsilon) to approximate the sign function. Parameter ϵ\epsilon controls the characteristic length (bandwidth) of the transition region between −1-1 and 11 for tanh⁡(x/ϵ)\tanh(x/\epsilon). (B) For the function tanh⁡(x/ϵ)\tanh(x/\epsilon), we can compute its derivative. The derivative can be approximated by an indicator function 1∣x∣≤ϵ(x)1_{\lvert x\rvert\le\epsilon}(x), which equals 1 if ∣x∣≤ϵ\lvert x\rvert\le\epsilon and equals 0 otherwise.

S(x)=tanh⁡(x/ϵ)=21+exp⁡(−x/ϵ)−1,(25)S(x) = \tanh(x/\epsilon) = \frac{2}{1+\exp(-x/\epsilon)} - 1, \tag*{(25)}

to approximate sign⁡{x}\operatorname{sign}\{x\}. Here, ϵ\epsilon controls the characteristic length (bandwidth) when S(x)S(x) switches between 1 and −1-1. When x>∣ϵ∣x > |\epsilon|, we can approximate S(x)S(x) as 1 or −1-1. ∣x∣<ϵ|x| < \epsilon can be viewed as the transition region between S(x)=−1S(x) = -1 and S(x)=1S(x) = 1. Moreover, the derivative of S(x)S(x) is

S′(x)=1−(S(x))2ϵ,(26)S'(x) = \frac{1-(S(x))^2}{\epsilon}, \tag*{(26)}

which is close to 0 if ∣x∣≫ϵ|x| \gg\epsilon. So S′(x)S'(x) can be approximated by the indicator function 1ϵ1∣x∣≤ϵ\frac{1}{\epsilon}\mathbf{1}_{|x|\leq\epsilon}, which equals 1/ϵ1/\epsilon if ∣x∣≤ϵ|x| \leq\epsilon and equals 0 otherwise. When the characteristic length ϵ→0\epsilon\to0, the function S(x)S(x) converges to the sign function. So the smaller ϵ\epsilon we choose, the more accurate the approximation will be.

We assume that all individual opinions are of the same order of magnitude, denoted PP,

∣Y1∣∼∣Y2∣∼⋯∼∣YN∣∼P.(27)|Y_1| \sim|Y_2| \sim\cdots\sim|Y_N| \sim P. \tag*{(27)}

Since ϕ\phi is a sum of individual opinions (Eq. (21)), the smallest change in ϕ\phi produced by a single individual is of order PP. We may therefore approximate sign⁡{ϕ}\operatorname{sign}\{\phi\} by S(ϕ)S(\phi) with characteristic length PP, giving

S′(ϕ)≈1P1∣ϕ∣≤P≈1P1∣ϕ∣≤∣YA∣(28)S'(\phi) \approx\frac{1}{P}\mathbf{1}_{|\phi|\leq P} \approx\frac{1}{P}\mathbf{1}_{|\phi|\leq|Y_A|} \tag*{(28)}

In the following derivation, we will omit 1/P1/P since it does not affect the sign of the derivatives. Thus we have the relation

S′(ϕ)≈1∣ϕ∣≤P≈1∣ϕ∣≤∣YA∣.(29)S'(\phi) \approx\mathbf{1}_{|\phi|\leq P} \approx\mathbf{1}_{|\phi|\leq|Y_A|}. \tag*{(29)}

Note that this relation holds for an arbitrary individual AA.

Evolutionary dynamics

For large populations (N→∞N \to\infty), the evolutionary dynamics can be well approximated by the replicator equation. Assume that the expected payoff for strategy α=(eα,cα)\alpha= (e_\alpha,c_\alpha) is fαf_\alpha. So the prediction of individuals using strategy α\alpha is Yα=cαxeαY_\alpha= c_\alpha x^{e_\alpha}. Let pαp_\alpha denote the frequency of strategy α=(eα,cα)\alpha= (e_\alpha,c_\alpha) in the population. In the population, the strategy set is denoted by S\mathcal{S}. The replicator equation for the frequency of strategy α\alpha is

p˙α=pα(fα−fˉ),(30)\dot{p}_\alpha= p_\alpha(f_\alpha-\bar{f}), \tag*{(30)}

where pαp_\alpha is the frequency of strategy α\alpha in the population and fˉ\bar{f} is the average payoff of all strategies, given by

fˉ=∑αpαfα.(31)\bar{f} = \sum_\alpha p_\alpha f_\alpha. \tag*{(31)}

According to Eq. S17, if Y=Y^Y = \hat{Y} is always satisfied (R=1R = 1), all individuals (all strategies) have identical expected payoff zero, i.e.,

fα=0,for all α∈S.(32)f_\alpha= 0,\quad\text{for all }\alpha\in\mathcal{S}. \tag*{(32)}

Thus, this is an interior equilibrium state of the replicator dynamics Eq. (30). Then, we will show that in single-layer voting, this state is reachable and stable for linear prediction problems, but cannot be reached for non-linear prediction problems.

Linear prediction problem

If the prediction problem is linear (Eq. (10)), the collective prediction equals

Y^=sign⁡{∑1≤A≤NYA}=sign⁡{∑eA=0cA+∑eA=1cAx1+⋯+∑eA=mcAxm}.(33)\hat{Y}=\operatorname{sign}\left\{\sum_{1\leq A\leq N}Y_A\right\}=\operatorname{sign}\left\{\sum_{e_A=0}c_A+\sum_{e_A=1}c_Ax_1+\cdots+\sum_{e_A=m}c_Ax_m\right\}. \tag*{(33)}

Then we can define

Ki=1N∑eA=icA=∑α∈S,eα=ipαcα,(34)K_i=\frac{1}{N}\sum_{e_A=i}c_A=\sum_{\alpha\in S,e_\alpha=i}p_\alpha c_\alpha, \tag*{(34)}

which is the predicted coefficient of factor XiX_i (i.e., a prediction of aia_i). Then, the collective prediction (Eq. (13)) can also be written as

Y^=sign⁡{K0+K1x1+⋯+Kmxm}.(35)\hat{Y}=\operatorname{sign}\left\{K_0+K_1x_1+\cdots+K_mx_m\right\}. \tag*{(35)}

Thus, if

K0a0=K1a1=⋯=Kmam>0,(36)\frac{K_0}{a_0}=\frac{K_1}{a_1}=\cdots=\frac{K_m}{a_m}>0, \tag*{(36)}

the collective prediction is always equal to the real outcome (i.e., Y=Y^Y=\hat{Y} always holds and R=1R=1). For a large population size and enough diversity in strategies, this state (R=1R=1) is always achievable after many times of individuals’ strategy imitation (strategy imitation actually adjusts the frequency of strategies pαp_\alpha, thus also changes KiK_i). Then we show that this equilibrium of R=1R=1 is stable in the evolution process.

(A) Feedback payoff:

For the feedback reward structure (Eq. (19)), we define a Lyapunov function

V=E[(Y^−Y)ϕ].(37)V=\mathbb{E}\left[(\hat{Y}-Y)\phi\right]. \tag*{(37)}

Note that ϕ\phi has the same sign as Y^\hat{Y} since Y^=sign⁡{ϕ}\hat{Y}=\operatorname{sign}\{\phi\}. YY and Y^\hat{Y} are always 1 or −1-1. So if ϕ>0\phi>0, we have Y^=1\hat{Y}=1 and Y^−Y≥0\hat{Y}-Y\geq0. If ϕ<0\phi<0, we have Y^=−1\hat{Y}=-1 and Y^−Y≤0\hat{Y}-Y\leq0. This means VV is non-negative. When V=0V=0, Y^=Y\hat{Y}=Y is always satisfied, which corresponds to the perfect accuracy state (R=1R=1).

Furthermore, since ϕ=∣ϕ∣Y^\phi=\lvert\phi\rvert\hat{Y}, Eq. (37) can be written as

V=E[(Y^−Y)ϕ]=E[∣ϕ∣(Y^−Y)Y^]=E[∣ϕ∣2(Y^−Y)2].(38)V=\mathbb{E}\left[(\hat{Y}-Y)\phi\right]=\mathbb{E}\left[\lvert\phi\rvert(\hat{Y}-Y)\hat{Y}\right]=\mathbb{E}\left[\frac{\lvert\phi\rvert}{2}(\hat{Y}-Y)^2\right]. \tag*{(38)}

This means VV represents the weighted (with weights ∣ϕ∣\lvert\phi\rvert) total error of collective prediction. Then, we will show that although decreasing in VV does not imply a strictly monotonic increase in accuracy RR, it still means an increasing lower bound of accuracy RR. So in the long run, the accuracy will increase if VV is decreasing. When VV decreases to 0, we have R=1R=1. Note that in a population, we assume ∣ϕ∣\lvert\phi\rvert always has a positive lower bound (i.e., there is a positive number cc such that ∣ϕ∣≥c>0\lvert\phi\rvert\geq c>0, a.s.). For a special case, if all individuals’ opinions are binary (±1\pm1) (see Figure S1), we can choose c=1c=1. Thus we have

E[∣ϕ∣(Y^−Y)2]>cE[(Y^−Y)2].(39)\mathbb{E}\left[\lvert\phi\rvert(\hat{Y}-Y)^2\right]>c\mathbb{E}\left[(\hat{Y}-Y)^2\right]. \tag*{(39)}

Then, we can obtain the lower bound of RR:

R=P(Y=Y^)=1−14E[(Y^−Y)2]>1−14cE[∣ϕ∣(Y^−Y)2]=1−12cV,(40)R=\mathbb{P}(Y=\hat{Y})=1-\frac{1}{4}\mathbb{E}\left[(\hat{Y}-Y)^2\right]>1-\frac{1}{4c}\mathbb{E}\left[\lvert\phi\rvert(\hat{Y}-Y)^2\right]=1-\frac{1}{2c}V, \tag*{(40)}

So, when VV decreases, the lower bound of RR will increase, which implies RR will increase in the long run. Using Eq. (29), the time derivative of VV is

dVdt=E[d(Y^−Y)ϕdt]≈E[d(S(ϕ)−Y)ϕdt]=E[(S(ϕ)−Y)dϕdt]+E[ϕS′(ϕ)dϕdt]≈E[(Y^−Y)dϕdt]+E[ϕ1∣ϕ∣≤Pdϕdt].(41)\begin{aligned} \frac{dV}{dt} &=\mathbb{E}\left[\frac{d(\hat{Y}-Y)\phi}{dt}\right]\\ &\approx\mathbb{E}\left[\frac{d(S(\phi)-Y)\phi}{dt}\right]\\ &=\mathbb{E}\left[(S(\phi)-Y)\frac{d\phi}{dt}\right]+\mathbb{E}\left[\phi S'(\phi)\frac{d\phi}{dt}\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)\frac{d\phi}{dt}\right]+\mathbb{E}\left[\phi1_{\lvert\phi\rvert\leq P}\frac{d\phi}{dt}\right]. \tag*{(41)} \end{aligned}

Note that the second term has a nonzero value only when ∣ϕ∣|\phi| has the order of a single individual’s opinion (i.e., PP). However, ϕ\phi is the sum of all individuals’ opinions, so the probability that ∣ϕ∣≤P|\phi| \le P is very small. In most cases, the second term is zero. Thus, the second term can be ignored compared with the first term. Using fαf_\alpha to denote E(πα)\mathbb{E}(\pi_\alpha), we have

dVdt≈E[(Y^−Y)dϕdt]=E[(Y^−Y)(∑0≤i≤m∑α∈S,eα=ip˙αcαxi)]=E[(Y^−Y)(∑0≤i≤m∑α∈S,eα=ipαcαxi(fα−fˉ))](using Eq. S23)=∑0≤i≤m∑α∈S,eα=ipαE[Yα(Y^−Y)]fα−fˉ∑0≤i≤m∑α∈S,eα=ipαE[Yα(Y^−Y)](using Eq. S17a)=−∑0≤i≤m∑α∈S,eα=ipαfα2+(fˉ)2=−Var⁡(f).(42)\begin{aligned} \frac{\mathrm{d}V}{\mathrm{d}t} &\approx\mathbb{E}\left[(\hat{Y}-Y)\frac{\mathrm{d}\phi}{\mathrm{d}t}\right]\\ &=\mathbb{E}\left[(\hat{Y}-Y)\left(\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}\dot{p}_\alpha c_\alpha x_i\right)\right]\\ &=\mathbb{E}\left[(\hat{Y}-Y)\left(\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha c_\alpha x_i(f_\alpha-\bar{f})\right)\right] \quad\text{(using Eq. S23)}\\ &=\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha\mathbb{E}[Y_\alpha(\hat{Y}-Y)]f_\alpha-\bar{f}\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha\mathbb{E}[Y_\alpha(\hat{Y}-Y)] \quad\text{(using Eq. S17a)}\\ &=-\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha f_\alpha^2+(\bar{f})^2\\ &=-\operatorname{Var}(f). \tag*{(42)} \end{aligned}

Here Var⁡(f)\operatorname{Var}(f) means the variance of the expected payoffs of all individuals across the population, which is always positive unless all individuals have the same payoff. So VV will decrease consistently until all individuals have the same expected payoff. In the above analysis (Eq. (32)), we have already shown that if all individuals have the same expected payoff (equals 0), the collective prediction always equals the real outcome (i.e., R=1R=1). Thus, the feedback payoff can guarantee perfect prediction (R=1R=1) in single-layer voting.

(B) Marginal feedback payoff:

For the marginal feedback reward structure (Eq. S17b), we define another Lyapunov function

U=E[(Y−Y^)2]=4(1−R).(43)U=\mathbb{E}[(Y-\hat{Y})^2]=4(1-R). \tag*{(43)}

Similarly, we compute the derivative of UU:

dUdt=E[d(Y−Y^)2dt]≈E[2(Y^−Y)S′(ϕ)dϕdt]≈E[2(Y^−Y)1∣ϕ∣≤P(∑0≤i≤m∑α∈S,eα=ipαcαxi(fα−fˉ))](using Eq. S21)=2∑0≤i≤m∑α∈S,eα=ipαE[Yα(Y^−Y)1∣ϕ∣≤∣Yα∣]fα−2fˉ∑0≤i≤m∑α∈S,eα=ipαE[Yα(Y^−Y)1∣ϕ∣≤∣Yα∣](using Eq. S17b)=−2∑α∈S,eα=ipαfα2+2(fˉ)2=−2Var⁡(f).(44)\begin{aligned} \frac{\mathrm{d}U}{\mathrm{d}t} &=\mathbb{E}\left[\frac{\mathrm{d}(Y-\hat{Y})^2}{\mathrm{d}t}\right]\\ &\approx\mathbb{E}\left[2(\hat{Y}-Y)S'(\phi)\frac{\mathrm{d}\phi}{\mathrm{d}t}\right]\\ &\approx\mathbb{E}\left[2(\hat{Y}-Y)1_{|\phi|\le P}\left(\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha c_\alpha x_i(f_\alpha-\bar{f})\right)\right] \quad\text{(using Eq. S21)}\\ &=2\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha\mathbb{E}\left[Y_\alpha(\hat{Y}-Y)1_{|\phi|\le|Y_\alpha|}\right]f_\alpha\\ &\qquad-2\bar{f}\sum_{0\le i\le m}\sum_{\alpha\in S,e_\alpha=i}p_\alpha\mathbb{E}\left[Y_\alpha(\hat{Y}-Y)1_{|\phi|\le|Y_\alpha|}\right] \quad\text{(using Eq. S17b)}\\ &=-2\sum_{\alpha\in S,e_\alpha=i}p_\alpha f_\alpha^2+2(\bar{f})^2\\ &=-2\operatorname{Var}(f). \tag*{(44)} \end{aligned}

Still, under the marginal feedback reward structure, the accuracy of prediction increases monotonically until all individuals have the same payoff, where the accuracy equals R=1R=1.

Non-linear prediction problem

From Eq. (33), we can see that the collective prediction of the single-layer voting is always a linear combination of factors. Thus, for non-linear prediction problems, it can never obtain accurate predictions, no matter what reward structure is adopted.

Two-layer voting

Payoff structures

For convenience, we denote

ϕx=∑A∈GxYA,(45)\phi_x = \sum_{A \in\mathcal{G}_x} Y_A, \tag*{(45)}
ϕ=∑x=1ngY^x.(46)\phi= \sum_{x=1}^{n_g} \hat{Y}_x. \tag*{(46)}

Then we have Y^=sign⁡{ϕ}\hat{Y} = \operatorname{sign}\{\phi\} and Y^x=sign⁡{ϕx}\hat{Y}_x = \operatorname{sign}\{\phi_x\}.

Here, we still consider two kinds of reward structures: feedback and marginal feedback, which are given by

πA=YA(Y−Y^),(47)\pi_A = Y_A(Y-\hat{Y}), \tag*{(47)}

(feedback)

πA=YA(Y−Y^)1∣ϕg(A)∣≤∣YA∣,(48)\pi_A = Y_A(Y-\hat{Y})\mathbf{1}_{|\phi_{g(A)}|\leq|Y_A|}, \tag*{(48)}

(marginal feedback)

Here, g(A)g(A) represents the group index that individual AA belongs to. The marginal feedback payoff means an individual will obtain payoffs only when their opinion is decisive for the group to which they belong.

Evolutionary dynamics

(1) Marginal feedback payoff

Simulations confirm that feedback (Eq. S39a) fails to improve accuracy for non-linear prediction problems, whether under single-layer or two-layer voting (Figure 2 in the main text and Figure S4). We therefore focus on marginal feedback.

For two-layer voting in a non-linear prediction problem, perfect accuracy (R=1R = 1) may not be reachable, but we show that accuracy RR increases over evolution. Consider an individual AA in group xx who imitates the strategy of another individual BB in the same group. Because imitation is biased toward higher payoffs, we consider the case fA<fBf_A < f_B, which for marginal feedback means

E[YA(Y−Y^)1∣ϕ∣≤∣YA∣]<E[YB(Y−Y^)1∣ϕ∣≤∣YB∣].(49)\mathbb{E}\left[Y_A(Y-\hat{Y})\mathbf{1}_{|\phi|\leq|Y_A|}\right] < \mathbb{E}\left[Y_B(Y-\hat{Y})\mathbf{1}_{|\phi|\leq|Y_B|}\right]. \tag*{(49)}

We first consider the Lyapunov function V=E[(Y^−Y)ϕ]V = \mathbb{E}[(\hat{Y}-Y)\phi]. When individual AA imitates BB’s strategy (fA<fBf_A < f_B), we denote the change in VV as ΔV\Delta V. According to Eq. (42), we have ΔV≈E[(Y^−Y)Δϕ]\Delta V \approx\mathbb{E}[(\hat{Y}-Y)\Delta\phi]. Thus, we have

ΔV≈E[(Y^−Y)Δϕ]=E[(Y^−Y)(sign⁡{ϕx+YB−YA}−sign⁡{ϕx})]≈E[(Y^−Y)(S(ϕx+YB−YA)−S(ϕx))]=E[(Y^−Y)S′(ϕx)(YB−YA)]≈E[(Y^−Y)1∣ϕx∣≤P(YB−YA)](using xref‘Eq.S22‘)≈−E[YB(Y−Y^)1∣ϕ∣≤∣YB∣]+E[YA(Y−Y^)1∣ϕ∣≤∣YA∣].(50)\begin{aligned} \Delta V &\approx\mathbb{E}[(\hat{Y}-Y)\Delta\phi]\\ &=\mathbb{E}[(\hat{Y}-Y)(\operatorname{sign}\{\phi_x+Y_B-Y_A\}-\operatorname{sign}\{\phi_x\})]\\ &\approx\mathbb{E}[(\hat{Y}-Y)(S(\phi_x+Y_B-Y_A)-S(\phi_x))]\\ &=\mathbb{E}[(\hat{Y}-Y)S'(\phi_x)(Y_B-Y_A)]\\ &\approx\mathbb{E}[(\hat{Y}-Y)\mathbf{1}_{|\phi_x|\leq P(Y_B-Y_A)}] \quad\text{(using }{xref}`Eq. S22`\text{)}\\ &\approx-\mathbb{E}[Y_B(Y-\hat{Y})\mathbf{1}_{|\phi|\leq|Y_B|}]+\mathbb{E}[Y_A(Y-\hat{Y})\mathbf{1}_{|\phi|\leq|Y_A|}]. \tag*{(50)} \end{aligned}

According to Eq. (49), ΔV\Delta V is negative. Thus, in the long run, the prediction accuracy will increase (based on analysis in Eq. (40)).

(2) An alternative reward structure

Moreover, if we choose Lyapunov function U=E[(Y^−Y)2]U = \mathbb{E}[(\hat{Y}-Y)^2], the change in UU is

ΔU≈E[2(Y^−Y)S′(ϕ)Δϕ].(51)\Delta U \approx\mathbb{E}[2(\hat{Y}-Y)S'(\phi)\Delta\phi]. \tag*{(51)}

Since in the two-layer voting ϕ\phi is an integer (see Eq. (14) and Eq. S38b), similar to Eq. (29), S′(ϕ)S'(\phi) can be approximated by

S′(ϕ)≈1∣ϕ∣≤1(52)S'(\phi) \approx1_{|\phi|\le1} \tag*{(52)}

Then, we have

ΔU≈E[2(Y^−Y)1∣ϕ∣≤1Δϕ]≈E[(Y^−Y)1∣ϕ∣≤1(sign⁡{ϕx+YB−YA}−sign⁡{ϕx})]≈E[(Y^−Y)1∣ϕ∣≤1(S(ϕx+YB−YA)−S(ϕx))]≈E[(Y^−Y)1∣ϕ∣≤1S′(ϕx)(YB−YA)]≈E[(Y^−Y)1∣ϕ∣≤11∣ϕx∣≤∣YB−YA∣]≈E[YB(Y^−Y)1∣ϕ∣≤11∣ϕx∣≤∣YB∣]−E[YA(Y^−Y)1∣ϕ∣≤11∣ϕx∣≤∣YA∣].(53)\begin{aligned} \Delta U &\approx\mathbb{E}\left[2(\hat{Y}-Y)1_{|\phi|\le1}\Delta\phi\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)1_{|\phi|\le1}\left(\operatorname{sign}\{\phi x+Y_B-Y_A\}-\operatorname{sign}\{\phi x\}\right)\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)1_{|\phi|\le1}\left(S(\phi x+Y_B-Y_A)-S(\phi x)\right)\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)1_{|\phi|\le1}S'(\phi x)(Y_B-Y_A)\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)1_{|\phi|\le1}1_{|\phi x|\le|Y_B-Y_A|}\right]\\ &\approx\mathbb{E}\left[Y_B(\hat{Y}-Y)1_{|\phi|\le1}1_{|\phi x|\le|Y_B|}\right]-\mathbb{E}\left[Y_A(\hat{Y}-Y)1_{|\phi|\le1}1_{|\phi x|\le|Y_A|}\right]. \tag*{(53)} \end{aligned}

According to this, we can design another reward structure

πA=YA(Y−Y^)1∣ϕ∣≤11∣ϕg(A)∣≤∣YA∣.(54)\pi_A=Y_A(Y-\hat{Y})1_{|\phi|\le1}1_{|\phi_{g(A)}|\le|Y_A|}. \tag*{(54)}

This reward structure can also guarantee monotone increases in the accuracy of collective predictions. So we call Eq. S39b VV-induced marginal feedback, and call Eq. (54) UU-induced marginal feedback. We verify its effectiveness in Figure S11. However, this reward structure equals zero more often than Eq. S39b. Thus, all individuals obtain a much smaller amount of payoffs than the marginal feedback Eq. S39b, which makes the accuracy converge more slowly. So, in the main text, we still focus on Eq. S39b.

Multi-layer voting model

Population structure

The two preceding sections treat single-layer and two-layer voting. Here we give the general framework for LL layers, with all groups of equal size for simplicity. The first layer is the layer of individuals. Every n1n_1 individuals form a layer-1 group, which produces a binary verdict and is passed up as a single entity in the second layer; every n2n_2 such entities form a layer-2 group; and so on, until nLn_L entities in layer LL cast the final vote. We use the word “entity” to refer uniformly to individuals and groups: a layer-1 entity is an individual, and a layer-JJ entity (J≥2J \ge2) is a group at layer JJ that produces a binary verdict. Thus, the population size equals

N=n1n2⋯nL.(55)N = n_1 n_2 \cdots n_L. \tag*{(55)}

And the number of layer-JJ entities is NJ=nJnJ+1⋯nLN_J = n_J n_{J+1} \cdots n_L. For the two-layer model we proposed above, the two parameters ZZ and ngn_g correspond to n1n_1 and n2n_2 here.

We define a set GxJG_x^J (J≥2J \ge2), which contains the all layer-(J−1)(J-1) entities belonging to the layer-JJ entity xx. And we use Y^xJ\hat{Y}_x^J to represent the prediction of the layer-JJ entity xx. The number of elements in GxJG_x^J equals nJ−1n_{J-1}. The final collective prediction equals

Y^=sign⁡{∑1≤x≤nLY^xL}.(56)\hat{Y} = \operatorname{sign}\left\{\sum_{1 \le x \le n_L} \hat{Y}_x^L\right\}. \tag*{(56)}

And for a layer-JJ entity xx (3≤J≤L3 \le J \le L), its prediction equals

Y^xJ=sign⁡{∑y∈GxJY^yJ−1}.(57)\hat{Y}_x^J = \operatorname{sign}\left\{\sum_{y \in G_x^J} \hat{Y}_y^{J-1}\right\}. \tag*{(57)}

For a layer-2 entity, we have

Y^x2=sign⁡{∑A∈Gx2YA}(58)\hat{Y}_x^2 = \operatorname{sign}\left\{\sum_{A \in G_x^2} Y_A\right\} \tag*{(58)}

where YAY_A is the personal opinion of individual AA.

Payoff structures and evolutionary dynamics

As we mentioned above, there are NJN_J layer-JJ entities. We define a mapping y=gJ(x)y = g_J(x), which means entity xx belongs to layer-JJ entity yy. Note that the mapping is not only valid when xx is a layer-(J−1)(J-1) entity. It also valid when xx is in layer KK (K≤J−1K \le J-1). For example, if xx is a layer-2 entity, g4(x)=yg_4(x) = y means there exist a layer-3 entity zz such that xx belongs to zz (g3(x)=zg_3(x) = z) and zz belongs to yy (g4(z)=yg_4(z) = y).

In each generation, after sufficiently many rounds of prediction, each individual’s payoff is stationary. Then, an updating event takes place. In each generation, two individuals AA and BB belonging to the same layer-2 entity (i.e., layer-1 group) are selected. With probability 1−u1-u, AA will copy BB’s strategy with probability

eA→B=11+exp⁡[s(fA−fB)].(59)e_{A \to B} = \frac{1}{1+\exp[s(f_A-f_B)]}. \tag*{(59)}

And with probability uu, AA will innovate and adopt a new random strategy.

Still, we assume that when player AA imitates BB’s strategy, fA<fBf_A < f_B holds. We also have

gJ(A)=gJ(B),for 2≤J≤L.(60)g_J(A) = g_J(B), \quad\text{for } 2 \le J \le L. \tag*{(60)}

Then, we analyze how the accuracy of prediction changes. We first consider the Lyapunov function V=E[(Y^−Y)ϕ]V = \mathbb{E}[(\hat{Y}-Y)\phi]. We use ϕxJ\phi_x^J to denote the sum of the predictions of all layer-(J−1)(J-1) entities that belong to the layer-JJ entity xx. That is

ϕxJ={∑y∈GxJY^yJ−1if 3≤J≤L,∑A∈Gx2YAif J=2.(61)\phi_x^J = \begin{cases} \sum_{y\in\mathcal{G}_x^J}\hat{Y}_y^{J-1} & \text{if } 3\le J\le L,\\ \sum_{A\in\mathcal{G}_x^2}Y_A & \text{if } J=2. \end{cases} \tag*{(61)}

This means Y^xJ=sign⁡{ϕxJ}\hat{Y}_x^J=\operatorname{sign}\{\phi_x^J\}. And we use ϕ\phi to denote the sum of all layer-LL entities’ predictions (i.e., ϕ=∑1≤y≤nLY^yL\phi=\sum_{1\le y\le n_L}\hat{Y}_y^L). Then, the change of VV is

ΔV≈E[(Y^−Y)Δϕ]≈E[(Y^−Y)S′(ϕgL(A)L)S′(ϕgL−1(A)L−1)⋯S′(ϕg3(A)3)S′(ϕg2(A)2)(YB−YA)]≈E[(Y^−Y)1∣ϕgL(A)L∣≤11∣ϕgL−1(A)L−1∣≤1⋯1∣ϕg3(A)3∣≤11∣ϕg2(A)2∣≤P(YB−YA)]≈E[(Y^−Y)1∣ϕgL(B)L∣≤11∣ϕgL−1(B)L−1∣≤1⋯1∣ϕg3(B)3∣≤11∣ϕg2(B)2∣≤∣YB∣]−E[(Y^−Y)1∣ϕgL(A)L∣≤11∣ϕgL−1(A)L−1∣≤1⋯1∣ϕg3(A)3∣≤11∣ϕg2(A)2∣≤∣YA∣YA].(62)\begin{aligned} \Delta V &\approx\mathbb{E}\left[(\hat{Y}-Y)\Delta\phi\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)S'\left(\phi_{g_L(A)}^L\right)S'\left(\phi_{g_{L-1}(A)}^{L-1}\right)\cdots S'\left(\phi_{g_3(A)}^3\right)S'\left(\phi_{g_2(A)}^2\right)(Y_B-Y_A)\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)\mathbf{1}_{|\phi_{g_L(A)}^L|\leq1}\mathbf{1}_{|\phi_{g_{L-1}(A)}^{L-1}|\leq1}\cdots\mathbf{1}_{|\phi_{g_3(A)}^3|\leq1}\mathbf{1}_{|\phi_{g_2(A)}^2|\leq P}(Y_B-Y_A)\right]\\ &\approx\mathbb{E}\left[(\hat{Y}-Y)\mathbf{1}_{|\phi_{g_L(B)}^L|\leq1}\mathbf{1}_{|\phi_{g_{L-1}(B)}^{L-1}|\leq1}\cdots\mathbf{1}_{|\phi_{g_3(B)}^3|\leq1}\mathbf{1}_{|\phi_{g_2(B)}^2|\leq|Y_B|}\right]\\ &\quad-\mathbb{E}\left[(\hat{Y}-Y)\mathbf{1}_{|\phi_{g_L(A)}^L|\leq1}\mathbf{1}_{|\phi_{g_{L-1}(A)}^{L-1}|\leq1}\cdots\mathbf{1}_{|\phi_{g_3(A)}^3|\leq1}\mathbf{1}_{|\phi_{g_2(A)}^2|\leq|Y_A|}Y_A\right]. \tag*{(62)} \end{aligned}

So, if an individual’s (AA’s) payoff is given by

πA=YA(Y−Y^)1∣ϕgL(A)L∣≤11∣ϕgL−1(A)L−1∣≤1⋯1∣ϕg3(A)3∣≤11∣ϕg2(A)2∣≤∣YA∣.(63)\pi_A=Y_A(Y-\hat{Y})\mathbf{1}_{|\phi_{g_L(A)}^L|\leq1}\mathbf{1}_{|\phi_{g_{L-1}(A)}^{L-1}|\leq1}\cdots\mathbf{1}_{|\phi_{g_3(A)}^3|\leq1}\mathbf{1}_{|\phi_{g_2(A)}^2|\leq|Y_A|}. \tag*{(63)}

The Lyapunov function VV will decrease consistently (ΔV<0\Delta V<0), which guarantees an increase in accuracy in the long run.

This means an individual can receive a non-zero payoff (assume YA(Y^−Y)≠0Y_A(\hat{Y}-Y)\ne0) only when their opinion is pivotal at every layer above them, that is when every opinion is nearly balanced. We call this reward structure global marginal feedback; it contains L−1L-1 pivotality indicators. Dropping one or more of these indicators gives a local marginal feedback. Simulations confirm that global marginal feedback outperforms local marginal feedback (Figure 4 in the main text), as the derivation predicts.

If we choose Lyapunov function U=E[(Y−Y^)2]U=\mathbb{E}[(Y-\hat{Y})^2], we can derive another version of global marginal feedback reward structure. The analysis is totally similar and thus is omitted here. We directly give the other type of marginal feedback:

πA=YA(Y−Y^)1∣ϕ∣≤11∣ϕgL(A)L∣≤11∣ϕgL−1(A)L−1∣≤1⋯1∣ϕg3(A)3∣≤11∣ϕg2(A)2∣≤∣YA∣.(64)\pi_A=Y_A(Y-\hat{Y})\mathbf{1}_{|\phi|\leq1}\mathbf{1}_{|\phi_{g_L(A)}^L|\leq1}\mathbf{1}_{|\phi_{g_{L-1}(A)}^{L-1}|\leq1}\cdots\mathbf{1}_{|\phi_{g_3(A)}^3|\leq1}\mathbf{1}_{|\phi_{g_2(A)}^2|\leq|Y_A|}. \tag*{(64)}

We call Eq. (63) VV-induced global marginal feedback, and call Eq. (64) UU-induced global marginal feedback. Both kinds of global marginal feedback are effective in increasing the prediction accuracy (see Figure S11). However, VV-induced marginal feedback has one less indicator function. It means individuals can obtain non-zero payoffs more often, which also implies faster convergence in evolution. Thus, in the main text, we focus on VV-induced global marginal feedback.

Extensions

Diversity in different layers

Diversity is widely recognized as a key ingredient for the emergence of collective intelligence. Here we define the diversity in our model and examine how it arises across the levels of the hierarchy.

Because the population is hierarchically structured, the diversity of predictions arises at multiple levels and must be measured level by level. In a two-layer population it decomposes into two components: within-group diversity, the diversity of personal opinions inside each group, and inter-group diversity, the diversity of group verdicts. Predictions at both levels are random variables, induced by the random sampling of factors (both a personal opinion YAY_A and a group verdict Y^x\hat{Y}_x vary from round to round), so we characterize diversity by the joint entropy of these random variables.

Diversity in two-layer population

(1) Within-group diversity

Consider a group of ZZ individuals with opinions Y1,…,YZY_1,\ldots,Y_Z. Since each opinion YAY_A is bounded, we discretize it into λ\lambda bins and treat values in the same bin as identical, so that each opinion falls into one of λ\lambda categories, YA∈{1,2,…,λ}Y_A \in\{1,2,\ldots,\lambda\} (in simulations we take λ=2\lambda=2, matching the binary verdict at the group level). We track only the composition of opinions in the group, not the identities of the individuals who hold them: that is, how many individuals fall into each category. The joint entropy of group xx is defined as

Hx=−∑k1,…,kλp(k1,…,kλ)log⁡p(k1,…,kλ),(65)H^x=-\sum_{k_1,\ldots,k_\lambda}p(k_1,\ldots,k_\lambda)\log p(k_1,\ldots,k_\lambda), \tag*{(65)}

where kik_i denotes the number of opinions in category ii (k1+⋯+kλ=Zk_1+\cdots+k_\lambda=Z), and p(k1,…,kλ)p(k_1,\ldots,k_\lambda) denotes the probability of observing the opinion configuration (k1,…,kλ)(k_1,\ldots,k_\lambda) under random sampling of factors.

The average within-group entropy is

H1=1ng∑x=1ngHx.(66)H_1=\frac{1}{n_g}\sum_{x=1}^{n_g}H^x. \tag*{(66)}

(2) Inter-group diversity

Each group xx produces a binary prediction, so no discretization is required. The joint entropy across groups is

H2=−∑k+,k−p(k+,k−)log⁡p(k+,k−),(67)H_2=-\sum_{k^+,k^-}p(k^+,k^-)\log p(k^+,k^-), \tag*{(67)}

where k+k^+ denotes the number of groups giving prediction 1 and k−k^- denotes the number of groups predicting −1-1. p(k+,k−)p(k^+,k^-) is the probability of observing the prediction pattern (k+,k−)(k^+,k^-) under many repeated sampling of factors.

Diversity in multi-layer population

For multi-layer populations, the diversity can be computed in the same way as two-layer population. Only in the first layer (individual layer) is discretization required. In layers 2∼L2\sim L, the prediction is binary, so no discretization is required. The diversity in each group can be computed the same as Eq. (65) (for layer 1) and Eq. (67) (for layer 2∼L2\sim L).

When the number of groups is even

In all of the results above, we assume that the number of groups ngn_g (or n2,…,nLn_2,\ldots,n_L) is odd, such that a group can always yield a prediction.

Actually, our model can easily apply to even number of groups. We can stipulate that when there are equal number of groups predicting 1 and −1-1, the final prediction outcome is 1. That is

Y^={1if ϕ≥0,−1if ϕ<0.(68)\hat{Y} = \begin{cases} 1 & \text{if } \phi\ge0,\\ -1 & \text{if } \phi< 0. \end{cases} \tag*{(68)}

In two-layer voting, the marginal feedback reward structure (Eq. S39b) can still guarantee increases in the collective accuracy.

In multi-layer voting (L≥3L \ge3), the voting rule can be defined similarly, which is (for J≥3J \ge3)

Y^xJ={1if ϕxJ≥0,−1if ϕxJ<0.(69)\hat{Y}^{J}_{x} = \begin{cases} 1 & \text{if } \phi^{J}_{x} \ge0,\\ -1 & \text{if } \phi^{J}_{x} < 0. \end{cases} \tag*{(69)}

However, the reward structures (global marginal feedback) should be modified a little bit. Assume a group xx containing nxn_x entities, each of which gives only a binary prediction. If nxn_x is odd, the total prediction ϕx\phi_x can only equal odd numbers. The corresponding group prediction is

ϕx⋯−5−3−1135⋯Y^x⋯−1−1−1111⋯(70)\begin{array}{c|ccccccc} \phi_x & \cdots& -5 & -3 & -1 & 1 & 3 & 5 & \cdots\\ \hat{Y}_x & \cdots& -1 & -1 & -1 & 1 & 1 & 1 & \cdots \tag*{(70)} \end{array}

The indicator function 1∣ϕx∣≤11_{|\phi_x|\le1} implies individuals can obtain payoffs when ϕx=1\phi_x=1 (Y^x=1\hat{Y}_x=1) or ϕx=−1\phi_x=-1 (Y^x=−1\hat{Y}_x=-1). And in these two states, the group prediction Y^x\hat{Y}_x changes if any one of the elements in the group changes its prediction.

But when nxn_x is even, the total prediction ϕx\phi_x can only equal even numbers. The corresponding group prediction is

ϕx⋯−4−2024⋯Y^x⋯−1−1111⋯(71)\begin{array}{c|cccccc} \phi_x & \cdots& -4 & -2 & 0 & 2 & 4 & \cdots\\ \hat{Y}_x & \cdots& -1 & -1 & 1 & 1 & 1 & \cdots \tag*{(71)} \end{array}

The critical ϕx\phi_x is no longer −1-1 and 11, but −2-2 and 00. Thus, if we still use the indicator function 1∣ϕx∣≤11_{|\phi_x|\le1}, it equals 1 only when ϕx=0\phi_x=0 (Y^x=1\hat{Y}_x=1). So individuals can never obtain payoffs (i.e., incentives disappear) when the group prediction Y^x\hat{Y}_x is −1-1. So the indicator function should be modified to

1∣ϕx+1∣≤1.(72)1_{|\phi_x+1|\le1}. \tag*{(72)}

In this case, individuals can obtain payoff either when Y^x=1\hat{Y}_x=1 (ϕx=0\phi_x=0) or Y^x=−1\hat{Y}_x=-1 (ϕx=−2\phi_x=-2). So, the global marginal feedback (Eq. (63)) should be modified to

πA=YA(Y−Y^)1∣ϕgL(A)L+κL∣≤11∣ϕgL−1(A)L−1+κL−1∣≤1⋯1∣ϕg3(A)3+κ3∣≤11∣ϕg2(A)2∣≤∣YA′∣.(73)\pi_A=Y_A(Y-\hat{Y})1_{|\phi^L_{g_L(A)}+\kappa_L|\le1}1_{|\phi^{L-1}_{g_{L-1}(A)}+\kappa_{L-1}|\le1}\cdots1_{|\phi^3_{g_3(A)}+\kappa_3|\le1}1_{|\phi^2_{g_2(A)}|\le|Y'_A|}. \tag*{(73)}

where

κJ={0if nJ−1 is odd,1if nJ−1 is even.(74)\kappa_J= \begin{cases} 0 & \text{if } n_{J-1}\text{ is odd},\\ 1 & \text{if } n_{J-1}\text{ is even}. \end{cases} \tag*{(74)}

Supplementary Figures

References

  1. [1]Lucy M. Aplin, Damien R. Farine, Richard P. Mann, and Ben C. Sheldon. Individual-level personality influences social foraging and collective behaviour in wild birds. Proc. R. Soc. B, 281(1789):20141016, 2014. doi: 10.1098/rspb.2014.1016.
  2. [2]Joshua Becker, Ethan Porter, and Damon Centola. The wisdom of partisan crowds. Proc. Natl. Acad. Sci. U. S. A., 116(22):10717–10722, 2019. doi: 10.1073/pnas.1817195116.DOI
  3. [3]I. D. Couzin, C. C. Ioannou, G. Demirel, T. Gross, C. J. Torney, A. Hartnett, L. Conradt, S. A. Levin, and N. E. Leonard. Uninformed individuals promote democratic consensus in animal groups. Science, 334(6062):1578–1580, 2011.
  4. [4]Iain D. Couzin. Collective cognition in animal groups. Trends Cogn. Sci., 13(1):36–43, 2009.DOI
  5. [5]Francis Crick. The recent excitement about neural networks. Nature, 337:129–132, 1989.pubmed.ncbi.nlm.nih.gov/2911347
  6. [6]Francis Galton. Vox populi. Nature, 75(1949):450–451, 1907. doi: 10.1038/075450a0.DOI
  7. [7]Benjamin Golub and Matthew O. Jackson. Naïve learning in social networks and the wisdom of crowds. Am. Econ. J. Microecon., 2(1):112–149, 2010. doi: 10.1257/mic.2.1.112.
  8. [8]Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, Cambridge, MA, 2016.
  9. [9]Cars Hommes, Joep Sonnemans, Jan Tuinstra, and Henk Van De Velde. Coordination of expectations in asset pricing experiments. Rev. Financ. Stud., 18(3):955–980, 2005. doi: 10.1093/rfs/hhi003.
  10. [10]Lu Hong, Scott E. Page, and Maria Riolo. Incentives, information, and emergent collective accuracy. Managerial Dec. Econ., 33(5-6):323–334, 2012. doi: 10.1002/mde.2560.
  11. [11]Albert B. Kao and Iain D. Couzin. Decision accuracy in complex environments is often maximized by small group sizes. Proc. R. Soc. B, 281(1784):20133305, 2014.
  12. [12]Andrew J. King and Guy Cowlishaw. When to use social information: the advantage of large group size in individual decision making. Biol. Lett., 3(2):137–139, 2007. doi: 10.1098/rsbl.2007.0017.
  13. [13]Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.DOI
  14. [14]Timothy P. Lillicrap, Adam Santoro, Luke Marris, Colin J. Akerman, and Geoffrey Hinton. Backpropagation and the brain. Nature Reviews Neuroscience, 21(6):335–346, 2020.
  15. [15]Jan Lorenz, Heiko Rauhut, Frank Schweitzer, and Dirk Helbing. How social influence can undermine the wisdom of crowd effect. Proc. Natl. Acad. Sci. U. S. A., 108(22):9020–9025, 2011. doi: 10.1073/pnas.1008636108.
  16. [16]Irving Lorge, David Fox, Joel Davitz, and Marlin Brenner. A survey of studies contrasting the quality of group performance and individual performance, 1920-1957. Psychol. Bull., 55(6):337–372, 1958. doi: 10.1037/h0042344.
  17. [17]Bernard Manin. The Principles of Representative Government. Cambridge University Press, Cambridge, UK, 1997.
  18. [18]Richard P. Mann. Optimising collective accuracy among rational individuals in sequential decision-making with competition. Collective Intelligence, 2(2):263391372311764, 2023. doi: 10.1177/26339137231176481.
  19. [19]Richard P. Mann and Dirk Helbing. Optimal incentives for collective intelligence. Proc. Natl. Acad. Sci. U. S. A., 114(20):5077–5082, 2017. doi: 10.1073/pnas.1618722114.DOI
  20. [20]Marvin Minsky. Steps toward artificial intelligence. Proceedings of the IRE, 49(1):8–30, 1961.DOI
  21. [21]Marvin Minsky and Seymour Papert. Perceptrons: An Introduction to Computational Geometry. MIT Press, Cambridge, MA, 1969.
  22. [22]Franklin G. Mixon, Jr., Chena C. Crocker, and H. Tyrone Black. Pivotal power brokers: Theory and evidence on political fundraising. Public Choice, 123(3):477–493, 2005.
  23. [23]Joaquin Navajas, Tamara Niella, Gerry Garbulsky, Bahador Bahrami, and Mariano Sigman. Aggregated knowledge from a small number of debaters outperforms the wisdom of large crowds. Nat. Hum. Behav., 2(2):126–132, 2018. doi: 10.1038/s41562-017-0273-4.
  24. [24]Martin A. Nowak. Evolutionary Dynamics: Exploring the Equations of Life. Harvard University Press, Cambridge, MA, 2006.DOI
  25. [25]Scott E. Page. The Difference: How the Power of Diversity Creates Better Groups, Firms, Schools, and Societies. Princeton University Press, Princeton, NJ, 2007.
  26. [26]Raghuram G. Rajan and Julie Wulf. The flattening firm: Evidence from panel data on the changing nature of corporate hierarchies. The Review of Economics and Statistics, 88(4):759–773, 2006.
  27. [27]David E. Rumelhart, Geoffrey E. Hinton, and Ronald J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533–536, 1986. doi: 10.1038/323533a0.DOI
  28. [28]Jürgen Schmidhuber. Deep learning in neural networks: An overview. Neural Networks, 61:85–117, 2015.
  29. [29]Peter Schuster and Karl Sigmund. Replicator dynamics. J. Theor. Biol., 100(3):533–538, 1983.DOI
  30. [30]Lloyd S. Shapley and Martin Shubik. A method for evaluating the distribution of power in a committee system. American Political Science Review, 48(3):787–792, 1954.
  31. [31]Daron R. Shaw. The methods behind the madness: Presidential electoral college strategies, 1988–1996. The Journal of Politics, 61(4):893–913, 1999.DOI
  32. [32]J. Maynard Smith. Evolution and the Theory of Games. In Did Darwin Get It Right?, pages 202–215. Springer, Boston, MA, 1988. doi: 10.1007/978-1-4684-7862-4_22.DOI
  33. [34]James Surowiecki. The Wisdom of Crowds. Random House, New York, 2005.
  34. [35]Richard S. Sutton. Temporal Credit Assignment in Reinforcement Learning. PhD thesis, University of Massachusetts Amherst, 1984.
  35. [36]Richard S. Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, volume 12, pages 1057–1063. 2000.
  36. [37]Peter D. Taylor and Leo B. Jonker. Evolutionary stable strategies and game dynamics. Mathematical biosciences, 40(1-2):145–156, 1978.DOI
  37. [38]Guocheng Wang, Qi Su, Long Wang, and Joshua B. Plotkin. Individual incentives that promote collective intelligence. Proc. Natl. Acad. Sci. U. S. A., 122(51):e2516535122, 2025. doi: 10.1073/pnas.2516535122.DOI
  38. [39]Paul J. Werbos. Beyond regression: New tools for prediction and analysis in the behavioural sciences. PhD thesis, Harvard University, 1974.
  39. [40]James C. R. Whittington and Rafal Bogacz. Theories of error back-propagation in the brain. Trends Cogn. Sci., 23(3):235–250, 2019.DOI
  40. [41]Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3–4):229–256, 1992.
  41. [42]Anita Williams Woolley, Christopher F. Chabris, Alex Pentland, Nada Hashmi, and Thomas W. Malone. Evidence for a collective intelligence factor in the performance of human groups. Science, 330(6004):686–688, 2010. doi: 10.1126/science.1193147.DOI
  42. [43]Bin Wu, Philipp M. Altrock, Long Wang, and Arne Traulsen. Universality of weak selection. Phys. Rev. E, 82(4):046106, 2010. doi: 10.1103/PhysRevE.82.046106.DOI

Paper details

vlnc:W_ybcgu8dg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents