Motion Question Answering via Modular Motion Programs

Mark Endo, Joy Hsu, Jiaman Li, Jiajun Wu

Introduction

While artificial intelligence has made significant strides in simple action recognition—such as identifying if a person is walking or running—it continues to struggle with complex, multi-step reasoning over long-form temporal data. To address this gap, researchers from Stanford have introduced HumanMotionQA, a novel task and dataset (BABEL-QA) designed to challenge models to perform logical reasoning over 3D human motion. Alongside this dataset, they propose NSPose, a neuro-symbolic framework that decomposes complex questions into modular "motion programs," significantly outperforming traditional end-to-end baselines.

The Challenge of Long-Form Motion Reasoning

Standard motion analysis models often fail when faced with questions requiring compositional logic, such as: "What direction did the person move after they jumped but before they sat down?" The difficulty in answering such queries stems from two primary challenges:

  1. Temporal Grounding: Models must accurately identify the start and end times of specific actions within a continuous stream of motion without explicit segment boundary annotations.
  2. Compositional Reasoning: Models must navigate logical operators like "before," "after," or "in-between" to link multiple events and isolate the relevant motion segment for the final query.

Existing datasets typically focus on short, pre-trimmed clips, which do not reflect the complexity of real-world human behavior. BABEL-QA fills this void by providing a platform for evaluating multi-step reasoning in 3D space over extended durations.

NSPose: A Neuro-Symbolic Framework

To overcome the limitations of "black box" end-to-end models, the authors developed NSPose. This framework treats questions as symbolic programs composed of three functional building blocks:

  • Filter: This module identifies specific segments of motion that correspond to a given concept (e.g., locating the "jumping" phase).
  • Relate: This module learns temporal transformations using 1D convolutional layers with dilations. It allows the model to "look" before or after an identified segment to find neighboring actions.
  • Query: This module extracts specific attributes—such as the action type, movement direction, or involved body part—from the isolated motion segments.

Neuro-Symbolic Integration

The "neuro" component of the system utilizes a Two-Stream Adaptive Graph Convolutional Network (2s-AGCN) to encode raw 3D skeleton data into high-dimensional feature embeddings. The "symbolic" component is the program executor, which recursively processes the logic (Filter → Relate → Query) to reach an answer.

A key innovation of NSPose is its reliance on weak supervision. The model is never provided with ground-truth timestamps for actions; instead, it learns to ground actions temporally by optimizing for the correct answer to the question.

The BABEL-QA Dataset

The researchers introduced BABEL-QA, a dataset derived from the BABEL and AMASS collections. It consists of 1,109 motion sequences and 2,577 procedurally generated question-answer pairs. The questions are specifically designed to require multi-step reasoning and are balanced to ensure that models cannot achieve high accuracy by simply exploiting statistical biases in human movement (e.g., the commonality of sitting after standing).

Key Insights and Results

Experimental results demonstrate that NSPose provides a robust solution for motion-based reasoning:

  • Superior Accuracy: NSPose achieved an overall accuracy of 57.8%, a substantial improvement over the best-performing end-to-end baseline, MotionCLIP-MLP, which reached 43.0%.
  • Logical Integrity: The model's modularity is particularly effective for complex temporal relations. In "in-between" queries, NSPose outperformed baselines by nearly 10% (63.9% vs. 54.5%).
  • Localization via QA: The study confirms that weak supervision is sufficient for temporal localization. Models can learn to identify action boundaries purely through the signal provided by question-answering.
  • Contextual Importance: The authors found that using overlapping motion segments, rather than discrete chunks, improved performance. This suggests that the transitions between actions contain critical information for understanding the overall motion sequence.

Limitations and Future Work

Despite its success, NSPose has several areas for improvement. Currently, the model requires questions to be pre-translated into symbolic programs; a fully autonomous system would require a semantic parser to convert natural language into these programs. Additionally, the model struggled with fine-grained "Body Part" queries (32.5% accuracy), suggesting that current motion encoders may need to capture more detailed limb-specific data. Finally, expanding the system from a fixed vocabulary to open-vocabulary reasoning remains a significant goal for future research.

Summary updated

BibTeX
@inproceedings{endo2023motion,
  author = {Mark Endo and Joy Hsu and Jiaman Li and Jiajun Wu},
  title = {{Motion Question Answering via Modular Motion Programs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=FcJ1YX6wVS},
}
Figure