Significance
From bacteria to humans, individual foraging has been a key example of complex behavior, often analyzed experimentally and theoretically, in terms of a trade-off between exploration and exploitation. Finding a source in a nonturbulent environment can be done by following the gradient of a signal, but in noisy environments, moving to maximize information about the source results in efficient searches. We present a model for group foraging, in which each agent aims to maximize its own information and minimize its informational overlap with others. The result is a highly efficient, robust, biologically plausible, and nearly optimal collective group behavior. This suggests information maximization from sensory and social sources as an optimization principle that can direct individual and group behavior.
Keywords: foraging, information maximization, chemotaxis, exploration, exploitation
Abstract
Individual behavior, in biology, economics, and computer science, is often described in terms of balancing exploration and exploitation. Foraging has been a canonical setting for studying reward seeking and information gathering, from bacteria to humans, mostly focusing on individual behavior. Inspired by the gradient-climbing nature of chemotaxis, the infotaxis algorithm showed that locally maximizing the expected information gain leads to efficient and ethological individual foraging. In nature, as well as in theoretical settings, conspecifics can be a valuable source of information about the environment. Whereas the nature and role of interactions between animals have been studied extensively, the design principles of information processing in such groups are mostly unknown. We present an algorithm for group foraging, which we term “socialtaxis,” that unifies infotaxis and social interactions, where each individual in the group simultaneously maximizes its own sensory information and a social information term. Surprisingly, we show that when individuals aim to increase their information diversity, efficient collective behavior emerges in groups of opportunistic agents, which is comparable to the optimal group behavior. Importantly, we show the high efficiency of biologically plausible socialtaxis settings, where agents share little or no information and rely on simple computations to infer information from the behavior of their conspecifics. Moreover, socialtaxis does not require parameter tuning and is highly robust to sensory and behavioral noise. We use socialtaxis to predict distinct optimal couplings in groups of selfish vs. altruistic agents, reflecting how it can be naturally extended to study social dynamics and collective computation in general settings.
Foraging is fundamental for survival and reproduction in numerous species and is often based on sparse and noisy sensory cues in complex environments. Understanding how organisms represent space and navigate and the utility functions and computations that underlie movement patterns and social behavior (1–6) critically depends on characterizing the nature of foraging. Theoretical models of foraging have been pivotal in economics, physics (7, 8), and machine learning (9) as a general framework for decision making, exploration and exploitation, optimization, and learning (10).
Climbing the gradient of a sensory signal is an efficient foraging strategy for finding a strong source in nonturbulent environments or on a microscopic scale, as demonstrated, for example, by theoretical and experimental studies of bacterial chemotaxis (1, 11). However, for weak sources, or on a macroscopic scale that is characterized by turbulent flows, the signal coming from a source is typically broken into random, sparse, and disconnected patches (12). Without a continuous gradient, a different strategy is needed to read and use information from these patches about the location of the source (13). Vergassola et al. (14) presented a foraging algorithm based on maximizing the information that an agent has about the location of a source and showed that it is highly efficient in finding a sparsely signaling source in a turbulent environment. These infotaxis search trajectories resemble the paths of foraging insects, suggesting a biological implication of this model.
In nature, many species, including bacteria (15), amoebae (16), insects (17, 18), fish (19), birds (3), and mammals (20, 21), display complex group behavior, including foraging. The mechanisms that underlie group behavior have been of great experimental and theoretical interest, focusing on the computation that each individual performs (22–24) and emergent collective behavior (24, 25). In terms of social behavior, such models have been used to describe exploration and exploitation of the environment, finding food or mates, decision making (26–29), and altruistic and opportunistic behavior, as well as the design of systems of conflicting components (30) and distributed algorithms (31).
We present a model of foraging in a group that combines infotaxis and social interactions, using information as a unifying principle. In this socialtaxis model, agents seek a signal-emitting source, using the information they receive through their own “senses” and information they receive from other agents or that they infer from the behavior of their conspecifics. We show that certain forms of socialtaxis allow a collection of opportunistic individuals to find the source considerably faster than a collection of independent agents and comparable to the case of agents sharing all their sensory information and decision making using a centrally managed strategy (which is exponentially more expensive). Moreover, we find that coordinated group behavior emerges in a collection of selfish individuals each maximizing their own goal. We further present biologically plausible versions of socialtaxis, in which agents share little or no information, and its robustness to various forms of noise. Finally, we show socialtactic optimal behaviors in game theory-like settings of competing and opportunistic agents, suggesting a wide range of applications for this model.
From Individual Infotaxis to Socialtaxis
The infotaxis algorithm (14) describes a strategy for individual foraging in space, where an agent (or animal) moves to maximize the information it has about the location of a stationary source that emits signals (or particles) in random directions at a low rate. In its discretized version, the search space is divided into “cells,” and the agent estimates at each time a probability map of the possible locations (r) of the source . The entropy of the map at time , given by (32), measures the uncertainty or missing information about the location of the source, in bits. At each time point, the agent may (i) find the source, (ii) detect a signal from the source (“hit”), or (iii) detect nothing. The agent then updates its probability map over the space based on one of these three events and uses the new map to decide whether to move to a neighboring cell or stay still. This decision is based on the expected information it would gain from each possible move, which is given by the expected change in entropy of each of the possible events in that location (finding the source, getting a hit, or not getting a hit), weighted by the probability of occurrence of each event (Materials and Methods). Fig. 1A shows the trajectories of two agents who are independently searching the source using infotaxis in a 2D arena, completely ignoring one another (Movie S1). The paths of these independent agents are typical of individual infotaxis searches (14), resembling trajectories of insects in nature.
Fig. 1.
Characteristic trajectories of pairs of agents searching for a source under different social interaction regimes. Shown are examples of pairs of agents, searching for a source located in the middle of the arena (purple square). Agents begin their search at the top left corner (purple triangles), and their trajectories are marked by blue and green paths, which are becoming lighter with time along the search; the circles on top of the trajectories indicate positions where hits were obtained (main text). The grayscale background represents the mean detection rate, decaying exponentially at large distances. (A) Independent agents, each performing infotaxis and ignoring one another. (B) Distance-dependent socialtaxis agents (Eq. 2) remain close to each other and are slightly more efficient than independent agents. (C) Information-based socialtaxis agents (Eq. 3) start off in different directions, seemingly dividing the search space and then quickly converging, resulting in highly efficient searches. (D) Fully cooperating pairs, who share their hits and coordinate their movements using a joint infotaxis algorithm (Materials and Methods), are highly efficient at finding the source.
If there are other agents (animals) around, then in addition to its own sensory information about the source, each agent may use information it receives from conspecifics or infers from their behavior. We therefore extended the infotaxis algorithm to consider the behavior of groups of agents. Here, each agent moved to minimize a combination of its own entropy (as in infotaxis) and some function of its relation to other agents. Thus, rather than minimizing entropy, each agent minimized a “free energy,” given by
| [1] |
where is the entropy of the probability map of agent , as in the single-agent infotaxis above, is a social interaction term between agent and the rest of the group, and weighs the balance between the individual’s information and its coupling to others. The nature of this socialtaxis model is determined by , or how individuals affect one another, and , the coupling strength or inverse “temperature,” which balances individual information and social interactions: reduces socialtaxis to the standard individual infotaxis behavior of each agent, and implies pure socially driven behavior.
Following many models of collective behavior, a natural choice for the relation between individuals would be one that is determined by the physical distance between them. We consider here the case where the free energy of agent is given by
| [2] |
where is the Euclidean distance between agents and , is a tunable parameter that determines the scaling of the distance between agents, and the summation goes over all group members. We explored the behavior of groups of 2–20 agents searching for a single sparse source in a 2D arena and found that for each choice of , there was an optimal that was always positive and minimized the time needed for the first member of the group to find the source (Distance-Based Socialtaxis). However, even for the optimal values, the improvement in search time compared with independent agents was very small (more below). Fig. 1B shows an example of the cohesive trajectories of two coupled agents with their optimal (Movie S1).
We then considered a socialtaxis model in which social interactions were based on the information that agents have and not their physical locations. Here each agent aims to minimize the combination of its entropy and the overlap in the information it has in common with the other agents,
| [3] |
where and are the probability maps of agents and , and is the Kullback–Leibler divergence (32) between probability maps, which measures in bits the dissimilarity between the distributions. For positive this social term would drive agents to make their probability maps different from one another (constrained by the individual infotaxis term), whereas for negative the social term would drive agents to merge their knowledge and make their individual maps more similar. Fig. 1C shows the trajectories of two agents under this model with strong coupling , reflecting their seemingly diverging yet highly time-efficient paths toward the source (Movie S1). The agents’ trajectories are qualitatively different from the independent or distance-based algorithm and are similar to the trajectories of fully cooperating agents who use a joint probability map based on their joint hits, and individual movements are determined by a joint infotaxis strategy (Fig. 1D, Movie S1, and Materials and Methods).
We simulated the different socialtaxis models, under different parameter values, each with 3,000 randomly chosen initial configurations of the agents and the location of the source (to avoid any effects of specific choice of configuration, see also ref. 33). As the example trajectories in Fig. 1 reflect, the distance-based socialtaxis enabled the agents to find the source a little faster than in the case of independent agents, but they were much slower than the fully cooperating agents (Fig. 2A), even with an optimal choice of , which we had to find numerically. A spring-like interaction between agents that drove them toward a nonzero distance gave qualitatively similar results, whereas negative values, typically resulted in failure to find the source at all.
Fig. 2.
Socialtaxis efficiency becomes optimal with strong information social coupling. (A) Mean search time vs. coupling strength for two foraging agents using either information-based socialtaxis (red) or a distance-based one (purple, ). Search times are shown for two independent (gray) and fully cooperating agents (blue), with search times rescaled such that the search time of two independent agents is set to 1. Results shown are averaged over , randomly chosen configurations of the initial positions of the agents and the source; shaded regions and error bars represent SEM. Negative values led to failed searches. (B) Average distance between agents vs. time for different coupling strengths . (C) Average distance between the source and the agent that finds it vs. time. Results in B and C are averaged over , simulations of two agents, with the source in the center and agents starting near one another, close to one of the corners. (D) Trajectories of two independent infotactic agents are overlaid with marking of the points where a socialtaxis agent with the same information would choose a different direction; the direction of the socialtaxis agent is shown by an arrow; other details are as in Fig. 1.
In clear contrast, the information-based socialtaxis showed a clear and abrupt decrease in search time compared with that of independent agents (Fig. 2A). Importantly, the performance of agents improved monotonically as increased, and with large this model was on par with the case of fully cooperating agents. This optimal behavior did not require any tuning of model parameters, which we show analytically (Analytical Analysis of the Functional Dependence of the Search Times on Coupling Strength). Notably, negative values, which intuitively might seem to enable agents to average their information and filter noise, resulted in failure to find the source in almost all cases (compare Movie S2 for and Movie S3 for ).
The nature of trajectories of the agents in the information-based socialtaxis delineates its efficiency: Because of the social information term, agents “repel” each other early on, more strongly as is increased (Fig. 2B), which leads to an effective division of the search space. Later in the search, the social interaction is constrained by the individual knowledge, which results in faster and more accurate convergence toward the source. Accordingly, information coupling between agents reduced the characteristic long “overshoots” in the initial part of the trajectories seen in standard infotaxis that take them away from the source ( in Fig. 2C). This is further reflected by comparing the individual locations along the path, where infotactic and socialtactic agents would move in different directions (Fig. 2D). Notably, information-based socialtaxis is robust to different kinds of variations, such as the starting distances from source, the size and shape of the arena, strength of the source, and decay length of the signal from the source (Socialtaxis Is Robust to a Multitude of Environments and Wrong Modeling of the Environment and Fig. S1), as well as different forms of sensory, odometry, or computational noise (Figs. S2 and S3). It was also highly efficient in reducing search times in a 3D space compared with the case of independent agents (Fig. S1E).
Fig. S1.
Robustness of socialtaxis to various environmental parameters. (A) Mean search time vs. emission rate of the source . (B) Mean search time vs. the correlation length of the source . (C) Mean search time vs. arena size. (D) Mean search time vs. emission rate in the model held by the agent when the real emission rate is . (E) Mean search time vs. the correlation length of the source in the model held by the agent , when the real correlation length is . All results are for two agents with the source located in the middle, and the agents start close together on a circle of radius , with the arena size. Gray curves correspond to infotaxis agents and red curves to socialtaxis agents. (F) Mean search time vs. the coupling strength for three agents in a 3D search space. The search times for three independent agents and three cooperating agents are shown for comparison.
Fig. S2.
Effect of noise on independent and coupled agents. (A) Mean search time as a function of sensory noise, measured by the probability to miss a hit, for two independent and strongly coupled agents, with , averaged over 3,000 random starting configurations. (B) Mean search time as a function of odometry noise. This noise is modeled as a perturbation in an agent’s updating of its probability map: At each update the agent’s estimate of its own location is randomly shifted from its true position within a square, whose side length is given by the “self-position error.” (C) Mean search time for two agents who share inaccurate information with one another. Here Gaussian white noise was added to the probability of each cell, after which the map was normalized. The noise was drawn from a normal distribution with mean zero and SD , where is the mean probability of all cells, and is the “relative probability error.” (D) The same as C, but using the Gaussian approximation scheme (Fig. 4C), with the peak position randomly shifted within a square, whose side length is given by the “maximal peak shift.”
Fig. S3.
Agents with different models of the environment. One of the agents had the correct model of the environment , whereas the other one had a wrong model for the source emission rate . Results are averaged over 3,000 random starting configurations, and error bars indicate SEM. (A) Mean search time vs. for different values of . (B) Probability for the agent with the wrong model to find the source vs. , for several values of that agent’s model emission rate .
Distance-Based Socialtaxis
Extending the analysis of the distance-based socialtaxis introduced in Eq. 2 of the main text, we present in Fig. S2 the mean search time vs. for different values of and different group sizes . For all values of and all group sizes explored, search time had a minimum value we denoted as , which was evaluated numerically over a large range of values. For weaker couplings, namely , agents’ performance was similar to the case of independent agents, whereas for strong coupling, , the social term dominated, driving the agents toward each other rather than toward the source.
We note that the optimal value should occur when the contributions from the two terms in Eq. 1 are of the same order of magnitude, or when
| [S1] |
where refers to the differences between the possible directions the agent can move (for simplicity we consider the case of two agents). The difference in the social term from agent moving toward or away from it is given by
| [S2] |
where we used the binomial theorem and kept only the leading term. Substituting Eq. S2 into Eq. S1, and solving for , we get an analytic approximation for the optimal value of ,
| [S3] |
where we used as a typical value for the difference in the reduction in entropy between possible movement directions. Substituting (37), we can find an approximate analytic value for and compare it to the value found numerically, . Fig. S2D shows this method provides a reasonable estimate and can serve as a good value to initialize a numeric search.
Analytical Analysis of the Functional Dependence of the Search Times on Coupling Strength
To further understand the behavior of information socialtaxis we can rewrite the free-energy Eq. 3,
| [S4a] |
| [S4b] |
| [S4c] |
| [S4d] |
The first term inside the brackets in Eq. S4c is the Kullback–Leibler divergence (32) between and , which obtains its minimal value when the two distributions are identical. The second term, or cross-entropy, obtains its maximal value when . Thus, we can interpret Eq. S4c as a combination of a term driving the distributions to be different and another term, which we can view as a constraint, driving the distributions to be more similar. The weight of the constraint decreases monotonically with , which explains why the search time has a monotonic dependence on . Eq. S4d shows that choosing a social term with coupling strength is equivalent to choosing with a weight factor , which is bounded between 0 when and 1 when , implying that the behavior of the agents should converge asymptotically as . We point out that this result does not necessarily mean that the search time should decrease, but that it should converge asymptotically toward some value.
Socialtaxis Is Robust to a Multitude of Environments and Wrong Modeling of the Environment
In the main text, the analysis of the socialtaxis algorithm was shown for a source strength , emitting one particle per time step, with correlation length of , as in ref. 14 (Materials and Methods). Here we present the analysis of the robustness of the socialtaxis model following ref. 37 where we manipulated source strength, the layout of the arena, signal transport, particles’ lifetime, and more, for the case of two socialtaxis agents with a strong coupling of . We found that the mean search time for socialtaxis agents is more efficient than that for independent infotaxis agents, except for very low emission rates (Fig. S1A). Socialtaxis was also much more efficient than independent infotaxis for a wide range of correlation lengths (Fig. S1B).
Rodriguez et al. (33) demonstrated the considerable effect of the geometry of the arena on the search times in infotaxis. To avoid a bias resulting from an arbitrary choice of initial configurations the values presented in Figs. 2A and 4 in the main text were the search times for randomly chosen initial configurations, but the size of the arena was fixed to a square arena of side length . Testing socialtaxis and infotaxis under different arena sizes and in rectangular arenas showed clearly the superiority of socialtaxis (Fig. S1C). In all of these cases, we assumed that the agents had a correct estimate (or prior) for the strength of the source. We found that both infotaxis and socialtaxis demonstrated a sharp increase in search times as the difference between the agents’ model of and the real emission rates increased, and socialtaxis agents (who found the source for any value of tested) were more efficient than infotaxis agents except for very low model emission rates (Fig. S1D). Similarly, if the agents had a wrong prior for the correlation length of the source, then for most values of , socialtaxis agents were more efficient in finding the source, where (Fig. S1E). In Fig. S1F we plot the mean search time vs. in a 3D search arena (36) and the qualitative behavior is similar to the case of 2D. Here, the side length of a the cubed arena is , and . We note, however, that the search times of socialtaxis do not reach the values obtained by fully cooperating agents in this case. We conclude that socialtaxis works efficiently in a wide range of conditions (compare ref. 37) and is more efficient than infotaxis in almost all cases.
Fig. 4.
Biological relevance and extensions of socialtaxis: diverse coupling strength, limited information sharing, and inference. (A) Mean search time of pairs of agents for different combinations of individually different couplings between them. Each line shows for a given coupling strength between 2 and 1, , the search time as a function of the coupling from 1 to 2, . (B) The probability that agent would be the first one to find the source is shown as a function of the coupling strength from 1 to 2, , whereas is held fixed at different values. Results for A and B are averaged over 3,000 random starting configurations. (C) Mean search time vs. coupling strength for two socialtaxis agents that share their respective maps with one another as above (dark red) and the search time when they share just the peak of a Gaussian fit with a predetermined variance to their map (dark blue). For the normalized mean search time for agents that do not share information, but infer their respective maps from the movement of other agents, inference of the full map based on estimated hits (pink) gives very small improvement compared with the case of independent agents (gray), whereas inferring only the peak location using GLM gives a significant improvement (light blue). Search times are normalized by the search times of two independent agents (set to 1). Error bars shown are SEM.
Emergent Group Behavior of Opportunistic Socialtaxis Agents Maximizing Their Information Gain
An emerging spatial collective behavior in the information-based socialtaxis becomes apparent when we study the trajectories of agents in larger groups (Fig. 3A and Movie S4). For a given group size , increasing the weight of the social term resulted in a faster finding of the source (Fig. 3B). For a given value, the dependency on group size showed monotonic improvement in search time, hinting at the possibility of a power-law scaling (Fig. 3B, Inset). Again, large groups of agents that relied on distance-based socialtaxis showed only a small improvement in search times compared with those of independent agents, even in the best case (), and required fine tuning of model parameters (Fig. S4).
Fig. 3.
Information socialtaxis in large groups and the emergence of collective behavior. (A) Examples of 30 agents performing infotaxis independently (Top) and information-based socialtaxis with (Bottom). Each panel shows a snapshot in time of the agents. Starting area of agents is shown by a purple triangle and the source by a purple square. For presentation clarity, source is shown to be larger than its actual size, which is a single lattice site. (B) Mean search time for different group sizes , performing information-based socialtaxis. Results are for 250 different groups and error bars show SEM. B, Inset shows mean search time as a function of group size for two values of . (C) Difference in information gain between agents in information socialtaxis and independent agents as a function of time. C, Inset shows the average entropy of agents in the two cases as a function of time. Gray line shows the mean residual entropy when the source is found. (D) Average probability of an agent to be in a close group (cluster) with other agents (dotted lines) or alone (solid lines) vs. time for infotaxis and socialtaxis (see Materials and Methods for details). (E) Distribution of distances of agents from the source when the first agent has found it, for independent infotaxis agents and information socialtaxis ones. Groups started from the same initial conditions in both cases, and distributions are averaged over 1,000 random simulations.
Fig. S4.
Performance of distance-based socialtaxis. (A–C) Mean search time vs. for different group sizes for . Note that the axes are plotted in a logarithmic scale, and the search time for is added for comparison (double line indicates discontinuity in the values). (D) Optimal coupling strength vs. the scaling value (Eq. 2). Both numeric values from simulations and the analytic approximation (Eq. S4) are shown.
The socialtactic agents gain information about the source at a rate that is similar to that of independent agents in the initial parts of their search, but the social interactions boost the rate of information gain significantly later on (Fig. 3C). Consequently, when the first agent finds the source, all other agents have also gathered much more information. The information socialtaxis keeps agents consistently less clustered spatially than independent agents (Fig. 3D), yet when the first agent finds the source (faster), they are all much closer to it than in the case of independent agents (Fig. 3E). Thus, whereas there is no obvious residual N dependence of information sharing in terms of time to source of the first agent, there is clear benefit for the rest of the group: Even if the other agents did not know that the first agent had found the source, they would still find it faster as the coupling becomes stronger (Fig. S5 and Socialtaxis Is Efficient for the Group, Beyond the First “Finder”). Consequently, the group demonstrates a spatial “social structure” and coherent movements, despite the lack of an explicit spatial term in the model.
Fig. S5.
Benefits of information socialtaxis for other agents, after the first one has found the source. (A) Normalized time it takes the second agent in a pair to find the source, as a function of . Here, once the first agent has found the source, it disappears and the second agent continues by infotaxis. (B) Residual search time (the number of steps after the first agent has found the source) of the second agent vs. .
Information Socialtaxis Is Efficient for the Group, Beyond the First “Finder”
Whereas information socialtaxis is efficient for the group in terms of the time it takes the first agent to find the source, we then asked how it affects the rest of the agents. We recall that Fig. 3E showed that the other agents are closer to the source once the first agent has found it, compared with noninteracting groups. However, this does not necessarily mean they have more useful information at that point. We therefore simulated pairs of agents performing information socialtaxis, but when the first agent found the source, we made that agent “disappear,” and the other agent continued its search using the standard infotaxis search. Fig. S5A shows the second agent is also more efficient in finding the source when it used the social term in the beginning of the search, supporting the conclusion implied from Fig. 3E. Fig. S5B indicates that information socialtaxis is even more efficient for the group, showing the residual search time for the group, namely the time it took the second agent to find the source after it was found by the first agent, was also shorter for socialtactic groups.
Biologically Plausible Socialtaxis and Optimal Behavior of Selfish, Opportunistic, or Altruistic Agents
How relevant is socialtaxis for real animal groups? First, we considered a more biologically realistic case, where each individual may be coupled differently to its conspecifics—as these couplings may be innate or learned from experience. Focusing on pairs of agents, we find that for a given coupling value of agent 2 to agent 1, , the mean time to find the source decreased monotonically as a function of the reciprocal coupling (Fig. 4A). Thus, even when each agent can have an individually chosen coupling to the others, strong couplings are beneficial for the group as a whole. However, the optimal coupling value that would benefit an individual’s chances of finding the source are different from what would be good for the group: For a given value of the optimal that would raise the probability for agent to find the source first has a peak at , regardless of the value of (Fig. 4B). Thus, optimizing group success or individual success requires very different coupling values. Still, even the most opportunistic choice of coupling values was more efficient for the group than the case of independent agents and would benefit the group.
The critical question of relevance of the socialtaxis model to real animals is the feasibility of information sharing between agents (34). Surprisingly, we found that even a very limited form of information sharing gives a highly efficient socialtaxis: If instead of sharing their full probability map at each time point (which is obviously biologically unrealistic), agents shared only the location of the peak of a Gaussian that approximates their current probability map, the search time of the group was comparable or even better than the case where the whole map was shared (Fig. 4C). Interestingly, the difference between the sharing of just the peak and that of their full maps was most apparent for weak coupling between agents; for strong couplings the different models showed stable asymptotic behavior (Fig. S6 and Exploring the Peak Inference Algorithm).
Fig. S6.
Analyzing the peak inference algorithm. (A) Mean search time vs. coupling strength for the same search schemes shown in Fig. 4C, now shown for stronger coupling values. Results are averaged over 3,000 random starting configurations, and error bars indicate SEM. (B) Distance of real to estimated peak vs. time, with the peak estimated using a GLM as described in the main text and in Materials and Methods. This is shown for independent agents (), at the optimal coupling (), and for strongly coupled agents ().
Whereas this limited-bandwidth information sharing could be relevant for animals that actively communicate with one another, we further asked whether socialtaxis could work without any form of communication between individuals. We found that even if agents did not share any information, but instead tried to infer information about the source from their conspecifics based only on observing their behavior, they were able to perform a highly beneficial socialtaxis. Here, each of the agents used a simple generalized linear model (GLM) that estimated the peak position of the map of the other agent, based on its trajectory, which led to a substantial decrease in search time. This GLM-based inference model was less efficient than the information-sharing socialtaxis, but was still able to get the agents to find the source in of the time needed by independent agents. We emphasize that this model is only a lower bound on how well inference-based socialtaxis can work, and therefore conclude that such an approach can be highly efficient with low computational cost for individual agents and is biologically feasible, in terms of memory and computational simplicity.
Exploring the Peak Inference Algorithm
The most biologically plausible version of socialtaxis is probably the one displayed in Fig. 4C, where agents do not communicate at all, but infer the position of the peak of their conspecifics based on their trajectories. The inference is described in Materials and Methods. In brief, the agents estimate the location of the peak from the other agent’s trajectory, using a GLM, with the agent’s position as the features of the model. The inference, and the use of the social term, is done only in the interval , and the estimated peak position is updated every five steps. To better understand the nature of the algorithm we plot in Fig. S6A the mean search time vs. the strength of coupling for the same search schemes as in Fig. 4C, now presenting the behavior at strong couplings.
In Fig. S6B we present the accuracy of the peak estimation at the optimal coupling () and for strongly coupled agents (). The error in estimating the location of the other agent’s peak is very similar for both coupling strengths. This suggests that the increase in search times as is increased is not a result of a less accurate peak estimation, but of giving too strong a weight to an inaccurate peak position.
Discussion
We have introduced a model and algorithm for group foraging in complex environments where each agent aims to maximize the information from its own sensory perception and minimize the overlap in information it has with group members. Increasing the information diversity between members made the group highly efficient, similar to fully cooperating, optimally managed agents, in clear contrast to the small improvement achieved by models of group behavior that rely on the physical distance between individuals. Importantly, information socialtaxis did not require parameter tuning and was efficient under various variations of the model and robust to a multitude of noise sources. Most interestingly, biologically plausible versions of the model, based on limited or no information sharing, proved to be similar to or even better than the full model, making it a compelling framework for considering behavior of real animals.
Modeling individual behavior in a group, as an optimization problem combining self-information and group information, unifies the ideas of gradient-based search using sensory signals; social interactions; and game theory notions of opportunism, individualism, and group benefits. The success of our model challenges the commonly used models of group behavior based on distance or explicit spatial organization—suggesting information as key sufficient substance of sensory processing and collective behavior. In addition to being a biologically plausible, robust, and efficient model of group behavior in a variety of settings, socialtaxis suggests a potential design for new algorithms for distributed searching and learning.
Our framework also naturally exemplifies the benefits of diversity in groups and the qualitatively different collective behaviors that may arise from individual traits. Whereas these ideas have obvious parallels in game theory and behavioral economics, we note the relation of information-based socialtaxis to the studies of decorrelation and redundancy reduction as an optimization principle in neural coding (35). We thus suggest that information socialtaxis can be readily extended to explore animal groups; artificial agents; or other systems in which group relations can be learned or dynamically modulated; and groups in which individuals have different innate behaviors, preferences, or motivations.
Materials and Methods
Model of the Environment.
A single source at an unknown location in a finite environment is emitting particles with finite lifetime at a rate of particles per second in random directions, advected by a mean wind and diffusing Brownianly, with diffusivity ; for other conditions, see Effect of Noise on Independent and Social Agents. The average concentration field at position r is a solution of the advection–diffusion equation, which for a constant diffusion coefficient and incompressible flow gives (with advection flowing in the negative direction) in the two-dimensional case a hit rate of
| [4] |
where is the monotonically decreasing modified Bessel function of the second kind of order zero, and is the correlation length of the source. Here we focus on the case with no wind , which has been shown to be the most difficult one (14, 36).
Infotaxis.
The infotaxis algorithm is described in the main text and in detail in ref. 14. Briefly, an agent searching for the source decides on its move at time based on the expected change in entropy of the probability distribution over the locations of the source, from each of the possible moves from its location . This is given by weighting the change of entropy from finding the source, getting a hit or “no hit” by their relative probabilities
| [5] |
where the first term on the right-hand side is the weighted value of the vanishing entropy from finding the source when moving to (“exploitation term”); and the second term is the sum of change in entropy from a hit and a no hit in that location weighted by their probabilities, where is the probability to get hits at . As in ref. 14, we neglect the case of due to sparseness of the source.
Estimating and Updating the Probability Map of an Agent.
At each time point, an agent estimates the expected number of hits at position r by . Assuming independent hits the probability to obtain hits is given by a Poisson distribution, and then using the posterior map of a hit trace, the updated map is given by
| [6] |
where stands for the agent obtaining (not obtaining) a hit during this time step, is a normalization factor of the posterior probability, and the probability in visited sites is set to zero.
Model of Fully Cooperating Groups.
Following Masson et al. (37), we consider the case of fully cooperating groups where agents shared a single probability map, updated at each step based on the hits/no hits of all agents,
| [7] |
where denotes the number of agents in the group, denotes the position of agent , corresponds to agent obtaining (not obtaining) a hit during this time step, is the normalization factor, and the superscript indicates this map is shared by all agents. The decision on where to move is also coordinated as the agents evaluate all of the possible joint moves of the group. We note that the number of possible actions the group can take on a 2D square lattice is , which limits the size of the group that could use this algorithm due to the exponential growth in computational cost.
Spatial Organization of Groups of Agents.
Analyzing behavior of large groups, “in cluster” and “isolated” agents were defined according to the number of conspecifics inside the neighborhood of an agent, which was defined as a circle of radius around it. In cluster was defined as and was defined as isolated. Here we used , , and , but different choices of parameters , , and gave qualitatively similar results.
Inference Model of Another Agent’s Probability Map Based on Its Trajectory.
Two inference models of the map of other agents were used to explore socialtaxis without sharing of information between agents. In the full-map inference model, agent iteratively used its current model of the map of agent , , to assess the likelihood that the recent move of was the result of a hit, and from the inferred hits, it estimated the probability map of the other agent (in the common case where both events would result in the same movement we assumed that assigned a hit to with a probability based on the map that had at that time). Trying to infer hits using longer memory of past behavior of the other agents gave a small improvement of performance, but at an exponential computational cost. In the peak inference case, each agent tried to infer the location of the peak of the probability map of other agents, using a GLM. The and coordinates of the peak were estimated independently of each other with different models, where the past positions of the other agent were weighted and fed to a nonlinear function, to estimate the or location of the peak. We learned a separate model for a different starting region of the agents (space was split into 64 different 7×7 starting regions), and each model was trained using simulated trajectories. This procedure was performed separately for every coupling strength . In that case, the inferred map that has of , , was a Gaussian fit to the estimated peak position at , with variance predetermined as in the regular Gaussian case described in the main text. To make this algorithm more stable and computationally compact, we used a limited temporal window for the social term, , and the estimate of the location of the peak was updated only every five steps.
Effect of Noise on Independent and Social Agents
An animal (agent) searching for a source might be influenced by several sources of noise. These include sensory noise in perceiving the stimulus, inaccuracy in estimating its own location, or, in the case of socialtaxis, receiving inaccurate or noisy information from other group members. We therefore explored the effect of several noise sources on independent and socialtactic agents: We simulated the noise in the agents’ sensory perception by assigning a random probability for missing a hit, which we denote as p(missing a hit). In Fig. S3A we plot the mean search time for two independent and two socialtactic agents vs. the probability to miss a hit and find that for low noise socialtactic agents are more efficient at finding the source, whereas for high noise the inverse holds. The probability to miss a hit is equivalent to having a weaker source; hence these results are in agreement with those shown in Fig. S1A, which demonstrated that for very weak sources infotaxis is slightly more efficient than socialtaxis. Another form of potential noise that might affect the agents is odometry noise, meaning the agent’s estimate of its own location is inaccurate. Fig. S3B shows that for independent agents the search time increases with odometry noise, whereas for coupled agents, the information arriving from the other agent corrects these errors, and their search time is practically independent of the odometry noise we simulated.
Another source of noise may be social, which in this case would mean that the social information sent by the other agent or received from it may be corrupt. We simulated this scenario by adding Gaussian white noise to the probability map of agent , ; noise was added independently to each cell. Thus, the social term of agent was now given by the divergence from the noisy map, . We found that socialtaxis is more efficient up to very large noise levels (Fig. S3C). An analogous situation may occur when agents use the Gaussian approximation of the other agent’s map in the social term, captured here by randomly shifting the peak position. Fig. S3D demonstrates again that for low and moderate noise levels socialtaxis is more efficient, whereas at very high noise levels the use of an inaccurate social term increases search times. We note that we assumed here that agents trusted their conspecifics completely. Adding an uncertainty about the information coming from others would probably improve the results even more.
Another possible social noise may arise in the case where agents have different models of the environment. We focus on the case of two agents, where one of the agents has the correct estimate of the strength of the source , whereas the other agent has a wrong estimate of the source emission rate . In Fig. S4A we plot the mean search time vs. for different values of and note that in all cases the search time decreases monotonically with . Furthermore, we note that if one of the agents overestimates the source strength, there is a decrease in the mean search time. In Fig. S4B we note that if an agent underestimates the strength of the source, it had a higher probability to find it, for the case of weak couplings between the agents (whereas overestimating the strength of the source decreases the agent’s probability to find it). For strong couplings, these differences vanish, and the probability to find the source becomes independent of the model emission rate for all values explored.
Supplementary Material
Acknowledgments
We thank Roy Harpaz, Ori Maoz, Oren Forkosh, Aia Haruvi, Rachel Ludmer, Amir Bar, Ofer Feinerman, and Gasper Tkacik for discussions. This work was supported by a Human Frontier Science Program, European Research Council Grant 311238 and an Israel Science Foundation Grant 1629/12, as well as research support from Martin Kushner Schnur and Mr. and Mrs. Lawrence Feis.
Footnotes
The authors declare no conflict of interest.
This article is a PNAS Direct Submission.
This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10.1073/pnas.1618055114/-/DCSupplemental.
References
- 1.Berg HC, Purcell EM. Physics of chemoreception. Biophys J. 1977;20:193–219. doi: 10.1016/S0006-3495(77)85544-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Barkai N, Leibler S. Robustness in simple biochemical networks. Nature. 1997;387:913–917. doi: 10.1038/43199. [DOI] [PubMed] [Google Scholar]
- 3.Cavagna A, et al. Scale-free correlations in starling flocks. Proc Natl Acad Sci USA. 2010;107:11865–11870. doi: 10.1073/pnas.1005766107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Nagy M, Akos Z, Biro D, Vicsek T. Hierarchical group dynamics in pigeon flocks. Nature. 2010;464:890–893. doi: 10.1038/nature08891. [DOI] [PubMed] [Google Scholar]
- 5.McNaughton BL, Battaglia FP, Jensen O, Moser EI, Moser M. Path integration and the neural basis of the cognitive map. Nature. 2006;7:663–678. doi: 10.1038/nrn1932. [DOI] [PubMed] [Google Scholar]
- 6.Egnor S, Branson K. Computational analysis of behavior. Annu Rev Neurosci. 2016;39:217–236. doi: 10.1146/annurev-neuro-070815-013845. [DOI] [PubMed] [Google Scholar]
- 7.Viswanathan G, et al. Levy flight search patterns of wandering albatrosses. Nature. 1996;381:413–415. doi: 10.1038/nature06199. [DOI] [PubMed] [Google Scholar]
- 8.Viswanathan GM, et al. Levy optimizing the success of random searches search patterns of wandering albatrosses. Nature. 1999;401:911–914. doi: 10.1038/44831. [DOI] [PubMed] [Google Scholar]
- 9.Pirolli P. Information Foraging Theory: Adaptive Interaction with Information. Oxford Univ Press; New York: 2007. [Google Scholar]
- 10.Bonabeau E, Dorigo M, Theraulaz G. Swarm Intelligence: From Natural to Artificial Systems. Oxford Univ Press; New York: 1999. [Google Scholar]
- 11.Berg HC. Random Walks in Biology. Princeton Univ Press; Princeton: 1993. [Google Scholar]
- 12.Shraiman BI, Siggia ED. Scalar turbulence. Nature. 2000;405:639–646. doi: 10.1038/35015000. [DOI] [PubMed] [Google Scholar]
- 13.Mafra-Neto A, Carde RT. Fine-scale structure of pheromone plumes modulates upwind orientation of flying moths. Nature. 1994;369:142–144. [Google Scholar]
- 14.Vergassola M, Villermaux E, Shraiman BI. Infotaxis as a strategy for searching without gradients. Nature. 2007;445:406–409. doi: 10.1038/nature05464. [DOI] [PubMed] [Google Scholar]
- 15.Waters CM, Bassler BL. Quorum sensing: Cell-to-cell communication in bacteria. Annu Rev Cell Dev Biol. 2005;21:319–346. doi: 10.1146/annurev.cellbio.21.012704.131001. [DOI] [PubMed] [Google Scholar]
- 16.Gregor T, Fujimoto K, Masaki N, Sawai S. The onset of collective behavior in social amoebae. Science. 2010;328:1021–1025. doi: 10.1126/science.1183415. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Gordon DM. The organization of work in social insect colonies. Nature. 1996;380:121–124. [Google Scholar]
- 18.Gelblum A, et al. Ant groups optimally amplify the effect of transiently informed individuals. Nat Commun. 2015;6:7729. doi: 10.1038/ncomms8729. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Sumpter DJT. The Principles of Collective Animal Behaviour. Princeton Univ Press; Princeton: 2010. [Google Scholar]
- 20.Strandburg-Peshkin A, Farine DR, Couzin ID, Crofoot MC. Shared decision-making drives collective movement in wild baboons. Science. 2015;348:1358–1361. doi: 10.1126/science.aaa5099. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Shemesh Y, et al. High-order social interactions in groups of mice. Elife. 2013;2:e00759. doi: 10.7554/eLife.00759. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Vicsek T, Czirok A, Ben-Jacob E, Cohen I, Shochet O. Novel type of phase transition in a system of self-driven particles. Phys Rev Lett. 1995;75:1226–1229. doi: 10.1103/PhysRevLett.75.1226. [DOI] [PubMed] [Google Scholar]
- 23.Ballerini M, et al. Interaction ruling animal collective behavior depends on topological rather than metric distance: Evidence from a field study. Proc Natl Acad Sci USA. 2007;105:1232–1237. doi: 10.1073/pnas.0711437105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Couzin ID, Krause J, James R, Ruxton GD, Franks NR. Collective memory and spatial sorting in animal groups. J Theor Biol. 2002;218:1–11. doi: 10.1006/jtbi.2002.3065. [DOI] [PubMed] [Google Scholar]
- 25.Mora T, Bialek W. Are biological systems poised at criticality? J Stat Phys. 2010;144:268–302. [Google Scholar]
- 26.Couzin ID, Krause J, Franks NR, Levin SA. Effective leadership and decision making in animal groups on the move. Nature. 2005;433:513–516. doi: 10.1038/nature03236. [DOI] [PubMed] [Google Scholar]
- 27.Franks NR, Pratt SC, Mallon EB, Britton NF, Sumpter DJT. Information flow and opinion polling and collective intelligence in house-hunting social insects. Philos Trans R Soc Lond B Biol Sci. 2002;357:1567–1583. doi: 10.1098/rstb.2002.1066. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Simons AM. Many wrongs: The advantage of group navigation. Trends Ecol Evol. 2004;19:453–455. doi: 10.1016/j.tree.2004.07.001. [DOI] [PubMed] [Google Scholar]
- 29.List C. Democracy in animal groups: A political science perspective. Trends Ecol Evol. 2004;19:168–169. doi: 10.1016/j.tree.2004.02.004. [DOI] [PubMed] [Google Scholar]
- 30.Livnat A, Pippenger N. An optimal brain can be composed of conflicting agents. Proc Natl Acad Sci USA. 2005;103:3198–3202. doi: 10.1073/pnas.0510932103. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Passino KM. Biomimicry of bacterial foraging for distributed optimization and control. IEEE Contr Syst. 2002;22:52–67. [Google Scholar]
- 32.MacKay DJC. Information Theory, Inference and Learning Algorithms. Cambridge Univ Press; Cambridge, UK: 2003. [Google Scholar]
- 33.Rodriguez JD, Gomez-Ullate D, Mejia-Monasterio C. Geometry-induced fluctuations of olfactory searches in bounded domains. Phys Rev E. 2014;89:042145. doi: 10.1103/PhysRevE.89.042145. [DOI] [PubMed] [Google Scholar]
- 34.Korman A, Greenwald E, Feinerman O. Confidence sharing: An economic strategy for efficient information flows in animal groups. PLoS Comput Biol. 2014;10:e1003862. doi: 10.1371/journal.pcbi.1003862. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Barlow H. Redundancy reduction revisited. Network. 2001;12:241–253. [PubMed] [Google Scholar]
- 36.Barbieri C, Cocco S, Monasson R. On the trajectories and performance of infotaxis and an information-based greedy search algorithm. Europhys Lett. 2011;94:20005. [Google Scholar]
- 37.Masson JB, Bailly-Bechet M, Vergassola M. Chasing information to search in random environments. J Phys A Math Theor. 2009;42:434009. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.










