PAPER DEEP DIVE
Watch Your Step: Anticipated Perception for Humanoid Locomotion
A lightweight foothold prediction model gates the elevation map to 7x7 patches around the next two predicted steps, training perceptive locomotion ~3x faster and transferring zero-shot to a Unitree G1 over stairs, gaps and drops.
Watch Your Step: Anticipated Perception for Humanoid Locomotion
Authors: Matthias Heyrman, Chenhao Li, Ioannis Dadiotis, Marco Hutter (Robotic Systems Laboratory & ETH AI Center, ETH Zürich)
Paper: arXiv:2610.29612 (2026-10-21, submitted to IEEE)
Code: leggedrobotics/foothold-prediction-model (released, with pretrained policy and FPM checkpoints; Isaac Lab 2.3.0)
Project page: leggedrobotics.github.io/watch-your-step (hardware videos and an in-browser policy demo)
One-line summary: A tiny proprioception-only model predicts where the next two feet will land, the elevation map is cropped to two 7×7 patches around those predictions before the policy ever sees it, and perceptive locomotion trains roughly 3× faster — then transfers zero-shot to a Unitree G1 crossing stairs, gaps and drops.
Fig. 1: Zero-shot multi-terrain locomotion. Magenta dots are the FPM's predicted future footholds; green and blue dots are the two elevation patches the policy actually reads. The robot only sees where it is about to step.
1. Background and motivation: most of the map is noise
The dominant recipe for perceptive legged locomotion is to condition a reinforcement-learning policy on a dense, robot-centric elevation map: a grid of a few hundred height cells covering the ground around the machine. The policy is expected to figure out, from reward alone, which cells matter. In this paper the Hutter lab at ETH Zürich argues that this recipe wastes most of its input. Only the small regions where the feet will actually make contact should inform the next control decision; the rest of the map describes terrain the robot will never touch — cells far to the side, behind it, or opposite the commanded direction. Yet policies sample and process the whole grid uniformly.
The redundancy exacts three tolls. Sample efficiency: the policy must simultaneously learn to walk and learn which of hundreds of inputs matter, and the entanglement slows training. Generalization: a larger observation space carries more task-irrelevant features that can distract the policy on unseen terrain. Compute: whether the map is concatenated raw or squeezed through a CNN or attention encoder, the full visual input is processed at deployment. The authors contrast this with human gaze behavior: on rough ground people look roughly 1.5 seconds — two to three steps — ahead, fixating planned footholds rather than scanning the scene, and they adjust a foot mid-air when a landing spot looks insecure.
Prior work falls into three families. Learned encoders compress the full map into a latent vector (as in Miki et al.'s ANYmal-in-the-wild line) or weight terrain features with attention conditioned on proprioception and velocity commands (the AME line and successors). These still ingest the whole map, and nothing in the encoder's structure guarantees that the attended features are future footholds — the focus must be discovered implicitly from task reward, at considerable training cost. Classical foothold planners select candidate contact regions from kinematic reachability and terrain geometry, then hand targets to a downstream tracking controller; they rely on hand-tuned thresholds for slope, roughness and curvature that must be retuned per foot geometry and gait, and they need not reflect how the downstream controller actually moves. A third family feeds footholds to RL policies as tracking targets or reward-shaping signals — the foothold shapes the action, never the observation.
This paper's move is to turn the foothold from a tracking target into an observation filter: predict where the feet will land before the policy sees any terrain, and hand it only small elevation patches around those predictions. Two challenges follow. The filter itself must not look at the terrain — otherwise it inherits the very full-map overhead it exists to remove — so it must predict footholds purely from the robot's state and command. And footholds are a property of the gait, which the policy is still learning; a predictor fit to an early, unsteady gait would misplace its patches as the policy improves. The answer is a self-supervised co-training loop in which the predictor keeps chasing the policy's latest gait.
2. Preliminaries: the MDP and a 70-dimensional state
Locomotion is cast as an MDP $\mathcal{M}=\left(\mathcal{S},\mathcal{A},P,R,\gamma\right)$ with transition dynamics $P(\mathbf{s}_{t+1}|\mathbf{s}_{t},\mathbf{a}_{t})$, reward $R$ and discount $\gamma$. Training uses PPO across 8192 parallel IsaacLab environments on a single NVIDIA RTX 3090; physics runs at 200 Hz, control at 50 Hz, and the plant is a 29-DoF Unitree G1 humanoid. The proprioceptive system state is
$$\mathbf{x}_{t}=\left[\mathbf{v}_{t},\ \boldsymbol{\omega}_{t},\ \mathbf{g}_{t},\ \mathbf{v}_{\mathrm{cmd}},\ \mathbf{q}_{t},\ \dot{\mathbf{q}}_{t}\right]\in\mathbb{R}^{70},$$
stacking base linear and angular velocity, projected gravity, the velocity command, and joint positions and velocities relative to the nominal configuration. Commands are sampled from $[-1,1]\,\mathrm{m/s}\times[-0.5,0.5]\,\mathrm{m/s}\times[-1,1]\,\mathrm{rad/s}$, with 2% of environments receiving turn-in-place and another 2% zero commands. Exteroception is deliberately kept out of this state vector — it is the separate observation this paper redesigns.
3. Method: guess where the feet land, then look there
Fig. 2: Method overview. Top: policy training — the FPM predicts footholds from proprioception and the velocity command, and the elevation map is sampled only around them. Bottom: every 500 iterations, rollouts of the current policy supply ground-truth future footholds and the FPM is retrained from scratch.
3.1 The Foothold Prediction Model: deliberately blind
The FPM is a map $f_{\theta}:\mathbb{R}^{70}\to\mathbb{R}^{4}$ taking the unscaled, noise-free state $\mathbf{x}_{t}$ to the planar positions of the next two footholds in the current base frame, $\hat{\mathbf{p}}_{t}=\left[\hat{\mathbf{p}}_{t}^{\mathrm{1}},\hat{\mathbf{p}}_{t}^{\mathrm{2}}\right]=f_{\theta}(\mathbf{x}_{t})$. It is deliberately blind: it observes neither the elevation map nor its own previous output. What it models is the closed-loop gait of the current policy — given the body state and the intended direction, where will this gait put its feet? The first foothold is the landing of the foot currently airborne (or about to lift off); the second is the other foot's first contact after its upcoming lift-off.
Labels come from the policy's own rollouts. State trajectories and binary contact indicators $c_{t}^{\mathrm{L}},c_{t}^{\mathrm{R}}$ are recorded; after the rollout, a backward pass pairs each past state with the next two real footholds in the sequence, regardless of which foot made them, expressed in the base frame at that time. Falls reset the robot, so a window is masked only when its label would fall beyond a termination; pre-fall states whose next foothold still occurred are kept, which keeps the FPM accurate for unstable, near-failure gaits rather than only fair-weather walking.
The regression objective is a Huber loss,
$$\mathcal{L}(\theta)=\mathbb{E}_{(\mathbf{x}_{t},\,\mathbf{p}_{t})\sim\mathcal{D}}\left[\mathcal{L}_{\delta}\!\left(f_{\theta}(\mathbf{x}_{t})-\mathbf{p}_{t}\right)\right],$$
with threshold $\delta=0.01$ so that outliers near episode boundaries cannot dominate the fit through unbounded gradients. The network is tiny: an MLP with two hidden layers of width 128, each followed by LayerNorm and LeakyReLU(0.1), orthogonally initialized. Inputs are z-scored with per-dimension statistics of the training split, stored inside the exported model so deployment needs no external normalization. Optimization: Adam at learning rate $5\times10^{-3}$, batch size 1024, 25 epochs per refit, random 80/20 train–validation split.
3.2 Foothold-gated height sampling: 693 → 102
The exteroceptive source is a robot-centric 2.5D elevation map $\mathcal{H}_{t}$: 1.6 m × 1.0 m at 0.05 m resolution — 33×21 = 693 heights — in a yaw-aligned frame attached to the base, heights relative to base height. Each predicted foothold is transformed into the map frame, rounded to the nearest cell, and the surrounding $k\times k$ cells ($k=7$) are gathered into a patch $\mathbf{h}_{t}^{\mathrm{1}},\mathbf{h}_{t}^{\mathrm{2}}\in\mathbb{R}^{49}$, clamped at the map boundary. At 0.05 m resolution a patch is a 0.35 m square, comparable to the G1's 0.208 m foot length — enough to judge whether the ground is step-worthy and where its edges lie. Each patch is preceded by its predicted foothold coordinates, forming the height scan
$$\mathbf{h}_{t}=\left[\ \hat{\mathbf{p}}_{t}^{\mathrm{1}},\ \mathbf{h}_{t}^{\mathrm{1}},\ \hat{\mathbf{p}}_{t}^{\mathrm{2}},\ \mathbf{h}_{t}^{\mathrm{2}}\ \right]\in\mathbb{R}^{102}.$$
Exteroception shrinks from 693 cells to 102 values, and each patch carries its own "where am I" coordinates so the policy can interpret terrain relative to location. The actor observation is $\mathbf{s}_{t}=[\mathbf{x}_{t},\ \mathbf{a}_{t-1},\ \mathbf{h}_{t}]\in\mathbb{R}^{201}$ (angular and joint velocities scaled by 0.2 and 0.05); the action $\mathbf{a}_{t}\in\mathbb{R}^{29}$ is a joint-position offset from nominal, scaled by 0.25 and tracked by joint-level PD controllers.
To keep the policy from over-trusting the query point, two randomizations are applied: per-episode planar and vertical offsets in $[-0.05,0.05]\,\mathrm{m}$ displace the sampled patches uniformly while the reported coordinates stay undrifted, emulating misaligned predictions and odometry drift; each sampled point then receives $\mathcal{U}(-0.1,0.1)\,\mathrm{m}$ noise, and the result is clipped to $[-1,1]$. Training is asymmetric actor–critic: the critic additionally sees the complete 693-point map plus $\mathbf{h}_{t}$, so the full map informs value estimation during training but is never needed at deployment.
3.3 Co-training: the predictor grows up with the gait
Algorithm 1 alternates the two learned components. At the start the policy cannot stand or walk, so there is no gait to model: for the first $n_{0}=500$ PPO iterations the foothold predictions are pinned to $(0,\pm0.1)\,\mathrm{m}$ beneath the base, letting the policy learn to walk on easy terrain while observing the ground under its own body. Thereafter, every $n_{\mathrm{r}}=500$ iterations: roll out the current policy to collect $N_{\mathrm{s}}=5\times10^{5}$ transitions — just $\lceil N_{\mathrm{s}}/N_{\mathrm{env}}\rceil=62$ environment steps across 8192 environments — logging states, contacts and world-frame base/foot poses; label the strictly future footholds; and retrain the FPM from scratch for 25 epochs rather than fine-tuning, so it cannot inherit a stale gait from earlier in training. The refit model is hot-swapped into the observation pipeline and gates the elevation input for the next 500 iterations. Perception keeps anticipating where the policy will step; the policy keeps learning to exploit the terrain around those steps.
flowchart TD
A[Initialize policy and FPM
footholds pinned at 0 plus-minus 0.1 m under base] --> B[RL training 500 iterations
PPO 8192 parallel envs]
B --> C[Roll out current policy 62 steps
log states contacts world poses]
C --> D[Backward-time labeling of
strictly future two footholds
mask windows spanning resets]
D --> E[Retrain FPM from scratch 25 epochs
Huber loss delta 0.01
80/20 split]
E --> F[Export TorchScript
hot-swap into observation pipeline]
F --> G[Policy reads two 7x7 patches only
RL training 500 iterations
advance terrain and force curricula]
G --> C
3.4 Terrain curriculum and assistive forces
Terrains are procedurally generated with 10 difficulty levels, dominated by stepped and sparse geometry: stepping stones 30% (stone width 0.3–0.5 m, gaps 0.1–0.2 m), upright and inverted pyramid stairs 15% each (step height 0.1–0.25 m), boxes 15% (0.45 m grid, 0.05–0.3 m tall), upright/inverted pyramid slopes 7.5%/5% (gradient up to 0.55), random rough ground 5% (noise up to 0.1 m), pits 5%, flat 2.5%. To bootstrap traversal on sparse terrain, an upward assistive force on the torso carries a fraction of the robot's weight:
$$\alpha(l)=\left(1-\beta\right)\left(1-\frac{l}{l_{\mathrm{cut}}}\right),\quad\beta=0.5,\ l_{\mathrm{cut}}=4,$$
clamped to $[0,1-\beta]$ and driven by the mean terrain level $l$: the robot carries half its weight at level 0 and its full weight from level 4 on. This gives the policy room to learn mid-air step adjustments onto valid footholds despite the sparse exteroceptive input. Rewards combine velocity tracking (xy linear +1.0, yaw +1.0), stand-still at nominal pose +2.5, and regularization on vertical velocity, torques, action rate and undesired contacts; left–right symmetry is exploited by mirroring each batch rather than adding a symmetry loss. Beyond standard domain randomization, uniform noise is added to proprioception and occasional large spikes are injected into base velocity observations to emulate state-estimator faults.
4. Experiments: 3× faster, best on sparse terrain, zero-shot on hardware
4.1 Learning speed: level-5 terrain in 7.5k iterations
Fig. 3: Mean terrain-curriculum level over five seeds. FPM (orange) reaches level 5 in 7.5k iterations — 3.4–3.5× faster than full-map methods and 2.7× faster than the attention encoder AME2 — with the smallest seed-to-seed spread.
Five baselines are compared under identical architecture, PPO hyperparameters, rewards, curricula and asymmetric critics (5 seeds each, 1000 episodes per terrain): HM (raw full map), HM CNN (full map through a CNN encoder), Wild (Miki et al.'s cylindrical scan around the current feet), Naive (a 10×20 = 200-value crop centered below the torso and shifted 0.25 m per m/s of command — a Raibert-style heuristic), and AME2 (an attention encoder inspired by Zhang et al., conditioned on velocity commands). Iterations to reach terrain level 5: FPM 7.5k, HM 26.1k, HM CNN 25.2k, Wild 27.6k, Naive 37.9k, AME2 20.0k. FPM converges around 15k iterations and shows one seventh of the seed spread at 40k. AME2 ends marginally above FPM, but needs four GPUs and 6.3 s per policy update against 0.55 s on a single GPU for FPM, with equal rollout collection time.
4.2 Terrain traversal: sparse ground and narrow corridors decide it
Two test suites: a locomotion test tracking random linear velocity commands on 8 m tiles (including five out-of-distribution terrains: undulating waves, 0.5–1.0 m tall rectangular obstacles, high-amplitude rough ground, concentric 0.35 m gaps, and sparse pallets), and a corridor test tracking forward velocity through a 1.3 m wide hall with tall walls (solid walls 1.5–2.5 m, a lattice of 0.20 m pillars, or recessed blocks modulating width between 1.3 and 1.5 m). Success is the distance traversed along the command divided by the distance the command would have covered; a fall counts against the full commanded distance. Main results (paper Table II):
| Method | Train success % | OOD success % | Stones % | Gaps % | Pallets % | Falls train/OOD % | Corridor all % | Corridor sparse % |
|---|---|---|---|---|---|---|---|---|
| FPM (ours) | 84.6 | 83.1 | 80.2 | 77.7 | 81.0 | 3.3 / 5.2 | 89.2 | 74.2 |
| HM | 81.6 | 80.8 | 69.0 | 70.5 | 73.2 | 4.6 / 6.2 | 87.8 | 42.7 |
| HM CNN | 81.9 | 78.5 | 65.7 | 58.9 | 67.9 | 5.4 / 13.3 | 88.7 | 44.8 |
| Wild | 80.2 | 78.6 | 66.4 | 66.7 | 67.0 | 4.7 / 9.2 | 82.5 | 36.0 |
| Naive | 77.6 | 71.8 | 57.3 | 47.3 | 59.2 | 7.6 / 13.8 | 76.0 | 42.5 |
| AME2 | 84.3 | 83.6 | 78.8 | 69.8 | 87.1 | 2.4 / 5.5 | 87.3 | 71.7 |
Table 1: Locomotion and corridor benchmarks (paper Table II). FPM leads on training terrains, stepping stones, gaps and sparse corridors, with the lowest OOD fall rate; AME2 edges it on aggregate OOD and pallets at an order-of-magnitude higher training cost.
Three details deserve attention. First, Wild and Naive sample as many heights as FPM or more, yet perform worse than the full-map HM — the benefit comes from placing patches at predicted footholds, not from a smaller observation per se; scanning around the current feet or shifting a crop along the command is not enough. Second, in the corridor the full-map methods cover less than half the commanded distance on sparse terrain (HM: 42.7%) while FPM reaches 74.2%: tall walls a meter to the side distract policies that see them, whereas FPM never shows the policy the wall outside the commanded path. Third, FPM matches the attention encoder's locomotion performance at 0.55 s per update on one GPU versus 6.3 s on four — structurally guaranteeing where to look is far cheaper than learning where to look.
4.3 Sim-to-real: a robot that gets cautious
Fig. 4: Stroboscopic composite of the Unitree G1 crossing the obstacle course, with commanded and measured x-velocity below. The 0.55 m gap and 0.6 m drop are outside the training distribution; velocity error peaks exactly at those OOD obstacles.
The policy deploys zero-shot on a Unitree G1 indoors and outdoors: stairs, boxes, unstable ground, crowded elevation-mapped scenes, a 0.55 m gap and a 0.6 m drop — both beyond the training distribution — and an outdoor staircase of 18 continuous steps. The most interesting findings are emergent behaviors that were never explicitly rewarded: the robot slows before crossing the gap, which the authors attribute to terrain uncertainty in the FPM-gated map; before drops it slows, lowers its body, and jumps off with one foot forward to catch itself. The authors conjecture that because the observations depend on the policy's own actions, the policy may be encouraged to probe the terrain before committing to a step while still tracking the velocity command. The velocity trace in Fig. 4 shows the largest command–measurement deviations precisely at the OOD obstacles, consistent with that cautious-slowdown story.
4.4 Ablations: two steps is the sweet spot; a CNN is polish, not substance
| Variant | Train success % | OOD success % | Falls train/OOD % | Corridor all % | Corridor sparse % | Corridor stepped % |
|---|---|---|---|---|---|---|
| FPM (p1+p2) | 84.6 | 83.1 | 3.3 / 5.2 | 89.2 | 74.2 | 85.6 |
| FPM1 (p0+p1) | 81.3 | 78.8 | 4.8 / 5.0 | 84.7 | 62.2 | 83.1 |
| FPM3 (p2+p3) | 79.5 | 77.3 | 2.1 / 4.4 | 85.0 | 52.7 | 86.3 |
| FPM CNN | 82.4 | 81.1 | 1.4 / 4.0 | 85.6 | 56.2 | 85.8 |
| FPM1 CNN | 82.7 | 82.0 | 2.3 / 4.2 | 86.3 | 62.7 | 86.7 |
| FPM3 CNN | 79.3 | 78.9 | 2.2 / 6.5 | 84.8 | 53.8 | 86.2 |
Table 2: Prediction-horizon and CNN-encoder ablations (paper Table III). Watching only the latest foothold (FPM1) or looking too far ahead (FPM3) both lose to exactly the next two steps; adding a CNN lowers fall rates but not overall success.
Fig. 5: Prediction error grows roughly linearly with horizon — regression y = 6.37x + 1.65 (R² = 0.945), about 6 cm per step. FPM3's third-step error is ~22 cm, approximately one G1 foot length.
FPM1 pairs the latest foothold with the next one and drops to 62.2% on sparse corridors — watching your feet and one step ahead is not enough. FPM3 predicts the second and third steps, discarding the imminent one, and performs worse overall despite lower fall rates. Fig. 5 explains why: error grows about 6 cm per prediction step, so the second step (~12 cm) is still within a foot length while the third (~22 cm) is about one full foot — the information has effectively expired. Adding a CNN encoder over the patches cuts FPM's fall rates to 1.4%/4.0% but slightly lowers overall success: the samples already form effective features, and the encoder is polish rather than substance.
5. Code correspondence: where the paper lives in the repo
The code is public (Isaac Sim 5.1, Isaac Lab 2.3.0, rsl-rl-lib 3.3.0), with pretrained policy and FPM checkpoints under demo/. Five concrete mappings:
1. FPM network (paper III-A3) ↔ fpm/foot_pred/model.py::FootPredictor. Literally [128,128] hidden layers + LayerNorm + LeakyReLU(0.1) with orthogonal initialization; NormalizedFootPredictor registers the training-split mean/std as buffers exported with the model — the paper's "deployment needs no external normalization":
for h in hidden_dims:
layers += [nn.Linear(last, h), nn.LayerNorm(h), nn.LeakyReLU(0.1)]
...
nn.init.orthogonal_(param)
2. Strictly-future foothold labels (III-A1, Alg. 1 lines 9–10) ↔ fpm/foot_pred/labels.py::compute_strictly_future_contact_positions. A backward scan over the rollout maintains two latches for the next and next-next contact; lift-off events advance latch_next into latch_future. detect_resets flags base xy jumps > 0.5 m, matching the paper's termination masking.
3. Co-training schedule (III-C) ↔ fpm/foot_pred/supervisor.py::FootPredictionSupervisor. bootstrap_steps = 500×24, a recording phase every 500 iterations, record_steps = ceil(500000/8192) = 62, then _refit() retrains from scratch and saves foot_model_<iteration>.pt; the observation side hot-reloads by file mtime — the paper's hot-swap.
4. Foothold-gated sampling (III-B) ↔ fpm/mdp/observations.py::foothold_scan. Round-to-nearest-cell anchors (torch.round), a 7×7 meshgrid of offsets, boundary torch.clamp, per-episode xy/z drift resampling, and output [pred(2), heights(49)]×2 = 102 — term-for-term the paper's height scan. The bootstrap constant ((0.0,0.1),(0.0,-0.1)) is exactly $(0,\pm0.1)\,\mathrm{m}$.
5. Refit hyperparameters (Table I) ↔ fpm/foot_pred/trainer.py::fit_foot_predictor. nn.HuberLoss(delta=0.01), Adam at 5e-3, batch 1024, 25 epochs, random_split 80/20, and torch.jit.save TorchScript export — all consistent with Table I.
6. Limitations and discussion
Author-stated, first: lateral threats are a blind spot. The FPM discards all terrain the robot does not intend to step on, so obstacles approaching from the side enter the patches late or not at all. The paper's corridor walls run parallel to the commanded path and do not test this case; full-map methods also still lead FPM on stepped corridor terrain. The authors are explicit that this marks the boundary of the approach: on continuous terrain a dense scan suffices, and FPM's advantage concentrates on sparse-foothold scenarios.
Author-stated, second: the horizon stops at the second foothold. The FPM3 ablation shows prediction error and variance growing with horizon; the third step's ~22 cm error approaches a foot length and locomotion performance degrades accordingly. Longer-horizon planning needs a different mechanism.
This reviewer's additions. First, the whole pipeline still presupposes a ready-made robot-centric elevation map — mapping, state estimation and drift are partly absorbed by randomization, but the paper does not answer whether the same co-training works when a depth camera observes the predicted footholds directly; the authors list active depth-based perception as future work. Second, because the FPM is blind to terrain, it predicts where the current gait would land in a flat-world sense; terrain-driven gait changes can only happen reactively inside the patches. Whether the pre-gap slowdown on hardware is genuine "caution" or a conservative side effect of prediction uncertainty remains a conjecture. Third, the hardware evaluation is demonstrative rather than quantitative — there is no on-robot baseline comparison to complement the thorough simulation tables.
7. Conclusion
This paper rewrites the perceptive-locomotion problem of "learning where to look" into "knowing where the feet will land." A two-layer, 128-wide MLP with 70 inputs, retrained from scratch every 500 iterations, crops a 693-cell elevation map down to 102 values, lets the policy reach equal terrain difficulty in roughly a third of the iterations on a single GPU, beats full-map and attention baselines on sparse terrain and narrow corridors, and drives a real G1 across out-of-distribution gaps and drops. The broader lesson: when observation and action are mutually causal, letting perception chase the action (co-training) is cheaper, steadier and more generalizable than letting the action search the observation (encoders). The authors' next steps — active depth perception that directly observes predicted footholds, and manipulative locomotion guided by predicted hand and foot contacts — are worth watching.
Golden line: Instead of teaching the policy where to look among 693 cells, tell it where its feet will land — the best filter for perception is a prediction of your own action.



