Introduction
In natural environments, resources are often distributed in discrete "patches" that deplete over time. A fundamental challenge for any foraging organism is deciding when to abandon a current, diminishing resource to seek a fresh one elsewhere. This "patch foraging" problem requires balancing the immediate reward of staying against the delayed reward of a new patch, minus the cost of travel. In ecology, the Marginal Value Theorem (MVT) provides an optimal solution: an agent should leave a patch when its instantaneous reward rate falls below the average reward rate of the entire environment. While MVT is a cornerstone of biological intelligence, its implementation in artificial agents remains an area of active research.
Task and Methods
Researchers investigated whether deep reinforcement learning (RL) agents could learn adaptive foraging strategies in a continuous 3D environment. The task involved two reward patches where the available reward decayed exponentially as the agent remained within them. Upon leaving a patch, the alternative patch was instantly replenished to its maximum value, necessitating travel between the two to maximize long-term gain.
The agents were trained using Maximum a Posteriori Policy Optimization (MPO), a state-of-the-art actor-critic algorithm. The architecture included a 256-unit Long Short-Term Memory (LSTM) layer, enabling the agent to maintain a temporal memory of reward rates. The primary experimental manipulation was the distance between patches (6m, 8m, 10m, and 12m), which directly influenced travel time and, consequently, the optimal leaving strategy.
Behavioral Adaptation and Optimality
The trained agents demonstrated a sophisticated understanding of the environment's economics. As the distance between patches increased, agents stayed in each patch for longer durations, effectively "squeezing" more reward from the current location to compensate for the higher travel cost. This behavior aligns qualitatively with biological observations and MVT predictions.
Quantitatively, initial comparisons suggested agents "overstayed" relative to standard MVT. However, the researchers found that by incorporating the agent's internal temporal discounting ($\gamma$) into the MVT framework, the discrepancy vanished. When accounting for the fact that RL agents naturally value immediate rewards more than distant ones, their behavior was nearly perfectly optimal ($p = 0.74$).
Emergent Neural Dynamics
Beyond behavior, the study analyzed the internal representations within the LSTM. They discovered units that functioned as evidence accumulators, with activity levels that rose steadily during patch occupancy until reaching a specific threshold that triggered the "leave" decision.
Remarkably, these latent dynamics mirror neural activity patterns observed in the cingulate cortex of primates performing similar foraging tasks. While primates typically adapt to longer travel times by adjusting the slope of this accumulation, the RL agents primarily adjusted the distance between their baseline activity and the exit threshold. This convergence suggests that both biological and artificial systems may rely on similar computational principles—specifically, threshold-based evidence accumulation—to solve multiscale temporal decision-making problems.
Conclusion and Future Directions
This work demonstrates that deep RL agents can spontaneously develop foraging strategies and internal representations that closely resemble those found in nature. The alignment with MVT (when adjusted for discounting) highlights the robustness of these learned policies. Future research may explore more complex environments with varying patch qualities or predation risks, and investigate whether different architectural constraints can further bridge the gap between artificial "threshold-shifting" and biological "slope-adjusting" mechanisms.
Summary updated