Title: Dissecting Larval Zebrafish Hunting Behavior using Deep Reinforcement Learning trained RNNs
Primary area: applications to neuroscience & cognitive science
Keywords: Deep reinforcement learning, Recurrent neural networks, Representation learning, Sensorimotor control, Biologically inspired agents, Zebrafish, Emergent behavior, Normative modeling, NeuroAI

Abstract: Larval zebrafish hunting provides a tractable setting to study how ecological and energetic constraints shape adaptive behavior in both biological brains and artificial agents.
Here we develop a minimal agent-based model, training recurrent policies with deep reinforcement learning in a bout-based zebrafish simulator.
Despite its simplicity, the model reproduces hallmark hunting behaviors—including eye vergence-linked pursuit, speed modulation, and stereotyped approach trajectories—that closely match real larval zebrafish.
Quantitative trajectory analyses show that pursuit bouts systematically reduce prey angle by roughly half before strike, consistent with measurements.
Virtual experiments and parameter sweeps vary ecological and energetic constraints, bout kinematics (coupled vs. uncoupled turns and forward motion), and environmental factors such as food density, food speed, and vergence limits. 
These manipulations reveal how constraints and environments shape pursuit dynamics, strike success, and abort rates, yielding falsifiable predictions for neuroscience experiments.
These sweeps identify a compact set of constraints—binocular sensing, the coupling of forward speed and turning in bout kinematics, and modest energetic costs on locomotion and vergence—that are sufficient for zebrafish-like hunting to emerge.
Strikingly, these behaviors arise in minimal agents without detailed biomechanics, fluid dynamics, circuit realism, or imitation learning from real zebrafish data.
Taken together, this work provides a normative account of zebrafish hunting as the optimal balance between energetic cost and sensory benefit, highlighting the trade-offs that structure vergence and trajectory dynamics.
We establish a $\textit{virtual lab}$ that narrows the experimental search space and generates falsifiable predictions about behavior and neural coding.

TL;DR: Task-optimized RNN agents in a zebrafish-like simulator spontaneously recapitulate larval hunting motifs (vergence, ~50% angle-halving, strikes), revealing them as optimal trade-offs under ecological constraints.