Evolutionary foraging in grids: Intermittent search dynamics emerge in finite, depletable landscapes

Shailendra Bhandari, Alex Szorkovszky, Anis Yazidi, Pedro G. LindNeurIPS 2026

TL;DR

When looking for scarce resources—whether you’re a wandering albatross, a foraging honeybee, or an autonomous mars rover—what is the best way to move? By letting digital agents evolve their own movement rules from scratch in finite, depletable worlds, this paper shows that evolution bypasses the famous scale-free "Lévy walk" in favor of intermittent search: a distinct two-gear strategy of meticulous local scavenging punctuated by occasional long-distance relocations.

What Problem Does This Paper Address?

For decades, a centerpiece of movement ecology and algorithmic search has been the Lévy walk foraging hypothesis. A Lévy walk is a scale-free random walk where step lengths follow a heavy-tailed power law—meaning lots of tiny steps mixed smoothly with rare, massive leaps across all scales. Mathematically, it’s optimal when searching an infinite, sparse landscape where resources magically regenerate.

Real life, however, is bounded, and snacks don’t immediately grow back once eaten. In finite, depletable landscapes, eating food changes the environment around you, creating an immediate tension: stay to exploit nearby clusters, or pack up and relocate before starving in a depleted wasteland?

An alternative theory suggests organisms use Intermittent Search (IS)—explicitly switching between two distinct modes: slow local scanning and fast ballistic relocation. Because Lévy walks and intermittent searches can look misleadingly similar at a glance, the authors ask: if we don't force a mathematical power law onto foraging agents and just let evolution figure out how to move in depletable worlds, which strategy actually emerges?

Methods

Instead of hardcoding a movement equation with a single tunable exponent, the authors built an evolutionary simulation on a 2D wrap-around grid (a torus) where movement traits evolve freely:

  • Unconstrained Genomes: Each agent carries three lists (genomes) of 30 raw numbers encoding step lengths, velocities, and turning angles. At each step, the agent samples randomly from its lists. Evolution acts directly on these lists over 1,500 generations—reshaping the empirical distribution of moves de novo.
  • Sensory & Stopping Rules: Half the time, agents peek inside a local sensory window and steer toward the nearest food; otherwise, they turn according to their genome. Crucially, bumping into food consumes it (permanently for that lifetime) and immediately halts the current movement segment.
  • Fitness: Selection rewards a product of energetic efficiency (food gained vs. distance-based movement cost) and coverage efficiency (visiting fresh grid sites rather than retracing old steps).
  • Moment-Based Classification: Rather than eyeballing heavy tails on a histogram, the authors classify evolved paths using a rigorous physics-inspired method: fitting the 2nd and 4th displacement moments ($m_2$ and $m_4$, which track typical spatial spread vs. rare extreme leaps over time) in log-space to analytical Intermittent Search and Lévy Walk models.

Datasets

Rather than pre-existing empirical datasets, the study generates synthetic 2D toroidal resource landscapes across three grid sizes ($211 \times 211$, $503 \times 503$, and $1009 \times 1009$) and five resource densities ($\rho$ from $0.005$ to $0.45$). Each run tests six spatial distributions:

  • Uniform random fields (independent Bernoulli placement).
  • Five "Lévy dust" fields ($\mu \in \{1.0, 1.5, 2.0, 2.5, 3.0\}$), a standard fractal construction that generates everything from broadly scattered resources ($\mu=1.0$) to tight, isolated oasis-like clumps ($\mu=3.0$).
Figure 1: Resource landscapes and best evolved trajectories for the L = 503 torus. Top row: placement-step distributions used to generate the resource fields, shown for the uniform control and for Lévy-dust environments with µ ∈{1.0, 1.5, 2.0, 2.5, 3.0}. Main panels: resource locations (gray points) overlaid with the trajectory of the best evolved agent in each environment (colored line). Changing µ changes the spatial correlation structure of the resource field by altering the frequency of long placement steps: smaller µ gives heavier-tailed placement steps, whereas larger µ suppresses long placement steps. The inset in the µ = 3.0 panel shows a magnified local patch.

Key Insights and Ideas

  • Two gears beat scale-free: Evolution doesn't build a smooth, scale-free power law. Within just 200 generations, selection aggressively strips out medium-length steps, concentrating the genome on very short steps (for cheap local exploitation) while preserving a tiny, sparse tail of long steps to escape depleted patches.
Figure 2: Evolution of fitness and the step lengths on the 503 × 503 grid. Left: mean fitness over 1500 generations for each resource environment, with shaded standard errors across agents within a single evolutionary run at each generation. Right: distributions of step-length genome entries at generations 0, 200, and 1500. Selection rapidly concentrates the encoded step-length pool at short values while retaining a sparse tail of longer entries.
  • The 4th moment breaks the tie: If you only look at typical spatial spread (the 2nd moment, $m_2$), Lévy walks and intermittent search look nearly identical. The "aha" separation happens in the 4th moment ($m_4$), which is sensitive to rare, large displacements and cleanly exposes the two-timescale nature of the evolved paths.
  • Not just an anti-backtracking artifact: You might suspect agents only relocate because the fitness function explicitly penalizes revisiting old squares. When the authors deleted that coverage penalty and re-evolved agents purely on energetic efficiency, the agents still retained 94.7%–100.1% of their spatial coverage efficiency and favored intermittent search. Depletion alone forces you to keep moving.

Key Results

Across every tested grid size, resource clumping ($\mu$), and density, Intermittent Search beat the Lévy Walk model ($\Gamma = \bar{R}^2_{\text{IS}} - \bar{R}^2_{\text{LW}} > 0$):

  • Near-perfect fits for Intermittent Search: While Lévy walk models fit the evolved trajectories quite well (mean adjusted $\bar{R}^2_{\text{LW}} > 0.90$ in almost all setups), Intermittent Search achieved $\bar{R}^2_{\text{IS}} > 0.998$ across every single environment and grid size.
  • Clumpier worlds widen the gap: On the $1009 \times 1009$ grid, the IS advantage $\Gamma$ grew from $0.017 \pm 0.001$ in uniform worlds up to $0.11 \pm 0.04$ in highly clumped $\mu=3.0$ landscapes (where $\bar{R}^2_{\text{LW}}$ dropped to $0.89$).
  • Reproducibility: On the $503 \times 503$ grid ($\rho=0.15$), 5 independent evolutionary runs across all 6 environments yielded $\Gamma > 0$ in all 30 run–environment combinations.
Figure 3: Moment-based comparison of evolved trajectories on the 503 × 503 grid. Empirical second moments m2 and fourth moments m4 are compared with best-fit IS and LW models. Columns correspond to the six resource environments. Across environments, IS gives a closer fit to the empirical moment curves.

Limitations and Future Work

The authors are careful not to overclaim:

  • Idealized worlds: Grids are finite and periodic, and resources never regenerate within a lifetime—excluding ecological scenarios where patches slowly replenish.
  • Coupled mechanics: The classified paths reflect the joint outcome of genomes, local sensing, depletion, and automatic stopping upon eating. While turning off local sensing at test time still favored IS, agents were not evolved from scratch without sensory cues, nor were replication runs performed on the largest/smallest grids due to compute scope.
  • Lonely foragers: Everything here is single-agent. Adding predators, competitors, or swarm communication—as well as translating these evolved two-gear rules into energy-constrained autonomous robots—is the natural next frontier.

Summary updated

Abstract

How search strategies evolve in finite, depletable landscapes remains a central question in foraging theory. We study this problem with an evolutionary simulation in which agents forage on a two-dimensional toroidal lattice containing non-renewable resources distributed either uniformly or as Lévy dust. Each agent carries a heritable genome encoding step lengths, velocities, and turning angles, and selection acts on a fitness function combining energetic gain, movement cost, and coverage efficiency. By allowing movement traits to evolve without imposing a prescribed power-law step-length distribution, we test whether the evolved trajectories are better described by intermittent-search or Lévy-walk dynamics. Strikingly, our results indicate that, in the finite depletion-driven landscapes considered here, evolved search is more consistent with intermittent dynamics than with strict scale-free Lévy motion. To characterize the effective dynamics of the evolved trajectories, we take the average adjusted coefficient of determination when fitting second- and fourth-order displacement moments to intermittent search and Lévy-walk models. While a Lévy-like random walk fits with the numerical results from the evolutionary search very well (mean adjusted $\bar{R}^2>0.9$ in most tested conditions), the intermittent search achieves a closer fit, with mean adjusted coefficients of determination ($\bar{R}^2>0.99$) for all tested resource distributions. This preference holds across the tested grid sizes and resource densities. Five independent evolutionary runs per environment on a $503\times503$ grid at nominal resource density $\rho=0.15$ reproduce this preference for the uniform environment and the five L\'evy-dust environments. Evolution rapidly reshapes the movement genome toward short displacements while retaining a sparse tail of longer relocations, consistent with local exploitation punctuated by occasional transfer. The framework provides a controlled setting for studying how search rules emerge under resource limitation and may inform resource-constrained exploration in autonomous systems. Project webpage: https://evo-foraging.github.io/.
BibTeX
@inproceedings{bhandari2026evolutionary,
  author = {Shailendra Bhandari and Alex Szorkovszky and Anis Yazidi and Pedro G. Lind},
  title = {{Evolutionary foraging in grids: Intermittent search dynamics emerge in finite, depletable landscapes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wy6k0zCeMv},
}
Figure