Compressible Motion Fields

Giuseppe Ottaviano, Pushmeet KohliCVPR 2013

Abstract

Traditional video compression methods obtain a compact representation for image frames by computing coarse motion fields defined on patches of pixels called blocks, in order to compensate for the motion in the scene across frames. This piecewise constant approximation makes the motion field efficiently encodable, but it introduces block artifacts in the warped image frame. In this paper, we address the problem of estimating dense motion fields that, while accurately predicting one frame from a given reference frame by warping it with the field, are also compressible. We introduce a representation for motion fields based on wavelet bases, and approximate the compressibility of their coefficients with a piecewise smooth surrogate function that yields an objective function similar to classical optical flow formulations. We then show how to quantize and encode such coefficients with adaptive precision. We demonstrate the effectiveness of our approach by comparing its performance with a state-of-the-art wavelet video encoder. Experimental results on a number of standard flow and video datasets reveal that our method significantly outperforms both block-based and optical-flow-based motion compensation algorithms.

Introduction

In the realm of video compression, "motion compensation" is the critical process of predicting a current frame by "warping" a previous reference frame based on the movement of objects within the scene. Most modern codecs, such as H.264 or HEVC, rely on Block Motion Compensation (BMC). BMC divides an image into square blocks and assigns a single motion vector to each. While this approach is computationally efficient and requires very few bits to encode, it frequently results in "block artifacts" because the motion is forced to be piecewise constant, failing to capture the fluid, continuous nature of real-world movement.

An alternative is the use of dense motion fields (optical flow), which provide a unique vector for every pixel. While dense fields produce significantly more accurate and smoother predictions, they are traditionally too "expensive" to transmit as side information. A dense field for $n$ pixels introduces $2n$ degrees of freedom, often requiring more bits to describe the motion than the image data itself. This paper proposes a middle ground: a dense, smooth motion field that is mathematically optimized for compressibility.

Methodology

The authors bridge the gap between density and compressibility through three primary innovations:

1. Wavelet Representation

Instead of using rigid blocks, the motion field is represented as a linear combination of orthogonal wavelets. The researchers specifically utilize Symlet 5 (Sym5) wavelets. Unlike the Haar wavelet—which effectively mimics the blocky structure of BMC—Symlets are smooth and continuous. This choice allows the motion field to represent complex movement without introducing artificial discontinuities or block boundaries.

Comparison of motion field representations: Haar (block-like) vs. Symlet 5 (smooth). The Sym5 representation results in a smoother motion field and a cleaner prediction residual.

2. Surrogate Coding Cost

To optimize the field, the authors define an objective function that balances prediction error (the residual) against the bitrate required to encode the field. Because actual bit-counts are non-differentiable and difficult to optimize directly, they derive a tractable logarithmic penalty function. This function acts as a proxy for entropy, encouraging the wavelet coefficients to be sparse—meaning most coefficients are zero or near-zero, which is ideal for compression.

3. Adaptive Quantization

Not all motion vectors require the same level of precision. An error in a motion vector within a flat, textureless area (like a clear sky) has a negligible impact on the final prediction. Conversely, even a tiny error near a sharp, high-contrast edge creates a massive residual. The authors derive a gradient-aware distortion metric that assigns more bits (higher precision) to motion coefficients near edges and fewer bits to smooth, low-texture regions.

Experimental Results

The proposed method was evaluated using the Middlebury Optical Flow Dataset and several standard video compression sequences, including foreman, news, highway, and sintel. These sequences cover a wide range of resolutions and motion types, from simple camera pans to complex, fast-moving objects.

Quantitative Performance

The proposed L1Log-WQ variant (utilizing an $L_1$ data term and adaptive quantization) demonstrated substantial improvements over existing benchmarks:

  • Bitrate Savings: Compared to the Dirac wavelet video codec, the method improved average bitrates by 23% on foreman and 49% on sintel.
  • Comparison to Optical Flow: It consistently outperformed the classic Horn-Schunck (HS) method, reducing the motion field bitrate by 3% to 18% while maintaining equivalent prediction quality.
Rate-distortion performance (PSNR vs. bitrate) across four standard video sequences. The proposed method (blue) consistently achieves higher PSNR for the same bitrate compared to the standard L2 approach (green).

Qualitative Improvements

Visually, the Sym5 wavelet fields produced predictions that were entirely free from the blocky artifacts typical of standard video encoders. By treating the motion field like a natural image—leveraging its local coherency—the system achieves a high-fidelity reconstruction that respects the underlying geometry of the scene.

Conclusion and Future Work

This research demonstrates that dense motion fields can be made highly compressible by optimizing for entropy rather than just smoothness. By utilizing smooth wavelet bases and gradient-aware quantization, the authors achieve state-of-the-art results in motion compensation.

However, some limitations remain. The current model does not explicitly handle occlusions (pixels that appear or disappear between frames). Additionally, the computational complexity is currently high, with unoptimized implementations taking several seconds per frame. Future work will focus on GPU acceleration to reach real-time performance and extending the framework to support multiple reference frames and B-frames, which are staples of modern video coding standards.

Summary updated

BibTeX
@inproceedings{ottaviano2013compressible,
  author = {Giuseppe Ottaviano and Pushmeet Kohli},
  title = {{Compressible Motion Fields}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=HkNKikfdWS},
}
Figure