HyperAIHyperAI

Command Palette

Search for a command to run...

Bewegungsattribution für die Video-Generierung

Xindi Wu Despoina Paschalidou Jun Gao Antonio Torralba Laura Leal-Taixé Olga Russakovsky Sanja Fidler Jonathan Lorraine

Zusammenfassung

Trotz des raschen Fortschritts von Video-Generierungsmodellen ist die Rolle der Daten bei der Beeinflussung von Bewegung nur unzureichend verstanden. Wir präsentieren MOTIVE (MOTIon attribution for Video gEneration), ein bewegungszentriertes, gradientenbasiertes Framework zur Datenattribution, das auf moderne, große und hochwertige Video-Datensätze und -Modelle skaliert. Wir nutzen MOTIVE, um zu untersuchen, welche Fine-Tuning-Clips die zeitliche Dynamik verbessern oder verschlechtern. MOTIVE isoliert zeitliche Dynamik von statischem Erscheinungsbild mittels bewegungsgewichteter Loss-Masken und ermöglicht so eine effiziente und skalierbare bewegungsspezifische Einflussberechnung. Bei Text-zu-Video-Modellen identifiziert MOTIVE Clips, die die Bewegung stark beeinflussen, und leitet eine Datenkuratierung ab, die zeitliche Konsistenz und physikalische Plausibilität verbessert. Mit MOTIVE-ausgewählten hochinfluenten Daten verbessern wir sowohl die Bewegungsglattheit als auch den Dynamikgrad auf VBench und erreichen eine Gewinnrate bei menschlicher Präferenz von 74,1 % im Vergleich zum vorab trainierten Basismodell. Nach unserem Kenntnisstand ist dies das erste Framework, das in generativen Video-Modellen Bewegung anstelle von visuellem Erscheinungsbild attributioniert und dieses zur Kuratierung von Fine-Tuning-Daten nutzt.

One-sentence Summary

NVIDIA, MIT, and UIUC propose MOTIVE, the first motion-centric gradient-based data attribution framework for video generation that isolates temporal dynamics from static appearance via motion-weighted loss masks, enabling scalable influence computation to curate fine-tuning data that improves temporal consistency and physical plausibility.

Key Contributions

  • This work presents MOTIVE, a motion-centric gradient-based data attribution framework for video generative models that attributes fine-tuning clips to temporal dynamics rather than static visual appearance at large modern video scales.

  • MOTIVE uses motion-weighted loss masks to isolate temporal dynamics from static appearance, enabling efficient motion-specific influence computation and identification of clips that strongly affect motion smoothness, temporal consistency, and physical plausibility.

  • Experiments on text-to-video models show that MOTIVE-guided data curation improves motion smoothness and dynamic degree on VBench, achieving a 74.1% human preference win rate against the pretrained base model.

Introduction

Video generation with diffusion or flow-matching models goes beyond image synthesis because it must learn temporal dynamics such as object motion, camera movement, deformation, and physical interaction. As these models scale with data, understanding which training clips teach a model to move well is important for diagnosing artifacts and selecting fine-tuning data, especially when large pretraining corpora are unavailable.

Existing data attribution methods mainly explain static visual content and, when applied naively to videos, conflate appearance with motion. They can fail to localize dynamic regions, become costly when integrating gradients across frames, and suffer from biases such as clip length or diffusion timestep effects.

The authors leverage gradient-based attribution to build MOTIVE, a motion-aware framework that masks toward dynamic regions, corrects frame-length effects, and traces generated motion to influential training clips. It also uses efficient approximations to scale to large models and datasets, and it can improve motion smoothness and dynamic degree with a small fraction of training data.

Method

The authors design an attribution framework for video diffusion models in the fine-tuning setting. The input is a fine-tuning corpus Dft={(vn,cn)}n=1N\mathcal{D}_{\mathrm{ft}} = \{(\mathbf{v}_n, \mathbf{c}_n)\}_{n=1}^{N}Dft​={(vn​,cn​)}n=1N​ and a query video-caption pair (v^,c^)(\hat{\mathbf{v}}, \hat{\mathbf{c}})(v^,c^). The goal is to assign each training clip (vn,cn)(\mathbf{v}_n, \mathbf{c}_n)(vn​,cn​) a motion-aware influence score that explains how that clip contributes to the temporal dynamics observed in the generated query video. The design is guided by two practical constraints: the score should be predictive of which data subsets actually improve target motion during fine-tuning, and it should scale to large video models and large corpora without requiring inverse Hessian inversion, per-example trajectory integration, or full gradient storage.

The pipeline converts attribution into a compact gradient geometry problem. Instead of estimating the exact curvature involved in classical influence functions, the authors approximate the inverse Hessian with an identity preconditioner and estimate influence from the alignment of training and test gradients. The diffusion loss gradients are computed under paired random variables, so the same timestep and noise vector are used for both the training clip and the query clip. This shared randomness reduces variance and makes the ranking of candidate examples more stable.

For a set of sampled noise-timestep pairs T\mathcal{T}T, a paired multi-sample estimator can be written as

Idiff1(xn,xtest)=1∣T∣∑t,ϵ∈T∇θLdiff(θ;xtest,t,ϵ)⊤∥∇θLdiff(θ;xtest,t,ϵ)∥∇θLdiff(θ;xn,t,ϵ)∥∇θLdiff(θ;xn,t,ϵ)∥.I_{\mathrm{diff}}^{1}(\mathbf{x}_n,\mathbf{x}_{\mathrm{test}}) = \frac{1}{|\mathcal{T}|} \sum_{t,\boldsymbol{\epsilon}\in\mathcal{T}} \frac{ \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_{\mathrm{test}},t,\boldsymbol{\epsilon})^{\top} }{ \left\| \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_{\mathrm{test}},t,\boldsymbol{\epsilon}) \right\| } \frac{ \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_n,t,\boldsymbol{\epsilon}) }{ \left\| \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_n,t,\boldsymbol{\epsilon}) \right\| }.Idiff1​(xn​,xtest​)=∣T∣1​t,ϵ∈T∑​∥∇θ​Ldiff​(θ;xtest​,t,ϵ)∥∇θ​Ldiff​(θ;xtest​,t,ϵ)⊤​∥∇θ​Ldiff​(θ;xn​,t,ϵ)∥∇θ​Ldiff​(θ;xn​,t,ϵ)​.

To reduce cost further, the framework collapses this into a single-sample estimator by fixing one shared timestep tfixt_{\mathrm{fix}}tfix​ and one shared noise draw ϵfix∼N(0,I)\boldsymbol{\epsilon}_{\mathrm{fix}} \sim \mathcal{N}(\mathbf{0}, \mathbf{I})ϵfix​∼N(0,I) across all query-training comparisons. The resulting cosine-like score is

Idiff2(xn,xtest)=∇θLdiff(θ;xtest,tfix,ϵfix)∥∇θLdiff(θ;xtest,tfix,ϵfix)∥⊤∇θLdiff(θ;xn,tfix,ϵfix)∥∇θLdiff(θ;xn,tfix,ϵfix)∥.I_{\mathrm{diff}}^{2}(\mathbf{x}_n,\mathbf{x}_{\mathrm{test}}) = \frac{ \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_{\mathrm{test}},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) }{ \left\| \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_{\mathrm{test}},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \right\| }^{\top} \frac{ \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_n,t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) }{ \left\| \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{x}_n,t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \right\| }.Idiff2​(xn​,xtest​)=∥∇θ​Ldiff​(θ;xtest​,tfix​,ϵfix​)∥∇θ​Ldiff​(θ;xtest​,tfix​,ϵfix​)​⊤∥∇θ​Ldiff​(θ;xn​,tfix​,ϵfix​)∥∇θ​Ldiff​(θ;xn​,tfix​,ϵfix​)​.

Because raw gradients are prohibitive to store for billion-parameter video models, the method adds a structured random projection step. A Johnson-Lindenstrauss style Fastfood projection maps high-dimensional gradients into a smaller space while preserving relative cosine geometry. The projection matrix is constructed from a sequence of randomized transforms,

P=1ξD′SQGΠQB,\mathbf{P} = \frac{1}{\xi\sqrt{D'}} \mathrm{SQG}\Pi\mathrm{QB},P=ξD′​1​SQGΠQB,

where Q\mathbf{Q}Q is a Walsh-Hadamard matrix, B\mathbf{B}B is a diagonal Rademacher matrix, Π\PiΠ is a random permutation, G\mathbf{G}G is a diagonal Gaussian scaling matrix, S\mathbf{S}S is a diagonal rescaling matrix, and ξ\xiξ stabilizes the variance. Each gradient is projected and then normalized,

g~(θ,x)=P∇θLdiff(θ,x,tfix,ϵfix)∥P∇θLdiff(θ,x,tfix,ϵfix)∥.\tilde{\mathbf{g}}(\boldsymbol{\theta},\mathbf{x}) = \frac{ \mathbf{P} \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta},\mathbf{x},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) }{ \left\| \mathbf{P} \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta},\mathbf{x},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \right\| }.g~​(θ,x)=∥P∇θ​Ldiff​(θ,x,tfix​,ϵfix​)∥P∇θ​Ldiff​(θ,x,tfix​,ϵfix​)​.

The final video-level score is the cosine similarity in the projected space,

Idiff3(xn,xtest)=g~(θ,xtest)⊤g~(θ,xn).I_{\mathrm{diff}}^{3}(\mathbf{x}_n,\mathbf{x}_{\mathrm{test}}) = \tilde{\mathbf{g}}(\boldsymbol{\theta},\mathbf{x}_{\mathrm{test}})^{\top} \tilde{\mathbf{g}}(\boldsymbol{\theta},\mathbf{x}_n).Idiff3​(xn​,xtest​)=g~​(θ,xtest​)⊤g~​(θ,xn​).

This gives approximate gradient similarity while storing only low-dimensional vectors per example.

The authors also correct a video-specific scale problem. Raw diffusion gradients grow with the number of frames FFF in a video, which can bias rankings toward longer clips. To remove this length-dependent inflation, the gradient is divided by the frame count before projection and normalization:

∇θLdiff(θ;v,tfix,ϵfix)←1F∇θLdiff(θ;v,tfix,ϵfix).\nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{v},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \leftarrow \frac{1}{F} \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{diff}}(\boldsymbol{\theta};\mathbf{v},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}).∇θ​Ldiff​(θ;v,tfix​,ϵfix​)←F1​∇θ​Ldiff​(θ;v,tfix​,ϵfix​).

The framework then still applies L2L_2L2​ normalization to stabilize comparisons across clips.

Video-level gradient similarity alone is not sufficient for motion understanding because it can reward shared appearance, backgrounds, or objects rather than temporal dynamics. The central module of the method is therefore motion attribution. This module operates in the latent space used by the video diffusion model. Given a video

v∈RF×H×W×3,\mathbf{v}\in\mathbb{R}^{F\times H\times W\times 3},v∈RF×H×W×3,

the encoder maps it to latent features

h=E(v)∈RF×H/s×W/s×C,\mathbf{h} = E(\mathbf{v}) \in \mathbb{R}^{F\times H/s\times W/s\times C},h=E(v)∈RF×H/s×W/s×C,

with a spatial downsampling factor sss and latent channel dimension CCC. In the described implementation, the latent geometry matches a video VAE backbone with s=8s=8s=8 and C=16C=16C=16.

Motion information is computed in pixel space using a dense motion tracker or optical flow extractor. The tracker produces

A=A(v)∈RF×H×W×4,\mathbf{A} = \mathcal{A}(\mathbf{v}) \in \mathbb{R}^{F\times H\times W\times 4},A=A(v)∈RF×H×W×4,

where the first two channels encode horizontal and vertical pixel displacement between frames, while the remaining channels encode visibility or confidence information. The displacement vector at frame fff and pixel location (h,w)(h,w)(h,w) is

Df(h,w)=(Af,h,w,0,Af,h,w,1).\mathbf{D}_f(h,w) = (A_{f,h,w,0}, A_{f,h,w,1}).Df​(h,w)=(Af,h,w,0​,Af,h,w,1​).

The raw motion magnitude is the Euclidean norm

Mf(h,w)=∥Df(h,w)∥2.M_f(h,w) = \|\mathbf{D}_f(h,w)\|_2.Mf​(h,w)=∥Df​(h,w)∥2​.

To avoid dominance from videos with unusually large absolute motion magnitudes, these values are min-max normalized across all frames and pixel locations:

W(f,h,w)=Mf(h,w)−mmin⁡mmax⁡−mmin⁡+ζ,\mathbf{W}(f,h,w) = \frac{M_f(h,w)-m_{\min}}{m_{\max}-m_{\min}+\zeta},W(f,h,w)=mmax​−mmin​+ζMf​(h,w)−mmin​​,

where

mmin⁡=min⁡f′,h′,w′Mf′(h′,w′),mmax⁡=max⁡f′,h′,w′Mf′(h′,w′),m_{\min} = \min_{f',h',w'} M_{f'}(h',w'), \qquad m_{\max} = \max_{f',h',w'} M_{f'}(h',w'),mmin​=f′,h′,w′min​Mf′​(h′,w′),mmax​=f′,h′,w′max​Mf′​(h′,w′),

and ζ=10−6\zeta = 10^{-6}ζ=10−6 prevents division by zero. This normalization emphasizes relative motion saliency rather than raw displacement scale.

The motion weights are then bilinearly downsampled from pixel resolution to the latent grid:

W~(f,h~,w~)=Bilinear(W(⋅,⋅,⋅),F,Hs,Ws).\tilde{\mathbf{W}}(f,\tilde{h},\tilde{w}) = \mathrm{Bilinear} \left( \mathbf{W}(\cdot,\cdot,\cdot), F, \frac{H}{s}, \frac{W}{s} \right).W~(f,h~,w~)=Bilinear(W(⋅,⋅,⋅),F,sH​,sW​).

Using fixed tfixt_{\mathrm{fix}}tfix​ and ϵfix\boldsymbol{\epsilon}_{\mathrm{fix}}ϵfix​, the method computes a per-location squared error between the predicted noise and the target noise at each latent frame and latent spatial location:

L~θ,v,c(f,h~,w~)=([ϵθ(z(v,tfix,ϵfix),tfix,c)]f,h~,w~−[ϵtarget(tfix,ϵfix)]f,h~,w~)2.\tilde{\mathcal{L}}_{\boldsymbol{\theta},\mathbf{v},\mathbf{c}}(f,\tilde{h},\tilde{w}) = \left( \left[ \boldsymbol{\epsilon}_{\boldsymbol{\theta}} \left( \mathbf{z}(\mathbf{v},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}), t_{\mathrm{fix}}, \mathbf{c} \right) \right]_{f,\tilde{h},\tilde{w}} - \left[ \boldsymbol{\epsilon}_{\mathrm{target}}(t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \right]_{f,\tilde{h},\tilde{w}} \right)^2.L~θ,v,c​(f,h~,w~)=([ϵθ​(z(v,tfix​,ϵfix​),tfix​,c)]f,h~,w~​−[ϵtarget​(tfix​,ϵfix​)]f,h~,w~​)2.

The motion-weighted attribution loss is the average of these errors weighted by the latent-aligned motion mask:

Lmot(θ;v,c)=1Fvmean⁡f,h~,w~[W~v,c(f,h~,w~)⋅L~θ,v,c(f,h~,w~)].\mathcal{L}_{\mathrm{mot}}(\boldsymbol{\theta};\mathbf{v},\mathbf{c}) = \frac{1}{F_{\mathbf{v}}} \operatorname*{mean}_{f,\tilde{h},\tilde{w}} \left[ \tilde{\mathbf{W}}_{\mathbf{v},\mathbf{c}}(f,\tilde{h},\tilde{w}) \cdot \tilde{\mathcal{L}}_{\boldsymbol{\theta},\mathbf{v},\mathbf{c}}(f,\tilde{h},\tilde{w}) \right].Lmot​(θ;v,c)=Fv​1​f,h~,w~mean​[W~v,c​(f,h~,w~)⋅L~θ,v,c​(f,h~,w~)].

The factor 1/Fv1/F_{\mathbf{v}}1/Fv​ again removes frame-length bias. When the motion weights are all equal to one, the objective reduces to a standard averaged diffusion loss without motion emphasis.

The motion-aware gradient is then

gmot(θ,v)=∇θLmot(θ;v),\mathbf{g}_{\mathrm{mot}}(\boldsymbol{\theta},\mathbf{v}) = \nabla_{\boldsymbol{\theta}} \mathcal{L}_{\mathrm{mot}}(\boldsymbol{\theta};\mathbf{v}),gmot​(θ,v)=∇θ​Lmot​(θ;v),

and the projected and normalized motion gradient is

g~mot(θ,v)=Pgmot(θ,v,tfix,ϵfix)∥Pgmot(θ,v,tfix,ϵfix)∥.\tilde{\mathbf{g}}_{\mathrm{mot}}(\boldsymbol{\theta},\mathbf{v}) = \frac{ \mathbf{P} \mathbf{g}_{\mathrm{mot}}(\boldsymbol{\theta},\mathbf{v},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) }{ \left\| \mathbf{P} \mathbf{g}_{\mathrm{mot}}(\boldsymbol{\theta},\mathbf{v},t_{\mathrm{fix}},\boldsymbol{\epsilon}_{\mathrm{fix}}) \right\| }.g~​mot​(θ,v)=∥Pgmot​(θ,v,tfix​,ϵfix​)∥Pgmot​(θ,v,tfix​,ϵfix​)​.

The final motion attribution score is

Imot(vn,v^)=g~mot(θ,v^)⊤g~mot(θ,vn).I_{\mathrm{mot}}(\mathbf{v}_n,\hat{\mathbf{v}}) = \tilde{\mathbf{g}}_{\mathrm{mot}}(\boldsymbol{\theta},\hat{\mathbf{v}})^{\top} \tilde{\mathbf{g}}_{\mathrm{mot}}(\boldsymbol{\theta},\mathbf{v}_n).Imot​(vn​,v^)=g~​mot​(θ,v^)⊤g~​mot​(θ,vn​).

In practice, the candidate clip (vn,cn)(\mathbf{v}_n,\mathbf{c}_n)(vn​,cn​) and query clip (v^,c^)(\hat{\mathbf{v}},\hat{\mathbf{c}})(v^,c^) provide conditioning information to the diffusion model, while the motion mask determines which latent error locations dominate the attribution gradient. Because masking is applied in the attribution loss rather than in forward noising or generation, the diffusion model itself is not altered. The motion-weighted gradient instead shifts the attribution objective toward dynamic regions and away from static backgrounds.

The attribution scores are then used to construct fine-tuning subsets. For a single query clip and a budget KKK, the framework selects the top-KKK candidate examples by motion-aware score. In practical data selection, KKK may be specified as a percentile of the candidate corpus, such as the top one to ten percent, so that the selected subset scales consistently across dataset sizes.

For multiple query motions, the framework aggregates scores across queries with a majority voting mechanism. For QQQ query clips, each query contributes a binary vote for a training clip if that clip’s motion-aware score exceeds a percentile cutoff τ\tauτ for that query. The consensus vote count is

MajVoten=∑q=1QI[Imot(vn,v^q)>τ].\mathrm{MajVote}_n = \sum_{q=1}^{Q} \mathbb{I} \left[ I_{\mathrm{mot}}(\mathbf{v}_n,\hat{\mathbf{v}}_q) > \tau \right].MajVoten​=q=1∑Q​I[Imot​(vn​,v^q​)>τ].

The final fine-tuning subset contains the top-KKK examples with the largest MajVoten\mathrm{MajVote}_nMajVoten​. This avoids the need to calibrate raw influence scores across different query motions, while still preferring clips that are repeatedly identified as motion-influential.

The computational design keeps the workflow tractable for large video corpora. Naive attribution that averages over many timesteps and noise samples would require cost proportional to the dataset size times the number of samples. The single fixed noise-timestep variant reduces gradient computation to one forward-backward pass per example. Projection adds a structured O(D′log⁡D′)\mathcal{O}(D'\log D')O(D′logD′) cost per gradient, which is small relative to a diffusion model backward pass. Instead of storing full gradients of dimension DDD, the system stores projected vectors of dimension D′D'D′, plus the compact randomized projection state. Candidate ranking then reduces to inner products in RD′\mathbb{R}^{D'}RD′ and sorting. The motion mask extraction adds frame-resolution overhead, but the masks can be computed once per clip and cached, making their cost negligible relative to gradient computation.

Experiment

The experiments evaluate motion attribution for video generation fine-tuning using large-scale datasets, diverse motion-category queries, pretrained diffusion video models, automated VBench metrics, human preference studies, and ablations. Results show that the proposed attribution selects physically meaningful motion examples and improves generated motion fidelity and temporal dynamics over random, magnitude-based, embedding-based, and full-video baselines while preserving visual quality. Ablations further confirm that compact attribution settings, including a fixed denoising timestep, projected gradients, and frame-length normalization, retain ranking quality and reduce bias toward video length.

MOTIVE uses motion-aware attribution to select training data and shows the strongest VBench motion quality across both video models. It achieves the highest dynamic degree scores while also supporting strong aesthetic quality and competitive motion smoothness. These improvements come from selecting only a small training data fraction and exceed full fine-tuning on dynamic degree, highlighting the value of motion-specific data selection. MOTIVE reaches the highest dynamic degree across both evaluated models. It outperforms random selection and whole-video attribution on motion-oriented performance. Motion-guided selection with a small data budget surpasses full fine-tuning on dynamic degree.

Human evaluators generally preferred the attribution-guided video selection over the tested baselines. The preference was strongest against the base model and remained positive against random and full fine-tuned selection, though by narrower margins. Removing motion masking weakened the advantage, producing fewer clear wins and more ties. Strongest human preference appeared against the base model Perceptual advantage persisted against full fine-tuned selection Omitting motion masking increased ties and reduced clear wins

Experiments evaluate MOTIVE through automatic VBench and human preference tests across video models. They show that motion-aware attribution data selection yields the strongest dynamic motion quality while preserving aesthetic and smoothness results, and small selective budgets can outperform full fine-tuning. Human evaluations further confirm the perceptual advantage over baselines, especially versus the base model, while removing motion masking reduces the benefit.