arXiv:2610.31608cs.ROOct 2026

Manuscript Offprint

arXiv:2610.31608

Humanoid Mobility via Attention-based Contacts

Junzhe He, Kehan Wen, Chong Zhang, Clemens Schwarke, Zewei Zhang, Kaixian Qu, Siyuan Hu, Matthias Müller, Vladlen Koltun, Marco Hutter

JUNZHE HE 1∗^{1*}, KEHAN WEN 2∗^{2*}, CHONG ZHANG 1,4∗^{1,4*}, CLEMENS SCHWARKE 1,5^{1,5}, ZEWEI ZHANG 1^{1}, KAIXIAN QU 1^{1}, SIYUAN HU 3^{3}, MATTHIAS MÜLLER 3^{3}, VLADLEN KOLTUN 3^{3}, MARCO HUTTER 1^{1}

1^{1}Robotic Systems Lab, ETH Zurich, 8092 Zurich, Switzerland.

2^{2} Previously at 1^{1}, now at Department of Electrical and Computer Engineering, National University of Singapore, Singapore.

3^{3}Apple 4^{4}ETH AI Center 5^{5}NVIDIA

∗^{*}Equal contribution.

Humanoid mobility over complex terrain requires accurate foot placement and coordinated whole-body motion capable of robust adaptation. Reinforcement learning (RL) policies trained without motion references generalize well across terrains, yet eliciting effective whole-body coordination through reward design and exploration alone remains challenging. In contrast, reference-based methods yield natural motions but struggle to adapt beyond the predefined trajectories in their training data. We introduce a learning framework that bridges these two approaches by using motion data strictly as a training prior. An explicit, self-supervised, attention-based contact planner predicts future body–environment contacts, while a contact-conditioned tracker translates these plans into coordinated whole-body motion. Together, they establish contact as an interface between sensory observations and control actions. This abstraction allows the policy to internalize the contact-aware structure of locomotion rather than directly replicating kinematics. Consequently, a single policy can exploit data-driven motion priors for natural whole-body coordination while retaining the flexibility to discover environment-dependent behaviors through reinforcement learning. Building on the learned contact planner and tracker, a subsequent fine-tuning stage bootstraps their acquired capabilities to explore environment variations beyond those covered by the original motion data. Operating entirely from onboard observations without any reference inputs at deployment, this framework enables versatile humanoid mobility in challenging environments.

INTRODUCTION

Deploying humanoid robots in human-centric environments requires capabilities well beyond stable bipedal walking. Traversing cluttered and geometrically constrained environments often demands stepping across sparse footholds, climbing onto obstacles, crawling through confined spaces, or leveraging the upper body for support. These multi-contact behaviors fundamentally diverge from conventional locomotion. Instead of adhering to a prescribed pattern of foot contacts, the robot must continuously determine the spatial, temporal, and anatomical distribution of its environmental interactions. Achieving this capability while remaining robust to disturbances and generalizing to previously unseen terrain remains a central challenge for humanoid mobility.

Reinforcement learning (RL) has proven highly effective for teaching quadrupedal and bipedal robots to swiftly navigate rough [1–7], sparse [8–11], and even parkour [12–19] terrains without reference motions. Similar principles have increasingly been applied to humanoids, enabling robust behaviors that adapt well to terrain variations [10, 19–31]. However, extending this paradigm to whole-body motion control introduces a massive combinatorial space. The robot must simultaneously determine which anatomical parts establish contact, the precise spatial and temporal distribution of those contacts, and the coordinated kinematics of the remaining degrees of freedom. Encoding these complex interactions indirectly through task objectives requires extensive reward shaping, where minor adjustments can yield drastically different contact strategies [32]. Consequently, while pure RL provides a powerful mechanism for robustness, reward signals alone offer insufficient structure for efficiently discovering complex whole-body behaviors.

An alternative is to provide this structure directly through reference motions. Motion-imitation methods such as DeepMimic [33] reframe behavior discovery as a constrained tracking problem, enabling highly dynamic and coordinated whole-body motions. More recent systems extend this idea to humanoids using large motion datasets, retargeting, and learned motion priors [34–43]. Such approaches naturally produce coordinated and human-like behaviors because the reference specifies not only the desired task outcome but also how the entire body should achieve it. Yet a tracking controller can only execute a suitable motion if an appropriate reference can first be generated for the current environment. During deployment in previously unseen environments, this shifts the central problem from control to reference generation.

One solution is therefore to generate these references online. Model-based approaches can use trajectory planners to provide dynamically feasible motions that are subsequently tracked by a learned controller [9, 44], given a user-specified velocity or goal command. This decomposition combines explicit reasoning about environmental geometry with the robustness of learned control. Yet it also makes deployment dependent on a whole-body planner, which can be computationally expensive and inherits the modeling assumptions and failure modes of the planning system. For highly dynamic locomotion with intermittent multi-contact interactions, generating accurate full-body trajectories in real time remains particularly challenging.

Recent work has consequently begun replacing model-based refer-

ETH Zurich

2

a

Figure

b

C

d

e

f

g

h

i

j

Fig. 1. Agile and robust humanoid mobility in diverse environments. Our holistic controller enables a humanoid robot (the Unitree G1) to dynamically traverse diverse and challenging environments, including (a) ladder climbing, (b,j) stage climbing, (c) crawling, (d) vaulting over thin walls, (e) stair climbing, (f) standing up from the ground, (g) jumping down, (h) walking over stepping stones, and (i) sitting down, using a single generalist policy.

ETH Zurich

3

ence generation with learned motion generators or planners [45–47]. These methods provide a promising route toward more expressive whole-body behaviors by learning the distribution of feasible motions from data. Nevertheless, generating complete motion trajectories remains a high-dimensional prediction problem. Generalization to environment configurations not represented in the motion data often requires substantial data augmentation, and small trajectory errors can become consequential when steppable or contactable regions are sparse. In such environments, producing a motion that is kinematically plausible is insufficient: the predicted interaction with the environment must also be physically accurate.

A related line of work attempts to close the gap between reference-based training and autonomous deployment by composing, augmenting, or distilling reference motions into perceptive policies [48–52]. Wu et al. [48], for example, use motion matching to compose retargeted human skills into obstacle-adaptive reference trajectories, train tracking experts, and subsequently distill these behaviors into a vision-based policy. Wang et al. [49] introduce a generalist humanoid locomotion framework that trains multiple specialist policies for diverse skills and distills their expertise into a single vision-based policy through case-adaptive specialist selection, enabling unified locomotion control without reference motions at deployment. Wang et al. [50, 51] propose a hybrid imitation learning framework that combines reference motion tracking with adversarial imitation learning, enabling a unified controller to preserve the naturalness of motion data while improving skill composition and adaptation to procedurally generated environments. Chen et al. [52] introduce a single perceptive whole-body policy that autonomously transitions between conventional locomotion and parkour skills without reference motions or skill labels at deployment, using terrain-conditioned reference augmentation during training to acquire diverse whole-body behaviors from a small set of motion seeds. These approaches demonstrate that motion data can provide valuable priors for highly dynamic humanoid behaviors. However, they require machinery for adapting and composing full-body motions across environmental variations. As the diversity and required geometric precision of the terrain increase, constructing references that cover the relevant combinations of obstacle geometry, contact location, and skill transition becomes increasingly difficult. This raises a fundamental question: how much of a reference motion does a robot actually need in order to learn generalizable whole-body locomotion?

We argue that the essential information lies not in the complete kinematic-space trajectory, but in its interaction with the environment. Consider how humans traverse irregular natural terrains. Human locomotion does not rely solely on reacting to the terrain immediately beneath the feet; instead, visual information is gathered prospectively to determine suitable future interactions with the environment. Matthis et al. [53] studied gaze and full-body kinematics during walking over natural outdoor terrain and showed that humans adapt their gaze behavior according to terrain complexity while maintaining a consistent temporal look-ahead strategy. Their findings reveal a tight coupling between perception of the upcoming terrain and the subsequent decisions on contact positions. These observations suggest that successful locomotion over geometrically constrained terrain depends critically on identifying where future contacts should occur, rather than prescribing the complete body trajectory leading to them.

The importance of contact has also been recognized in recent learning-based control methods. Zhang et al. [23] condition whole-body humanoid control on sequential contact objectives, demonstrating that contact specifications can effectively coordinate diverse whole-body behaviors. Omar et al. [54] use contact-centric representations to facilitate multi-task robot learning. More recently, Chen et al. [55] incorporate scene-interaction contacts as prompts for general humanoid whole-body motion tracking. Yu et al. [56] introduce contact flow, combining key body trajectories with temporal contact signals, as a shared interface for executing and composing long-horizon humanoid locomanipulation skills. Together, these works demonstrate that contacts provide a compact and effective abstraction for specifying complex robot behaviors.

This perspective becomes even more relevant for whole-body mobility. When traversing sparse and complex terrain, the critical decisions extend beyond selecting footholds: the robot must determine which parts of the body should interact with the environment and where these interactions should occur. Once these contacts are specified, however, there may exist many valid whole-body trajectories that realize them. A hand contact on the top of a ledge, for example, constrains an essential interaction with the environment without uniquely determining the trajectories of the arms, torso, and legs. We therefore propose contact as an intermediate representation between terrain perception and whole-body control. Compared with a full-body reference trajectory, contacts retain the geometrically critical information required for terrain interaction while leaving the policy freedom to adapt the motion connecting them.

This representation also changes the role of motion data. Rather than using demonstrations as trajectories that the robot must reproduce, we use them as training-time guidance for learning which body–environment interactions are useful. Reference motions provide examples of effective contacts during training, while reinforcement learning determines how those contacts should be realized under different robot states and terrain configurations. The resulting policy is therefore not required to remain close to a reference trajectory. More importantly, the reference is removed entirely at deployment: given only the robot state, terrain observation, and a user-specified goal, the policy must autonomously determine appropriate contacts and execute the corresponding whole-body motion. In this way, demonstrations provide structure to the otherwise difficult exploration problem of whole-body locomotion without constraining the policy to the distribution of full-body trajectories contained in the dataset.

To autonomously infer these contacts from terrain observations, we build upon attention-based map encoding (AME) [10, 19]. AME uses robot proprioception to condition attention over a local terrain representation, allowing the policy to selectively extract terrain features relevant to its current locomotion state. In previous work, this mechanism was learned implicitly and was shown to focus on steppable terrain regions associated with future footholds. Here, we exploit an alternative capability of this architecture: attention provides a natural interface for explicit contact planning. Rather than using attention only to encode terrain into a latent representation for control, we use it to identify task-relevant contact locations on the terrain map. Specifically, our contact planner attends to terrain points conditioned on the robot's proprioception and a user-specified goal and predicts explicit contact locations directly on the map. This formulation tightly couples when and where the robot should interact with the environment to its evolving physical state. The planner can therefore shift its attention as the robot moves, selecting different terrain regions for feet, hands, and other body contacts according to both local geometry and the current proprioceptive state. This design is particularly suited to sparse terrain, where a small error in a predicted contact can distinguish a feasible interaction from a failure. At the same time, predicting contacts rather than complete whole-body trajectories substantially reduces the dimensionality of the planning problem.

Based on these insights, we introduce a framework that uses an explicit, self-supervised attention-based contact representation as the interface between perception and whole-body control. During training, reference motion data guides the discovery of effective body-environment interactions. Rather than tracking full reference trajectories, the system abstracts the motion data into a task-relevant contact

ETH Zurich

4

A. Inference-Time Overview

Figure

Map Scans

L × W × 3

Contact Planner

Contact Plans 9 × 3

Whole-body controller

23-DoF actions

Proprioception + goal

375 + 3

B. Stage1: Whole-body Controller Pre-training

Dataset

Contacts

Map Scans

Proprio

Env

Trajectories

Initialized backward along the reference

R=Rp+RR+Rv+Rω+RC+Rj,p+Rj,vR = R_p + R_R + R_v + R_\omega + R_C + R_{j,p} + R_{j,v}

Actions

Figure

Unified RL contact tracking policy

C. Stage2: Contact Planner Training & Whole-body Controller Co-training

Figure

Contact plans (9×3)(9 \times 3)

Map Scans

L × W × 3

Proprio + goal

375 + 3

actions

Supervised learning

Reinforcement learning

Neural network

Whole-body controller

Contact Planner

Fig. 2. Overview, part I. (A) Inference-time pipeline. (B) Stage 1: whole-body controller pretraining. Reference trajectories are sampled from the dataset. Training follows a backward curriculum: the robot is initialized at progressively earlier states along the reference trajectory, advancing to an earlier state only after the current one has been successfully learned. Rp,RR,Rv,Rω,RC,Rj,pR_{p}, R_{R}, R_{v}, R_{\omega}, R_{C}, R_{j,p}, and Rj,vR_{j,v} denote the position, rotation, linear velocity, angular velocity, contact, joint position, and joint velocity tracking reward, respectively. (C) Stage 2: attention-based contact planner. The planner predicts contact plans by attending to map observations, conditioned on robot proprioception and the goal command. It is trained in a supervised manner using ground-truth contact labels from a motion buffer containing rollout trajectories generated by the whole-body controller. The tracker is co-trained using the predicted contacts from the planner.

ETH Zurich

5

Stage3: RL fine-tuning

Tracking Env

Figure

Fig. 3. Overview, part II. Stage 3: RL fine-tuning. Training combines reference tracking on motions sampled from the demonstration dataset (left) with goal-reaching rollouts on procedurally generated terrains outside the demonstration distribution (right). In the goal-reaching environment, the contact planner predicts contact plans from map scans, robot proprioception, and the goal command; the whole-body controller executes these plans and is fine-tuned with RL using task (Rt)(R_t) and contact-tracking (RC)(R_C) rewards. Successful rollouts are stored in the fine-tuning buffer and subsequently used as additional supervision for the contact planner, forming a bootstrapping loop in which planner-generated contacts are executed, validated through successful interaction, and recycled to improve the planner. Reference trajectories are sampled proportionally from the original dataset during fine-tuning to retain the previously learned tracking behaviors.

structure. The policy then leverages RL to physically realize these target contacts while optimizing for broader locomotion objectives. This formulation preserves the primary advantage of motion data by providing structured guidance for coordinated whole-body behavior without restricting the agent to strict kinematic reproduction.

This contact-centric representation has several important properties. First, it reduces the dimensionality of the guidance compared to full-body trajectory tracking. Because multiple dynamically feasible motions can realize the same contact objective, the contact representation constrains only the task-relevant interactions while leaving the policy free to explore and optimize the whole-body motion between contacts. Second, contact locations are expressed directly with respect to the environment, providing the geometric precision needed when feasible support regions are sparse. Third, training remains simple: instead of constructing rewards that separately induce climbing, crawling, stepping, and other behaviors, reference contacts can be incorporated through a common contact-tracking objective. Finally, because reference trajectories are used only as training-time guidance, deployment requires neither motion retrieval nor a model- or learning-based motion generator. Terrain diversity can therefore be explored directly through RL rather than covered through exhaustive manual augmentation of reference trajectories.

To obtain diverse and physically feasible whole-body references for training, we use a motion-retargeting pipeline [46]. It transfers human motion data to the target humanoid while accounting for kinematic constraints. The resulting trajectories, together with their body–environment contact labels and positions, provide contact-aware references as training-time guidance for learning whole-body locomotion.

In summary, this paper introduces a three-stage training framework that progressively transfers knowledge from motion data to a whole-body control policy, with the following contributions: 1) A contact-informed whole-body tracking training pipeline where the policy is conditioned on contact plans instead of whole-body trajectories. 2) A supervised learning formulation for contact planning, leveraging human motion data to capture rich and diverse contact strategies, and an attention-based contact planner (ACP) that predicts contact plans for nine body parts (hands, elbows, knees, feet, and pelvis) on rough and discontinuous terrain given a user-specified goal. 3) An RL fine-tuning stage bootstrapping on planner-generated contact plans that bridges data-driven imitation and reward-driven exploration, enabling generalization to unseen terrains. 4) A LiDAR-based neural mapping framework that accurately captures fine-grained geometry, including small and thin structures such as ladder rungs, for precise whole-body locomotion.

Through three training stages – contact tracking, contact planning, and RL fine-tuning – our framework progressively reduces its reliance on motion data while preserving the coordinated whole-body behaviors acquired from demonstrations. By isolating task-relevant contact structure, this framework yields a unified generalist policy capable of versatile, coordinated whole-body motion control in previously unseen environments using only onboard sensing (Figure 1). Figures 2 and 3 provide a visual overview of the method.

References (32)