Abstract
We present RefVFX, a new framework that transfers complex temporal effects from a reference video onto a target video or image in a feed-forward manner. While existing methods excel at prompt-based or keyframe-conditioned editing, they struggle with dynamic temporal effects such as dynamic lighting changes or character transformations, which are difficult to describe via text or static conditions. Transferring a video effect is challenging, as the model must integrate the new temporal dynamics with the input video's existing motion and appearance. To address this, we introduce a large-scale dataset of triplets, where each triplet consists of a reference effect video, an input image or video, and a corresponding output video depicting the transferred effect. Building on our new dataset, we train our reference-conditioned model using recent text-to-video backbones. Experimental results demonstrate that RefVFX produces visually consistent and temporally coherent edits, generalizes across unseen effect categories, and outperforms prompt-only baselines in both quantitative metrics and human preference.
Introduction
Generative video models have reached a point where they can follow complex text prompts with high fidelity. However, a significant gap remains in handling temporal effects—nuanced visual changes that unfold over time, such as a specific glitch rhythm, a magical transformation sequence, or dynamic lighting patterns. These effects are often nearly impossible to describe accurately with text alone.
RefVFX addresses this by introducing a "tuning-free" framework that allows users to transfer these complex behaviors from a reference video to a target video or image. Unlike existing methods that require per-effect fine-tuning (e.g., training a LoRA), RefVFX performs the transfer in a single feed-forward pass, bypassing the need for tedious text prompting.
Methodology
RefVFX is built upon the Wan2.1 diffusion transformer (DiT) backbone. The framework utilizes a multi-source conditioning strategy, jointly processing the reference effect video, the target input (image or video), and an optional text prompt for high-level guidance.
Technically, the model concatenates the reference video latents with the target video latents along the width dimension before they enter the transformer blocks. This architectural choice doubles the token count, enabling the self-attention mechanism to directly correlate the temporal dynamics of the reference with the spatial content of the target. To provide user control, the authors implemented a modified version of Classifier-Free Guidance, allowing for interpolation between the original input and the fully transformed output.
Dataset Generation
The primary challenge in training such a model is the lack of paired video data showing the same scene with and without specific effects. To overcome this, the researchers curated a massive dataset of 120,000 triplets (Reference, Input, Output) from three distinct sources:
- LoRA-based Effects: Leveraging 43 existing Image-to-Video LoRA adapters (e.g., "Cakeify") to generate thousands of high-quality pairs.
- Scalable V2V Pipeline: An automated pipeline using image-to-pose models and interpolation to create motion-consistent video pairs from text descriptions.
- Programmatic Effects: Programmatically generated filters (e.g., posterization, pixelation, wipes) with randomized hyperparameters to teach basic geometric and color transitions.
Key Insights and Results
A core insight of RefVFX is its ability to learn the "delta" (the change) between the start and end of a reference sequence. By training on diverse triplets where the reference and target content differ (e.g., a person vs. a car), the model learns to disentangle the visual effect from the underlying objects and focus solely on the transformation.
In evaluations against baselines like Lucy Edit and Wan VACE, RefVFX demonstrated superior performance:
- Human Preference: In a study with 15,000 annotations, RefVFX was preferred in approximately 60-67% of cases.
- Quantitative Fidelity: Using VideoPrism embeddings, the model showed higher similarity to reference effects while maintaining the original motion of the input.
- Zero-Shot Generalization: The model successfully applies effects it never encountered during training, such as "Matrix-style" digital rain or "Super Saiyan" auras.
Limitations and Future Work
While RefVFX represents a significant step forward, it faces challenges with fine-grained occlusions and exhibits a slight bias toward human-centric content due to the nature of current video backbones. Additionally, the dual-conditioning approach increases computational cost, roughly doubling generation time compared to standard models. Future research will focus on optimizing the architecture for faster inference and improving generalization to large-scale environmental effects.
Summary updated