
2
to individuals specializing in one trait over the other, and
hence we are interested in the difference in magnitude of
the two traits m=b−h. Studies of phase transitions
indicate that key universal features can be captured by
simple polynomial expressions for the free energy den-
sity [21]. Motivated by such, we consider a simple poly-
nomial form for the fitness function that allows for dif-
ferentiation:
f[b, h]≡f(m) = f0+αm2+βm4+γm. (1)
The even powered terms (αand β) preserve a symme-
try about f0between band h(or m→ −m), while
the odd term (γ) breaks this symmetry [22]. The de-
gree of specialization is quantified by m, which is akin to
the magnetization in Landau’s theory of magnetic phase
transitions [21].
Lattice implementation. Given the fitness function in
Eq. (1), we model spatial growth using a variation of the
stepping stone model [18], where individuals in genera-
tion tare arranged along a line, indicated by x; we refer
to individuals by their site coordinates (x, t) on a trian-
gular lattice (Fig. 1). The progeny at generation tare
determined by the competition between the two neigh-
boring individuals at generation (t−1). The winner of
the competition between potential parents (x+ 1, t −1)
and (x−1, t −1) is the one with the larger fitness value
f(x, t) = f[b(x, t), h(x, t)].(2)
Let xmax denote the xcoordinate of the individual with
the higher f(x, t). The individual at xmax then procre-
ates and its progeny inherits its traits, up to small vari-
ations as described by
b(x, t) = b(xmax, t −1) + ηb(x, t),
h(x, t) = h(xmax, t −1) + ηh(x, t).(3)
We take ηb(x, t), ηh(x, t) to be independent and iden-
tically distributed Gaussian random variables, with
zero mean and correlations ⟨ηa(x, t)ηa′(x′, t′)⟩=
σ2δa,a′δx,x′δt,t′, as in the DPRM-inspired model in
Ref. [15]. The noise ηaccounts for random mutations in
the offspring. Since the mean change is zero, the magni-
tudes of band hare equally likely to increase or decrease
over generations; however, the accumulating mutations
selected by preferential reproduction enable specializa-
tion to occur in certain regimes of the fitness function.
Note that as all individuals in a given generation tare
updated synchronously, the uppermost layer in Fig. 1re-
mains flat.
Initially, all members of the population are unspecial-
ized; that is, m(x, 0) = 0 for all x. For some fitness func-
tions, individuals may become specialized in either fea-
ture, such that after tgenerations, m(x, t)̸= 0 for typical
x(Fig. 1). Over time, segments of neighboring individu-
als with the same specialization form sectors. Depending
on the shape of the fitness function (parametrized by α,
β, and γ) and the magnitude of mutations (parametrized
t
x
b-specialist h-specialist
FIG. 1. Illustration of the update rules for our model. The
initial seed population (t= 0) is unspecialized (grey), and
subsequent progeny inherit features band h, according to our
update rules. Variations provided by the accumulating ran-
dom mutations in the update rules may result in individuals
becoming specialized in b(blue) or h(yellow).
by σ), we observe different patterns in the emergence of
new specialist populations (Fig. 2).
Growth Patterns. We conduct numerical simulations
with our fitness model under different regimes. In
Fig. 2(a), the fitness is maximized at the origin, and
we observe no specialization. Even when the fitness is
shifted to favor a particular feature by setting γ̸= 0,
there is no differentiation into distinct specialized pop-
ulations; rather, the population is dominated by spe-
cialists in that feature, but these specialists are evenly
distributed in space. These behaviors are reminiscent
of antibiotic resistance, which can appear or disappear
in cells depending on the presence of antibiotics in the
medium [23].
In contrast, in Fig. 2(b), there is a local maximum
around the origin with local minima on both sides; hence,
it is possible to attain a higher fitness by moving through
a less favorable region in the fitness landscape. Due to
this partial advantage for generalists, especially at early
times, the resulting growth pattern consists of unspecial-
ized individuals until the sudden onset of those highly
specialized in bor h. Eventually, these specialists form
V-shaped sectors which, upon meeting, compete for dom-
inance [24].
In Figs. 2(c) and (d), we observe specialization in cases
where the fitness gain is unbounded or bounded, respec-
tively. By random chance, band hfluctuate over genera-
tions, resulting in individuals specializing in one feature
over the other, giving rise to specialists. For the bounded
fitness function illustrated in Fig. 2(d) with two local
maxima, we observe an emergence time τefor the mag-
nitude of specialization |m|to become maximal (detailed
in Ref. [25]).
Fixation time. Once specialized groups are well-
defined, the domain walls between distinct groups fluctu-
ate as the population expands. Eventually, one special-
ized population dominates, and there is a fixation time
τfin which the entire population becomes specialized in
the same feature [26]. We perform numerical simulations
to characterize the scaling of the fixation time with pop-