An Efficient Four-Parameter Affine Motion Model for Video Coding

Li Li, Dong Liu, Haitao Yang, Sixin Lin, Huanbang Chen, Feng Wu

TL;DR

Modern video coding standards struggle to efficiently compress complex motions like rotation and zooming because they rely on simple translational motion models. This paper introduces a highly efficient four-parameter affine motion model framework that seamlessly integrates into HEVC, slashing bitrates for complex videos by up to 19% while keeping the computational complexity of encoding and decoding in check.

What Problem Does This Paper Address?

Video compression relies heavily on Motion Estimation (ME) and Motion Compensation (MC) to remove temporal redundancy between frames. If you can predict where a block of pixels will be in the next frame, you only need to encode the difference (the residual).

However, the standard block-based MC used in modern codecs like HEVC (H.265) uses a translational motion model—it assumes blocks only move up, down, left, or right. This is terrible at handling real-world complex motions like camera zooms or object rotation. To compensate, standard encoders shatter rotating or zooming objects into tiny blocks to approximate the motion, which costs a massive amount of overhead bits.

While researchers have known that high-order "affine" motion models (which can rotate, scale, and shear) compress these motions better, they are notoriously slow. A standard 6-parameter affine model requires jointly optimizing multiple variables, making the encoding and decoding process computationally prohibitive for practical use. This paper attempts to bridge that gap: achieving the compression benefits of affine motion without the crushing computational overhead.

Methods

The authors propose a simplified, generalized block-based affine motion framework with several novel components:

  • Four-Parameter Affine Model: Instead of 6 parameters, they use 4. This model drops shear mapping but perfectly captures translation, rotation, and zooming. It is represented by just two Motion Vectors (MVs) at the top-left and top-right of a block.
  • Gradient-Based Fast Affine ME: To find these two MVs quickly during encoding, they use Advanced Affine Motion Vector Prediction (AAMVP) combined with a novel gradient descent algorithm. Instead of exhaustively searching all MV combinations, it iteratively updates the two MVs simultaneously, converging in just 6-8 iterations.
  • Affine Model Merge (AMM): Standard HEVC has a "merge" mode that reuses MVs from neighboring blocks. AMM adapts this by reusing the affine model parameters (like the zooming factor and rotation angle) from neighbors, rather than just copying absolute MVs, saving significant header bits.
  • Fast Affine MC: To speed up the actual pixel reconstruction (decoding), they introduce a one-step sub-pixel interpolation filter (replacing a heavy two-step process) and an adaptive block-size MC that performs interpolations at a small block level (e.g., 4x4) rather than calculating unique fractional movements for every single pixel.

Datasets

  • Affine Test Sequences: A custom set of 9 video sequences (e.g., Tractor, Shields, Jets, Cactus) specifically chosen or cropped because they feature heavy rotation or zooming motions.
  • HEVC Common Test Conditions: Standard benchmark video sequences used in HEVC development to ensure the model doesn't regress on normal, everyday video footage.

Key Insights and Ideas

  • Less is More: Dropping from a 6-parameter to a 4-parameter model doesn't just save overhead bits; it actually covers the vast majority of complex motions found in natural video. Because it requires fewer variables, the math is much faster to solve.
  • Gradient Descent for ME: Treating Motion Estimation as an unconstrained optimization problem and solving it via gradient descent is a massive leap over traditional exhaustive block-matching. It drastically cuts down encoder time while finding highly accurate motion vectors.
  • Parameter Reuse over MV Reuse: The AMM mode realizes that neighboring blocks belonging to the same rotating/zooming object share the same transformation parameters (angle, scale), even if their absolute Motion Vectors differ based on their spatial position. Reusing the model itself is much more accurate than trying to regenerate it.
  • Pixel vs. Block Interpolation: By adaptively grouping pixels into small blocks that share the same fractional motion vector, the decoder avoids redundant sub-pixel interpolations. This rescues the decoding speed, which is critical for real-world video playback.

Key Results

  • Massive Bitrate Savings: On the affine test sequences, the framework achieved average bitrate savings (BD-rate) of 11.1% in Random Access (RA) configurations and 19.3% in Low Delay (LD) configurations.
  • Manageable Complexity: Compared to the HEVC anchor (HM-16.7), encoding time only increased to 121%-131%, and decoding time to 112%-123%. For context, previous affine implementations without these fast MC tools spiked decoding time to over 500-900%.
  • General Performance: On standard HEVC test sequences (which lack heavy rotation/zoom), it still provided a modest 1.0% to 1.5% bitrate savings with negligible complexity overhead.
  • Visual Proof: Block partitioning visualizations in the paper show that the affine model allows the encoder to use much larger Coding Units (CUs) during zooms/rotations, whereas standard HEVC shatters the image into tiny blocks to approximate the curve/zoom with rigid translations.

Limitations and Future Work

  • Limitations: The 4-parameter model is relatively simple and assumes local blocks have planar surfaces. It cannot perfectly characterize more complex deformations (like shear or severe perspective shifts) that a full 6-parameter or higher-order model might catch.
  • Future Work: The authors note that effectively characterizing other complex motions using higher-order models remains an open issue. They also suggest that integrating global high-order motion models (which apply to the whole frame) with this local block-based approach into a unified framework could yield even better compression.

Summary updated

BibTeX
@article{li2018efficient,
  author = {Li Li and Houqiang Li and Dong Liu and Zhu Li and Haitao Yang and Sixin Lin and Huanbang Chen and Feng Wu},
  title = {{An Efficient Four-Parameter Affine Motion Model for Video Coding}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2018},
  url = {https://openreview.net/forum?id=Q-4J_AGIrO},
}
Figure