TokenHSI: Unified Synthesis of Physical Human-Scene Interactions through Task Tokenization

Liang Pan, Zeshi Yang, Zhiyang Dou, Wenjia Wang, Buzhen Huang, Bo Dai, Taku Komura, Jingbo Wang

Introduction

Synthesizing realistic Human-Scene Interactions (HSI) within physics simulations is a fundamental challenge in computer animation and embodied AI. Traditionally, this has been approached through "specialist" controllers—individual neural networks trained for specific tasks like sitting, climbing, or carrying. However, this paradigm suffers from a lack of synergy between skills and inefficient adaptation to novel environments. Specialist models struggle to combine actions (e.g., climbing while carrying) and often require extensive retraining for minor environmental variations.

TokenHSI introduces a unified transformer-based framework designed to overcome these limitations. By treating different interaction goals as discrete tokens and decoupling them from the character's internal "proprioception," TokenHSI enables a single policy to master a diverse array of foundational skills and rapidly adapt to complex, multi-stage scenarios.

Methodology: Task Tokenization and Policy Adaptation

The core of TokenHSI is its Task Tokenization architecture. Unlike traditional Multi-Layer Perceptron (MLP) policies that ingest a flat state vector, TokenHSI utilizes a transformer encoder to process distinct information streams:

  1. Proprioception Token ($T^{prop}$): Encodes the character's internal state, such as joint positions and velocities. This token is shared across all tasks, allowing the model to develop a universal understanding of humanoid dynamics.
  2. Task-Specific Tokens ($T^{task}$): Separate, lightweight tokenizers encode external goals, such as target paths ($T^f$), objects to sit on ($T^s$), or items to carry ($T^c$).
  3. Attention Masking: A one-hot label ($l_t$) acts as an attention mask during training. This ensures the transformer only attends to the relevant task token and the shared proprioception token, preventing cross-task interference and allowing for clean multi-skill learning.
Figure 2: The TokenHSI architecture featuring task-specific tokenizers, a shared transformer encoder, and an adapter-based policy adaptation mechanism.

To handle novel tasks or environments, TokenHSI employs Policy Adaptation. The pre-trained transformer encoder is frozen, and zero-initialized adapter layers are introduced alongside new task tokenizers (e.g., $T^{new}$ for irregular terrain). This allows the agent to leverage its foundational motor skills while learning to navigate new environmental constraints with high sample efficiency.

Experimental Results

The framework was evaluated across foundational skills (path following, sitting, climbing, carrying) and complex compositions. TokenHSI consistently outperformed specialist baselines and state-of-the-art adaptation methods.

Multi-Task Performance

In the "Carry" task, TokenHSI achieved a 92.2% success rate, notably higher than the 83.1% achieved by a dedicated specialist. This suggests that learning multiple skills simultaneously can actually enhance individual task performance through shared motor knowledge.

Complex Skill Composition

The model's strength is most evident in composite tasks. In the "Climb + Carry" scenario, TokenHSI maintained a near-perfect 99.2% success rate. In comparison, a model trained from scratch reached only 26.8%, and the previous state-of-the-art Composite Motion Learning (CML) method reached 68.3%.

Figure 3: Success rate comparisons for "Sit + Carry" and "Climb + Carry" tasks, demonstrating TokenHSI's superior performance over scratch training and existing baselines.

Conclusion and Future Work

TokenHSI demonstrates that a unified, tokenized approach to HSI provides a robust foundation for complex physical interactions. By isolating proprioception and using a transformer's flexible attention mechanism, the model achieves superior multi-tasking and rapid adaptation.

Future research will focus on reducing the reliance on manual reward engineering and moving toward more autonomous high-level decision-making, potentially replacing the current Finite State Machine (FSM) logic with a learned task scheduler. Additionally, bridging the simulation-to-real gap remains a key objective for deploying these controllers in real-world robotics.

Summary updated

BibTeX
@inproceedings{pan2025tokenhsi,
  author = {Liang Pan and Zeshi Yang and Zhiyang Dou and Wenjia Wang and Buzhen Huang and Bo Dai and Taku Komura and Jingbo Wang},
  title = {{TokenHSI: Unified Synthesis of Physical Human-Scene Interactions through Task Tokenization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00506},
}
Figure