Abstract
Hand trajectory prediction in egocentric videos is a critical task for embodied AI, yet it remains challenging due to complex camera egomotion and the high cost of manual object affordance annotations. We present MADiff, a generative framework that leverages the efficiency of Mamba state-space models within a diffusion-based denoising process. MADiff explicitly incorporates camera motion through a Motion-Driven Selective Scan (MDSS) and utilizes vision-language foundation models to extract semantic scene information without manual labels. Furthermore, we introduce physically-inspired loss functions to ensure trajectory plausibility. Our approach achieves state-of-the-art performance across five major egocentric datasets, demonstrating superior accuracy, generalization, and real-time inference capabilities.
Introduction
Predicting the future trajectory of a person’s hands in first-person (egocentric) video is a cornerstone of embodied AI. Such technology is essential for robots learning from human demonstrations or for augmented reality (AR) systems to provide context-aware assistance. However, this task faces two primary hurdles: camera egomotion and the "affordance gap."
In egocentric video, the camera moves with the wearer's head, causing hand movements to be entangled with head and body motion. Additionally, predicting intent usually requires understanding "object affordances" (e.g., knowing a cup can be picked up), which typically necessitates labor-intensive manual annotations. MADiff addresses these challenges by treating trajectory prediction as a denoising task in a latent space, utilizing state-space models and foundation model guidance.
Methodology
Motion-Aware Mamba (MDSS)
Instead of relying on standard Transformers or CNNs, MADiff utilizes Mamba, a Selective State Space Model, as its backbone. The authors introduce a Motion-Driven Selective Scan (MDSS) that injects camera homography—mathematical descriptions of camera movement—directly into the model’s state transitions. This allows the model to explicitly "undo" distortions caused by the wearer's movement, such as walking or head tilting.
Foundation Model Guidance and CDC Operation
To eliminate the need for manual affordance labels, MADiff employs GLIP, a vision-language foundation model. By providing a simple text prompt like "hand," the model automatically extracts high-level semantic features regarding hand-object relationships.
Furthermore, the framework utilizes a Continuous-Discrete-Continuous (CDC) operation. While diffusion models operate in continuous mathematical spaces, hand positions are discrete on a pixel grid. The CDC operation inserts a rounding step during inference to force the model to respect these discrete constraints, stabilizing training and preventing trajectory drift.
Physically-Inspired Constraints
Standard loss functions often fail to capture the physical reality of human motion. MADiff introduces Angle Loss and Length Loss to ensure that predicted trajectories are not just mathematically close to the ground truth, but are physically plausible. The angle constraint maintains directionality, while the length constraint ensures stability, preventing the model from predicting impossible, jagged movements.
Experiments and Results
Datasets
The model was evaluated on five major egocentric video datasets: Epic-Kitchens-55, Epic-Kitchens-100, EGTEA Gaze+, EgoPAT3D-DT, and H2O-PT. These datasets cover a wide range of activities, from kitchen tasks to complex two-hand manipulations.
Performance Benchmarks
MADiff established new state-of-the-art (SOTA) benchmarks across all tested datasets:
- Accuracy: On Epic-Kitchens-100, MADiff achieved a Weighted Displacement Error (WDE) of 0.387, outperforming the previous best of 0.407.
- Generalization: The model demonstrated strong zero-shot capabilities on unseen scenes in the EgoPAT3D-DT dataset, achieving an Average Displacement Error (ADE) of 0.054 compared to the previous SOTA of 0.060.
- Efficiency: With an inference time of approximately 0.15 seconds per prediction, the model is suitable for real-time applications in robotics and AR.
Discussion and Insights
- Causality and Temporal Modeling: The research highlights that bidirectional scans, common in many sequence models, can actually degrade performance in trajectory prediction. Because hand movement is strictly causal, Mamba’s forward-only scan naturally respects the "arrow of time."
- Egomotion as a Signal: Rather than treating camera shake as noise to be filtered, MADiff leverages it as a primary signal to align 2D image observations with 3D physical reality.
- Implicit vs. Explicit Affordance: While the model successfully uses implicit semantic features from foundation models, future work could involve adding a dedicated branch to output explicit maps of interactable objects.
Conclusion
MADiff represents a significant advancement in egocentric hand trajectory prediction. By combining the temporal efficiency of Mamba with the generative flexibility of Diffusion Models and the semantic richness of vision-language foundation models, it provides a robust, label-efficient solution for embodied AI. Future research will focus on predicting future head movements alongside hand trajectories to further improve long-term prediction accuracy.
Summary updated