REGEN: Learning Compact Video Embedding with (Re-)Generative Decoder

Yitian Zhang, Long Mai, Aniruddha Mahapatra, David Bourgin, Yicong Hong, Jonah Casebeer, Feng Liu, Yun Fu

TL;DR

This paper introduces REGEN, a novel approach to learning compact video embeddings for generative models. By shifting the focus from exact video reconstruction to synthesizing visually plausible content, REGEN achieves significantly higher temporal compression ratios (up to 32x) while maintaining strong performance for downstream tasks like text-to-video generation.

What Problem Does This Paper Address?

Modern generative models, especially for video, often rely on compressing input videos into a compact "latent space" to make them computationally tractable. Traditional methods use an encoder-decoder architecture for this, where the encoder compresses the video and the decoder reconstructs it. However, achieving high compression ratios (especially temporal compression, which reduces the number of frames) creates a fundamental trade-off: the more you compress, the harder it is to reconstruct the original video with high fidelity. This often leads to visual artifacts and limits the effectiveness of these compressed representations for tasks like text-to-video generation. The paper aims to break this trade-off by developing a video embedder that prioritizes generating plausible content over exact reconstruction, enabling much higher compression.

Methods

REGEN proposes a shift from a traditional encoder-decoder video embedder to an encoder-generator framework.

  • Encoder: It uses a spatiotemporal encoder (inspired by MAGVIT-v2) to compress the input video into a compact latent representation. This encoder is causal, meaning it only uses past information to predict future frames, and it produces two latent maps: zc (content) and zm (motion).
  • Generative Decoder: Instead of a standard decoder, REGEN employs a Diffusion Transformer (DiT) as the generative decoder. This DiT is conditioned on the encoded latent maps (zc, zm) and is trained to synthesize the video. The core idea is that the DiT can "fill in the gaps" and generate realistic details, even from a highly compressed latent representation.
  • Latent Conditioning Module: A key innovation is a novel module that effectively injects the encoded latent information (zc, zm) into the DiT decoder. This module creates a "content-aware positional embedding" that allows the DiT to understand and control the spatiotemporal aspects of the generated video. This mechanism is crucial for enabling the model to generalize to different resolutions and aspect ratios, even those not seen during training.
  • Training Objective: The model is trained end-to-end with a diffusion objective, where the decoder learns to denoise a corrupted version of the target video, conditioned on the latent embeddings. The loss function focuses on the difference between the predicted noise and the actual noise, encouraging visually plausible reconstructions.

Datasets

The paper evaluates its method on two standard video benchmarks:

  • MCL-JCV: Used for reconstruction quality evaluation.
  • DAVIS 2019: Also used for reconstruction quality evaluation.

The models are trained and evaluated at resolutions of 256x256 and 512x512.

Key Insights and Ideas

  • Generation over Reconstruction: The most significant insight is that for generative tasks, a latent space that prioritizes visual plausibility over exact pixel-perfect reconstruction is more beneficial. This relaxed criterion unlocks much higher compression.
  • Diffusion Transformers as Decoders: Leveraging the powerful generative capabilities of Diffusion Transformers (DiTs) as the decoder, rather than traditional VAE-based decoders, is key to synthesizing realistic details from highly compressed latents.
  • Content-Aware Positional Encoding: The novel latent conditioning module is critical for making transformers work effectively in this context. It allows the model to generalize beyond training resolutions and aspect ratios, a common limitation of transformer-based models.
  • Breaking the Compression-Fidelity Trade-off: REGEN demonstrates that by using a generative decoder, the encoder can focus on capturing essential semantic information, and the decoder can synthesize the finer details, effectively bypassing the traditional trade-off.

Key Results

  • High Temporal Compression: REGEN achieves temporal compression ratios of up to 32x, which is 8x higher than leading video embedders like MAGVIT-v2.
  • Superior Reconstruction: At high compression ratios (e.g., 8x8x16 and 8x8x32), REGEN significantly outperforms MAGVIT-v2 in terms of PSNR, SSIM, and rFVD metrics on both MCL-JCV and DAVIS 2019 datasets. For instance, at 32x temporal compression, REGEN achieves better metrics than MAGVIT-v2 at 16x.
  • Text-to-Video Performance: The ultra-compact latent space (32x temporal compression) is shown to be effective for text-to-video generation. A 5B DiT model trained on this latent space can generate 132-frame videos from only 8 latent frames, offering a substantial reduction in latent frames compared to 4x compression methods.
  • Few-Step Sampling: The diffusion decoder supports efficient few-step and even one-step sampling for reconstruction without significant quality degradation, making inference practical.
  • Resolution Generalization: The content-aware positional encoding allows REGEN to generalize well to unseen resolutions, unlike methods relying on fixed positional encodings which exhibit gridding artifacts.

Limitations and Future Work

  • Training Cost: While inference is efficient (few-step sampling), training diffusion-based decoders remains computationally expensive.
  • Ablation Studies: Due to resource constraints, extensive ablation studies on architecture configurations were not performed.
  • Chunking Jumps: Although latent extension helps mitigate jumps between video chunks (due to chunk-wise encoding), it doesn't fully eliminate them in a training-free manner.
  • Patch Size: The model uses a larger patch size (8) for efficiency, which might degrade generation quality compared to smaller patch sizes (1 or 2).

Future work could involve exploring more efficient training strategies, further improving chunk transition handling, and investigating the impact of different patch sizes.

Summary updated

BibTeX
@inproceedings{zhang2025regen,
  author = {Yitian Zhang and Long Mai and Aniruddha Mahapatra and David Bourgin and Yicong Hong and Jonah Casebeer and Feng Liu and Yun Fu},
  title = {{REGEN: Learning Compact Video Embedding with (Re-)Generative Decoder}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=fbo2p4nwKu},
}
Figure