As text-to-video (T2V) models like OpenAI’s Sora and Runway’s Gen-3 achieve cinematic levels of visual fidelity, a critical challenge has emerged: ensuring these "world simulators" remain safe and aligned with human values. While Reinforcement Learning from Human Feedback (RLHF) has successfully steered Large Language Models (LLMs) toward helpfulness and harmlessness, the video domain has lagged behind due to a lack of high-quality alignment data.
SafeSora, a research initiative from Peking University, addresses this gap by introducing the first large-scale human preference dataset specifically designed for the safety alignment of video generation. By decoupling the often-conflicting goals of "helpfulness" and "harmlessness," SafeSora provides a framework for navigating the complex ethical landscape of AI-generated content.
The Alignment Challenge in Video Generation
The core difficulty in aligning T2V models lies in the nuanced nature of safety. In the text domain, datasets like BeaverTails help models identify harmful instructions. However, video is temporal, high-dimensional, and highly context-dependent. For example, a video of a syringe is considered safe if the prompt is "a doctor administering a vaccine," but unsafe if the prompt describes substance abuse.
Existing video datasets typically focus on visual quality or caption accuracy. SafeSora shifts the focus to the human value judgment of the text-video (T-V) pair, addressing the "Helpful vs. Harmless" paradox: a perfectly "helpful" model might follow a harmful instruction (e.g., "show me how to rob a bank") with high fidelity, which is exactly what a "harmless" model should refuse to do.
The SafeSora Dataset
The SafeSora dataset is a comprehensive resource for training and evaluating aligned T2V models. It consists of:
- 14,711 Unique Prompts: A combination of real-world user prompts scraped from Discord and researcher-constructed "red-teaming" prompts designed to trigger safety violations.
- 57,333 Generated Videos: Produced by four distinct open-source models: VideoCrafter2, Hotshot-XL, VideoFactory, and ModelScope.
- 51,691 Preference Pairs: Human-labeled data comparing two videos generated from the same prompt.
Methodology: Decoupled Human Preference
To capture the complexity of human judgment, the researchers utilized a two-stage annotation process:
- Heuristic Labeling: Crowdworkers evaluated videos across specific sub-dimensions. For Helpfulness, they rated instruction following, informativeness, correctness (physics/logic), and aesthetics. For Harmlessness, they tagged videos across 12 distinct categories, including violence, hate speech, and animal abuse.
- Decoupled Preference: Annotators performed side-by-side comparisons of video pairs, independently selecting which video was "more helpful" and which was "safer." This decoupling allows researchers to analyze the trade-offs between following instructions and maintaining safety.
To validate the dataset, the team developed several baselines, including a T-V Moderation filter based on Video-LLaVA and reward/cost models using the Bradley-Terry framework. These models were used in a Best-of-N (BoN) fine-tuning approach to shift the output distribution of diffusion models toward human-approved content.
Key Insights
The Helpfulness-Harmlessness Paradox
The researchers discovered that for potentially harmful prompts, 53.39% of helpfulness preferences contradicted harmlessness preferences. This confirms that instruction following and safety are frequently at odds, necessitating specialized alignment strategies that do not simply prioritize one at the expense of the other.
Prioritizing Instruction Following
When judging helpfulness, human annotators prioritized instruction following (0.85 correlation) over visual aesthetics or physical correctness. This suggests that for users, the primary utility of a T2V model is its ability to accurately reflect the provided text.
The Human Nuance Gap
In comparisons between human judges and GPT-4o, the AI model was effective at identifying clear safety violations. However, GPT-4o struggled to match human nuance when judging helpfulness and overall preference. This highlights the continued necessity of human-in-the-loop alignment for complex multimodal tasks.
Model "Personalities"
The study revealed that different open-source models exhibit distinct behaviors. VideoCrafter2 was found to be highly helpful but less harmless, whereas ModelScope was safer but struggled with complex instruction following.
Results and Future Directions
The SafeSora T-V Moderation model achieved an 82.94% agreement rate with human judges, significantly outperforming traditional video-only filters by incorporating text context. Furthermore, the Best-of-N fine-tuning successfully steered models toward higher helpfulness scores, proving the dataset's utility in model alignment.
Despite these successes, challenges remain. Unlike LLMs, diffusion models lack a natural "refusal" mechanism; they often generate low-quality or unrelated content instead of a clean refusal when faced with harmful prompts. Additionally, human values are subjective and culturally dependent, requiring future datasets to reflect a broader range of perspectives.
SafeSora represents a foundational step toward a future where AI-generated video is not only visually impressive but also socially responsible and safely aligned.
Summary updated