Abstract
Generating realistic human motion requires a balance between semantic instruction following and physical scene constraints. Current models often excel at one but fail at the other due to the lack of large-scale datasets containing text, motion, and 3D scene geometry. We present SceneAdapt, a two-stage adaptation framework that injects 3D scene awareness into pretrained text-to-motion diffusion models. By leveraging motion inbetweening as a proxy task, SceneAdapt bridges the gap between disjoint datasets, allowing characters to perform complex actions while navigating 3D environments without collisions.
Introduction
The task of human motion generation faces a significant hurdle: the "Goldilocks" dataset problem. Large-scale datasets like HumanML3D provide rich textual descriptions but lack scene context, leading to "scene-blind" models that might walk through furniture. Conversely, high-quality Motion Capture (MoCap) datasets with scene geometry are small and limited in semantic variety.
SceneAdapt addresses this by adapting a pretrained, semantically rich model to become scene-aware using lightweight adapter layers. This approach preserves the original motion quality while adding necessary physical grounding.
Methodology
SceneAdapt employs a two-stage pipeline to avoid the catastrophic forgetting associated with full model retraining. The framework uses frozen weights from a base Motion Diffusion Model (MDM) and adds specialized adapter layers.
Stage 1: Adaptation for Inbetweening
The model is first trained on motion inbetweening—filling gaps between keyframes. This is facilitated by the Context-aware Keyframing (CaKey) layer, which uses sparse affine modulation to adjust latents at specific timestamps. This stage teaches the model to connect spatial points without requiring text labels, serving as a bridge to physical navigation.
Stage 2: Scene-Aware Adaptation
The model is then equipped with Scene-conditioning (SceneCo) layers. 3D scenes are voxelized and processed through a Voxel Vision Transformer (ViT). The motion model uses cross-attention to query these voxel patches, allowing it to "see" obstacles and surfaces relative to the character's movement in real-time.
Inference and Guidance
During inference, the model utilizes Classifier-Free Guidance (CFG) with separate scales for text and scene. This provides a tunable balance between following the narrative prompt and adhering to the physical environment.
Datasets and Evaluation
The framework utilizes HumanML3D for base pretraining and the TRUMANS MoCap dataset for scene-aware adaptation. To evaluate performance on complex tasks where no ground truth exists, the authors synthesized a test set by pairing HumanML3D text prompts with valid scene layouts from TRUMANS.
Key Results and Insights
- Efficiency: As a feed-forward model, SceneAdapt is approximately 200x faster than traditional optimization-based methods that solve motion frame-by-frame.
- Physical Accuracy: SceneAdapt significantly reduces the Collision-Frame Ratio (CFR), dropping from ~31% in standard models to as low as ~7% with high scene guidance.
- Semantic Fidelity: The model maintains high R-Precision, ensuring that the addition of scene awareness does not degrade the model's ability to follow complex textual instructions.
- Inbetweening as a Proxy: A key insight is that text is not required to learn spatial constraints; mastering inbetweening allows the model to learn the "physics" of a scene independently of the semantic prompt.
Conclusion and Future Work
SceneAdapt demonstrates that scene awareness can be effectively "injected" into pretrained motion models via proxy tasks. While the current framework focuses on static 3D environments, its modular approach paves the way for more complex, dynamic human-environment interactions. Future work may involve adapting the model for dynamic obstacles and exploring more complex, multi-stage instructions.
Summary updated