Introduction
State-of-the-art text-to-video (T2V) models like Sora and Open-Sora represent a breakthrough in generative AI, but their deployment is currently confined to high-end GPU clusters. These models are computational behemoths, typically requiring tens of gigabytes of VRAM. On-device Sora is the first training-free framework designed to bridge this gap, enabling high-quality T2V generation directly on smartphone-grade hardware, such as the iPhone 15 Pro.
The Memory Bottleneck
The primary hurdle for mobile deployment is the staggering disparity between model size and available hardware resources. A standard T2V suite—comprising a T5 text encoder, an STDiT transformer, and a VAE decoder—requires approximately 23 GB of memory. In contrast, a high-end smartphone like the iPhone 15 Pro restricts a single application to roughly 3.3 GB of RAM.
While traditional model compression techniques like distillation or quantization can reduce footprints, they require intensive re-training. On-device Sora avoids this by introducing a system-level architecture that runs pre-trained, full-scale models without weight modification.
Proposed Methodology
The framework employs three core techniques to optimize inference for mobile chips:
1. Linear Proportional Leap (LPL)
Modern video models often utilize "Rectified Flow," which aims to linearize the denoising path from noise to video. The authors observed that after initial steps, this trajectory becomes almost perfectly linear. LPL monitors the "drift" direction and, once linearity is confirmed via cosine similarity, "leaps" to the final result. This reduces required denoising steps by nearly half without sacrificing visual quality.
2. Temporal Dimension Token Merging (TDTM)
Transformer attention mechanisms scale quadratically with input size. While spatial token merging is common, this framework focuses on the temporal dimension. Given the high redundancy between consecutive video frames, TDTM merges temporal tokens to reduce the attention layer workload by up to 75%, maintaining temporal consistency while significantly boosting speed.
3. Concurrent Inference with Dynamic Loading (CI-DL)
To circumvent the 3.3 GB memory limit, the system partitions large models into smaller blocks. CI-DL implements a "relay race" approach: while the GPU processes one block, the CPU concurrently loads the next block from storage into memory. This overlapping of I/O and computation ensures the GPU remains active and allows the execution of models far larger than the physical RAM.
Key Results and Performance
Evaluated against benchmarks like VBench and datasets such as Pandas70M, On-device Sora achieves video quality comparable to high-end NVIDIA A6000 GPUs. Specifically, it maintained a subject consistency score of 0.96 on VBench.
In terms of efficiency, the combined techniques yielded substantial improvements:
- LPL provided a 1.94x speedup.
- TDTM provided a 1.70x speedup.
- Total latency for the STDiT transformer on an iPhone 15 Pro dropped from over 1,700 seconds to approximately 293 seconds.
Limitations and Future Outlook
Despite these advancements, generating a short video still takes several minutes, which is not yet "real-time." Current implementations rely on the mobile GPU; future work aims to leverage Apple’s Neural Engine (NPU), which offers 35 TOPS but remains difficult to program for these specific architectures. Additionally, the LPL technique is currently specific to Rectified Flow models, though the authors plan to expand compatibility to other diffusion schedules in the future.
Summary updated