Seamless Human Motion Composition with Blended Positional Encodings

Germán Barquero, Sergio Escalera, Cristina Palmero

Introduction

Generating long, seamless human motion sequences from a series of textual descriptions is a cornerstone task for animation and virtual reality. This task, known as Generative Human Motion Composition (HMC), requires an AI to not only understand individual actions like "walking" or "sitting" but also to synthesize the transitions between them naturally.

Current approaches typically struggle with two main issues: autoregressive models accumulate "drift" errors over long sequences, while diffusion-based "infilling" methods—which stitch independent clips together—often produce visible glitches or jerky movements. FlowMDM addresses these challenges by generating the entire sequence simultaneously using a bidirectional Transformer architecture enhanced by Blended Positional Encodings (BPE) and Pose-Centric Cross-Attention (PCCAT).

Methods: Architecture and Innovations

FlowMDM's architecture is designed to maintain global coherence while ensuring local smoothness without the need for expensive post-processing steps.

The FlowMDM architecture featuring Pose-Centric Cross-Attention (PCCAT) and Blended Positional Encodings (BPE).

Blended Positional Encodings (BPE)

The most significant innovation is BPE, which aligns the type of positional encoding with the stage of the diffusion denoising process. Diffusion models typically recover global structure (low frequencies) in early steps and fine details (high frequencies) in later steps.

  • Global Phase: In early denoising steps, the model uses Absolute Positional Encodings (APE). This establishes a global coordinate frame, ensuring the character "knows" their position in the overall sequence.
  • Local Phase: In later steps, the model transitions to Relative Positional Encodings (RoPE). This makes the denoising process translation-invariant, allowing the model to focus on local joint smoothness and enabling the extrapolation of periodic motions (like walking) far beyond the lengths seen during training.

Pose-Centric Cross-Attention (PCCAT)

Standard cross-attention mechanisms can "smear" different text prompts together, leading to semantic confusion at transition points. PCCAT solves this by feeding the text condition only into the query of the attention mechanism. This ensures that each pose is denoised based specifically on its associated prompt and its immediate temporal neighbors, allowing models trained on single-action clips to generalize to multi-prompt sequences at inference time.

Datasets and Evaluation Metrics

The model was rigorously tested on the HumanML3D and Babel datasets. Recognizing that standard metrics like FID (Fréchet Inception Distance) are often "blind" to physical artifacts like foot skating or sudden jerks, the authors introduced two new metrics based on Jerk (the rate of change of acceleration):

  • Peak Jerk (PJ): Captures the maximum "glitch" or sudden unnatural movement during a transition.
  • Area Under the Jerk (AUJ): Measures the cumulative deviation from smooth, natural motion across the entire sequence.

Key Results

FlowMDM establishes a new state-of-the-art (SOTA) across multiple dimensions of motion generation.

FlowMDM generating a seamless sequence from diverse textual prompts: 'forward kick', 'walk slowly', 'get down on ground', and 'crawl'.
  • Realism: On HumanML3D, FlowMDM achieved an FID of 0.29, a massive improvement over the previous state-of-the-art of 0.80.
  • Smoothness: The model reduced transition jerkiness (AUJ) by nearly 50% compared to existing diffusion-based composition methods like MultiDiffusion.
  • Efficiency: By avoiding redundant "refinement" passes or overlapping window denoising, FlowMDM is 16% to 47% faster than its closest competitors.
  • Extrapolation: Qualitatively, it is the only model capable of realistically repeating complex periodic actions indefinitely without the motion breaking down or drifting.

Limitations and Future Work

While FlowMDM represents a significant leap forward, some limitations persist. During the "absolute" stage of BPE, the model generates low-frequency components of different subsequences somewhat independently, which can occasionally lead to minor mismatches, such as slight variations in hip height between "sitting" and "standing" actions. Furthermore, while the model is robust, it can still struggle with extremely intricate, nested textual descriptions that require deep logical reasoning. Future research may explore incorporating "intention planning" modules or leveraging more advanced text embeddings to further refine semantic accuracy in long-form compositions.

Summary updated

BibTeX
@inproceedings{barquero2024seamless,
  author = {Germán Barquero and Sergio Escalera and Cristina Palmero},
  title = {{Seamless Human Motion Composition with Blended Positional Encodings}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure