Submitted:
17 October 2023
Posted:
19 October 2023
You are already at the latest version
Abstract
Ant Colony Optimization (ACO) is a stochastic optimization algorithm inspired by the foraging behavior of ants. We investigate a simplified computational model of ACO, wherein ants sequentially engage in binary decision-making tasks, leaving pheromone trails contingent upon their choices. The quantity of pheromone left is the number of correct answers. We scrutinize the impact of a salient parameter in the ACO algorithm, specifically, the exponent \(\alpha\) that governs the pheromone levels in the stochastic choice function. In the absence of pheromone evaporation, the system is accurately modeled as a multivariate nonlinear P\'{o}lya urn, undergoing a phase transition as \(\alpha\) varies. The probability of selecting the correct answer for each question asymptotically approaches the stable fixed point of the nonlinear P\'{o}lya urn. The system exhibits dual stable fixed points for \(\alpha\ge \alpha_c\) and a singular stable fixed point for \(\alpha<\alpha_c\). When pheromone evaporates over a time scale \(\tau\), the phase transition does not occur and leads to a bimodal stationary distribution of probabilities for \(\alpha\ge \alpha_c\) and a monomodal distribution for \(\alpha<\alpha_c\).
Keywords:
Ant colony optimization
; Polya urn process
; phase transition
0. Introduction
"Socio-physics emerged in the 1970s and has evolved into a captivating research field within statistical physics [1,2]. In particular, herding behavior, or the inclination to follow the majority, has captured the attention of many researchers due to its pivotal role in understanding social phenomena [3,4,5,6,7,8]. Various probabilistic models have been proposed to describe herding behavior, with one notable example being the ant recruitment model. This model explains the intermittent oscillation observed in ants when they are presented with two identical food sources [9,10]. When ants choose a food source among two food sources, it incorporates a straightforward herding mechanism in which a randomly selected ant chooses one of the two based on the number of ants that have already made the same choice. Scouts play a crucial role by exploring the terrain to locate food sources [11,12]. When a scout discovers food, it returns to the nest, leaving a pheromone trail in its wake. Other ants are drawn to these pheromone marks and consequently become recruited to forage at the food source."
Ant Colony Optimization (ACO) is a model-based meta-heuristic inspired by the foraging behavior of ants in their search for the shortest path to food sources [13,14,15]. While ants may not be highly intelligent individually, they collectively find the shortest path by following pheromone trails left by their fellow ants. The optimal path is determined by the route on which the maximum number of ants travel[12]. Consider a classic problem known as the traveling salesman problem (TSP), which involves finding the shortest possible route that visits each city in a given list exactly once and returns to the origin city. In ACO, ants make decisions about their next city to visit based on a concept called ’pheromone.’ Pheromone represents the preference for a particular choice and is collaboratively learned by the ants during their search process [16]. In the context of TSP, pheromone values are typically associated with pairs of cities and reflect the preference for traveling from one city to another within the pair. These pheromone values are learned through a reinforcement strategy, where each ant reinforces its chosen paths based on the quality of the solution constructed. This quality is often determined by the inverse of the total length of the route. ACO has found successful applications in various industrial and academic constraint optimization problems and has become one of the most popular methods.
ACO has seen significant improvements, and modern ACO algorithms deviate substantially from the original ACO[17]. The fundamental modification lies in controlling the diversity of solutions and achieving convergence [18,19]. In this context, ’convergence’ refers to the tendency of ants to cluster around similar solutions in the neighborhood and ultimately converge toward the same solution. Early convergence to a small region of the search space leaves large sections of the search space unexplored and fails to find good solutions. On the other hand, very slow convergence means that the computational cost required to reach good solutions is high, rendering the search inefficient. Diversity control aims to prevent complete convergence by slowing down the search process.
Many algorithms have been proposed for controlling the diversity of the ACO algorithm. One of the diversity control mechanisms involves modifying the probabilistic decision function [17,20]. Meyer studied the influence of , the exponent on the pheromone level in the selection function, and suggested that qualitatively determines diversity and convergence behavior. Additionally, he introduced a dynamic that changes throughout the search process to enhance search efficiency, a technique known as -"annealing". In this paper, we study a simple model of ACO in which ants sequentially answer a series of two-choice quizzes. We investigate the phase transition and the qualitative change of the convergence behavior by varying . In Section 1, we introduce a model and derive stochastic differential equations (SDEs) using the diffusion approximation. In Section 2, we investigate the time evolution and examine the effect of on the convergence properties of the solutions. Section 3 provides a summary of the results. Appendix A explains the estimation of the initial conditions for the SDEs.
1. Materials and Methods
There are N two-choice quizzes, each of which is answered by a large number of ants sequentially[21]. These quizzes are labeled by . The answer provided by the t-th ant is denoted as , where indicates a correct answer, and indicates an incorrect answer. Each ant receives 1 point for a correct answer. After ant t has answered all N questions, the total points (TP) earned by the ant can be calculated using the following equation,
Ant t deposits pheromones on his answer . The amount of the pheromones is . We assume that the pheromones evaporate and decrease by per unit time. Here represents the time scale of the pheromone evaporation.
Ant observes the total values of the pheromones associated with question m for each choice . We denote the total value of pheromones that remains on all the questions after ant t has answered,
Then, the remaining pheromone on is,
The remaining pheromone on is given by .
Ants are not highly intelligent, and the probability of them making the correct choice in the two-choice quizzes by themselves is 1/2. The information provided by gives them an indirect clue about the correct choice. If TP, the posterior probability for is larger than . Similarly, if is greater than , the posterior probability for is greater than . In ACO, a decision function is introduced that uses the values of the pheromones as follows,
Here, the exponent determines the response of the choice to the values of the pheromones. is a small positive constant to avoid the absorbing states and of the stochastic process.
We denote the ratio of the remaining pheromones on the correct choices as ,
We divide both the denominator and numerator of eq.(3) by , and the probability of the correct choice is expressed as,
Here, is defined as
We note that and . The slope of at is . We also introduce the discount factor and the ratio of correct answers as,
1.1. Stochastic Differential equation
First, we derive the recursive relation for and . According to the definition, and obey the next recursive relations,
If is finite, for , we have . In the limit , the pheromone does not evaporate, and we have .
For , we can replace the sum of with the sum of the expected values using the law of large numbers. We obtain,
We denote the average of as .
We have
The recursive relation for is
is given as,
In the continuous time limit , we obtain
One see that converges to . However, when the pheromones evaporate and , and the prefactor of the differential equation is . If one assume that the dynamics of is faster than that of (adiabatic approximation), the time scale of the convergence is given by as . When the pheromone does not evaporate and , . The prefactor of the differential equation is , and . The convergence becomes extremely slow.
Next, we study the dynamics of . The recursive relation for is,
is then estimated as,
Using , we obtain
We denote the history of as , and the conditional expected value of is estimated as
Likewise, the conditional variance of can be approximated as,
Here, we neglect the subleading terms in . We read the drift and diffusion term from the results and the SDEs are,
Here, is the Wiener process. Eq.(5) and eq.(7) describe the dynamics of the system. The system can be described as a multi-variate Pólya urn process.
We note that in eq.(6) breaks the symmetry of the system. If one neglects the term, is proportional to . As , holds. and obeys the same dynamics and we call the symmetry symmetry. The term is always positive and drives in the positive direction. As the term is proportional to , the strength of the -symmetry breaking field becomes smaller as N becomes larger.
2. Results
We analyze the SDEs given in eq.(7) and investigate the convergence properties of . As the convergence behavior relies on the initial value of in the context of the non-linear Pólya urn model, we commence by examining the distribution of .
2.1. Initial distribution of
We assume that ants adopt and do not respond to the values of the pheromones for . The ants answer the questions independently and . We estimate and for as follows.
The details of the calculations are given in Appendix A. If is finite, we have for . In the limit , the pheromone does not evaporate and we have .
The essential differences between and include a shift of the expected value by and the presence of a factor of N in the numerator of the variance of . The shift of arises from the fact that in is 1, which is larger than for . The value of the pheromone contains information about the correct choice, leading to . However, in the "cheating" process, the variables are combined by as in eq.(2), resulting in a larger variance for . The factor of N in the numerator of the variance of is a consequence of this combination process.
From the distribution of , one can determine the values of or that guarantee that is greater than 0.5 for the limits and , respectively. With a confidence level of 1%, and should satisfy the following conditions:
2.2. case
We take the limit in eq.(5) and eq.(7). We replace and with and , respectively. This results in the following equations:
The initial conditions of and at are as follows:
In the adiabatic approximation, where the time development of is much faster than that of , the structure of the SDE for each , where , is the same as that of a non-linear P’olya urn [22,23]. The probability for to converge to a stable solution of the following equation is positive[24].
Here, a stable (unstable) solution of eq.(9) means that the curve of the left-hand-side of the equation crosses the diagonal curve in in the downward (upward) direction[24]. We denote the stable and unstable solutions as and , respectively.
In the limit , the positive driving force in eq.(9) disappears. The system becomes symmetric and is a the solution as . If N is finite, the positive driving force breaks the symmetry. We plot in Figure 1. corresponds with and for and . In the left and the right figure, we adopt and , respectively.
In the symmetric case (), the stability of the solution depends on the slope of at . As , the critical value of is . If , is (un)stable. If , the curve of is tangential to the diagonal. converges to for , as is the unique stable solution . For , there appears two stable solutions , one() is in and the other() is in . becomes the unstale solution .
The dotted lines Figure 2 shows the solutions vs. for the symmetric case. For , (black dotted line) is the stable solution. For , (gray dotted line) becomes unstable () and two stable solution departs from continuously with . Which stable solution does converge depends on the initial value of . In general, if is greater (smaller) than , the probability of the convergence to 1 is greater (smaller) than . determines the "attractive domains" for the stable solutions . The susceptibility of the expected value of to the initial value is the order parameter of the non-linear Pólya urn[22,23]. As the order parameter is proportional to the difference of the two stable states, the order parameter is a continuous function of and the phase transition is continuous.
In the asymmetric case (), for small values of , there is a stable solution in the range . increase with and at some critical value of , the curve becomes tangential to the diagonal at . is known as touchpoint and to be stable[25]. As continues to increase beyond , two significant changes occur: a new stable solution emerges from the touchpoint , while an unstable solution also becomes apparent.
When , only one stable solution, , exists within the range . Conversely, for , the specific stable solution to which converges depends on the initial values of . At , both the stable fixed point and the touchpoint remain stable. Which solution converges to is determined by the initial values of in this case as well. For , the situation mirrors that of . Once , the order parameter turns positive, and the phase transition becomes discontinuous.
Figure 3 shows the results of the numerical studies in the limit . We sampled a trajectory of and for with and . In the left figure, we present the distribution of for two different values of , namely, . The mean value of is approximately , which aligns with the theoretical predictions. The variance of is given by , so the variance for is about times larger than that for . Consequently, if we choose , a significant proportion of will have , resulting in a high probability that converges to for . In such cases, cannot reach 1 due to the convergence of to . On the other hand, if we set , the ratio of with is zero, ensuring that always converges to . As a result, monotonically increases towards 1 for . For , where only one stable state exists, consistently converges to . It’s evident that monotonically approaches with time for both and cases within the range . In the case of , where , experiences relatively little change
2.3. case
In the case where is finite, we make the assumption that and replace with in eq.(5) and eq.(7). This leads to the following equations:
The initial conditions for and at are given as follows:
The dynamics of are coupled through and . To simplify and analyze this coupled system, we focus on the stationary state of in the limit .
We anticipate that will fluctuate around the stable fixed points of in the stationary state. As we observed earlier in the case of , for , there is only one stable fixed point, and for , two stable fixed points exist, one of which is near 1. The stationary distribution is unimodal for and bimodal for . We denote the stationary distribution and the mean value of as and , respectively. As is the probability for , we can assume in the stationary state. The SDEs in eq.(10) can be simplified as follows when replacing and with :
The stationary state with reflecting boundary conditions is determined by a potential solution[26], which can be expressed as:
The second term, , arises from the symmetry-breaking field and causes a shift in the stationary distribution in the positive direction.
Figure 4 shows in eq.(13) for . is chosen so that the mean value of coincides with .
The parameters are ,,,, and . As increases, the peak position shifts in the positive direction, which can be expected by the dependence of the stable solution on in Figure 2. If , the peak appears at , since there is only one stable fixed point near 1 in Figure 1. When , there are two stable fixed point and the stationary distribution is bimodal.
In order to derive the dependence of and the variance of on , we assume that fluctuates around for . We linearrize in the vicinity of as,
We also approximate as , becomes
In the case , the ants does not observe the information of the pheromones and decide by themselves. The expected value and the variance are consistent with the results for the initial state in eq.(11). The expected value and the variance increase with for .
The shape of the stationary distribution changes from the monomodal shape for to the bimodal shape for . Figure 5 shows the stationary distribution of for and . We also plot in eq.(13) with solid line curves. Except for the case, the numerical results agree with the theoretical ones. As increases from 0 to , the mean value and the variance of increases. For , the distribution of has a peak at . The distribution becomes bimodal and has two peaks near and for . For , becomes bimodal and the equilibriation time to reach the stationary state becomes extremely long. We think this is the reason for the discrepancy between the numerical and theoretical results.
3. Discussion
We have studied a simple model for ACO and the convergence properties of the solutions. Ants answer many two-choice quizzes in sequence and deposit pheromone as they choose. As the amount of the pheromones is the number of correct answers, the following ants can receive information or hints about the correct choices. We have shown that the model reduces to a multi-variate non-linear Pólya urn process and the pheromones break the symmetry of the process. By varying the exponent of the decision function of the ants, there occurs a phase transition about the convergence of the probability of choosing the correct answer for each question in the limit . For , the change of the stationary distribution between the monomodal and the bimodal shape occurs as we vary .
previous studies have adopted values of or smaller in solving real problems, like TSP. In -annealing, increases gradually, as shown in previous research[17]. In our study, we have shown that the duration of the period should be long enough to ensure that the initial value of is in the attractive domain of the good stable state () in the case . Subsequently, with in effect, converges to a value close to 1. In the case of , the timescale for pheromone evaporation, represented by , should be sufficiently long to maintain the same initial conditions. However, does not converge to a specific value; instead, it follows a stationary distribution that exhibits both bimodal and monomodal shapes depending on the value of . To achieve a distribution of with a prominent peak near , the -annealing process is an effective strategy. Both the stable solution and the distribution of suggest that, after a lengthy period with , it is advantageous to gradually increase from 1. However, the efficiency of the annealing process depends on the specific problem being addressed. Future study should clarify the efficient -annealing schedule.
Author Contributions
Conceptualization, S.M. and M.H.; methodology, S.M.; software, S.N.; validation, S.M. and S.N.; formal analysis, S.M. and K.N.; investigation, S.N.; resources, S.M.; data curation, S.N.; writing—original draft preparation, S.M.; writing—review and editing, S.M., S.N. K.N. and M.H.; visualization, S.M.; supervision, S.M.; project administration, S.M.; funding acquisition, S.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by JPSJ KAKENHI [Grant No. 22K03445].
Data Availability Statement
We performed numerical simulations using Julia 1.7.3. The code is available on github[27].
Acknowledgments
This work was supported by JPSJ KAKENHI [Grant No. 22K03445].
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| SDE | stochastic differential equation |
| ACO | anto colony optimization |
| iid | independent and identically distributed |
Appendix A
We assume are iid Bernoulli random variable with for and . As and , we have
Here, we define as,
Applying the central limit theorem, we can conclude that behaves like a normal distribution, with its probability density function given by,
in eq.(2) is rewritten as
Conditional and unconditional expected values of are,
Conditional variance of is
Unconditional variance is
We estimate the variance of by neglecting the fluctuation of as,
By the central limit theorem, behaves as
References
- Galam, S. Sociophysics: A review of Galam models. Int. J. Mod. Phys. C 2008, 19, 409–440. [Google Scholar] [CrossRef]
- Galam, S. A physicist’s modeling of psycho-political phenomena; Springer: New York, 2012. [Google Scholar]
- Galam, S. Majority rule, hierarchical structures and democratic totalitarism: a statistical approach. J. of Math. Psychology 1986, 30, 426–434. [Google Scholar] [CrossRef]
- Arthur, W.B. Competing Technologies, Increasing Returns, and Lock-In by Histrical Events. Econ. Jour. 1989, 99, 116–131. [Google Scholar] [CrossRef]
- Bikhchandani, S.; Hirshleifer, D.; Welch, I. A Theory of Fads, Fashion, Custom, and Cultural Changes as Informational Cascades. J. Polit. Econ. 1992, 100, 992–1026. [Google Scholar] [CrossRef]
- Mori, S.; Hisakado, M.; Takahashi, T. Phase transition to two-peaks phase in an information cascade voting experiment. Phys. Rev. E 2012, 86, 026109–026118. [Google Scholar] [CrossRef] [PubMed]
- Nakayama, K.; Hisakado, M.; Mori, S. Nash Equilibrium of Social-Learning Agents in a Restless Multiarmed Bandit Game. Sci.Rep. 2017, 7, 1937. [Google Scholar] [CrossRef] [PubMed]
- Galam, S.; Cheon, T. Asymmetric contrarians in opinion dynamics. Entropy 2020, 22(1), 25. [Google Scholar] [CrossRef] [PubMed]
- Kirman, A. Ants, rationality and recruitment. Q. J. Econ. 1993, 108, 137–156. [Google Scholar] [CrossRef]
- Hisakado, M.; Mori, S. Information cascade, Kirman’s ant colony model, and kinetic Ising model. Physica A 2015, 417, 63–75. [Google Scholar] [CrossRef]
- Pasteels, J.; Deneubourg, J.; Detrain, C. Information processing in social insects; Birkhauser Verlag: Basel, 2007. [Google Scholar]
- Camazine, S.; Deneubourg, J. Self-organization in biological systems; Princeton University Press: NJ, 2001. [Google Scholar]
- Dorgio, M. Optimization, learning and Natural algorithms. PhD thesis, Poltecnico di Milan, 1992. [Google Scholar]
- Dorgio, M.; Caro, G.D. The ant colony meta-heuristic. In Proceedings of the New Ideas in Optimization; Corne, D., Dorgio, M.M., Glover, F., Eds.; McGraw Hill: London, 1999; pp. 11–32. [Google Scholar]
- Cordon, O.; Herrera, F.; Stutzle, T. A review on the ant colony optimization metaheuristic. Mathware and Soft Computing 2002, 9, 141–175. [Google Scholar]
- Dorgio, M.; Gambardella, L. Ant Colonies for the Travelling Salesman Problem. Biosystem 1997, 43, 73–81. [Google Scholar] [CrossRef] [PubMed]
- Mayer, B. On the convergence behaviour of ant colony search. Complexity 2005, 12, 73–81. [Google Scholar]
- Gutjahr, W. ACO algorithms with guaranteed convergence to the optimal solution. Information Processing Letters 2002, 82, 145–153. [Google Scholar] [CrossRef]
- Nakamichi, Y.; Arita, T. Diversity control in ant colony optimization. Artificail Life and Robotics 2001, 7, 198–204. [Google Scholar] [CrossRef]
- Randall, M.; Tonkes, E. Intensification and diversification strategies in ant colony system. Complexity International 2002, 9, 1–7. [Google Scholar]
- Hisakado, M.; Hino, M. Between Ant Colony Optimization and Genetic Algorithm. IPSJ TOM 2016, 9(3), 8–14. [Google Scholar]
- Mori, S.; Hisakado, M. Correlation function for generalized Pólya urns: Finite-size scaling analysis. Phys.Rev. E 2015, 92, 052112–052121. [Google Scholar] [CrossRef] [PubMed]
- Nakayama, K.; Mori, S. Universal function of the non-equilibrium phase transition of nonlinear Pólya urn. Phys. Rev.E 2021, 104, 014109–014118. [Google Scholar] [CrossRef] [PubMed]
- Hill, B.; Lane, D.; Sudderth, W. A strong law for some generalized urn processes. Ann. Probab. 1980, 8, 214–226. [Google Scholar] [CrossRef]
- Pemantle, R. When are touchpoints limits for generalized Pólya urns? Proc. Amer. Math. Soc. 1991, 113, 235–243. [Google Scholar]
- Gardiner, C. Stochastic Methods: A handbook for the Natural and Social Science, 4th ed.; Springer: Berlin, 2009. [Google Scholar]
- Sampling programs for Phase transition in ACO. Available online: https://github.com/LABO-M/ACO.
Figure 1.
Left: Plot of in eq.(4) vs. z with . Right: Plot of vs. z with . In both figures, we use (black dashed line),(black solid line) and (black dotted line). In the right figure, we also plot for (gray dashed line) We also plot z (gray solid line) to see the fixed point of .
Figure 1.
Left: Plot of in eq.(4) vs. z with . Right: Plot of vs. z with . In both figures, we use (black dashed line),(black solid line) and (black dotted line). In the right figure, we also plot for (gray dashed line) We also plot z (gray solid line) to see the fixed point of .

Figure 2.
Plot of the stale solutions for (black solid line), (gray solid line) and (black dotted line). Plot of the unstable solutions for (black broken line), (gray broken line) and (gray dotted line).
Figure 2.
Plot of the stale solutions for (black solid line), (gray solid line) and (black dotted line). Plot of the unstable solutions for (black broken line), (gray broken line) and (gray dotted line).

Figure 3.
Left. Plot of the initial distribution of for the limit . We set and . and . Right. Plot of vs. t for (solid line),(dotted line) and (dashed line). (gray) and (black).
Figure 3.
Left. Plot of the initial distribution of for the limit . We set and . and . Right. Plot of vs. t for (solid line),(dotted line) and (dashed line). (gray) and (black).

Figure 4.
Plot of the stationary state of eq.(13). We adopt and . The parameters are (black solid line),(black dashed line),(black dotted line), (gray solid line),(gray dashed line) and (gray chain line).
Figure 4.
Plot of the stationary state of eq.(13). We adopt and . The parameters are (black solid line),(black dashed line),(black dotted line), (gray solid line),(gray dashed line) and (gray chain line).

Figure 5.
Plots of the distribution of . We set , and . Initial state (Upper left), (Upper Right) and (Middle left), (Middle right), (Lower left) and (Lower Right).
Figure 5.
Plots of the distribution of . We set , and . Initial state (Upper left), (Upper Right) and (Middle left), (Middle right), (Lower left) and (Lower Right).

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.