DIAYN Agents With Intrinsic Motivation Match Drosophila Behavior Across 20 Algorithms
A NeuroAgents Lab team led by Declan Kutscher and Aran Nayebi trained virtual flies with no external reward, using 20 different intrinsic motivation algorithms. They compared the agents with real Drosophila, where whole-brain activity recordings show a turn decision more than 10 seconds before the movement itself. DIAYN came out on top. It is a hierarchical algorithm that picks from a discrete set of motor skills. It reproduced the fly's movement statistics, the neural encoding of future turns, and even the spread of strategies between individual flies more accurately than the other methods.
AI-processed from Hugging Face Daily Papers; edited by Hamidun News
A fly wandering through a maze with no goal is actually making decisions in advance. Whole-brain activity recordings of Drosophila melanogaster show that neural representations of spontaneous direction choice appear more than 10 seconds before the turn itself. Aran Nayebi's group at NeuroAgents Lab, together with Declan Kutscher, Reece Keller, Alyn Kirsch and Felix Pei, asked a question: which learning objective gives an AI agent the same behavior and the same internal dynamics? They ran 20 intrinsic motivation algorithms in a fly simulation. DIAYN won.
A fly that decides 10 seconds before it turns
Animal autonomy usually looks like a puzzle. Nobody gives the fly external signals or promises a reward, yet it still explores space, changes direction and behaves unpredictably, but not chaotically. A classic trained model does not explain this: in RL, the agent almost always needs a reward function written by a human.
The authors built the experiment in two parts. The first is real recordings of the fly's brain, which show how a future decision is encoded ahead of time. The second is a neuromechanical digital twin: a physically realistic model of the fly's body in which the agent controls movement. The policy is hierarchical. The upper level chooses from a discrete library of low-level motor primitives, which is consistent with ethological theories of "behavioral syllables", the units from which animal behavior is thought to be built.
Twenty ways to want something without a reward
The agents were trained with no external reward at all. The researchers used 20 intrinsic motivation algorithms from three families, and this variety is what makes the work substantive: it compared not two or three ideas but a whole spectrum of hypotheses about what drives autonomous behavior.
- Curiosity methods: the agent seeks out what is new and unpredictable.
- Entropy methods: the agent maximizes the diversity of its actions or of the states it visits.
- Competence methods: the agent learns a set of skills that can be reliably told apart from one another.
- Evaluation environment: a virtual test with a ball under the fly's legs (tethered-ball assay), modeled on a real experiment.
- Behavior metrics: statistics of spontaneous locomotion.
- Brain metrics: the agent's internal representations and the structure of its neural activity.
- Decoding: the direction of a future turn was predicted from kinematics and from network activity, on the same timescales as in real flies.
Why DIAYN won
DIAYN (Diversity Is All You Need) is a competence method. It learns a discrete set of policies that maximize behavioral entropy while making the observations produced by different skills easy to distinguish. On combined behavioral and neural predictive encoding, it came closest to the flies.
It also matched the flies in subtler ways. The learned policies reproduce individual variability in exploration strategies: some flies behave one way, others another. The authors interpret this as a mechanism for covering the state space at the population level. Variation between individuals is not noise but the way the species as a whole covers as many options as possible. In addition, DIAYN's latent activity reproduced the "sum-difference" rule for interhemispheric encoding of kinematics, which is observed in the brains of real flies.
What this teaches agent developers
For neuroscience, the result provides a working tool: a digital twin plus a set of intrinsic goals makes it possible to test hypotheses about autonomy at the level of neural representations, not just trajectories. The code and project page are published by NeuroAgents Lab, so the comparison can be reproduced.
For the agent industry, the takeaway is more practical. A hierarchy of discrete skills and the objective of "being diverse and distinguishable" map well onto what robots and autonomous systems need when they have no hard-coded reward: a library of stable primitives with planning on top. The work is not about a commercial model but about which learning principles are worth building into agents that will have to explore an environment on their own. The biological reference here is not a metaphor but a measurable baseline: there is now a quantitative way to say which intrinsic objective is more realistic.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 2026Amazon Releases Ergo Open Weights for Coding: 1.1 Trillion Parameters and 2,200 Tokens per Second
- Dec 2, 2026OpenAI Opens Dots Agent to ChatGPT Plus Subscribers With 10,000+ Plugins
- Dec 2, 2026FSK Group Has Launched 395 AI Agents in Six Months, with a 97.7% Success Rate
Key Questions Answered
What are the key details on A fly that decides 10 seconds before it turns?
Animal autonomy usually looks like a puzzle. Nobody gives the fly external signals or promises a reward, yet it still explores space, changes direction and behaves unpredictably, but not chaotically. A classic trained model does not explain this: in RL, the agent almost always needs a reward function written by a human. The authors built the experiment in two parts. The first is real recordings of the fly's brain, which show how a future decision is encoded ahead of time.
What are the key details on Twenty ways to want something without a reward?
The agents were trained with no external reward at all. The researchers used 20 intrinsic motivation algorithms from three families, and this variety is what makes the work substantive: it compared not two or three ideas but a whole spectrum of hypotheses about what drives autonomous behavior. Curiosity methods: the agent seeks out what is new and unpredictable. Entropy methods: the agent maximizes the diversity of its actions or of the states it visits.
Why DIAYN won?
DIAYN (Diversity Is All You Need) is a competence method. It learns a discrete set of policies that maximize behavioral entropy while making the observations produced by different skills easy to distinguish. On combined behavioral and neural predictive encoding, it came closest to the flies. It also matched the flies in subtler ways. The learned policies reproduce individual variability in exploration strategies: some flies behave one way, others another.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
