SPATIALALIGN: Aligning Dynamic Spatial Relationships in Video Generation

Fengming Liu, Tat-Jen Cham, Chuanxia Zheng

Abstract

Current text-to-video (T2V) generators often prioritize aesthetic quality over spatial accuracy. We introduce SPATIALALIGN, a self-improvement framework designed to enhance a model's ability to follow Dynamic Spatial Relationships (DSR) specified in text prompts. By utilizing DSR-SCORE, a novel geometry-based metric, and a zeroth-order regularized Direct Preference Optimization (DPO) approach, we significantly improve spatial alignment. Our fine-tuned models outperform much larger baselines in spatial correctness while maintaining high visual quality.

The Problem: "Spatially Illiterate" Video Generators

While modern T2V models like Sora or Wan2.1 produce visually stunning content, they are often "spatially illiterate." When prompted for specific movements—such as an animal moving from the top of an object to its left—models frequently ignore these constraints, depicting the animal as static or moving incorrectly.

A fox moving from the right to the left of a stump, illustrating a successful dynamic spatial transition.

The authors identify two primary hurdles:

  1. Evaluation Gap: Benchmarks often rely on Vision-Language Models (VLMs) for judgment, yet VLMs themselves struggle with spatial reasoning and frequently "hallucinate" correctness.
  2. Training Difficulty: Standard Supervised Fine-Tuning (SFT) on real videos fails to explicitly teach the geometric relationships between objects.

The SPATIALALIGN Framework

SPATIALALIGN addresses these challenges through three pillars:

  • DSR-SCORE: Instead of subjective VLM evaluations, this metric uses GroundedSAM to track bounding boxes. It calculates a Static Spatial Relationship (SSR) score for each frame. A successful DSR is identified by a "crossing" pattern in the alignment curves of the start and end states.
  • DPO Fine-Tuning: The framework uses Direct Preference Optimization. Candidate videos are ranked by DSR-SCORE to create "winner" and "loser" pairs, which are then used to fine-tune the model via LoRA.
  • Zeroth-Order Regularization ($L_{ZO}$): To prevent "reward hacking"—where models produce distorted videos to maximize scores—this term anchors the fine-tuned model to the original reference, ensuring aesthetic stability.

The DSR-DATASET

The researchers introduced the DSR-DATASET, a benchmark specifically for dynamic spatial reasoning. It focuses on six transition types (e.g., left-to-top, right-to-left) involving animals and static objects.

A collection of video sequences from the DSR-DATASET showing various animals and spatial transitions.

Key Results and Insights

Fine-tuning the Wan2.1-1.3B model with SPATIALALIGN yielded significant results:

  • Quantitative Improvement: Spatial correctness ([email protected]) increased from 12.5% to 58.5%.
  • Competitive Performance: The 1.3B model outperformed larger state-of-the-art models, including HunyuanVideo-8B (49.0%) and CogVideoX-5B (5.3%).
  • VLM Unreliability: The study confirmed that VLMs often misjudge spatial accuracy, reinforcing the necessity of geometric metrics like DSR-SCORE.

Conclusion

SPATIALALIGN demonstrates that video generators can be taught to follow complex spatial directions through automated geometric feedback and regularized preference optimization. Future work will aim to expand this framework to multi-object scenes and a broader spatial vocabulary.

Summary updated

BibTeX
@misc{liu2026spatialalign,
  author = {Fengming Liu and Tat-Jen Cham and Chuanxia Zheng},
  title = {{SPATIALALIGN: Aligning Dynamic Spatial Relationships in Video Generation}},
  year = {2026},
  eprint = {2602.22745},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.22745},
}
Figure