Interpretable MARL Models a Developmental Transition in Zebrafish Social Behavior
Abstract
Machine-learning models of development are routine in biology, but relatively few analogues exist in neuroethology. Here we use multi-agent deep reinforcement learning (MARL) to test a candidate mechanism for a developmental transition in the social behavior of larval zebrafish: from avoiding conspecifics as early larvae to aggregating with them as they mature. We train recurrent neural network (RNN) agents in a collective foraging task and model development as a reduction in the cost of close physical contact. This manipulation is sufficient to reproduce the developmental reduction in nearest-neighbor distance under patchy distributions of food. We then interpret the trained models at three levels: behavior, visual attention, and RNN representations. Agents reproduce the endpoints of the transition behaviorally, as measured by nearest-neighbor distances. Across development, agents reorganize visual allocation, while RNN activity becomes lower dimensional and more strongly shared between nearby agents; inter-agent distance also becomes more linearly decodable from recurrent state. Together, these results demonstrate our interpretable MARL framework as an in silico system for evaluating the consequences of candidate developmental mechanisms and for deriving experimentally testable predictions for biological systems.