SAMA: Factorized Semantic Anchoring and Motion Alignment for Instruction-Guided Video Editing

Xinyao Zhang, Wenkai Dong, Yuxin Song, Bo Fang, Qi Zhang, Jing Wang, Fan Chen, Hui Zhang, Haocheng Feng, Yu Lu, Hang Zhou, Chun YuanarXiv 2026

TL;DR

SAMA introduces a factorized approach to instruction-guided video editing by separating the task into two complementary components: semantic anchoring and motion alignment. By predicting sparse semantic tokens alongside video latents and pre-training on self-supervised video restoration tasks, SAMA eliminates the need for brittle external structural priors (like depth maps or skeletons). The resulting framework achieves state-of-the-art performance among open-source models and delivers results competitive with leading commercial video editors.

What Problem Does This Paper Address?

Instruction-guided video editing requires a delicate balancing act: a model must accurately execute fine-grained semantic changes requested by a text prompt while faithfully preserving the original video's temporal dynamics, background, and camera motion. Currently, these two goals are often in conflict. Aggressive semantic edits frequently introduce localized artifacts, identity drift, or texture popping, while strictly enforcing temporal consistency can dilute the intended edit.

To bridge this gap, existing methods typically inject explicit external priors, such as Vision-Language Model (VLM) features, depth maps, or optical flow. However, the authors argue that this over-reliance creates a significant bottleneck, preventing the diffusion backbone from learning inherent, robust semantic-motion representations. SAMA addresses this by factorizing the editing process, allowing the model to internalize both structural planning and physical motion dynamics directly from raw video data.

Methods

SAMA builds upon the Wan2.1-T2V-14B video diffusion transformer framework and introduces two core components integrated into a two-stage training pipeline:

  1. Semantic Anchoring (SA): To stabilize structural planning, SAMA uniformly samples sparse anchor frames from the video. These frames are processed by a SigLIP image encoder to extract patch-level semantic features, which are pooled into a compact set of semantic tokens. During denoising, these tokens are prepended to the target latent sequence. The model is trained via an auxiliary $\ell_1$ loss to predict these semantic tokens, establishing a reliable visual anchor for instruction-aware editing.
  2. Motion Alignment (MA): To help the model internalize temporal dynamics without explicit editing supervision, the backbone is trained on three motion-centric video restoration pretext tasks applied to the source video:
  3. Cube Inpainting: Masking a continuous spatiotemporal block to recover missing content.
  4. Speed Perturbation: Temporally accelerating the video to learn to restore normal dynamics.
  5. Tube Shuffle: Partitioning the video into a $2\times2\times2$ grid and randomly permuting the tubes to force the model to reason about spatiotemporal structure.
Overall pipeline of SAMA showing Stage 0 (Factorized Pre-training) and Stage 1 (Supervised Fine-tuning)

Training Strategy

SAMA uses a two-stage optimization pipeline:

  • Stage 0 (Factorized Pre-training): The model is trained on a mixture of instruction-based image editing pairs and large-scale text-to-video data without paired video-instruction editing data. SA is applied to both images and videos, while MA is applied exclusively to the video stream.
  • Stage 1 (Supervised Fine-tuning - SFT): The model is fine-tuned on paired video editing datasets to resolve residual semantic-motion conflicts and maximize visual fidelity.

Additionally, SAMA replaces the commonly used shifted RoPE scheme with learned Type Embeddings to distinguish token roles (source, target, or semantic), which the authors found significantly accelerates training convergence.

Datasets

The authors utilized a diverse set of datasets across both training stages, incorporating a VLM-based coarse filtering step (using Qwen2.5-VL-72B) to eliminate low-quality or instruction-inconsistent data:

  • Stage 0 (Pre-training): NHR-Edit, GPT-Image-Edit, and X2Edit for image editing; Koala-36M and MotionBench for text-to-video pretext motion alignment.
  • Stage 1 (Fine-tuning): NHR-Edit and Pico-Banana-400K (image editing); Ditto-1M (Style subset), OpenVE-3M (selected categories), and ReCo-Data (video editing).
  • Evaluation Benchmarks: VIE-Bench (evaluated via GPT-4o), OpenVE-Bench (evaluated via Gemini-2.5-Pro), and ReCo-Bench (evaluated via Gemini-2.5-Flash-Thinking).

Key Insights and Ideas

  • Emergent Zero-Shot Editing: Remarkably, Stage 0 factorized pre-training alone induces strong zero-shot video editing capabilities despite never seeing paired video editing data. This indicates that robust instruction-guided video editing can naturally emerge once a model learns to jointly reason about semantic intent and raw temporal dynamics.
  • Semantic Anchoring as a Stabilizer: Incorporating the semantic prediction objective significantly accelerates the decrease of diffusion loss and reduces loss variance during training, leading to faster and more stable DiT convergence.
Ablation study showing how Semantic Anchoring accelerates training and reduces loss variance
  • Decoupling Identity from Position: Using learned type embeddings instead of shifted RoPE decouples a token's role from its spatiotemporal position. This minimal perturbation to the backbone prior preserves background content better and speeds up convergence.

Key Results

SAMA consistently outperforms existing open-source video editing models across multiple benchmarks and achieves competitive performance with leading commercial systems like Kling-Omni and Runway.

Figure 1: Teaser and overview. Top: qualitative comparisons on VIE-Bench, comparing SAMA with representative open- and closed-source systems. Bottom left: illustration of SAMA’s semantic– motion training objectives. Bottom right: fine-grained VIE-Bench performance comparison.
  • VIE-Bench: SAMA achieves the highest open-source average scores in the "Swap/Change" (9.340) and "Remove" (9.144) categories, outperforming models like UniVideo and InstructX.
  • OpenVE-Bench & ReCo-Bench: SAMA attains the top overall scores among open-source models, demonstrating superior instruction adherence (e.g., correctly handling relative spatial cues like "on the left") and temporal consistency during complex object replacements and removals.

Limitations and Future Work

While SAMA demonstrates powerful editing capabilities, the authors note a few limitations, particularly in the zero-shot (Stage 0) setting:

  • Temporal Color Drift: Attribute edits (like changing clothing color) can occasionally vary across frames.
  • Blurriness: Newly added objects can sometimes appear slightly blurry.
  • Ghosting Artifacts: Object removal edits can leave behind residual ghosting artifacts in the background.

Future work will focus on extending SAMA to handle long-video editing, improving performance in extreme fast-motion scenarios, and developing stronger semantic tokenization methods to further mitigate residual artifacts.

Summary updated

BibTeX
@misc{zhang2026sama,
  author = {Xinyao Zhang and Wenkai Dong and Yuxin Song and Bo Fang and Qi Zhang and Jing Wang and Fan Chen and Hui Zhang and Haocheng Feng and Yu Lu and Hang Zhou and Chun Yuan and Jingdong Wang},
  title = {{SAMA: Factorized Semantic Anchoring and Motion Alignment for Instruction-Guided Video Editing}},
  year = {2026},
  eprint = {2603.19228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.19228},
}
Figure