History Repeats Itself: Human Motion Prediction via Motion Attention

Wei Mao, Miaomiao Liu, Mathieu Salzmann

Introduction

Predicting future human movement is a fundamental challenge in computer vision and robotics, with applications ranging from autonomous driving to human-robot interaction. The core task involves forecasting a sequence of future 3D poses based on a observed history of recent movements. Historically, Recurrent Neural Networks (RNNs) were the standard approach; however, they frequently suffer from long-term dependency issues, often causing predicted motions to "freeze" into static, unnatural poses after only a few frames.

While newer feed-forward networks and attention mechanisms have improved performance, they often rely on frame-wise attention. This approach compares the current static pose to past static poses, which the authors identify as a major flaw. A single static pose—such as standing with arms down—can occur in vastly different contexts (e.g., the start of a walk versus the middle of a cooking task). Frame-wise attention ignores the direction and dynamics of motion, leading to ambiguous and inaccurate forecasts.

The Motion Attention Framework

To resolve the ambiguity inherent in static poses, this paper introduces a Motion Attention Model. Instead of comparing individual frames, the model searches for similar sub-sequences of movement within a person's history to forecast their next steps.

The proposed Motion Attention architecture, integrating sequence-based attention with DCT and GCN components to capture temporal and spatial dependencies.

The architecture utilizes a Query-Key-Value (QKV) structure common in modern transformer models:

  • Query: The most recently observed sequence of motion.
  • Keys: Various historical sequences of motion from the person's past.
  • Values: The actual future motions that followed those historical keys.

By calculating similarity scores between the Query and Keys, the model weights and aggregates the corresponding Values to estimate future motion. To ensure smooth, jitter-free trajectories, motion sequences are converted into frequency space using the Discrete Cosine Transform (DCT). Finally, a Graph Convolutional Network (GCN) processes these features, treating the human skeleton as a graph to learn spatial dependencies between joints (e.g., the coordination between a swinging arm and a stepping leg).

Experimental Evaluation

The model was rigorously tested on three major benchmarks:

  1. Human3.6M (H3.6M): The standard benchmark for indoor 3D pose prediction.
  2. AMASS: A massive dataset unifying multiple motion capture sources.
  3. 3DPW (3D Pose in the Wild): Used for zero-shot generalization tests, where a model trained on AMASS is evaluated on unseen outdoor actions.

Unlike previous state-of-the-art models (such as LTD) that required separate training for different prediction horizons, this motion attention mechanism allows a single unified model to handle both short-term and long-term predictions effectively.

Results and Discussion

The proposed model consistently outperforms existing baselines, including RNNs and previous feed-forward SOTA models. On the H3.6M dataset for long-term prediction (1000ms), it achieved a Mean Per Joint Position Error (MPJPE) of 112.1mm, surpassing the previous best of 114.0mm.

Qualitative comparison showing the proposed method's ability to maintain realistic motion dynamics over a 1-second horizon compared to the LTD baseline.

Qualitative results demonstrate that the model generates highly realistic, continuous motion. As seen in the comparisons, while baselines may drift or lose the rhythm of periodic motions like walking, the motion attention mechanism successfully identifies and repeats historical patterns to maintain coherence. Ablation studies further confirmed that replacing motion attention with frame-wise attention significantly increased long-term error (from 112.4mm to 136.7mm), validating the sequence-matching hypothesis.

Conclusion

By shifting the focus from static poses to dynamic motion sequences, this work demonstrates that human movement is often repetitive and predictable when viewed through the right temporal lens. The combination of motion attention, DCT encoding, and GCN spatial modeling provides a robust framework for both short- and long-term forecasting. Future research aims to investigate body-part level attention to better predict complex, decoupled movements where different limbs may follow independent patterns.

Summary updated

BibTeX
@inproceedings{mao2020history,
  author = {Wei Mao and Miaomiao Liu and Mathieu Salzmann},
  title = {{History Repeats Itself: Human Motion Prediction via Motion Attention}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=B6DEbCorolc},
}
Figure