What If: Understanding Motion Through Sparse Interactions

Stefan Andreas Baumann, Nick Stracke, Timy Phan, Björn Ommer

TL;DR

This paper introduces the Flow Poke Transformer (FPT), a novel framework that models the distribution of possible object motions in a scene, conditioned on sparse user interactions called "pokes." This allows for more realistic and interpretable predictions of complex, uncertain, and multimodal scene dynamics, going beyond single-trajectory predictions.

What Problem Does This Paper Address?

Understanding how physical scenes change is a fundamental aspect of human intelligence. Traditional methods often predict a single, deterministic future motion, which fails to capture the inherent uncertainty and multimodality of real-world dynamics. For instance, a slight nudge to a stack of blocks could lead to various outcomes: toppling, remaining stable, or shifting slightly. These methods also struggle with compounding uncertainty over longer time horizons. The paper aims to address this by developing a model that directly predicts the distribution of possible motions, offering a more nuanced and actionable understanding of scene dynamics, especially when guided by sparse, localized interactions.

Methods

The core of the proposed solution is the Flow Poke Transformer (FPT). This architecture leverages a transformer backbone, which is well-suited for handling sparse sequences. Here's a breakdown of its key components:

  • Image Encoder: A Vision Transformer (ViT) is used to encode the input image, providing spatial features.
  • Poke and Query Tokens: Interactions (pokes) and points of interest (queries) are represented as learned embeddings. Positional encoding is handled using relative positional embeddings, allowing for arbitrary precision.
  • Cross-Attention: Poke and query tokens attend to the image features, incorporating visual context.
  • Output Distribution: The model predicts a Gaussian Mixture Model (GMM) for the motion distribution at each query point. Crucially, it uses full covariance matrices for each component, offering more flexibility than purely diagonal ones. This allows for capturing complex, multi-modal motion patterns.
  • Query-Causal Attention: To improve efficiency, a specific attention mechanism is employed where query tokens only attend to themselves and the pokes, not to other queries. This enables parallel processing of queries.
  • Adaptive Normalization: To handle camera motion in general web videos, adaptive normalization layers are used, allowing the model to condition on whether the camera is static.

The training objective is to minimize the negative log-likelihood of the ground truth motion, conditioned on the input image and pokes.

Datasets

  • WebVid [1]: Used for general pretraining. This large-scale dataset of web videos provides diverse concepts and motion patterns.
  • CoTracker3 [19]: Used for generating optical flow from video clips for training.
  • TalkingHead-1KH [44]: Used for face motion generation evaluation.
  • Drag-A-Move (DAM) [21]: A synthetic dataset of articulated objects used for evaluating motion estimation and moving part segmentation.
  • Objects (DAM+OAHQ): Used for training in the articulated object domain.

No new benchmarks were introduced; the paper evaluates on existing ones.

Key Insights and Ideas

  • Predicting Distributions, Not Just Trajectories: The fundamental insight is that real-world motion is often uncertain and multimodal. By predicting a distribution of possible outcomes, FPT offers a richer understanding than single-trajectory predictions.
  • Sparse Interactions as Powerful Conditioners: The paper demonstrates that even sparse "pokes" (localized movements) can provide significant information to guide and interpret complex scene dynamics.
  • Interpretability Through Distributions: The explicit prediction of motion distributions allows for direct interpretation of uncertainty, multimodality, and the impact of interactions.
  • Generalization to Open-World Data: Training on diverse web videos (WebVid) allows FPT to generalize to various scenes and object categories, a significant advantage over domain-specific models.
  • Moving Part Segmentation as a Natural Emergent Task: The ability to model conditional motion distributions directly enables tasks like moving part segmentation through KL divergence, without requiring specialized modules.

Key Results

  • Face Motion Generation: FPT achieves competitive performance on face motion generation, outperforming generic methods and matching specialized ones, especially in zero-shot settings. It shows improved accuracy gains with more pokes.
  • Articulated Object Motion Estimation: In a zero-shot setting on the DAM dataset, FPT significantly outperforms Motion-I2V. When fine-tuned, it surpasses previous state-of-the-art methods by a wide margin.
  • Moving Part Segmentation: FPT achieves state-of-the-art results on moving part segmentation, outperforming existing methods even in its generic setting, and significantly so when fine-tuned.
  • Efficiency: Inference for a single conditional movement distribution prediction can be achieved in under 25ms on an H200 GPU, enabling real-time applications. Throughput is around 160k predictions per second per image.
  • Uncertainty Calibration: The predicted motion uncertainty (standard deviation) strongly correlates with the actual prediction error (EPE), indicating that the model's confidence is well-calibrated.

Limitations and Future Work

  • Cartoon Generalization: The paper acknowledges that the model, trained on realistic videos, does not generalize well to cartoons, sometimes moving background elements with objects.
  • Shadow Prediction: Occasionally, the model predicts the movement of shadows along with objects, which can be problematic for downstream tasks.
  • Future Work: The authors envision their work as a foundation for more probabilistic, generalizable, and actionable motion understanding models. They suggest further advancements in handling ambiguous and extreme out-of-distribution scenarios. The paper also hints at extensions to 3D motion.

Summary updated

BibTeX
@inproceedings{baumann2025what,
  author = {Stefan Andreas Baumann and Nick Stracke and Timy Phan and Björn Ommer},
  title = {{What If: Understanding Motion Through Sparse Interactions}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure