# TrajLoc: Trajectory-Attention Localization for Multi-Object Motion Control

*Omer Sela, Inbar Huberman-Spiegelglas, Michael Rotman, Sagie Benaim, Avi Ben-Cohen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154385) · [OpenReview](https://openreview.net/forum?id=DyRKHZlevm) · [alphaXiv](https://www.alphaxiv.org/abs/2607.00861) · [Open on the map](../papers.html#p154385)

Category: [Video Understanding & Generation](../pcat/3.md) › [Video Diffusion Memory and Control](../pgroup/262.md) · Type: new method · Keywords: multi-object motion control, image-to-video generation, trajectory attention, object identity preservation, Gaussian heatmap

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Generation › Motion Generation; [Model Architectures & Sequence Modeling](../areas/architectures.md) › World Modeling Architectures › Motion Modeling; [Computer Vision & 3D](../areas/computer-vision.md) › Dynamic Visual Generation › Video Generation; [Robotics & Embodied AI](../areas/robotics.md) › Robot Motion and Manipulation › Physics-Based Simulation

## Summary
TrajLoc introduces a trajectory-attention localization method that isolates each object with per-object spatial constraints and improves visual fidelity and trajectory accuracy in multi-object image-to-video generation.

## Explained to a 5-year-old
We want to make videos where many objects move around together. It is hard to keep track of each object when they cross each other's paths. The paper creates a new way to give each object its own special guide so they don't get mixed up. This guide tells each object where to go every frame, like a tiny map. As a result, the videos look clearer and the objects follow their paths better.

## Explained to a 5-year-old, longer
In image-to-video generation, we can start with a picture and ask a computer to draw a moving movie. Sometimes we want many things in the movie to move, like cars, people, or animals. It is tricky because the computer can get confused about which thing should go where. When two things cross paths or hide behind each other, it is easy to mix them up. The paper solves this by giving each moving object its own tiny guide that tells it exactly where to go. This guide is a smooth shape that points to the object's target spot in every frame of the video. The guide also carries extra information about how fast the object should move and how deep it is. It also remembers what the object looked like at the very first picture so the computer can tell it apart later. By using these separate guides inside the computer's attention mechanism, each object stays independent. This means that even when many objects move at the same time, they follow their own paths without getting tangled. The method works on many different datasets and with two big video models, making the results better in terms of clarity and accuracy. As a result, the videos are more realistic and the objects end up where they are supposed to be more often.

## For a technical reader
The approach tackles multi-object video generation by imposing per-object spatial constraints directly in the transformer’s cross-attention layers. Each object is represented by a token whose attention weights are replaced with a Gaussian heatmap centered on its target location for every frame. This token also carries learned embeddings for trajectory, depth, and the object’s initial appearance to preserve identity across frames. Evaluated on six datasets with up to 20 objects and on two large video backbones, the method yields a +4.3 dB PSNR gain and cuts trajectory end-point error by 51 % versus the best baselines. The released code enables practitioners to apply these per-object constraints to existing image-to-video models without redesigning the architecture.

## Problem
Generating videos where multiple objects follow distinct trajectories while preserving their identities is difficult, especially when objects intersect or occlude each other. Existing methods entangle trajectories in a shared conditioning signal, making object-level correspondence hard to maintain in crowded scenes.

## Method
The approach enforces per-object spatial constraints by modifying cross-attention weights within the transformer layers, using Gaussian heatmaps centered on each object's target location each frame. It also encodes trajectory, depth, and initial appearance into a shared token embedding to preserve identity.

## Results
The approach achieves a +4.3 dB PSNR improvement and a 51% reduction in trajectory end-point error on two large backbones compared to the strongest baselines across up to 20 objects.

## Contributions
It introduces a per-object spatial constraint mechanism that isolates trajectories in attention, encodes trajectory, depth, and appearance into a single token, and demonstrates consistent gains on diverse datasets and backbones.

## Research questions this paper is counted under

- [How can we maintain consistent object identities and spatial relationships across multiple views and time?](../q/310.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154385)
