Abstract
Human perception is at the core of lossy video compression, with numerous approaches developed for perceptual quality assessment and improvement over the past two decades. In the determination of perceptual quality, different spatio-temporal regions of the video differ in their relative importance to the human viewer. However, since it is challenging to infer or even collect such fine-grained information, it is often not used during compression beyond low-level heuristics. We present a framework which facilitates research into fine-grained subjective importance in compressed videos, which we then utilize to improve the rate-distortion performance of an existing video codec (x264). The contributions of this work are threefold: (1) we introduce a web-tool which allows scalable collection of fine-grained perceptual importance, by having users interactively paint spatio-temporal maps over encoded videos; (2) we use this tool to collect a dataset with 178 videos with a total of 14443 frames of human annotated spatio-temporal importance maps over the videos; and (3) we use our curated dataset to train a lightweight machine learning model which can predict these spatio-temporal importance regions. We demonstrate via a subjective study that encoding the videos in our dataset while taking into account the importance maps leads to higher perceptual quality at the same bitrate, with the videos encoded with importance maps preferred $1.8 \times$ over the baseline videos. Similarly, we show that for the 18 videos in test set, the importance maps predicted by our model lead to higher perceptual quality videos, $2 \times$ preferred over the baseline at the same bitrate.
Introduction
Lossy video compression is fundamentally a process of deciding which information to discard. Traditionally, codecs like x264 rely on mathematical proxies such as Peak Signal-to-Noise Ratio (PSNR) or low-level heuristics to allocate bits. However, these metrics frequently fail to capture human visual priorities. For instance, a standard saliency model might identify a person's entire body as important, whereas a human viewer primarily focuses on the face.
Furthermore, existing models often overlook how compression itself introduces artifacts—such as banding in smooth gradients—that attract viewer attention. Collecting granular, frame-by-frame data on human-perceived importance for compression has historically been difficult and resource-intensive. The PIM framework addresses this by enabling the collection and modeling of fine-grained perceptual importance maps.
Methodology
The authors propose a three-part framework to integrate human perception into the compression pipeline:
- PIMTool: A web-based annotation interface where users "paint" importance maps over videos. It utilizes an adaptive $\Delta QP$ mapping heuristic, ensuring that increasing quality in one region automatically decreases it elsewhere to maintain a constant total bitrate, providing immediate feedback on visual trade-offs.
- PIM-Encoding: The x264 codec was modified to accept these importance maps, adjusting the Quantization Parameter (QP) at the macroblock level (16x16 pixels) to prioritize high-importance regions.
- PIMM (The Model): A lightweight CNN (~8k parameters) designed to predict these maps. It combines high-level features (object segmentation, saliency, optical flow) with low-level features (PSNR, SSIM, high-pass filters) to predict importance levels for every macroblock.
The Perceptual Importance Map Dataset (PIMD)
The researchers introduced the Perceptual Importance Map Dataset (PIMD), consisting of 178 videos (1-5 seconds each) sourced from CLIC2021, BVI-DVC, and Pexels. The dataset includes 14,443 densely annotated frames, each reviewed by at least seven individuals, including compression experts. Uniquely, these maps are captured over already-compressed video, allowing them to account for how compression artifacts influence human attention.
Key Insights and Results
Analysis of the PIMD revealed that saliency does not equate to importance; humans are often willing to sacrifice quality in salient but non-critical areas (like torsos) to preserve fidelity in faces. Additionally, importance maps are artifact-aware; viewers may mark a region as important specifically to resolve visible compression artifacts like blocking.
Subjective testing demonstrated significant improvements over standard encoding:
- Subjective Preference: In head-to-head tests, videos encoded with human-annotated maps were preferred 1.8× over the x264 baseline. The PIMM model's predicted maps achieved a 2× preference rate.
- Efficiency: PIM-based encoding provides approximately 15% bitrate savings at the same perceived quality level.
- Consistency: The model-predicted encoding was preferred in 15 out of 18 test videos.
Conclusion and Future Work
While PIM demonstrates the power of perceptual maps, limitations remain. The dataset size is relatively small for deep learning, and the current study focused exclusively on x264. Future research will focus on expanding the PIMD and exploring the framework's applicability to modern codecs like HEVC, AV1, and neural compressors. Additionally, developing models that take target bitrate as input could further refine importance prediction across varying quality levels.
Summary updated