poster · SAB 2026
Latent Representations Encoding Behavior and Modulating Adaptivity in Locomotion Learning
Behavior and domain occupy separable components of a locomotion controller's latent representation. Auxiliary gradients produce the partition, PPO alone does not, and a curriculum over command and domain concentrates the behavior on two components.
Janosch Bajorath · Malte Schilling
Locomotion Diversity – A field of 384 robots under nominal dynamics, each starting from a random orientation with its own command, drawn from the command range the curriculum run reached, standstills included. The field reaches past the frame; a robot that walks out of it re-enters at its origin with a new orientation.
Abstract
Current quadruped locomotion control approaches are based on deep reinforcement learning and impose certain forms of behavioral structure through gait priors, reward shaping, or imitation. Bottom-up methods relax these priors, but typically retain an auxiliary objective that steers the latent representation toward a chosen geometry. Our work focuses on locomotion learning from a latent-centric perspective: what behavioral organization emerges inside a controller when no such structure is forced onto the system in a top-down fashion, and no bottom-up auxiliary objective guides either. We analyze how locomotor coordination forms within and explore whether the evolution of can itself guide training toward greater behavioral adaptivity.
Problem
Learned quadruped locomotion is structured from the top down, through gait rewards [1], reference motions [2] and pattern generators [3], or from the bottom up, through an auxiliary objective that shapes the latent representation [4, 5]. In either case the policy compresses the proprioceptive history into a latent , from which the locomotion controller infers the robot’s state and its deviation under domain changes. Adaptive locomotion results from these two readings. What organizes is not specified by either design. Whether behavior and domain occupy separable parts of , how the locomotion controller reads these parts, and whether a curriculum over the command and domain distributions alters this organization remain open.
Contributions
Three contributions address these points, for a policy trained with PPO alone, with the AUX gradients added, and with a curriculum conditioned on command and domain.
- Latent Organization. A geometric characterization of in its encoding of behavior and domain.
- Partition under Domain Perturbation. A component-wise partition of into behavior and domain adaptation.
- Adaptivity under Masking. A masking of that tests the partition in closed loop.
RL Training Setup
Goal-Conditioned RL – The agent–environment loop is extended by the command and the foot phases that enter the policy and the reward function. MOTION sets the base twist . GAIT follows from the commanded speed: stand at rest, walk below 0.7 m/s, trot up to 1.7 m/s and bound above. Stepping frequency is 0 in stance, then rises from 1.5 to 3.4 Hz, and duty is 1, 0.75, 0.50 and 0.35 respectively; gait-specific offsets set the footfall pattern. POSTURE constrains the base pose through its height and attitude , the gravity direction in the body frame. ACTUATION sets the PD gains of each joint. The CLOCK of the environment maps the commanded gait to the prescribed foot phases . The reward functions track the twist and pose and score the contact schedule given by .
Latent-Shaping Gradients – Squiggles trace the gradients that shape the latent representation. PPO reaches the locomotion controller and the encoder, while the auxiliary gradients AUX (RECON and BCE) reach only the encoder, through the DYNAMICS and CONTACT decoders. The proprioception encoder compresses the noisy history into , and the locomotion controller maps and to the joint targets . AUX adds a KL regularizer on , a dynamics decoder that predicts the future proprioception and base velocity , and a contact decoder that predicts the future foot contacts .
1 Latent Organization
The latent is recorded on steady-state locomotion under stand, walk, trot and bound at several commanded speeds, and on the trot command under lateral pushes of 0 to 105 N. A PCA per training condition gives the geometry of the behavior encoding; the push recordings give the geometry of the domain encoding on the components the push raises most.
Under PPO the gait cycles form displaced, irregular point clouds that overlap across gaits and speeds, and no geometry is common to the commanded behaviors. The added AUX gradients organize the cycles into thin concentric rings centered on the stand command. The radius grows with the commanded speed, walk and trot share one plane, and bound is set apart from it. The curriculum extends this organization to all gaits: walk, trot and bound form concentric rings in a single plane, ordered by commanded speed.
The push appears as an excursion from the nominal cycle that grows with the push level and has no geometry of its own, under PPO, AUX and the curriculum alike.
The commanded behaviors – Stand and the middle of the walk, trot and bound speed bands under nominal dynamics, with the curriculum, first at full speed, then at half speed. Beside each robot, the latent on the first two principal components of the run’s basis: the live point with its trail, and the four conditions’ recorded cycles as rings. Speed is the radius; the stand condition is the center.

Behavior and Domain Encoding – Left: PCA of per training condition (% variance), each panel on its own scale, color the commanded speed and gait. Right: on the trot command under pushes of 0 to 105 N, on the three components the push raises most (% variance), each panel its own components and scale. The nominal cycle is the command’s latent course without a push.
2 Partition under Domain Perturbation
Two measures locate behavior and domain within the components of , on the push probe at walk, trot and bound. The first compares, per component, the displacement under a push with the nominal amplitude; the second compares, per component, the share of the latent’s drive of the joint targets under the push with its share under nominal locomotion.
Under PPO every component lies at or about parity between domain and behavior: the behavior spreads over the leading components, the push over all alike, and both share every component. With AUX the leading components fall at or below parity and carry the behavior, each gait in its own measure, while the push falls on the trailing components, which vary little under nominal locomotion. The curriculum concentrates the behavior on two components, which hold the cycle of every gait alike, and allocates the push to the remaining ones. The shares change little with the push level.
Latent Partition – Domain / Behavior is the displacement of from the nominal cycle under a 105 N push over the component’s nominal amplitude, per episode on walk, trot and bound. Behavior Share is the component’s part of the nominal amplitude over the 16 components, per gait, and Domain Share its part of the push displacement, per push level.
The gain of the joint targets on each component changes by less than ten percent under the push, so the shift of the drive follows from the amplitudes. Under PPO the locomotion controller reads every component at a comparable gain, and the drive stays spread over all of them. With AUX the gain is low on the behavior components and high on the domain components. The push leaves the amplitude of the behavior components unchanged and raises that of the domain components, which are read at high gain, so the drive moves from the behavior components to the domain components. The curriculum reads its two behavior components at low gain and most of the remaining ones at high gain, and shows the same shift of the drive.
Drive under Perturbation – Sensitivity Share is the gain of the joint targets on each component before the push, as a share over the 16 components, mean and range over the gaits; the dots give the gain under a 105 N push over the nominal one. The drive of a component is the change of the joint targets when the component is held at its nominal cycle. Domain / Nominal Drive is the component’s share of the drive over the push and the recovery against its share before the push, per episode at 60 to 105 N.
3 Adaptivity under Masking
The partition is tested in closed loop. From the push onset on, the latent the locomotion controller reads is replaced by the command’s nominal cycle plus a selected part of its deviation, and the share of episodes that never fall is recorded over push levels up to 200 N, on walk, trot and bound.
The intact policies withstand pushes well beyond the trained range. With AUX and the curriculum the behavior mask survives nearly as the intact representation does: the nominal cycle replaces the behavior components without loss, and the correction is drawn from the domain components alone. Under PPO the behavior mask falls from 60 N on, so the behavior components carry part of the correction. The domain mask and the full mask fall in nearly all episodes already without a push, under all three conditions. The feedback on the deviation cannot be replaced; the feedback on the gait cycle can.
The Masks – From the onset on, the locomotion controller reads : the command’s nominal cycle plus the part of the deviation that the mask keeps. No Mask keeps the deviation on all components, the Behavior Mask on the domain components only, the Domain Mask on the behavior components only and the Full Mask on none; a replaced component follows its nominal course. The behavior components are the leading of each basis, 5 under PPO, 7 with AUX and 2 under the curriculum.
A lateral push under latent masking – At trot, seen from behind, PPO, AUX and the curriculum, one row each. From the red tick on, the latent the controller reads is the command’s nominal cycle plus the deviation on all components (No Mask), on the domain components only (Behavior Mask), on the behavior components only (Domain Mask) or on none (Full Mask). The red band is the 0.2 s push of 100 N, applied in the first two columns only. Under each robot, the deviation of the latent from its nominal cycle over time, split into the behavior components (in the condition’s color) and the domain components (white), in units of the group’s own cycle amplitude; a masked group’s line is flat from the tick, the course it would have taken dotted.
Push Survival – Share of episodes that never fall under a push, over walk, trot and bound, one panel per training condition. From the push onset on, the latent the locomotion controller reads is the command’s nominal cycle plus the deviation on all components (No Mask), on the domain components only (Behavior Mask), on the behavior components only (Domain Mask) or on none (Full Mask). The behavior components are the leading ones of each basis, PC1–5 under PPO, PC1–7 with AUX and PC1–2 under the curriculum. The shaded band is the push range of training.
Conclusion and Outlook
Conclusion. The locomotion controller computes the joint targets from a feedforward reference, the command and the prescribed foot phase, and from the feedback in . Within two groups of components serve this feedback. Behavior components carry the commanded locomotion as closed cycles ordered by gait and speed, persist under a push and are read at low gain. Domain components vary little under nominal locomotion, respond to a push with an excursion that encodes the deviation and are read at high gain. Neither the amplitude of a component nor the gain on it identifies its role. The drive, the amplitude read at its gain, does. The masking confirms the partition. The behavior components can be replaced by their nominal cycle, the domain components cannot. The AUX gradients produce this partition, PPO alone distributes behavior and domain over the same components, and the curriculum concentrates the behavior on two components. The AUX gradients and the curriculum over the command and domain distributions yield a latent representation partitioned into behavior and domain.
Outlook. The proprioception encoder is split into one for behavior and one for domain. The clock is then replaced by a phase the policy derives itself, from a periodic encoder, a pattern generator or interoception. Finally the gait rewards are removed, so that the gait follows from optimization, steered by a curriculum the latent representation drives.
References
- G. B. Margolis, P. Agrawal. Walk These Ways: Tuning Robot Control for Generalization with Multiplicity of Behavior. CoRL 2022.
- A. L. Mitchell et al. VAE-Loco: Versatile Quadruped Locomotion by Learning a Disentangled Gait Representation. IEEE T-RO 2023.
- G. Bellegarda, A. Ijspeert. CPG-RL: Learning Central Pattern Generators for Quadruped Locomotion. IEEE RA-L 2022.
- S. Chen et al. SLR: Learning Quadruped Locomotion without Privileged Information. CoRL 2024.
- A. Kumar et al. RMA: Rapid Motor Adaptation for Legged Robots. RSS 2021.