Abstract
Current generative models excel at creating images from text but struggle with the precise physical control required for realistic object manipulation. We introduce CosHand (Controlling the World by Sleight of Hand), a latent diffusion model conditioned on "query hand masks." This approach allows for granular, action-conditional world modeling, enabling the simulation of complex interactions like kneading dough or squeezing deformable objects. CosHand demonstrates remarkable zero-shot generalization to robotic grippers and significantly outperforms existing baselines in physical plausibility and visual fidelity.
Introduction: Bridging the Control Gap
Humans possess an intuitive "mental model" of physical interactions; we can visualize how a coffee cup moves when pushed. While AI models like DALL-E or Stable Diffusion generate impressive imagery, they often lack precise spatial control. A text prompt like "squeeze a pillow" is too ambiguous to specify the exact location or depth of the deformation. This "control gap" limits the utility of generative models for robotics and interactive simulations. CosHand addresses this by using the human hand—represented as a binary mask—as a universal interface for specifying physical actions.
Methods: Action-Conditional Latent Diffusion
CosHand builds upon the Latent Diffusion Model (LDM) framework, introducing a novel conditioning mechanism. Instead of relying solely on text, the model is conditioned on the current state and a desired future state of the hand.
As shown in the architecture above, the model receives three primary inputs: the current image ($x_t$), the current hand mask ($h_t$), and a query hand mask ($h_{t+1}$) representing the target hand configuration. These are concatenated and processed by a U-Net. Additionally, a CLIP image embedding of the initial frame ensures that semantic details like background texture and object identity remain consistent across the predicted transition.
Datasets and Generalization
The model was trained and evaluated on three diverse datasets:
- SomethingSomethingv2: Over 180,000 videos of basic human actions, providing a broad prior for physical interactions.
- In-the-wild Dataset: 45 custom videos featuring complex tasks like manipulating dough or writing on whiteboards.
- BridgeDataV2: A robotics dataset used to test generalization. Remarkably, despite being trained only on human hands, CosHand successfully predicts the movements of a robotic gripper, treating the binary mask as an agent-agnostic proxy for action.
Key Insights
The Hand as a Universal Proxy
By operating on binary masks rather than RGB pixels of skin, CosHand becomes "agent-agnostic." It learns the physics of how any object occupying a certain space affects the environment. This allows models trained on human video data to serve as effective world models for non-human agents like robots.
Probabilistic Future Prediction
Physical interactions are inherently uncertain—a pushed bottle might slide or tip. As a diffusion model, CosHand can generate multiple "diverging futures" by sampling the latent space, capturing the probabilistic nature of the real world.
Results
CosHand significantly outperforms existing baselines such as InstructPix2Pix and Masked Conditional Video Diffusion.
Quantitatively, on the SomethingSomethingv2 validation set, CosHand achieved an SSIM of 0.414 and a PSNR of 13.72, representing a 20-40% improvement over text-conditional models. Qualitatively, the model handles complex deformations (e.g., folding cloth, squishing lemons) and is robust to imperfect or hand-drawn query masks.
Conclusion and Future Work
CosHand demonstrates that hand masks are a powerful, high-bandwidth signal for controlling generative world models. While currently limited to single-frame predictions and bound by the "plausible physics" of its training data, future work will focus on extending the model to multi-step temporal sequences for long-term robotic planning and refining object-specific interactions in crowded scenes.
Summary updated