arXiv(opens in a new tab)cs.ROOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.25711

SWAP: Test-Time Steerable Humanoid Whole-Body Collision Avoidance

Zeji Yi, Guanqi He, Xiaofeng Guo, Guannan Qu, Pieter Abbeel, Yan Duan, Karen Liu, Guanya Shi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zeji Yi 1,2∗^{1,2*}, Guanqi He 2^{2}, Xiaofeng Guo 2^{2}, Guannan Qu 1^{1}, Pieter Abbeel 2^{2}, Yan Duan 2^{2}, Karen Liu 2^{2}, Guanya Shi 1,2^{1,2}

1^{1}Carnegie Mellon University 2^{2}Amazon FAR

*Work done at Amazon FAR

Figure

Non-steering: has to lift hand

Steering

Objective

Non-steering: has to hold arm behind its back

Total Horizon=35s

Waypoints

Swinging ball

Swing Ball Max

Speed: 2.8m/s

Figure 1: SWAP enables whole-body obstacle avoidance for humanoid robots. Unlike prior methods that adjust only footsteps, our hierarchical diffusion framework generates coordinated full-body maneuvers including ducking, sidestepping, and twisting. (a) Ducking gait with base height as low as 0.40 m to pass under low-clearance obstacles. (b) Torso twisting maneuver with waist rotation up to 1.5 rad to navigate through narrow gaps. (c.1–c.2) Sidestepping behavior with different steering objectives: (c.1) faces left while (c.2) faces right to avoid the obstacles. Notably, the arm lifting and retraction emerges naturally from the diffusion policy rather than explicit steering, demonstrating that collision avoidance generalizes across different objectives. (d) Long-horizon traversal through a cluttered environment with four obstacle sets, demonstrating reliable and consistent avoidance behavior. (e.1–e.2) Dynamic obstacle avoidance against a swinging ball on a rope: (e.1) steers to raise arms while (e.2) steers to lower arms to evade the moving obstacle.

Date: October 20, 2026

Website: https://iscoyizj.github.io/SWAP-steerable-humanoid-oa-website/

Abstract

Humanoid robots operating in human-centric environments must coordinate the entire body to traverse tight, cluttered spaces while maintaining balance. Existing methods often struggle to jointly consider dynamic stability and collision avoidance from high-dimensional perceptual inputs. Moreover, for humanoids, safe behavior is inherently multimodal: the same obstacle may admit multiple valid traversals, which is difficult to represent with a single deterministic policy. To address these challenges, we propose SWAP (Steerable Whole-body Avoidance Policy), a hierarchical framework that separates collision-aware decision making from stabilization. A high-level, perception-conditioned diffusion policy generates multimodal, collision-aware motion proposals, while a low-level whole-body RL controller tracks these proposals and maintains dynamic balance. To efficiently train the high-level policy, we obtain scalable supervision via hindsight labeling: we roll out the low-level policy under randomized commands, place obstacles only in the space that each executed motion did not sweep, so the motion is collision-free by construction, and re-render the perception the robot would have seen. At deployment, Monte Carlo sampling with simple cost signals steers the diffusion model toward safe, task-aligned behaviors without heavy reward tuning.

Experiments in simulation and on a real Unitree G1 humanoid show reliable avoidance with static and dynamic obstacles. Test-time steering further enables customization, improving targeted rewards (e.g., speed, orientation, or posture) by 34% on average while maintaining a high collision avoidance rate. Together, these results support a practical solution to humanoid whole-body collision avoidance with test-time steerability.

Project website:

https://iscoyizj.github.io/SWAP-steerable-humanoid-oa-website/

1 Introduction

Humanoid robots possess the kinematic flexibility to navigate cluttered, human-centric environments in ways that simpler platforms cannot: ducking under obstacles, twisting through narrow gaps, and sidestepping around barriers while maintaining balance. Exploiting this flexibility requires whole-body coordination—orchestrating not just footsteps, but whole-body posture in concert [Radosavovic et al., 2024, Cheng et al., 2024]. This capability represents both the defining advantage of the humanoid form factor and its central control challenge.

Yet, achieving reliable whole-body obstacle avoidance remains fundamentally difficult precisely because of the high degree-of-freedom, inherently unstable nature of humanoid robots. A successful policy must simultaneously satisfy dynamic feasibility, control stability, and collision avoidance—a combination that existing methods struggle to achieve. Reinforcement learning struggles with the multimodality of avoidance: many valid traversals exist, but reward-driven optimization collapses to a narrow mode. Shaped, multi-term objectives introduce spurious local minima and reward-sensitive behavior as shown in both humanoid and other legged robots [Wang et al., 2025b, He et al., 2024]. Model-based planners face analogous issues—whole-body planning with hand-crafted costs is nonconvex and initialization-sensitive, often yielding stiff, conservative motions that underutilize the humanoid's flexibility [Sun et al., 2025, Zucker et al., 2013]. Behavior cloning can learn natural motions from demonstrations but requires large-scale data; teleoperation on humanoids is difficult and does not scale. In manipulation, imitation-based generative policies can represent multimodal manipulation while achieving collision avoidance, but still depend on demonstration coverage [Li et al., 2025, Jung et al., 2025, Ze et al., 2024, Chi et al., 2023]. Moreover, policies trained under any of these paradigms cannot easily adapt to changing objectives at deployment—any shift in user preference (e.g., prioritizing certain gestures) typically demands retraining.

In this work, we propose SWAP (Steerable Whole-body Avoidance Policy), a hierarchical framework that decouples high-level collision-aware decision making from low-level locomotion control. This separation is key to resolving the stability and collision avoidance dilemma that plagues joint optimization: the low-level RL controller focuses solely on stable trajectory tracking, while the high-level planner handles collision-aware motion generation. For the high-level policy, inspired by diffusion-based whole-body motion synthesis [Huang et al., 2025, Liao et al., 2025], we adopt a Diffusion Transformer (DiT) [Peebles and Xie, 2023] conditioned on LiDAR observations and trained on trajectories derived from the LAFAN1 human motion dataset [Harvey et al., 2020]. This motion prior helps the planner preserve diverse, human-like whole-body behavior.

Stage 1 - Low-level RL training

Stage 2 - High-level Diffusion Policy training

Stage 3 - Test-time Diffusion Steering

Figure

Figure 2: Overview of the SWAP framework. The high-level diffusion policy generates collision-aware whole-body trajectories from perception observations, which are tracked by a low-level RL locomotion controller.

To obtain collision labels without teleoperation, we use a hindsight labeling [Andrychowicz et al., 2017, Gu et al., 2024] pipeline in simulation. We roll out the low-level controller under randomized commands, then run geometric collision checking along the executed motion by testing the robot's swept volume against the environment, producing collision-free labels for each trajectory. This yields scalable collision-aware supervision while avoiding reward shaping: collision enters only as a label on motion-prior trajectories, which helps retain multimodality and naturalness while learning to avoid obstacles. This self-supervised pipeline provides a more scalable way of collecting data and bypasses the need for teleoperation. At deployment, we further steer the diffusion sampling process using Monte Carlo sampling with lightweight cost signals. Together, these components transform avoidance from a fixed reactive mapping into a flexible, steerable generative task, enabling zero-shot adaptation to new objectives without retraining.

The key capability of SWAP is not any single motion primitive, such as ducking or sidestepping, but the ability to produce collision-aware whole-body proposals that remain steerable at deployment. A user can plug in analytical objectives such as speed, heading, height, or posture, or use a learned collision-aware Q-function, and the same trained diffusion prior can adapt by selecting among its sampled trajectory modes. This distinguishes SWAP from approaches that require a new reward, curriculum, or demonstration set whenever the deployment objective changes.

Our main contributions are three-fold:

  1. A hierarchical framework combining a perception-conditioned DiT with an RL-based controller for whole-body obstacle avoidance, validated on the Unitree G1 in simulation and real-world deployment.

  2. A hindsight labeling pipeline that uses synthetic environments to generate collision-aware supervision for the high-level diffusion policy at scale, without teleoperation.

  3. A lightweight test-time steering mechanism that adapts to new objectives without retraining, improving targeted metrics by 34% on average.

We validate SWAP extensively in simulation and on a Unitree G1 humanoid equipped with LiDAR sensors in the real world. Our experiments demonstrate reliable avoidance of both static and dynamic obstacles, with the robot exhibiting diverse whole-body maneuvers including ducking, sidestepping, and twisting. Together, these results establish a practical framework for humanoid whole-body collision avoidance that integrates naturally with downstream navigation stacks.

References (38)