TL;DR
RefAlign introduces a training-time regularization framework for reference-to-video (R2V) generation that explicitly aligns Diffusion Transformer (DiT) reference features with the structured semantic space of a Vision Foundation Model (VFM). By utilizing a contrastive reference alignment loss only during training, it eliminates common generation defects like static "copy-paste" artifacts and multi-subject blending—all with zero added computational overhead during inference.
What Problem Does This Paper Address?
Reference-to-video (R2V) generation allows users to guide video synthesis using a combination of text prompts and reference images, opening the door for personalized advertising and virtual try-ons. However, existing R2V models frequently suffer from two frustrating artifacts:
- Copy-Paste Artifacts: The model blindly replicates the reference image pixel-for-pixel as a static element in the video, ignoring dynamic actions requested by the text prompt.
- Multi-Subject Confusion: When multiple reference images are provided, the identities and visual attributes of different subjects bleed into one another.
The authors attribute these issues to a "modality mismatch." The raw VAE latents typically fed into Diffusion Transformers (DiTs) provide excellent low-level detail but lack structured, high-level semantic boundaries. Without explicit alignment, the network struggles to anchor a subject's identity dynamically across frames.
Methods
RefAlign addresses this mismatch by introducing a Reference Alignment (RA) loss during the fine-tuning of a pretrained video generation backbone (specifically, Wan2.1).
Instead of modifying the inference pipeline, RefAlign leverages a frozen Vision Foundation Model (VFM)—such as DINOv3—as a teacher network during training:
- Positive Alignment: It pulls intermediate DiT reference image features closer to the corresponding VFM features of the same subject, forcing the DiT to learn robust, identity-preserving representations.
- Negative Alignment: It implements a contrastive margin to push the features of different subjects apart, explicitly preventing cross-subject feature contamination.
This alignment is applied strictly to the intermediate reference image-token features within the first $K$ blocks of the DiT. Crucially, the VFM and the alignment projection layers are completely discarded after training, ensuring zero extra inference-time overhead.
Datasets
- Training: The model is fine-tuned on a high-quality dataset of 360K image-text-video triplets curated from OpenS2V-5M and Phantom-Data. Training is split into two stages: Stage 1 uses 200K regular pairs to establish reference conditioning, and Stage 2 introduces 160K cross-pairs to specifically penalize copy-paste behaviors.
- Evaluation: Zero-shot evaluation is conducted on the OpenS2V-Eval benchmark, generating 180 evaluation videos scored across multiple automated metrics and human preference.
Key Insights and Ideas
- The Superiority of VFM Spaces: As visualized via t-SNE, raw DiT features conditioned purely on VAE inputs are highly entangled and messy. In contrast, VFM features cluster cleanly by identity and remain robust against variations in pose, lighting, and background.
- Reference-Centric vs. Target-Centric Alignment: Prior alignment methods (like REPA) align the noisy generation target to a VFM to accelerate training from scratch. RefAlign shifts the paradigm by regularizing the clean reference condition instead, which stabilizes fine-tuning and preserves text controllability.
- The Necessity of "Pushing": Simply pulling features toward a VFM target can cause representation collapse when multiple references are present. Incorporating a negative contrastive loss term to push distinct subjects apart is vital for maintaining discriminative boundaries.
Key Results
- State-of-the-Art Performance: RefAlign-14B achieved a record-breaking TotalScore of 60.42% on the OpenS2V-Eval benchmark, outperforming prominent closed-source models (like Kling1.6 and Pika2.1) and open-source baselines (such as Phantom and VINO).
- Fidelity and Consistency: The method secured the highest scores in FaceSim (face fidelity) and NexusScore (subject consistency), demonstrating that characters maintain their distinct identities even while executing complex actions.
- User Preference: A user study involving 30 volunteers confirmed that RefAlign significantly outperforms alternative methods in visual quality, reference fidelity, and text alignment.
Limitations and Future Work
Despite its success, the authors note a few constraints:
- Data Diversity: Limited training data variety still prevents a flawless balance between strict prompt adherence and absolute reference fidelity.
- Video Length: The framework is currently bounded by its underlying backbone to generating 81-frame videos, restricting long-form video generation.
- Single VFM Bias: Relying on a single VFM means inheriting its specific representational biases (e.g., DINOv3 excels at spatial consistency, while SigLIP2 favors category-level semantics). The authors suggest that combining multiple VFMs as joint alignment targets is a promising direction for more comprehensive feature regularization.
Summary updated