Introduction
Humanoid locomotion policies are trained in simulation with a luxury the robot will not have: the simulator can report the true base velocity, the pushes acting on the body, the friction and mass of the particular randomised robot, and the foot contacts. The question of this task is how a learner should spend that privileged state so that the policy it deploys, which sees only fifteen noisy frames of proprioception, transfers to a simulator it was not trained in. The metrics are the deployed policy's success rate on velocity commands (higher is better) and its fall rate (lower is better).
The field's answers fall into three families. The default of Humanoid-Gym gives the critic the privileged state and keeps the actor proprioceptive, an asymmetric actor-critic [1, 2]. Adaptation methods adapt to, or implicitly infer, properties of the environment the robot cannot observe, as RMA (rapid motor adaptation) and DreamWaQ (implicit terrain imagination) do [3, 4]. Representation methods learn an internal model or a denoising world model of the robot's response [5, 6], or align a proprioceptive representation with a privileged one by contrastive learning [7, 8].
We started from the same question, and a large part of our effort went into candidates of this kind, which we describe in "How we got here". What ended up in the submission is something else, and it came from an observation about the training curve rather than about the privileged state: with a fixed recipe, the policy that PPO holds at the end of training is not the policy that transfers best. In our development evaluations the stock asymmetric actor-critic reached a transferable policy relatively early, and its later checkpoints transferred worse, even though training reward kept rising. Nothing about how privileged information enters the critic can repair a drift that happens in the actor's own parameters, so we averaged the actor.
Method
The method, which we call TIA (tensor-specific iterated actor averaging), changes two things in the editable files and nothing else. The critic, its privileged input, the PPO loss, the rollout storage and the shape of the deployed actor are those of the starter.
One online actor, one exported actor
PPO continues to optimise the online weights with the unchanged privileged critic. The
exported actor is not but a slowly moving average of it. Both live in one
nn.Sequential: the actor's parameters hold whatever is currently needed, and non-trainable
dictionaries hold the rest. At the end of every PPO update the average is written into the
parameters, which is what a checkpoint or an export then sees, and the online weights are written
back before the next rollout, so that collection and the next gradient steps are exactly on-policy
with respect to the online policy.
self.online_weights = {name: parameter.detach().clone()
for name, parameter in self.actor.named_parameters()}
self.average_weights = {name: parameter.detach().clone()
for name, parameter in self.actor.named_parameters()}
self.double_weights = {name: parameter.detach().clone()
for name, parameter in self.actor.named_parameters()}
self.triple_weights = {name: parameter.detach().clone()
for name, parameter in self.actor.named_parameters()}
self.quadruple_weights = {name: parameter.detach().clone()
for name, parameter in self.actor.named_parameters()}
self.restore_online = FalseThe restore is deliberately placed in update_distribution, i.e. at the first action of the next
rollout, rather than inside the minibatch loop; restoring on every minibatch would undo the optimiser
step that preceded it (we hit exactly this bug, see below).
if self.restore_online:
self.set_online()
self.restore_online = FalseCascaded cumulative averages
Let count PPO iterations after a warm-up of 200, and let for , with up to and including iteration 200, so that nothing is averaged during the warm-up and the exported actor equals the online one. Writing for the online weights, the four stages are
and the exported weights are for every tensor except the output layer's bias, for which . With this , a single stage is exactly the running mean of its input from iteration 200 (the last warm-up iterate) onward. A stage that is fed by another running mean is a mean of means, and in the continuum limit (our own calculation, not something we measured) stages weight the online iterate at time in proportion to , with the time since the warm-up. This is our own unverified reasoning: it was derived by hand, not taken from the code, and we have not checked it numerically. It is uniform at ; for it vanishes at the present and puts its mass progressively earlier as grows, and per unit of it peaks near (that is, for three stages and for four). On that reading the cascade is a way of preserving the early, robust part of training without adding a single hyper-parameter beyond the warm-up and the number of stages: there is no decay constant to fit, because the cumulative mean has none.
@torch.no_grad()
def average_actor(self, decay):
for name, parameter in self.actor.named_parameters():
online = parameter.detach().clone()
average = self.average_weights[name].to(parameter.device).mul(decay).add_(online, alpha=1.0 - decay)
double = self.double_weights[name].to(parameter.device).mul(decay).add_(average, alpha=1.0 - decay)
triple = self.triple_weights[name].to(parameter.device).mul(decay).add_(double, alpha=1.0 - decay)
quadruple = self.quadruple_weights[name].to(parameter.device).mul(decay).add_(triple, alpha=1.0 - decay)
parameter.copy_(triple if name.startswith("6.bias") else quadruple)
self.average_weights[name] = average
self.double_weights[name] = double
self.triple_weights[name] = triple
self.quadruple_weights[name] = quadruple
self.online_weights[name] = online
self.restore_online = TrueThe schedule itself lives in the PPO class and is derived from the iteration counter only.
elapsed = max(0, self.iteration - 200)
decay = elapsed / (elapsed + 1.0) if self.iteration > 200 else 0.0
self.actor_critic.average_actor(decay)
self.storage.clear()
self.iteration += 1Why the output bias is different
In our development comparisons, averaging the output layer as deeply as the hidden layers cost the policy some of its agility on commands, and splitting the output layer into weights and bias pointed at the bias. Our reading, which we did not test, is that the output bias sets the operating point of the joint targets and a deep average of it lags behind what the online policy has learned. The final method therefore exports every tensor from the fourth stage except the output bias, which comes from the third. This is a single choice about a single tensor and we report it as such; it was settled on pooled development comparisons, not derived.
What is not changed
We add no trainable parameter: the stages are plain tensors outside the optimiser. The deployed actor has the architecture and parameter count of the starter, and the starter's privileged critic, the observation layout and the export contract are unchanged. The code contains no setting-specific branch.
Results
| Method | ① | ② | ③ | |||
|---|---|---|---|---|---|---|
| Fall rate ↓ | Success rate ↑ | Fall rate ↓ | Success rate ↑ | Fall rate ↓ | Success rate ↑ | |
| Kimi K3.1 Pro | 0.877 | 0.605 | 0.211 | |||
| Asymmetric actor-critic | 0.954 | 0.004 | 0.536 | 0.429 | 0.932 | 0.022 |
| Symmetric critic | 0.598 | 0.004 | 0.779 | 0.095 | 0.752 | 0.001 |
| RMA | 0.862 | 0.018 | 0.574 | 0.245 | 0.646 | 0.126 |
| DreamWaQ | 0.775 | 0.037 | 0.499 | 0.491 | 0.830 | 0.095 |
| Hybrid Internal Model | 0.766 | 0.023 | 0.576 | 0.392 | 0.756 | 0.136 |
| TAR | 0.780 | 0.014 | 0.344 | 0.645 | 0.526 | 0.170 |
| PvP | 0.960 | 0.003 | 0.730 | 0.262 | 0.994 | 0 |
| TAR, LSTM encoder | 0.947 | 0.002 | 0.543 | 0.412 | 0.888 | 0.025 |
| RMA, 50-step history | 0.950 | 0.010 | 0.440 | 0.435 | 0.394 | 0.233 |
| DWL | 0.986 | 0.002 | 0.615 | 0.369 | 0.602 | 0.066 |
- ① MuJoCo · mixed commands + unseen pushes
- ② MuJoCo · forward gait + payload range up to 1.25x body weight
- ③ MuJoCo · high-speed forward commands
Push-recov is scored on the fall rate, where lower is better, and Payload and High-speed on the success rate, where higher is better; the results table gives each setting's metric. Relative to the stock asymmetric actor-critic [1], TIA is better on all three, on the metric we have for each: on Push-recov its fall rate is 0.877 against 0.954, on Payload its success rate is 0.605 against 0.429, and on High-speed it is 0.211 against 0.022.
It is not ahead of the strongest published baseline anywhere. On Push-recov the lowest fall rate is 0.598, from Symmetric critic [2], well below ours. On Payload the best success rate is 0.645 (TAR [7]) against our 0.605, and on High-speed it is 0.233 (RMA, 50-step history [3]) against 0.211. On Payload and High-speed the gap is small; on Push-recov it is large, and five of the published baselines have a lower fall rate than ours. We read the evidence as a gain over the stock recipe on every setting, of different size on each, obtained with no change to the critic or the loss, not as a state-of-the-art result.
Two caveats on reading Push-recov. The success rates of the published baselines there are very low (the best is 0.037), so the fall rate is the only informative metric on it, and a lower fall rate on a setting where almost nothing succeeds measures staying upright rather than tracking commands. And the run's means are available to us for one metric per setting, so we cannot say what TIA does to the other one.
How we got here
The averaging method is the end of a long sequence of attempts at the question we were actually asked, and most of the sequence failed. This account is taken from the agent's own trace.
- We first built our own evaluation harness, and it was wrong. It held the PD torque constant over the policy period instead of recomputing it every simulator step, which destabilised every policy, including the example policy shipped with the task. We noticed because the example failed, fixed the control loop, and discarded every transfer number measured before the fix.
- Causal predictive distillation (CPD) learned something real and then collapsed. The idea, which came from the literature on privileged experts and partial observability, was an auxiliary decoder that predicts multi-horizon successor innovations of the privileged state from the actor's hidden state and the intervening actions. A held-out linear probe supported it: adding the action sequence reduced prediction error at every horizon, and an action-shuffling control made the learned predictions worse, so the objective was not redundant. But training with a separate auxiliary optimiser collapsed (by the agent's own report in its trace, its training reward fell from about 121 to 5.4 in that development run), with the auxiliary loss improving while PPO's surrogate loss spiked: the auxiliary optimiser was pushing the representation outside PPO's trust region. A joint update fixed the collapse, kept the benefit at an early checkpoint, and then regressed at the final one.
- A belief-consistent critic was dropped. A history-value critic with an expected-privileged-value control variate was meant to remove the bias of a state-only critic; in the version we tried the reward degraded rather than improved early, and we stopped it.
- Performance-adaptive distributionally robust PPO helped, and then plateaued. Using the privileged friction and mass, we estimated each randomised domain's return, fit a smoothed model of it and reweighted PPO advantages toward the domains where the policy did badly, with the temperature raised until at least half of the environments stayed effective. Early on it was worse than the default, so it was delayed and later softened (advantages re-normalised after weighting, a higher effective-sample floor); the gentler version was a clear improvement at a mid-training checkpoint, and removing its warm-up or lowering the floor hurt in our ablations. But it too degraded late in training, and on one training seed it was worse than the default.
- That late degradation is what the averaging method addresses. The stock policy transferred best well before the end of training and much worse at the end, and so did the robust variant. Averaging the weights of the saved checkpoints offline over a broad window restored transfer in our development evaluation, while averaging only recent ones did not. We then moved the averaging into training. Our first integrated attempt kept a second actor and shrank the critic to stay under the parameter caps, and was weaker; we replaced it with the single-storage design above.
- Two of the implementation bugs. The averaging state was erased when online weights were restored, and restoring on every minibatch undid optimiser steps. The first was exposed by a small schedule test; the second we caught while the affected runs were training, before their first checkpoint, and fixed with a latch. There were other bugs along the way (for example, two actors sharing layer objects, and state tensors left on the wrong device).
- Once the averaging worked, the robust reweighting no longer earned its place. Averaging alone gave the best full-capacity result, so we removed the reweighting and the final method is stock asymmetric PPO plus actor averaging.
- Choosing the schedule was the remaining work. A single cumulative average still drifted late on one seed. We compared an exponential average, an early-window average and deeper cascades, and kept the three-stage cascade first. A four-stage cascade for the hidden layers and a three-stage one for the output layer was then promoted on a pooled comparison, and finally a tensor-level variant in which only the output bias is taken from the earlier stage.
- Layer-wise variants did not all hold up. The hybrid with fourth-stage hidden layers and a third-stage output layer was first rejected as seed-dependent (on one training trajectory it lost standard successes, on another it worsened hard-dynamics survival); it was promoted only after two further independent training pairs and a pooled comparison, as described above. Making the hidden layers shallower than the output weights raised success on the nominal commands but lowered survival under shifted dynamics, and was also rejected. The agent's own account says its hidden-bias ablation had once been built incorrectly (the evaluated archive used third-stage hidden biases throughout) and that it re-ran the comparison after correcting it.
The averaging idea itself is old; what we are claiming is only that, for this fixed recipe, which weights are exported matters about as much as how the privileged state enters training, and that a cascade of running means with a warm-up delivers it with no new hyper-parameter fitted per setting.
Limitations
- The privileged information is not used any differently. The question of the task was how privileged state should enter training. TIA uses the starter's asymmetric critic unchanged, so it answers a different question: how to export a better actor from the same training run. We think that is a real lever, but a reviewer should not read this as a privileged-information method.
- It does not beat the best published baseline. It is behind Symmetric critic [2] on Push-recov, behind TAR [7] on Payload and behind RMA, 50-step history [3] on High-speed, and five published baselines have a lower fall rate than ours on Push-recov.
- The staging is tuned. The warm-up of 200, the number of stages and the output-bias exception were chosen on development comparisons across several training trajectories, some of which gave mixed signals (a variant that helped one metric often cost another); the exception for the output bias in particular rests on one pooled comparison, in which it gained on the standard and hard command suites at a small cost on long commands, and has no derivation. The weighting profile quoted above and our explanation of the output-bias exception are our own reasoning, not checked numerically or by an intervention.
- The mechanism is inferred, not isolated. That late drift in the actor's parameters is what hurts transfer is supported by the checkpoint-averaging experiment and the late degradation we saw, but we did not run a controlled intervention that separates it from, say, action-magnitude growth or a lowered policy noise.
- Averaging costs something early. On the one training seed where the stock policy was already very strong at an early checkpoint, the averaged policy was weaker at that point; the method gives up some peak performance for stability late in training.
- The training-side design is used only in part of the editable surface. We changed the actor's module and the PPO class; no other module was touched.
References
- Xinyang Gu, Yen-Jen Wang, Jianyu Chen (2024). Humanoid-Gym: Reinforcement Learning for Humanoid Robot with Zero-Shot Sim2Real Transfer. ICRA.
- Lerrel Pinto, Marcin Andrychowicz, Peter Welinder et al. (2018). Asymmetric Actor Critic for Image-Based Robot Learning. RSS.
- Ashish Kumar, Zipeng Fu, Deepak Pathak et al. (2021). RMA: Rapid Motor Adaptation for Legged Robots. RSS.
- I Made Aswin Nahrendra, Byeongho Yu, Hyun Myung (2023). DreamWaQ: Learning Robust Quadrupedal Locomotion With Implicit Terrain Imagination via Deep Reinforcement Learning. ICRA.
- Junfeng Long, Zirui Wang, Quanyi Li et al. (2024). Hybrid Internal Model: Learning Agile Legged Locomotion with Simulated Robot Response. ICLR.
- Xinyang Gu, Yen-Jen Wang, Xiang Zhu et al. (2024). Advancing Humanoid Locomotion: Mastering Challenging Terrains with Denoising World Model Learning. RSS.
- Amr Mousa, Neil Karavis, Michele Caprio et al. (2025). TAR: Teacher-Aligned Representations via Contrastive Learning for Quadrupedal Locomotion. IROS.
- Mingqi Yuan, Tao Yu, Haolin Song et al. (2026). PvP: Data-Efficient Humanoid Robot Learning with Proprioceptive-Privileged Contrastive Representations. CVPR.