Test-Time Compute for Humanoid Behavior Foundation Models

Weiji Xie, Junsong Wu, Zibo Zhou, Yueru Chen, Xingyi Wang, Zhenhua Xiong, Weinan Zhang, Chenjia Bai

TL;DR

This paper introduces Test-Time Command Optimization (TTCO), a method to bridge the "command-execution gap" in humanoid robots by optimizing input commands at inference. By spending more compute at test-time to simulate and refine commands, the authors achieve an 80% reduction in tracking error and enable the seamless reuse of motion demonstrations across different foundation models.

What Problem Does This Paper Address?

Humanoid Behavior Foundation Models (BFMs) have made massive strides in enabling robots to walk, dance, and perform complex tasks. However, they suffer from a persistent command-execution gap: if you give a BFM a reference motion (e.g., "walk exactly like this video"), the robot's actual execution often drifts or misses targets due to physics mismatches, training data biases, or model inaccuracies.

For high-precision tasks like "loco-manipulation"—walking while precisely placing an object—this drift is a dealbreaker. Traditionally, fixing this required retraining the entire model with more data or larger architectures. This paper asks: can we instead make the robot "think harder" at test-time to find a better command that results in the desired motion?

Methods

The core contribution is Test-Time Command Optimization (TTCO). Instead of feeding the desired reference motion directly into the BFM, TTCO searches for an "adjusted command."

Figure 1: The command-execution gap and how adjusted commands bring execution closer to the reference.

The process works as follows:

  1. Sampling-Based Optimization: The system generates multiple candidate command sequences.
  2. Parallel Rollouts: These candidates are simulated in parallel using a "frozen" BFM and a physics engine.
  3. Iterative Refinement: Using the Cross-Entropy Method (CEM), the system identifies which commands resulted in the lowest tracking error and updates its proposal for the next iteration.
  4. Receding Horizon: To keep it tractable, the optimization happens over a short future window (horizon), executes a few steps, and then replans.
Figure 3: Overview of the TTCO process, from sampling commands to updating proposals based on simulation costs.

Crucially, the authors also derived a surrogate cost model to determine the most "compute-optimal" way to allocate a fixed budget—balancing the number of parallel samples, optimization iterations, and the length of the planning horizon.

Datasets

  • AMASS: A massive archive of human motion capture data. The authors used 12,273 motions to evaluate tracking precision.
  • HumanoidArena: A benchmark for high-level humanoid tasks like boxing, opening doors, and sitting on a sofa.
  • Real-Robot Data: Experiments were conducted on a Unitree G1 humanoid robot to validate the simulation results in the real world.

Key Insights and Ideas

  • The Command is Not the Reference: The most profound "aha moment" is that the best command to give a model isn't necessarily the exact motion you want. By intentionally "oversteering" or adjusting the input command, you can compensate for the BFM's internal biases to achieve a perfect result.
  • Inference Scaling Laws: Much like Large Language Models (LLMs) benefit from "Chain of Thought" or search at test-time, humanoid controllers follow scaling laws. More compute at inference consistently leads to better physical performance without any extra training.
  • Demonstration Reuse: TTCO can be used to "translate" demonstrations. If you have a great walking demo recorded for Robot A, TTCO can find the specific commands needed to make Robot B (running a different BFM) execute that same motion accurately.

Key Results

  • Massive Error Reduction: Across three different BFMs (HEFT, SONIC, and TWIST2), TTCO reduced mean global body-position error by 79–84% in simulation.
  • Optimal Scaling: The proposed compute-allocation strategy consistently outperformed standard baselines like Random Forests or Gaussian Processes in finding the best performance for a given compute budget.
Figure 2: Scaling test-time compute. The proposed strategy (blue) achieves the best performance gains as the compute budget increases.
  • Real-World Validation: On a physical Unitree G1, optimized commands significantly improved the accuracy of sidestepping and backward walking compared to nominal commands.
Figure 4: Real-robot results showing that optimized commands bring the robot's final position much closer to the reference.

Limitations and Future Work

  • Latency: The current implementation is not yet fast enough for real-time, closed-loop control on hardware. It is primarily used for offline trajectory optimization or generating high-quality training labels.
  • Motion Jitter: While tracking accuracy improves, the optimization process can sometimes introduce high-frequency "jitter" or increased joint acceleration, which can be hard on robot hardware.
  • Future Directions: The authors suggest moving toward real-time TTCO and exploring how this method can handle more complex, contact-rich interactions beyond just following a trajectory.

Summary updated

BibTeX
@misc{xie2026test,
  author = {Weiji Xie and Junsong Wu and Zibo Zhou and Yueru Chen and Xingyi Wang and Zhenhua Xiong and Weinan Zhang and Chenjia Bai},
  title = {{Test-Time Compute for Humanoid Behavior Foundation Models}},
  year = {2026},
  eprint = {2610.14896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14896},
}
Figure