Akapulu Labs logo Akapulu Labs Research

Reference-Guided Deep Compression VAEs

Real-Time Generation of Streamable Talking Portrait Video with Reference-Guided Deep Compression VAEs

Reference-Guided Deep Compression VAEs — method overview

A new framework for real-time, streamable talking portrait video generation using speech audio and reference images. It uses a reference-guided causal video VAE to compress dynamics efficiently, enabling high-quality, low-latency video suited for interactive AI communication.

  • talking-head
  • audio-driven
  • realtime
  • streaming
  • low-latency
  • autoregressive

Demos

These demos showcase real-time generation of talking portrait videos conditioned on speech and reference images using Reference-Guided Deep Compression VAEs. Watch for high-quality lip synchronization, vivid details, smooth temporal consistency, and the system's ability to maintain realism while running efficiently for streaming scenarios. This method balances speed and video quality, outperforming or matching large baseline models.

Authors: Sicheng Xu, Yu Deng, Shoukang Hu, Yichuan Wang, Yizhong Zhang, Zhan Chen, Jiaolong Yang, Baining Guo

Categories: cs.CV

Comment: CVPR 2026 (Highlight) Camera ready

Published 2026-06-01 · Updated 2026-06-01

Abstract

Video diffusion models have significantly advanced portrait video generation, yet their high computational demands limit their use in interactive applications. This work presents a framework for streamable talking portrait video generation conditioned on speech audio and reference images. Designed meticulously for streaming scenarios, it features a causal video VAE for deep latent compression and an autoregressive latent denoising model. Our causal VAE integrates a variable number of reference images as guidance, allowing the network to focus on dynamic information rather than static appearance, thereby enhancing compression efficacy and reconstruction quality. Additionally, we extend the residual auto-encoding paradigm to improve spatial-temporal causality handling in our VAE. The generator is based on a Rectified Flow Transformer architecture and produces video latents in a blockwise auto-regressive manner. Our method enables the real-time generation of high-quality talking portrait videos, achieving speeds significantly faster than baseline models. Furthermore, comprehensive experiments demonstrate that it is on par with or even outperforms these large models in realism, vividness, and video quality.


Introduction

This paper addresses streamable, real-time talking portrait generation from speech audio and one or more reference images. The target application is interactive human-AI communication, where a system must synthesize lifelike portrait video with low latency, high visual fidelity, and temporal continuity over arbitrarily long sequences. The paper argues that prior talking-head systems are often restricted by strong face/head priors, while large video diffusion models can produce richer torso-level motion and lighting effects but are too expensive for real-time use.

The core idea is to shift most of the complexity into a deep-compression causal video VAE and then generate in the compressed latent space with a blockwise autoregressive Rectified Flow Transformer. This design is explicitly tailored to streaming: the VAE is causal so that decoding can proceed without future-frame leakage, and the generator is autoregressive with KV caching so inference can be run window by window.

The paper’s main novelty is not simply higher compression, but reference-guided deep compression: the VAE decoder receives one or multiple reference images so the latent space can focus on dynamic information instead of static identity and background details. A second key contribution is a causal residual video auto-encoding scheme that adapts the residual encoding ideas of DC-AE to spatiotemporal data while preserving causality, especially for the first frame. The result is a very high overall compression ratio of 768, substantially above the ratio used in popular video diffusion systems.

Overview of our framework. Left: The proposed reference-guided causal video VAE. $Q_ _z$ and $K_ _z$ are query–key pairs from $ _z$, upsampled from video latent $ $ via $D_1$. Right: Rectified flow transformer with block-wise causal attention for modeling the probabilistic distribution of the compact video latents.
Overview of our framework. Left: The proposed reference-guided causal video VAE. $Q_ _z$ and $K_ _z$ are query–key pairs from $ _z$, upsampled from video latent $ $ via $D_1$. Right: Rectified flow transformer with block-wise causal attention for modeling the probabilistic distribution of the compact video latents.

Method

Problem formulation

The task is defined as conditional portrait video generation: given a reference image set $\mathbf{r} = \{\mathbf{x}_1, \ldots, \mathbf{x}_m\}$ and an audio signal $\mathbf{a}$, generate a portrait video $\mathbf{y} = [\mathbf{x}_1, \mathbf{x}_2, \ldots, \mathbf{x}_n]$ from the conditional distribution

$$ \mathbf{y} \sim p(\mathbf{y} \mid \mathbf{r}, \mathbf{a}). $$

The method decomposes this into two stages: first encode the video into compact latents $\mathbf{z}$ conditioned on audio; then decode $\mathbf{z}$ back into frames. The entire system is designed so that both the latent generation and the video decoding can be streamed sequentially.

Reference-guided deep video compression

The VAE uses a two-stage causal auto-encoder with an encoder $E_1$ that performs joint spatial-temporal downsampling and a second encoder $E_2$ that further compresses spatial resolution. The decoder mirrors this hierarchy with $D_1$ and $D_2$. All main modules are built from causal convolutional residual blocks, and the paper notes the use of RMSNorm to preserve temporal causality.

The input video has shape $3 \times (T+1) \times H \times W$, where the extra frame reflects the common causal-VAE convention of treating the first frame as a single-image case. The latent tensor has shape $C_z \times T_z \times H_z \times W_z$, with $C_z = 64$, temporal downsampling by $4$, and spatial downsampling by $64$. This yields an overall compression ratio of 768.

A key departure from ordinary video VAEs is reference guidance inside the decoder. The first encoder $E_1$ is reused frame-by-frame on the reference images to obtain mid-level appearance features. Between $D_1$ and $D_2$, a transformer fusion module $D_{\text{ref}}$ combines the upsampled latent features with reference features using frame-wise self-attention followed by cross-attention. During training, the model randomly samples different numbers of references, so at inference it can accept a variable number of user-provided reference images. The paper’s intuition is that because the subject is largely fixed, the reference images let the VAE spend capacity on dynamics rather than reconstructing static appearance.

Causal residual video auto-encoding

To improve reconstruction quality at very high compression, the paper extends DC-AE-style residual auto-encoding to the causal video setting. Resolution changes are decomposed into two steps: a temporal residual encoding step and a spatial residual encoding step. The first frame is treated separately so temporal causality is never violated.

Conceptually, the downsampling path applies temporal residual processing first, excluding the first frame, and then spatial residual processing. The upsampling path reverses this order. The supplementary material makes the implementation concrete using parameter-free shortcuts based on $\text{PixelUnshuffle3d}$ and channel averaging for downsampling, and channel duplication plus $\text{PixelShuffle3d}$ for upsampling. The main residual branch uses causal convolutions to match dimensions, while the shortcut branch matches dimensions without learnable parameters.

Causal residual video auto-encoding. We apply separate temporal and spatial down/up-sampling with residual encoding. The first frame is handled independently to preserve causality.
Causal residual video auto-encoding. We apply separate temporal and spatial down/up-sampling with residual encoding. The first frame is handled independently to preserve causality.

The VAE training objective combines pixel reconstruction, perceptual similarity, and KL regularization:

$$ \mathbb{E}\left[\lambda_1 \lVert \hat{\mathbf{y}} - \mathbf{y} \rVert_1 + \lambda_2 \operatorname{LPIPS}(\hat{\mathbf{y}}, \mathbf{y})\right], $$

with a KL penalty on the latent code $\mathbf{z}$. The paper emphasizes that the combined reference guidance plus causal residual encoding gives the VAE substantially better reconstructions than a causal VAE without reference injection.

Blockwise autoregressive latent generation

Once the compact latent space is learned, the generator $G$ models the conditional distribution of video latents given audio and references. The generator is a Rectified Flow Transformer: generation is formulated as solving an ODE that transports a noise distribution to the target latent distribution via a learned velocity field.

Reference images are encoded frame-wise to reference latents $\mathbf{z}_r$. Audio is processed with a pretrained audio encoder and then temporally compressed by a trainable embedder so that audio features align with video latents. These audio features are broadcast spatially and concatenated with the noised latent input. A denoising timestep embedding is injected via AdaLN.

For streaming efficiency, the latent sequence is generated blockwise autoregressively. The paper uses non-overlapping blocks of size $k = 4$ latent frames. Attention is full within a block, but inter-block attention is causal, restricted to preceding blocks only. This preserves temporal causality while reducing memory and compute. During inference, KV caching is used so the model can reuse previously generated context.

Network architecture of our causal video VAE. The number after the dash in each block indicates the output channel dimension.
Network architecture of our causal video VAE. The number after the dash in each block indicates the output channel dimension.

The generator is trained with teacher forcing. During training, the model conditions on ground-truth previous latents, which are lightly noised to reduce train-inference mismatch. The conditional flow-matching objective is

$$ \mathbb{E}\left\lVert G(\mathbf{z}^t, \mathbf{z}_r, \mathbf{a}', t) - (\boldsymbol{\epsilon}^t - \mathbf{z}^0) \right\rVert_2^2, $$

where $\mathbf{z}^0$ is the clean latent and $\mathbf{z}^t$ is the noisy version used for denoising. The model also randomly replaces the audio and reference conditions with null embeddings to enable classifier-free guidance at inference time. The reference latents are randomly masked during training so the model can handle a variable number of references.

Streaming inference

At inference, the system proceeds window by window. Audio frames are accumulated, the generator predicts latent blocks autoregressively, and the decoder turns them into video frames while preserving causality. The previous window’s last block is reused as context for the next window, which keeps the stream continuous across long sequences. The supplementary material reports that using the longest KV window, the audio encoder plus the generator takes $0.288$ seconds to produce $4$ latent frames, corresponding to $16$ video frames, and the decoder takes another $0.09$ seconds, for a total latency of $0.378$ seconds or 42.3 FPS.

Implementation details

The main implementation choices are as follows. In the causal video VAE, $E_1$ contains eight residual blocks; every two blocks perform spatial downsampling, and temporal downsampling occurs at the 4th and 6th blocks. The output feature dimension of $E_1$ is 1024. $E_2$ further compresses the latent with two residual blocks. The decoder is symmetric. The reference fusion module $D_{\text{ref}}$ uses six transformer blocks with 16 attention heads and head dimension 64.

The generator $G$ uses 24 transformer blocks with 12 attention heads and head dimension 128. The paper also uses 3D Rotary Positional Embedding to encode spatiotemporal positions. The model has substantial capacity: the VAE encoder, decoder, and generator have approximately 497M, 406M, and 1B parameters, respectively.

Training is progressive for the VAE. It is first trained on $256^2$ clips of 5 frames, then on longer clips of 17 and 73 frames, and finally fine-tuned at $512^2$. The denoising model is trained on latent windows of 32 frames, with 1 to 3 reference images, using teacher forcing and classifier-free dropping of audio and reference conditions.

Experiments

Datasets and evaluation protocol

The training data combine filtered VoxCeleb2 and an in-house talking portrait dataset. The paper reports about 50 hours from VoxCeleb2, 280 hours from the in-house dataset, and roughly 10K unique identities in total. Videos are cropped to portrait regions and segmented into clips up to 10 seconds long.

Evaluation is conducted on two main benchmarks. HDTF is processed similarly to the training data; the test set contains 123 segments from 66 unseen identities. PortraitOneMin contains 32 one-minute clips from 16 unseen identities, sourced from online coaching and educational lectures. For the reconstruction ablation, the paper also uses a VoxCeleb2 test split with around 1K clips.

The main metrics are SyncNet confidence $S_C$ and SyncNet feature distance $S_D$ for audio-lip synchronization, CAPP for audio-pose alignment, and $\operatorname{FVD}_{25}$ computed over 25 consecutive frames for overall video quality. Higher $S_C$ and CAPP are better, while lower $S_D$ and $\operatorname{FVD}_{25}$ are better. Speed is reported as FPS on a single GPU.

Main quantitative results

The paper compares against EchoMIMIC, EchoMIMIC-Distilled, Hallo, Hallo2, Hallo3, Sonic, and FantasyTalking. The baselines are largely diffusion-based and offline; the paper stresses that they are not real-time. FantasyTalking could not report PortraitOneMin because its implementation failed to handle long video generation.

Method HDTF PortraitOneMin FPS
$S_C$ $S_D$ CAPP $\operatorname{FVD}_{25}$ $S_C$ $S_D$ CAPP $\operatorname{FVD}_{25}$
EchoMIMIC5.2919.5570.341143.6204.8639.5940.208177.1411.4
EchoMIMIC-Distilled5.5139.3500.348174.0615.5319.1870.201201.89913.3
Hallo7.4577.8410.24290.8806.7218.2750.210179.0721.2
Hallo27.5477.8190.24788.1706.8298.2440.196162.6721.2
Hallo37.2568.5960.33776.4306.8368.7240.301175.3400.27
Sonic8.7996.6020.68943.9208.1857.0310.59895.0471.7
FantasyTalking4.16711.1440.40789.726--------0.36
Ours, $M=1$8.9436.2860.69962.3008.5376.6190.64891.96442.3
Ours, $M=2$9.0566.1750.73949.4008.4386.6880.67781.517
Ours, $M=3$8.9986.2260.73943.2708.5466.6480.65973.693

The headline result is that the proposed method is both fast and competitive in quality. With $M=1$, it achieves the best lip-sync and head-audio alignment among the compared methods on the two benchmarks, while also being far faster than the diffusion baselines. As more reference images are added, the method improves further, especially in $\operatorname{FVD}_{25}$, suggesting that reference frames help both the VAE reconstruction and the generation problem itself. The paper reports an inference speed of 42.3 FPS on a single H100 GPU, which is more than $25\times$ faster than the reported diffusion-based talking portrait systems in the table.

Talking portrait videos generated by our method, which naturally and comprehensively capture portrait video dynamics. (Best viewed with zooming in; see the supplementary videos for a more comprehensive evaluation.)
Talking portrait videos generated by our method, which naturally and comprehensively capture portrait video dynamics. (Best viewed with zooming in; see the supplementary videos for a more comprehensive evaluation.)

Ablation: reference guidance and causal residual video auto-encoding

The central ablation evaluates two components of the VAE: reference guidance and causal residual video auto-encoding (CR-VA). The table below reports reconstruction on VoxCeleb2 and HDTF. The main pattern is clear: adding reference guidance significantly improves PSNR and LPIPS, and CR-VA further increases the benefit as more reference images are provided.

Setting $M$ VoxCeleb2 HDTF
$L_1$ PSNR $\Delta$PSNR LPIPS $L_1$ PSNR $\Delta$PSNR LPIPS
w/o CR-VA, no ref.00.02029.071--0.0880.02128.306--0.087
w/o CR-VA10.01431.6762.6050.0510.01332.0683.7620.040
w/o CR-VA20.01332.3053.2340.0430.01232.6634.3570.035
w/o CR-VA30.01232.7663.6950.0390.01233.1494.8430.032
w. CR-VA, no ref.00.01829.604--0.0870.02028.678--0.086
w. CR-VA10.01332.3542.7500.0450.01233.4694.7910.032
w. CR-VA20.01233.2813.6770.0360.01034.5105.8320.027
w. CR-VA30.01133.9794.3750.0310.01035.3746.6960.023

From these numbers, three conclusions follow. First, reference guidance alone improves reconstruction strongly: on VoxCeleb2, PSNR rises from 29.071 to 31.676 with one reference image, and on HDTF it rises from 28.306 to 32.068. Second, increasing the number of reference images yields additional gains. Third, CR-VA and reference guidance are complementary: with CR-VA, the gain from $M=0$ to $M=3$ is larger than without CR-VA on both datasets, showing that the residual encoding scheme amplifies the value of reference conditioning.

Qualitative results of the reference-guidance module (with CR-VA), with the second and fourth rows showing L2 error maps between predictions and ground truth (red→white→blue indicates high→low error).
Qualitative results of the reference-guidance module (with CR-VA), with the second and fourth rows showing L2 error maps between predictions and ground truth (red→white→blue indicates high→low error).

Additional supplementary experiments

The supplementary material also evaluates the method in a head-cropped setting against SadTalker and VASA-1. With the same general framework and a recropped dataset, the paper reports that the method matches VASA-1 closely on lip-sync and audio-pose alignment, while producing better overall video quality according to $\operatorname{FVD}_{25}$. In that setting, the reported speed is 23.3 FPS for the proposed method versus 37.9 FPS for VASA-1, but the proposed model remains substantially more flexible because it is aimed at broader portrait generation rather than only the head region.

The supplementary text also studies classifier-free guidance. Increasing audio guidance improves lip-sync but can reduce diversity; increasing reference guidance similarly sharpens identity alignment and stability but may hurt diversity if pushed too far. The default setting is $\lambda_a = \lambda_r = 2$, which gives the best balance in the reported ablation.

Limitations

The paper is explicit about two limitations. First, the method does not provide fine-grained control over attributes such as eye gaze and head pose; the authors suggest adding more motion-conditioning signals during denoising as a possible remedy. Second, the current framework does not support hand motion or larger-scale body movement. The paper suggests that broader datasets with richer human-region coverage and more expressive motion patterns would be needed to address that limitation.

Conclusion

The paper presents a streamable audio-driven talking portrait system that combines a causal, reference-guided deep-compression VAE with a blockwise autoregressive Rectified Flow Transformer. The design is explicitly optimized for real-time inference: the latent compression ratio is very high, reference images improve reconstruction fidelity, and the generator can be cached and streamed block by block. Across the reported benchmarks, the method achieves strong synchronization and video quality while running at real-time speed, and the paper positions this as a practical alternative to heavy diffusion-based portrait generators for interactive applications.