TL;DR
This paper introduces a unified Transformer-based framework for motion completion that handles in-betweening, in-filling, and blending in a single forward pass. By leveraging a novel "mixture embedding" module, the model achieves new state-of-the-art accuracy on standard benchmarks while running in real-time on a standard CPU.
What Problem Does This Paper Address?
Generating smooth, realistic transitions between character poses is a cornerstone of modern animation in film and video games. Traditionally, this "motion completion" task was fragmented: researchers designed specific architectures for in-betweening (filling the gap between a past sequence and a future target), in-filling (completing sparse keyframes), and blending (transitioning between two distinct clips).
Furthermore, most existing deep learning approaches are auto-regressive, meaning they predict motion frame-by-frame. This is not only computationally expensive but also prone to "drift," where small errors in early frames accumulate, leading to unnatural-looking results over time. The authors sought a unified, non-autoregressive method that could handle any completion scenario efficiently and accurately.
Methods
The authors propose the Motion Completion Transformer, which treats motion completion as a sequence-to-sequence prediction problem. Unlike previous models that generate frames one by one, this architecture takes a full (but partially masked) sequence and predicts all missing frames simultaneously.
Key components include:
- 1D Convolutional Heads: Instead of simple linear projections, the model uses 1D temporal convolutions at the input and output. This helps the model better capture local temporal dynamics like velocity and acceleration.
- Transformer Backbone: The model uses a BERT-like encoder architecture, which excels at capturing long-range dependencies across the entire motion sequence through self-attention.
- Mixture Embedding Module: This is the core innovation. It combines two types of learnable embeddings:
- Position Embeddings: Trainable vectors that encode the temporal order of frames.
- Keyframe Embeddings: A set of labels that tell the model which frames are known "keyframes" and which are "unknown" targets to be predicted.
- Kinematics-Aware Loss: To ensure physical plausibility, the training loss combines standard pose reconstruction (L1 distance) with Forward Kinematics (FK) and Inverse Kinematics (IK) losses to minimize joint errors in both local and global coordinate systems.
Datasets
The model was evaluated on three distinct datasets:
- LaFAN1: A high-quality general motion capture dataset used as the primary benchmark for in-betweening.
- Anidance: A public music-dance dataset used to test sparse in-filling.
- New Dance Dataset: A challenging dataset collected by the authors featuring senior dancers performing five styles (Jazz, Street, J-pop, Indian, and Uygur dance) to test complex motion blending.
Key Insights and Ideas
- Single-Shot is Superior: By moving away from recursive, frame-by-frame prediction, the model avoids error accumulation and enables massive parallelization on GPUs.
- Global Coordinates Matter: The authors found that predicting poses in a global coordinate system often yields higher accuracy than local hierarchies, as it prevents the "compounding error" effect of joint rotations down a skeletal chain.
- Unified Flexibility: The mixture embedding module (illustrated below) allows the same model weights to handle vastly different tasks. Whether you provide two keyframes at the ends (blending) or scattered keyframes throughout (in-filling), the keyframe embedding tells the Transformer exactly what to focus on.
Key Results
- State-of-the-Art Accuracy: The model outperformed previous methods (like ERD-QV) across all metrics (L2Q, L2P, and NPSS) on the LaFAN1 dataset.
- Real-Time Performance: On a standard desktop CPU (i7-8700K), the model processes 40 motion sequences per second (each 30 frames long). This is roughly 12x faster than previous state-of-the-art recursive models.
- Qualitative Superiority: The model generates significantly more natural and complex transitions compared to standard linear interpolation (LERP), especially in high-dynamic dance sequences.
Limitations and Future Work
While highly effective, the authors noted a few areas for improvement:
- Bone Length Consistency: When predicting in global coordinates, the model can occasionally produce slight variations in bone length (stretching), which is physically impossible. While IK loss helps, it doesn't perfectly solve the issue.
- High-Frequency Discontinuity: In extremely fast dance movements, the initial linear interpolation used to "fill" the input sequence can introduce rotational discontinuities that the Transformer must work hard to smooth out.
- Future Directions: The team plans to investigate better ways to enforce rigid bone constraints and explore handling even more complex, high-frequency athletic motions.
Summary updated