Adaptive patch foraging in deep reinforcement learning agents

Nathan Wispinski, Andrew Butcher, Kory Wallace Mathewson, Craig S Chapman, Matthew Botvinick, Patrick M. Pilarski · DOI

TL;DR

This paper introduces a novel 3D patch foraging environment for deep reinforcement learning (DRL) agents. They demonstrate that DRL agents can learn to forage adaptively, mirroring biological strategies, and even approach optimal foraging behavior when accounting for temporal discounting. Crucially, the internal dynamics of these agents reveal patterns similar to neural recordings from foraging primates, suggesting shared computational principles between biological and artificial intelligence.

What Problem Does This Paper Address?

Patch foraging, a fundamental survival strategy for many animals, involves deciding when to leave a depleting resource patch to search for a new one. While extensively studied in biology, this problem has been relatively underexplored in artificial intelligence, particularly using modern deep reinforcement learning techniques. Existing AI approaches often simplify the problem, lacking the ecological realism and temporal complexities that biological agents face. The core challenge is to develop AI agents that can learn adaptive foraging strategies in dynamic environments and to understand if these agents develop internal mechanisms similar to those observed in biological brains.

Methods

The researchers developed a novel 3D patch foraging environment designed to mimic ecological pressures. Agents were trained using the Maximum A Posteriori Policy Optimization (MPO) algorithm, a state-of-the-art actor-critic, model-free RL method. The environment featured two patches with exponentially decaying rewards, requiring agents to balance immediate rewards with the cost of travel to a new, refreshed patch. A key aspect of the environment was providing agents with instantaneous patch color feedback (representing reward decay) rather than requiring them to estimate it. To analyze agent behavior, they employed statistical analysis, including linear regressions and one-sample t-tests, to compare agent performance against the Marginal Value Theorem (MVT), a theoretical optimal foraging model. Furthermore, they investigated the internal dynamics of the trained agents by analyzing the activity of their LSTM layers, comparing these patterns to neural recordings from foraging primates.

Datasets

The paper does not explicitly mention using pre-existing datasets for training. Instead, the authors created a novel simulated environment for training and evaluating their DRL agents. This environment, described in detail in Section 2.1, serves as the primary "dataset" generated through agent-environment interactions.

Key Insights and Ideas

  • DRL Agents Mimic Biological Foraging: The most striking insight is that DRL agents, without explicit biological programming, can learn adaptive patch foraging strategies that closely resemble those observed in animals. This suggests that fundamental ecological pressures can drive the emergence of similar behavioral solutions across different intelligent systems.
  • Approaching Optimality with Discounting: The agents not only forage adaptively but also approach the theoretically optimal solution (MVT) when temporal discounting (the devaluation of future rewards) is taken into account. This highlights the importance of considering discounting in evaluating AI agent performance in sequential decision-making tasks.
  • Emergent Neural-like Dynamics: The internal dynamics of the trained agents' neural networks (specifically LSTM layer activity) show remarkable similarities to neural recordings from non-human primates performing similar foraging tasks. This suggests that DRL might be discovering shared computational principles for decision-making.
  • Environmental Adaptation via Internal Mechanisms: The study provides evidence that agents adapt their foraging behavior to environmental changes (like patch distance) by altering internal dynamics, specifically by adjusting the "distance" a decision variable needs to travel to reach a threshold, mirroring theories of evidence accumulation in biological brains.

Key Results

  • Trained agents successfully learned to forage adaptively, increasing their patch leaving times when travel distance between patches increased (p < 0.05, b = 9.60 ± 0.87).
  • Agents approached optimal patch foraging behavior when accounting for temporal discounting. While initially overstaying patches relative to the standard MVT (mean = 15.8 steps above MVT optimal), this discrepancy was significantly reduced when temporal discounting was factored in (mean = 0.9 steps above discounted MVT optimal).
  • Analysis of agent internal dynamics revealed patterns in LSTM unit activity that correlated with patch leaving times, similar to primate neural data. Specifically, variability in the slope of rising activity was found to predict patch leaving time variability within an environment.
  • Adaptation to different patch distances involved changes in the "activity range" of internal dynamics, suggesting a mechanism for adjusting decision thresholds based on environmental travel times.

Limitations and Future Work

  • Model-Free RL Focus: The study primarily uses the MPO algorithm. Future work could explore how other RL algorithms or approaches might influence the learned behaviors and internal dynamics.
  • Simplified Environment: While novel, the environment is still a simplification of real-world foraging. Future work could increase ecological complexity by adding more patches, varying patch refresh rates, or introducing competitive/collaborative agents.
  • Mechanistic Interpretation: While emergent dynamics resemble biological patterns, the authors caution that this doesn't definitively prove agents use an evidence accumulation mechanism. Further research is needed to explore alternative decision-making models.
  • Optimal Movement Strategies: The paper notes that optimal movement strategies for finding unknown patches are a separate area of research. Future work could investigate how these might emerge in artificial agents.
  • Continuous Action Space: The use of a continuous action space is a strength, but future work could explore how different sensory inputs or movement dynamics might impact foraging.

Summary updated

BibTeX
@article{wispinski2023adaptive,
  author = {Nathan Wispinski and Andrew Butcher and Kory Wallace Mathewson and Craig S Chapman and Matthew Botvinick and Patrick M. Pilarski},
  title = {{Adaptive patch foraging in deep reinforcement learning agents}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure