Mind the Phase
Effective Rank and Representation Health in Legged Locomotion
Mobile Robotics Group, University of São Paulo
How a policy distributes its capacity across the gait cycle is associated with its health and motion smoothness, both in simulation and on hardware.
Abstract
Reinforcement learning has become the leading paradigm in legged locomotion, enabling complex behaviors from backflips to parkour via massively parallel simulation. Under PPO's non-stationarity, shallow networks remain the de facto architecture, supported by carefully staged environments; nevertheless, the representations learned by these policies remain poorly understood, specifically the relation to motion produced on hardware.
In this work, we empirically study locomotion policies through the effective rank of the network Jacobian and show that conditioning rank on gait phase exposes representation structures invisible from a global rank. In particular, we find that architectural choices, namely observation and layer normalization with residual connections, allocate more than one additional dimension of effective rank to swing-dominant states than to stance-dominant states, which is mostly absent in vanilla MLPs.
Building on this, we propose practical recommendations to convert these into diagnostics for healthier and smoother policies. In the Spot deployment environment, the MLP/SimBa joint-jitter ratio is 2.2× in simulation and 1.3× on hardware. More broadly, our findings show that how a policy distributes its capacity across the gait cycle is closely tied to its health and sim-to-real transfer.
Mechanistic studies for legged locomotion
Explore the studies
Conditioning rank on gait phase exposes a swing-dominant split.
We show that conditioning effective Jacobian rank on swing-dominant and stance-dominant states reveals differences between Spot locomotion policies that are invisible for a global rank.
View study
A connection to deployment quality.
We examine the association between rank and joint-motion smoothness, with comparisons across three simulated embodiments and deployment on a physical Spot, motivating their joint use in policy evaluation.
View study
Higher rank is not always better.
In a regime associated with trust-region collapse, rank thus provides a complementary view of representation changes from only reward; an increase in rank is not, by itself, evidence of a healthier policy.
View studyA practical recommendation
For researchers training locomotion policies, our recommendation is to log the effective rank of the policy Jacobian while keeping track of the robot’s support condition. At regular checkpoints, collect observations together with foot-contact information and compute the rank separately for swing-dominant and stance-dominant states. Keep both measurements alongside the global rank, so that a change in their difference can be traced to what happened in each condition. Record how often the policy visits these conditions as well, including double support.
The resulting curves should be read beside reward, command-tracking error, and measurements of joint-motion smoothness. When rank changes without a corresponding improvement in behavior, this is a reason to inspect the policy more closely. It is not, by itself, a reason to favor that checkpoint.
The released code includes Investigator, our rank-analysis and logging tool, integrated into training.
Video
Resources
Cite this work
Felipe Tommaselli, Ricardo V. Godoy, , , . Mind the Phase: Effective Rank and Representation Health in Legged Locomotion. CoRL 2026. arXiv:2609.06958 ↗