Learned video codecs now beat hand-designed standards on compression quality, but they are slow to decode. The best of them predict each frame from previous ones, using a model that reads the bitstream one symbol at a time, and each reading step depends on the last. This proposal asks whether a different property of the codec's internal representation could remove much of that cost. The property is that two compressed frames can be blended in the codec's latent space (the compact internal code an autoencoder produces) and still decode to a sensible picture. If blending the latents of two keyframes reliably decodes to a plausible in-between frame, then most frames in a video never need full transmission. The decoder blends the two keyframe codes, adds a small correction, and decodes every intermediate frame in a single parallel batch on the GPU.
The tool comes from latent style interpolation, the study of how to make generative models' latent spaces smooth enough that straight-line blends produce meaningful intermediates instead of ghostly double exposures. The latency targets and the coding machinery come from neural compression. The central claim is narrow and testable. A codec trained so that short-interval latent blends land on real video frames can decode bidirectionally predicted frames ("B-frames", frames predicted from both a past and a future keyframe) at near real-time speed. It can do so at a lower bitrate than the obvious alternative of decoding keyframes with a fast codec and filling the gaps with a pixel-space frame interpolator.
Core Claim
The specific new ingredient is cheap, directly supervised latent shaping. Autoencoder Image Interpolation by Shaping the Latent Space (AEAI) showed why the problem is hard. Ordinary autoencoder latent spaces are "crinkly", so straight paths cross empty regions and decode to cross-dissolves or artifacts. AEAI fixed this with an adversarial loss, a cycle-consistency loss and a derivative-smoothness loss. That remedy is expensive to train and has only been validated on single-object datasets such as COIL-100. Video gives us something AEAI did not have: the true intermediate frame. Frame $x_t$ really does lie between $x_0$ and $x_T$. So we can supervise the decoded blend against the actual middle frame and drop both the discriminator and the derivative penalty. This turns latent shaping from a heavy regularizer into a plain reconstruction loss on frame triplets, which can be added to a fast codec's training at little extra cost.
At decode time, a B-frame at position $t$ inside a group of $T$ frames is reconstructed as
$$\hat{z}_t = (1-\alpha_t)\, z_0 + \alpha_t\, z_T + \Delta_t, \qquad \alpha_t = t/T,$$
where $z_0$ and $z_T$ are the decoded keyframe latents and $\Delta_t$ is a correction latent. The correction is sent with residual vector quantization, which stacks several codebooks and lets you send as many stages as needed, and it is sent in the entropy-free style of Efficient Learned Image Compression without Entropy Coding (EF-LIC). EF-LIC showed that quantized indices pushed toward a uniform distribution need no sequential arithmetic coder. That makes the whole decode a fixed GPU computation, and EF-LIC reports 10× to 15× faster decoding than MS-ILLM. The encoder chooses the number of correction stages $k_t$ per frame, and $k_t = 0$ means pure interpolation at zero extra bits. Training adds a triplet loss
$$\mathcal{L}_{\text{interp}} = \mathbb{E}_{x_0, x_t, x_T}\, d\big(D((1-\alpha_t)E(x_0) + \alpha_t E(x_T)),\ x_t\big),$$
with $E$ and $D$ the codec's encoder and decoder and $d$ a mix of mean-squared error and a perceptual distance. This loss pulls the uncorrected blend toward the real frame, so the correction $\Delta_t$ is small and cheap to code.
Positioning Against Prior Work
Three papers motivate the gap by pairing good compression with unacceptable decode time. IBVC: Interpolation-driven B-frame Video Compression avoids sending motion vectors by running a pixel-space frame interpolator at both ends and then coding the interpolation error. It reaches 27.51% (PSNR) BD-rate savings over VTM-19.0, but it takes about 832 ms per frame because of its autoregressive entropy model and its artifact-correction network. We keep IBVC's "interpolate first, fix later" logic, but move the interpolation into the latent space so the fix is a parallel residual rather than a pixel-domain repair network.
Generative Latent Video Compression (GLVC) codes video in a continuous latent space. It argues that discrete codes cause flicker, and it reports a 94.7% perceptual BD-rate saving over DCVC-RT on UVG. It needs 194/306 ms per 1080p frame on an A100 and has a four-frame tokenizer lookahead, and it never uses the latent space for interpolation. Video Compression With Rate-Distortion Autoencoders codes video chunks with 3D convolutions and a PixelCNN prior. Its sequential prior limits decode speed, and its latents are not shaped for blending.
Two papers supply methods we reuse. EVC: Towards Real-Time Neural Image Compression with Mask Decay provides the fast intra backbone for keyframes. It runs at 30 FPS at 1080p on a 2080Ti for its small model. It also warns that decoders resist pruning: decoder pruning cost 5.1% BD-rate against 2.7% for the encoder. So we spend our latency budget by decoding fewer frames fully, not by shrinking the decoder. EF-LIC supplies the entropy-free residual coding.
Interpolation variable rate image compression interpolates network weights to move along the rate axis. That is a different kind of interpolation, applied to parameters rather than to content latents. It constrains our design only in that its continuous rate control could later be combined with ours.
The style-interpolation literature also supplies an analysis lens. Intensity-tunable methods such as Tune-Your-Style show that appearance attributes like stylization strength, color and lighting vary smoothly along a learned one-dimensional control. That evidence predicts where latent blending should beat optical-flow interpolation: on changes in illumination, exposure, fades and color. Flow-based interpolators have no model of these changes. Large motions, by contrast, are poorly described by any straight latent path. We treat this as a hypothesis to test, not an assumption.
Research Program
We will build the codec in three stages. First, we train an EVC-style keyframe autoencoder with a continuous latent. Second, we fine-tune it on Vimeo-90K triplets and short UVG-style clips with the added $\mathcal{L}_{\text{interp}}$, sampling gap lengths $T \in \{2, 4, 8\}$. Third, we train the entropy-free residual coder for $\Delta_t$, together with a lightweight encoder-side rule that picks $k_t$ by rate-distortion cost. The decoder processes a whole group as one batch: it decodes both keyframes, blends latents for all $T-1$ intermediate frames at once, adds the corrections, and runs one batched decoder pass.
The analysis has two parts. The first measures the rate-distortion cost of shaping on keyframes alone. Gap 3 in the literature is a real tension: quantized, entropy-compacted codes resist smooth blending. If shaping costs more than a few percent of BD-rate on intra coding, the B-frame savings must pay for it. The second sorts test segments by the kind of change between keyframes, measured as optical-flow magnitude versus global photometric change. We then report where latent blending wins or loses against pixel-space interpolation. The design has a structural delay: like any B-frame scheme, it waits for the next keyframe. It is therefore aimed at streaming and playback, not conversational video, and we will report that delay alongside per-frame compute.
Baselines
The naive reference is EVC coding every frame as an intra frame. It has no temporal prediction, but it runs at real-time speed, so it fixes the latency floor and the bitrate ceiling. A decode-time figure is reported for EVC: 30 FPS at 1080p for the small model. No BD-rate number for EVC on UVG is reported in the file.
The strongest simple competitor is the same keyframe codec followed by an off-the-shelf pixel interpolator, with the interpolation error coded by the same entropy-free residual coder. For the interpolator we use IFRNet, the network IBVC uses. This baseline isolates exactly one question: should we blend in latent space or in pixel space? It shares the data, the residual coder, the keyframe spacing and the GPU. Its interpolator is not fine-tuned beyond its released weights unless we give our method an equal fine-tuning budget, and in that case we fine-tune IFRNet on Vimeo-90K as well. To beat it, our method must show a lower BD-rate at equal or lower measured decode time per frame on UVG and HEVC Class B.
The strongest published learned competitor in the B-frame setting is IBVC, which reports a 27.51% BD-rate reduction (PSNR) and 30.07% (MS-SSIM) against VTM-19.0, at about 832 ms per frame. We will compare against VTM-19.0 under the same test conditions. Matching IBVC's BD-rate at one to two orders of magnitude less decode time would count as a clear win. Matching only its speed but not its rate would place the method on the speed-quality frontier without dominating it.
For perceptual quality, the reference is GLVC: 94.7% perceptual BD-rate saving over DCVC-RT on UVG, at 194/306 ms per frame on an A100. We do not expect to match GLVC's perceptual efficiency. We will report LPIPS and DISTS against it to locate our method on the latency-perception curve. We found no reported result on Lacuna for DCVC-RT's own absolute numbers.
Two ablations isolate the key ingredient. The first removes $\mathcal{L}_{\text{interp}}$: we blend in the unshaped latent of the same codec, which tests whether shaping matters at all. The second replaces our triplet loss with the full AEAI loss set, adversarial plus cycle plus smoothness, at matched training compute, which tests whether direct supervision is as good as and cheaper than the original recipe.
Why not just…?
Why not just decode keyframes with a fast codec and run a pixel-space frame interpolator? This is the real threat. IBVC's 832 ms is mostly due to its autoregressive coder and repair network, not to the interpolator, so a fast pipeline built around a pixel interpolator could be both quick and good. Our method spends one decoder pass per B-frame. The pixel route spends one interpolator pass per B-frame, so raw compute may be similar. The case for latent blending therefore rests on rate: a shaped latent should leave smaller corrections, especially under appearance changes where flow-based interpolators have nothing to work with. The matched-residual baseline above settles this directly. If pixel interpolation plus residual matches us across all segment types, we will narrow the claim to the appearance-change regime or drop it.
Why not just blend latents in an existing learned codec without shaping? AEAI shows that unshaped autoencoder latents produce cross-dissolves and artifacts along straight paths. Quantized compression latents are a harder case, because blends of quantized codes fall between the quantization levels the decoder was trained on. Even so, short gaps between highly similar frames might be benign. The no-shaping ablation measures this. If it matches the shaped codec at $T=2$ but collapses at $T=8$, that tells us how much shaping buys.
Why not just prune or distill a slow latent codec such as GLVC down to real time? EVC's own results show that decoders lose more from pruning than encoders (5.1% against 2.7% BD-rate). Pruning also does nothing to the sequential dependencies or the four-frame lookahead that make GLVC slow. We will apply mask-decay distillation to our keyframe decoder too, so any speed gain from fewer full decodes is measured on top of an already-distilled model rather than in place of one.
Proposed Experiments
We train on Vimeo-90K and evaluate on UVG, HEVC Classes B through E and MCL-JCV, using groups of 2, 4 and 8 frames. We report BD-rate against VTM-19.0 in PSNR and MS-SSIM, perceptual BD-rate in LPIPS and DISTS, a temporal flicker measure based on frame differences of the reconstruction compared with the source, decode milliseconds per 1080p frame on a single fixed GPU, and the structural delay in frames.
The first decisive check compares our codec with the keyframe-plus-IFRNet baseline at matched decode time. Our codec must win on BD-rate on UVG overall. If it does not, the core claim is false.
The second decisive check is the stratified analysis. We predict a large win on illumination and color-change segments and parity or a loss on large-motion segments. A reversed pattern would show that our account of why latent blending works is wrong, even if aggregate numbers look good.
The third check measures how much keyframe intra BD-rate the shaping loss costs. If that cost exceeds the B-frame savings at $T=4$, latent shaping is not compatible with efficient quantized coding in this form, which would itself be a useful negative result on the quantization-versus-smoothness tension.
References
- Autoencoder Image Interpolation by Shaping the Latent Space
- Efficient Learned Image Compression without Entropy Coding
- IBVC: Interpolation-driven B-frame video compression
- Generative Latent Video Compression
- Video Compression With Rate-Distortion Autoencoders
- EVC: Towards Real-Time Neural Image Compression with Mask Decay
- Interpolation Variable Rate Image Compression
- Tune-Your-Style: Intensity-tunable 3D Style Transfer with Gaussian Splatting