Manuscript Offprint

arXiv:2609.04383

What Moves? Localized Motion Representations for Compositional Scene Control

Frank Fundel, Malek Ben Alaya, Thomas Ressler-Antal, Stefan Andreas Baumann, Björn Ommer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Frank Fundel,* Malek Ben Alaya,* Thomas Ressler-Antal,* Stefan Andreas Baumann, Björn Ommer

CompVis @ LMU Munich, Munich Center for Machine Learning (MCML)

Real-world dynamics are inherently compositional: multiple entities move simultaneously within a shared scene, each exhibiting distinct motion patterns. Yet most existing video representations encode motion globally, without explicitly capturing localized motion for individual entities. Crucially, motion is defined relative to a global reference frame, including camera motion and scene layout. However, localized embeddings are often computed from cropped images or obtained by masking features after encoding, discarding the context needed to interpret motion. To address this, we introduce a promptable localized motion representation that produces persistent embeddings for user-specified regions defined by spatial masks. Rather than cropping the input or masking features, our model processes the full video and conditions motion encoding directly on the queried region. This yields temporally consistent, region-addressable embeddings that isolate local dynamics while retaining the global context required for disambiguation. We demonstrate object-level motion transfer, enabling controlled composition of dynamic scenes. Beyond generative control, our embeddings support localized action classification in multi-actor videos. Across both tasks, our approach improves controllability and outperforms global representations localized through cropping or post-hoc masking.

Project Page: https://compvis.github.io/WhatMoves

Code: https://github.com/CompVis/WhatMoves

vision computer

Figure

Figure 1: Localized motion representations enable context-aware scene composition. (Left) Our method extracts motion from selected regions while preserving global contextual cues such as camera motion, interactions, and scale, unlike cropping-based localization. (Right) These localized representations can be transferred from multiple source videos to target objects, enabling the composition of distinct motions within a single scene.

1 Introduction

Motion is a defining characteristic of the visual world. Real-world scenes are inherently compositional, consisting of multiple entities whose dynamics unfold simultaneously within a shared environment. A driving scene contains vehicles,

*Equal contribution.

pedestrians, and background motion with distinct temporal patterns; human-object interactions involve coordinated, yet separable movements of body parts and manipulated objects. Modeling such dynamics requires representations that are localized, persistent, and semantically grounded. Despite rapid advances in video generation and motion control, most existing approaches represent motion either globally or at the pixel level. Global motion embeddings entangle the dynamics of all entities into a single latent code [39], while dense optical flow or trajectory fields encode motion locally but lack semantic structure and compositional interpretability. As a result, motion remains difficult to isolate, recombine, or selectively manipulate at the object level. This limitation becomes particularly apparent in tasks such as motion transfer and video editing. Existing methods often extract motion globally and reapply it to new scenes [13, 32, 39, 41–43], leading to motion leakage, spatial ambiguity, or incorrect attachment to unintended regions. While these approaches demonstrate impressive generative quality, they lack an explicit, semantic representation of who is moving and how. A seemingly straightforward solution is to localize motion by applying global motion encoders to spatial crops of a video. Yet motion is inherently relational: its meaning depends on global reference frames and interactions between entities. When this context is removed, the motion signal within a crop may no longer uniquely determine the underlying dynamics. Consequently, embeddings extracted from isolated regions are not guaranteed to represent well-defined object-level motion.

Our approach operates directly on the full input video while leveraging spatiotemporal spatial masks to localize motion signals. Instead of cropping regions, we retain the entire scene context and apply region-specific masks over time within the encoder. A motion encoder processes the masked video features to produce compact entity-level motion embeddings, while a motion decoder reconstructs the corresponding localized point trajectories, encouraging spatial specificity and disentanglement from static appearance. By preserving global context during encoding and enforcing localization through masking, our method yields motion representations that are both contextually grounded and spatially isolated. This structured representation naturally enables compositional video generation and control. Motion from individual entities can be selectively extracted, recombined, and reattached to arbitrary targets to animate a scene. Beyond motion transfer, the learned embeddings support localized action classification, highlighting their role as general representations for motion understanding and generation.

Through extensive experiments, we demonstrate that our approach enables precise spatial controllability and structured motion composition in generative settings. In localized motion transfer experiments, our method supports accurate extraction and reattachment of region-specific dynamics while significantly reducing motion leakage compared to global motion conditioning. It further enables compositional recombination of motions across scenes and more consistent cross-view transfer than track-conditioned models that rely on viewpoint-specific trajectories. Beyond generation, we evaluate the learned motion embeddings on motion understanding tasks. In localized action classification, our representations capture spatially specific motion patterns that generalize across actors and scenes, outperforming global video embeddings localized via cropping or post-hoc masking. Together, these results highlight the importance of encoding local motion while preserving full-scene context for both controllable generation and motion understanding.

Our main contributions are summarized as follows:

  • We introduce a promptable localized motion representation that encodes persistent, region-specific motion embeddings conditioned on spatial regions.

  • We show that encoding local motion requires full-scene context, and demonstrate through localized action classification that crop-based or post-hoc masking approaches are insufficient.

  • We demonstrate that the learned motion embeddings enable object-level motion transfer as well as selective extraction and recombination of region-level dynamics, supporting controllable and compositional scene animation in image-to-video settings.

References (69)