Skip to main content
PLOS ONE logoLink to PLOS ONE
. 2012 Aug 22;7(8):e41900. doi: 10.1371/journal.pone.0041900

Human Matching Behavior in Social Networks: An Algorithmic Perspective

Lorenzo Coviello 1,*, Massimo Franceschetti 1, Mathew D McCubbins 2, Ramamohan Paturi 3, Andrea Vattani 3
Editor: Rodrigo Huerta-Quintanilla4
PMCID: PMC3425504  PMID: 22927918

Abstract

We argue that algorithmic modeling is a powerful approach to understanding the collective dynamics of human behavior. We consider the task of pairing up individuals connected over a network, according to the following model: each individual is able to propose to match with and accept a proposal from a neighbor in the network; if a matched individual proposes to another neighbor or accepts another proposal, the current match will be broken; individuals can only observe whether their neighbors are currently matched but have no knowledge of the network topology or the status of other individuals; and all individuals have the common goal of maximizing the total number of matches. By examining the experimental data, we identify a behavioral principle called prudence, develop an algorithmic model, analyze its properties mathematically and by simulations, and validate the model with human subject experiments for various network sizes and topologies. Our results include i) a Inline graphic-approximate maximum matching is obtained in logarithmic time in the network size for bounded degree networks; ii) for any constant Inline graphic, a Inline graphic-approximate maximum matching is obtained in polynomial time, while obtaining a maximum matching can require an exponential time; and iii) convergence to a maximum matching is slower on preferential attachment networks than on small-world networks. These results allow us to predict that while humans can find a “good quality” matching quickly, they may be unable to find a maximum matching in feasible time. We show that the human subjects largely abide by prudence, and their collective behavior is closely tracked by the above predictions.

Introduction

The modeling and prediction of collective human behavior has been one of the key challenges of social sciences for several decades. As early as 1947, Herbert Simon argued that information processing constitutes the core of human decision-making [1]. A corollary of his argument is that human decision-making processes can be modeled algorithmically. However, such algorithmic modeling and prediction is challenging, considering that collective decision-making processes are driven by both individual attitudes and collective dynamics, and often involve social interchange and mutual agreement.

This paper argues that despite the inherent complexity of human social interactions, it is possible to isolate basic behavioral principles, formulate mathematical models, and predict collective dynamics, using an algorithmic approach. As a simple example of this approach, in the context of a distributed coordination game on networks (i.e., the maximum matching game), we present an algorithmic model of human behavior that is based on simple principles of local interaction and that is able to capture complex collective coordination.

Our approach is similar in spirit to the one in physics where particle systems and cellular automata described by simple rules are known to generate complex behaviors, such as phase transitions and universal computability [2][5]. However, our algorithmic modeling approach embeds individual interaction behavior as part of a distributed computing system and leads to computational complexity analysis.

Our work is influenced by the work of Kearns et al. [6] who studied the effect of network topology on subjects' ability to color a graph, and by subsequent work in the context of distributed coloring and consensus games [7][10]. However, our focus is on algorithmic modeling and analysis, rather than on observing the effect of network topology on performance.

We have conducted over Inline graphic experiments with human subjects on a pool of over 80 networks with up to 24 nodes each, ranging from simple networks to more complex stochastic models including preferential attachment [11], [12] and small-world networks [13]. Our experimental set-up is simple. Subjects are represented by nodes of a network with edges representing potential matches. In our experiments, human subjects are connected over a virtual network and interact with their neighbors through a computer interface, see Figure 1. Subjects can form and destroy pairs with their neighbors, and each subject can be part of a single pair at a time. Subjects are given only local information about their immediate neighbors, and can only interact with them. They are able to propose to match with a neighbor and accept a proposal from a neighbor. While matched, a subject can also make a proposal to or accept a proposal from another neighbor; in both cases, the existing match would automatically be broken. Moreover, a subject can only have a single outstanding proposal at a time. Therefore, at any time, a subject can either be part of a matched pair, or not be matched and have at most a single outstanding proposal. Subjects are equally incentivized to achieve a maximum matching, namely to form the maximum number of disjoint mutual pairs, without regard to whom is matched with whom. Specifically, they are given an equal monetary reward for each game where a maximum matching is found within the allotted time.

Figure 1. Computer interface.

Figure 1

The subject is matched with the node on the right and is being requested by three unmatched nodes.

To better understand this setup, consider the following metaphor: imagine that incoming graduate students are pairing up with faculty members. Further imagine that every member of the department prefers every graduate student to have one adviser and every adviser to have one graduate student, and only certain faculty and graduate students share interests. Communication is limited so that individuals can only tell if members with whom they share an interest are already matched. Each member of the department is now a node, the edges represent shared interest, and individuals can then propose to work with members with whom they share an edge.

Our algorithmic model is based on a simple property that we call “prudence” and that emerges from the analysis of a first set of experimental data. This property states that individuals do not break existing matched pairs unless they receive an alternative proposal by an unmatched neighbor. Based on this property, we propose a simple distributed algorithm, analyze its performance, validate the model with additional experimental results, and predict outcomes. The prudence property is reminiscent of the notion of risk aversion, a relevant topic in the economics literature [14], [15].

We now briefly summarize our findings. Throughout the paper we use the graph-theoretic terminology, according to which a matching is a set of edges without common nodes. The size of a matching is the number of edges in it. A maximum matching is a matching with the largest size. For Inline graphic, a matching is a Inline graphic-approximate maximum matching if its size is within a factor of Inline graphic from that of a maximum matching. A matching Inline graphic is maximal if it is not a proper subset of any other matching, i.e., for any new edge added to it, it is no longer a matching. Figure 2 depicts an approximate and a maximum matching of a network. We show that the convergence time to the maximum matching in computer simulations of the prudence algorithm fits well the experimental data (after scaling by a constant factor), see Figures 3 and 4. By computer simulations we also predict that convergence to a maximum matching is slower on preferential attachment networks than on small-world networks, see Figure 5. This prediction is validated by our experiments with human subjects. It is also in agreement with the experimental results by Kearns et al. [6] regarding the coloring problem, and with the theoretical results by Montanari and Saberi [16] regarding the spread of innovation in networks. On the theoretical side, we analyze the dynamics of the prudence algorithm and show that for all graphs of bounded degree a Inline graphic-approximate maximum matching is reached quickly, on average in Inline graphic rounds, where Inline graphic refers to the number of nodes in the network (Theorem 1); and for all graphs a Inline graphic-approximate maximum matching is reached in polynomially many rounds with high probability (Theorem 2). We also show that there are instances (called “bad” graphs) for which reaching a maximum matching requires exponential time with high probability when starting from a set of configurations (called “bad” matchings) which constitute almost all possible configurations (Theorems 3 and 4). These results show that in the worst case there is an exponential gap between reaching a good matching (i.e., an approximate maximum matching whose cardinality is close to a maximum matching) versus the best (i.e., perfect) matching. The experimental data shows (consistently with the theoretical analysis) that human subjects always find a “good” matching quickly, while they can take much longer to improve the solution to a maximum matching, see Figure 6. In particular, on the bad graph, human subjects could not converge to a maximum matching in the allotted time.

Figure 2. Approximate and maximum matching.

Figure 2

Left: an approximate maximum matching of size Inline graphic on a network with Inline graphic nodes (matching edges are represented in bold red, matched nodes are colored, unmatched nodes are white). Right: a maximum matching of size Inline graphic on the same network (note that the maximum matching is also a perfect matching, as all nodes are matched).

Figure 3. Affinity between humans' and algorithm's performance, 16-node networks.

Figure 3

The performance of the human subjects (red points joined by continuous line) and of the algorithm (blue points) over eight bipartite 16-node networks (triangles) and eight non-bipartite 16-node networks (circles) are plotted. The experiment was run multiple times on each network and the average behavior is reported. The Inline graphic-axis shows the indexes of the networks sorted by increasing average time required to reach a maximum matching. Bipartite networks are labeled from 1 to 8, while non-bipartite networks are labeled from 9 to 16. The Inline graphic-axis shows the average time (in seconds) required to reach a maximum matching for humans, while the average number of rounds of the algorithm is scaled by a constant factor.

Figure 4. Affinity between humans' and algorithm's performance, 24-node networks.

Figure 4

The performance of the human subjects (red points joined by continuous line) and of the algorithm (blue points) over different 24-node networks are plotted. In particular, small-world networks (triangles), a ring network (diamonds), and preferential attachment networks (circles) were tested. The experiment was run multiple times on each network and the average behavior is reported. The Inline graphic-axis shows the indexes of the networks sorted by increasing average time required to reach a maximum matching. The Inline graphic-axis shows the average time (in seconds) required to reach a maximum matching for humans, while the average number of rounds of the algorithm is scaled by a constant factor.

Figure 5. Algorithm's asymptotic performance.

Figure 5

Prudence algorithm's performance with respect to the network's size for the “bad” graph Inline graphic (black diamonds), for preferential attachment model (green squares), small-world model (red triangles). For each generative model and network size we generated 100 networks and run the algorithm 1000 times on each. The average behavior is reported. The Inline graphic-axis shows the network size, and the Inline graphic-axis shows the average number of rounds required by the algorithm to converge to a maximum matching.

Figure 6. Experimental performance, 24-node networks.

Figure 6

Performance of the experimental subjects on networks of Inline graphic nodes. The plot shows the time to reach a perfect matching of size Inline graphic (red), an approximate matching of size Inline graphic (a Inline graphic–approximate matching, in blue) and a matching of size Inline graphic (a Inline graphic–approximate matching, in green). Results for single games are reported. The Inline graphic-axis shows the indexes of the games sorted by increasing solving time, while the Inline graphic-axis shows the time in seconds. The right-most four games on the red plot did not converge to a maximum matching and correspond to three instances of the “bad” graph Inline graphic and to one instance of the preferential attachment network.

Related Literature

The experimental study of human strategic behavior over networks is a topic of great current interest in the literature. The work by Kearns and others on network coloring and consensus games [6][10] has been particularly influential. Judd et al. [17] investigated how subjects choose between playing either a dominant or a submissive role in a network game, documenting the importance of fairness. Kearns et al. [18] performed experiments on network formation games when there is a cost for creating links. Suri and Watts [19] conducted experiments in which individuals connected over networks play local public good games. Wang et al. [20] studied multi-player prisoner's dilemma games in which subjects can propose and delete links to other players, showing that partner selection increases cooperation. Brautbar and Kearns [21] introduced a network formation game in which players need to maximize their clustering coefficients. Compared to these previous works, we focus on isolating behavioral principles of human interaction (in the context of maximum matching games) and using these principles to formulate algorithmic predictions of outcomes.

As social interaction naturally induces strategic behavior, our work is also closely related to game theory. Indeed, several authors proposed game theoretical models of human interaction over social networks. Topics vary from diffusion and contagion over networks [16], [22], [23] to strategic information retrieval [24], [25], models of segregation [26] and bargaining over networks [27], to mention a few. The main element that distinguishes our work from the game theory literature is that we focus on the algorithmic processes involved in strategic thinking and the ensuing collective dynamics rather than on equilibria. Moreover, our algorithmic model is motivated and supported by experimental data.

Finally, matching theory has received notable attention throughout the decades, both in the context of game theory and economics [28][31], and in the development of algorithms for the maximum matching problem [32][36]. We point out that our simplified setup constitutes a simplification of the richness and heterogeneity of the ties in real social networks, as the subjects have no preference over each other, all the ties are equivalent, and interaction has no cost. However, such a simplified model leads to a tractable analysis and to the formulation of a general principle of collective behavior.

Methods

The experiments included the interaction of the participants through a computer interface, and were conducted in accordance with the ethical standards specified in the 1964 declaration of Helsinki. Written consent was granted before participation in the experiments. Our institutional review boards approved this study (UCSD IRB approval 111213SX, US Army Human Research Protection Office ARO-HRPO Log A-17038).

The Matching Games

Before formulating our algorithmic model, we conducted four sessions of experiments, each with a different pool of sixteen undergraduate students connected over a virtual network. Subsequently, to validate our model, we ran an additional session of experiments with a pool of twenty four subjects on a set of networks that included small world and preferential attachment networks. In each of the first four sessions the subjects were asked to solve the matching game on a pool of over 70 networks. All networks admitted a perfect matching, namely a maximum matching with no unmatched nodes. We considered networks classified into four groups: bipartite networks admitting a unique perfect matching, bipartite networks admitting multiple perfect matchings, non-bipartite networks admitting a unique perfect matching, non-bipartite networks admitting multiple perfect matchings. Within each group, networks were randomly generated. As a remark, a bipartite network is a network whose nodes can be divided into two disjoint sets Inline graphic and Inline graphic such that every edge connects a vertex in Inline graphic to one in Inline graphic. If this property does not hold, we say that the network is non-bipartite. Subjects sat in front of workstations for the entire two-hour duration of the session and had no eye-contact with each other. For each matching game, a network was chosen, subjects were randomly assigned to its nodes, and each subject interacted with its neighbors by making or accepting proposals to form matched pairs using the interface shown in Figure 1. Each subject could control the node in the center of the screen and could only see its neighbors and, among those, distinguish which of them were currently matched (marked in dark green). A subject could make proposals or accept proposals by selecting a neighbor with a mouse click, and could only have one outstanding proposal at a time to form a matched pair (circled in yellow). While subjects knew whether a neighbor is matched or unmatched, they did not have direct knowledge of any outstanding requests to their neighbors other than their own. If two neighbors selected each other, a pair was formed (a bright green link appeared between them) which could be broken when one of the partners selected another neighbor. As a remark, since a pair was formed when two subjects selected each other and each subject could make a single selection at a time, each subject could be part of a single pair at a time (with one of its neighbors).

If a perfect matching was found within the time limit of five minutes, the game was declared solved and each participant was rewarded by $.50 or $1 depending on the session, otherwise the game ended with no reward. The number of games in an experimental session was not fixed, but games were run for the two-hour duration of the session. Therefore, the number of games and the cumulative reward in a session depended on the performance of the participants, providing an additional incentive to coordinate.

The networks used in this first set of experiments can be divided into four classes: bipartite, non bipartite, unique perfect matching, multiple perfect matchings. Two one-tailed Welch's t-tests confirmed the hypotheses that it is harder for humans to complete the matching game on non-bipartite than on bipartite networks (Inline graphic-value Inline graphic); and that non-bipartite networks with unique perfect matching are more difficult to solve than non-bipartite networks with multiple perfect matchings (Inline graphic-value Inline graphic). No statistically significant difference was found between the completion time of bipartite networks with unique and with multiple perfect matchings. We believe that this depended on the small network size of sixteen nodes and we did not explore larger bipartite networks further.

The Algorithmic Model

One of the main behavioral properties that emerged from the experimental data is that matched players may break their current matching only if they have been requested by an unmatched neighbor. In particular, in Inline graphic of the games no player ever violated this rule at any time during the game. In the remaining games, over Inline graphic percent of the moves were in agreement with this rule. Therefore, this property led to the following modeling assumption:

Assumption 1 (Prudence) A matched node does not break its current matched pair if it does not receive any request from other neighbors.

Two remarks are in order. First, note that this behavioral rule is peculiar to the matching problem since each player needs to choose a partner but also needs to be chosen. Second, notice that a matched subject with unmatched neighbors has some incentive to behave non-prudently and break the current match, because the subject can infer from the status of its neighbors that the perfect matching is not reached yet. However, experimental data shows that this rarely happens.

For each node Inline graphic, let Inline graphic indicate Inline graphic's current preference. In other words, Inline graphic is the unique node to which Inline graphic has currently proposed to. Inline graphic will be null if Inline graphic does not have a current proposal. If two neighbors Inline graphic and Inline graphic currently prefer each other (i.e., Inline graphic and Inline graphic), then consider them matched and the edge Inline graphic as part of the matching. Assume that each node knows if a neighbor is matched or unmatched.

Given the prudence property, we model the algorithmic behavior of humans using the Inline graphic algorithm shown in Table 1. The algorithm is specified by the implementation of two functions, called Inline graphic and Inline graphic, which are placeholders for the behavior that node Inline graphic would follow depending on whether Inline graphic is matched or unmatched. We consider a synchronous setting, in which time is divided into rounds, and at the beginning of each round each node observes its status and the status of its neighborhood and then decides on an action to take.

Table 1. The algorithm.

if unmatched
Set Inline graphic
else if matched and Inline graphic neighbor Inline graphic s.t. Inline graphic
Set Inline graphic
end

Prudence algorithm for node Inline graphic.

In the following we provide a canonical implementation of the functions Inline graphic and Inline graphic consistent with the prudence property. Inline graphic does not change the current value of Inline graphic with probability Inline graphic, while with probability Inline graphic accepts the proposal from a neighbor uniformly at random from among the neighbors Inline graphic with Inline graphic if any; if there is no neighbor Inline graphic with Inline graphic, then it proposes to a node uniformly at random from among the unmatched neighbors if any; otherwise it proposes to a node uniformly at random from among all the matched neighbors. In other words, unmatched nodes prefer neighbors who requested them over other unmatched neighbors, and unmatched neighbors over matched neighbors. As for matched nodes, Inline graphic accepts a proposal from a neighbor uniformly at random from among the neighbors Inline graphic with Inline graphic (note that Inline graphic's current partner is one of them). We remark that the simulations' performance and the fit with the experimental data was practically insensitive to the value of Inline graphic chosen in the run of the algorithm.

Results

Mathematical Results

In this section we present our analytical results regarding the convergence behavior of the Prudence algorithm. In particular, our results describe how well the algorithm performs in finding a large matching and the time it takes in terms of the number of rounds required. Due to space constraints, we only present proof sketches here. Complete details of the proofs are deferred to the SI.

We define a matching at round Inline graphic as the set of matched edges at the beginning of round Inline graphic of the algorithm. We first claim that the prudence property implies that the size of the matching does not decrease with time. The proof is immediate and it is omitted.

Claim 1 The size of the matching at round Inline graphic is non-decreasing as Inline graphic increases.

We then observe that the behavior of the Prudence algorithm can be described by a Markov chain over matchings. A transition from a matching Inline graphic to a matching Inline graphic is made by selecting an edge Inline graphic such that at least one among Inline graphic and Inline graphic is unmatched, and setting Inline graphic if Inline graphic are both unmatched, and Inline graphic if exactly one of Inline graphic and Inline graphic is matched in Inline graphic and Inline graphic is the matching edge. This Markov chain is reversible when restricted to matchings of the same size. Since the Markov chain is memory-less and has positive probability of reaching a maximum matching, we conclude that the Prudence algorithm enjoys self-stabilization.

Claim 2 The Prudence algorithm is a self-stabilizing algorithm.

Our first theorem says that a Inline graphic-approximate matching will be reached quickly in networks with bounded degree.

Theorem 1 In any bounded-degree graph on Inline graphic nodes, the expected number of rounds for the Inline graphic algorithm to reach a Inline graphic -approximate matching is Inline graphic.

The key idea of the proof is to show that, in expectation, the “distance” in terms of number of matched pairs to the smallest maximal matching shrinks by a constant factor in each round of the Prudence algorithm. Since it is well known that any maximal matching is a Inline graphic-approximation of the maximum matching, the result then follows.

We remark that the assumption of having bounded degrees is necessary as there are unbounded degree graphs in which a polynomial number of rounds is required with high probability to achieve a Inline graphic-approximation. However, in this case, a polynomial number of rounds is also enough to achieve any constant approximation: indeed, as the next theorem states, the Prudence algorithm provides a PTAS (polynomial time approximation scheme) for the maximum matching problem. Given a graph Inline graphic, Inline graphic denotes its maximum degree.

Theorem 2 For any graph Inline graphic of Inline graphic nodes, Inline graphic and Inline graphic, the Prudence algorithm reaches a Inline graphic -approximate matching in Inline graphic rounds with probability at least Inline graphic.

The theorem implies that, for any constant Inline graphic, a matching whose size is within a Inline graphic fraction of the size of the maximum matching is reached in polynomial time. For bounded-degree graphs, this result also holds for Inline graphic, implying that in this case a maximum matching can be reached in polynomial time.

To prove the theorem, we track the progress of the algorithm towards an approximate maximum matching, using the concept of an augmenting path. An augmenting path is a path of odd length which alternates between matched and unmatched edges and whose extreme edges are unmatched. It turns out that there is a close connection between the size of a shortest augmenting path in a matching and how close the matching size is to the size of a maximum matching. More specifically, we use the following lemma due to Hopcroft and Karp [32].

Lemma 1 Consider any matching Inline graphic that does not admit augmenting paths of odd length Inline graphic or smaller. Then, the size of Inline graphic is at least a fraction Inline graphic of the size of a maximum matching.

Hence, to prove Theorem 2, we need to show that short augmenting paths (for a suitably chosen Inline graphic) are solved in a short amount of time. It is useful to consider a particle analogy to understand the process that eliminates short augmenting paths. We consider each unmatched node as a particle. Particles move around the graph from node to node as nodes change their status between matched and unmatched states dictated by the random choices in the algorithm. There are exactly two particles along an augmenting path, situated at the extreme nodes. To understand how an augmenting path gets shorter and eventually vanishes, we consider how the two particles move closer to each other along the path.

Let Inline graphic denote a shortest augmenting path. If the extreme unmatched node Inline graphic proposes to Inline graphic and Inline graphic accepts the proposal breaking the current match with Inline graphic, then the particle moves from Inline graphic to Inline graphic. A similar argument applies to the other end of the path. Also, the minimality of the path guarantees that the internal nodes do not change their current matching as they have no unmatched neighbor. It follows that the particles become closer to each other and the augmenting path gets shorter. Using this approach, we can prove that with suitable probability the length of the shortest augmenting path shrinks after each round. When an augmenting path becomes an edge (that is, a path of length one), and if the extreme unmatched nodes select each other as partners, the particles and the path vanish, yielding an increment to the size of the matching. Hence, a key step of our proof is to lower bound the probability that an augmenting path of length Inline graphic vanishes, and then to apply Lemma 1 to relate the existing augmenting paths and the matching size.

We remark that the random process governing the movement of the particles in the network is not a classical random walk over the nodes of the graph. Indeed, if that were the case, a maximum matching would always be reached in polynomial time by a simple cat-and-mouse argument. Instead, a random move of a particle depends on the current matching, which in turn changes when the particle moves. This modest difference can lead to an exponential time gap between convergence to an approximate matching and convergence to a maximum matching. Indeed, exploiting the dependence of the particles' movements on the current matching, we show that there is a family of graphs for which the Prudence algorithm takes exponentially many rounds with high probability to reach a maximum matching starting from a set of configurations that cover almost all possible cases. This family of “bad” graphs is defined as follows (see also Figure 7).

Figure 7. The bad graph.

Figure 7

The “bad” graph Inline graphic for Inline graphic. One of the “bad” matchings of Theorem 3 is highlighted in red.

Definition 1 (Bad graph Gn ) The bipartite graph Inline graphic has Inline graphic nodes Inline graphic and Inline graphic, and its edges are Inline graphic, Inline graphic for all Inline graphic and Inline graphic, and Inline graphic for all Inline graphic and Inline graphic.

Note that the set of “horizontal” edges Inline graphic, for Inline graphic is the unique perfect matching for Inline graphic.

Theorem 3 The Prudence algorithm requires Inline graphic many rounds with high probability to reach the perfect matching when starting from any Inline graphic -matching in which the two unmatched nodes are in opposite sides of Inline graphic.

The main idea of the proof is to track the positions of the unmatched nodes throughout the course of the algorithm and to lower bound the number of rounds needed before they meet as an adjacent pair.

We first prove a one-to-one correspondence between the Markov process of the state evolution between matchings and a classical random walk on a tree (represented in Figure S1) whose size is exponential in Inline graphic. We show that this classical random walk takes exponential time to reach the root of the tree starting at any one of its nodes, thus providing a lower bound on the convergence time of the Inline graphic algorithm.

We say that a matching Inline graphic of Inline graphic of size Inline graphic is bad if the Inline graphic algorithm requires exponentially many rounds with high probability to converge to the perfect matching when starting from Inline graphic. Observe that all matchings considered by Theorem 3 are bad. The following theorem states that almost all matchings of size Inline graphic are bad.

Theorem 4 The ratio between the number of “bad” matchings and the number of all Inline graphic -matchings of Inline graphic is Inline graphic.

Theorems 3 and 4 show that the Inline graphic algorithm requires exponentially many rounds to converge to the perfect matching of Inline graphic when starting from a set of configurations (the bad matchings) constituting almost all possible cases (the matchings of size Inline graphic).

Validation

Figure 3 compares the performance of the human subjects (red) with that of simulations (blue) on a set of 16-node networks (8 bipartite networks and 8 non-bipartite networks) with unique perfect matchings. The networks are sorted by increasing average completion time, and as a result bipartite networks are labeled from 1 to 8, while non-bipartite networks are labeled from 9 to 16. Each of these networks was tested at least 6 times over all sessions. The vertical axis represents the time (in seconds), and the numerical values of the convergence time of the algorithm are scaled by a constant factor to best match the experimental data.

In an additional experimental session, we tested twenty four subjects connected over small-world, preferential attachment and ring networks as well as over the “bad” graph Inline graphic. The games on the bad graph were never solved, consistent with the prediction of exponentially slow convergence. Furthermore, we found that preferential attachment networks were more difficult to solve than small-world networks (one-tailed Welch's t-test, Inline graphic-value Inline graphic). Figure 4 shows the affinity between humans' (red) and algorithm's (blue) performance, on this set of 24-node networks: small-world networks (triangles), ring network (diamonds), preferential attachment networks (circles). The Inline graphic-axis shows the indices of the networks sorted by increasing average time to find the perfect matching, and the Inline graphic-axis shows the average time.

Figure 5 shows, by simulation, that the algorithm scales linearly in the size of the network in the case of small-world networks [13], while it scales polynomially for preferential attachment networks [11], [12], and exponentially on the “bad” graph Inline graphic. These results closely resemble the experimental data of the coloring games performed by Kearns et al. [6], where preferential attachment networks resulted in the worst performance among all tested networks, while small-worlds networks appeared to be much easier to solve.

Figure 6 shows the performance of the experimental subjects on networks of Inline graphic nodes, each admitting a perfect matching. In particular, it reports results for single games, and it compares the time to reach a perfect matching of size Inline graphic (red), an approximate matching of size Inline graphic (a Inline graphic-approximate matching, in blue) and a matching of size Inline graphic (a Inline graphic-approximate matching, in green) in each game. The Inline graphic-axis shows the indexes of the games sorted by increasing solution time, while the Inline graphic-axis shows time in seconds. The plot shows (consistent with the theoretical analysis) that a Inline graphic-approximate matching is reached almost immediately in all games, an almost maximum matching is reached quickly, while reaching a perfect matching can take a large amount of time.

Discussion

While it is challenging to characterize the strategies used by humans in performing even simple social tasks, as they may depend on diverse individual cognitive and psychological attitudes, we argue that it is possible to isolate simple behavioral invariants of individual behavior, which are useful for algorithmic modeling, analysis and prediction of collective dynamics of coordination.

To illustrate our approach, we have focused on a simple matching game over networks and presented a combination of theoretical, experimental, and simulation results. From the experiments, we identified the prudence property as a common behavioral invariant of human subjects when they coordinate to find a maximum matching. We proposed an algorithm as model of human behavior and showed that it can successfully predict dynamics of coordination.

We have shown that our approach is able to uncover basic behavioral properties that may not be apparent from off-line surveys. Indeed, when subjects were asked to report on their strategies in post-experimental surveys, we obtained a list of diverse strategies, including: choose a partner and never disengage from it, always accept proposals from neighbors, try to change partner if the game is not solved for a while. Moreover, our results demonstrate that algorithmic modeling and the mathematical analysis of algorithms can be useful in systematically predicting the aggregate behavior and in deriving results that hold for any graph, or for a large family of graphs. This general conclusions cannot be derived rigorously form experimental observations and computer simulations.

Our work suggests further research in several directions. A natural question is whether non-prudent behavior by a subset of the nodes can help. In a preliminary investigation, we have evaluated the performance of a variant of our algorithm where a subset of nodes behave non-prudently with a positive probability. In our simulations, these populations do not offer significant improvement in terms of finding a maximum matching. Furthermore, populations entirely composed of non-prudent nodes seem to perform poorly. In other words, a group of aggressive and risk-taking individuals might not achieve coordination easily.

Our Inline graphic algorithm is memoryless. It is an interesting question as to what extent human subjects use memory in distributed games, and how memory could be incorporated in modeling human strategies. In an initial attempt to study this, we implemented a variant of the Inline graphic algorithm in which a node remembers its recent history and gives less preference to neighbors who recently rejected it. In simulations on preferential attachment and small world networks, memory did not result in significant improvement over the memoryless case. Furthermore, simulations show that making decisions based on events in a distant past (that is, tracking events that happened in a distant past) might hurt performance. A careful investigation of the role of memory in human strategies in distributed games is of fundamental interest.

Regarding the incentives, in our matching games each subject obtains the same reward when a maximum matching is reached, regardless of the chosen partner. How does the introduction of preferences affect the overall coordination? Preferences could be “enforced” for example by rewarding subjects based on the partners they match with. There is likely to be a trade-off between the collective task of finding a maximum matching and the individual profit maximization.

As a final remark, the proposed Prudence algorithm constitutes a possible reasonable explanation of human coordination behavior in the distributed matching game. Apart from the simple variations mentioned above, we did not test how well other alternative algorithmic models could fit the experimental data.

Supporting Information

Figure S1

Tree Inline graphic . Tree Inline graphic with labels, for Inline graphic.

(TIF)

Text S1

Technical proofs. This documents contains the detailed proofs of all technical results presented in the article.

(PDF)

Acknowledgments

We would like to thank Devin Barr and Daniel Enemark for helping us with the experiments. We would also like to thank Joel Sobel for his feedback. We are indebted to Stephen Judd and Michael Kearns for allowing us to modify their software for running our experiments.

Funding Statement

This work was partially supported by the National Science Foundation under grant number 0905645 and the Army Research Office under grant W911NF-11-1-0363. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Simon H, Barnard C (1976) Administrative behavior, volume 3. Cambridge University Press.
  • 2.Liggett T (1985) Interacting particle systems, volume 276. Springer Verlag.
  • 3.Bovier A (2006) Statistical mechanics of disordered systems: a mathematical perspective, volume 18. Cambridge University Press.
  • 4.Von Neumann J, Burks A (1966) Theory of self-reproducing automata. University of Illinois Press.
  • 5. Cook M (2004) Universality in elementary cellular automata. Complex Systems 15: 1–40. [Google Scholar]
  • 6. Kearns M, Suri S, Montfort N (2006) An experimental study of the coloring problem on human subject networks. Science 313: 824–827. [DOI] [PubMed] [Google Scholar]
  • 7. Kearns M, Judd S, Tan J, Wortman J (2009) Behavioral experiments on biased voting in networks. Proceedings of the National Academy of Sciences 106: 1347. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. McCubbins M, Paturi R, Weller N (2009) Connected coordination network structure and group coordination. American Politics Research 37: 899–920. [Google Scholar]
  • 9. Judd S, Kearns M, Vorobeychik Y (2010) Behavioral dynamics and inuence in networked coloring and consensus. Proceedings of the National Academy of Sciences 107: 14978–14982. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Enemark D, McCubbins M, Paturi R, Weller N (2011) Does more connectivity help groups to solve social problems? In: Proceedings of the ACM Conference of Electronic Commerce. pp. 21–27.
  • 11. Barabási A, Albert R (1999) Emergence of scaling in random networks. Science 286: 509–512. [DOI] [PubMed] [Google Scholar]
  • 12. Bollobás B, Riordan O, Spencer J, Tusnády G, et al. (2001) The degree sequence of a scale-free random graph process. Random Structures & Algorithms 18: 279–290. [Google Scholar]
  • 13. Watts D, Strogatz S (1998) Collective dynamics of small-worldnetworks. Nature 393: 440–442. [DOI] [PubMed] [Google Scholar]
  • 14. Pratt J (1964) Risk aversion in the small and in the large. Econometrica: Journal of the Econo-metric Society 122–136. [Google Scholar]
  • 15. Kahneman D, Tversky A (1979) Prospect theory: An analysis of decision under risk. Econometrica: Journal of the Econometric Society 263–291. [Google Scholar]
  • 16.Montanari A, Saberi A (2009) Convergence to equilibrium in local interaction games. In: IEEE Symposium on Foundations of Computer Science. IEEE, pp. 303–312.
  • 17. Judd S, Kearns M, Vorobeychik Y (2011) Behavioral conict and fairness in social networks. Internet and Network Economics 242–253. [Google Scholar]
  • 18.Kearns M, Judd S, Vorobeychik Y (2012) Behavioral experiments on a network formation game. In: Proceedings of the ACM Conference of Electronic Commerce.
  • 19. Suri S, Watts D (2011) Cooperation and contagion in web-based, networked public goods experi-ments. PLoS One 6: e16836. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Wang J, Suri S, Watts D (2012) Cooperation and assortativity with endogenous partner selection. In: Proceedings of the ACM Conference of Electronic Commerce.
  • 21. Brautbar M, Kearns M (2011) A clustering coefficient network formation game. Algorithmic Game Theory 224–235. [Google Scholar]
  • 22.Goyal S, Kearns (2012) Competitive contagion in networks. In: Proceedings of the ACM Sympo-sium on Theory Of Computing. pp. 759–774.
  • 23.Acemoglu D, Ozdaglar A, Yildiz M (2011) Diffusion of innovations in social networks. In: IEEE Conference on Decision and Control. pp. 2329–2334.
  • 24.Kleinberg J, Raghavan P (2005) Query incentive networks. In: IEEE Symposium on Foundations of Computer Science. pp. 132–141.
  • 25.Cebrián M, Coviello L, Vattani A, Voulgaris P (2012) Finding red balloons with split contracts: robustness to individuals' selfishness. In: Proceedings of the ACM Symposium on Theory Of Computing. pp. 775–788.
  • 26.Brandt C, Immorlica N, Kamath G, Kleinberg R (2012) An analysis of one-dimensional schelling segregation. In: STOC. pp. 789–804.
  • 27.Kanoria Y, Bayati M, Borgs C, Chayes J, Montanari A (2011) Fast convergence of natural bar-gaining dynamics in exchange networks. In: ACM-SIAM Symposium on Discrete Algorithms. pp. 1518–1537.
  • 28.Roth A, Sotomayor M (1992) Two-sided matching: A study in game-theoretic modeling and anal-ysis, volume 18. Cambridge University Press.
  • 29. Gale D, Shapley L (1962) College admissions and the stability of marriage. The American Math-ematical Monthly 69: 9–15. [Google Scholar]
  • 30.Hatfield J, Kominers S (2010) Matching in networks with bilateral contracts. In: Proceedings of the 11th ACM conference on Electronic commerce. ACM, pp. 119–120.
  • 31.Ashlagi I, Braverman M, Hassidim A (2011) Matching with couples revisited. In: ACM Conference on Electronic Commerce. pp. 335–336.
  • 32.Hopcroft J, Karp R (1971) A n5/2 algorithm for maximum matchings in bipartite. In: Switching and Automata Theory, 1971., 12th Annual Symposium on. IEEE, pp. 122–125.
  • 33. Karp R, Upfal E, Wigderson A (1986) Constructing a perfect matching is in random nc. Combi-natorica 6: 35–48. [Google Scholar]
  • 34. Israeli A, Itai A (1986) A fast and simple randomized parallel algorithm for maximal matching. Information Processing Letters 22: 77–80. [Google Scholar]
  • 35.Lotker Z, Patt-Shamir B, Pettie S (2008) Improved distributed approximate matching. In: Pro-ceedings of the ACM symposium on Parallelism in algorithms and architectures. pp. 129–136.
  • 36. Pettie S, Sanders P (2004) A simpler linear time 2/3 – ε approximation for maximum weight matching. Information Processing Letters 91: 271–276. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Figure S1

Tree Inline graphic . Tree Inline graphic with labels, for Inline graphic.

(TIF)

Text S1

Technical proofs. This documents contains the detailed proofs of all technical results presented in the article.

(PDF)


Articles from PLoS ONE are provided here courtesy of PLOS

RESOURCES