This paper introduces CLoSD (Closing the Loop between Simulation and Diffusion), a framework that combines the creative flexibility of motion diffusion models with the physical rigor of Reinforcement Learning (RL) controllers. By creating a real-time feedback loop between a "planner" and an "executor," the authors enable a single humanoid character to perform a wide variety of tasks—from punching a target to sitting relaxed on a sofa—all driven by simple text prompts.
Executive Summary
CLoSD bridges the gap between text-to-motion diffusion and physics-based simulation by using a high-speed "Diffusion Planner" to generate kinematic plans that a robust RL controller executes in real-time. This closed-loop system allows characters to interact with their environment (e.g., striking objects, sitting, getting up) with physical plausibility while remaining controllable via natural language.
The Challenge: Bridging Kinematics and Physics
In the world of character animation, there is a long-standing divide:
- Kinematic Diffusion Models (like MDM) are excellent at generating diverse motions from text prompts, but they are "hallucinations" that ignore physics. They often suffer from artifacts like foot sliding or clipping through objects.
- Physics-based RL Controllers produce realistic, grounded movement but are notoriously difficult to scale. Usually, a custom-engineered reward function is required for every single task (one for walking, one for sitting, etc.), making multi-task control a massive headache.
The challenge is creating a system that is as versatile as a diffusion model but as physically grounded as an RL agent, all while operating fast enough to react to a dynamic environment.
The CLoSD Framework
CLoSD consists of two primary modules operating in a closed-loop interaction:
- Diffusion Planner (DiP): This is a specialized, auto-regressive diffusion model trained on the HumanML3D dataset. Unlike standard diffusion models that might take seconds to generate a clip, DiP is optimized for speed. It uses only 10 diffusion steps and generates short, 2-second "motion plans" based on a text prompt and a target location (e.g., "Strike the target" plus a coordinate for the foot).
- Tracking Controller: Based on the Perpetual Humanoid Control (PHC) architecture and initially trained on the AMASS motion capture dataset, this RL-based "executor" takes the kinematic plan from DiP and translates it into physical forces (torques) within a physics engine (Isaac Gym).
- The "Closed Loop": This is the key innovation. In an "open-loop" system, the planner would just dump a trajectory and the controller would try to follow it. In CLoSD, the actual state of the character in the simulator is fed back into DiP as the starting point (prefix) for the next plan. This allows the system to recover from physical disturbances or unexpected interactions.
- Fine-Tuning: The authors fine-tune the tracking controller with DiP "in-the-loop." This ensures the controller learns to handle the specific nuances of diffusion-generated plans and the physical contact required for tasks like sitting on a couch.
Core Innovations
- Diffusion as a Universal Planner: The authors realized that we don't need a specific RL policy for every task. Instead, we can use a single, versatile diffusion model to "imagine" the kinematics of any task, and use a single, robust RL policy to "imitate" those kinematics in the physics world.
- Speed is a Feature: To make the loop work, the planner must be significantly faster than real-time. By predicting shorter segments and reducing diffusion steps, DiP achieves a staggering 3,500 frames per second (175x real-time), leaving plenty of overhead for complex simulations.
- Target-Conditioned Generation: CLoSD doesn't just follow text; it uses a "Target Loss" during the diffusion process. This ensures that if you tell the character to "punch," the generated motion actually places the hand joint at the specific 3D coordinate of the target.
Performance and Results
- Multi-Task Mastery: A single CLoSD instance successfully performed goal-reaching, striking (punching/kicking), sitting, and getting up.
- Superior Performance: In "Striking" and "Getting Up" tasks, CLoSD achieved success rates of 90% and 98%, respectively. This significantly outperformed the state-of-the-art multi-task controller, UniHSI, which struggled with the semantic nuances of the tasks.
- Physical Plausibility: Compared to pure kinematic models, CLoSD virtually eliminated "skating" (sliding feet) and "penetration" (clipping through the floor or furniture), as the physics engine enforces hard constraints on the motion.
Limitations and Future Work
- Limited Scene Awareness: While the model can reach a 3D point, it doesn't "see" the geometry of the whole room. It relies on the text prompt and a single target coordinate rather than a full visual or height-map input.
- Short-Term Planning: The system focuses on mid-level control (the next 2 seconds). It cannot yet perform high-level reasoning, such as "Go to the kitchen and find a chair to sit on."
- Contact Complexity: While it handles sitting well, more complex interactions (like picking up and manipulating small objects) remain a challenge for the current tracking controller.
The authors suggest that adding vision-based encoders and exploring "latent action spaces" could be the next steps toward even more autonomous and intelligent simulated characters.
Summary updated