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
The rapid evolution of generative AI has shifted focus from static image synthesis to the more complex domain of video generation. However, creating models that are both visually stunning and temporally consistent remains a significant hurdle. Most existing pipelines are hampered by three core issues: the poor quality of internet-sourced video data, the difficulty of designing a unified architecture that understands both spatial and temporal dynamics, and the immense computational challenges of scaling models to billions of parameters.
Researchers from the University of Hong Kong and ByteDance have introduced Goku, a new family of state-of-the-art generative models designed to overcome these barriers. By utilizing Rectified Flow Transformers and a meticulously curated dataset of 160 million images and 36 million videos, Goku achieves industry-leading performance, currently topping the VBench leaderboard for video generation.
Technical Architecture: Rectified Flow and 3D Transformers
Goku’s architecture is built on a foundation of technical innovations aimed at improving both training efficiency and output quality:
- Rectified Flow (RF) Formulation: Moving away from the complex noise schedules of traditional Denoising Diffusion Probabilistic Models (DDPM), Goku adopts Rectified Flow. This formulation learns a linear interpolation—a "straight-line" path—between Gaussian noise and the data distribution. Pilot experiments demonstrated that this approach is significantly more efficient, with a 1B parameter model reaching target quality levels in 400,000 steps, whereas a DDPM-based equivalent required 1,000,000 steps.
- 3D Joint VAE: To bridge the gap between static and dynamic media, Goku uses a 3D Variational Autoencoder. This component compresses images and videos into a shared latent space. For video content, compression occurs across height, width, and time; for images, the temporal dimension is treated as a single frame, allowing the model to process both modalities within the same mathematical framework.
- Transformer Backbone with Patch n’ Pack: The model, scaled up to 8 billion parameters, utilizes a Transformer backbone. A key feature is the Patch n’ Pack technique, which enables the model to process images and videos of varying aspect ratios and lengths in a single batch without wasteful padding. This is complemented by 3D Rotary Position Embedding (RoPE), which helps the model understand relative distances between pixels and frames, and Q-K Normalization, a stability technique that prevents the "loss spikes" common in large-scale Transformer training.
Data Curation and Multi-Stage Training
The development team emphasizes that "data is the fuel" for high-performance generative models. They curated a massive dataset using a pipeline that filters for aesthetics, optical character recognition (OCR) to remove text-heavy content, and motion scores to ensure dynamic video quality. The training process is structured into three distinct phases:
- Text-Semantic Pairing: Initial pre-training on image-text pairs to establish a strong foundation of visual-textual alignment.
- Joint Learning: A critical phase where images and videos are mixed. This allows the model to transfer the high spatial resolution and detailed textures found in image datasets to the video generation process.
- Modality-Specific Finetuning: Final polishing stages that optimize the model for either high-end still image generation or fluid, temporally consistent motion.
Performance and Key Insights
Goku sets a new high bar for open-research models, demonstrating superior performance in both qualitative and quantitative evaluations. In video generation, Goku achieved a score of 84.85 on VBench, surpassing leading commercial models like Luma, Kling, and Gen-3. It showed particular strength in "human action" and "multiple objects."
In image generation, Goku proved equally capable, scoring 0.76 on GenEval and 83.65 on DPG-Bench. These results highlight the "win-win" nature of joint training: high-quality images provide the rich spatial details that videos often lack, leading to more photorealistic results across both media types. Scaling from the 2B to the 8B model specifically addressed structural errors, such as distorted limbs or unrealistic object physics.
Beyond architectural choices, the project highlights the importance of infrastructure. To train at the 8B parameter scale, the team utilized ByteCheckpoint, a system that allows the model to save its state across thousands of GPUs in less than 4 seconds, significantly reducing downtime during hardware failures in large clusters.
Conclusion and Future Directions
Goku represents a significant advancement in the development of unified generative foundation models. By combining the efficiency of Rectified Flow with a robust 3D Transformer architecture and a high-quality joint dataset, the researchers have created a model capable of industry-grade visual synthesis.
While Goku achieves state-of-the-art results, several areas remain for future exploration. These include improving inference speeds through distillation for consumer hardware, maintaining "world consistency" in long-form videos exceeding 10 seconds, and adapting the foundation for specialized tasks like controlled video editing or robotics world simulators.
Summary updated