TL;DR
In image-to-video generation, we lavish attention on conditioning the core diffusion model, yet force the final decoder to reconstruct crisp pixels from heavily compressed latents completely blind to the original input image. RefDecoder fixes this asymmetry by letting the video decoder "peek" directly at the high-resolution reference image via self-attention. Best of all, it acts as a plug-and-play upgrade for existing video generators—sharpening textures, stabilizing faces, and fixing text without retraining the massive diffusion backbone.
What Problem Does This Paper Address?
Modern video generators are typically latent diffusion models. Instead of generating millions of raw pixels directly, a diffusion backbone generates a compact, compressed representation (a "latent"), and a Variational Autoencoder (VAE) decoder translates those latents back into full-resolution video frames.
When generating a video from a starting image (Image-to-Video, or I2V), there is a glaring architectural asymmetry. While the diffusion model is heavily guided by the input image, the VAE decoder is completely unconditional—it never sees the original photo. Forced to hallucinate fine-grained details from a narrow, lossy bottleneck without a visual anchor, standard decoders suffer from two classic headaches: textures and edges progressively blur out, and subjects (like human faces or written text) noticeably drift and warp over time.
Methods
Because the VAE encoder and diffusion model remain frozen, RefDecoder is a pure drop-in replacement for existing decoders. It upgrades a standard pretrained video VAE decoder using three clever additions:
- Minimalist Reference Encoder: Rather than squashing the reference image into a narrow latent space, a single convolutional layer projects image patches directly into the decoder's much richer, high-dimensional hidden space (e.g., 512 channels), keeping high-frequency details intact.
- Conditional Token Decoding: Standard decoders use 3D convolutions with limited local vision. The authors insert Transformer blocks at each upsampling stage. Reference tokens and video latent tokens are concatenated along the time axis and processed jointly via self-attention, allowing any video frame to query the reference image for crisp details. Afterward, they are separated and upsampled independently (spatially for the reference, spatio-temporally for the video). To keep parameter counts low, the Transformer weights are shared across all upsampling stages.
- Latent Token Dropout: If video latents already contain decent rough info, a lazy decoder might just ignore the reference tokens. During training, the authors randomly zero out up to 70% of the video latent tokens, forcing the decoder to actively scavenge missing spatial details from the reference image.
They also train using a two-stage curriculum (short clips first, then longer clips) with random frames chosen as the reference so the model doesn't overfit to first-frame-only setups.
Datasets
- Training: ~100K videos combining MiraData9K, DL3DV, and a subset of OpenVidHD-0.4M. For decode-time style transfer, they train on OmniStyle150K.
- Evaluation: Reconstruction is tested on VideoVAE+ benchmarks—Inter4K (500 high-res clips), WebVid, and a Large Motion subset (100 complex-motion clips)—plus DAVIS and BAIR to compare against prior reference VAEs. Long-video reconstruction uses Inter4K-81 (500 81-frame clips, along with a top-quartile high-motion subset). Generation is evaluated on VBench I2V (at 17 and 81 frames). No new standalone datasets are introduced, though custom 81-frame and optical-flow-ranked high-motion splits are curated from Inter4K and VBench.
Key Insights and Ideas
- "Don't forget the decoder": Many artifacts we blame on diffusion models—like flickering textures or garbled text—actually happen during the final latent-to-pixel decoding step. Making the decoder an active, conditioned participant fixes them for cheap.
- High-motion resilience: You might expect reference-conditioning to fail when the camera pans wildly away from the initial frame. Surprisingly, RefDecoder's gains actually grow compared to baselines during high-motion sequences, as standard decoders struggle even harder to unpack fast-moving compressed latents.
- Task-agnostic conditioning: Because the decoder simply learns to pull visual cues from a reference token stream, you can swap the reference image at inference time to unlock new tricks—like feeding a painting as the reference to achieve decode-time video style transfer, or feeding an unedited source frame to stop video-editing models from blurring the background.
Key Results
- Sharper Reconstruction: Applied to Wan 2.1 and VideoVAE+ backbones, RefDecoder boosts PSNR by +1.2 dB on Inter4K (Wan 2.1) and +2.1 dB on WebVid (VideoVAE+), while beating prior reference-conditioned VAEs like RefTok by +7.4 dB PSNR on BAIR.
- Plug-and-Play Generation: Dropped into an unmodified Wan 2.1 diffusion pipeline (using identical random seeds), RefDecoder improves 10 of 12 VBench I2V metrics, lifting subject consistency, background consistency, and total score (87.9 to 88.2), while cutting temporal flicker and warping errors by 8–15%.
- Human Preference: In blind slider-overlay tests, humans preferred RefDecoder over vanilla Wan 2.1 92.3% of the time for reconstruction and 82.4% of the time for video generation.
- Negligible Overhead: Because diffusion denoising dominates runtime, RefDecoder adds virtually zero noticeable latency to the full Wan 2.1 pipeline (~74.6s vs. ~72.0s).
Limitations and Future Work
RefDecoder currently conditions on only a single reference image; extending it to multiple references could unlock keyframe interpolation and multi-view generation. Its reference encoder is intentionally minimal (one conv layer), leaving room to explore richer encoders and automated hyperparameter tuning across architectures. Furthermore, scaling well beyond 81 frames diminishes gains as scenes drift temporally far from the initial reference—and in extreme scene-change stress tests, mismatched references can slightly worsen perceptual LPIPS scores. Finally, by boosting visual realism, the method inherits the dual-use risks (such as deepfakes) of underlying video generators.
Summary updated