English

Decoding species coexistence: A reinforcement learning perspective

Populations and Evolution 2026-05-21 v2 Disordered Systems and Neural Networks Adaptation and Self-Organizing Systems

Abstract

A central goal in ecology is to understand how biodiversity is maintained. Previous theoretical works have employed the rock-paper-scissors (RPS) game as a toy model, demonstrating that population mobility is crucial in determining the species' coexistence. One key prediction is that biodiversity is jeopardized and eventually lost when mobility exceeds a certain value--a conclusion at odds with empirical observations of highly mobile species coexisting in nature. To address this discrepancy, we introduce a reinforcement learning framework and study a spatial RPS model, where individual mobility is adaptively regulated via a Q-learning algorithm rather than held fixed. Our results show that all three species can coexist stably, with extinction probabilities remaining low across a broad range of baseline migration rates. Mechanistic analysis reveals that individuals develop two behavioral tendencies: survival priority (escaping from predators) and predation priority (remaining near prey). While species coexistence emerges from the balance of the two tendencies, their imbalance jeopardizes biodiversity. Notably, there is a symmetry-breaking of action preference in a particular state that is responsible for the divergent species densities. Furthermore, when Q-learning species interact with fixed-mobility counterparts, those with adaptive mobility exhibit a significant evolutionary advantage. Our study suggests that reinforcement learning may offer a promising new perspective for uncovering the mechanisms of biodiversity and informing conservation strategies.

Keywords

Cite

@article{arxiv.2508.17599,
  title  = {Decoding species coexistence: A reinforcement learning perspective},
  author = {Kaiwen Jiang and Chenyang Zhao and Shengfeng Deng and Weiran Cai and Jiqiang Zhang and Li Chen},
  journal= {arXiv preprint arXiv:2508.17599},
  year   = {2026}
}

Comments

13 pages, 11 figures

R2 v1 2026-07-01T05:03:52.627Z