A latent control model for realistic rodent motion

Aidan Sirbu, Charles Y. Zhang, Yuanjia Yang, Bence Olveczky, Talmo Pereira, Blake Aaron RichardsNeurIPS 2026

TL;DR

Training a simulated rat to solve tasks usually results in bizarre, physics-exploiting gymnastics—yet training it purely to mimic real rat footage leaves it unable to explore new environments on its own. SCAMPER solves this dilemma by splitting motor control into two distinct probabilistic priors: one for steady, goal-directed control and another for diverse, natural-looking exploration. This gives neuroscientists a virtual rodent that explores, learns from sparse rewards, and spontaneously transitions into realistic trots and gallops it never even saw in its training data.

What Problem Does This Paper Address?

A major goal in neuro-AI is comparing the neural activity of real animals to artificial agents solving the exact same tasks. For that comparison to hold water, the virtual animal has to actually move like a real animal; if an AI solves a maze by spasmodically cartwheeling on its tail, its internal "brain" representations won't tell us much about biology.

Until now, researchers faced a frustrating trade-off:

  • Pure Reinforcement Learning (RL) solves tasks from scratch, but discovers deeply unnatural movements.
  • Imitation Learning tracks motion-capture data beautifully, but struggles to generalize to new tasks.
  • Latent Motor Priors (like the robotics framework PULSE) map movements into a smooth, compressed "skill space." However, when sampled randomly for exploration, they tend to get stuck in a single behavioral rut (like endless local pacing).

Because real neuroscience experiments rely on sparse rewards (e.g., wandering around an arena until stumbling upon a hidden treat), an agent must explore broadly. How do you get a virtual rat to explore wildly enough to find sparse rewards, while still moving like a rat at every step?

Methods

SCAMPER (Simulated Control via Augmented Motor Priors for Embodied Reinforcement learning) builds on standard imitation and distillation pipelines (PPO and PULSE) using a four-stage process, introducing a novel dual-prior setup and gating mechanism in stages 3 and 4:

Figure 1: Training stages of SCAMPER. (1) The expert imitator is trained with mocap data. (2) The latent controller is trained via online distillation. (3) The behavior prior is distilled from the frozen encoder. Finally, (4) the model can be trained with RL to perform different tasks.
  1. Expert Imitator (Standard): An RL policy learns to physically reproduce 3D rat motion-capture trajectories in a MuJoCo physics simulator.
  2. Online Distillation (Standard/PULSE): Using DAgger, the expert is distilled into a variational autoencoder-like setup: an Encoder (sees current state + future pose goals), a Decoder (translates latent codes into joint torques), and a state-conditioned Motion Prior. Because the encoder and motion prior are trained jointly, an information-bottleneck trade-off forces the motion prior to focus on smooth, local motion continuation.
  3. Behavior Prior Distillation (Novel): Every network is frozen, and a second prior—the Behavior Prior—is trained to match the frozen encoder's output distribution. Freed from the joint-training bottleneck, it captures the full, rich distribution of behavioral transitions (e.g., switching from walking to rearing or grooming).
  4. Gated Transfer Learning (Novel): For new RL tasks, a high-level policy outputs two things: a residual nudge ($\delta_t$) to steer the stable Motion Prior (exploitation), and a binary hysteresis gate ($b_t$) that switches control over to noisy sampling from the Behavior Prior (exploration).

Datasets

  • Training Data: A 1-hour 3D kinematic motion-capture dataset of freely behaving rats in a circular open arena, registered to a biomechanical rat model via inverse kinematics (STAC-MJX). It contains only basic, low-speed behaviors: walking, sitting, grooming, and rearing.
  • Evaluation Data: Empirical rat gait biomechanics data from prior literature (used to validate limb phase couplings and stance durations across walk, trot, and gallop gaits) alongside three downstream RL tasks: variable-speed locomotion, precision target-rearing, and sparse-reward scent foraging.

Key Insights and Ideas

  • Why one prior isn't enough: Formally analyzing the KL-divergence objective reveals why PULSE-style priors fail at exploration. Jointly training an encoder and prior penalizes goal information, resulting in a conservative Motion Prior (14.35 nats KL divergence from the encoder) that is rock-solid for steering, but dull when sampled randomly. Distilling a Behavior Prior after freezing the encoder drops that divergence to 5.88 nats—making it too jittery for fine residual steering, but fantastic for realistic, mode-switching exploration.
  • Out-of-distribution gait emergence: Even though the training data occurred in a small dish with zero high-speed running, steering SCAMPER's motion prior at high target speeds caused it to spontaneously discover biologically accurate trotting and galloping gaits. The biomechanical body + low-level motor regularities were enough to extrapolate natural physics.
  • Learning when to explore: Giving the RL policy a switch between the two priors lets it roam naturally using the Behavior Prior when no clues are present, then snap into Motion Prior exploitation the moment it catches a scent gradient.

Key Results

  • Behavioral Diversity & Realism: During random rollouts, the Behavior Prior achieved significantly higher diversity (Vendi scores of ~17–22 across noise levels vs. ~14.5–17 for the Motion Prior) and explored far outside the circular bounds of the training arena, while maintaining lower (better) Kernel Inception Distance (KID) scores for motion realism.
  • Realistic Gaits: SCAMPER tracked target speeds up to 2.0 m/s (whereas baseline MIMIC-MJX plateaued at 0.5 m/s). Across 18 empirical rat gait metrics, SCAMPER's normalized error from real rats was just 0.59 (walk), 1.19 (trot), and 1.91 (gallop)—dramatically outperforming from-scratch RL (3.44, 11.01, and 5.91).
  • Precision & Sparse-Reward Tasks: On maximum-height rearing, SCAMPER approached a ~90–100% success rate within 500M steps, while MIMIC-MJX and scratch policies stayed near 0%. In sparse-reward arena foraging (1.5 m minimum treat radius), full SCAMPER consistently collected ~10 treats per episode, while a motion-prior-only variant, MIMIC-MJX, and scratch RL all collapsed to ~0–2 treats.

Limitations and Future Work

  • Limited behavioral repertoire: Training relied on just 1 hour of flat-arena mocap data. Expanding to richer datasets (climbing, jumping, sustained sprinting, varied terrain) will broaden the model's foundational skills.
  • Sensory deprivation: The virtual rat is currently blind and deaf, relying solely on proprioception and a simplified 2D scent gradient. Adding vision and audition is an essential next step for realistic neuroscience modeling.
  • Torque vs. Muscle: SCAMPER actuates joints directly with torques rather than simulating biological muscle fibers, though the architecture itself is actuator-agnostic and ready for future musculoskeletal models.

Summary updated

Abstract

The development of embodied models of animal behavior is a major goal of the neuro-AI community. Embodied models will enhance our ability to make direct comparisons between biological and artificial agents. To make such comparisons effective, though, we need embodied models that actually move like animals. Previous work has developed virtual animal bodies and techniques for training realistic motion through imitation. However, to date, there is no system for embodied animal modeling that produces natural movements both during trained goal-directed behavior, and during exploration driven by random generation. Here, we introduce Simulated Control via Augmented Motor Priors for Embodied Reinforcement learning (SCAMPER), a system for training an embodied virtual rat model, enabling natural movements during both goal-directed behavior and random exploration. SCAMPER uses a variational architecture with two distinct priors, a motion prior for control and a behavior prior for exploration. We show that combining both of these priors allows SCAMPER to generate realistic behavior during exploration and exploit the task structure effectively. SCAMPER can also learn from sparse rewards as a result of the diverse movements induced by the behavior prior, allowing the system to model realistic sparse-reward tasks from experimental neuroscience. Altogether, SCAMPER provides the neuro-AI community with an effective new system for training embodied models of rodents on realistic tasks.
BibTeX
@inproceedings{sirbu2026latent,
  author = {Aidan Sirbu and Charles Y. Zhang and Yuanjia Yang and Bence Olveczky and Talmo Pereira and Blake Aaron Richards},
  title = {{A latent control model for realistic rodent motion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zebI1xXFB1},
}
Figure