Mitigating Compression Noise in Video Motion Vectors

25 concepts21 papers1 proposal

To understand a video, a computer vision model must understand time. Traditionally, capturing temporal dynamics requires calculating optical flow—a pixel-level map of how objects move between consecutive frames. While highly accurate, computing optical flow is notoriously slow and resource-intensive, often bottlenecking real-time deployment.

However, video files already contain a form of motion tracking built right into their metadata. To save space, standard video codecs (like H.264 or HEVC) do not store every frame as a full picture. Instead, they store occasional anchor frames (I-frames) and describe the subsequent frames (P-frames) using motion vectors that point to where blocks of pixels have shifted.

Because these motion vectors are pre-computed during video encoding, they can be extracted instantly for "free." Early work by researchers like Vadim Kantorov and Bowen Zhang et al. demonstrated that substituting optical flow with these native motion vectors could accelerate action recognition models by orders of magnitude, pushing processing speeds past 300 frames per second.

Yet, this speedup comes with a severe catch: raw motion vectors are incredibly messy. Models that rely on them out-of-the-box typically suffer a significant drop in accuracy. The core challenge of compressed-domain video understanding is not just extracting these vectors, but mitigating the unique, systemic noise introduced by the compression process itself.

The Root Cause: Rate-Distortion Optimization

To understand why motion vectors are noisy, we have to look at what a video encoder is actually trying to solve. A video codec does not care about physical reality, geometry, or semantic truth. Its sole objective is Rate-Distortion Optimization (RDO): minimizing the file size (bitrate) while maintaining acceptable visual quality (low distortion).

As Guo Lu et al. point out in their work on deep video compression, true physical motion maps are often highly complex and require too many bits to transmit efficiently. To maximize compression efficiency, encoders take mathematical shortcuts that introduce several distinct types of noise:

  • Block-Based Coarseness: Codecs do not calculate motion for individual pixels. Instead, they calculate a single vector for an entire block of pixels (macroblocks, usually $8\times8$ or $16\times16$). As noted by Kai Xu et al., this low spatial resolution lacks the fine-grained detail needed to track small objects or precise boundaries.
  • Bit-Saving Shortcuts: If an encoder can minimize residual error without moving a block, it will assign a zero-value vector to save bits, even if the camera or object is actually moving. Conversely, as Yike Liu et al. observe, encoders will frequently invent "fake" motion vectors in static or low-texture areas simply because matching a block randomly elsewhere happens to reduce the mathematical residual error.
  • Quantization Noise: The vectors themselves are quantized to discrete values, smoothing over subtle accelerations and trajectories. Furthermore, Mingyu Ding et al. show that this degradation is highly dependent on the compression ratio; highly compressed, low-bitrate videos suffer from severe vector sparsity and corruption.

Because of these shortcuts, raw motion vectors represent compression optimization strategies rather than true physical trajectories. When downstream models treat them as true motion, they encounter false positives, spatial distortions, and broken temporal links.

[True Physical Motion] ───► [Video Encoder (RDO)] ───► [Compression Noise] ───► [Coarse, Blocky Vectors]
                                    │
                            (Prioritizes bit-savings
                             over physical truth)

How Compression Noise Cripples Vision Tasks

The discrepancy between compression shortcuts and physical truth creates distinct failure modes across different computer vision applications:

Action Recognition and Semantic Labeling

Fine-grained actions require capturing subtle temporal dynamics. Because motion vectors are blocky and lack precision, models struggle to differentiate between similar actions. Early video retrieval systems, such as the one detailed by Shih-Fu Chang et al., found that compression noise directly limited the utility of motion features for high-level semantic labeling.

Object Tracking and Counting

Trackers operating in the compressed domain are highly efficient but suffer from low precision. Saeed Ranjbar Alvar et al. note that because vectors are optimized for compression rather than object localization, they fail to accurately follow specific targets. In surveillance contexts, Yung-Wei Chen demonstrates that the "fake movements" generated by encoders to minimize residual errors show up as noise, causing false positives when counting objects across a tripwire.

Geometry and 3D Reconstruction

Tasks like homography estimation or 3D scene reconstruction rely on strict geometric transformations. You Yang et al. show that using unrectified motion vectors for depth propagation introduces severe spatial distortions and outliers, because the mathematical shortcuts taken by the codec violate the actual geometric laws of the scene.

Strategies for Rectifying Motion Vectors

To exploit the speed of the compressed domain without sacrificing accuracy, researchers have developed three main paradigms to filter, denoise, and enhance raw motion vectors.

1. Geometric Filtering and Rejection Mechanisms

One way to handle compression noise is to identify and discard vectors that were clearly chosen for bit-rate reduction rather than physical movement.

For instance, in deep homography estimation, Yike Liu et al. designed a specialized filtering mechanism that evaluates motion priors against global scene geometry. By identifying and rejecting entries like zero-value vectors in moving areas or random vectors in textureless regions, they ensure that only features corresponding to actual physical displacement are used to calculate spatial transformations.

2. Neural Flow Hallucination and Denoising

Instead of just filtering bad vectors, models can learn to reconstruct clean, optical-flow-like representations from noisy inputs using lightweight neural networks.

  • DMC-Net: Mike Zheng Shou et al. introduced a framework that uses a lightweight generator trained to "hallucinate" dense optical flow from coarse, blocky compressed data. This captures fine-grained temporal dynamics without the overhead of full optical flow computation.
  • MEACI-Net: Similarly, Bing Li et al. developed a dedicated denoising network designed to clean up blocky artifacts caused by signal quantization. By smoothing out the macroblock boundaries, the network restores discriminative motion cues before passing them to downstream attention layers.
[Noisy Blocky Vectors] ───► [Lightweight Denoising / Hallucination] ───► [Refined Flow-Like Features]

3. Multi-Modal Fusion and Keyframe Warping

Another powerful intuition is to anchor sparse, noisy motion vectors to high-fidelity spatial data. In a compressed stream, I-frames contain full, uncorrupted RGB pixels.

Kai Xu et al. leverage this structure for video object segmentation. They run a heavy feature-extraction network only on keyframes, and then use the existing motion vectors to "warp" and propagate those high-quality features to subsequent frames. To combat the blocky nature of the vectors, they apply refinement modules at the destination frame to sharpen object boundaries.

This strategy is also effective for large-scale multimodal models. Zijia Zhao et al. designed an efficient motion-aware video architecture that fuses dense spatial tokens from I-frames with sparse, refined motion vectors from the stream, allowing the model to excel at motion-heavy tasks while bypassing the computational cost of processing uniform, raw video frames.

By treating the video bitstream not as a degraded version of raw pixels, but as a structured, multi-modal data source that requires targeted denoising, these approaches allow computer vision models to achieve the ultimate goal: real-time inference at the speed of compression, with the accuracy of uncompressed vision.

Key Foundational Work

Moving Object Completion on the Compressed Domain (2009) — contributed 1 concept elements to this direction.
IBM Research TREC 2002 Video Retrieval System (2002) — contributed 1 concept elements to this direction.
Real-time detection and tracking of multiple objects with partial decoding in H.264/AVC bitstream domain (2009) — contributed 1 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 18 papers
  2. Version 1 · 2026-10-04 · 28 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_motion_vector_quantization_noise_eaa2279f,
  title = {motion vector quantization noise},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/motion-vector-quantization-noise/rdr_eaa2279f943644e1a17493b85cc1933b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 2, frozen text):

@misc{lacuna_motion_vector_quantization_noise_eaa2279f_v2,
  title = {motion vector quantization noise},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/motion-vector-quantization-noise/rdr_eaa2279f943644e1a17493b85cc1933b/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake