A tiny autoregressive transformer, trained on trajectories of fish and flies, that samples each next step from a Gaussian mixture.
Click or tap to add an animalPress Enter to add a recorded animal
How it works
A trajectory is read like text: each token is an animal's step over 1/30 s, and the model predicts the next step as a mixture of five Gaussians. Three versions were trained on idtracker.ai (opens in a new tab) recordings: about 100 hours of fish, 60 of fruit flies, and both pooled.
Rocks, food, walls and the predator never enter the model. At each step, rules from studies of real fish score its 16 proposals, such as turning away from a wall ahead (Calovi et al., 2018) or fleeing a predator that looms (McKee and McHenry, 2020).