Manuscript Offprint
arXiv:2610.05676An evolutionary origin of collective decision making in humans and machines
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Guocheng Wang , Qi Su , Joshua B. Plotkin
Department of Biology, University of Pennsylvania, Philadelphia, PA 19104, USA, School of Automation and Intelligent Sensing, Shanghai Jiao Tong University, Shanghai 200240, China, Meiji Institute for Advanced Study of Mathematical Sciences, Meiji University, Nakano, Tokyo 164-8525, Japan
Corresponding author. Email: jplotkin@sas.upenn.edu
October 4, 2026
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 (Galton 1907; Surowiecki 2005; Woolley et al. 2010; Hommes et al. 2005; Lorge et al. 1958; Aplin et al. 2014; King and Cowlishaw 2007; Couzin 2009), 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 (Golub and Jackson 2010; Hong et al. 2012; Mann and Helbing 2017; Mann 2023; Wang et al. 2025). The central challenge is that strategy imitation, the process by which behaviors spread through populations (Taylor and Jonker 1978; Schuster and Sigmund 1983; Smith 1988; Nowak 2006), tends to erode the diversity of opinions that collective accuracy requires (Lorenz et al. 2011; Surowiecki 2005). 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 (Wang et al. 2025). 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 (Manin 1997; Strøm 2000; Rajan and Wulf 2006). Within such institutions, certain individuals and groups attract disproportionate attention and rewards: swing voters in battleground states, pivotal senators on a closely divided floor (Shaw 1999; Mixon et al. 2005). The empirical pattern of layered aggregation, and the importance of pivotal actors within it, has been documented at length (Shapley and Shubik 1954), 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 (Rumelhart et al. 1986; LeCun et al. 2015; Goodfellow et al. 2016). Multilayer perceptrons and their descendants achieve expressive power by composing non-linear thresholding across layers, with credit assigned to each unit by backpropa-gation (Rumelhart et al. 1986). 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 (Lillicrap et al. 2020; Whittington and Bogacz 2019; Crick 1989).
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 individuals who must repeatedly predict a binary outcome, , that depends in a complicated way on many factors (Fig. 1A). The outcome is determined by real-valued random factors, , through a fixed but unknown true classification rule
where is any continuous function of the factors, and when is positive and when is negative. The values of the factors are drawn afresh in each round of prediction, so the outcome varies from round to round (Fig. 1A). When is linear, , the outcome depends linearly on the factors; we call this a linear prediction problem. When is non-linear, we call it a non-linear prediction problem. A canonical example is the product , which is a generalized exclusive-or (XOR) problem, where the outcome flips each time a factor crosses its threshold .
Each individual has only limited information about this prediction problem. In a given round, individual A observes the value of a single factor, (whose value is ), and issues a personal opinion about the outcome, (Fig. 1B). The individual's strategy is the pair : the index of the factor they choose to observe, and a real coefficient that encodes their believed relationship between that factor and the outcome. The sign of 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 , so that the strategy produces the constant opinion . 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 (Figs. S1 and S2).
where denotes the set of individuals belonging to group , and is the total opinion within group ; and then the group verdicts are aggregated with each other to produce the population’s final verdict:
(Fig. 1D). We take the number of groups to be odd, so that every vote resolves; the case recovers single-layer voting. Later we extend this two-layer construction to any number of layers.
Individuals do not know the true classification rule , 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 A receives a payoff that depends on their personal opinion, and over many rounds this payoff averages to a stationary value across the random draws of the factors. The form of the payoff scheme governs the population's evolution, and we compare several such reward schemes
Prediction problem
B
Individual opinion


C
Voting
D
Collective prediction

Two-layer voting

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 Y is determined by m factors through a fixed but unknown true classification rule . The factors are redrawn at random in each round, so the outcome varies over time. (B) Each individual observes a single factor and issues an opinion , encoded by their strategy : which factor to observe, , and the believed correlation between that factor and the outcome, . (C) Under single-layer voting the collective prediction is the sign of the total opinion, . (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.
below. Strategies spread by payoff-biased imitation on a slow timescale: a random individual A compares its stationary payoff with a random member B of the same group and adopts B's strategy with probability , where the selection intensity sets how strongly payoffs bias imitation (Wu et al. 2010). With a small probability u the individual instead innovates, drawing a new random strategy. We measure the performance of the whole population by its accuracy, , the long-run fraction of rounds in which the collective prediction is correct; perfect prediction corresponds to , and random guessing to .
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, , 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 (Wang et al. 2025; Mann and Helbing 2017). A reward scheme that does succeed for linear prediction problems is feedback (Wang et al. 2025),
which pays individual A in proportion to the product of their own opinion, , and the collective error, . When the collective prediction is too low ( ), individuals whose opinions were larger earn more; when it is too high ( ), 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 ( ; Fig. 2A).
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 , with . This collective opinion is simply a linear function of the factors, whose coefficients are the population's average beliefs about each factor. Imitation and innovation adjust the coefficients , 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 Fig. 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 1969). On the generalized XOR problem, for example, single-layer voting in an evolving population with feedback payoffs never improves collective accuracy beyond random chance, (Fig. 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 (Fig. 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.
We therefore introduce a reward scheme suited to layered voting, which we call marginal feedback:
where is the group containing individual , and the indicator equals one only when 's opinion is pivotal within their group — that is, when the within-group opinion sum is small enough that '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 (Fig. 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 and have the same sign), marginal feedback rewards (or penalizes) the individual for the verdict their opinion currently determines; in the second case (when and 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 (Fig. S6), so we use marginal feedback (Eq. 5) throughout.
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 (Fig. 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 (Fig. 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 (Fig. S4). The difficulty of the task grows with the number of factors: in the XOR problem m sets both the number of factors and the degree of the polynomial, so accuracy declines as m increases (Fig. 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, , which is the collective prediction error weighted by the margin of the final vote. Every within-group imitation that raises an individual's marginal-feedback payoff lowers V, and a lower value of V 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 V does not continue without limit, however, because the number of groups and their size limit the accuracy a population can attain (Fig. 3).
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 predic-
Single layer + Feedback
Two layers + Marginal feedback
A
Linear problem
B
Non-linear problem

C
Linear problem
D
Non-linear problem
E
G

F
H
J
L
-1
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 R 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, 100 factors and the non-linear XOR problem for m = 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 m grows, because m 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 (E and F), a product boundary (G and H), a parabola (I and J), and a circle (K and L), reaching accuracies of 92–97%. Parameters: (so that is close to ), (C to L), , (uniform distribution), , , .
tion non-linear and slightly lowers accuracy (Fig. 3A). For a non-linear task, such as the XOR problem, collective accuracy is maximized at an intermediate number of groups (Fig. 3B): too few groups and too many groups both fail, for different reasons. At one extreme, a single group of large size ( , ) 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 , ) 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 (Hong et al. 2012; Lorenz et al. 2011; Page 2007). 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 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
Linear problem
A
Non-linear problem
B

Diversity
C
Number of groups,
Number of groups,
Figure 3 An intermediate number of groups predicts best, by balancing two kinds of diversity. For a fixed population size ( ) we vary the number of groups 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 , 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: , , , , , .
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 (Fig. 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 (Figs. S7 and S8); a larger population improves its predictions mainly by forming new groups rather than by enlarging existing ones.
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 (Kao and Couzin 2014). 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 (Navajas et al. 2018).
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 L-layer population, individuals form each first-layer group, first-layer groups form each second-layer group, and so on, with individuals in total (Fig. 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.
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 provably 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 A in first-layer group x and second-layer group y earns payoff
where and are the opinion sums in groups and : the first indicator asks whether '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 becomes because is binary; Fig. 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

B
Global vs Local marginal feedback
C
Accuracy for different population structures (m = 4)
D
Accuracy for different problem complexity

E
Maximum accuracy (for m = 6)
Figure 4 Deeper hierarchies solve more complex problems under global marginal feedback. (A) A three-layer population, illustrated with first-layer groups of size , second-layer groups of size , and a third-layer group of size . The population size is . Individual A lies in first-layer group (opinion sum ), and lies in second-layer group (verdict sum ). Under global marginal feedback A is rewarded only when their opinion is pivotal at both layers, that is when and . (B) On the XOR problem ( ), 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 , for three-layer populations with , 11 and 25 (fixed ). 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 , the best three-layer population ( and ) predicts more accurately than the best two-layer population ( ). (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 ( ). Parameters: , (B and C), (E), , , , , , and (B and D).
highest accuracy; local marginal feedback does substantially worse; and plain feedback performs no better than random chance (Fig. 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 L 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 (Fig. 4C); and across a range of problem complexities the best three-layer population predicts more accurately than the best two-layer population (Fig. 4D). Searching over all grouping structures, the maximum achievable accuracy grows with the number of layers (Fig. 4E). This is because an L-layer population is a special case of an -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 (Fig. 4C).
More layers of voting also make the reward signal sparser. Global marginal feedback in an L-layer population contains L - 1 pivotality indicators, so the more layers a population has, the less often any given indi-vidual 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 (Fig. S9).
Discussion
The study of collective intelligence has mostly asked what forms of aggregation yield accurate collective judgments, and when (Galton 1907; Surowiecki 2005; Hong et al. 2012; Golub and Jackson 2010; Mann and Helbing 2017; Mann 2023; Couzin et al. 2011; Navajas et al. 2018). 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 (Mann and Helbing 2017; Wang et al. 2025). 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 nonlinearity. And the recursive aggregation across layers is the same as the forward pass in a deep network (Goodfellow et al. 2016). 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 (Williams 1992; Sutton 1984; Minsky 1961). Backpropagation in machine learning computes this gradient analytically by repeated application of the chain rule (Werbos 1974; Rumelhart et al. 1986; Schmidhuber 2015); our population computes it implicitly, by withholding reward from individuals whose change of opinion would not change the verdict at some intermediate layer (Williams 1992; Sutton et al. 2000). 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 (Figs. S1 and S2); when groups differ in size (Fig. S3); across a range of innovation rates (Fig. S10); and as the population grows (Fig. S7). Marginal feedback can be split into a reward for present decisiveness and a reward for potential decisiveness, and either component alone suffices (Fig. S6); an alternative form of marginal feedback, derived from a different Lyapunov function, reaches the same accuracy (Fig. S11).
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. 2019)). 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.
References
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 Biol. Sci., 281(1789):20141016, 2014. doi:10.1098/rspb.2014.1016.
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.
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.
Iain D. Couzin. Collective cognition in animal groups. Trends Cogn. Sci., 13(1):36–43, 2009.
Francis Crick. The recent excitement about neural networks. Nature, 337:129–132, 1989.
Francis Galton. Vox populi. Nature, 75(1949):450–451, 1907. doi: 10.1038/075450a0.
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.
Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, Cambridge, MA, 2016.
Cars Hommes, Joep Sonnemans, Jan Tuinstra, and Henk Van De Velden. Coordination of expectations in asset pricing experiments. Rev. Financ. Stud., 18(3):955–980, 2005. doi:10.1093/rfs/hhi003.
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.
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.
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.
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
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.
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.
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.
Bernard Manin. The Principles of Representative Government. Cambridge University Press, Cambridge, UK, 1997.
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.
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.
Marvin Minsky. Steps toward artificial intelligence. Proceedings of the IRE, 49(1):8–30, 1961.
Marvin Minsky and Seymour Papert. Perceptrons: An Introduction to Computational Geometry. MIT Press, Cambridge, MA, 1969.
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.
Joaquin Navajas, Tamara Niella, Gerry Garbulsky, Bahador Bahrami, and Mariano Sigman. Aggregated knowledge from a small number of debates outperforms the wisdom of large crowds. Nat. Hum. Behav., 2(2):126–132, 2018. doi:10.1038/s41562-017-0273-4.
Martin A. Nowak. Evolutionary Dynamics: Exploring the Equations of Life. Harvard University Press, Cambridge, MA, 2006.
Scott E. Page. The Difference: How the Power of Diversity Creates Better Groups, Firms, Schools, and Societies. Princeton University Press, Princeton, NJ, 2007.
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.
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.
Jürgen Schmidhuber. Deep learning in neural networks: An overview. Neural Networks, 61:85–117, 2015.
Peter Schuster and Karl Sigmund. Replicator dynamics. J. Theor. Biol., 100(3):533–538, 1983.
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.
Daron R. Shaw. The methods behind the madness: Presidential electoral college strategies, 1988–1996. The Journal of Politics, 61(4):893–913, 1999.
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.
Kaare Strøm. Delegation and accountability in parliamentary democracies. European Journal of Political Research, 37(3): 261–290, 2000.
James Surowiecki. The Wisdom of Crowds. Random House, New York, 2005.
Richard S. Sutton. Temporal Credit Assignment in Reinforcement Learning. PhD thesis, University of Massachusetts Amherst, 1984.
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.
Peter D. Taylor and Leo B. Jonker. Evolutionary stable strategies and game dynamics. Mathematical biosciences, 40(1-2): 145–156, 1978.
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.
Paul J. Werbos. Beyond regression: New tools for prediction and analysis in the behavioral sciences. PhD thesis, Harvard University, 1974.
James C. R. Whittington and Rafal Bogacz. Theories of error back-propagation in the brain. Trends Cogn. Sci., 23(3):235–250, 2019.
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3–4):229–256, 1992.
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.
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.
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*
*Corresponding author. Email: jplotkin@sas.upenn.edu
This PDF file includes:
Materials and Methods
Supplementary Text
Figs. S1 to S12
S1
Materials and Methods
Continuous approximation of the vote
The collective prediction is a discontinuous function of the opinions, , which we smooth for analysis by , whose bandwidth sets the width of the transition between -1 and +1. In the voting system, the smallest change in the opinion sum is on the order of a single opinion (e.g., ), thus we can assume is of the same order as individuals' opinions (i.e., ). Its derivative is concentrated where . So we approximate 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 recovers the majority vote rule.
Evolutionary dynamics and Lyapunov functions
For a large population the frequency of strategy evolves by the replicator equation . Here is the stationary payoff of strategy , that is its per-round payoff averaged over random draws of the factors; and is the mean stationary payoff in the population. We also write for the stationary payoff to a strategy carried by individual A. When every strategy earns the same stationary payoff, the evolutionary dynamics are in equilibrium.
We propose a Lyapunov function, , which represents the prediction error weighted by the vote margin . Assuming that the vote margin is bounded away from zero, i.e., , we have . Since , the prediction accuracy satisfies . Therefore, as the Lyapunov function decreases, the lower bound of collective accuracy increases. If converges to zero, the collective prediction becomes perfectly accurate, i.e., .
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 V is , where is the variance in stationary payoff across the population. So V will decrease monotonically until all individuals obtain the same stationary payoff, which also implies an increasing lower bound of R until R = 1.
Single-layer voting is restricted to linear classification boundaries: the collective prediction is with , so it cannot fit a non-linear classification boundary under any payoff scheme. For two-layer voting we again track , now with the opinion sum at the top layer . When individual imitates a group-mate with higher stationary payoff, the induced change in is
Under marginal feedback the expectation can be approximated by the difference in stationary payoff between the two individuals, . Imitation is biased toward higher stationary payoff, so the payoff difference has negative expectation for imitation events, and the Lyapunov function again decreases over time. A lower value of raises the lower bound on the collective accuracy . 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 indicators in Eq. 6 (supplementary text sections S3 and S4).
Diversity
We quantify diversity at two levels by the joint entropy of predictions. For a group of Z individuals, each opinion is discretized into bins ; in our simulations, . Let denote the composition counts with , and let be its probability under repeated sampling of factors. The within-group entropy is
S2
The average within-group entropy is the mean of this entropy over all groups. For inter-group diversity, each group outputs a binary prediction ( ). Let and be the numbers of groups predicting +1 and -1, respectively, and let ) be the probability of observing that prediction pattern. The joint entropy across groups is
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 u. Accuracy for a given strategy composition is the fraction of correct collective predictions in the many rounds of prediction.
S3
Supplementary Text
Contents
S1 Model description S4
S1.1 Population prediction S4
S1.2 Social learning S6
S2 Single-layer voting S7
S2.1 Payoff structures S7
S2.2 Continuous approximation of the voting function S8
S2.3 Evolutionary dynamics S8
S3 Two-layer voting S11
S3.1 Payoff structures S11
S3.2 Evolutionary dynamics S11
S4 Multi-layer voting model S13
S4.1 Population structure S13
S4.2 Payoff structures and evolutionary dynamics S13
S5 Extensions S15
S5.1 Diversity in different layers S15
S5.1.1 Diversity in two-layer population S15
S5.1.2 Diversity in multi-layer population S15
S5.2 When the number of groups is even S15
S1 Model description
S1.1 Population prediction
Consider a prediction problem in which a binary outcome Y depends on m factors. The relation can be expressed by
where are factors whose values, denoted , are sampled at random in each round from an -dimensional distribution with finite variance; the factors may be uncorrelated or correlated. The outcome is when is positive and when is negative.
If f is linear, i.e.,
this represents a linear classification problem, and the factor values giving outcome 1 are separated from those giving -1 by a flat boundary — a line when , a flat surface in higher dimensions — along . We call this a linear prediction problem. If is non-linear, the boundary between the two outcomes is curved, and we call it a non-linear prediction problem.
Consider a group with 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 's opinion is and the collective prediction is . A natural and widely used way to aggregate all individuals' opinions in reality is voting. It means the collective prediction is obtained by
S4
Note that in this model, individuals' opinions are not necessarily equal to -1 or 1. It can be any real number, where the sign of represents the individual's belief that the outcome Y is more likely to be 1 (positive ) or -1 (negative ), and the absolute value of 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 .
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 factors and give their personal opinion. Specifically, individual can choose to observe factor and obtains its value . They can estimate how is correlated with . Then, individual gives their personal opinion . Here, means individual believes is positively correlated with , and implies they believe and are negatively correlated. The absolute value of (i.e., ) 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 (for individual ). Formally, we can assume that there is a virtual factor , whose value always equals 1. Then the opinion of a stereotypical individual is . Thus, an individual 's strategy can be expressed by a 2-tuple , where is the index of the factor they choose to observe and is the believed strength of correlation of and . Player 's personal opinion is
Given all individuals' opinions, the collective prediction is generated by Eq. S5.
The model introduced above is a baseline model. It describes how a group of people generates a collective prediction of the outcome Y. Based on this baseline model, we can propose models for single-layer voting and two-layer voting.
(1) Single-layer voting
For a population with N individuals, a single-layer voting structure is the same as the baseline model, just by assuming all individuals are in one group (i.e., ). So, the collective prediction equals
(2) Two-layer voting
In a two-layer voting population, we assume that the population (with size N) is divided into groups. For simplicity, we assume that each group has the same group size Z. So we have the relation . But our model can also apply to populations with unequal group sizes (see Fig. S3).
In this case, within each group, all individuals' opinions will be aggregated within each group to generate a group prediction first, like Eq. S5. For example, in group x, the group prediction is obtained by
Here, is the player set, which contains all individuals belonging to group . After all groups have generated their group predictions, the final collective prediction is obtained by aggregating all groups' predictions:
To ensure the voting can always generate a final prediction, we assume is odd.
To describe the performance of a population’s prediction, we define the accuracy of the population’s prediction, given by
If R = 1, the prediction is perfectly accurate and always equals the real outcome Y.
S5
S1.2 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 to denote the payoff of player A 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 A is denoted .
Then, two individuals A and B are randomly selected. With probability ( ), individual A imitates B's strategy with probability
where s is the selection intensity, which controls to what degree the payoff can affect the evolutionary dynamics. And with probability u, A 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.
S6
S2 Single-layer voting
S2.1 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 is a linear function of the factors (Wang et al. 2025):
In each round of prediction, given individual s prediction , the collective prediction and the real outcome , the feedback reward structure for player is
Under this reward structure, when the collective prediction is too low ( ) individuals who voiced larger personal opinions earn higher payoffs, and when it is too high ( ) individuals who voiced smaller personal opinions earn higher payoffs. We propose a second reward structure, marginal feedback, which augments feedback with a pivotality indicator:
where
is the sum of all individuals' opinions, and is an indicator function equal to 1 if and 0 otherwise. Marginal feedback is the product of the feedback term, , and the pivotality indicator, . Note that (except ). This implies that individuals obtain non-zero payoffs (assuming the feedback term is non-zero) only when their opinion is decisive for the collective prediction. More specifically, means individual A obtains a non-zero payoff only when the collective prediction will be changed if s opinion is excluded from the population. Similarly, means individual A obtains a non-zero payoff only when a new copy of individual s opinion added into the population can change the collective prediction. So the marginal feedback can also be written as
The feedback term means individuals obtain non-zero payoffs only when the collective prediction is wrong (i.e., , which also means ). implies that (i.e., ) should be satisfied. So if the first term of Eq. S16 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. S16 represents the (positive) rewards for those individuals whose predictions can potentially save the collective prediction (a new copy of individual s opinion can make the collective prediction accurate).
The opinion sum 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 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 are re-sampled in different rounds, the expected payoffs for individual A under the two reward structures are
S7
S2.2 Continuous approximation of the voting function
In the voting population, the voting outcome is obtained through a sign function , 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 (Fig. S12). Specifically, the following function is considered
to approximate sign . Here, controls the characteristic length (bandwidth) when switches between 1 and . When , we can approximate as 1 or . can be viewed as the transition region between and . Moreover, the derivative of is
which is close to 0 if . So can be approximated by the indicator function , which equals if and equals 0 otherwise. When the characteristic length , the function converges to the sign function. So the smaller we choose, the more accurate the approximation will be.
We assume that all individual opinions are of the same order of magnitude, denoted P,
Since is a sum of individual opinions (Eq. S15), the smallest change in produced by a single individual is of order . We may therefore approximate sign by with characteristic length , giving
In the following derivation, we will omit 1/P since it does not affect the sign of the derivatives. Thus we have the relation
Note that this relation holds for an arbitrary individual A.
S2.3 Evolutionary dynamics
For large populations , the evolutionary dynamics can be well approximated by the replicator equation. Assume that the expected payoff for strategy is . So the prediction of individuals using strategy is . Let denote the frequency of strategy in the population. In the population, the strategy set is denoted by S. The replicator equation for the frequency of strategy is
where is the frequency of strategy in the population and is the average payoff of all strategies, given by
According to Eq. S17, if is always satisfied ( ), all individuals (all strategies) have identical expected payoff zero, i.e.,
Thus, this is an interior equilibrium state of the replicator dynamics Eq. S23. 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.
(1) Linear prediction problem
S8
If the prediction problem is linear (Eq. S4), the collective prediction equals
Then we can define
which is the predicted coefficient of factor (i.e., a prediction of ). Then, the collective prediction (Eq. S7) can also be written as
Thus, if
the collective prediction is always equal to the real outcome (i.e., always holds and ). For a large population size and enough diversity in strategies, this state ( ) is always achievable after many times of individuals' strategy imitation (strategy imitation actually adjusts the frequency of strategies , thus also changes ). Then we show that this equilibrium of is stable in the evolution process.
(A) Feedback payoff:
For the feedback reward structure (Eq. S13), we define a Lyapunov function
Note that has the same sign as since . and are always 1 or . So if , we have and . If , we have and . This means is non-negative. When , is always satisfied, which corresponds to the perfect accuracy state ().
Furthermore, since , Eq. S30 can be written as
This means V represents the weighted (with weights ) total error of collective prediction. Then, we will show that although decreasing in V does not imply a strictly monotonic increase in accuracy R, it still means an increasing lower bound of accuracy R. So in the long run, the accuracy will increase if V is decreasing. When V decreases to 0, we have R = 1. Note that in a population, we assume always has a positive lower bound (i.e., there is a positive number c such that , a.s.). For a special case, if all individuals' opinions are binary ( ) (see Fig. S1), we can choose c = 1. Thus we have
Then, we can obtain the lower bound of R:
So, when V decreases, the lower bound of R will increase, which implies R will increase in the long run. Using Eq. S22, the time derivative of V is
S9
Note that the second term has a nonzero value only when has the order of a single individual's opinion (i.e., ). However, is the sum of all individuals' opinions, so the probability that is very small. In most cases, the second term is zero. Thus, the second term can be ignored compared with the first term. Using to denote , we have
(using Eq. S23)
(using Eq. S17a)
(S35)
Here 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 V will decrease consistently until all individuals have the same expected payoff. In the above analysis (Eq. S25), 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 = 1). Thus, the feedback payoff can guarantee perfect prediction (R = 1) in single-layer voting.
(B) Marginal feedback payoff:
For the marginal feedback reward structure (Eq. S17b), we define another Lyapunov function
Similarly, we compute the derivative of :
(using Eq. S21)
(using Eq. S17b)
(S37)
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 = 1.
(2) Non-linear prediction problem
From Eq. S26, 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.
S10
S3 Two-layer voting
S3.1 Payoff structures
For convenience, we denote
Then we have and .
Here, we still consider two kinds of reward structures: feedback and marginal feedback, which are given by
(marginal feedback)
(S39b)
Here, represents the group index that individual A 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.
S3.2 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 (Fig. 2 in the main text and Fig. S4). We therefore focus on marginal feedback.
For two-layer voting in a non-linear prediction problem, perfect accuracy (R = 1) may not be reachable, but we show that accuracy R increases over evolution. Consider an individual A in group x who imitates the strategy of another individual B in the same group. Because imitation is biased toward higher payoffs, we consider the case , which for marginal feedback means
We first consider the Lyapunov function . When individual imitates 's strategy , we denote the change in as . According to Eq. S35, we have . Thus, we have
(using Eq.S22)
(S41)
According to Eq. S40, is negative. Thus, in the long run, the prediction accuracy will increase (based on analysis in Eq. S33).
(2) An alternative reward structure
Moreover, if we choose Lyapunov function , the change in is
S11
Since in the two-layer voting is an integer (see Eq. S8 and Eq. S38b), similar to Eq. S22, can be approximated by
Then, we have
(S44)
According to this, we can design another reward structure
This reward structure can also guarantee monotone increases in the accuracy of collective predictions. So we call Eq. S39b V-induced marginal feedback, and call Eq. S45 U-induced marginal feedback. We verify its effectiveness in Fig. 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.
S12
S4 Multi-layer voting model
S4.1 Population structure
The two preceding sections treat single-layer and two-layer voting. Here we give the general framework for layers, with all groups of equal size for simplicity. The first layer is the layer of individuals. Every individuals form a layer-1 group, which produces a binary verdict and is passed up as a single entity in the second layer; every such entities form a layer-2 group; and so on, until entities in layer 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-J entity () is a group at layer that produces a binary verdict. Thus, the population size equals
And the number of layer-J entities is . For the two-layer model we proposed above, the two parameters and correspond to and here.
We define a set ( ), which contains the all layer- entities belonging to the layer-J entity . And we use to represent the prediction of the layer-J entity . The number of elements in equals . The final collective prediction equals
And for a layer-J entity ( ), its prediction equals
For a layer-2 entity, we have
where is the personal opinion of individual A.
S4.2 Payoff structures and evolutionary dynamics
As we mentioned above, there are layer-J entities. We define a mapping , which means entity belongs to layer-J entity . Note that the mapping is not only valid when is a layer- entity. It also valid when is in layer ( ). For example, if is a layer-2 entity, means there exist a layer-3 entity such that belongs to ( ) and belongs to ( ).
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 A and B belonging to the same layer-2 entity (i.e., layer-1 group) are selected. With probability , A will copy B's strategy with probability
And with probability u, A will innovate and adopt a new random strategy.
Still, we assume that when player A imitates B's strategy, holds. We also have
Then, we analyze how the accuracy of prediction changes. We first consider the Lyapunov function . We use to denote the sum of the predictions of all layer- entities that belong to
S13 the layer-J entity x. That is
This means . And we use to denote the sum of all layer-L entities' predictions (i.e., ). Then, the change of is
(S53)
So, if an individual's payoff is given by
The Lyapunov function V will decrease consistently ( ), which guarantees an increase in accuracy in the long run.
This means an individual can receive a non-zero payoff (assume ) only when their opinion is pivotal at every layer above them, that is when every entity above them is nearly balanced. We call this reward structure global marginal feedback; it contains pivotality indicators. Dropping one or more of these indicators gives a local marginal feedback. Simulations confirm that global marginal feedback outperforms local marginal feedback (Fig. 4 in the main text), as the derivation predicts.
If we choose Lyapunov function , 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:
We call Eq. S54 V-induced global marginal feedback, and call Eq. S55 U-induced global marginal feedback. Both kinds of global marginal feedback are effective in increasing the prediction accuracy (see Fig. S11). However, V-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 V-induced global marginal feedback.
S14
S5 Extensions
S5.1 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 and a group verdict vary from round to round), so we characterize diversity by the joint entropy of these random variables.
S5.1.1 Diversity in two-layer population
(1) Within-group diversity
Consider a group of Z individuals with opinions . Since each opinion is bounded, we discretize it into bins and treat values in the same bin as identical, so that each opinion falls into one of categories, (in simulations we take , 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 is defined as
where denotes the number of opinions in category ( ), and denotes the probability of observing the opinion configuration under random sampling of factors.
The average within-group entropy is
(2) Inter-group diversity
Each group x produces a binary prediction, so no discretization is required. The joint entropy across groups is
where denotes the number of groups giving prediction 1 and denotes the number of groups predicting -1. is the probability of observing the prediction pattern under many repeated sampling of factors.
S5.1.2 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 , the prediction is binary, so no discretization is required. The diversity in each group can be computed the same as Eq. S56 (for layer 1) and Eq. S58 (for layer ).
S5.2 When the number of groups is even
In all of the results above, we assume that the number of groups (or ) is odd, such that a group can always yield a prediction.
S15
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, the final prediction outcome is 1. That is
In two-layer voting, the marginal feedback reward structure (Eq. S39b) can still guarantee increases in the collective accuracy.
In multi-layer voting (), the voting rule can be defined similarly, which is (for )
However, the reward structures (global marginal feedback) should be modified a little bit. Assume a group containing entities, each of which gives only a binary prediction. If is odd, the total prediction can only equal odd numbers. The corresponding group prediction is
\begin{array}{c|c|c|c|c|c|c|c|c|c}{{{\phi_{x}}}}&{{{\cdots}}}&{{{-5}}}&{{{-3}}}&{{{-1}}}&{{{1}}}&{{{3}}}&{{{5}}}&{{{\cdots}}} \\{{{\hline\hat{Y}_{x}}}}&{{{\cdots}}}&{{{-1}}}&{{{-1}}}&{{{-1}}}&{{{1}}}&{{{1}}}&{{{1}}}&{{{\cdots}}}\end{array} \tag{S61}The indicator function implies individuals can obtain payoffs when () or (). And in these two states, the group prediction changes if any one of the elements in the group changes its prediction.
But when is even, the total prediction can only equal even numbers. The corresponding group prediction is
\begin{array}{c|c|c|c|c|c|c|c|c}{{{\phi_{x}}}}&{{{\cdots}}}&{{{-4}}}&{{{-2}}}&{{{0}}}&{{{2}}}&{{{4}}}&{{{\cdots}}} \\{{{\hline\hat{Y}_{x}}}}&{{{\cdots}}}&{{{-1}}}&{{{-1}}}&{{{1}}}&{{{1}}}&{{{1}}}&{{{\cdots}}}\end{array} \tag{S62}The critical is no longer and , but and . Thus, if we still use the indicator function , it equals only when (). So individuals can never obtain payoffs (i.e., incentives disappear) when the group prediction is . So the indicator function should be modified to
In this case, individuals can obtain payoff either when ( ) or ( ).
So, the global marginal feedback (Eq. S54) should be modified to
where
S16
Supplementary Figures
S17
Baseline model

B
C
D
E
Mixture of the four predicting methods
Figure S1 Collective intelligence is robust to the way individuals form opinions. In the main text an individual forms the continuous opinion ; 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, (the same data as Fig. 3B). (B) Individuals give a binary opinion from the sign of the observed factor, ; discarding the magnitude of the factor lowers the stationary accuracy. (C) Individuals give a thresholded binary opinion, , with strategy ; accuracy exceeds the baseline, especially for few groups. (D) Individuals give the sign of a quadratic function of the observed factor, . (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: (two layers), , (B), , , .
S18
Baseline model: Each individual observes one factor

B
Each individual observes two factors
C
Each individual observes three factors
Figure S2 Observing more factors raises the accuracy of collective prediction. Here each individual observes factors and forms a linear opinion from them, , with strategy . (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: (two layers), , , , .
S19

B

Figure S3 Collective accuracy persists under unequal group sizes. For a fixed population size , group is given size proportional to , so that controls the inequality in group sizes and recovers equal groups. Two updating rules are shown: (A) an individual is drawn from the population and then a partner from '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: , , , , , , .
S20
Linear problem
Non-linear problem

C
D
Two layers
Feedback
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: , , , , , , .
S21
Feedback:
every opinion wins reward (can be negative)
B
Marginal feedback:
only decisive opinions wins reward (can be negative)

Collective prediction: 1

Collective prediction: -1
Collective prediction: -1
Figure S5 Marginal feedback rewards only pivotal opinions. (A) Under the feedback payoff scheme, , every individual is rewarded or penalized regardless of whether their opinion is pivotal. (B) The marginal feedback scheme, , adds the indicator , where the two terms cannot hold at once (except when ). 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 the sum of all opinions (i.e., ).
S22

Figure S6 Either component of marginal feedback promotes collective intelligence. Marginal feedback decomposes into two terms: and . The first term represents rewards for individuals whose opinion currently determines the group verdict (i.e., the group verdict will change if 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: , , , , .
S23

Figure S7 Larger populations reach higher accuracy in non-linear prediction problems. Stationary accuracy against population size, for a non-linear prediction problem with 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: , , , , (B), (C), .
S24
Optimal number of group

B
Optimal group size
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: , , , , .
S25

Layer 1 ( )
Population size:
Global marginal feedback payoff for player A:
B
Two-layer population

C
Three-layer population
D
Size of groups in the second layer,
Figure S9 Global marginal feedback in multi-layer populations. (A) An L-layer population: in layer K, every entities form a higher-layer group whose verdict passes to layer , with . Writing for the layer-K entity containing individual A, global marginal feedback is , with pivotality indicators. (B and C) The probability that a random individual receives a nonzero payoff, given . In the two-layer case (B) it rises with the number of groups and is independent of the problem scale ; in the three-layer case (C) it is set mainly by the number of top-layer entities (i.e., ). 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: , , (C and D), , , .
S26

Figure S10 Collective accuracy is robust to the innovation rate. Stationary accuracy against the innovation rate u, for two-layer populations with few groups ( ), an intermediate number ( ), and many groups ( ). 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: , , .
S27
Two-layer voting
A

Three-layer voting
B

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 to decrease; we call them V-induced. Requiring instead that decrease yields U-induced forms, equal to the V-induced forms times an extra indicator on the top-layer margin (see supplementary text section S4). (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 V-induced form, with one fewer indicator, pays individuals more often and converges faster. Parameters: , (A), (B), (A), and (B), .
S28

B
Figure S12 The approximation of the sign function and its derivative. (A) Here we use function to approximate the sign function. Parameter controls the characteristic length (bandwidth) of the transition region between and for . (B) For the function , we can compute its derivative. The derivative can be approximated by an indicator function , which equals if and equals otherwise.
S29