cs.CVAug 24, 2026

Loopy: Seamless Video Loop Generation via Anchored Looping Shift of Positional Embedding

Authors: Haotian Dong, Wenjing Wang, Chen Li, Jing Lyu, Xin Wang, Di Lin

Organizations: Tianjin University, China · Independent, China · The Hong Kong Polytechnic University, Hong Kong

Abstract

Looping videos are essential for practical applications such as web graphics, game development, and social media. However, existing approaches typically fail to generate high-quality looping videos due to the neglect of how video generation models perceive temporal order and how this relates to the looping behavior. In this work, we are the first to reveal that position embedding at different attention layers within DiT exhibits varying levels of positional control, with the most pronounced layer acting as an anchor. We formulate this anchored layer as the reference point of the looping video, offering strong contextual priors for the remaining layers to facilitate the generation of seamless and coherent video content. Based on this insight, we propose an anchored position embedding shifting strategy that applies layer-specific shift lengths according to each layer's temporal control effect, effectively transforming DiT's temporal perception from a straight line to a circle. Leveraging this strategy, we develop a general framework, Loopy, for high-quality looping video generation, supporting both RGB and RGBA videos, while also enabling advanced AIGC features such as identity control and style transfer. Experiments demonstrate that our approach significantly improves temporal consistency and visual fidelity in generated looping videos. The released model is available on our website: https://donghaotian123.github.io/Loopy.

Figures & tables

Explore similar work

CardsList
  1. Making Time Editable in Video Diffusion Transformers

    Jun 8, 2026Konstantin Kuklev, Viacheslav Vasilev, Alexander Kunitsyn +2Video Diffusion ModelsDiffusion Transformer

  2. UniTemp: Unlocking Video Generation in Any Temporal Order via Bidirectional Distillation

    Jun 17, 2026Lin Zhang, Sicheng Mo, Zefan Cai +6Autoregressive Video GenerationControllable Video Generation