Abstract
This paper introduces Goku, a state-of-the-art family of joint image-and-video generation models leveraging rectified flow Transformers to achieve industry-leading performance. We detail the foundational elements enabling high-quality visual generation, including the data curation pipeline, model architecture design, flow formulation, and advanced infrastructure for efficient and robust large-scale training. The Goku models demonstrate superior performance in both qualitative and quantitative evaluations, setting new benchmarks across major tasks. Specifically, Goku achieves 0.76 on GenEval and 83.65 on DPG-Bench for text-to-image generation, and 84.85 on VBench for text-to-video tasks. We believe that this work provides valuable insights and practical advancements for the research community in developing joint image-and-video generation models.
Introduction
Generating high-quality, temporally consistent video remains a significant challenge in generative AI. Existing models often struggle with three primary hurdles: noisy and poorly captioned data, architectural fragmentation between spatial and temporal attention, and the computational inefficiency of standard diffusion models.
Goku, a new family of generative foundation models developed by Bytedance and The University of Hong Kong, addresses these issues by unifying image and video generation into a single framework. By leveraging rectified flow Transformers and a massive, high-quality curated dataset, Goku achieves state-of-the-art performance, currently holding the top spot on the VBench leaderboard for video generation.
Methodology
The Goku architecture is built upon four foundational pillars designed to maximize both quality and efficiency:
- Rectified Flow (RF) Formulation: Unlike traditional diffusion models that follow complex curved paths to transform noise into data, RF utilizes direct linear interpolation. This "straight-line" approach simplifies the learning objective, allowing the model to reach superior Fréchet Inception Distance (FID) scores in significantly fewer training steps (e.g., 400k steps vs. 1,000k for standard diffusion).
- 3D Joint VAE: Goku employs a Variational Autoencoder (VAE) that treats images as a single-frame video. By compressing inputs into a shared 3D latent space, the Transformer can learn spatial and temporal features simultaneously, ensuring that static spatial knowledge from images informs the structural integrity of generated videos.
- Plain Full Attention: To avoid the "jittery" motion often seen in models with separated attention mechanisms, Goku utilizes full attention across all tokens. While computationally demanding, this is essential for capturing the complex, fluid motions required for high-fidelity video.
- Infrastructure Optimization: To manage sequence lengths exceeding 220k tokens, the team implemented 3D Parallelism (Sequence, Data, and FSDP) and ByteCheckpoint. This high-performance system allows the 8B parameter model to checkpoint across thousands of GPUs in under four seconds, ensuring training stability.
Data Curation and Training
The researchers curated a massive dataset of 160M image-text pairs and 36M video-text pairs. Moving beyond simple web-scraping, they implemented a multi-stage pipeline involving aesthetic scoring, OCR filtering, and motion analysis. To ensure the model understands fine scene details, Multimodal Large Language Models (MLLMs) like InternVL2.0 were used to generate dense, descriptive captions, which were further refined by Qwen2.
To prevent loss spikes during large-scale Transformer training, the team implemented Q-K Normalization (using RMSNorm). Additionally, 3D RoPE (Rotary Position Embeddings) was extended to three dimensions, providing the flexibility to handle varying aspect ratios and resolutions without retraining.
Experimental Results
Goku demonstrates industry-leading performance across multiple benchmarks:
- Video Generation (VBench): Goku achieved a score of 84.85, securing the #1 position on the leaderboard as of January 2025, outperforming models like CogVideoX and Gen-3.
- Image Generation (GenEval): The model scored 0.76, significantly outperforming DALL-E 3 (0.67) in complex prompt adherence.
- Zero-Shot Video (UCF-101): Goku-2B achieved a Fréchet Video Distance (FVD) of 217.24, setting a new state-of-the-art for zero-shot generation.
Qualitatively, the 8B parameter model shows marked improvements over the 2B version in rendering complex structures, such as human limbs and mechanical parts, which are traditional failure points for smaller generative models.
Conclusion and Future Work
Goku represents a significant step forward in unified generative modeling. While the "Plain Full Attention" mechanism provides superior quality, its quadratic scaling presents challenges for generating very long, high-resolution sequences. Future work will likely focus on further optimizing computational intensity and improving cross-modality alignment to reduce the need for modality-specific fine-tuning. Nonetheless, Goku's performance on VBench and GenEval establishes it as a new benchmark for the research community.
Summary updated