Monkey See, Monkey Do: Harnessing Self-attention in Motion Diffusion for Zero-shot Motion Transfer

Sigal Raab, Inbar Gat, Nathan Sala, Guy Tevet, Rotem Shalev-Arkushin, Ohad Fried, Amit Haim Bermano, Daniel Cohen-Or

Introduction

Synthesizing and editing human motion is a cornerstone of robotics, gaming, and animation. While diffusion models have revolutionized this field, editing them remains a challenge. Current methods typically rely on high-level text prompts or low-level joint constraints, which often fail to capture subtle nuances—the specific way a person limps, a unique dance flourish, or the "motifs" of a specific character.

Existing tools often manipulate the "motion space" (joint angles) rather than the "latent feature space," missing out on the rich prior knowledge embedded in pre-trained models. Furthermore, many techniques require expensive training on specific styles. To address these gaps, the authors present MoMo (Monkey See, Monkey Do), a novel zero-shot framework that enables high-fidelity human motion transfer by tapping into the self-attention mechanisms of pre-trained diffusion models.

Methodology

MoMo operates on the hypothesis that self-attention layers in Transformer-based motion diffusion models (like MDM) separate motion into two components: the Outline (Queries - $Q$), representing the structural plan and timing, and the Motifs (Keys and Values - $K, V$), representing stylistic details and characteristic poses.

The MoMo pipeline utilizes mixed attention to combine leader structure with follower motifs.

The MoMo pipeline consists of three main stages:

  1. Inversion: Using DDIM inversion to convert real-world motions into starting noise latents.
  2. Mixed Attention: During denoising, MoMo injects Queries ($Q$) from a "leader" motion and Keys ($K$) and Values ($V$) from a "follower" motion into the self-attention layers.
  3. Zero-Shot Execution: The process requires no additional training or optimization, functioning entirely at inference time by manipulating the attention maps of a fixed, pre-trained model.

Key Insights: The Anatomy of Motion Features

A critical discovery in this work is the functional separation of $Q$ and $K$ features. Through K-Means clustering of latent features, the authors found that $Q$ features are dominated by the temporal "outline" (e.g., periodic steps), while $K$ features capture specific "motifs" (e.g., unique gestures). This separation allows for the surgical swapping of structure and style.

Furthermore, the self-attention mechanism naturally establishes implicit semantic correspondence. For example, a "leg up" query in a walking leader will naturally attend to the corresponding "leg up" key in a dancing follower, ensuring semantically aligned transfer without explicit joint mapping.

Results and Evaluation

MoMo was evaluated using the HumanML3D dataset and a new Motion Transfer Benchmark (MTB) consisting of 842 motion pairs. The framework demonstrated superior performance against state-of-the-art baselines like MoST and MDM Inpainting.

Zero-shot motion transfer results showing the combination of leader locomotion with various follower styles.

Key quantitative and qualitative findings include:

  • Superior Quality: MoMo achieved an FID of 2.33 on the MTB benchmark, significantly outperforming the nearest latent-space baseline (3.63).
  • Out-of-Distribution (OOD) Synthesis: The model can generate unseen motions, such as a "gorilla dancing," by combining a human dance outline with gorilla motifs.
  • Style & Action Transfer: The system successfully transfers the rhythm of a walk to various follower styles (e.g., "crouching" or "limping") while maintaining the follower's unique identity.

Conclusion and Future Work

MoMo demonstrates that self-attention layers in pre-trained diffusion models are powerful tools for zero-shot motion editing. While highly effective, the method has limitations, such as dependency on compatible outlines between the leader and follower. Future research may explore non-deterministic models to increase output diversity and investigate other network layers, such as cross-attention, to further refine motion control.

Summary updated

BibTeX
@inproceedings{raab2024monkey,
  author = {Sigal Raab and Inbar Gat and Nathan Sala and Guy Tevet and Rotem Shalev-Arkushin and Ohad Fried and Amit Haim Bermano and Daniel Cohen-Or},
  title = {{Monkey See, Monkey Do: Harnessing Self-attention in Motion Diffusion for Zero-shot Motion Transfer}},
  booktitle = {SIGGRAPH Asia},
  year = {2024},
  url = {https://openreview.net/forum?id=bJzryr5WVF},
}
Figure