On-device Sora: Enabling Training-Free Diffusion-based Text-to-Video Generation for Mobile Devices

Seulki Lee · DOI

TL;DR

This paper introduces "On-device Sora," a novel framework that enables high-quality text-to-video generation directly on mobile devices without requiring any additional model training or fine-tuning. It achieves this by introducing three innovative techniques to optimize pre-trained diffusion models for resource-constrained environments, democratizing access to advanced generative AI.

What Problem Does This Paper Address?

The rapid advancement of text-to-video generation models, particularly diffusion-based ones like Sora, has been largely confined to powerful server-grade hardware due to their immense computational and memory demands. While existing research has explored on-device generation, these methods typically require extensive model optimization (like distillation, quantization, or pruning) and time-consuming re-training, often demanding significant GPU resources. This creates a barrier to entry for mobile users and developers, limiting the widespread adoption of these powerful generative capabilities. On-device Sora aims to bridge this gap by enabling efficient, training-free on-device video generation, making state-of-the-art technology accessible on everyday smartphones.

Methods

On-device Sora builds upon pre-trained video generative models and introduces three key techniques:

  • Linear Proportional Leap (LPL): This method significantly reduces the number of denoising steps required in diffusion models. By leveraging the properties of Rectified Flow, LPL allows the model to "leap" through a substantial portion of the denoising process, effectively skipping steps where the trajectory is nearly linear. This is achieved by dynamically measuring the linearity of consecutive drifts at runtime and applying a scaled leap, without requiring any model retraining.
  • Temporal Dimension Token Merging (TDTM): To address the computational intensity of attention mechanisms in video diffusion models, TDTM merges consecutive tokens along the temporal dimension. This effectively halves the token size processed by attention layers, reducing computational complexity quadratically for self-attention and linearly for cross-attention. TDTM is hypothesized to work well because successive video frames often have similar values, and it can be selectively applied to specific denoising steps to balance quality and speed.
  • Concurrent Inference with Dynamic Loading (CI-DL): This technique tackles the challenge of limited device memory. It partitions large models into smaller blocks and loads them concurrently for inference. CI-DL leverages both the CPU and GPU to parallelize block loading and model execution, minimizing idle time. Dynamic Loading further optimizes this by retaining a subset of frequently used model blocks in memory, reducing the overhead of reloading.

Datasets

The paper evaluates its methods using prompts from:

  • VBench [28]: A benchmark for text-to-video generation, providing comprehensive metrics for evaluating video quality.
  • Pandas70M [11]: A dataset for video generation.
  • VidGen [61]: Another dataset for video generation.

The authors do not introduce a new dataset but rather use existing ones for evaluation.

Key Insights and Ideas

  • Training-free on-device generation is feasible: The core insight is that by intelligently optimizing existing, powerful diffusion models, high-quality video generation can be achieved on mobile devices without the need for costly and time-consuming retraining.
  • LPL exploits temporal linearity: The observation that denoising trajectories become increasingly linear in later stages is key to LPL's effectiveness. This allows for significant speedups by skipping redundant steps.
  • TDTM balances temporal and spatial attention: Unlike previous token merging methods focused on spatial aspects, TDTM specifically targets temporal information, which is crucial for video. This approach shows promise for reducing computational load without sacrificing video quality.
  • CI-DL is crucial for memory-bound devices: The combination of concurrent inference and dynamic loading is essential for fitting large models into limited mobile RAM, making on-device deployment practical.
  • Synergistic effect of the three methods: The paper demonstrates that these three techniques work together effectively, leading to substantial improvements in generation speed and efficiency without significant degradation in video quality.

Key Results

  • On-device Sora achieves video generation quality comparable to Open-Sora running on high-end GPUs, with only a slight drop in frame-level quality (averaging 0.03) and an improvement in dynamic degree (averaging 0.06).
  • LPL enables video generation speedups of up to 1.94x without noticeable visual degradation.
  • TDTM can accelerate video generation by up to 1.70x while maintaining stable quality metrics.
  • The combined application of LPL, TDTM, and CI-DL significantly reduces STDiT latency by approximately 25% (from 1000s to 750s for 30 steps) on an iPhone 15 Pro.
  • For a 192x192 resolution video, the end-to-end generation time with all methods applied is reduced to less than five minutes.

Limitations and Future Work

  • NPU Utilization: While the iPhone 15 Pro has a powerful NPU, current Apple software and SDKs limit its effective utilization for state-of-the-art diffusion models. The authors anticipate future software support will significantly enhance performance.
  • Model Optimization: Currently, only the T5 model is quantized to int8; STDiT and VAE run in float32 due to performance sensitivities. Further exploration into optimizing these components without visual fidelity loss is needed.
  • Straightness Constraints for LPL: LPL is most effective for models exhibiting "straightness" in their denoising process. For models that don't naturally exhibit this, alternative approaches like reinforcement learning or noise schedule prediction are required, which involve additional training.
  • Future Work: The authors plan to investigate the potential of NPUs on various mobile devices and explore the optimal reduction point for LPL to make it a widely applicable methodology for Rectified Flow-based models. They also aim to explore the compatibility of LPL with other types of models beyond flow-based ones.

Summary updated

BibTeX
@misc{lee2025device,
  author = {Seulki Lee},
  title = {{On-device Sora: Enabling Training-Free Diffusion-based Text-to-Video Generation for Mobile Devices}},
  year = {2025},
  eprint = {2502.04363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04363},
}
Figure